gpu: host1x: Cleanup and refcounting for syncpoints
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 29 Mar 2021 13:38:32 +0000 (16:38 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 31 Mar 2021 15:42:13 +0000 (17:42 +0200)
commit2aed4f5ab04af922a7cf1b616701845c9ed2473f
tree52faa19a3f489235b47da047178c739e91fb3308
parentf63b42cbc86e12f7d960d1fdaaf93b4373c06c65
gpu: host1x: Cleanup and refcounting for syncpoints

Add reference counting for allocated syncpoints to allow keeping
them allocated while jobs are referencing them. Additionally,
clean up various places using syncpoint IDs to use host1x_syncpt
pointers instead.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
15 files changed:
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/gr2d.c
drivers/gpu/drm/tegra/gr3d.c
drivers/gpu/drm/tegra/vic.c
drivers/gpu/host1x/cdma.c
drivers/gpu/host1x/dev.h
drivers/gpu/host1x/hw/cdma_hw.c
drivers/gpu/host1x/hw/channel_hw.c
drivers/gpu/host1x/hw/debug_hw.c
drivers/gpu/host1x/job.c
drivers/gpu/host1x/syncpt.c
drivers/gpu/host1x/syncpt.h
drivers/staging/media/tegra-video/vi.c
include/linux/host1x.h