platform-drivers-x86 for v7.3-1

Highlights:

- amd/halo: Add Halo RGB LED driver

- amd/hsmp:
  - Properly serialize probe, remove, and data paths
  - Add support for protocol v7 used by Family 1AH Model 80H
  - Fix error checking corner cases (largely from AI review)
  - Reject negative power cap

- amd/pmc:
  - Improve behavior on platforms that do not support STB
  - Add T14 Gen2 AMD (20XL) to s2idle quirk list

- amd/pmf:
  - Add ioctl interface to retrieve device metrics
  - Add support for new metrics tables used by Family 1AH Model 80H

- arm64: qcom-hamoa-ec: Reject short responses

- asus-nb-wmi: Support ProArt key on ASUS ProArt PX13

- asus-armoury:
  - Gate PPT writes behind active fan curve
  - Add power limits for more models

- dell-wmi-base: Fix handling of ultra performance key

- dell-wmi-sysman: Don't hex dump attribute security buffer

- hp-bioscfg:
  - Various fixes
  - Improve reduced ACPI packages support (necessary for HP EliteBook 840 G2)

- lg-laptop:
  - Fix LED resource handling
  - Add support for events used in newer models
  - Fix keyboard backlight support on LG Gram 16T90SP

- hp-wmi:
  - Generalize thermal params to board params
  - Manage CPU and GPU PWM independently
  - Add GPU MUX switch support
  - Add Victus 15-fb0xxx support
  - Add OMEN MAX 16-ak0xxx, OMEN 16-n0xxx, OMEN 16-wd0xxx, OMEN
    16-wf0xxx, and OMEN board ID 8D88 support
  - Add OMEN Transcend 16-u0xxx support

- huawei: Add support for Fn-lock ACPI interface found on newer Huawei
          laptops such as MateBook 14 2024

- ISST:
  - Improve input validation (many fixes)
  - Disallow SST-CP (core-power) feature if perf profile add fails

- lenovo/yb9-kbdock: Add driver for Yoga Book 9 14IAH10

- lenovo/ymc:
  - Extend hinge switch query to support Yoga 9 2-in-1 14IPH11
  - Prevent loading on Yoga Book 9 14IAH10 to avoid duplicated input
    nodes

- msi-ec: Add MSI Raider A18 HX A9WJG and MSI Katana GF76 11UEK support

- msi-wmi: Add MSI Claw M-Center keys support

- oxpec: Add support for OneXPlayer X2 Mini Pro

- redmi-wmi: Report kbd backlight cycle, OEM preset power mode, and FnLock
             toggle events to userspace

- samsung-galaxybook: Add Samsung Galaxy Book6 Pro support

- thinkpad_acpi: Add USB-C Security support

- uniwill-laptop:
  - Add keyboard backlight, AC auto boot, and USB powershare support
  - Add MACHENIKE L16 Pro, AiStone X4SP4NAL, and Avell A60 MUV support
  - Make lightbar max brightness configurable and add support for
    LAPQC71A/B

- Major refactoring efforts:
  - Stop setting acpi_device_name/class() and pnp.device_class to
    faciliate their eventual removal

- Many rollback/remove path fixes (presumably mostly found by AI)

- Miscellaneous cleanups / refactoring / improvements

The following is an automated shortlog grouped by driver:

acer-wmi:
 -  reject missing gaming WMI results

amd/hsmp:
 -  ACPI HSMP refcounted sockets and coordinated release
 -  Add HSMP messages for Family 1Ah, Model 50h-5Fh
 -  Add IOCTL_GET_TELEMETRY_DATA for metric table reads
 -  Clear mdev.this_device on deregister
 -  Enable protocol version 7 metric tables on the ACPI driver
 -  Gate the data plane on a fully initialized socket
 -  Map the metric table with ioremap() and unmap it explicitly
 -  Pass struct device explicitly to ACPI mailbox parsers
 -  Reject negative power cap writes in hwmon
 -  Serialize ACPI HSMP probe and remove with an rwsem
 -  Serialize per-socket metric table reads with a mutex
 -  Serialize the data plane against socket teardown
 -  Source metric-table size from firmware
 -  Unify response_sz validation to an upper-bound check
 -  Validate ACPI UID before parsing socket index
 -  Validate _DSD mailbox sub-package element count

