]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dc: Use direct offset to plane registers
authorThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2017 12:37:53 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 21 Dec 2017 13:52:34 +0000 (14:52 +0100)
commitf1889d3f13d7eaac8a1ef1ddc89f7a35b344bb37
treebcaa99364e5ef62abc799aa36aa4625235e3a61a
parent1c0e1246df0cc1c8cbe674e4764cea7aa1aa84ab
drm/tegra: dc: Use direct offset to plane registers

Traditionally, windows were accessed indirectly, through a register
selection window that required a global register to be programmed with
the index of the window to access. Since the global register could be
written from modesetting functions as well as the interrupt handler
concurrently, accesses had to be serialized using a lock. Using direct
accesses to the window registers the lock can be avoided.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/hub.c
drivers/gpu/drm/tegra/hub.h
drivers/gpu/drm/tegra/plane.h
drivers/gpu/drm/tegra/sor.c