gpu: host1x: Reserve VBLANK syncpoints at initialization
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 29 Mar 2021 13:38:34 +0000 (16:38 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 31 Mar 2021 15:42:13 +0000 (17:42 +0200)
commitf5ba33fb9690566c382624637125827b5512e766
treeaac07e40146af90f707f7d6345fe628ed1fa677d
parentaded42ada6eacfa11d349b158e993f66e4741aa7
gpu: host1x: Reserve VBLANK syncpoints at initialization

On T20-T148 chips, the bootloader can set up a boot splash
screen with DC configured to increment syncpoint 26/27
at VBLANK. Because of this we shouldn't allow these syncpoints
to be allocated until DC has been reset and will no longer
increment them in the background.

As such, on these chips, reserve those two syncpoints at
initialization, and only mark them free once the DC
driver has indicated it's safe to do so.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/host1x/dev.c
drivers/gpu/host1x/dev.h
drivers/gpu/host1x/syncpt.c
include/linux/host1x.h