Skip to content

Commit 9669b24

Browse files
committed
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" ...
2 parents f38b751 + 1798561 commit 9669b24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+5187
-1060
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
What: /sys/devices/platform/samsung/battery_life_extender
2+
Date: December 1, 2011
3+
KernelVersion: 3.3
4+
Contact: Corentin Chary <[email protected]>
5+
Description: Max battery charge level can be modified, battery cycle
6+
life can be extended by reducing the max battery charge
7+
level.
8+
9+
- 0 means normal battery mode (100% charge)
10+
- 1 means battery life extender mode (80% charge)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
What: /sys/bus/platform/devices/VPC2004:*/conservation_mode
2+
Date: Aug 2017
3+
KernelVersion: 4.14
4+
5+
Description:
6+
Controls whether the conservation mode is enabled or not.
7+
This feature limits the maximum battery charge percentage to
8+
around 50-60% in order to prolong the lifetime of the battery.
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
What: /sys/class/intel_pmt/features-<PCI BDF>/
2+
Date: 2025-04-24
3+
KernelVersion: 6.16
4+
5+
Description:
6+
The `features-<PCI BDF>/` directory represents the "features"
7+
capability exposed by Intel PMT (Platform Monitoring Technology)
8+
for the given PCI device.
9+
10+
Each directory corresponds to a PMT feature and contains
11+
attributes describing the available telemetry, monitoring, or
12+
control functionalities.
13+
14+
Directory Structure:
15+
16+
/sys/class/intel_pmt/features-<PCI BDF>/
17+
├── accelerator_telemetry/ # Per-accelerator telemetry data
18+
├── crash_log/ # Contains system crash telemetry logs
19+
├── per_core_environment_telemetry/ # Environmental telemetry per core
20+
├── per_core_performance_telemetry/ # Performance telemetry per core
21+
├── per_rmid_energy_telemetry/ # Energy telemetry for RMIDs
22+
├── per_rmid_perf_telemetry/ # Performance telemetry for RMIDs
23+
├── tpmi_control/ # TPMI-related controls and telemetry
24+
├── tracing/ # PMT tracing features
25+
└── uncore_telemetry/ # Uncore telemetry data
26+
27+
Common Files (Present in all feature directories):
28+
29+
caps
30+
- Read-only
31+
- Lists available capabilities for this feature.
32+
33+
guids
34+
- Read-only
35+
- Lists GUIDs associated with this feature.
36+
37+
Additional Attributes (Conditional Presence):
38+
39+
max_command_size
40+
- Read-only
41+
- Present if the feature supports out-of-band MCTP access.
42+
- Maximum supported MCTP command size for out-of-band PMT access (bytes).
43+
44+
max_stream_size
45+
- Read-only
46+
- Present if the feature supports out-of-band MCTP access.
47+
- Maximum supported MCTP stream size (bytes).
48+
49+
min_watcher_period_ms
50+
- Read-only
51+
- Present if the feature supports the watcher API.
52+
The watcher API provides a writable control interface that allows user
53+
configuration of monitoring behavior, such as setting the sampling or
54+
reporting interval.
55+
- Minimum supported time period for the watcher interface (milliseconds).
56+
57+
num_rmids
58+
- Read-only
59+
- Present if the feature supports RMID (Resource Monitoring ID) telemetry.
60+
RMIDs are identifiers used by hardware to track and report resource usage,
61+
such as memory bandwidth or energy consumption, on a per-logical-entity
62+
basis (e.g., per core, thread, or process group).
63+
- Maximum number of RMIDs tracked simultaneously.
64+
65+
Example:
66+
For a device with PCI BDF `0000:00:03.1`, the directory tree could look like:
67+
68+
/sys/class/intel_pmt/features-0000:00:03.1/
69+
├── accelerator_telemetry/
70+
│ ├── caps
71+
│ ├── guids
72+
│ ├── max_command_size
73+
│ ├── max_stream_size
74+
│ ├── min_watcher_period_ms
75+
├── crash_log/
76+
│ ├── caps
77+
│ ├── guids
78+
│ ├── max_command_size
79+
│ ├── max_stream_size
80+
├── per_core_environment_telemetry/
81+
│ ├── caps
82+
│ ├── guids
83+
│ ├── max_command_size
84+
│ ├── max_stream_size
85+
│ ├── min_watcher_period_ms
86+
├── per_rmid_energy_telemetry/
87+
│ ├── caps
88+
│ ├── guids
89+
│ ├── max_command_size
90+
│ ├── max_stream_size
91+
│ ├── min_watcher_period_ms
92+
│ ├── num_rmids
93+
├── tpmi_control/
94+
│ ├── caps
95+
│ ├── guids
96+
├── tracing/
97+
│ ├── caps
98+
│ ├── guids
99+
├── uncore_telemetry/
100+
│ ├── caps
101+
│ ├── guids
102+
│ ├── max_command_size
103+
│ ├── max_stream_size
104+
│ ├── min_watcher_period_ms
105+
106+
Notes:
107+
- Some attributes are only present if the corresponding feature supports
108+
the capability (e.g., `max_command_size` for MCTP-capable features).
109+
- Features supporting RMIDs include `num_rmids`.
110+
- Features supporting the watcher API include `min_watcher_period_ms`.
111+
- The `caps` file provides additional information about the functionality
112+
of the feature.
113+
114+
Example 'caps' content for the 'tracing' feature:
115+
116+
/sys/class/intel_pmt/features-0000:00:03.1/
117+
├── tracing/
118+
│ ├── caps
119+
120+
telemetry Available: No
121+
watcher Available: Yes
122+
crashlog Available: No
123+
streaming Available: No
124+
threashold Available: No
125+
window Available: No
126+
config Available: Yes
127+
tracing Available: No
128+
inband Available: Yes
129+
oob Available: Yes
130+
secure_chan Available: No
131+
pmt_sp Available: Yes
132+
pmt_sp_policy Available: Yes
133+
mailbox Available: Yes
134+
bios_lock Available: Yes

