]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix VM flush on cayman/aruba (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jan 2015 00:42:25 +0000 (19:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Jan 2015 14:36:50 +0000 (09:36 -0500)
commit6108973b539bad9161ef06039ebc0dd5d3ed252b
tree91a7356e4aa8a6b5cf006ae1b49d00324e804d2e
parent18bf5b8e5af4263179beb53eaeaa87b94627eadd
drm/radeon: fix VM flush on cayman/aruba (v3)

We need to wait for the GPUVM flush to complete.  There
was some confusion as to how this mechanism was supposed
to work.  The operation is not atomic.  For GPU initiated
invalidations you need to read back a VM register to
introduce enough latency for the update to complete.

v2: drop gart changes
v3: just read back rather than polling

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/ni_dma.c
drivers/gpu/drm/radeon/nid.h