From patchwork Fri Nov 16 10:01:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 151312 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp225269ljp; Fri, 16 Nov 2018 02:01:55 -0800 (PST) X-Google-Smtp-Source: AJdET5fptpPc0ncdTnbsQnnH/HricR4zqz32stYiYVU/jY5q6eBa0bgAsMD4cvF9Dk6HwzLDAG7T X-Received: by 2002:a63:ba19:: with SMTP id k25mr9306053pgf.194.1542362515136; Fri, 16 Nov 2018 02:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362515; cv=none; d=google.com; s=arc-20160816; b=Tn3FUdMR7/DtY+XQ4yalUTlzfqpmL1451iiyUOW0kxpoGWp+jVez451LBbTRCxjSIs Z85XwoTsV6NRopeMMrC+KmbiR0kPx1YJFiv++hCNLLV2pPn+kwiCWQJfMk0Tz3J1AeZx rngpqYeFu7lOWSDDsxcalx2i3/o0eHR43VltFcrNFnqhxhktr9bcGT+xKmmA6u6g/ybp O5NBBoyHdBHKhZNHtlsAHnJPgXPuQRB7A+ZjfpbC7QvsRUy2YPPRtRAJWkplFNe9/r5c N1mDp3FRilXgAkieDy4WviZMftFNsvuQ7rYbyWX3q6ILlPDmEw9W8pVpswKPtwDeABWp Q0sQ== 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=E163C4a21s93kfgzU/fG9cKlenfPzM5SxGYZubHyS8Q=; b=VL/dVkZ0ba7XhXvB84XdzAWrz5irEbexb2Ne2DEm4ePCaokKCjUNDeM/Lx8NdL+FdR svfVwYf5WjXBw/yQ7b19/k36+FKuY98ldG4cqYB4dNMLBIVI7HJkcbtO5qrgn8HW/BmO zB2GeHkgMmw0GmXVhzsQw8eN+4R4hyrpaC8185QhER9FnJ9a8FyDFHB1h8MJyQcl0ihD +kJCiTnbLdYaiIPOApk5T8tqs5hD55adgsQ3EM0Sb5/boSwcLw5zg7kNSTPjf5JzhqDZ q+ds/jW7WGPiVo4h/24tMCr39UZcW8w6JuUXLvTMGDh4n8SwGkaxad99w5c4/nPtUfm4 j5fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AmzM6Ijy; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x136si13382149pfd.75.2018.11.16.02.01.54; Fri, 16 Nov 2018 02:01:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=AmzM6Ijy; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S2389532AbeKPUNa (ORCPT + 6 others); Fri, 16 Nov 2018 15:13:30 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45411 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389550AbeKPUN3 (ORCPT ); Fri, 16 Nov 2018 15:13:29 -0500 Received: by mail-pl1-f193.google.com with SMTP id a14so6338390plm.12 for ; Fri, 16 Nov 2018 02:01:53 -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=E163C4a21s93kfgzU/fG9cKlenfPzM5SxGYZubHyS8Q=; b=AmzM6Ijyw6T6dd8GJlLZC+rWVmROCPYvspgH88Vq9493kNczdSqTXDemYbdJ1PoPzp LWcF4bsRzX9049AeZmzF/cGVX9R3ppozpMeVyHvu3CCaqTOsR7e26mTuaLul9jBXb3cV RVeWj0ZfErRql1Nl/j44rcR4Bp1EW3Tu18kmQ= 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=E163C4a21s93kfgzU/fG9cKlenfPzM5SxGYZubHyS8Q=; b=Ff6QDiDu8ZtFSc5LhKkC4Kg5AJfc9+s/8jNPxEfH7S2hqo2eOvQFwC64sJ2TB7sw8J 8/ilYJ+mYKUZs3Pgb2dIPIOXTt9ZDBjpTvUpGCkg6lz/sJZXZ33DE7ip5dsZFGxcCYeF oxp2jZ5EnNoaaWMRVc2v+FLvRm426qNY7s+0kLu/QywysrX/BxDM0vPXMdb8gwHErvyu 06JV16qVSkmrOZhnB6EaOCpT9oztXueeOPlmF0l/CbX6HlQRXhZFsOO6Hw03oKa0zfxU XaXwWbnLzDLJtnDpWw8Z9WcUl0C7LEjDzdLA/P4y0VplkPgBUHrx93r0XwkwfO46Zq5r Xu9A== X-Gm-Message-State: AGRZ1gKfNG2GYvQlXON4a9GwXV3h4KenwdrxCpIl04J4khGytwe+g7Id JTz96u8kq2lD43mSJQnnfQmfdw== X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr10290565plo.183.1542362512599; Fri, 16 Nov 2018 02:01:52 -0800 (PST) Received: from localhost ([122.172.88.116]) by smtp.gmail.com with ESMTPSA id 124-v6sm75274216pfb.132.2018.11.16.02.01.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 02:01:52 -0800 (PST) From: Viresh Kumar To: Mark Rutland , Rob Herring , 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 6/6] ARM: dts: uniphier: Add all CPUs in cooling maps Date: Fri, 16 Nov 2018 15:31:15 +0530 Message-Id: X-Mailer: git-send-email 2.19.1.568.g152ad8e3369a In-Reply-To: References: MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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/uniphier-pxs2.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.19.1.568.g152ad8e3369a diff --git a/arch/arm/boot/dts/uniphier-pxs2.dtsi b/arch/arm/boot/dts/uniphier-pxs2.dtsi index 8d20e9548e39..06a049f6edf8 100644 --- a/arch/arm/boot/dts/uniphier-pxs2.dtsi +++ b/arch/arm/boot/dts/uniphier-pxs2.dtsi @@ -141,8 +141,10 @@ cooling-maps { map { trip = <&cpu_alert>; - 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>; }; }; };