[PATCH v3 2/2] platform/x86: hp-wmi: add platform profile support

2021-02-21 Thread Elia Devito
Implement support for cool, balanced and performance thermal profile Signed-off-by: Elia Devito --- the "quiet" profile will be implemented with a further patch v2: added platform_profile_remove() missing call v3: apply Barnabás suggestions drivers/platform/x86/hp-

[PATCH v2 2/2] platform/x86: hp-wmi: add platform profile support

2021-02-21 Thread Elia Devito
Implement support for cool, balanced and performance thermal profile Signed-off-by: Elia Devito --- the "quiet" profile will be implemented with a further patch v2: added platform_profile_remove() missing call drivers/platform/x86/hp-wmi.c | 103

[PATCH 2/2] platform/x86: hp-wmi: add platform profile support

2021-02-21 Thread Elia Devito
Implement support for cool, balanced and performance thermal profile Signed-off-by: Elia Devito --- the "quiet" profile will be implemented with a further patch drivers/platform/x86/hp-wmi.c | 96 +-- 1 file changed, 91 insertions(+), 5 deletions(-)

[PATCH 1/2] platform/x86: hp-wmi: rename "thermal policy" to "thermal profile"

2021-02-21 Thread Elia Devito
rename "thermal policy" with the more appropriate term "thermal profile" Signed-off-by: Elia Devito --- drivers/platform/x86/hp-wmi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.

[PATCH] HID: Ignore battery for Elan touchscreen on HP Spectre X360 15-df0xxx

2021-01-22 Thread Elia Devito
Battery status is reported for the HP Spectre X360 Convertible 15-df0xxx even if it does not have a battery. Prevent it to always report the battery as low. Signed-off-by: Elia Devito --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-input.c | 2 ++ 2 files changed, 3 insertions(+) diff --git

[PATCH v3 2/2] intel-hid: add alternative method to enable switches

2020-12-04 Thread Elia Devito
From: Elia Devito Some convertible have unreliable VGBS return, in these cases we enable support when receiving the first event. Signed-off-by: Elia Devito --- drivers/platform/x86/intel-hid.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/platform/x86/intel-hid.c

[PATCH v3 1/2] intel-hid: add support for SW_TABLET_MODE

2020-12-04 Thread Elia Devito
From: Elia Devito Some convertible use the intel-hid ACPI interface to report SW_TABLET_MODE, implement this with DMI based allow-list to be sure to activate support only on models that effectively have it. Signed-off-by: Elia Devito --- v2: patch reworked according to received feedbacks

Re: [PATCH v2 2/2] intel-hid: add alternative method to enable switches

2020-12-04 Thread Elia Devito
Hi Barnabás In data venerdì 4 dicembre 2020 00:45:10 CET, Barnabás Pőcze ha scritto: > Hi > > 2020. december 3., csütörtök 22:21 keltezéssel, Elia Devito írta: > > [...] > > diff --git a/drivers/platform/x86/intel-hid.c > > b/drivers/platform/x86/intel-hid.c index

[PATCH v2 2/2] intel-hid: add alternative method to enable switches

2020-12-03 Thread Elia Devito
Some convertible have unreliable VGBS return, in these cases we enable support when receiving the first event. Signed-off-by: Elia Devito --- drivers/platform/x86/intel-hid.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform

[PATCH v2 1/2] intel-hid: add support for SW_TABLET_MODE

2020-12-03 Thread Elia Devito
Some convertible use the intel-hid ACPI interface to report SW_TABLET_MODE, implement this with DMI based allow-list to be sure to activate support only on models that effectively have it. Signed-off-by: Elia Devito --- v2: patch reworked according to received feedbacks drivers/platform/x86

[PATCH 3/3] intel-hid: disable switches on Dell Latitute 7410 2in1

2020-12-01 Thread Elia Devito
Disable switches on Dell Latitute 7410 2in1 due firmware bug Signed-off-by: Elia Devito --- maybe Mario Limonciello can help on this drivers/platform/x86/intel-hid.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel-hid.c b

[PATCH 2/3] intel-hid: add option to enable/disable switches

2020-12-01 Thread Elia Devito
Add option to force enable/disable switches support. Signed-off-by: Elia Devito --- drivers/platform/x86/intel-hid.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index 5093c57102cf

[PATCH 1/3] intel-hid: add support for SW_TABLET_MODE

2020-12-01 Thread Elia Devito
Add support for SW_TABLET_MODE for convertibles notebook. Exactly as intel-vbtn driver, the event code 0xcc is emitted by convertibles when entering tablet mode and 0xcd when return to laptop mode. Signed-off-by: Elia Devito --- more info: https://bugzilla.kernel.org/show_bug.cgi?id=207433

Re: [PATCH] Documentation: Add documentation for new platform_profile sysfs attribute

2020-10-27 Thread Elia Devito
Hi to all, In data martedì 27 ottobre 2020 17:42:19 CET, Mark Pearson ha scritto: > From: Hans de Goede > > On modern systems the platform performance, temperature, fan and other > hardware related characteristics are often dynamically configurable. The > profile is often automatically adjusted

Re: [External] Re: [PATCH] [RFC] Documentation: Add documentation for new platform_profile sysfs attribute

2020-10-27 Thread Elia Devito
Hi to all, In data martedì 27 ottobre 2020 08:54:44 CET, Hans de Goede ha scritto: > Hi, > > On 10/26/20 8:55 PM, Mark Pearson wrote: > > Thanks Hans > > > > On 26/10/2020 14:33, Hans de Goede wrote: > >> Hi Mark, > >> > >> Thank you for this new version. > >> > >> On 10/26/20 6:44 PM, Mark

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
Hi, In data venerdì 16 ottobre 2020 16:43:09 CEST, Mark Pearson ha scritto: > based address> > > On 2020-10-16 10:32 a.m., Mark Pearson wrote: > > ---- > > *From:* Elia Devito > >

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

2020-10-14 Thread Elia Devito
Hi, In data mercoledì 14 ottobre 2020 17:46:43 CEST, Rafael J. Wysocki ha scritto: > On Wed, Oct 14, 2020 at 4:16 PM Hans de Goede wrote: > > Hi, > > > > On 10/14/20 3:55 PM, Rafael J. Wysocki wrote: > > > On Tue, Oct 13, 2020 at 3:09 PM Hans de Goede wrote: > > >> Hi, > > >> > > >> On

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

2020-10-04 Thread Elia Devito
nd thermals). > > Introduce a new performance_profile class/sysfs API which offers a generic > API for selecting the performance-profile of these automatic-mechanisms. > > Cc: Mark Pearson > Cc: Elia Devito > Cc: Bastien Nocera > Cc: Benjamin Berg > Cc: linux...@vge

[PATCH v2] platform/x86: hp-wmi: add support for thermal policy

2020-10-04 Thread Elia Devito
to choose the wrong DPTF profile witch result in low performance when notebook is on AC, calling thermal policy write command allow firmware to correctly set the odvp0 variable. Signed-off-by: Elia Devito --- drivers/platform/x86/hp-wmi.c | 23 +++ 1 file changed, 23 insertions

[PATCH] platform/x86: hp-wmi: add support for thermal policy

2020-09-14 Thread Elia Devito
-off-by: Elia Devito --- drivers/platform/x86/hp-wmi.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 1762f335bac9..14ee176f5588 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers