OSDN Git Service

drm/amdgpu: Fix an omission when adding Aldebaran support
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 27 May 2020 01:38:53 +0000 (21:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:53:28 +0000 (22:53 -0400)
Aldebaran should be the same as Arcturus in the PTE SNOOPED bit handling.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 1f8732b..9455204 100644 (file)
@@ -1035,7 +1035,8 @@ static void gmc_v9_0_get_vm_pte(struct amdgpu_device *adev,
                *flags &= ~AMDGPU_PTE_VALID;
        }
 
-       if (adev->asic_type == CHIP_ARCTURUS &&
+       if ((adev->asic_type == CHIP_ARCTURUS ||
+           adev->asic_type == CHIP_ALDEBARAN) &&
            !(*flags & AMDGPU_PTE_SYSTEM) &&
            mapping->bo_va->is_xgmi)
                *flags |= AMDGPU_PTE_SNOOPED;