Skip to content

hwmon: (dell-smm) Add support for WMI SMM interface

Armin Wolf linux-hwmon lkml platform-driver-x86 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 2 repliesIn review
  2. v39 patches 6 repliesSuperseded
  3. v29 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Using unsigned integers for registers
- use TAB instead of space after comma

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hwmon: (dell-smm) Prepare for multiple SMM calling backendsdrivers/hwmon/dell-smm-hwmon.c+79 -520 replies
2/9hwmon: (dell-smm) Move blacklist handling to module initdrivers/hwmon/dell-smm-hwmon.c+34 -290 replies
3/9hwmon: (dell-smm) Move whitelist handling to module initdrivers/hwmon/dell-smm-hwmon.c+17 -140 replies
4/9hwmon: (dell-smm) Move DMI config handling to module initdrivers/hwmon/dell-smm-hwmon.c+15 -160 replies
5/9hwmon: (dell-smm) Move config entries out of i8k_dmi_tabledrivers/hwmon/dell-smm-hwmon.c+73 -560 replies
6/9hwmon: (dell-smm) Introduce helper function for data initdrivers/hwmon/dell-smm-hwmon.c+28 -180 replies
7/9hwmon: (dell-smm) Add support for WMI SMM interfacedrivers/hwmon/Kconfig drivers/hwmon/dell-smm-hwmon.c drivers/platform/x86/wmi.c+182 -190 replies
8/9hwmon: (dell-smm) Document the WMI SMM interfaceDocumentation/hwmon/dell-smm-hwmon.rst+35 -30 replies
9/9hwmon: (dell-smm) Add Optiplex 7000 to fan control whitelistdrivers/hwmon/dell-smm-hwmon.c+8 -00 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

Patch[email protected]Hans de GoedePali Rohár
SeriesR-b
1/9T-b R-b
2/9T-b R-b
3/9T-b R-b
4/9T-b R-b
5/9T-b R-b
6/9T-b R-b
7/9T-b R-b
8/9R-b
9/9T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/9] hwmon: (dell-smm) Add support for WMI SMM interface

This patch series adds support for an alternative SMM calling backend to the dell-smm-hwmon driver. The reason for this is that on some modern machines, the legacy SMM calling interface does not work anymore and the SMM handler can be called over ACPI WMI instead.

The first four patches prepare the driver by allowing to specify different SMM calling backends, and by moving most of the DMI handling into i8k_init() so that the DMI tables can keep their __initconst attributes (the WMI SMM backend driver does not probe at module init time). The fifth patch does some minor cleanup, while the next three patches implement the new WMI SMM calling backend. The last patch adds the machine of the user who requested and tested the changes to the fan control whitelist.

If the driver does not detect the legacy SMM interface, either because the machine is not whitelisted or because the SMM handler does not react, it registers an WMI driver which will then bound to the WMI SMM interface and do the remaining initialization.

The deprecated procfs interface is not supported when using the WMI SMM calling backend for the following reason: the WMI driver can potentially be instantiated multiple times while the deprectated procfs interface cannot. This should not cause any regressions because on machines supporting only the WMI SMM interface, the driver would, until now, not load anyway.

All patches where tested on a Dell Inspiron 3505 and a Dell OptiPlex 7000.

Changes since v3:
- Using unsigned integers for registers
- use TAB instead of space after comma

Changes since v2:
- Rework WMI response parsing
- Use #define for method number

Changes since v1:
- Cc platform driver maintainers
- Fix formating inside documentation

Armin Wolf (9):
hwmon: (dell-smm) Prepare for multiple SMM calling backends
hwmon: (dell-smm) Move blacklist handling to module init
hwmon: (dell-smm) Move whitelist handling to module init
hwmon: (dell-smm) Move DMI config handling to module init
hwmon: (dell-smm) Move config entries out of i8k_dmi_table
hwmon: (dell-smm) Introduce helper function for data init
hwmon: (dell-smm) Add support for WMI SMM interface
hwmon: (dell-smm) Document the WMI SMM interface
hwmon: (dell-smm) Add Optiplex 7000 to fan control whitelist

 Documentation/hwmon/dell-smm-hwmon.rst |  38 +-
 drivers/hwmon/Kconfig                  |   1 +
 drivers/hwmon/dell-smm-hwmon.c         | 604 +++++++++++++++++--------
 drivers/platform/x86/wmi.c             |   1 +
 4 files changed, 454 insertions(+), 190 deletions(-)

--
2.39.2