]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/mali-dp: Improve writeback handling for DP500.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 15 Jun 2018 15:56:09 +0000 (16:56 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 5 Jul 2018 14:19:04 +0000 (15:19 +0100)
commit0735cfdf0af4d4ffc3743fb75b9ad929dfd37206
treed2c2514b0095a5c02e762a9f4587579c2387e529
parent8cbc5caf36ef7a299b5cbedf55f27fd898d700bf
drm/mali-dp: Improve writeback handling for DP500.

Mali DP500 operates in continuous writeback mode (writes frame content
until stopped) and it needs special handling in order to behave like
a one-shot writeback engine. The original state machine added for DP500
was a bit fragile, as it did not handle correctly cases where a new
atomic commit was in progress when the SE IRQ happens and it would
commit some partial updates.

Improve the handling by adding a parameter to the set_config_valid()
function to clear the config valid bit in hardware before starting a
new commit and by introducing a MW_RESTART state in the writeback
state machine to cater for the case where a new writeback commit
gets submitted while the last one is still being active.

Reported-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_drv.c
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_hw.h