Commit 9669b249 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'platform-drivers-x86-v6.17-1' of...

Merge tag 'platform-drivers-x86-v6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull x86 platform drivers from Ilpo Järvinen:

 - alienware: Add more precise labels to fans

 - amd/hsmp: Improve misleading probe errors (make the legacy driver
   aware when HSMP is supported through the ACPI driver)

 - amd/pmc: Add Lenovo Yoga 6 13ALCL6 to pmc quirk list

 - drm/xe: Correct (D)VSEC information to support PMT crashlog feature

 - fujitsu: Clamp charge threshold instead of returning an error

 - ideapad: Expore change types

 - intel/pmt:
     - Add PMT Discovery driver
     - Add API to retrieve telemetry regions by feature
     - Fix crashlog NULL access
     - Support Battlemage GPU (BMG) crashlog

 - intel/vsec:
     - Add Discovery feature
     - Add feature dependency support using device links

 - lenovo:
     - Move lenovo drivers under drivers/platform/x86/lenovo/
     - Add WMI drivers for Lenovo Gaming series
     - Improve DMI handling

 - oxpec:
     - Add support for OneXPlayer X1 Mini Pro (Strix Point variant)
     - Fix EC registers for G1 AMD

 - samsung-laptop: Expose change types

 - wmi: Fix WMI device naming issue (same GUID corner cases)

 - x86-android-tables: Add ovc-capacity-table to generic battery nodes

 - Miscellaneous cleanups / refactoring / improvements

* tag 'platform-drivers-x86-v6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (63 commits)
  platform/x86: oxpec: Add support for OneXPlayer X1 Mini Pro (Strix Point)
  platform/x86: oxpec: Fix turbo register for G1 AMD
  platform/x86/intel/pmt: support BMG crashlog
  platform/x86/intel/pmt: use a version struct
  platform/x86/intel/pmt: refactor base parameter
  platform/x86/intel/pmt: add register access helpers
  platform/x86/intel/pmt: decouple sysfs and namespace
  platform/x86/intel/pmt: correct types
  platform/x86/intel/pmt: re-order trigger logic
  platform/x86/intel/pmt: use guard(mutex)
  platform/x86/intel/pmt: mutex clean up
  platform/x86/intel/pmt: white space cleanup
  drm/xe: Correct BMG VSEC header sizing
  drm/xe: Correct the rev value for the DVSEC entries
  platform/x86/intel/pmt: fix a crashlog NULL pointer access
  platform/x86: samsung-laptop: Expose charge_types
  platform/x86/amd: pmc: Add Lenovo Yoga 6 13ALC6 to pmc quirk list
  platform/x86: dell-uart-backlight: Use blacklight power constant
  platform/x86/intel/pmt: fix build dependency for kunit test
  platform/x86: lenovo: gamezone needs "other mode"
  ...
parents f38b7512 1798561b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
What:		/sys/devices/platform/samsung/battery_life_extender
Date:		December 1, 2011
KernelVersion:	3.3
Contact:	Corentin Chary <corentin.chary@gmail.com>
Description:	Max battery charge level can be modified, battery cycle
		life can be extended by reducing the max battery charge
		level.

		- 0 means normal battery mode (100% charge)
		- 1 means battery life extender mode (80% charge)
+8 −0
Original line number Diff line number Diff line
What:		/sys/bus/platform/devices/VPC2004:*/conservation_mode
Date:		Aug 2017
KernelVersion:	4.14
Contact:	platform-driver-x86@vger.kernel.org
Description:
		Controls whether the conservation mode is enabled or not.
		This feature limits the maximum battery charge percentage to
		around 50-60% in order to prolong the lifetime of the battery.
+134 −0
Original line number Diff line number Diff line
What:          /sys/class/intel_pmt/features-<PCI BDF>/
Date:          2025-04-24
KernelVersion: 6.16
Contact:       david.e.box@linux.intel.com
Description:
               The `features-<PCI BDF>/` directory represents the "features"
               capability exposed by Intel PMT (Platform Monitoring Technology)
               for the given PCI device.

               Each directory corresponds to a PMT feature and contains
               attributes describing the available telemetry, monitoring, or
               control functionalities.

Directory Structure:

  /sys/class/intel_pmt/features-<PCI BDF>/
  ├── accelerator_telemetry/		# Per-accelerator telemetry data
  ├── crash_log/			# Contains system crash telemetry logs
  ├── per_core_environment_telemetry/	# Environmental telemetry per core
  ├── per_core_performance_telemetry/	# Performance telemetry per core
  ├── per_rmid_energy_telemetry/	# Energy telemetry for RMIDs
  ├── per_rmid_perf_telemetry/		# Performance telemetry for RMIDs
  ├── tpmi_control/			# TPMI-related controls and telemetry
  ├── tracing/				# PMT tracing features
  └── uncore_telemetry/			# Uncore telemetry data

