diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-04-07 08:41:21 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-04-07 08:41:21 +0100 |
commit | 6c0b14d734824b8bee84febca682e3b306a486d9 (patch) | |
tree | 23cdede9f965b371161f05b5bc84364036a848a9 /drivers/media/video/tiler | |
parent | a82e6661080f0f6f8b226d4d529e70aff92d4831 (diff) |
TILER: Ensure the pat refill has correct data before programming it
Signed-off-by: David Sin <davidsin@ti.com>
Diffstat (limited to 'drivers/media/video/tiler')
-rw-r--r-- | drivers/media/video/tiler/tiler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/tiler/tiler.c b/drivers/media/video/tiler/tiler.c index ee8943b8384..911a039a612 100644 --- a/drivers/media/video/tiler/tiler.c +++ b/drivers/media/video/tiler/tiler.c @@ -1170,6 +1170,9 @@ static s32 map_block(enum tiler_fmt fmt, u32 width, u32 height, } up_read(&mm->mmap_sem); + /* Ensure the data reaches to main memory before PAT refill */ + wmb(); + if (refill_pat(TMM(fmt), &mi->area, mem)) goto fault; @@ -1914,6 +1917,9 @@ s32 alloc_block(enum tiler_fmt fmt, u32 width, u32 height, if (!mi->mem) goto cleanup; + /* Ensure the data reaches to main memory before PAT refill */ + wmb(); + /* program PAT */ if (refill_pat(TMM(fmt), &mi->area, mi->mem)) goto cleanup; |