From 102933f39bc14e2c32d7fbf9ec03d92a01f111fc Mon Sep 17 00:00:00 2001 From: Matt Sealey Date: Mon, 10 Dec 2012 19:08:17 -0600 Subject: [PATCH] amd-gpu: ensure timestamp read posted to CPU before returning --- drivers/mxc/amd-gpu/gsl_cmdstream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mxc/amd-gpu/gsl_cmdstream.c b/drivers/mxc/amd-gpu/gsl_cmdstream.c index 2774d10f218..7701858a2d2 100644 --- a/drivers/mxc/amd-gpu/gsl_cmdstream.c +++ b/drivers/mxc/amd-gpu/gsl_cmdstream.c @@ -54,6 +54,9 @@ gsl_timestamp_t kgsl_cmdstream_readtimestamp0(gsl_deviceid_t device_id, gsl_time // end-of-pipeline timestamp GSL_CMDSTREAM_GET_EOP_TIMESTAMP(device, (unsigned int*)×tamp); } + + rmb(); + kgsl_log_write( KGSL_LOG_GROUP_COMMAND | KGSL_LOG_LEVEL_TRACE, "<-- kgsl_ringbuffer_readtimestamp. Return value %d\n", timestamp ); return (timestamp); }