Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp10432lqb; Tue, 28 May 2024 07:34:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUihOtslsLnR+aLLeQGhHzqKFu5lInDL8n0bMoPrzdHK6Jyvc67wfofoTHvvm3j3NUERexqF/mWyUqlOGOEIflTItRmp0mApXsPm9OuUw== X-Google-Smtp-Source: AGHT+IHxfvVkYccvnw5hfflPx/70413hxQUps3KdsGY9jl11YlTGfVutfO+2VRQtCAxv4aBf+zet X-Received: by 2002:a05:6870:2407:b0:24c:5338:15df with SMTP id 586e51a60fabf-24ca10d97d6mr12256935fac.10.1716906885308; Tue, 28 May 2024 07:34:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716906885; cv=pass; d=google.com; s=arc-20160816; b=Nz3Z0d2OmiuGAzRgThmo1+iHw5Yq1CUF7L7UT2wGRxEmM40vmd5BiQ7hjidxP4IYwd oWLLqkANIZw5z7QgwmY6GzTR5wZlncednjAp003ztn/pOrJ2ygxHHCTTi4AU11sayYna pSZEmk+aNVIjsc5wCR22b9yOmHp32d5LMsHRLQdIYOT0iCMOHwnBmO6oRoISPcz4b9+O Py8moKXPmhigT/3tKjKOrCGnowbm2xXbQT1OaIhm9yY+azbFNExNZs1XZvvlq3pGZnH2 LK9eqDzpnp0sHU4yQ2p3h99it26XunffzV1rRMrhWlLx0UuMMxi9uxEOZH3vkvou5nbu sAtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ryR5M0CizxCgA5bgtQe9t7XQk3p00xcNfn1SCFJJopk=; fh=5Qkg1RM+hx/5eyF/4lTg7L2SuKrK6c1aFcFZi2DMjZY=; b=aNgLtsoJBma1Ws87ELmD2a/FhTv70TD1IclpfWKOR+kjuOhs0E8znTkfWM4PmgvnQB gShpVHKAzKmYAYXoEwwToncm0GXYa8JZY5ZscRcs7SORi9zrmoz80BmZ1sKsMiaac7E7 JwfDGXVHZlqE+SedwjTR1wnY9CQO5rhMEeFF3oJZ8Be+P21sOHsWMLyuqoZO3/vBl8wi k7z7vo814hTWEPVZjA77KREaHFj5JaK694ojW50zdba83llkD4UHAcseqc8Gtu+TH8Df LDFCS2DtFF9rn8JA/T+mhcKzwBgSG8dmcZAqF2C4C1vQpXYYsmpxq/LTpFiAtCibNvSf 2UUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-192544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48a3a2f036csi2234818137.265.2024.05.28.07.34.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-192544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E218B1C2256E for ; Tue, 28 May 2024 14:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B163C16F8FA; Tue, 28 May 2024 14:34:37 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 763261DFDE; Tue, 28 May 2024 14:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906877; cv=none; b=Mn1ir0LQfrz43hA1Dqq+VfL7EvxV5SKsAK8VDD5A0U06m1Heg8vlwL6GaoCvZqi/VEDojAUp0Qbr9qViu8iSrpo8ntS/bmQnXNg7qHMUEJioxa62hENlyrvb6fsepkeILDFUgjpdnJ1HWSZiEKWA25iXJH8q2bTDNnRqDGtO7vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906877; c=relaxed/simple; bh=QbezeNKJyW6qf2V3kTpxOxe+UTcg7sBnxBqrvnatxGw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rdZLyI11+YDpWTAtvReBM/ceHHNiWV9A6nM9zn28HiHvTHikdSziFruSKSyEtbgoBMTGEYmNR8eUH7+pLEdPqKBCBFJ7PSTWgvA903P0F6QOkaTKYkUJVlB46PY2/uSL8l6OVClXWWlkDts50NWdd+z/1aeISy4L6WWAGHhOiyY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from [213.70.33.226] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBxuB-0004aE-9M; Tue, 28 May 2024 16:34:23 +0200 From: Heiko Stuebner To: Alexey Charkov , Dragan Simic , Quentin Schulz Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Viresh Kumar , Chen-Yu Tsai , Diederik de Haas , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/6] RK3588 and Rock 5B dts additions: thermal, OPP and fan Date: Tue, 28 May 2024 16:34:21 +0200 Message-ID: <5122636.irdbgypaU6@phil> In-Reply-To: References: <20240506-rk-dts-additions-v4-0-271023ddfd40@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hi Dragan, Am Dienstag, 28. Mai 2024, 16:05:04 CEST schrieb Dragan Simic: > On 2024-05-28 11:49, Alexey Charkov wrote: > > On Mon, May 6, 2024 at 1:37=E2=80=AFPM Alexey Charkov =20 > > wrote: > >>=20 > >> This enables thermal monitoring and CPU DVFS on RK3588(s), as well as > >> active cooling on Radxa Rock 5B via the provided PWM fan. > >>=20 > >> Some RK3588 boards use separate regulators to supply CPUs and their > >> respective memory interfaces, so this is handled by coupling those > >> regulators in affected boards' device trees to ensure that their > >> voltage is adjusted in step. > >>=20 > >> This also enables the built-in thermal sensor (TSADC) for all boards > >> that don't currently have it enabled, using the default CRU based > >> emergency thermal reset. This default configuration only uses on-SoC > >> devices and doesn't rely on any external wiring, thus it should work > >> for all devices (tested only on Rock 5B though). > >>=20 > >> The boards that have TSADC_SHUT signal wired to the PMIC reset line > >> can choose to override the default reset logic in favour of GPIO > >> driven (PMIC assisted) reset, but in my testing it didn't work on > >> Radxa Rock 5B - maybe I'm reading the schematic wrong and it doesn't > >> support PMIC assisted reset after all. > >>=20 > >> Fan control on Rock 5B has been split into two intervals: let it spin > >> at the minimum cooling state between 55C and 65C, and then accelerate > >> if the system crosses the 65C mark - thanks to Dragan for suggesting. > >> This lets some cooling setups with beefier heatsinks and/or larger > >> fan fins to stay in the quietest non-zero fan state while still > >> gaining potential benefits from the airflow it generates, and > >> possibly avoiding noisy speeds altogether for some workloads. > >>=20 > >> OPPs help actually scale CPU frequencies up and down for both cooling > >> and performance - tested on Rock 5B under varied loads. I've dropped > >> those OPPs that cause frequency reductions without accompanying=20 > >> decrease > >> in CPU voltage, as they don't seem to be adding much benefit in day to > >> day use, while the kernel log gets a number of "OPP is inefficient"=20 > >> lines. > >>=20 > >> Note that this submission doesn't touch the SRAM read margin updates=20 > >> or > >> the OPP calibration based on silicon quality which the downstream=20 > >> driver > >> does and which were mentioned in [1]. It works as it is (also=20 > >> confirmed by > >> Sebastian in his follow-up message [2]), and it is stable in my=20 > >> testing on > >> Rock 5B, so it sounds better to merge a simple version first and then > >> extend when/if required. > >>=20 > >> [1]=20 > >> https://lore.kernel.org/linux-rockchip/CABjd4YzTL=3D5S7cS8ACNAYVa730WA= 3iGd5L_wP1Vn9=3Df83RCORA@mail.gmail.com/ > >> [2]=20 > >> https://lore.kernel.org/linux-rockchip/pkyne4g2cln27dcdu3jm7bqdqpmd2kw= kbguiolmozntjuiajrb@gvq4nupzna4o/ > >>=20 > >> Signed-off-by: Alexey Charkov > >> --- > >=20 > > Hi Heiko, > >=20 > > Do you think this can be merged for 6.11? Looks like there hasn't been > > any new feedback in a while, and it would be good to have frequency > > scaling in place for RK3588. > >=20 > > Please let me know if you have any reservations or if we need any > > broader discussion. not really reservations, more like there was still discussion going on around the OPPs. Meanwhile we had more discussions regarding the whole speed binning Rockchip seems to do for rk3588 variants. And waiting for the testing Dragan wanted to do ;-) . So this should definitly make it into 6.11 though, as there is still a lot of time. =20 > As I promised earlier, I was going to test this patch series in detail. > Alas, I haven't managed to do that yet, :/ due to many reasons, but > I still remain firmly committed to doing that. >=20 > Is -rc4 the cutoff for 6.11? If so, there's still time and I'll do my > best to test and review these patches as soon as possible. As early as possible, the hard cutoff would be -rc6 though. I guess I'll just start picking the easy patches from the series. Heiko