Skip to content

Commit e2c874f

Browse files
committed
Merge tag 'platform-drivers-x86-v6.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver updates from Hans de Goede: - hp-bioscfg: New firmware-attributes driver for changing BIOS settings from within Linux - asus-wmi: Add charger mode, middle fan and eGPU settings support - ideapad: Support keyboard backlight control on more models - mellanox: Support for new models - sel-3350: New LED and power-supply driver for this industrial mainboard - simatic-ipc: Add RTC battery monitor and various new models support - miscellaneous other cleanups / fixes * tag 'platform-drivers-x86-v6.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (101 commits) platform/x86: asus-wmi: corrections to egpu safety check platform/x86: mlx-platform: Add dependency on PCI to Kconfig platform/x86: ideapad-laptop: Add support for keyboard backlights using KBLC ACPI symbol platform/x86/amd/pmc: Fix build error with randconfig platform/x86/amd/pmf: Fix a missing cleanup path watchdog: simatic: Use idiomatic selection of P2SB platform/x86: p2sb: Make the Kconfig symbol hidden Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces platform: mellanox: nvsw-sn2201: change fans i2c busses. platform: mellanox: mlxreg-hotplug: Extend condition for notification callback processing platform: mellanox: Add initial support for PCIe based programming logic device platform: mellanox: mlx-platform: Get interrupt line through ACPI platform: mellanox: mlx-platform: Introduce ACPI init flow platform: mellanox: mlx-platform: Prepare driver to allow probing through ACPI infrastructure platform: mellanox: mlx-platform: Add reset callback platform: mellanox: Cosmetic changes platform: mellanox: mlx-platform: Modify power off callback platform: mellanox: mlx-platform: add support for additional CPLD platform: mellanox: mlx-platform: Add reset cause attribute platform: mellanox: mlx-platform: Modify health and power hotplug action ...
2 parents e0152e7 + acce85a commit e2c874f

Some content is hidden

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

64 files changed

+8319
-354
lines changed

Documentation/ABI/stable/sysfs-driver-mlxreg-io

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,3 +662,56 @@ Description: This file shows the system reset cause due to AC power failure.
662662
Value 1 in file means this is reset cause, 0 - otherwise.
663663

664664
The file is read only.
665+
666+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld5_pn
667+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld5_version
668+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld5_version_min
669+
Date: August 2023
670+
KernelVersion: 6.6
671+
Contact: Vadim Pasternak <[email protected]>
672+
Description: These files show with which CPLD part numbers, version and minor
673+
versions have been burned the 5-th CPLD device equipped on a
674+
system.
675+
676+
The files are read only.
677+
678+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_cap
679+
Date: August 2023
680+
KernelVersion: 6.6
681+
Contact: Vadim Pasternak <[email protected]>
682+
Description: This file indicates the available method of CPLD/FPGA devices
683+
field update through the JTAG chain:
684+
685+
b00 - field update through LPC bus register memory space.
686+
b01 - Reserved.
687+
b10 - Reserved.
688+
b11 - field update through CPU GPIOs bit-banging.
689+
690+
The file is read only.
691+
692+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/lid_open
693+
Date: August 2023
694+
KernelVersion: 6.6
695+
Contact: Vadim Pasternak <[email protected]>
696+
Description: 1 - indicates that system lid is opened, otherwise 0.
697+
698+
The file is read only.
699+
700+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_long_pwr_pb
701+
Date: August 2023
702+
KernelVersion: 6.6
703+
Contact: Vadim Pasternak <[email protected]>
704+
Description: This file if set 1 indicates that system has been reset by
705+
long press of power button.
706+
707+
The file is read only.
708+
709+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_swb_dc_dc_pwr_fail
710+
Date: August 2023
711+
KernelVersion: 6.6
712+
Contact: Vadim Pasternak <[email protected]>
713+
Description: This file shows 1 in case the system reset happened due to the
714+
failure of any DC-DC power converter devices equipped on the
715+
switch board.
716+
717+
The file is read only.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
What: /sys/kernel/debug/tpmi-<n>/pfs_dump
2+
Date: November 2023
3+
KernelVersion: 6.6
4+
5+
Description:
6+
The PFS (PM Feature Structure) table, shows details of each power
7+
management feature. This includes:
8+
tpmi_id, number of entries, entry size, offset, vsec offset, lock status
9+
and disabled status.
10+
Users: Debugging, any user space test suite
11+
12+
What: /sys/kernel/debug/tpmi-<n>/tpmi-id-<n>/mem_dump
13+
Date: November 2023
14+
KernelVersion: 6.6
15+
16+
Description:
17+
Shows the memory dump of the MMIO region for a TPMI ID.
18+
Users: Debugging, any user space test suite
19+
20+
What: /sys/kernel/debug/tpmi-<n>/tpmi-id-<n>/mem_write
21+
Date: November 2023
22+
KernelVersion: 6.6
23+
24+
Description:
25+
Allows to write at any offset. It doesn't check for Read/Write access
26+
as hardware will not allow to write at read-only memory. This write is
27+
at offset multiples of 4. The format is instance,offset,contents.
28+
Example:
29+
echo 0,0x20,0xff > mem_write
30+
echo 1,64,64 > mem_write
31+
Users: Debugging, any user space test suite

