drm/tilcdc: Write DMA base and ceiling address with single instruction
authorJyri Sarha <jsarha@ti.com>
Fri, 26 Aug 2016 12:10:14 +0000 (15:10 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 1 Sep 2016 19:31:59 +0000 (22:31 +0300)
commit7eb9f069ff5dd39d44d7ecdf63eb99b429c7dad0
tree7e19fda5f1a9830b3ce48117a3793832fd2565f8
parent63b07a8d8177675c5a4297de477fd511e9be7896
drm/tilcdc: Write DMA base and ceiling address with single instruction

Write DMA base and ceiling address with a single instruction, if
available. This should make it more unlikely that LCDC would fetch the
DMA addresses in the middle of an update. Having bad combination of
addresses in dma base and ceiling (e.g base > ceiling) can cause
unpredictaple behavior in LCDC.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_regs.h