Skip to content

Commit fcb3ad4

Browse files
committed
Merge tag 'platform-drivers-x86-v6.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver updates from Ilpo Järvinen: - alienware WMAX thermal interface support - Split ACPI and platform device based amd/hsmp drivers - AMD X3D frequency/cache mode switching support - asus thermal policy fixes - Disable C1 auto-demotion in suspend to allow entering the deepest C-states - Fix volume buttons on Thinkpad X12 Detachable Tablet Gen 1 - Replace intel_scu_ipc "workaround" with 32-bit IO - Correct *_show() function error handling in panasonic-laptop - Gemini Lake P2SB devfn correction - think-lmi Admin/System certificate authentication support - Disable WMI devices for shutdown, refactoring continues - Vexia EDU ATLA 10 tablet support - Surface Pro 9 5G (Arm/QCOM) support - Misc cleanups / refactoring / improvements * tag 'platform-drivers-x86-v6.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (69 commits) platform/x86: p2sb: Cache correct PCI bar for P2SB on Gemini Lake platform/x86: panasonic-laptop: Return errno correctly in show callback Documentation: alienware-wmi: Describe THERMAL_INFORMATION operation 0x02 alienware-wmi: create_thermal_profile() no longer brute-forces IDs alienware-wmi: Adds support to Alienware x17 R2 alienware-wmi: extends the list of supported models alienware-wmi: order alienware_quirks[] alphabetically platform/x86/intel/pmt: allow user offset for PMT callbacks platform/x86/amd/hsmp: Change the error type platform/x86/amd/hsmp: Add new error code and error logs platform/x86/amd: amd_3d_vcache: Add sysfs ABI documentation platform/x86/amd: amd_3d_vcache: Add AMD 3D V-Cache optimizer driver intel-hid: fix volume buttons on Thinkpad X12 Detachable Tablet Gen 1 platform/x86/amd/hsmp: mark hsmp_msg_desc_table[] as maybe_unused platform/x86: asus-wmi: Use platform_profile_cycle() platform/x86: asus-wmi: Fix inconsistent use of thermal policies platform/x86: hp: hp-bioscfg: remove redundant if statement MAINTAINERS: Update ISHTP ECLITE maintainer entry platform/x86: x86-android-tablets: Add support for Vexia EDU ATLA 10 tablet platform/x86: x86-android-tablets: Add support for getting i2c_adapter by PCI parent devname() ...
2 parents 70e8ef2 + c6a2b4f commit fcb3ad4

Some content is hidden

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

92 files changed

+3192
-1515
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
What: /sys/bus/platform/drivers/amd_x3d_vcache/AMDI0101:00/amd_x3d_mode
2+
Date: November 2024
3+
KernelVersion: 6.13
4+
Contact: Basavaraj Natikar <[email protected]>
5+
Description: (RW) AMD 3D V-Cache optimizer allows users to switch CPU core
6+
rankings dynamically.
7+
8+
This file switches between these two modes:
9+
- "frequency" cores within the faster CCD are prioritized before
10+
those in the slower CCD.
11+
- "cache" cores within the larger L3 CCD are prioritized before
12+
those in the smaller L3 CCD.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Description:
193193

194194
mechanism:
195195
The means of authentication. This attribute is mandatory.
196-
Only supported type currently is "password".
196+
Supported types are "password" or "certificate".
197197

198198
max_password_length:
199199
A file that can be read to obtain the
@@ -303,6 +303,7 @@ Description:
303303
being configured allowing anyone to make changes.
304304
After any of these operations the system must reboot for the changes to
305305
take effect.
306+
Admin and System certificates are supported from 2025 systems onward.
306307

307308
certificate_thumbprint:
308309
Read only attribute used to display the MD5, SHA1 and SHA256 thumbprints

Documentation/arch/x86/amd_hsmp.rst

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
AMD HSMP interface
55
============================================
66

7-
Newer Fam19h EPYC server line of processors from AMD support system
8-
management functionality via HSMP (Host System Management Port).
7+
Newer Fam19h(model 0x00-0x1f, 0x30-0x3f, 0x90-0x9f, 0xa0-0xaf),
8+
Fam1Ah(model 0x00-0x1f) EPYC server line of processors from AMD support
9+
system management functionality via HSMP (Host System Management Port).
910

1011
The Host System Management Port (HSMP) is an interface to provide
1112
OS-level software with access to system management functions via a
@@ -16,14 +17,25 @@ More details on the interface can be found in chapter
1617
Eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip
1718

1819

19-
HSMP interface is supported on EPYC server CPU models only.
20+
HSMP interface is supported on EPYC line of server CPUs and MI300A (APU).
2021

2122

2223
HSMP device
2324
============================================
2425

25-
amd_hsmp driver under the drivers/platforms/x86/ creates miscdevice
26-
/dev/hsmp to let user space programs run hsmp mailbox commands.
26+
amd_hsmp driver under drivers/platforms/x86/amd/hsmp/ has separate driver files
27+
for ACPI object based probing, platform device based probing and for the common
28+
code for these two drivers.
29+
30+
Kconfig option CONFIG_AMD_HSMP_PLAT compiles plat.c and creates amd_hsmp.ko.
31+
Kconfig option CONFIG_AMD_HSMP_ACPI compiles acpi.c and creates hsmp_acpi.ko.
32+
Selecting any of these two configs automatically selects CONFIG_AMD_HSMP. This
33+
compiles common code hsmp.c and creates hsmp_common.ko module.
34+
35+
Both the ACPI and plat drivers create the miscdevice /dev/hsmp to let
36+
user space programs run hsmp mailbox commands.
37+
38+
The ACPI object format supported by the driver is defined below.
2739

2840
$ ls -al /dev/hsmp
2941
crw-r--r-- 1 root root 10, 123 Jan 21 21:41 /dev/hsmp
@@ -59,6 +71,51 @@ Note: lseek() is not supported as entire metrics table is read.
5971
Metrics table definitions will be documented as part of Public PPR.
6072
The same is defined in the amd_hsmp.h header.
6173

74+
ACPI device object format
75+
=========================
76+
The ACPI object format expected from the amd_hsmp driver
77+
for socket with ID00 is given below::
78+
79+
Device(HSMP)
80+
{
81+
Name(_HID, "AMDI0097")
82+
Name(_UID, "ID00")
83+
Name(HSE0, 0x00000001)
84+
Name(RBF0, ResourceTemplate()
85+
{
86+
Memory32Fixed(ReadWrite, 0xxxxxxx, 0x00100000)
87+
})
88+
Method(_CRS, 0, NotSerialized)
89+
{
90+
Return(RBF0)
91+
}
92+
Method(_STA, 0, NotSerialized)
93+
{
94+
If(LEqual(HSE0, One))
95+
{
96+
Return(0x0F)
97+
}
98+
Else
99+
{
100+
Return(Zero)
101+
}
102+
}
103+
Name(_DSD, Package(2)
104+
{
105+
Buffer(0x10)
106+
{
107+
0x9D, 0x61, 0x4D, 0xB7, 0x07, 0x57, 0xBD, 0x48,
108+
0xA6, 0x9F, 0x4E, 0xA2, 0x87, 0x1F, 0xC2, 0xF6
109+
},
110+
Package(3)
111+
{
112+
Package(2) {"MsgIdOffset", 0x00010934},
113+
Package(2) {"MsgRspOffset", 0x00010980},
114+
Package(2) {"MsgArgOffset", 0x000109E0}
115+
}
116+
})
117+
}
118+
62119

63120
An example
64121
==========

0 commit comments

Comments
 (0)