drm/tegra: dc: Select root window for event dispatch
authorSean Paul <seanpaul@chromium.org>
Wed, 19 Nov 2014 18:04:49 +0000 (13:04 -0500)
committerThierry Reding <treding@nvidia.com>
Wed, 17 Dec 2014 13:27:39 +0000 (14:27 +0100)
In finish pageflip, the driver was not selecting the root window when
dispatching events. This exposed a race where a plane update would
change the window selection and cause tegra_dc_finish_page_flip to check
the wrong base address.

This patch also protects access to the window selection register as well
as the registers affected by it.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

Simple merge