From patchwork Fri Nov 16 10:04:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 151323 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp229246ljp; Fri, 16 Nov 2018 02:05:36 -0800 (PST) X-Google-Smtp-Source: AJdET5fdTIvLUgVp/91y+DZoDC8TfNMwnSmUyjzeCTB+U8KDsr64Qi60NG+gQzmyhVj5KgcTn4Sr X-Received: by 2002:a62:29c4:: with SMTP id p187-v6mr10346614pfp.62.1542362736143; Fri, 16 Nov 2018 02:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362736; cv=none; d=google.com; s=arc-20160816; b=u5OAK8XfT2Vamc4rIefBRY2/CKYCS3dCMKocHI7ntT7mlcOADy5Rtt5WkRC0LRX9LA t/ud4bvXRPmrqO6s6tzHVa5jSP2szKr7s3l6yu7w4LO4MrHUWRGKl0F1C9b2UcHDB2Q7 kxR+26n/vNWJglr3gQHkul+Q07SXOvYfTw9W1iV15krtFpn2LsmcZ5lIFOlnaYrNaG9S +E/WWw6XitSJD1ibQEg1hGTfD4GlAfrZdbunFB0bos9S7JMiAftSaBGtfa0Pd3qwKEhn TNtm7pdCTDJ/Cs/JgkJ60po6r8ysRebJWc2KBktiw8JIfvcbdjRE3PACJfXBYjyA8iak cdNw== 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=KuQ2y36Xrogh3AFeo+w7wq6zdpbFBC/erJbwrEPtLJs=; b=sR2kU0ARcswf8j+iD2mI9yvmB5c0m2sx9uwrjZ9IwaQeYzxz/+vAtPd7DNfz7tF4Rh 7oLAeT1yQv7SozHJkTG3g0ulH13AK6Nk84xkMMK5pXvDbsoKHZaV37g3hZuTn7OwUUUu LFtpBGHrGYqM1EEFR9KLU18g3J2bGuhXcc/ey8/YcUVQO/Nwy0dftMhkNR8ZthhBvYd0 TQMgQcD4pPZ61FgAaaJdGrGqnh0myiHrb1c256C+pYqtgKMi/jtfZJ2RnG9rzbC83Wyy RzkPi03/VUcDlwb1IeyOCl1RN2ApOs4oyjRlO+/5ucXoqwCaiKzrGtn36kbylilPKqEe UMRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jW92B1Vz; 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 d17si29158781pgl.484.2018.11.16.02.05.35; Fri, 16 Nov 2018 02:05:36 -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=jW92B1Vz; 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 S2389648AbeKPURL (ORCPT + 32 others); Fri, 16 Nov 2018 15:17:11 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45659 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389504AbeKPURL (ORCPT ); Fri, 16 Nov 2018 15:17:11 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so10393171pgc.12 for ; Fri, 16 Nov 2018 02:05:33 -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=KuQ2y36Xrogh3AFeo+w7wq6zdpbFBC/erJbwrEPtLJs=; b=jW92B1VzqoIqDzqfecPcu+sFg3tYWXLZGvNmhlicA/IAPUk2KrDwq6Cd/dXpVmP/Ch tc8tdaerC+mPnSf3WEy6lguWwJvNA8r2ShnOFqXsyYp0ajfqyXaQMmd3DuZxDcpGVjul t/MXnPBObHOJLawXqGPkrM4efmpv8szog/bXc= 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=KuQ2y36Xrogh3AFeo+w7wq6zdpbFBC/erJbwrEPtLJs=; b=E19ppKjgRZW2NZMD0fgCUM33MtUXWRGmC4kqCFw7d/CzNTxI6vDDwuBemvizVyuIL3 MIpVFgEMb6F7ssDkgnqu2LRF0CrGNxFnO4c4hz4LdBvKMngC3sQ7XxRAbndmEl3L3tyi RSCyA5zY7Z+IQNP32jlrHJK64O6OH0Jbi/m7c9VUETHWKTUr9WZpYjjG6zHbd0kEVUov ySHiNwwyx6bR5f6CyJENIKnS7wxqpqp2B5sXCNNml+r3RedYJTNl9WfxG0tPeIBXWIr4 U0Xg1NSbtVvTNDnRtRMMp/W8juo/Fq4snOit04qm0sJkYE2FPvaLakPReNHS3CMhwSmw ARYg== X-Gm-Message-State: AGRZ1gIYerG+WpWYR5QR5QxtieudL4a/VE8OrBhpldAXEH0iuINPZ5oI nijVupvrASMLkjX9IOvxyyxTeg== X-Received: by 2002:a63:5153:: with SMTP id r19mr9270294pgl.281.1542362733085; Fri, 16 Nov 2018 02:05:33 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id 79sm29801208pge.66.2018.11.16.02.05.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:05:32 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , arm@kernel.org, Masahiro Yamada Cc: Viresh Kumar , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] ARM64: dts: uniphier: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:34:33 +0530 Message-Id: X-Mailer: git-send-email 2.19.1.568.g152ad8e3369a In-Reply-To: References: MIME-Version: 1.0 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/socionext/uniphier-ld20.dtsi | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.19.1.568.g152ad8e3369a diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index d7e2d8969601..4a0c46cb11cd 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -206,13 +206,10 @@ cooling-maps { map0 { trip = <&cpu_alert>; - cooling-device = <&cpu0 - THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - map1 { - trip = <&cpu_alert>; - cooling-device = <&cpu2 - 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>; }; }; };