Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp262498imu; Fri, 16 Nov 2018 02:06:27 -0800 (PST) X-Google-Smtp-Source: AJdET5fwh00pDtoq6pZbVxqEpYspKnWkPURfMFcC5GU0E4yBe3kS5tZ1MIL2p6u9VL3cN+cc4FFn X-Received: by 2002:a62:c20b:: with SMTP id l11-v6mr10622728pfg.251.1542362787608; Fri, 16 Nov 2018 02:06:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362787; cv=none; d=google.com; s=arc-20160816; b=Vc3DC690FJMrPWtx1Tb8nAT+/rBHvJtJwM+RMslVcQwVbRtSR1uw2rrchQ5Fa5sbLz qq8j3k3OVukNoRk2fdlaSEZrvPKZRzkjI2lae1VAX5gFe0ATpdsIvJY1AxRJzhkAYjXQ 87CMXLj3rQS2LtrNoKyTcXu/sGoQyExq7mh1Ht3kMM8B2DvtduaQX7UWc1XZiGRLx5Gm iKfnALqBAz56PwhZv1hG9utL00gPFLCXq68PwL8jYff7Upf8NhkkYVeonmM1fXzPJKY9 qC4a7qPVq6ciYUXkYrhSyg8pU0AHtZu2fL6Sj5DX0TmtkaOA6EmKisicyebgKBROUXc3 MIMw== 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=HuDFUrU28J59C1sp5glUdfijZEsUqR6FAQUgWuELHt4=; b=OtO7fEUvoSZUYwz6V3SwfhNtjq1AvOIdlGsVl1tqDepFBHcHZ4VPEtk/l7IJ74D0Bi bAqmao+Pp+ZYnyNDYd69twXW7UxwxgBjlAmMnwMFlbdNvdXZn74ijz9VNVXwsDoTd0RI mY0Inw+0LWfGXISvGD+kUOhDKt1Le50Jja5EmIKa8It3r58RLuLL13jnCJ5Myns32Z0z 6W7R4RYlX+GrdK2Q+Lkfhh/cPzAiuen30tL+ZRRfrqkBqBJI8aJcrQd0MD6kF16em80o TesBEN7dsnyomyQgOX9A1AF8HzOYd/pkm+dRXwMbt48gtBJjhN4+fp1j0I7II94gCK0c DGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqdsL4I1; 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 m9-v6si27677382pgi.580.2018.11.16.02.06.13; Fri, 16 Nov 2018 02:06:27 -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=HqdsL4I1; 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 S2389601AbeKPUQ5 (ORCPT + 99 others); Fri, 16 Nov 2018 15:16:57 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33971 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389436AbeKPUQ5 (ORCPT ); Fri, 16 Nov 2018 15:16:57 -0500 Received: by mail-pf1-f195.google.com with SMTP id h3so4635881pfg.1 for ; Fri, 16 Nov 2018 02:05:19 -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=HuDFUrU28J59C1sp5glUdfijZEsUqR6FAQUgWuELHt4=; b=HqdsL4I1tJ9nEYhjZeVAExIPh2XFK7J0bCcMgpeAYiWvOIi27WouWHqsYtCaJ6z1hc wqGYfgkJxX3PX1+58Oxj5bzXZw9PFuBmVpMxJ7dM1H9AOyc/KI9HoqAQM5e9bc3xWZOz TodNwflfBk/2lqobqd23l3p6RBUKVucHrA3ho= 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=HuDFUrU28J59C1sp5glUdfijZEsUqR6FAQUgWuELHt4=; b=qYccK/ExyaYAGJcA8vxkXMdxKe4mPmg2jhsqKztHs4B598K/V3+SNdErRrQzVCrJtK 5o6Zm3fwqYh06aBu3zRpq760hhNvR8OVezxkAM/nKEZf6MvR8Fg5sRTyhF6Ow7wWk8I3 KCRUuFxI3M+/SoFxXs/dv3eul4dPB8LoG2ozJmUmHyRLUf1AtszwM70fmeUPhK1gO1xs 9TKUUFh4T937gfDPOUnetj4zHtZ3QSK7RO2z1xJbiMyknp3s4cczcisoVC6bGBLdyIXD LJepGXt1I0lot/EJxrE2FYilgIFops3Z0r7BdE+g8N5DYR7QFyd1riUmzgG+Tfafj/iS suug== X-Gm-Message-State: AGRZ1gL8dXTEMiNL3vQd3yewg9wGVoA+Z28c10mxmnmPnV48RdSFxfsm lfjOldljiZlBst1ttRUTYrHr6A== X-Received: by 2002:a63:82c6:: with SMTP id w189mr9454796pgd.344.1542362719182; Fri, 16 Nov 2018 02:05:19 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id t26-v6sm48373412pfa.158.2018.11.16.02.05.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:05:18 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , arm@kernel.org, Andy Gross , David Brown Cc: Viresh Kumar , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] ARM64: dts: msm8916: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:34:30 +0530 Message-Id: <01bb903b2febf4b006f28fad33308cc8084ccbaf.1542362530.git.viresh.kumar@linaro.org> 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/qcom/msm8916.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index d302d8d639a1..482e275f0a03 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -202,7 +202,10 @@ cooling-maps { map0 { trip = <&cpu_alert0>; - 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>; }; }; }; @@ -229,7 +232,10 @@ cooling-maps { map0 { trip = <&cpu_alert1>; - 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>; }; }; }; -- 2.19.1.568.g152ad8e3369a