amd:
 -  Introduce Halo Box RGB LED driver

amd/pmc:
 -  Add T14 Gen2 AMD (20XL) to s2idle quirk list
 -  Do not fail probe when STB init fails
 -  Fix LPS0 and debugfs leaks when STB init fails
 -  Fix msg_port restoration in amd_stb_debugfs_open_v2()
 -  Only expose stb_read after telemetry buffer is mapped
 -  Propagate SMU errors and validate S2D address
 -  Restore msg_port on amd_stb_s2d_init() error paths

amd/pmf:
 -  Add 1AH_M80H device IDs and extended SMU mailbox registers
 -  Add 1AH_M80H metrics table and NPU metrics support
 -  Add missing newline in dev_err message
 -  Add util layer and userspace character device interface
 -  Implement util layer ioctl handler
 -  Introduce AMD PMF testing tool for driver metrics and features
 -  Move debug helper functions to UAPI header
 -  Move metrics code to dedicated file
 -  Refactor NPU metrics for platform extensibility
 -  store BIOS output values for user-space metrics via util IOCTL
 -  Store commonly used enums in the header file
 -  Use per-SoC smu_regs struct for SMU mailbox registers
 -  Use upper/lower_32_bits() in amd_pmf_set_dram_addr()

arm64: qcom-hamoa-ec:
 -  reject incomplete responses

asus-armoury:
 -  Add power limits for ROG Strix SCAR 16 (G635LX)
 -  Add power limits quirk for FA401KM
 -  Add power limits quirk for FA608WV
 -  add support for FX517ZR
 -  add support for HN7306EA and HN7306EAC
 -  fix Use-After-Free and memory leak in driver init
 -  gate PPT writes behind active fan curve
 -  use cleanup.h to manage tunables

asus-laptop:
 -  Stop setting acpi_device_name/class()

asus-nb-wmi:
 -  map ProArt key (0x8b) to KEY_PROG3

asus-wireless:
 -  Fail probe when there is no ACPI match

asus-wmi:
 -  fix resource leaks on probe failure

dell-ddv:
 -  Use no_free_ptr() to simplify error handling

dell-privacy:
 -  Fix race condition

dell-smbios:
 -  Pass device to callbacks

dell-smbios-wmi:
 -  Fix chardev resource management
 -  Replace global list with single item

dell-wmi-base:
 -  Fix handling of ultra performance key
 -  Fix resource leak on module load failure

dell-wmi-sysman:
 -  Don't hex dump attribute security buffer
 -  Fix instance ID bounds

Documentation/ABI:
 -  add testing entry for AMD PMF character device interface

eeepc-laptop:
 -  Stop setting acpi_device_name/class()

fujitsu-laptop:
 -  Stop setting acpi_device_name/class()

fujitsu-tablet:
 -  Stop setting acpi_device_name/class()

hp-bioscfg:
 -  accept reduced ACPI packages from older HP BIOS
 -  advance elem past consumed array elements
 -  bound ordered-list parsing by the package count
 -  fix heap OOB read in sk_store() and kek_store()
 -  fix heap OOB read on empty password write
 -  fix new_password_store() overwriting current_password
 -  fix off-by-one write in hp_get_string_from_buffer()
 -  fix ORD_LIST_ELEMENTS never being parsed
 -  fix password encoding bounds check
 -  pass validated element count to package parsers
 -  warn on element type mismatch instead of failing

hp-wmi:
 -  Add dual-channel PWM fan control
 -  Add GPU MUX switch support
 -  Add OMEN board 8A43 thermal profile support
 -  Add OMEN board 8BA9 thermal profile support
 -  Add OMEN board 8BAA thermal profile support
 -  Add OMEN board 8D88 thermal profile support
 -  Add OMEN Transcend 16 8BB3 support
 -  Add support for OMEN MAX 16-ak0xxx (8DD6)
 -  Add Victus 15-fb0xxx support
 -  Drive fan control from board data
 -  Introduce board-specific feature data

huawei-wmi:
 -  add ACPI fallback for Fn-lock on newer models

ideapad-laptop:
 -  Fix driver unregistration order

