Re: Fw: [External] Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-25 Thread Hans de Goede
Hi, On 10/19/20 8:49 PM, Mark Pearson wrote: > Hi > >> On 19/10/2020 14:43, Hans de Goede wrote: >> Hi, >> >> On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: >>> On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: Hi, On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: > On

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-20 Thread Rafael J. Wysocki
On Mon, Oct 19, 2020 at 8:43 PM Hans de Goede wrote: > > Hi, > > On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: > > On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: > >> > >> Hi, > >> > >> On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: > >>> On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede

Re: Fw: [External] Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-19 Thread Mark Pearson
Hi > On 19/10/2020 14:43, Hans de Goede wrote: Hi, On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: Hi, On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: Hi, On 10/14/20 5:42 PM,

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-19 Thread Hans de Goede
Hi, On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: > On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: >> >> Hi, >> >> On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: >>> On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: >>> one from both threads to the Cc> Hi,

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-18 Thread Rafael J. Wysocki
On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: > > Hi, > > On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: > > On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: > >> > >> >> one from both threads to the Cc> > >> > >> Hi, > >> > >> On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: > >>> On

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-18 Thread Hans de Goede
Hi, On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: > On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: >> >> > from both threads to the Cc> >> >> Hi, >> >> On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: >>> On Wed, Oct 14, 2020 at 4:06 PM Hans de Goede wrote: On 10/14/20 3:33 PM, Rafael

Re: Fw: [External] Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-16 Thread Elia Devito
t; > ; Darren Hart ; Andy > > Shevchenko ; Mark Gross ; > > Benjamin Berg ; linux-a...@vger.kernel.org > > ; platform-driver-...@vger.kernel.org > > > > *Subject:* [External] Re: [RFC] Documentation: Add documentation for new > > performance_profile sysfs cl

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-16 Thread Rafael J. Wysocki
On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: > > from both threads to the Cc> > > Hi, > > On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: > > On Wed, Oct 14, 2020 at 4:06 PM Hans de Goede wrote: > >> On 10/14/20 3:33 PM, Rafael J. Wysocki wrote: > > > > >>> First, a common place to