Documentation/ABI/testing/sysfs-class-firmware-attributes

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Description:
2222
- integer: a range of numerical values
2323
- string
2424

25+
HP specific types
26+
-----------------
27+
- ordered-list - a set of ordered list valid values
28+
29+
2530
All attribute types support the following values:
2631

2732
current_value:
@@ -126,6 +131,21 @@ Description:
126131
value will not be effective through sysfs until this rule is
127132
met.
128133

134+
HP specific class extensions
135+
------------------------------
136+
137+
On HP systems the following additional attributes are available:
138+
139+
"ordered-list"-type specific properties:
140+
141+
elements:
142+
A file that can be read to obtain the possible
143+
list of values of the <attr>. Values are separated using
144+
semi-colon (``;``) and listed according to their priority.
145+
An element listed first has the highest priority. Writing
146+
the list in a different order to current_value alters
147+
the priority order for the particular attribute.
148+
129149
What: /sys/class/firmware-attributes/*/authentication/
130150
Date: February 2021
131151
KernelVersion: 5.11
@@ -206,7 +226,7 @@ Description:
206226
Drivers may emit a CHANGE uevent when a password is set or unset
207227
userspace may check it again.
208228

209-
On Dell and Lenovo systems, if Admin password is set, then all BIOS attributes
229+
On Dell, Lenovo and HP systems, if Admin password is set, then all BIOS attributes
210230
require password validation.
211231
On Lenovo systems if you change the Admin password the new password is not active until
212232
the next boot.
@@ -296,6 +316,15 @@ Description:
296316
echo "signature" > authentication/Admin/signature
297317
echo "password" > authentication/Admin/certificate_to_password
298318

319+
HP specific class extensions
320+
--------------------------------
321+
322+
On HP systems the following additional settings are available:
323+
324+
role: enhanced-bios-auth:
325+
This role is specific to Secure Platform Management (SPM) attribute.
326+
It requires configuring an endorsement (kek) and signing certificate (sk).
327+
299328

300329
What: /sys/class/firmware-attributes/*/attributes/pending_reboot
301330
Date: February 2021
@@ -311,7 +340,7 @@ Description:
311340
== =========================================
312341
0 All BIOS attributes setting are current
313342
1 A reboot is necessary to get pending BIOS
314-
attribute changes applied
343+
attribute changes applied
315344
== =========================================
316345

317346
Note, userspace applications need to follow below steps for efficient
@@ -364,3 +393,71 @@ Description:
364393
use it to enable extra debug attributes or BIOS features for testing purposes.
365394

