drm/amdgpu/sdma4: drop hdp flush from wptr shadow update
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jul 2017 19:30:27 +0000 (15:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2017 18:46:03 +0000 (14:46 -0400)
The wb buffer is in system memory, not vram so the flush
is useless.

Cc: Frank Min <Frank.Min@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index f970a4a6b666354fb63f274419df2dbc89f88719..587bf508c794be4254cfe0009078bfe51ff8a972 100644 (file)
@@ -313,7 +313,6 @@ static void sdma_v4_0_ring_set_wptr(struct amdgpu_ring *ring)
                                        offset = adev->sdma.instance[i].poll_mem_offs;
                                        atomic64_set((atomic64_t *)&adev->wb.wb[offset],
                                                     (ring->wptr << 2));
-                                       nbio_v6_1_hdp_flush(adev);
                                }
                        }
                }