diff options
| author | Muralidhara M K <muralidhara.mk@amd.com> | 2026-10-12 14:24:04 +0530 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-10-16 14:27:04 +0300 |
| commit | af51cf46d4d3015543a65b77605566c5f37258c6 (patch) | |
| tree | 07042a9771660d197a31a1cb328c8b435b821f48 /scripts/const_structs.checkpatch | |
| parent | 8667bd30fd033295b3038ce374c551d1059538ba (diff) | |
platform/x86/amd/hsmp: Recognize Family 1Ah client platforms and hide server-only paths
Add is_client_platform(), based on the ACPI-reported PM profile and
an AMD vendor check, to detect Family 1Ah client platforms, Models
80h-8Fh and E0h-E3h.
Use is_client_platform() to:
- Hide every ACPI sysfs device attribute except smu_fw_version and
protocol_version on client platforms.
- Hide the metrics_bin sysfs binary attribute on client platforms.
- Skip hsmp_create_sensor() in init_acpi() on client platforms.
- Exclude client platforms from the HSMP_GET_METRIC_TABLE_DRAM_ADDR
lookup in init_acpi().
- Register /dev/hsmp at 0600 on client platforms, 0644 on server.
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Link: https://patch.msgid.link/20261012085407.1202295-2-muralidhara.mk@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
