Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp262606imu; Fri, 16 Nov 2018 02:06:34 -0800 (PST) X-Google-Smtp-Source: AJdET5fNmnTl9EBqw841/qzRlakNZ+2RWYOJD7c7Q7JOAgfAyv70CHLSdkcg1RmAA5x3oLUkNgxD X-Received: by 2002:a62:798f:: with SMTP id u137mr7511116pfc.168.1542362794125; Fri, 16 Nov 2018 02:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362794; cv=none; d=google.com; s=arc-20160816; b=RxwcnRm5t4mjR8Q3S8cFU7+4VXpMMQco8ZrkJiLVpn8l1jL8LlxGjMLCyHfrP2rbeL GEQ5hstKSOqK4ye/QDJzzoiFc5sesTxJVnDvwhidmcKsu1HrJXtgcrZoAnNFxIst2JLP w6pUQp6BCRwLzqnVcQGdUsg4b2zC9ij7/lC0BT0VSdCEYkFmB3Ngv8oTcmdapNtceECu 3LsyhF2uLqpRsNIJfa22F+Mh2mXrISLOCiWV4D27Dj6ql7L6Bs7cyurgWEq+B1nNQLIr tcT52NhLLkHlSUKLxVHYSpvEw80ids+BIiIvIE2lYXlzAyQWIWOFZi2DoBUXNX7eM+Og nejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SF62PrzKsc3DFSelUulAf5/CE9NMeGCTdyY77HTuy1c=; b=X7R6F7odvGz5B5vRC4puFZmxSoTXpcxvqjXkrjU7qO3Mrwty6t2BLT+xhaO1RBclk1 kf3sPxhggH5bUdqfp83esxFomEEbOVAtyGbcO+2Z5WMuNT2gNn2KEPV3Ar73BOtZQKXm XTSfbscnezurOamE14/bHTzH/mfRnLU1YgKUsN4pogbD1A9vMvvjHX+Cl6Nl9YQ2h28d TmmSqlAy21LNmRMikp5nmeixYKYIPUUVGbnAhWxYNhZcg3gZ3rHQSqnNl4fQTgszajwA 60paHt3aHCbQELoYviuMAIDaO4MP/5x7pjdNDhxsnqQFJ1/K4wzD9rdIufCIWNTrBHQB yZcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PnpCbbhT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si12337768pgl.108.2018.11.16.02.06.19; Fri, 16 Nov 2018 02:06:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PnpCbbhT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389616AbeKPURC (ORCPT + 99 others); Fri, 16 Nov 2018 15:17:02 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36770 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389436AbeKPURB (ORCPT ); Fri, 16 Nov 2018 15:17:01 -0500 Received: by mail-pl1-f193.google.com with SMTP id y6-v6so3374821plt.3 for ; Fri, 16 Nov 2018 02:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SF62PrzKsc3DFSelUulAf5/CE9NMeGCTdyY77HTuy1c=; b=PnpCbbhTW06C0H0dmVz2PQDq+LdWEyZzDI+ZgwXXfb6wI7dbqTUiEw94Mwr/E4LoMc V+U3PTjh02eBJW5jd+RWoMOA9XgiSQarp7dTK9y7zpBDVwlGDMm/VLI7DZvtG+RwhvsR VLw1jZupl3w/fHsQbTjVOr0fNbgzu92fqrp3o= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=SF62PrzKsc3DFSelUulAf5/CE9NMeGCTdyY77HTuy1c=; b=HiL17cQE6oPEyfoT8zPWv1fekFjyW9++vZcKZFOkQ6jb0XwyblRHbp4uIb/OPwkBOR zv/IziWKfNlUHm4kUMMSTkG3VlCZACzh8Gw/lqsX9IN13W/imaaVby8hQFEDb/v+9yxi vqXh04wVW8fcXIpLMMyrKjTdNcM9rZsEhZnCi/SGnC5XgqJS8S6arW2z2nvYEQsFjPCl bPN32V3HQ+Qm0sz3HkGpMtZitqSXZxQ0b+j5cBRGDbJcWlhwkjZClxdXLEoH/Ii2VRLo RUrlxqCFbd86/JrpGHlhxyMJKQ/PPa+ZCedF4Ts1z+XJECNawM1fNstUdv5udTD8TGj3 pX1Q== X-Gm-Message-State: AGRZ1gKff+0uH53rx86RW0bHHedBepnZjygAlqYzY8BKdIHXkd6yI0vC pG6m8nD34GYwYJEvZ7JfJewHfQ== X-Received: by 2002:a17:902:3143:: with SMTP id w61-v6mr10080122plb.58.1542362723769; Fri, 16 Nov 2018 02:05:23 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id q145-v6sm97195004pfq.143.2018.11.16.02.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:05:23 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , arm@kernel.org, Simon Horman , Magnus Damm Cc: Viresh Kumar , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] ARM64: dts: renesas: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:34:31 +0530 Message-Id: X-Mailer: git-send-email 2.19.1.568.g152ad8e3369a In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Each CPU can (and does) participate in cooling down the system but the DT only captures a handful of them, normally CPU0, in the cooling maps. Things work by chance currently as under normal circumstances its the first CPU of each cluster which is used by the operating systems to probe the cooling devices. But as soon as this CPU ordering changes and any other CPU is used to bring up the cooling device, we will start seeing failures. Also the DT is rather incomplete when we list only one CPU in the cooling maps, as the hardware doesn't have any such limitations. Update cooling maps to include all devices affected by individual trip points. Signed-off-by: Viresh Kumar --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 15 ++++++++++++--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 6 +++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index a79c8d369e0b..3a662df32143 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -2878,7 +2878,10 @@ cooling-maps { map0 { trip = <&sensor1_passive>; - cooling-device = <&a57_0 4 4>; + cooling-device = <&a57_0 4 4>, + <&a57_1 4 4>, + <&a57_2 4 4>, + <&a57_3 4 4>; }; }; }; @@ -2904,7 +2907,10 @@ cooling-maps { map0 { trip = <&sensor2_passive>; - cooling-device = <&a57_0 4 4>; + cooling-device = <&a57_0 4 4>, + <&a57_1 4 4>, + <&a57_2 4 4>, + <&a57_3 4 4>; }; }; }; @@ -2930,7 +2936,10 @@ cooling-maps { map0 { trip = <&sensor3_passive>; - cooling-device = <&a57_0 4 4>; + cooling-device = <&a57_0 4 4>, + <&a57_1 4 4>, + <&a57_2 4 4>, + <&a57_3 4 4>; }; }; }; diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 1ec6aaa520c1..dd95e937f87a 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -2526,7 +2526,7 @@ cooling-maps { map0 { trip = <&sensor1_passive>; - cooling-device = <&a57_0 5 5>; + cooling-device = <&a57_0 5 5>, <&a57_1 5 5>; }; }; }; @@ -2552,7 +2552,7 @@ cooling-maps { map0 { trip = <&sensor2_passive>; - cooling-device = <&a57_0 5 5>; + cooling-device = <&a57_0 5 5>, <&a57_1 5 5>; }; }; }; @@ -2578,7 +2578,7 @@ cooling-maps { map0 { trip = <&sensor3_passive>; - cooling-device = <&a57_0 5 5>; + cooling-device = <&a57_0 5 5>, <&a57_1 5 5>; }; }; }; -- 2.19.1.568.g152ad8e3369a