ThinkPad Yoga 370 thinkpad_acpi unhandled events
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): PqonyRG1_zESPTDspqzZ2qO65lHbv5E1z8Ekcgrzh0TtbBmlm69BnfUqZIEuSbF-d1z0VeXHPMRRCQenBEMNP2L8NyTqvIui1FwdHnJ6RAc=@protonmail.ch
A message that is not in the archive (sent off-list or not yet received): ei0r_oTyOQrFrZKDqLMWzJHdipDsPEu8zxZxhnNuNa6L7TMRdZzu43Ldx0mcuOiRI2Ud-Lx746lfMG-9YpGR7vcp1HrsuroruKEWzhrr3dg=@protonmail.ch
A message that is not in the archive (sent off-list or not yet received): [email protected]
+Cc: PDx86 ML, Darren
(Luckily entire discussion is kept in this mail)
Quoted 90 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang <[email protected]> wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo ShanghaiLinux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Peter FP1 Zhang
Sent: Wednesday, January 31, 2018 10:48 AM
To: 'Jordan Glover'; 'Christian Kellner'; [email protected]
Cc: [email protected]; [email protected]
Subject: RE: ThinkPad Yoga 370thinkpad_acpiunhandled eventsHello Jordan,
Appreciate your report. I ever discussed this topic with Chris half a year ago. The two events are both about thermal control.
Hello Chris and upstream team,
Would you mind telling me what info is needed to enable the two events?
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASL method is DYTCThanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo ShanghaiLinux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Jordan Glover [mailto:[email protected]]
Sent: Wednesday, January 31, 2018 1:54 AM
To: [email protected]
Cc: Peter FP1 Zhang; [email protected]; [email protected]
Subject: ThinkPad Yoga 370thinkpad_acpiunhandled eventsHello
I noticed some messages about
thinkpad_acpievents in my system logs.
My hardware is Lenovo ThinkPad Yoga 370, model 20JJS0HD00 2in1 laptop/tablet.
I tested this with kernel 4.15.rc8 with https://patchwork.kernel.org/patch/10057867/ patch added.1. Happens at boot:
thinkpad_acpi: ThinkPad ACPI Extras v0.25thinkpad_acpi: http://ibm-acpi.sf.net/thinkpad_acpi: ThinkPad BIOS R0HET41W (1.21 ), EC unknownthinkpad_acpi: Lenovo ThinkPad Yoga 370, model 20JJS0HD00thinkpad_acpi: radio switch found; radios are enabledthinkpad_acpi: Unknown/reserved multi mode value0x0000for type 4, please report this to [email protected]
...thinkpad_acpi: unknown possible thermal alarm or keyboard event receivedthinkpad_acpi: unhandled HKEY event0x60f0thinkpad_acpi: please report the conditions when this event happened to [email protected]2. Happens after 2in1 mode switch and back:
thinkpad_acpi: unknown possible thermal alarm or keyboard event received
thinkpad_acpi: unhandled HKEY event0x6032
thinkpad_acpi: please report the conditions when this event happened to [email protected]
thinkpad_acpi: unknown possible thermal alarm or keyboard event received
thinkpad_acpi: unhandled HKEY event0x60f0
thinkpad_acpi: please report the conditions when this event happened to [email protected]
thinkpad_acpi: unknown possible thermal alarm or keyboard event received
thinkpad_acpi: unhandled HKEY event0x60f0
thinkpad_acpi: please report the conditions when this event happened to [email protected]
thinkpad_acpi: unknown possible thermal alarm or keyboard event received
thinkpad_acpi: unhandled HKEY event0x60f0
thinkpad_acpi: please report the conditions when this event happened to [email protected]I attached output of:
acpidump
dmidecode
dmesg |grepthinkpad_acpiJordan
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
(Luckily entire discussion is kept in this mail)
Quoted 3 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang <[email protected]> wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
The patch to do that is quite trivial, would anyone like to try his/her hand at it? There are examples already in the thinkpad-acpi code of events we ignore...
Although it would have been nice to know what these events actually mean and what they hint the windows drivers to do, since we might have wanted to leverage them in Linux userspace as well :p
Quoted 2 lines
Quoted 2 lines
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASL method is DYTC
Signature · 1 line
Henrique Holschuh
Thank you Henrique!
@Jordan,
Would you like to try the patch Henrique mentioned?
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo Shanghai
Linux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Henrique de Moraes Holschuh [mailto:[email protected]]
Sent: Friday, February 16, 2018 2:21 AM
To: Andy Shevchenko
Cc: Peter FP1 Zhang; Platform Driver; Darren Hart; Jordan Glover; Christian Kellner; [email protected]; [email protected]
Subject: Re: ThinkPad Yoga 370 thinkpad_acpi unhandled events
Quoted 6 lines · Andy Shevchenko
(Luckily entire discussion is kept in this mail)
Quoted 3 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang <[email protected]> wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
The patch to do that is quite trivial, would anyone like to try his/her hand at it? There are examples already in the thinkpad-acpi code of events we ignore...
Although it would have been nice to know what these events actually mean and what they hint the windows drivers to do, since we might have wanted to leverage them in Linux userspace as well :p
Quoted 3 lines
Quoted 3 lines
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASL method is DYTC
--
Henrique Holschuh
Quoted 6 lines · On February 17, 2018 1:47 PM, Peter FP1 Zhang wrote:
Thank you Henrique!
@Jordan,
Would you like to try the patch Henrique mentioned?
Quoted 8 lines
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo ShanghaiLinux for Those Who Do - http://www.lenovo.com/linux
Yes, I can try it when it would be available.
Jordan
A message that is not in the archive (sent off-list or not yet received): FA1DB435B97D5A4192BAE54A4EA542A99ABF1461-bOPtaeQOlBPKZl9SKDgXa6BKnGwkPULj@public.gmane.org
Quoted 44 lines · On February 17, 2018 2:47 PM, Peter FP1 Zhang <[email protected]> wrote:
Thank you Henrique!
@Jordan,
Would you like to try the patch Henrique mentioned?
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo Shanghai
Linux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Henrique de Moraes Holschuh [mailto:[email protected]]
Sent: Friday, February 16, 2018 2:21 AM
To: Andy Shevchenko
Cc Peter FP1 Zhang; Platform Driver; Darren Hart; Jordan Glover; Christian Kellner; [email protected]; [email protected]Subject: Re: ThinkPad Yoga 370
thinkpad_acpiunhandled eventsQuoted 7 lines · Andy Shevchenko
(Luckily entire discussion is kept in this mail)
Quoted 3 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang [email protected] wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
The patch to do that is quite trivial, would anyone like to try his/her hand at it? There are examples already in the thinkpad-acpi code of events we ignore...
Although it would have been nice to know what these events actually mean and what they hint the windows drivers to do, since we might have wanted to leverage them in Linux userspace as well :p
Quoted 2 lines
Quoted 2 lines
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASLmethod is DYTC
--
Henrique Holschuh
Hi, any status update on this?
BTW: What's the official git repo for thinkpad acpi? One mentioned in MAINTAINERS doesn't seem legit[1]. It would be nice if it can be updated.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v4.16#n13701
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
@Henrique,
Would you mind giving some hints to Jordan? Thanks.
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo Shanghai
Linux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Jordan Glover [mailto:[email protected]]
Sent: Tuesday, April 3, 2018 8:04 PM
To: Peter FP1 Zhang <[email protected]>
Cc: Henrique de Moraes Holschuh <[email protected]>; Andy Shevchenko <[email protected]>; Platform Driver <[email protected]>; Darren Hart <[email protected]>; Christian Kellner <[email protected]>; [email protected]; [email protected]
Subject: RE: ThinkPad Yoga 370 thinkpad_acpi unhandled events
Quoted 48 lines · On February 17, 2018 2:47 PM, Peter FP1 Zhang <[email protected]> wrote:
Thank you Henrique!
@Jordan,
Would you like to try the patch Henrique mentioned?
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo Shanghai
Linux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Henrique de Moraes Holschuh [mailto:[email protected]]
Sent: Friday, February 16, 2018 2:21 AM
To: Andy Shevchenko
Cc: Peter FP1 Zhang; Platform Driver; Darren Hart; Jordan Glover; Christian Kellner; [email protected]; [email protected]
Subject: Re: ThinkPad Yoga 370
thinkpad_acpiunhandled eventsQuoted 7 lines · Andy Shevchenko
(Luckily entire discussion is kept in this mail)
Quoted 3 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang [email protected] wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
The patch to do that is quite trivial, would anyone like to try his/her hand at it? There are examples already in the thinkpad-acpi code of events we ignore...
Although it would have been nice to know what these events actually mean and what they hint the windows drivers to do, since we might have wanted to leverage them in Linux userspace as well :p
Quoted 2 lines
Quoted 2 lines
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASLmethod is DYTC
--
Henrique Holschuh
Hi, any status update on this?
BTW: What's the official git repo for thinkpad acpi? One mentioned in MAINTAINERS doesn't seem legit[1]. It would be nice if it can be updated.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v4.16#n13701
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
A message that is not in the archive (sent off-list or not yet received): FA1DB435B97D5A4192BAE54A4EA542A99AC542CC-bOPtaeQOlBPKZl9SKDgXa6BKnGwkPULj@public.gmane.org
Quoted 3 lines · On Tue, 03 Apr 2018, Peter FP1 Zhang wrote:
@Henrique,
Would you mind giving some hints to Jordan? Thanks.
Not a problem, I will either give hints or write the patch myself soon. Poke me in one week if I did not reply by that timeframe, please.
Quoted 63 lines
-----Original Message-----
From: Jordan Glover [mailto:[email protected]]
Sent: Tuesday, April 3, 2018 8:04 PM
To: Peter FP1 Zhang <[email protected]>
Cc: Henrique de Moraes Holschuh <[email protected]>; Andy Shevchenko <[email protected]>; Platform Driver <[email protected]>; Darren Hart <[email protected]>; Christian Kellner <[email protected]>; [email protected]; [email protected]
Subject: RE: ThinkPad Yoga 370thinkpad_acpiunhandled eventsQuoted 54 lines · On February 17, 2018 2:47 PM, Peter FP1 Zhang <[email protected]> wrote:
Thank you Henrique!
@Jordan,
Would you like to try the patch Henrique mentioned?
Thanks,
Peter Zhang \ 张福平, PMP
ThinkPad & ThinkStation Linux Solutions
Tel: (+86) 181-1611-8005 | Lenovo Shanghai
Linux for Those Who Do - http://www.lenovo.com/linux
-----Original Message-----
From: Henrique de Moraes Holschuh [mailto:[email protected]]
Sent: Friday, February 16, 2018 2:21 AM
To: Andy Shevchenko
Cc: Peter FP1 Zhang; Platform Driver; Darren Hart; Jordan Glover; Christian Kellner; [email protected]; [email protected]
Subject: Re: ThinkPad Yoga 370
thinkpad_acpiunhandled eventsQuoted 7 lines · Andy Shevchenko
(Luckily entire discussion is kept in this mail)
Quoted 3 lines · On Thu, Feb 1, 2018 at 4:07 AM, Peter FP1 Zhang [email protected] wrote:
Dear all,
I was told by our BIOS/Thermal team that the two events are designed for Windows OS, for Linux we can just ignore them directly.
The patch to do that is quite trivial, would anyone like to try his/her hand at it? There are examples already in the thinkpad-acpi code of events we ignore...
Although it would have been nice to know what these events actually mean and what they hint the windows drivers to do, since we might have wanted to leverage them in Linux userspace as well :p
Quoted 5 lines
Quoted 5 lines
0x60F0HK_THERMAL_TRANSFORMATION_CHANGED, ASL method is GTMS
0x6032HK_DYNAMIC_THERMAL_CONTROL_SET_COMMAND_COMPLIETION, ASLmethod is DYTC
--
Quoted 8 lines
Quoted 1 line
Henrique Holschuh
Hi, any status update on this?
BTW: What's the official git repo for thinkpad acpi? One mentioned in
MAINTAINERSdoesn't seem legit[1]. It would be nice if it can be updated.[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v4.16#n13701
Nowadays, thinkpad-acpi lives in the normal Linux trees. So, patches get merged into the platform-x86 subsystem tree, and then go to Linus' tree.
Signature · 9 lines
Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ ibm-acpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
A message that is not in the archive (sent off-list or not yet received): 20180403180210.v5tnefl2cvdvudfi-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org
Quoted 7 lines · Henrique de Moraes Holschuh
Quoted 4 lines
BTW: What's the official git repo for thinkpad acpi? One mentioned in
MAINTAINERSdoesn't seem legit[1]. It would be nice if it can be updated.[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v4.16#n13701
Nowadays, thinkpad-acpi lives in the normal Linux trees. So, patches
Quoted 8 lines
get merged into the platform-x86 subsystem tree, and then go to Linus'
tree.
-------------------------------------------------------------------------------------------------------------------------------------------------------
Henrique Holschuh
Shouldn't the link in MAINTAINERS be updated then? In current form it will confuse people. I guess this is the correct repo: git://git.infradead.org/linux-platform-drivers-x86.git
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Quoted 4 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Not a problem, I will either give hints or write the patch myself soon. Poke me in one week if I did not reply by that timeframe, please.
Patches written (fixed one bug and one annoyance while at it), will send them later this week after I get some time to test.
Signature · 5 lines
Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180409025836.ft3atn4goi4ebc4g-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org
Quoted 8 lines · Henrique de Moraes Holschuh
Quoted 5 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Not a problem, I will either give hints or write the patch myself soon.
Poke me in one week if I did not reply by that timeframe, please.
Quoted 8 lines
Patches written (fixed one bug and one annoyance while at it), will send
them later this week after I get some time to test.
---------------------------------------------------------------------------------------------------------------------------------
Henrique Holschuh
Great. Thanks for working on it. Are those patches available somewhere?
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
PATCH 1/3 thinkpad-acpi: silence HKEY 0x6032, 0x60f0, 0x6030
Demote to debug level one existing thermal-control related event, and also add two new ones that would otherwise trigger unknown event warnings. These events are Windows-only for now.
We do report them to userspace in case they become useful in the future.
--- Documentation/laptops/thinkpad-acpi.txt | 2 ++ drivers/platform/x86/thinkpad_acpi.c | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-)
Documentation/laptops/thinkpad-acpi.txt +2 -0
@@ -540,8 +540,10 @@ Events that are propagated by the driver to userspace: 0x6021 ALARM: a sensor is too hot 0x6022 ALARM: a sensor is extremely hot 0x6030 System thermal table changed +0x6032 Thermal Control command set completion (DYTC, Windows) 0x6040 Nvidia Optimus/AC adapter related (TO BE VERIFIED) 0x60C0 X1 Yoga 2016, Tablet mode status changed +0x60F0 Thermal Transformation changed (GMTS, Windows) Battery nearly empty alarms are a last resort attempt to get the operating system to hibernate or shutdown cleanly (0x2313), or shutdown
drivers/platform/x86/thinkpad_acpi.c +17 -2
@@ -212,7 +212,12 @@ enum tpacpi_hkey_event_t {TP_HKEY_EV_ALARM_BAT_XHOT =0x6012 ,/* battery critically hot */ TP_HKEY_EV_ALARM_SENSOR_HOT =0x6021 ,/* sensor too hot */ TP_HKEY_EV_ALARM_SENSOR_XHOT =0x6022 ,/* sensor critically hot */ -TP_HKEY_EV_THM_TABLE_CHANGED =0x6030 ,/* thermal table changed */ +TP_HKEY_EV_THM_TABLE_CHANGED =0x6030 ,/* windows; thermal table changed */ +TP_HKEY_EV_THM_CSM_COMPLETED =0x6032 ,/* windows; thermal control set +* command completed. Related to +* AML DYTC */ +TP_HKEY_EV_THM_TRANSFM_CHANGED =0x60F0 ,/* windows; thermal transformation +* changed. Related to AML GMTS */ /* AC-related events */ TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */
@@ -4042,7 +4047,17 @@ static bool hotkey_notify_6xxx(const u32 hkey,switch (hkey) {case TP_HKEY_EV_THM_TABLE_CHANGED : -pr_info ("EC reports that Thermal Table has changed\n" ); +pr_debug ("EC reports: Thermal Table has changed\n" ); +/* recommended action: do nothing, we don't have +* Lenovo ATM information */ +return true; +case TP_HKEY_EV_THM_CSM_COMPLETED : +pr_debug ("EC reports: Thermal Control Command set completed (DYTC)\n" ); +/* recommended action: do nothing, we don't have +* Lenovo ATM information */ +return true; +case TP_HKEY_EV_THM_TRANSFM_CHANGED : +pr_debug ("EC reports: Thermal Transformation changed (GMTS)\n" );/* recommended action: do nothing, we don't have * Lenovo ATM information */ return true;
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180420151629.12993-1-hmh-N3TV7GIv+o9fyO9Q7EP/[email protected]
PATCH 2/3 thinkpad-acpi: do not report thermal sensor state for tablet mode switch
We should not do a thermal sensors state dump to the kernel log just because the laptop is reporting that it changed into or out of tablet mode.
--- drivers/platform/x86/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
@@ -4098,7 +4098,7 @@ static bool hotkey_notify_6xxx(const u32 hkey,tpacpi_input_send_tabletsw ();hotkey_tablet_mode_notify_change (); *send_acpi_ev = false; -break ; +return true;case TP_HKEY_EV_PALM_DETECTED :case TP_HKEY_EV_PALM_UNDETECTED :
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
PATCH 3/3 thinkpad-acpi: silence false-positive-prone pr_warn
In reply to a message not in the archiveDo not consider unknown HKEY events in the 0x6000 range to be thermal warnings. Instead, handle them as a generic unknown HKEY event, which are reported to the kernel log at priority "notice", and do not trigger a thermal registers state dump to the log.
--- drivers/platform/x86/thinkpad_acpi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/platform/x86/thinkpad_acpi.c +3 -6
@@ -4039,8 +4039,6 @@ static bool hotkey_notify_6xxx(const u32 hkey,bool *send_acpi_ev, bool *ignore_acpi_ev) { - bool known = true; -/* 0x6000-0x6FFF: thermal alarms/notices and keyboard events */ *send_acpi_ev = true; *ignore_acpi_ev = false;
@@ -4107,13 +4105,12 @@ static bool hotkey_notify_6xxx(const u32 hkey,return true;default : -pr_warn ("unknown possible thermal alarm or keyboard event received\n" ); - known = false; +/* report simply as unknown, no sensor dump */ +return false; }thermal_dump_all_sensors (); - -return known; +return true; }static void hotkey_notify (struct ibm_struct *ibm,u32 event)
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 6 lines · Jordan Glover
Quoted 4 lines · Henrique de Moraes Holschuh
Quoted 2 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Not a problem, I will either give hints or write the patch myself soon.
Poke me in one week if I did not reply by that timeframe, please.
Patches written (fixed one bug and one annoyance while at it), will send
them later this week after I get some time to test.
I apologise for the delay, had severe issues to deal with this week and they are not over yet.
I will send the (untested) patches, please test.
Signature · 5 lines
Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180420151750.bp4wy3fm6ymniool-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org
Quoted 18 lines · Henrique de Moraes Holschuh
Quoted 6 lines · Jordan Glover
Quoted 4 lines · On April 9, 2018 4:58 AM, Henrique de Moraes Holschuh [email protected] wrote:
Quoted 2 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Not a problem, I will either give hints or write the patch myself soon.
Poke me in one week if I did not reply by that timeframe, please.
Patches written (fixed one bug and one annoyance while at it), will send
them later this week after I get some time to test.
I apologise for the delay, had severe issues to deal with this week and
Quoted 8 lines
they are not over yet.
I will send the (untested) patches, please test.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Henrique Holschuh
I tested patches on top of Linux 4.17-rc1. The warning message is gone, everything works good.
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Quoted 4 lines · Jordan Glover via ibm-acpi-devel
Quoted 1 line · Henrique de Moraes Holschuh
I will send the (untested) patches, please test.
I tested patches on top of Linux 4.17-rc1. The warning message is gone, everything works good.
Thanks for testing!
Andy, Darren, looks like we can add Jordan's Tested-by: and schedule the three patches for the next merge window...
Do you want me to respin the patches with the tested-by and without the untested prefix, or can you take them directly?
Signature · 5 lines
Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180424112801.63ojsumt34q26wor-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org
Quoted 6 lines · Henrique de Moraes Holschuh
Quoted 4 lines · Jordan Glover via ibm-acpi-devel
Quoted 1 line · Henrique de Moraes Holschuh
I will send the (untested) patches, please test.
I tested patches on top of Linux 4.17-rc1. The warning message is gone, everything works good.
Quoted 7 lines
Thanks for testing!
Andy, Darren, looks like we can add Jordan's Tested-by: and schedule the three patches for the next merge window...
Do you want me to respin the patches with the tested-by and without the untested prefix, or can you take them directly?
Yes, please.
It will make our life easier.
Signature · 6 lines
With Best Regards, Andy Shevchenko ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): CAHp75VciLyh1Y1sws69Hn=vN39suV+HH-JwNLcbeUnZ_dwrc0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
PATCH 1/3 thinkpad-acpi: silence HKEY 0x6032, 0x60f0, 0x6030
Demote to debug level one existing thermal-control related event, and also add two new ones that would otherwise trigger unknown event warnings. These events are Windows-only for now.
We do report them to userspace in case they become useful in the future.
--- Documentation/laptops/thinkpad-acpi.txt | 2 ++ drivers/platform/x86/thinkpad_acpi.c | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-)
Documentation/laptops/thinkpad-acpi.txt +2 -0
@@ -540,8 +540,10 @@ Events that are propagated by the driver to userspace: 0x6021 ALARM: a sensor is too hot 0x6022 ALARM: a sensor is extremely hot 0x6030 System thermal table changed +0x6032 Thermal Control command set completion (DYTC, Windows) 0x6040 Nvidia Optimus/AC adapter related (TO BE VERIFIED) 0x60C0 X1 Yoga 2016, Tablet mode status changed +0x60F0 Thermal Transformation changed (GMTS, Windows) Battery nearly empty alarms are a last resort attempt to get the operating system to hibernate or shutdown cleanly (0x2313), or shutdown
drivers/platform/x86/thinkpad_acpi.c +17 -2
@@ -212,7 +212,12 @@ enum tpacpi_hkey_event_t {TP_HKEY_EV_ALARM_BAT_XHOT =0x6012 ,/* battery critically hot */ TP_HKEY_EV_ALARM_SENSOR_HOT =0x6021 ,/* sensor too hot */ TP_HKEY_EV_ALARM_SENSOR_XHOT =0x6022 ,/* sensor critically hot */ -TP_HKEY_EV_THM_TABLE_CHANGED =0x6030 ,/* thermal table changed */ +TP_HKEY_EV_THM_TABLE_CHANGED =0x6030 ,/* windows; thermal table changed */ +TP_HKEY_EV_THM_CSM_COMPLETED =0x6032 ,/* windows; thermal control set +* command completed. Related to +* AML DYTC */ +TP_HKEY_EV_THM_TRANSFM_CHANGED =0x60F0 ,/* windows; thermal transformation +* changed. Related to AML GMTS */ /* AC-related events */ TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */
@@ -4042,7 +4047,17 @@ static bool hotkey_notify_6xxx(const u32 hkey,switch (hkey) {case TP_HKEY_EV_THM_TABLE_CHANGED : -pr_info ("EC reports that Thermal Table has changed\n" ); +pr_debug ("EC reports: Thermal Table has changed\n" ); +/* recommended action: do nothing, we don't have +* Lenovo ATM information */ +return true; +case TP_HKEY_EV_THM_CSM_COMPLETED : +pr_debug ("EC reports: Thermal Control Command set completed (DYTC)\n" ); +/* recommended action: do nothing, we don't have +* Lenovo ATM information */ +return true; +case TP_HKEY_EV_THM_TRANSFM_CHANGED : +pr_debug ("EC reports: Thermal Transformation changed (GMTS)\n" );/* recommended action: do nothing, we don't have * Lenovo ATM information */ return true;
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
PATCH 2/3 thinkpad-acpi: do not report thermal sensor state for tablet mode switch
In reply to a message not in the archiveWe should not do a thermal sensors state dump to the kernel log just because the laptop is reporting that it changed into or out of tablet mode.
--- drivers/platform/x86/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
@@ -4098,7 +4098,7 @@ static bool hotkey_notify_6xxx(const u32 hkey,tpacpi_input_send_tabletsw ();hotkey_tablet_mode_notify_change (); *send_acpi_ev = false; -break ; +return true;case TP_HKEY_EV_PALM_DETECTED :case TP_HKEY_EV_PALM_UNDETECTED :
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
PATCH 3/3 thinkpad-acpi: silence false-positive-prone pr_warn
In reply to a message not in the archiveDo not consider unknown HKEY events in the 0x6000 range to be thermal warnings. Instead, handle them as a generic unknown HKEY event, which are reported to the kernel log at priority "notice", and do not trigger a thermal registers state dump to the log.
--- drivers/platform/x86/thinkpad_acpi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/platform/x86/thinkpad_acpi.c +3 -6
@@ -4039,8 +4039,6 @@ static bool hotkey_notify_6xxx(const u32 hkey,bool *send_acpi_ev, bool *ignore_acpi_ev) { - bool known = true; -/* 0x6000-0x6FFF: thermal alarms/notices and keyboard events */ *send_acpi_ev = true; *ignore_acpi_ev = false;
@@ -4107,13 +4105,12 @@ static bool hotkey_notify_6xxx(const u32 hkey,return true;default : -pr_warn ("unknown possible thermal alarm or keyboard event received\n" ); - known = false; +/* report simply as unknown, no sensor dump */ +return false; }thermal_dump_all_sensors (); - -return known; +return true; }static void hotkey_notify (struct ibm_struct *ibm,u32 event)
Signature · 6 lines
2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180424195605.17526-3-hmh-N3TV7GIv+o9fyO9Q7EP/[email protected]
Re: [PATCH 3/3] thinkpad-acpi: silence false-positive-prone pr_warn
Quoted 5 lines · Henrique de Moraes Holschuh
Do not consider unknown HKEY events in the
0x6000range to be thermal warnings. Instead, handle them as a generic unknown HKEY event, which are reported to the kernel log at priority "notice", and do not trigger a thermal registers state dump to the log.
All 3 are pushed to my review and testing queue, thanks!
Quoted 39 lines
--- drivers/platform/x86/thinkpad_acpi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)drivers/platform/x86/thinkpad_acpi.c +3
-7@@ -4039,8 +4039,6 @@ static bool hotkey_notify_6xxx(const u32 hkey,bool *send_acpi_ev, bool *ignore_acpi_ev) { - bool known = true; -/* 0x6000-0x6FFF: thermal alarms/notices and keyboard events */ *send_acpi_ev = true; *ignore_acpi_ev = false;@@ -4107,13 +4105,12 @@ static bool hotkey_notify_6xxx(const u32 hkey,return true;default : -pr_warn ("unknown possible thermal alarm or keyboard event received\n" ); - known = false; +/* report simply as unknown, no sensor dump */ +return false; }thermal_dump_all_sensors (); - -return known; +return true; }static void hotkey_notify (struct ibm_struct *ibm,u32 event) --2.11.0
Signature · 6 lines
With Best Regards, Andy Shevchenko ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 22 lines · Jordan Glover
Quoted 20 lines · On April 20, 2018 5:17 PM, Henrique de Moraes Holschuh [email protected] wrote:
Quoted 6 lines · Jordan Glover
Quoted 4 lines · On April 9, 2018 4:58 AM, Henrique de Moraes Holschuh [email protected] wrote:
Quoted 2 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Not a problem, I will either give hints or write the patch myself soon.
Poke me in one week if I did not reply by that timeframe, please.
Patches written (fixed one bug and one annoyance while at it), will send
them later this week after I get some time to test.
I apologise for the delay, had severe issues to deal with this week and
they are not over yet.
Quoted 7 lines
Quoted 3 lines
I will send the (untested) patches, please test.
Henrique Holschuh
I tested patches on top of Linux 4.17-rc1. The warning message is gone, everything works good.
Jordan
Hm, actually the warning message still occurs but only when booting from cold:
thinkpad_acpi: Unknown/reserved multi mode value 0x0000 for type 4, please report this to [email protected]
After reboot this message is gone. Previously it was printed on every boot, that's why I thought it's gone completely. There aren't any messages about unhandled keys anymore.
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Quoted 38 lines · Jordan Glover via ibm-acpi-devel
Quoted 22 lines · On April 24, 2018 12:16 PM, Jordan Glover [email protected] wrote:
Quoted 20 lines · On April 20, 2018 5:17 PM, Henrique de Moraes Holschuh [email protected] wrote:
Quoted 6 lines · Jordan Glover
Quoted 4 lines · On April 9, 2018 4:58 AM, Henrique de Moraes Holschuh [email protected] wrote:
Quoted 2 lines · Henrique de Moraes Holschuh
Quoted 1 line
Would you mind giving some hints to Jordan? Thanks.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Not a problem, I will either give hints or write the patch myself soon.
Poke me in one week if I did not reply by that timeframe, please.
Patches written (fixed one bug and one annoyance while at it), will send
them later this week after I get some time to test.
I apologise for the delay, had severe issues to deal with this week and
they are not over yet.
Quoted 7 lines
Quoted 3 lines
I will send the (untested) patches, please test.
Henrique Holschuh
I tested patches on top of Linux 4.17-rc1. The warning message is gone, everything works good.
Jordan
Hm, actually the warning message still occurs but only when booting from cold:
thinkpad_acpi: Unknown/reserved multi mode value0x0000for type 4,please report this to [email protected]
Quoted 7 lines
After reboot this message is gone. Previously it was printed on every boot, that's
why I thought it's gone completely. There aren't any messages about unhandled
keys anymore.
Jordan
Nah, sorry. It was always printed only after cold boot. The patches fixed messages about unhandled keys for certain but that one above seems unrelated and untouched.
Jordan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel