diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2023-05-12 13:22:57 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 10:37:24 -0400 |
commit | 9a3ce1a7a9e5372d8c275bf3fbef4456c8407145 (patch) | |
tree | 53d5cae231f6e29a8449b99c26a5d6001500fcb5 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | |
parent | 0409022c15623d91c112e51f38cb62633becd432 (diff) | |
download | linux-stable-9a3ce1a7a9e5372d8c275bf3fbef4456c8407145.tar.gz linux-stable-9a3ce1a7a9e5372d8c275bf3fbef4456c8407145.tar.bz2 linux-stable-9a3ce1a7a9e5372d8c275bf3fbef4456c8407145.zip |
drm/amdgpu: Do not access members of xcp w/o check (v2)
Not all the asic needs xcp. ensure check xcp availabity
before accessing its member.
v2: add missing change in kfd_topology.c
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h index 48d12dbff968..be43d71ba7ef 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h @@ -233,7 +233,7 @@ uint32_t amdgpu_amdkfd_get_fw_version(struct amdgpu_device *adev, enum kgd_engine_type type); void amdgpu_amdkfd_get_local_mem_info(struct amdgpu_device *adev, struct kfd_local_mem_info *mem_info, - uint8_t xcp_id); + struct amdgpu_xcp *xcp); uint64_t amdgpu_amdkfd_get_gpu_clock_counter(struct amdgpu_device *adev); uint32_t amdgpu_amdkfd_get_max_engine_clock_in_mhz(struct amdgpu_device *adev); |