diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2021-03-29 15:38:32 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-03-31 17:42:13 +0200 |
commit | 2aed4f5ab04af922a7cf1b616701845c9ed2473f (patch) | |
tree | 52faa19a3f489235b47da047178c739e91fb3308 /drivers/gpu/drm/tegra/dc.c | |
parent | gpu: host1x: Use HW-equivalent syncpoint expiration check (diff) | |
download | linux-2aed4f5ab04af922a7cf1b616701845c9ed2473f.tar.xz linux-2aed4f5ab04af922a7cf1b616701845c9ed2473f.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index c9385cfd0fc1..cfda71e151cc 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -2141,7 +2141,7 @@ cleanup: drm_plane_cleanup(primary); host1x_client_iommu_detach(client); - host1x_syncpt_free(dc->syncpt); + host1x_syncpt_put(dc->syncpt); return err; } @@ -2166,7 +2166,7 @@ static int tegra_dc_exit(struct host1x_client *client) } host1x_client_iommu_detach(client); - host1x_syncpt_free(dc->syncpt); + host1x_syncpt_put(dc->syncpt); return 0; } |