Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp258215imu; Fri, 16 Nov 2018 02:02:38 -0800 (PST) X-Google-Smtp-Source: AJdET5eVROCoWcpSua5fjimUNLHcXKZHNpQs0dV+j8iLvmT76Vs69qwfkqS3JFpqjTg7Pda+Vcp5 X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr9700274plb.6.1542362557993; Fri, 16 Nov 2018 02:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362557; cv=none; d=google.com; s=arc-20160816; b=sf3H0U7YlK1y9tBa9EkrW4mvGHwmkatWlzI5TXOmjFMS9UddaYUbIM6WW+o2BAtrZw vyLWLRDG+p/gxezA2k/wiXxfdynD/80eewlQrnb9tX2ewHYkX8gckZELeyGDnxewM3A/ gRcfmP8jkH5GyhFMiz9ovG3dJfHk7Oy0Hxmo81OMi4X7VTzN2VPNqSeeomKz8nEEazCN 1jSr0RrX+66pAAsX780ZKJb81C9FDq8l2/fTRD0xOlwqAEtQrxajn6PFbaEiz8G5EsIO XxW6Osi0FaBhvLOFWqR26lmyorEF3izqrpNnQ/PzpugRf+dyPT+bF5HHdwWwxZcCFbBR KwIg== 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=LK6GiW769WFFMCSrW8bZq8d0PusJgT2ioSzhc2edhMA=; b=ScMETp9ryGat313FRWvI4l/aqoJIb7BCIv9NNcGMtHM67BiqU/06tUeL0S7l0Er2iI L8pYVszASzLXstVYJzgYj9VvMB8q3LbGIfiZgxMxlmQBYJwTT+blyNhmsw/etf7Tt3jh dKEjcHyUCWnJNFhd9eDOgsXO1bhI34FosvgOIdDCEZ8q6lEKuiQ7UFxz7RZs3s++zPIe /BnxcqZr3u6RphDcU3UyajTeQ/RaCJFuJ5qguNqZxao51QhmGWDv2Kwkz18M3SVVpnSP Hu5mVGroK/aLGjErJvIROr+d535NEVcsTg/+i8qAX3OccVPqYs8ppnBwHYYheR5F99NY DWZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fq+At354; 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 g23si2411026pgb.229.2018.11.16.02.02.23; Fri, 16 Nov 2018 02:02:37 -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=fq+At354; 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 S2389508AbeKPUNR (ORCPT + 99 others); Fri, 16 Nov 2018 15:13:17 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44488 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389485AbeKPUNQ (ORCPT ); Fri, 16 Nov 2018 15:13:16 -0500 Received: by mail-pl1-f194.google.com with SMTP id s5-v6so10923992plq.11 for ; Fri, 16 Nov 2018 02:01:40 -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=LK6GiW769WFFMCSrW8bZq8d0PusJgT2ioSzhc2edhMA=; b=fq+At354HoAdN09twMtyS3uMc8QXc2XxXLgHQY9WkbhKgkRKwNemxOdQH3+SceMY+m SKk6RGwNyqjv49thLZgJfxIzTLX44RhhOfJ+SJqDtuiDCjrESb1MkUqMz+5EDSEwLDzM InKRhBL9rj1SrpStpMIXCel8q5B66PSAT13EE= 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=LK6GiW769WFFMCSrW8bZq8d0PusJgT2ioSzhc2edhMA=; b=EQ0mrfmud+IUcfbtb0s79BeCBj0zZiyoYzemo6yIKDqP5BqbqjheYggnGdwkdjBiVp BUBirabJM5FeQveE55jTaQGQoZBspcJn0CcFUkkZtSCxABhfPfqLBIiXtPtrZL8lj8f8 3mDytwrzf0XA6Rq9RTbhbMHgSIO3wKkP57+NLfWEAaD3YEakclhHlFpvKo8f3t+otCE7 D7bGQGtmd6GipRI9uWeJ6j63/VggJIXzHSg2QBIn3oz9MfTJPpsnCAKrdSj/ekzG1UFD GjdwU3jJyIOFHv/D0OnDCK1ypCRSIYUp67ogZVIDdAxcjaVcDh8lUB+ljh1aqU+pGPQZ b5Ag== X-Gm-Message-State: AGRZ1gJqXUp+ItdF2dWidLkqk0lZEhNwmq5/HT5KtG6B+lNtGI2Ojx80 NhjK3nRwLhRKAte96v89P5UXwQ== X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr10100540plb.293.1542362499626; Fri, 16 Nov 2018 02:01:39 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id o84sm18959674pfi.172.2018.11.16.02.01.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:01:39 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , Matthias Brugger Cc: Viresh Kumar , devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] ARM: dts: mt7623: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:31:12 +0530 Message-Id: <3c44454d70c9c9bafcf86f2c020d17d048f33360.1542362000.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/arm/boot/dts/mt7623.dtsi | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index d01bdee6f2f3..7cae886f79c9 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -187,17 +187,26 @@ cooling-maps { map0 { trip = <&cpu_passive>; - 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>; }; map1 { trip = <&cpu_active>; - 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>; }; map2 { trip = <&cpu_hot>; - 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