Skip to content

Commit 7845d80

Browse files
committed
drm/amdgpu/gmc9: remove dummy read workaround for newer chips
Aldebaran has a hw fix so no longer requires the workaround. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5c88e3b commit 7845d80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
574574
* be updated to avoid reading an incorrect value due to
575575
* the new fast GRBM interface.
576576
*/
577-
if (entry->vmid_src == AMDGPU_GFXHUB_0)
577+
if ((entry->vmid_src == AMDGPU_GFXHUB_0) &&
578+
(adev->asic_type < CHIP_ALDEBARAN))
578579
RREG32(hub->vm_l2_pro_fault_status);
579580

580581
status = RREG32(hub->vm_l2_pro_fault_status);
@@ -802,7 +803,8 @@ static void gmc_v9_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid,
802803
* be cleared to avoid a false ACK due to the new fast
803804
* GRBM interface.
804805
*/
805-
if (vmhub == AMDGPU_GFXHUB_0)
806+
if ((vmhub == AMDGPU_GFXHUB_0) &&
807+
(adev->asic_type < CHIP_ALDEBARAN))
806808
RREG32_NO_KIQ(hub->vm_inv_eng0_req +
807809
hub->eng_distance * eng);
808810

0 commit comments

Comments
 (0)