drm/amdkfd: only flush mes process context if mes support is there
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 14 Dec 2023 03:08:03 +0000 (22:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Dec 2023 17:15:13 +0000 (12:15 -0500)
commit24149412dfc71f7f4a54868702e9145e396263d3
tree63874c1a54a7cd01ca5b978ddd9439b3856d5e9d
parentc6ef0a2265c518aa6699b64d10a7e5a9049ac96a
drm/amdkfd: only flush mes process context if mes support is there

Fix up on mes process context flush to prevent non-mes devices from
spamming error messages or running into undefined behaviour during
process termination.

Fixes: bd33bb1409b4 ("drm/amdkfd: fix mes set shader debugger process management")
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Eric Huang <jinhuieric.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c