diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2025-02-06 15:48:35 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-12 21:04:09 -0500 |
| commit | 0a0bd4f95cb33150b63d4f5bb02dc45c5557c483 (patch) | |
| tree | c9b38a607b621eacb3344c286b4a237290606075 /drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | |
| parent | drm/amdgpu: reset psp->cmd to NULL after releasing the buffer (diff) | |
| download | linux-0a0bd4f95cb33150b63d4f5bb02dc45c5557c483.tar.gz linux-0a0bd4f95cb33150b63d4f5bb02dc45c5557c483.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c')
0 files changed, 0 insertions, 0 deletions