Re: Fw: [External] Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-16 Thread Mark Pearson
ion for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework) Hi, In data venerdì 16 ottobre 2020 13:10:54 CEST, Hans de Goede ha scritto: Hi, On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: > On Wed, Oct 14, 2020 at 4:06 PM Hans de Goede

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-16 Thread Elia Devito
Hi, In data venerdì 16 ottobre 2020 13:10:54 CEST, Hans de Goede ha scritto: > from both threads to the Cc> > > Hi, > > On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: > > On Wed, Oct 14, 2020 at 4:06 PM Hans de Goede wrote: > >> On 10/14/20 3:33 PM, Rafael J. Wysocki wrote: > > > >>> First,

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-16 Thread Hans de Goede
Hi, On 10/14/20 5:42 PM, Rafael J. Wysocki wrote: > On Wed, Oct 14, 2020 at 4:06 PM Hans de Goede wrote: >> On 10/14/20 3:33 PM, Rafael J. Wysocki wrote: >>> First, a common place to register a DPTF system profile seems to be >>> needed and, as I said above, I wouldn't expect more than one

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-14 Thread Limonciello, Mario
> As far as I know, the profiles affect the thermal behavior like "how long to > wait before starting the fan and at what temperature" or "how fast to run the > fan with the current cpu load and temperature". > > The only way that firmware uses to "control" performance should be the odvp0 > DPTF

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-14 Thread Elia Devito
;>>>> > > >>>>> This seemed to me like an implementation detail (eg. the same > > >>>>> metadata > > >>>>> is being exported, but in a different way), and I don't feel > > >>>>> strongly > > >

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-14 Thread Rafael J. Wysocki
wrapping them up into a certain > >>> "translation" layer allowing user space to use a unified interface (I > >>> think that is what everybody wants) and the other boils down to how > >>> the unified interface between the kernel and user space will look >

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-14 Thread Hans de Goede
ssumes we have some sort of DPTF support such as mjg59's reverse engineered support) but the profile-names under Windows are: "Performance", "HP recommended", "Cool" and "Quiet". If you read the discussion from the "[RFC] Documentation: Add documenta

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-14 Thread Rafael J. Wysocki
nk that something line /sys/power/profile allowing > > drivers (and other kernel entities) to register callbacks might work > > (as stated in my last reply to Hans). > > Note to others reading along I pointed to this thread in this thread: > https://lore.kernel.org/linux-pm/20201006122

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-13 Thread Hans de Goede
ch as mjg59's reverse engineered support) but the profile-names under Windows are: "Performance", "HP recommended", "Cool" and "Quiet". If you read the discussion from the "[RFC] Documentation: Add documentation for new performance_profile sysfs class" threa

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-12 Thread Rafael J. Wysocki
On Wed, Oct 7, 2020 at 8:41 PM Limonciello, Mario wrote: > > > On Wed, 2020-10-07 at 15:58 +, Limonciello, Mario wrote: > > > > > > > On Mon, 2020-10-05 at 12:58 +, Limonciello, Mario wrote: > > > > > > On modern systems CPU/GPU/... performance is often dynamically > > > > > >

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-09 Thread Hans de Goede
Hi, On 10/5/20 2:58 PM, Limonciello, Mario wrote: On modern systems CPU/GPU/... performance is often dynamically configurable in the form of e.g. variable clock-speeds and TPD. The performance is often automatically adjusted to the load by some automatic-mechanism (which may very well live

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-09 Thread Hans de Goede
Hi, On 10/5/20 3:13 PM, Benjamin Berg wrote: Hi, seems reasonable to me. Quite simple, but likely good enough as we are sticking to only use well known names. Just found a small typo. Benjamin On Sat, 2020-10-03 at 15:19 +0200, Hans de Goede wrote: On modern systems CPU/GPU/... performance

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-09 Thread Hans de Goede
Hi, On 10/5/20 12:29 AM, Elia Devito wrote: Hi Hans, On 2020-10-03 9:19 a.m., Hans de Goede wrote: On modern systems CPU/GPU/... performance is often dynamically configurable in the form of e.g. variable clock-speeds and TPD. The performance is often automatically adjusted to the load by some

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-07 Thread Limonciello, Mario
> On Wed, 2020-10-07 at 15:58 +, Limonciello, Mario wrote: > > > > > On Mon, 2020-10-05 at 12:58 +, Limonciello, Mario wrote: > > > > > On modern systems CPU/GPU/... performance is often dynamically > > > > > configurable > > > > > in the form of e.g. variable clock-speeds and TPD. The > >

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-07 Thread Bastien Nocera
On Wed, 2020-10-07 at 15:58 +, Limonciello, Mario wrote: >   > > On Mon, 2020-10-05 at 12:58 +, Limonciello, Mario wrote: > > > > On modern systems CPU/GPU/... performance is often dynamically > > > > configurable > > > > in the form of e.g. variable clock-speeds and TPD. The > > > >

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-07 Thread Limonciello, Mario
> On Mon, 2020-10-05 at 12:58 +, Limonciello, Mario wrote: > > > On modern systems CPU/GPU/... performance is often dynamically > > > configurable > > > in the form of e.g. variable clock-speeds and TPD. The performance > > > is often > > > automatically adjusted to the load by some

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-07 Thread Bastien Nocera
On Mon, 2020-10-05 at 12:58 +, Limonciello, Mario wrote: > > On modern systems CPU/GPU/... performance is often dynamically > > configurable > > in the form of e.g. variable clock-speeds and TPD. The performance > > is often > > automatically adjusted to the load by some automatic-mechanism >

Re: [External] RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Mark Pearson
On 2020-10-05 12:56 p.m., Limonciello, Mario wrote: When implemented for the two vendors mentioned here, it would be using a proprietary "firmware API" implemented by those two vendors. For example write arguments (0x1, 0x2) to ACPI-WMI method WMFT and it will cause firmware to

RE: [External] RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Limonciello, Mario
> On 2020-10-05 12:11 p.m., Limonciello, Mario wrote: > >> > >> Excuse my ignorance, but I don't really see why this interface would be > tied > >> to > >> ACPI devices? Why is it not possible to write a driver that implements this > >> interface > >> and directly modifies device registers? Am I

Re: [External] RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Mark Pearson
On 2020-10-05 12:11 p.m., Limonciello, Mario wrote: Excuse my ignorance, but I don't really see why this interface would be tied to ACPI devices? Why is it not possible to write a driver that implements this interface and directly modifies device registers? Am I missing something obvious

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Limonciello, Mario
> 2020. október 5., hétfő 14:58 keltezéssel, Limonciello, Mario írta: > > > On modern systems CPU/GPU/... performance is often dynamically > configurable > > > in the form of e.g. variable clock-speeds and TPD. The performance is > often > > > automatically adjusted to the load by some

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Barnabás Pőcze
Hi 2020. október 5., hétfő 14:58 keltezéssel, Limonciello, Mario írta: > > On modern systems CPU/GPU/... performance is often dynamically configurable > > in the form of e.g. variable clock-speeds and TPD. The performance is often > > automatically adjusted to the load by some

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Limonciello, Mario
> On modern systems CPU/GPU/... performance is often dynamically configurable > in the form of e.g. variable clock-speeds and TPD. The performance is often > automatically adjusted to the load by some automatic-mechanism (which may > very well live outside the kernel). > > These auto

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Benjamin Berg
Hi, seems reasonable to me. Quite simple, but likely good enough as we are sticking to only use well known names. Just found a small typo. Benjamin On Sat, 2020-10-03 at 15:19 +0200, Hans de Goede wrote: > On modern systems CPU/GPU/... performance is often dynamically configurable > in the

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-04 Thread Elia Devito
Hi Hans, On 2020-10-03 9:19 a.m., Hans de Goede wrote: > On modern systems CPU/GPU/... performance is often dynamically configurable > in the form of e.g. variable clock-speeds and TPD. The performance is often > automatically adjusted to the load by some automatic-mechanism (which may > very

Re: [External] [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-03 Thread Mark Pearson
Hi Hans, On 2020-10-03 9:19 a.m., Hans de Goede wrote: On modern systems CPU/GPU/... performance is often dynamically configurable in the form of e.g. variable clock-speeds and TPD. The performance is often automatically adjusted to the load by some automatic-mechanism (which may very well live

[RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-03 Thread Hans de Goede
On modern systems CPU/GPU/... performance is often dynamically configurable in the form of e.g. variable clock-speeds and TPD. The performance is often automatically adjusted to the load by some automatic-mechanism (which may very well live outside the kernel). These auto performance-adjustment