diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2021-04-23 14:37:10 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-28 23:35:49 -0400 |
commit | dfdd4b8a95197d3769563e6f504357d98dd63887 (patch) | |
tree | 2238cb6f174e78fbc4d5fa3b70e4fb307891280a /drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h | |
parent | ec0f72cb959d9b8d6ce51457b392945fe1719d46 (diff) | |
download | linux-dfdd4b8a95197d3769563e6f504357d98dd63887.tar.gz |
drm/amdgpu: implement smuio callback to query socket id
get_socket_id is used to query socket id
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <John.Clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h index b860ec913ac5..484bb3dcec47 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h @@ -29,6 +29,7 @@ struct amdgpu_smuio_funcs { void (*update_rom_clock_gating)(struct amdgpu_device *adev, bool enable); void (*get_clock_gating_state)(struct amdgpu_device *adev, u32 *flags); u32 (*get_die_id)(struct amdgpu_device *adev); + u32 (*get_socket_id)(struct amdgpu_device *adev); bool (*is_host_gpu_xgmi_supported)(struct amdgpu_device *adev); }; |