From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (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 3F9A11F09AD; Sat, 22 Nov 2025 14:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763821119; cv=none; b=IfoxKzqMJ2Qym1pY2/SJawnJ3cF0Cpdc8Ao593hAu/vz67ZNWF5ew8kr8B+ElLxtsQHMVm/L9IkbP2xJrRR89R2o31I7ushZ0em0P2WEhoGn5eE5MyuqWIzZUZqGHFozYJvazB+I8/ZJKRT9egIVfvHW6ydc1+wv2kNA2T1+Nkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763821119; c=relaxed/simple; bh=WXYIJpA/5uMWAoBbwYGh8DEu0v6CC1dOId+77yeMnkk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Bx48gMhJ22Q7aOn04vtsQo+y34LxY3zZQ9BGGHzkKq/DTnv7jeWc4kVzpmGDlOKTnnVBnNm47ss71iQduGxkMy4jVcRVr5X4VJFSb8uVL12vr+sYjaEMt1yTRA1cV76xcbE6D5jXK8pB2yMDdZipWoRLL+xQKGduwFLpFnNiV60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=Y1UpTHto; arc=none smtp.client-ip=212.227.17.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="Y1UpTHto" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1763821096; x=1764425896; i=w_armin@gmx.de; bh=Kc4yf/ip/zYhJKQehc/v1Ono+m+rQ7sS8fbaEIg4oWE=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Y1UpTHto+ZoqLH5nQvLgtnB839wOH5s3ITuS1rBa0F5opUsqMNbpc05RvhNXdN+w LbP2H+cO5IdH6PqtSNGHEF0wlSpdifa3lUKxga5MHCcYij0kd1p3i2kmcuxyr5UQ5 oGe/sP7emNQKmeW/rEv8Cvq8dL5crOw9wD+533pSWpiapdYfR9/sww4wBBoWvI303 ko9K5byBMbCV91+W64U/ZMJVRN4NMrQJW46iRwfz8la0g21B5gAbcg9n72nkQ6yPd djLm9H5GxLznIw/0QBpCYsDwHP3840idibV2CETRLYzHOGszREUKs3+RFrJiyDlhX j6/yZOEhEn8SEgmJTw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.0.69] ([93.202.247.91]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbAci-1vy58R25Qu-00ZeVB; Sat, 22 Nov 2025 15:18:15 +0100 Message-ID: <5f3ef610-4024-4ca0-a934-2649f5d25f40@gmx.de> Date: Sat, 22 Nov 2025 15:18:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC RESEND 0/8] thermal: core: Allow setting the parent device of thermal zone/cooling devices To: "Rafael J. Wysocki" Cc: Daniel Lezcano , Zhang Rui , Lukasz Luba , Len Brown , Jonathan Corbet , Ido Schimmel , Petr Machata , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, ath11k@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-pci@vger.kernel.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org References: <20251120-thermal-device-v1-0-bbdad594d57a@gmx.de> Content-Language: en-US From: Armin Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:p1RNGZcFb7DMYC4pNIt+bKMVaFtCpVDJjA+b5GK6HVl6ii0Qvy6 F02X8anlkVakkbi2OTFbnt8tYeJSvn6gGOs4ruxe4iOSm964VHeR0KGAfYYSOGHAkEHE1SL f+0kJN0U4H4TG67hcvhs8e2p+bBtnKPBsYGRBwzRgM45wOTh3XumwYG+ToUgVBnpYQ3YAqx wayKxHUnhSBUFp4PBU0OA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:vXFK1AWv0os=;NZUt21siNzvTNFU+NCb4ppbI26X BguEOVmqOwgTcwnfEytn7momVcIhh1ldOXHXT/qAjV9o+g4+sHHsiy+NjuV8gXYH/KRnTCNdI KlSR3cxvBkShV+kFBLQ7QYN3PqheRD96/R3UBLxw/bygTNVkk+nulciha0NRe1XRO+BgWdwcJ oN/lYG9bqrnlGNEQ2DjDEW06R2a06uxdSIjVWPKhQMsanMKoZUpcxfNdWeqXXDqRR069LRkY4 b+hRfR02caMctLs5peP3GgloT+V8azUsLT02bWlVk4n+I3wz8JqNlCKRpkWFk90hAVycHD+3v cnncZdD4VdaIZq5Rvp54VhOPLYZMfnyylOim41buJVW8BhnZIcfACeOCNX9QwK3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dmACXARtJf3ugc0epmbBZcs92znPkS hsRpkwtNy+wbLkwv7b2/zC9H34i0k6+ojQ8G2J/Bf8ElpHBIXe+e8arOnt3UXk+iob2jLdTUM bfthguj+UpvxBeVBHVMroNUeDXl5ivoUz0pI8v5COQe5yXmM65CSX+oGXEUEYD84/sgRje1Y7 SHARgH+1xyEmfqKHLlcAu2mMBgkrgWaK6F4NECNl0ln9GAp3V72IbJJ/IBDAOV+LTA8ycQzsv 2VOK5eG5NFAlhT1lSXpo2LsBdXbh4pFkRv0PVomhcdLzDPS3VpdUyj8wjq0wwLtDcY9CEKoCE kYdFt6BFWxcurmCDqSV18Z9oBeyWk494ze0cs2jcIhVjPSO+qwoXMYr+zDWKdpdV0jgAeGutt tdbXtyWC9KebZhfIIV+Q0CDYlISS6bZte9qhnj5A1rMZCLU1LVssDlN4PTgw/o89Xvs3KHrBO 96c4cziI4uWLVlgD7qgg+UMFceddtrp/yFqKsveSn5d1hzyZS2+Y3M/rDVGA3+pGAfnri6PAD XC2WkcCQtrt9q9XXYMo+VoskNzCLQ3iVEWLdBmDF9S3CL1KOZoJ3EKxdlEd8ty91Q0iB2kMvh L4DlDx0w= Am 21.11.25 um 21:35 schrieb Rafael J. Wysocki: > On Thu, Nov 20, 2025 at 4:41=E2=80=AFAM Armin Wolf wrot= e: >> Drivers registering thermal zone/cooling devices are currently unable >> to tell the thermal core what parent device the new thermal zone/ >> cooling device should have, potentially causing issues with suspend >> ordering > This is one potential class of problems that may arise, but I would > like to see a real example of this. > > As it stands today, thermal_class has no PM callbacks, so there are no > callback execution ordering issues with devices in that class and what > other suspend/resume ordering issues are there? Correct, that is why i said "potentially". > > Also, the suspend and resume of thermal zones is handled via PM > notifiers. Is there a problem with this? The problem with PM notifiers is that thermal zones stop working even befo= re user space is frozen. Freezing user space might take a lot of time, so hav= ing no thermal management during this period is less than ideal. This problem would not occur when using dev_pm_ops, as thermal zones would= be suspended after user space has been frozen successfully. Additionally, whe= n using dev_pm_ops we can get rid of thermal_pm_suspended, as the device core alre= ady mandates that no new devices (including thermal zones and cooling devices) be regis= tered during a suspend/resume cycle. Replacing the PM notifiers with dev_pm_ops would of course be a optimizati= on with its own patch series. >> and making it impossible for user space applications to >> associate a given thermal zone device with its parent device. > Why does user space need to know the parent of a given cooling device > or thermal zone? Lets say that we have two thermal zones registered by two instances of the Intel Wifi driver. User space is currently unable to find out which therma= l zone belongs to which Wifi adapter, as both thermal zones have the (nearly) sam= e type string ("iwlwifi[0-X]"). This problem would be solved once we populate the parent device pointer in= side the thermal zone device, as user space can simply look at the "device" symlink to determine= the parent device behind a given thermal zone device. Additionally, being able to access the acpi_handle of the parent device wi= ll be necessary for the ACPI thermal zone driver to support cooling devices other than ACPI fans a= nd ACPI processors. >> This patch series aims to fix this issue by extending the functions >> used to register thermal zone/cooling devices to also accept a parent >> device pointer. The first six patches convert all functions used for >> registering cooling devices, while the functions used for registering >> thermal zone devices are converted by the remaining two patches. >> >> I tested this series on various devices containing (among others): >> - ACPI thermal zones >> - ACPI processor devices >> - PCIe cooling devices >> - Intel Wifi card >> - Intel powerclamp >> - Intel TCC cooling > What exactly did you do to test it? I tested: - the thermal zone temperature readout - correctness of the new sysfs links - suspend/resume I also verified that ACPI thermal zones still bind with the ACPI fans. >> I also compile-tested the remaining affected drivers, however i would >> still be happy if the relevant maintainers (especially those of the >> mellanox ethernet switch driver) could take a quick glance at the >> code and verify that i am using the correct device as the parent >> device. > I think that the above paragraph is not relevant any more? You are right, however i originally meant to CC the mellanox maintainers a= s i was a bit unsure about the changes i made to their driver. I will rework this section in the next revision and CC the mellanox maintainers. > >> This work is also necessary for extending the ACPI thermal zone driver >> to support the _TZD ACPI object in the future. > I'm still unsure why _TZD support requires the ability to set a > thermal zone parent device. _TZD allows the ACPI thermal zone to bind to cooling devices other than AC= PI fans and ACPI processors, like ACPI batteries. This however will currently not = work as the ACPI thermal zone driver uses the private drvdata of the cooling devic= e to determine if said cooling device should bind. This only works for ACPI fan= s and processors due to the fact that those drivers store a ACPI device pointer = inside drvdata, something the ACPI thermal zone expects. As we cannot require all cooling devices to store an ACPI device pointer i= nside their drvdata field in order to support ACPI, we must use a more generic a= pproach. I was thinking about using the acpi_handle of the parent device instead of= messing with the drvdata field, but this only works if the parent device pointer o= f the cooling device is populated. (Cooling devices without a parent device would then be ignored by the ACPI= thermal zone driver, as such cooling devices cannot be linked to ACPI). > >> Signed-off-by: Armin Wolf >> --- >> Armin Wolf (8): >> thermal: core: Allow setting the parent device of cooling device= s >> thermal: core: Set parent device in thermal_of_cooling_device_re= gister() >> ACPI: processor: Stop creating "device" sysfs link > That link is not to the cooling devices' parent, but to the ACPI > device object (a struct acpi_device) that corresponds to the parent. > The parent of the cooling device should be the processor device, not > its ACPI companion, so I'm not sure why there would be a conflict. From the perspective of the Linux device core, a parent device does not h= ave to be a "physical" device. In the case of the ACPI processor driver, the ACPI de= vice is used, so the cooling device registered by said driver belongs to the ACPI device= . I agree that using the Linux processor device would make more sense, but this will= require changes inside the ACPI processor driver. As for the "device" symlink: The conflict would be a naming conflict, as b= oth "device" symlinks (the one created by the ACPI processor driver and the one created by the d= evice core) will be created in the same directory (which is the directory of the cooling de= vice). >> ACPI: fan: Stop creating "device" sysfs link >> ACPI: video: Stop creating "device" sysfs link > Analogously in the above two cases AFAICS. > > The parent of a cooling device should be a "physical" device object, > like a platform device or a PCI device or similar, not a struct > acpi_device (which in fact is not a device even). From the perspective of the Linux device core, a ACPI device is a perfect= ly valid device. I agree that using a platform device or PCI device is better, but this alr= eady happens inside the ACPI fan driver (platform device). Only the ACPI video driver created a "device" sysfs link that points to th= e ACPI device instead of the PCI device. I just noticed that i accidentally changed this= by using the PCI device as the parent device for the cooling device. If you want then we can keep this change. >> thermal: core: Set parent device in thermal_cooling_device_regis= ter() >> ACPI: thermal: Stop creating "device" sysfs link > And this link is to the struct acpi_device representing the thermal zone= itself. Correct, the ACPI thermal zone driver is a ACPI driver, meaning that he bi= nds to ACPI devices. Because of this all (thermal zone) devices created by an ins= tance of said driver are descendants of the ACPI device said instance is bound to. We can of course convert the ACPI thermal zone driver into a platform driv= er, but this would be a separate patch series. >> thermal: core: Allow setting the parent device of thermal zone d= evices > I'm not sure if this is a good idea, at least until it is clear what > the role of a thermal zone parent device should be. Take a look at my explanation with the Intel Wifi driver. Thanks, Armin Wolf