OSDN Git Service

drm/amdkfd: bail out early if no get_atc_vmid_pasid_mapping_info
authorYifan Zhang <yifan1.zhang@amd.com>
Wed, 9 Mar 2022 01:59:19 +0000 (09:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Mar 2022 22:27:50 +0000 (17:27 -0500)
commitd55957fb299b74829c438f77fe29896e3aed39fc
tree9c411f7c79ace967d034e5cc7f98347b565f6d4d
parent53b97af4a44abd21344cc9f13986ba53051287bb
drm/amdkfd: bail out early if no get_atc_vmid_pasid_mapping_info

it makes no sense to continue with an undefined vmid.

Fixes: c8b0507f40deea ("drm/amdkfd: judge get_atc_vmid_pasid_mapping_info before call")
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c