From patchwork Fri Nov 16 10:04:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 151315 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp228550ljp; Fri, 16 Nov 2018 02:04:57 -0800 (PST) X-Google-Smtp-Source: AJdET5eYu/L+L+6CZwt5exCxDkBFeV8qI+RXyK4HeMgl1tL/vCCxnaXlW2dLTKglh8ZcGFcRKWw5 X-Received: by 2002:a62:9a09:: with SMTP id o9-v6mr10644241pfe.229.1542362696920; Fri, 16 Nov 2018 02:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362696; cv=none; d=google.com; s=arc-20160816; b=lziFBhPTgD+I83N2TOrUA2U22Q5Dk4CNt2tD7fwcy9t2G/vBXUaYEvkQA+6ICejE1R IrnAPuqJESoQT37QhmJFcvGMy18uJbUy3OKBACf8qucKMRUyDnf8c0MaTYYdbMcD4nR1 U+xH9iNVii8JrLBqY7+k7hPLxX5g1sE7dB7rm7Yc1H5WX2l1o+vZhA0+y9OkIiHVuHfx gQAzwSu3zPvtfivOPU5j/aFAJkbbGPcX11Vy0l5lmtDLSP5Gz0lEbpAoGpkaMPTO0lv3 ODH6w3PqnzuQ/pihViC5DVh9F7oetmWNmnCiK6TFiadELsib8WyLpIdVcJZ4qRRpgQWi gsVw== 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=ZJ2Y9BTKWZeThRTPqw9iFrF+TUyLNKnmOqI9tUW0Q7o=; b=fPT73MQMotLdWiW3jUjyitnrDoUvppdLwSLYacIAAL8sgIwoMC+dx9My00k8Hb2VbX njNCFergvbOixslQlYL2RQXOdo52LMcMQ4RH111vDWKt8J2YW67oXofhnIcnQuk0kdgV eU+ZM5N6VvHGcB1LK7CabzYISYQV6Q+5gaMvJiaC4+1CrkLZSMns2KZgf6sHllpDjSz1 FUwqz7ZfTD3t9SxReUrrNSnuFybKqbkJGRbTSnblJpAm75x1gTC3gdyS3qIvl/gMz0iM 2zeWKsDHMi1kv4R9JqzJ+PrWHKBiakJJXSwKhoeAe07Zxyj4SM1kpjnAYixVmDo7EUev CukA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hgww5nzd; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 132si30672194pge.141.2018.11.16.02.04.56; Fri, 16 Nov 2018 02:04:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=hgww5nzd; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S2389504AbeKPUQd (ORCPT + 3 others); Fri, 16 Nov 2018 15:16:33 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41391 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389503AbeKPUQd (ORCPT ); Fri, 16 Nov 2018 15:16:33 -0500 Received: by mail-pl1-f195.google.com with SMTP id u6so57997plm.8 for ; Fri, 16 Nov 2018 02:04:55 -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=ZJ2Y9BTKWZeThRTPqw9iFrF+TUyLNKnmOqI9tUW0Q7o=; b=hgww5nzdpOv5drIV5f/VTRQQbmLzNZ42o9EZrxtK2aBGiTp7aDszcflfrQ2NbuA8HG qFZydP1nEg7ZXwPLSLpCsBt0e+pT8A36sKcHw/+PghrrI85hpzt4DZ+sI6lOWREXpMii o6ZnWGXimOUqXJf2kmQdgW0rgh5KcTXiMRpl8= 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=ZJ2Y9BTKWZeThRTPqw9iFrF+TUyLNKnmOqI9tUW0Q7o=; b=Rh7v9J+EtOOd5vSJqe8TwXRHj6RM33hoSztk5b9HZSuPCy7vhHm7UI2HAxAPleYaaT Z2Eh94BVVH0JX+RzAOhIpvbwHjZgxiy+wfrkZ6WMk//seOYEUhxBnBoApX3VY9C4Mbdi uwfv+oKtocFpwESNKx1GoYP6vTOvyvjlHaBHKKFtIpJeKmb0iN48cQHHMS9YdSxYCPbA R3Xbc7W4BLqanUKol8OAOxD0tkibjSTWb6xp26Cz6epcyuLLo/+UpIsWC7h4kdVLCSuH fCJoKQC9HXc1qsg3oQe1VovOZyqNDzj5vHZAjUDrkRNu6vAslY4nwXpbx3teaa/TCZsQ kaTQ== X-Gm-Message-State: AGRZ1gKYluCObNH+btMLvmLcX2poJSWKU5iPK6pdnT5ajBVOvFMhfBmN DyZCMaz+dZLmHNxyjHBIWoNwfg== X-Received: by 2002:a17:902:6a3:: with SMTP id 32-v6mr10371947plh.337.1542362695231; Fri, 16 Nov 2018 02:04:55 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id h7sm25746283pfa.105.2018.11.16.02.04.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:04:54 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , arm@kernel.org, Kukjin Kim , Krzysztof Kozlowski Cc: Viresh Kumar , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/10] ARM64: dts: exynos: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:34:25 +0530 Message-Id: <74e23257aece9ceef48b1c1cf6c9bafcce3c6fbd.1542362530.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.19.1.568.g152ad8e3369a In-Reply-To: References: MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 --- .../arm64/boot/dts/exynos/exynos5433-tmu.dtsi | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) -- 2.19.1.568.g152ad8e3369a diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi index fe3a0b14bee6..81b72393dd0d 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi @@ -55,37 +55,44 @@ thermal-zones { map0 { /* Set maximum frequency as 1800MHz */ trip = <&atlas0_alert_0>; - cooling-device = <&cpu4 1 2>; + cooling-device = <&cpu4 1 2>, <&cpu5 1 2>, + <&cpu6 1 2>, <&cpu7 1 2>; }; map1 { /* Set maximum frequency as 1700MHz */ trip = <&atlas0_alert_1>; - cooling-device = <&cpu4 2 3>; + cooling-device = <&cpu4 2 3>, <&cpu5 2 3>, + <&cpu6 2 3>, <&cpu7 2 3>; }; map2 { /* Set maximum frequency as 1600MHz */ trip = <&atlas0_alert_2>; - cooling-device = <&cpu4 3 4>; + cooling-device = <&cpu4 3 4>, <&cpu5 3 4>, + <&cpu6 3 4>, <&cpu7 3 4>; }; map3 { /* Set maximum frequency as 1500MHz */ trip = <&atlas0_alert_3>; - cooling-device = <&cpu4 4 5>; + cooling-device = <&cpu4 4 5>, <&cpu5 4 5>, + <&cpu6 4 5>, <&cpu7 4 5>; }; map4 { /* Set maximum frequency as 1400MHz */ trip = <&atlas0_alert_4>; - cooling-device = <&cpu4 5 7>; + cooling-device = <&cpu4 5 7>, <&cpu5 5 7>, + <&cpu6 5 7>, <&cpu7 5 7>; }; map5 { /* Set maximum frequencyas 1200MHz */ trip = <&atlas0_alert_5>; - cooling-device = <&cpu4 7 9>; + cooling-device = <&cpu4 7 9>, <&cpu5 7 9>, + <&cpu6 7 9>, <&cpu7 7 9>; }; map6 { /* Set maximum frequency as 1000MHz */ trip = <&atlas0_alert_6>; - cooling-device = <&cpu4 9 14>; + cooling-device = <&cpu4 9 14>, <&cpu5 9 14>, + <&cpu6 9 14>, <&cpu7 9 14>; }; }; }; @@ -222,27 +229,32 @@ thermal-zones { map0 { /* Set maximum frequency as 1200MHz */ trip = <&apollo_alert_2>; - cooling-device = <&cpu0 1 2>; + cooling-device = <&cpu0 1 2>, <&cpu1 1 2>, + <&cpu2 1 2>, <&cpu3 1 2>; }; map1 { /* Set maximum frequency as 1100MHz */ trip = <&apollo_alert_3>; - cooling-device = <&cpu0 2 3>; + cooling-device = <&cpu0 2 3>, <&cpu1 2 3>, + <&cpu2 2 3>, <&cpu3 2 3>; }; map2 { /* Set maximum frequency as 1000MHz */ trip = <&apollo_alert_4>; - cooling-device = <&cpu0 3 4>; + cooling-device = <&cpu0 3 4>, <&cpu1 3 4>, + <&cpu2 3 4>, <&cpu3 3 4>; }; map3 { /* Set maximum frequency as 900MHz */ trip = <&apollo_alert_5>; - cooling-device = <&cpu0 4 5>; + cooling-device = <&cpu0 4 5>, <&cpu1 4 5>, + <&cpu2 4 5>, <&cpu3 4 5>; }; map4 { /* Set maximum frequency as 800MHz */ trip = <&apollo_alert_6>; - cooling-device = <&cpu0 5 9>; + cooling-device = <&cpu0 5 9>, <&cpu1 5 9>, + <&cpu2 5 9>, <&cpu3 5 9>; }; }; };