drm/radeon: fix VM flush on CIK (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jan 2015 00:59:47 +0000 (19:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Jan 2015 14:36:51 +0000 (09:36 -0500)
commit3a01fd367e09ebf05d75a000407364e7ebe2b678
tree36e4e9a9e82b7e6cea9d146397b3788bdb91dce5
parentd474ea7e52cbaaae22711d857949ba6018562c29
drm/radeon: fix VM flush on CIK (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/cik.c
drivers/gpu/drm/radeon/cik_sdma.c