Skip to content

AMD_SFH: Allow overriding sensor-mask by module-param or DMI-quirk

Hans de Goede linux-input 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3AMD_SFH: Removed unused activecontrolstatus member from the amd_mp2_dev structdrivers/hid/amd-sfh-hid/amd_sfh_pcie.c drivers/hid/amd-sfh-hid/amd_sfh_pcie.h+4 -30 replies
2/3AMD_SFH: Add sensor_mask module parameterdrivers/hid/amd-sfh-hid/amd_sfh_pcie.c+11 -30 replies
3/3AMD_SFH: Add DMI quirk table for BIOS-es which don't set the activestatus bitsdrivers/hid/amd-sfh-hid/amd_sfh_pcie.c+24 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] AMD_SFH: Allow overriding sensor-mask by module-param or DMI-quirk

Hi All,

There are several bug-reports about the new AMD_SFH driver not working on various HP ENVY x360 Convertible models. The problem is that the driver expects the BIOS to program which sensors are present into the active bits of the AMD_P2C_MSG3 register; and the BIOS on these models does not do this:

https://bugzilla.kernel.org/show_bug.cgi?id=199715
https://bugzilla.redhat.com/show_bug.cgi?id=1651886

This patch-set adds a module-parameter + DMI-quirk mechanism to override the settings read back from the AMD_P2C_MSG3 register, to work around this problem. The DMI-quirk table is populated with 2 HP ENVY x360 Convertible models which are know to need this workaround.

There also is a much larger refactoring patch-set pending from Richard Neumann, who is also involved in the bugzilla.kernel.org bug.

But it looks to me like that will need a bit more more work before it is ready for merging, where as (IMHO) this set is ready for merging now. So IMHO it would be good to first merge this patch-set to get this fix into the hands of end-users of these devices.

Note there still is an open issue on these devices where the sensors stop working after a suspend/resume cycle.

I wonder if the driver should perhaps not only not use the active bits of the AMD_P2C_MSG3 register for determining which sensors are there, but if it should actually write to those bots with the correct settings.

Sandeep, do you have any ideas what might be the problem here? Should I ask the reporters to test a patch which actually updates the active bits?

Regards,

Hans

Hans de Goede (3):
AMD_SFH: Removed unused activecontrolstatus member from the
amd_mp2_dev struct
AMD_SFH: Add sensor_mask module parameter
AMD_SFH: Add DMI quirk table for BIOS-es which don't set the
activestatus bits

 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 40 ++++++++++++++++++++++++--
 drivers/hid/amd-sfh-hid/amd_sfh_pcie.h |  1 -
 2 files changed, 37 insertions(+), 4 deletions(-)
Signature · 1 line
2.29.2