drm/amdkfd: Fix NULL pointer error for GC 11.0.1 on mGPU
authorEric Huang <jinhuieric.huang@amd.com>
Thu, 5 Jan 2023 19:01:18 +0000 (14:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 23:11:08 +0000 (18:11 -0500)
commita6941f89d7c6a6ba49316bbd7da2fb2f719119a7
treede5448783b1cde51705f7dc467e5fccb6ead64a4
parent972fb53d3605eb6cdf0d6ae9a52e910626a91ff7
drm/amdkfd: Fix NULL pointer error for GC 11.0.1 on mGPU

The point bo->kfd_bo is NULL for queue's write pointer BO
when creating queue on mGPU. To avoid using the pointer
fixes the error.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c