drm/amdgpu/gfx: only call mes for enforce isolation if supported
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 18:37:01 +0000 (13:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 19:08:28 +0000 (14:08 -0500)
commit80513e389765c8f9543b26d8fa4bbdf0e59ff8bc
treee48a8bea47ede8ec6cca9eef62a2601fdf20f809
parent500c04d2a70876c9fd49070606d948e96d32760e
drm/amdgpu/gfx: only call mes for enforce isolation if supported

This should not be called on chips without MES so check if
MES is enabled and if the cleaner shader is supported.

Fixes: 8521e3c5f058 ("drm/amd/amdgpu: limit single process inside MES")
Reviewed-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Shaoyun Liu <shaoyun.liu@amd.com>
Cc: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c