Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp217838imm; Wed, 4 Jul 2018 22:10:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdRjH+LvxqMkJ5eVX92qEERyCSC+ds/FlvlRIi25sX8boAMe7j62XtnZpH5UazII10zCub2 X-Received: by 2002:a63:2581:: with SMTP id l123-v6mr4169775pgl.226.1530767444314; Wed, 04 Jul 2018 22:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530767444; cv=none; d=google.com; s=arc-20160816; b=luBiBQzHlEEhJYjs+nsdLpQTjbzZy+kMKE4JTS8SDrl+e+JC55RvibKWSwFes366Go PiVHLYwQBvNN611MeYGBzsUi/DICagOUxoIZ95Et19OGfOYcPokqBIFQEgGUJJyQWKN+ C6Gp8OphXqAeN8LUCBltyeMfmroMiwd4bFge2XL4nz2Y4wIPQnYb8/NAKduFvHAkRX/L bmUCv/jUoej5Rgw5QLv3Bf4lBODHE4n3pRgRAV367L9GjqCLg4ZAiMlZsqLnnWfz1wAt XkVLur8ZfyPWQrNpFfQKce4/08laG2f8IYCbFb53e0Nj4bDUP3wfAWjromJUN7XsiKqr J5cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+5ItNYTYeiKz+mT0Uq7k5mUE+h7almHMaSv0njAJGPc=; b=gFhmsfu/uMgBC946gNVapEOk/q5/YqorvVa60TiwMyuXp4wpjk8yL2RaA2PBHoMLc6 ypQUs0gvpYLqmHqPdy2EE4j/xu3+LnEMVeUh0Awgj/73touMSfTqpblxWmPzaHNsbAQ5 LL9BrkfBZwcyVVlEy5MhSPo+vvsLhumrc/dzSNX+Y2fhehljodakBgOvnr11v72oKQkE 6EvwllkoZtsWcFa3upkehCXERU0h+wiRBUvnW6DEBvqYos+LVgB35bTbeeUJymd4G+uV MnCNDHhzGaYEjaXArvnUO9CtoaYG8MvQQY2M2uzIYW5TXPYMOI9DeUnuo3Rtinpb6ShH tQ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="C1B6R/Qi"; 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 92-v6si5157148plw.102.2018.07.04.22.10.28; Wed, 04 Jul 2018 22:10:44 -0700 (PDT) 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="C1B6R/Qi"; 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 S1753177AbeGEFJm (ORCPT + 99 others); Thu, 5 Jul 2018 01:09:42 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45610 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbeGEFJf (ORCPT ); Thu, 5 Jul 2018 01:09:35 -0400 Received: by mail-pf0-f194.google.com with SMTP id y24-v6so4312765pfe.12 for ; Wed, 04 Jul 2018 22:09:35 -0700 (PDT) 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; bh=+5ItNYTYeiKz+mT0Uq7k5mUE+h7almHMaSv0njAJGPc=; b=C1B6R/QiTyttjB+gnxPIQfMOeSYwVVfnSeY4onNWi6WmZ4DTgRecmoX9QKinq8HODh sug3aU2uKP0C+2tj3WA+GE/aAPhkD0kQea79sOTWq0btUo8uDSgagQ4MHUz2dB6vg8lq p8RLTYovNwyyigN+Ku0KcHBXqVqtHRFVgNUxE= 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; bh=+5ItNYTYeiKz+mT0Uq7k5mUE+h7almHMaSv0njAJGPc=; b=P1UO/ivWffoRL7Bm/ZNJO1/zXJdMVPa5nrQvPpEG4GoJ/NZ2jA7ZBL5QxWdSazcT+2 oswTSCdLMZL8PCJEgstgT1YtVPMbn4hB512Oth2HwxKiFbqwmEsqDdRj6eqSKiI5bM4E 4gK1q522OODLA5q7BGdTBEdv8NHgPwO/tNuzNRBBHWFvPcO1dipdsa+67YLtI+QXd4VG CCkhuONE9btJlOPmlUtROhqpi2so9C5GmEGwo0sKSINVTUzaBhqkzmYQwRZ86dd9RsSY JMm9lgAUvOUYMWLLrpmLVaXDP1ruv36fqj7r/L9YsZoI0/A0OTOAGXY1E6UdtNwTXmXy 9EAg== X-Gm-Message-State: APt69E2s36h5Gi3FPfEDCTkhEEx7D1jLgh4ia5lyC4oVl9ZilhTv2Qvy Sx6k1wh5RkWrq7Sl7m2gi/TAiw== X-Received: by 2002:a62:a05:: with SMTP id s5-v6mr4791283pfi.147.1530767374020; Wed, 04 Jul 2018 22:09:34 -0700 (PDT) Received: from localhost ([122.172.117.17]) by smtp.gmail.com with ESMTPSA id s22-v6sm8983090pgs.34.2018.07.04.22.09.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 22:09:33 -0700 (PDT) From: Viresh Kumar To: Zhang Rui , Eduardo Valentin , robh@kernel.org, Wei Xu Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Daniel Lezcano , devicetree@vger.kernel.org, olof@lixom.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: hi6220: Add all CPUs in cooling maps Date: Thu, 5 Jul 2018 10:39:24 +0530 Message-Id: X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a2c In-Reply-To: References: 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 the CPU0 in the cooling maps. Things work by chance as under normal circumstances its the CPU0 which is used by the operating systems to probe the cooling devices. But as soon as that ordering changes and any other CPU is used to bring up the cooling device, we will start seeing errors. On the other hand, the hardware is partially defined in DT in these cases and we must do a better job by capturing all devices. Add all devices (CPUs here) in the cooling maps which are also affected by the trip point. Signed-off-by: Viresh Kumar --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 247024df714f..919d36b91bf3 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -886,7 +886,14 @@ cooling-maps { map0 { trip = <&target>; - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; -- 2.18.0.rc1.242.g61856ae69a2c