OSDN Git Service

drm/amdgpu: add new smuio callbacks for aldebaran
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 8 Dec 2020 12:57:22 +0000 (20:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:52:35 +0000 (22:52 -0400)
is_host_gpu_xgmi_supported is used to query gpu and
cpu/host link type. get_die_id is used to query die
ids.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_smuio.h

index 0300915..b860ec9 100644 (file)
@@ -28,6 +28,8 @@ struct amdgpu_smuio_funcs {
        u32 (*get_rom_data_offset)(struct amdgpu_device *adev);
        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);
+       bool (*is_host_gpu_xgmi_supported)(struct amdgpu_device *adev);
 };
 
 struct amdgpu_smuio {