drm/amdgpu: Do not access members of xcp w/o check (v2)
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 12 May 2023 05:22:57 +0000 (13:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:24 +0000 (10:37 -0400)
commit9a3ce1a7a9e5372d8c275bf3fbef4456c8407145
tree53d5cae231f6e29a8449b99c26a5d6001500fcb5
parent0409022c15623d91c112e51f38cb62633becd432
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c