Documentation/ABI/testing/sysfs-driver-samsung-laptop

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ Description: Some Samsung laptops have different "performance levels"
2020
and it's still unknown if this value even changes
2121
anything, other than making the user feel a bit better.
2222

23-
What: /sys/devices/platform/samsung/battery_life_extender
24-
Date: December 1, 2011
25-
KernelVersion: 3.3
26-
Contact: Corentin Chary <[email protected]>
27-
Description: Max battery charge level can be modified, battery cycle
28-
life can be extended by reducing the max battery charge
29-
level.
30-
31-
- 0 means normal battery mode (100% charge)
32-
- 1 means battery life extender mode (80% charge)
33-
3423
What: /sys/devices/platform/samsung/usb_charge
3524
Date: December 1, 2011
3625
KernelVersion: 3.3

Documentation/ABI/testing/sysfs-platform-dell-privacy-wmi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type
1+
What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_supported_type
22
Date: Apr 2021
33
KernelVersion: 5.13
44
Contact: "<[email protected]>"
@@ -29,12 +29,12 @@ Description:
2929

3030
For example to check which privacy devices are supported::
3131

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

37-
What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state
37+
What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_current_state
3838
Date: Apr 2021
3939
KernelVersion: 5.13
4040
Contact: "<[email protected]>"
@@ -66,6 +66,6 @@ Description:
6666

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

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

Documentation/ABI/testing/sysfs-platform-ideapad-laptop

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ Description:
2727
* 1 -> Switched On
2828
* 0 -> Switched Off
2929

30-
What: /sys/bus/platform/devices/VPC2004:*/conservation_mode
31-
Date: Aug 2017
32-
KernelVersion: 4.14
33-
34-
Description:
35-
Controls whether the conservation mode is enabled or not.
36-
This feature limits the maximum battery charge percentage to
37-
around 50-60% in order to prolong the lifetime of the battery.
38-
3930
What: /sys/bus/platform/devices/VPC2004:*/fn_lock
4031
Date: May 2018
4132
KernelVersion: 4.18

Documentation/ABI/testing/sysfs-platform-intel-wmi-sbl-fw-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What: /sys/bus/wmi/devices/44FADEB1-B204-40F2-8581-394BBDC1B651/firmware_update_request
1+
What: /sys/bus/wmi/devices/44FADEB1-B204-40F2-8581-394BBDC1B651[-X]/firmware_update_request
22
Date: April 2020
33
KernelVersion: 5.7
44
Contact: "Jithu Joseph" <[email protected]>

Documentation/ABI/testing/sysfs-platform-intel-wmi-thunderbolt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What: /sys/devices/platform/<platform>/force_power
1+
What: /sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341[-X]/force_power
22
Date: September 2017
33
KernelVersion: 4.15
44
Contact: "Mario Limonciello" <[email protected]>

Documentation/admin-guide/thunderbolt.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,7 @@ Forcing power
358358
Many OEMs include a method that can be used to force the power of a
359359
Thunderbolt controller to an "On" state even if nothing is connected.
360360
If supported by your machine this will be exposed by the WMI bus with
361-
a sysfs attribute called "force_power".
362-
363-
For example the intel-wmi-thunderbolt driver exposes this attribute in:
364-
/sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power
365-
366-
To force the power to on, write 1 to this attribute file.
367-
To disable force power, write 0 to this attribute file.
361+
a sysfs attribute called "force_power", see
362+
Documentation/ABI/testing/sysfs-platform-intel-wmi-thunderbolt for details.
368363

369364
Note: it's currently not possible to query the force power state of a platform.

0 commit comments

Comments
 (0)