Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp264443imu; Fri, 16 Nov 2018 02:08:23 -0800 (PST) X-Google-Smtp-Source: AJdET5dvoMAmj5lTPeLwcGhKU7f9IIVYJb0yj9yjmXResVfDZEfMsBRasfwAE7Dbt8ECEgIwSCAT X-Received: by 2002:a62:6547:: with SMTP id z68-v6mr10124870pfb.169.1542362903324; Fri, 16 Nov 2018 02:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362903; cv=none; d=google.com; s=arc-20160816; b=iM35a2ovkMxmNU1kAEIvX3+QzwclkuiAUtR0SCTs57PnTFx67tvC36hWaEj3EpB4nz 8AdKDiZPC0/zla00hsEkr5bqBVYQLQAUSEb6WMCt3Uu/6IXiQqA6jN/Y0Nq+dri/bfIA udn6cFZFsS7Z5EvB8mgW3AqJp9GODN3CsUxRAoCa5RmN6A8spEiilT1W5zZC4X26aKjd tSHxacuuQjaA+YGgrKO5DCa8emF1yG0MMDr0L8gUBuaW19Z/3uEREXhgBEsmSVzq4jM4 HGYv8CcMDHpVk/VzFWUwhj7bN9Rt0d5CNQuPnSG+uBhY1dPSeqh2l3zbzNxZkaQr27gQ pCAw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=Ja33JDDokGdW3hOdKYRVP/IerJwF02amkL65l2yxjrc=; b=W+KAXPetqD/LwPD+NslXyjjZRkzmbqpGPPglc0m6+V0OR7eoFflnCYmGxUQ7wEoP8l oeFFuthk+oJYhX2h17qonL53T4xSLMefmjkgmlMMkLSC2/5YKQTni5NLk96ky0dY+yZG iHH7mo8nDVayfOoE5PmOvh8d4EgPMhNB5LI5eLrq5tlpzzj6/G9iI87WZk7AWYcgLjJi qE2dfEMHAMvsfEs9OK5qIxYMyec6ETPLp1ghnJilIVaScfip0nAjoIoderfqfi6e6LEh jnvQSNJ+aP+Ov5lEeE54R0vX6SATzd0gOeHMu3lHBIfKaw59iKqtXYsRZpNQQi9G+tUp +PTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=f1ptuTnE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si30217037pgl.528.2018.11.16.02.08.08; Fri, 16 Nov 2018 02:08:23 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=f1ptuTnE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389547AbeKPUTD (ORCPT + 99 others); Fri, 16 Nov 2018 15:19:03 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51359 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbeKPUTC (ORCPT ); Fri, 16 Nov 2018 15:19:02 -0500 Received: by mail-wm1-f67.google.com with SMTP id w7-v6so21451220wmc.1 for ; Fri, 16 Nov 2018 02:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Ja33JDDokGdW3hOdKYRVP/IerJwF02amkL65l2yxjrc=; b=f1ptuTnEV7tgk32tmlgdclKRNT7jL9jMrKSPZ7dXGLhANSfVQffeoWJLQ0N9vKmIeT LNvKruh2ywDslygHhqiSpgUInEmwZCljWnlW61HG+HN3hBMcDD70F3G2pjH+Am5Zbndx KQFORrmkGavDIYEbdX4OvadG7YM/ucLqqhh9HXMqAcWaWPI6h39+oba3drk9E2/0g4rh 9XUnq4nql4zyZxNgbopnr/DVJxU3tAyZzKlOwraNjmOBENv7ooqYB64wTGG84MJd+TkU h+18NifqFBOwfsn/g0AiUkBxqrzOFvH+X8UijL22cwdTADCLzlCRRoMIkqyOqv13yh94 IYMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Ja33JDDokGdW3hOdKYRVP/IerJwF02amkL65l2yxjrc=; b=ENPbJbfYR+5YqkYeXWil4AKvho2YaI4PdFcw4VRgZE3k1ueDnwx1muDB7VMTQw0n2O 30CIV3Tn9Hs40HrjuEGsJYUqLtsDghuWoIeGm+dgowg3nae/WFZOD+gAx77IJux4nUXP 609yiYawHjX2zqvgGuM6qjbmPLg4NxlztuL4PEYLGJ1q8Q1fH9pwDFX24EEZdDxkmQ/a 0eHL4IiQAU+UqK1u0cx6uKDxQq+KrJHw7Fp2YQ2x12UbDz4KgO5kxxDNzFc+94PysU9D FG/8CoccEFfx3SZdV+0sQctI4kgARgvFQbGkinVGxEbO3krxwUf/crzf+iy8n4KDdTHa qk9Q== X-Gm-Message-State: AGRZ1gKj210udrO/H7aWKo9j8ftL74cP2TtSj6PLXb67JAwgHvIJI6DL 3ay8pi1mxVLu1PJ77csZrHWuOg== X-Received: by 2002:a1c:e03:: with SMTP id 3-v6mr2155777wmo.13.1542362842325; Fri, 16 Nov 2018 02:07:22 -0800 (PST) Received: from [10.1.2.12] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q9sm4534550wrp.0.2018.11.16.02.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:07:21 -0800 (PST) Subject: Re: [PATCH 01/10] ARM64: dts: amlogic: Add all CPUs in cooling maps To: Viresh Kumar , Mark Rutland , Rob Herring , arm@kernel.org, Carlo Caione , Kevin Hilman Cc: devicetree@vger.kernel.org, Vincent Guittot , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <2778d0d4813cc56be851719846afecbab5f2e657.1542362530.git.viresh.kumar@linaro.org> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkEpQ8vwSg5W7hkx3yQ6 2YzrUZh/b7QThXbNZ7xOeSEms014QXazx8+txR7jrGF3dYxBsCkotO/8DNtZ1R+aUvRfpKg5 ZgABTC0LmAQnuUUf2PHcKFAHZo5KrdO+tyfL+LgTUXIXkK+tenkLsAJ0cagz1EZ5gntuheLD YJuzS4zN+1Asmb9kVKxhjSQOcIh6g2tw7vaYJgL/OzJtZi6JlIXOwE0ETVkGzwEIALyKDN/O GURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYpQTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXM coJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hi SvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY4yG6xI99NIPEVE9lNBXBKIlewIyVlkOa YvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoMMtsyw18YoX9BqMFInxqYQQ3j/HpVgTSv mo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUXoUk33HEAEQEAAcLAXwQYAQIACQUCTVkG zwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfnM7IbRuiSZS1unlySUVYu3SD6YBYnNi3G 5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa33eDIHu/zr1HMKErm+2SD6PO9umRef8V8 2o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCSKmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+ RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJ C3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTTQbM0WUIBIcGmq38+OgUsMYu4NzLu7uZF Acmp6h8g Organization: Baylibre Message-ID: Date: Fri, 16 Nov 2018 11:07:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2778d0d4813cc56be851719846afecbab5f2e657.1542362530.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/11/2018 11:04, Viresh Kumar wrote: > 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 > --- > .../dts/amlogic/meson-gxm-khadas-vim2.dts | 22 ++++++++----------- > 1 file changed, 9 insertions(+), 13 deletions(-) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > index 313f88f8759e..cfc92d06a28f 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > @@ -132,19 +132,15 @@ > > map1 { > trip = <&cpu_alert1>; > - cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>; > - }; > - > - map2 { > - trip = <&cpu_alert1>; > - cooling-device = > - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > - }; > - > - map3 { > - trip = <&cpu_alert1>; > - cooling-device = > - <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>, > + <&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>; > }; > }; > }; > Acked-by: Neil Armstrong