Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2937991pxa; Tue, 18 Aug 2020 02:00:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwseCUzo+MQYmOyIcJEl+zRTvEPfBGwokIhfY5tthN7Vw7iycgyB5qF0+rbxlCC56dNHI1K X-Received: by 2002:aa7:c915:: with SMTP id b21mr19258430edt.17.1597741230483; Tue, 18 Aug 2020 02:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597741230; cv=none; d=google.com; s=arc-20160816; b=MizEoUAnZlOi70NEQqlBNhVYyhEXGAhFHW4KpRI8R4Q5f5OoDKHl4Upw2/TQLjcqNA gJ2Fu+j1iQG1m8hGTaA9wPRc7QNfymYol186iX+WyhXgkxYWEQRysA00Ag0WYUa4WHhE XXfStRId+Qb7AI1jKG+UhlkKuUn+s9gEURVesbU3HCKN2DjidM3B2vGZgZIw2tSfN3aL 6bxAGKYaN6cACorZrFLidgGsFAiojkdv8nKetWI4qyl5fo+rCGhNmeFd7bbPLFRO4HdW K2lxA2inwVMzbhZ7C+j+K5C6EHERuYRsNAeYb3EzCd9hO47HM6DZfZzCEKhzxYgWLSfl J1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lGwaOocPDb7kg0OqLF6+iCJvmRncpH+tSdpj315YIu8=; b=hrkcM8c95NNwEA8aq+GQdl1NyLU+FaZNttgOVgEQg404mA17uf6NmQp/GPdgOAFsDF H7fgRXAaDRw4v8goOStxY9nTki7L7+ammltF40nZahhMjvmqVEogva1o788ENq3j6DTh KHqrULs5a81vK9HnLT4QZKlIR8KIrJN88qBoqQEO5zzmFgdpjeZPk69Y9jROigV4F70a hW+oUI42JCm2FN6GFU9zVd/900oB7sGN32Zsamp9ZoeDzcKYnwJj1mYreBh0Ga4PVhBf y7iRe5lyex5L4Edo+2yF+pTMxQyUnOpVxjBM3HnCfd9x3ZyLEWoE1x9ehc/ncox6prsS tpVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si12897492ejv.609.2020.08.18.02.00.07; Tue, 18 Aug 2020 02:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbgHRI6c (ORCPT + 99 others); Tue, 18 Aug 2020 04:58:32 -0400 Received: from muru.com ([72.249.23.125]:40720 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbgHRI61 (ORCPT ); Tue, 18 Aug 2020 04:58:27 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 317F7810D; Tue, 18 Aug 2020 08:58:25 +0000 (UTC) Date: Tue, 18 Aug 2020 11:58:53 +0300 From: Tony Lindgren To: Andreas Kemnade Cc: Adam Ford , Linux-OMAP , Adam Ford-BE , =?utf-8?Q?Beno=C3=AEt?= Cousson , Rob Herring , devicetree , Linux Kernel Mailing List , "H. Nikolaus Schaller" Subject: Re: [PATCH V2] ARM: dts: omap3: Add cpu trips and cooling map for omap34/36 families Message-ID: <20200818085853.GO2994@atomide.com> References: <20200817133931.11785-1-aford173@gmail.com> <20200817215953.59607c11@aktux> <20200817221532.5d150648@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200817221532.5d150648@aktux> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andreas Kemnade [200817 20:15]: > On Mon, 17 Aug 2020 15:02:27 -0500 > Adam Ford wrote: > > > On Mon, Aug 17, 2020 at 2:59 PM Andreas Kemnade wrote: > > > > > > On Mon, 17 Aug 2020 08:39:31 -0500 > > > Adam Ford wrote: > > > > > > > The OMAP3530, OMAP3630, and DM3730 all show thresholds of 90C and 105C > > > > depending on commercial or industrial temperature ratings. > > > > > > > > This patch expands the thermal information to include the limits of 90 > > > > and 105C for alert and critical. It sets the coolings-cells for the > > > > 34xx and 36xx CPU's which both point to omap3-cpu-thermal.dtsi. > > > > > > > > For boards who never use industrial temperatures, these can be > > > > changed on their respective device trees with something like: > > > > > > > > &cpu_alert0 { > > > > temperature = <85000>; /* millicelsius */ > > > > }; > > > > > > > > &cpu_crit { > > > > temperature = <90000>; /* millicelsius */ > > > > }; I think you should set the lower temperatures by default and have only the boards known to work with higher values configure them as needed. > > > > OMAP3_THERMAL will need to be enabled. It is off by default. > > > > > > > hmm, I think the patch for idling core when OMAP3_THERMAL is enabled > > > got stuck somewhere. It still seems not to work. Shouldn't that patch > > > be applied first? > > > > I rebased the idle stuff, and now I get errors, so I haven't pushed it > > yet. I put a note that OMAP3_THERMAL is off by default, but this > > patch would at least get the framing in there. I know at least two of > > us that use 1GHZ processors which are not supposed to run at that > > speed above 90MHz, so the idea was to tolerate the higher current for > > now, and when the idle stuff works, we'll enable the OMAP3_THERMAL by > > default. > > > yes, makes sense, so with this patch we have the choice to either > optimize for low speeds and currents (by disabling OMAP3_THERMAL and > 1GHz) or high speeds (by enabling OMAP3_THERMAL and 1 Ghz). Maybe add something like that to the patch description too? Regards, Tony