Common Files (Present in all feature directories):

  caps
    - Read-only
    - Lists available capabilities for this feature.

  guids
    - Read-only
    - Lists GUIDs associated with this feature.

Additional Attributes (Conditional Presence):

  max_command_size
    - Read-only
    - Present if the feature supports out-of-band MCTP access.
    - Maximum supported MCTP command size for out-of-band PMT access (bytes).

  max_stream_size
    - Read-only
    - Present if the feature supports out-of-band MCTP access.
    - Maximum supported MCTP stream size (bytes).

  min_watcher_period_ms
    - Read-only
    - Present if the feature supports the watcher API.
      The watcher API provides a writable control interface that allows user
      configuration of monitoring behavior, such as setting the sampling or
      reporting interval.
    - Minimum supported time period for the watcher interface (milliseconds).

  num_rmids
    - Read-only
    - Present if the feature supports RMID (Resource Monitoring ID) telemetry.
      RMIDs are identifiers used by hardware to track and report resource usage,
      such as memory bandwidth or energy consumption, on a per-logical-entity
      basis (e.g., per core, thread, or process group).
    - Maximum number of RMIDs tracked simultaneously.

Example:
For a device with PCI BDF `0000:00:03.1`, the directory tree could look like:

  /sys/class/intel_pmt/features-0000:00:03.1/
  ├── accelerator_telemetry/
  │   ├── caps
  │   ├── guids
  │   ├── max_command_size
  │   ├── max_stream_size
  │   ├── min_watcher_period_ms
  ├── crash_log/
  │   ├── caps
  │   ├── guids
  │   ├── max_command_size
  │   ├── max_stream_size
  ├── per_core_environment_telemetry/
  │   ├── caps
  │   ├── guids
  │   ├── max_command_size
  │   ├── max_stream_size
  │   ├── min_watcher_period_ms
  ├── per_rmid_energy_telemetry/
  │   ├── caps
  │   ├── guids
  │   ├── max_command_size
  │   ├── max_stream_size
  │   ├── min_watcher_period_ms
  │   ├── num_rmids
  ├── tpmi_control/
  │   ├── caps
  │   ├── guids
  ├── tracing/
  │   ├── caps
  │   ├── guids
  ├── uncore_telemetry/
  │   ├── caps
  │   ├── guids
  │   ├── max_command_size
  │   ├── max_stream_size
  │   ├── min_watcher_period_ms

Notes:
  - Some attributes are only present if the corresponding feature supports
    the capability (e.g., `max_command_size` for MCTP-capable features).
  - Features supporting RMIDs include `num_rmids`.
  - Features supporting the watcher API include `min_watcher_period_ms`.
  - The `caps` file provides additional information about the functionality
    of the feature.

Example 'caps' content for the 'tracing' feature:

  /sys/class/intel_pmt/features-0000:00:03.1/
  ├── tracing/
  │   ├── caps

	telemetry                                Available: No
	watcher                                  Available: Yes
	crashlog                                 Available: No
	streaming                                Available: No
	threashold                               Available: No
	window                                   Available: No
	config                                   Available: Yes
	tracing                                  Available: No
	inband                                   Available: Yes
	oob                                      Available: Yes
	secure_chan                              Available: No
	pmt_sp                                   Available: Yes
	pmt_sp_policy                            Available: Yes
	mailbox                                  Available: Yes
	bios_lock                                Available: Yes
+0 −11
Original line number Diff line number Diff line
@@ -20,17 +20,6 @@ Description: Some Samsung laptops have different "performance levels"
		and it's still unknown if this value even changes
		anything, other than making the user feel a bit better.

What:		/sys/devices/platform/samsung/battery_life_extender
Date:		December 1, 2011
KernelVersion:	3.3
Contact:	Corentin Chary <corentin.chary@gmail.com>
Description:	Max battery charge level can be modified, battery cycle
		life can be extended by reducing the max battery charge
		level.

		- 0 means normal battery mode (100% charge)
		- 1 means battery life extender mode (80% charge)

What:		/sys/devices/platform/samsung/usb_charge
Date:		December 1, 2011
KernelVersion:	3.3
+4 −4
Original line number Diff line number Diff line
What:		/sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type
What:		/sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_supported_type
Date:		Apr 2021
KernelVersion:	5.13
Contact:	"<perry.yuan@dell.com>"
@@ -29,12 +29,12 @@ Description:

		For example to check which privacy devices are supported::

		    # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type
		    # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919*/dell_privacy_supported_type
		    [Microphone Mute] [supported]
		    [Camera Shutter] [supported]
		    [ePrivacy Screen] [unsupported]

What:		/sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state
What:		/sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_current_state
Date:		Apr 2021
KernelVersion:	5.13
Contact:	"<perry.yuan@dell.com>"
@@ -66,6 +66,6 @@ Description:

		For example to check all supported current privacy device states::

		    # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state
		    # cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919*/dell_privacy_current_state
		    [Microphone] [unmuted]
		    [Camera Shutter] [unmuted]
Loading