int1092:
 -  Fix info leak in parse_package()
 -  Fix potential memory leak in sar_probe()

intel/pmc:
 -  initialize empty PMT read result

ishtp_eclite:
 -  Fix ACPI device reference leak in probe error path

ISST:
 -  Add a NULL check for sst_inst[]
 -  Just allow 2 bits for SST feature enable
 -  Return error during profile addition
 -  Use PP level enable mask
 -  Validate level in perf mask ioctls
 -  Validate logical CPU id and clos id
 -  Validate max level for set feature
 -  Validate parameter for core power state
 -  Validate parameter for frequency and priority
 -  Validate socket ID in clos_assoc ioctl

lenovo:
 -  Add Yoga Book 9 keyboard dock detection driver

lenovo: lenovo-ymc:
 -  Suppress probe on Yoga Book 9 14IAH10

lenovo/ymc:
 -  Only match lower byte in WMI lid switch query response

lg-laptop:
 -  Add support for additional events
 -  Add support for native ACPI events
 -  Fix keyboard backlight support on LG Gram 16T90SP
 -  Fix LED resource handling
 -  Improve WMAB control method support

MAINTAINERS:
 -  update Intel PMC Core maintainer contact

mlxbf-bootctl:
 -  fix the build error with FIELD_PREP()

mlxbf-pmc:
 -  Check ACPI_COMPANION() against NULL

msi-ec:
 -  Add MSI Katana GF76 11UEK EC firmware
 -  Add MSI Raider A18 HX A9WJG EC firmware

msi-wmi:
 -  Add MSI Claw M-Center keys
 -  Reformat msi_wmi_notify()

oxpec:
 -  Add support for OneXPlayer X2 Mini Pro

panasonic-laptop:
 -  Fix sentinel write past pcc->sinf[]
 -  Stop setting acpi_device_name/class()

power: supply: surface_{battery,charger}:
 -  Consistently define ssam_device_ids using named initializers

redmi-wmi:
 -  report EC state change events

samsung-galaxybook:
 -  Add SAMB430 device ID

sony-laptop:
 -  Stop setting acpi_device_class()

sonypi:
 -  Stop setting acpi_device_name/class()

surface: acpi-notify:
 -  Check ACPI companion before use

surface: aggregator:
 -  Consistently define ssam_device_ids using named initializers

surface: surfacepro3_button:
 -  Stop setting acpi_device_name()

think-lmi:
 -  Fix certificate thumbprint sysfs output
 -  Fix current password length check
 -  Free system certificate signatures

thinkpad_acpi:
 -  Add USB-C Security (USCS) support
 -  Fix fan speed reporting on Edge E330
 -  Fix USB-C Security probe failure on unsupported platforms
 -  Stop setting acpi_device_class()

topstar-laptop:
 -  Stop setting acpi_device_name/class()

toshiba_acpi:
 -  Do not use uninitialized device_class

toshiba_bluetooth:
 -  Use more common error handling code in toshiba_bt_rfkill_probe()

toshiba_haps:
 -  Do not use uninitialized device_class

uniwill-laptop:
 -  Add 2 new feature defines for TUXEDO devices
 -  Add AC auto boot support
 -  Add Avell A60 MUV support
 -  Add keyboard backlight support
 -  Add lightbar support for LAPQC71A/B
 -  Add support for the AiStone X4SP4NAL
 -  Add support for the MACHENIKE L16 Pro
 -  Add support for USB powershare
 -  Handle screen-related events
 -  Remove single color keyboard detection
 -  Split uniwill_kbd_led_init()

x86/platform/olpc: xo15:
 -  Stop setting acpi_device_name/class()

xo15-ebook:
 -  Stop setting acpi_device_name/class()
platform/x86: think-lmi: Fix current password length check

current_password_store() checks the password length before removing the
trailing newline, which can reject valid passwords that are exactly
->maxlen bytes long.

It also passes ->maxlen to strscpy(), which truncates passwords without
a newline.

Use strchrnul() to measure the password length up to the newline, then
copy that many bytes and add a trailing NUL terminator using strscpy().

Fixes: a40cd7ef22fb ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Cc: stable@vger.kernel.org
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260818151635.37094-2-thorsten.blum@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 file changed