]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Restructure the GEM object creation
authorRob Herring <robh@kernel.org>
Mon, 1 Jul 2019 23:03:30 +0000 (17:03 -0600)
committerRob Herring <robh@kernel.org>
Mon, 12 Aug 2019 20:19:05 +0000 (14:19 -0600)
commit4e3a51ce22414fbe8c70c520c1a95c0cd5ca37e7
tree25cc5f6c479d9ee39d334670df2a6f51b3b36b11
parent39dcc35f3f0b15db5b14496ad4b00ba7060fc32f
drm/panfrost: Restructure the GEM object creation

Setting the GPU VA when creating the GEM object doesn't allow for any
conditional adjustments to the mapping. In preparation to support
adjusting the mapping and per FD address spaces, restructure the GEM
object creation to map and unmap the GEM object in the GEM object .open()
and .close() hooks.

While panfrost_gem_free_object() and panfrost_gem_prime_import_sg_table()
are not really needed after this commit, keep them as we'll need them in
subsequent commits.

Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808222200.13176-4-robh@kernel.org
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_gem.c