Skip to content

platform-x86-asus-wmi: multiple fixes, improvements, features

Luke D. Jones lkml oe-kbuild-all platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9platform/x86: asus-wmi: add debug print in more key placesdrivers/platform/x86/asus-wmi.c+48 -100 replies
2/9platform/x86: asus-wmi: don't fail if platform_profile already registereddrivers/platform/x86/asus-wmi.c+7 -20 replies
3/9platform/x86: asus-wmi: add macros and expose min/max sysfs for ppt tunablesDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c+245 -3391 reply
4/9platform/x86: asus-wmi: reduce code duplication with macrosdrivers/platform/x86/asus-wmi.c+38 -1772 replies
5/9platform/x86: asus-wmi: use WMI_SIMPLE_SHOW in more placesdrivers/platform/x86/asus-wmi.c+4 -261 reply
6/9platform/x86: asus-wmi: add panel-fhd functionalityDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+30 -01 reply
7/9platform/x86: asus-wmi: add enable/disable CPU coresDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+69 -02 replies
8/9platform/x86: asus-wmi: add apu_mem settingDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+120 -08 replies
9/9platform/x86: asus-wmi: add setting dGPU TGPDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+31 -00 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/9] platform-x86-asus-wmi: multiple fixes, improvements, features

This is a series of patches containing either fixes, improvements, or new features.

Most of it is vary straightforward and I'd hope quick and easy to review. However patch 0003 does a fair bit of work in reducing a series of common patterns down to a few macros and a more generic store function. This ends up unifying a lot of things to and making the end result much cleaner to read plus add future features of the same pattern.

I am unsure if I've got the macros correct. Everything compiles, all is tested and working correctly - but maybe I could use some guidance on formatting and style there? Should they be in a header?

The debug statement patch was invaluable for debugging some issues on another users machine. I will likely add some more debug in future.

The platform_profile issue.. It seems there is a race bewteen asus-wmi and an AMD driver to register the platform_profile on boot on some laptops. The asus-wmi driver can live without platform_profile quite fine as the feature is really just a wrapper around throttle_thermal_policy. But it does raise the question of "what's going on here?".

Many thanks,
Luke.

Luke D. Jones (9):
platform/x86: asus-wmi: add debug print in more key places platform/x86: asus-wmi: don't fail if platform_profile already
registered
platform/x86: asus-wmi: add macros and expose min/max sysfs for ppt
tunables
platform/x86: asus-wmi: reduce code duplication with macros platform/x86: asus-wmi: use WMI_SIMPLE_SHOW in more places platform/x86: asus-wmi: add panel-fhd functionality platform/x86: asus-wmi: add enable/disable CPU cores platform/x86: asus-wmi: add apu_mem setting platform/x86: asus-wmi: add setting dGPU TGP

 .../ABI/testing/sysfs-platform-asus-wmi       |   78 +-
 drivers/platform/x86/asus-wmi.c               | 1248 ++++++++---------
 include/linux/platform_data/x86/asus-wmi.h    |   12 +
 3 files changed, 688 insertions(+), 650 deletions(-)
Signature · 1 line
2.45.1