From patchwork Fri Jan 13 02:30:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 9514495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 33679601E5 for ; Fri, 13 Jan 2017 02:31:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E27128713 for ; Fri, 13 Jan 2017 02:31:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2291828727; Fri, 13 Jan 2017 02:31:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DB32628713 for ; Fri, 13 Jan 2017 02:31:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRre1-0000HR-6I; Fri, 13 Jan 2017 02:31:09 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRrdo-0008GT-53 for linux-mediatek@lists.infradead.org; Fri, 13 Jan 2017 02:30:58 +0000 Received: by mail-pf0-x22e.google.com with SMTP id 127so22473677pfg.1 for ; Thu, 12 Jan 2017 18:30:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=TV1c3fBfd0iW7ksM0OtA+n/BF1E77EVsaJRGmQumbZ4=; b=IwNNlcdSoL7etvZsPGVr1pHqoF1TqxJzAY9XYnNbjw1QTeVI4Erp7JYkcfyzU8/d22 uOIiy0uFdZvAxiOQUixucxGzWbMAwamJr5Iz9CK1Id/B2doEU+4+ps8q4a7IVFLLp3kL MsKdtjNGaMC/VJcBSqpFTMrN7lWuatfeLGZ5g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TV1c3fBfd0iW7ksM0OtA+n/BF1E77EVsaJRGmQumbZ4=; b=fKMSMOvovo4DLY3jEZHoihyDxImO92QxxbMbjkdVJuTojlJ3abKQK0CJYoG2nj0mg/ 64eywTG/lSvTxkt3it2ZIs7kDxvRrPr2qpH4ggUmq8RhHUJPanpFyx3n/5yIAdld9ZN5 z7MjvBk+FbWxt1kZcvan6j+KFV3KK8n01IK/uM76fwsEUvcGHh+XqufGDJcKaxZZBoLD DmevMI0L6ax45dv5ZT7bLAj7mt3A9Eul1Np61RFFg6ggQD7vSj7bQto3VLq+bLf7l2nk B/M6h3Djtj/SmvP3TNAr4+6SOQbHz+e+cvz95dVIHQmhjvkl+2ULvgJ5f+BmWnetTB77 bKwg== X-Gm-Message-State: AIkVDXJRQeS3r8UBP97iAmobnrLoJGTSb3UxjrL3Ie1eeCBhOwBQiraZ5szg9blwzQsP58dH X-Received: by 10.84.218.71 with SMTP id f7mr20642034plm.59.1484274634842; Thu, 12 Jan 2017 18:30:34 -0800 (PST) Received: from djkurtz-z840.tpe.corp.google.com ([172.30.210.11]) by smtp.gmail.com with ESMTPSA id z70sm8223879pff.26.2017.01.12.18.30.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Jan 2017 18:30:33 -0800 (PST) From: Daniel Kurtz To: Subject: [PATCH] arm64: dts: mt8173: Fix cpu_thermal cooling-maps contributions Date: Fri, 13 Jan 2017 10:30:05 +0800 Message-Id: <20170113023006.150845-1-djkurtz@chromium.org> X-Mailer: git-send-email 2.11.0.390.gc69c2f50cf-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170112_183056_228851_0BB354A4 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew-CT Chen , Javi Merino , Tiffany Lin , Minghsiu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Catalin Marinas , Sascha Hauer , Dawei Chien , open list , Chunfeng Yun , Matthias Brugger , CK Hu , Rob Herring , Hans Verkuil , "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" , Will Deacon , "moderated list:ARM/Mediatek SoC support" , Mauro Carvalho Chehab , Yong Wu MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to [0], the contribution field for each cooling-device express their relative power efficiency. Higher weights express higher power efficiency. Weighting is relative such that if each cooling device has a weight of 1 they are considered equal. This is particularly useful in heterogeneous systems where two cooling devices may perform the same kind of compute, but with different efficiency. [0] Documentation/thermal/power_allocator.txt According to Mediatek IC designer, the power efficiency ratio between the LITTLE core cluster (cooling-device cpu0) and big core cluster (cooling-device cpu1) is around 3:1 (3072:1024). Signed-off-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 12e702771f5c..9a3b0d20f7a8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -182,12 +182,12 @@ map@0 { trip = <&target>; cooling-device = <&cpu0 0 0>; - contribution = <1024>; + contribution = <3072>; }; map@1 { trip = <&target>; cooling-device = <&cpu2 0 0>; - contribution = <2048>; + contribution = <1024>; }; }; };