]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Set default xnack mode for gfx_v12.1 A0/B0
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Tue, 9 Dec 2025 14:29:28 +0000 (09:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2026 14:57:29 +0000 (10:57 -0400)
For A0, default xnack mode is off
For BO, default xnack mode is on

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Philip.Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

index f558c8a5584234121ce86915266355e8d7421106..f1d9e12ebfc7a294b9746557dbd91ad723ec8244 100644 (file)
@@ -1007,6 +1007,9 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
                                gc_ver == IP_VERSION(9, 5, 0) ||
                                gc_ver >= IP_VERSION(10, 3, 0));
 
+       /* For GFX12.1 B0, set xnack (retry) on as default */
+       if (gc_ver == IP_VERSION(12, 1, 0) && (adev->rev_id & 0xf) == 0x1)
+               noretry_default = false;
        if (!amdgpu_sriov_xnack_support(adev))
                gmc->noretry = 1;
        else