Patch "drm/amdgpu/gfx: only call mes for enforce isolation if supported" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amdgpu/gfx: only call mes for enforce isolation if supported

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-gfx-only-call-mes-for-enforce-isolation-i.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c3b184cf4e4097a0de16a031a2fd729a25d6c34d
Author: Alex Deucher <alexander.deucher@xxxxxxx>
Date:   Thu Feb 13 13:37:01 2025 -0500

    drm/amdgpu/gfx: only call mes for enforce isolation if supported
    
    [ Upstream commit e7ea88207cef513514e706aacc534527ac88b9b8 ]
    
    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@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Cc: Shaoyun Liu <shaoyun.liu@xxxxxxx>
    Cc: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx>
    (cherry picked from commit 80513e389765c8f9543b26d8fa4bbdf0e59ff8bc)
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
index 9a4dad3e41529..11aa55bd16d28 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
@@ -1598,11 +1598,13 @@ static ssize_t amdgpu_gfx_set_enforce_isolation(struct device *dev,
 		if (adev->enforce_isolation[i] && !partition_values[i]) {
 			/* Going from enabled to disabled */
 			amdgpu_vmid_free_reserved(adev, AMDGPU_GFXHUB(i));
-			amdgpu_mes_set_enforce_isolation(adev, i, false);
+			if (adev->enable_mes && adev->gfx.enable_cleaner_shader)
+				amdgpu_mes_set_enforce_isolation(adev, i, false);
 		} else if (!adev->enforce_isolation[i] && partition_values[i]) {
 			/* Going from disabled to enabled */
 			amdgpu_vmid_alloc_reserved(adev, AMDGPU_GFXHUB(i));
-			amdgpu_mes_set_enforce_isolation(adev, i, true);
+			if (adev->enable_mes && adev->gfx.enable_cleaner_shader)
+				amdgpu_mes_set_enforce_isolation(adev, i, true);
 		}
 		adev->enforce_isolation[i] = partition_values[i];
 	}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux