summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-02-07 00:48:35 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-02-13 05:04:09 +0300
commit0a0bd4f95cb33150b63d4f5bb02dc45c5557c483 (patch)
treec9b38a607b621eacb3344c286b4a237290606075 /tools/perf/scripts/python/mem-phys-addr.py
parente92f3f94cad24154fd3baae30c6dfb918492278d (diff)
downloadlinux-0a0bd4f95cb33150b63d4f5bb02dc45c5557c483.tar.xz
drm/amd: Refactor find_system_memory()
find_system_memory() pulls out two fields from an SMBIOS type 17 device and sets them on KFD devices. The data offsets are counted to find interesting data. Instead use a struct representation to access the members and pull out the two specific fields. No intended functional changes. Link: https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0.pdf p99 Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Link: https://lore.kernel.org/r/20250206214847.3334595-1-superm1@kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions