amd-gpu: barriers in ringbuffer submit to ensure that the buffer is posted first

This commit is contained in:
Matt Sealey
2012-12-10 18:36:59 -06:00
parent 0c0087fe73
commit be53471e10

View File

@@ -349,6 +349,9 @@ kgsl_ringbuffer_submit(gsl_ringbuffer_t *rb)
kgsl_device_active(rb->device);
GSL_RB_UPDATE_WPTR_POLLING(rb);
dsb();
wmb();
mb();
// send the wptr to the hw
rb->device->ftbl.device_regwrite(rb->device, mmCP_RB_WPTR, rb->wptr);