]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f278988a265eda798be50eefa5de66ce373b46c
tree9c411f7c79ace967d034e5cc7f98347b565f6d4d
parentea98f3204690257005ece64ce7f131ed8c0c35ac
drm/amdkfd: bail out early if no get_atc_vmid_pasid_mapping_info

it makes no sense to continue with an undefined vmid.

Fixes: 1c08e78bd341bb ("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