drm/etnaviv: refcount the submit object
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Nov 2017 10:36:03 +0000 (11:36 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:31:31 +0000 (17:31 +0100)
commite0329e6cfa6274ceb54d175b5e6ac19c00024c33
tree61f286acee5eb8fb92c6b48f31159c3d1e994d03
parent08301d73f27d59e2ac45411ed7bb2235d68190db
drm/etnaviv: refcount the submit object

The submit object lifetime will get extended to the actual GPU
execution. As multiple users will depend on this, add a kref to
properly control destruction of the object.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem.h
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c