From patchwork Fri Jan 22 20:24:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1430535 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bdeuCrJo; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4DMrhk3PHSz9sCq for ; Sat, 23 Jan 2021 07:39:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728491AbhAVUix (ORCPT ); Fri, 22 Jan 2021 15:38:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730251AbhAVU26 (ORCPT ); Fri, 22 Jan 2021 15:28:58 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76BB4C061A2D; Fri, 22 Jan 2021 12:25:15 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id q8so9275018lfm.10; Fri, 22 Jan 2021 12:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b+B62XwmqyZC9IlWhkday5kt92nQ4ggX2fs7NsJsHQ4=; b=bdeuCrJoFfd6ftO0JUtHn/oDKORKTCIY7nWts8KPCxl88M8YdVK83XxGerJTMzOy+c dqdcUSpSjrkLWO5KGEZmn+H4uC44XMuHPrf6bXm6UfloGJIns5p2ZyOpyz4pjDYIRWAA PLHFp0AoOgXpS/sAsngmIvtnX4N3yuxXOEHwndpPHpwNbV9khJvjVugTYwsEQJEfH3Xn vjie1JpRQbPQQOCnEK+XDVtMGN7fosjDI9T8fh42kkOmuE+dEc7uudDA0mUTZBdq2QZe olB8fN14asu+2MNCaI/2klpczsWK7z6drPJ8ZBxXoWXyh1j6eK3+4ZwxTSFgMY0pawVW ot6A== 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=b+B62XwmqyZC9IlWhkday5kt92nQ4ggX2fs7NsJsHQ4=; b=K/2wYlVjPPE85HP1Gc+kbJGUfLkqZ/9wlMkXI3VxEMeLdbeAqUymgaSyAxZVRYHmJr aTkaMeJn79jf+8KVxz0CHJpUoxZNvjWx9LyTMVDGgLtTnRrhV6ABLhnTInMZWTvaaAEJ DkFvBuD2sbUPLBCxQxApcN2/fUyj1sLjKYdql295Pjsh4M5bIBGE8aGk3so8mb97vlx+ 5RyeTuqh5uZJrr3zJpcIaT8Id+JIHPiJR47lDcfSjQLjm4A0U4Q9FZXytJsPCU16Xmvp TJwM6lejFTO3aN2W71iq1jLv3FznqJRO70KyzTJAxbb5P77T4NVWILvr5AAwao94mIu7 xv1w== X-Gm-Message-State: AOAM533gNB4ldK1r7P02VAYpeMbmwATcSW0SUiR/560CH09qlBFZdpBr unqFiC0bkJKl0S3ShDIsSHI= X-Google-Smtp-Source: ABdhPJzpj12bRLw+RDc1CuLIC+XHz5tl6xSiTeXsCC2ZzcOYFBzuBXukQKJYwoTmoSdDhqhR7fGU5A== X-Received: by 2002:a05:6512:2251:: with SMTP id i17mr2821668lfu.566.1611347114065; Fri, 22 Jan 2021 12:25:14 -0800 (PST) Received: from localhost.localdomain (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.gmail.com with ESMTPSA id q5sm996921lfr.172.2021.01.22.12.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 12:25:13 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Daniel Lezcano , Nicolas Chauvet , Matt Merhar , Peter Geis Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/13] ARM: tegra: acer-a500: Specify all CPU cores as cooling devices Date: Fri, 22 Jan 2021 23:24:52 +0300 Message-Id: <20210122202457.13326-9-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210122202457.13326-1-digetx@gmail.com> References: <20210122202457.13326-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org If CPU0 is unplugged the cooling device can not rebind to CPU1. And if CPU0 is plugged in again, the cooling device may fail to initialize. If the CPUs are mapped with the physical CPU0 to Linux numbering CPU1, the cooling device mapping will fail. Hence specify all CPU cores as a cooling devices in the device-tree. Suggested-by: Daniel Lezcano Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts index 0d228e2dd158..4dcec18b677b 100644 --- a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts +++ b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts @@ -838,9 +838,10 @@ cpu0: cpu@0 { #cooling-cells = <2>; }; - cpu@1 { + cpu1: cpu@1 { cpu-supply = <&vdd_cpu>; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; }; }; @@ -1070,7 +1071,8 @@ trip1: cpu-crit { cooling-maps { map0 { trip = <&trip0>; - 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>; }; }; };