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)
commit93396d0f9c027654eb09151d2e22fe78a39feedb
tree7604f2eda411a260f1be1522b6051591d2d42943
parent73c42c79767a03ae64d11457e3ce80e80e09e514
drm/tegra: dc: Select root window for event dispatch

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