366395
Note that any changes to this attribute requires a reboot for changes to take effect.
396+
397+
398+
HP specific class extensions - Secure Platform Manager (SPM)
399+
--------------------------------
400+
401+
What: /sys/class/firmware-attributes/*/authentication/SPM/kek
402+
Date: March 2023
403+
KernelVersion: 5.18
404+
Contact: "Jorge Lopez" <[email protected]>
405+
Description:
406+
'kek' Key-Encryption-Key is a write-only file that can be used to configure the
407+
RSA public key that will be used by the BIOS to verify
408+
signatures when setting the signing key. When written,
409+
the bytes should correspond to the KEK certificate
410+
(x509 .DER format containing an OU). The size of the
411+
certificate must be less than or equal to 4095 bytes.
412+
413+
What: /sys/class/firmware-attributes/*/authentication/SPM/sk
414+
Date: March 2023
415+
KernelVersion: 5.18
416+
Contact: "Jorge Lopez" <[email protected]>
417+
Description:
418+
'sk' Signature Key is a write-only file that can be used to configure the RSA
419+
public key that will be used by the BIOS to verify signatures
420+
when configuring BIOS settings and security features. When
421+
written, the bytes should correspond to the modulus of the
422+
public key. The exponent is assumed to be 0x10001.
423+
424+
What: /sys/class/firmware-attributes/*/authentication/SPM/status
425+
Date: March 2023
426+
KernelVersion: 5.18
427+
Contact: "Jorge Lopez" <[email protected]>
428+
Description:
429+
'status' is a read-only file that returns ASCII text in JSON format reporting
430+
the status information.
431+
432+
"State": "not provisioned | provisioned | provisioning in progress",
433+
"Version": "Major.Minor",
434+
"Nonce": <16-bit unsigned number display in base 10>,
435+
"FeaturesInUse": <16-bit unsigned number display in base 10>,
436+
"EndorsementKeyMod": "<256 bytes in base64>",
437+
"SigningKeyMod": "<256 bytes in base64>"
438+
439+
What: /sys/class/firmware-attributes/*/attributes/Sure_Start/audit_log_entries
440+
Date: March 2023
441+
KernelVersion: 5.18
442+
Contact: "Jorge Lopez" <[email protected]>
443+
Description:
444+
'audit_log_entries' is a read-only file that returns the events in the log.
445+
446+
Audit log entry format
447+
448+
Byte 0-15: Requested Audit Log entry (Each Audit log is 16 bytes)
449+
Byte 16-127: Unused
450+
451+
What: /sys/class/firmware-attributes/*/attributes/Sure_Start/audit_log_entry_count
452+
Date: March 2023
453+
KernelVersion: 5.18
454+
Contact: "Jorge Lopez" <[email protected]>
455+
Description:
456+
'audit_log_entry_count' is a read-only file that returns the number of existing
457+
audit log events available to be read. Values are separated using comma. (``,``)
458+
459+
[No of entries],[log entry size],[Max number of entries supported]
460+
461+
log entry size identifies audit log size for the current BIOS version.
462+
The current size is 16 bytes but it can be up to 128 bytes long in future BIOS
463+
versions.

Documentation/ABI/testing/sysfs-platform-asus-wmi

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,91 @@ Description:
9898
Enable an LCD response-time boost to reduce or remove ghosting:
9999
* 0 - Disable,
100100
* 1 - Enable
101+
102+
What: /sys/devices/platform/<platform>/charge_mode
103+
Date: Jun 2023
104+
KernelVersion: 6.5
105+
Contact: "Luke Jones" <[email protected]>
106+
Description:
107+
Get the current charging mode being used:
108+
* 1 - Barrel connected charger,
109+
* 2 - USB-C charging
110+
* 3 - Both connected, barrel used for charging
111+
112+
What: /sys/devices/platform/<platform>/egpu_connected
113+
Date: Jun 2023
114+
KernelVersion: 6.5
115+
Contact: "Luke Jones" <[email protected]>
116+
Description:
117+
Show if the egpu (XG Mobile) is correctly connected:
118+
* 0 - False,
119+
* 1 - True
120+
121+
What: /sys/devices/platform/<platform>/mini_led_mode
122+
Date: Jun 2023
123+
KernelVersion: 6.5
124+
Contact: "Luke Jones" <[email protected]>
125+
Description:
126+
Change the mini-LED mode:
127+
* 0 - Single-zone,
128+
* 1 - Multi-zone
129+
130+
What: /sys/devices/platform/<platform>/ppt_pl1_spl
131+
Date: Jun 2023
132+
KernelVersion: 6.5
133+
Contact: "Luke Jones" <[email protected]>
134+
Description:
135+
Set the Package Power Target total of CPU: PL1 on Intel, SPL on AMD.
136+
Shown on Intel+Nvidia or AMD+Nvidia based systems:
137+
138+
* min=5, max=250
139+
140+
What: /sys/devices/platform/<platform>/ppt_pl2_sppt
141+
Date: Jun 2023
142+
KernelVersion: 6.5
143+
Contact: "Luke Jones" <[email protected]>
144+
Description:
145+
Set the Slow Package Power Tracking Limit of CPU: PL2 on Intel, SPPT,
146+
on AMD. Shown on Intel+Nvidia or AMD+Nvidia based systems:
147+
148+
* min=5, max=250
149+
150+
What: /sys/devices/platform/<platform>/ppt_fppt
151+
Date: Jun 2023
152+
KernelVersion: 6.5
153+
Contact: "Luke Jones" <[email protected]>
154+
Description:
155+
Set the Fast Package Power Tracking Limit of CPU. AMD+Nvidia only:
156+
* min=5, max=250
157+
158+
What: /sys/devices/platform/<platform>/ppt_apu_sppt
159+
Date: Jun 2023
160+
KernelVersion: 6.5
161+
Contact: "Luke Jones" <[email protected]>
162+
Description:
163+
Set the APU SPPT limit. Shown on full AMD systems only:
164+
* min=5, max=130
165+
166+
What: /sys/devices/platform/<platform>/ppt_platform_sppt
167+
Date: Jun 2023
168+
KernelVersion: 6.5
169+
Contact: "Luke Jones" <[email protected]>
170+
Description:
171+
Set the platform SPPT limit. Shown on full AMD systems only:
172+
* min=5, max=130
173+
174+
What: /sys/devices/platform/<platform>/nv_dynamic_boost
175+
Date: Jun 2023
176+
KernelVersion: 6.5
177+
Contact: "Luke Jones" <[email protected]>
178+
Description:
179+
Set the dynamic boost limit of the Nvidia dGPU:
180+
* min=5, max=25
181+
182+
What: /sys/devices/platform/<platform>/nv_temp_target
183+
Date: Jun 2023
184+
KernelVersion: 6.5
185+
Contact: "Luke Jones" <[email protected]>
186+
Description:
187+
Set the target temperature limit of the Nvidia dGPU:
188+
* min=75, max=87

Documentation/ABI/testing/sysfs-platform-mellanox-bootctl

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,69 @@ Description:
8484
The file used to write BlueField boot log with the format
8585
"[INFO|WARN|ERR|ASSERT ]<msg>". Log level 'INFO' is used by
8686
default if not specified.
87+
88+
What: /sys/bus/platform/devices/MLNXBF04:00/oob_mac
89+
Date: August 2023
90+
KernelVersion: 6.5
91+
Contact: "David Thompson <[email protected]>"
92+
Description:
93+
The "oob_mac" sysfs attribute holds the MAC address for
94+
the out-of-band 1Gbps Ethernet port. This MAC address is
95+
provided on a board-level label.
96+
97+
What: /sys/bus/platform/devices/MLNXBF04:00/opn
98+
Date: August 2023
99+
KernelVersion: 6.5
100+
Contact: "David Thompson <[email protected]>"
101+
Description:
102+
The "opn" sysfs attribute holds the board's part number.
103+
This value is provided on a board-level label.
104+
105+
What: /sys/bus/platform/devices/MLNXBF04:00/sku
106+
Date: August 2023
107+
KernelVersion: 6.5
108+
Contact: "David Thompson <[email protected]>"
109+
Description:
110+
The "sku" sysfs attribute holds the board's SKU number.
111+
This value is provided on a board-level label.
112+
113+
What: /sys/bus/platform/devices/MLNXBF04:00/modl
114+
Date: August 2023
115+
KernelVersion: 6.5
116+
Contact: "David Thompson <[email protected]>"
117+
Description:
118+
The "modl" sysfs attribute holds the board's model number.
119+
This value is provided on a board-level label.
120+
121+
What: /sys/bus/platform/devices/MLNXBF04:00/sn
122+
Date: August 2023
123+
KernelVersion: 6.5
124+
Contact: "David Thompson <[email protected]>"
125+
Description:
126+
The "sn" sysfs attribute holds the board's serial number.
127+
This value is provided on a board-level label.
128+
129+
What: /sys/bus/platform/devices/MLNXBF04:00/uuid
130+
Date: August 2023
131+
KernelVersion: 6.5
132+
Contact: "David Thompson <[email protected]>"
133+
Description:
134+
The "uuid" sysfs attribute holds the board's UUID.
135+
This value is provided by the manufacturing team.
136+
137+
What: /sys/bus/platform/devices/MLNXBF04:00/rev
138+
Date: August 2023
139+
KernelVersion: 6.5
140+
Contact: "David Thompson <[email protected]>"
141+
Description:
142+
The "rev" sysfs attribute holds the board's revision.
143+
This value is provided on a board-level label.
144+
145+
What: /sys/bus/platform/devices/MLNXBF04:00/mfg_lock
146+
Date: August 2023
147+
KernelVersion: 6.5
148+
Contact: "David Thompson <[email protected]>"
149+
Description:
150+
The "mfg_lock" sysfs attribute is write-only.
151+
A successful write to this attribute will latch the
152+
board-level attributes into EEPROM, making them read-only.

0 commit comments

Comments
 (0)