Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp259260imu; Fri, 16 Nov 2018 02:03:35 -0800 (PST) X-Google-Smtp-Source: AJdET5fpWI9KPdl/ScgqxbXWfuevR5OJS66EkBC+Xiibb0k/DbzgzkUx6nPtIqZPEYZVP2UvskHk X-Received: by 2002:a17:902:1744:: with SMTP id i62-v6mr9736464pli.250.1542362615066; Fri, 16 Nov 2018 02:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542362615; cv=none; d=google.com; s=arc-20160816; b=1FlLaY/hX+ensf+WccIh6JBmzAc6kSGkM7CXPu5N76pSGEO0+qC/pjpgxSRy2rXjN4 m1gxkNnPhDs0CaUAf1JryqyHAudvmhYrntegi9qT9BKImQSX4QAjgQNjzAcKMKKgLesh fpg9KJn3VN8VS+ynqRT+s1NUMnkUDgEq6W4GKS3siDZiBsxBn7CHhyfP+5JC6+mP88r2 CAqQmxqqeBCqFtrEYklmSEcwjEDDiRM37a0sgfo4cNxvhXJ9Ce/aeWPuBqXrRofaXMSE fjBcipUhG1v9fpmq7OtFUXpS8nR0qO/1qNWzFFhOqlFPbjsBsSO2d+XGrfWCNqeti0pL 1MbQ== 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=XlII3j0J42pOix9X0L9dK2lvNQUoxycxDuRih+fLWHbZLQP0tD3e8eONKcv4qBqrMa broA4SG1WBPcCV5Op/6XVHc51WLNss28ZdJMDS0Hz3+i8qAJ7xr9RKJAaMfHdWUYWgWP KqpXZbZyFPL0v1yzbZU+24fgLIgtHAtNiGQgmCxP3x8Zdz2GnB4LKgllG+D9ly4u1bqu J3kXhnvi1D0W7n+DcysOHSxJ3hjxB8DXulHY6MuBCd2JP8lA6rGmwMhhNBniMMyDNv6L 0BQGOPwDZPfwN16sAbE3Dxn2zvValUH0DbkaDSbrbL1pF2kAh3c+tHcp+pID+h2rX4ln DO/g== 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 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 y5-v6si28137286pgv.38.2018.11.16.02.03.20; Fri, 16 Nov 2018 02:03:35 -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=AmzM6Ijy; 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 S2389559AbeKPUNa (ORCPT + 99 others); Fri, 16 Nov 2018 15:13:30 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43484 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389532AbeKPUN3 (ORCPT ); Fri, 16 Nov 2018 15:13:29 -0500 Received: by mail-pl1-f194.google.com with SMTP id g59-v6so10929396plb.10 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=ZMH4BJsKSwvGJuHLwBfrWkxuad+TGpV6QQOqBY7H+9HT8R6fianYkRsV6HbrhDgks5 dFLDwnTBICPNb10I2tgfMv05ssjj9uZ8ZYlpkefP2ff2A73fWhiIColfpPeMGfxcX6nV ATWXTeItIk8bNSVNmqJj4ayWOqNpb+bPspP9yRNyBZfRtSQVkToMw4DE9FB6Q2wuFyZ3 676daauMxOKzUOlbv+pVR+p44PyPIB/iSiPNJS8UGh/S18vgImJJ/oXjZ2MszqsROgmP O15CTpqnPKrJMPa3mdCcOifn4qHAzlXoFzyonOFHSW8TFOSMT8sPxlZCL6sF2QNdV8hW pzNw== X-Gm-Message-State: AGRZ1gIAx39IzdRiw5TJW/dNZmNhlF6QyCM7ShwSx72eSgCmk5i+YHky IPH2wkCkzjXSYOJN9UQgKvc1GQ== 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 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/uniphier-pxs2.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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>; }; }; }; -- 2.19.1.568.g152ad8e3369a