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: 10685787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 72AA714DB for ; Fri, 16 Nov 2018 10:03:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61D5928842 for ; Fri, 16 Nov 2018 10:03:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5640629420; Fri, 16 Nov 2018 10:03:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7D8229767 for ; Fri, 16 Nov 2018 10:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t5n7EBv+4dUIpJ9ifp9Rv0QXp6NKrg8XvcVW1Wg6yts=; b=hYBot8WNGjfUzM 17hZ1dopV7ZzG9grw/aWL38Mdrt2Mf8gtWyFbgsde8wfYHT5bd3FfXhviln4G0Ix1mO2orskuWyqc Hw29HWVw6jhQnmF9Iv4RTtgAwXjwFWJgqKUge+dABsU8FyPyRoK7txk4j78k5DBwhrW2FWrNXu3Lq w/gRG+c0wAJpH40EUUPO3MbhFv0HkhjXvkjAtNkPJhb7/1mv6ygBmL0N4JT8EN5LS1deUD4KlXkyq poV9oZJ1NzeTBpTqFf+NlVc0HS3gA5IAkNG2Lckt3qRaFYEHevfpfJXgLewLtTUt4OImC7PvMPu8g 6QFE7QwKw8ze5rsJ9Wuw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNayU-0005Uw-KC; Fri, 16 Nov 2018 10:03:42 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNawt-0003tp-GB for linux-arm-kernel@lists.infradead.org; Fri, 16 Nov 2018 10:02:06 +0000 Received: by mail-pl1-x643.google.com with SMTP id s5-v6so10924282plq.11 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=Lc0fMG/mofew58lQglQwG14wz74oTs54qGRBqB4USUMCWwpTyE/Oq3kQFGXYCM5lfY YnKNSstXizmYpjNSoh40x5cPOn2NuJsydG6kj2HR3nCuYe1XQBTwV1bZGBk29HFGFDCc sk6GU7EoEmBO6bwxX0LwRGXDwBGoHMjwRHkLQrt5pXPLfBhNB3/BeL4BfP5B/pml/BGy GXXvE9JxwONLQTUHboPb2CbDa0paoI6UXrnrqvgJpAaGbdy5v1A/LY2eAA3QQph4yRP8 dBD+TaKGXY7uEJjE+ZcauFjTSgc+6QCzG6ygzMpyqzEHrhkylpjjmBHY470j9XyV/4Wk O/EQ== X-Gm-Message-State: AGRZ1gKOIJm8fTGQ2lhGt2voV1NlMCCQjszkn00Fj+FHssSL76fNYQ7P D1R5rfBV8+KgjB3lerUjW76t+Q== X-Google-Smtp-Source: AJdET5fZDDOfhpLM5mpHdj20S3iWEbJorDhWZNiRNtGafcOuhLAEI7YhvoXeZmk3/fzjEq/kJF840A== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181116_020203_542240_00575213 X-CRM114-Status: GOOD ( 15.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vincent Guittot , Viresh Kumar , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; }; }; };