[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 12/22] drm/pl111: Introduce GEM object functions
- To: alexander.deucher@xxxxxxx, christian.koenig@xxxxxxx, airlied@xxxxxxxx, daniel@xxxxxxxx, linux@xxxxxxxxxxxxxxx, maarten.lankhorst@xxxxxxxxxxxxxxx, mripard@xxxxxxxxxx, l.stach@xxxxxxxxxxxxxx, christian.gmeiner@xxxxxxxxx, inki.dae@xxxxxxxxxxx, jy0922.shim@xxxxxxxxxxx, sw0312.kim@xxxxxxxxxxx, kyungmin.park@xxxxxxxxxxx, kgene@xxxxxxxxxx, krzk@xxxxxxxxxx, patrik.r.jakobsson@xxxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, joonas.lahtinen@xxxxxxxxxxxxxxx, rodrigo.vivi@xxxxxxxxx, chunkuang.hu@xxxxxxxxxx, p.zabel@xxxxxxxxxxxxxx, matthias.bgg@xxxxxxxxx, robdclark@xxxxxxxxx, sean@xxxxxxxxxx, bskeggs@xxxxxxxxxx, tomi.valkeinen@xxxxxx, eric@xxxxxxxxxx, hjc@xxxxxxxxxxxxxx, heiko@xxxxxxxxx, thierry.reding@xxxxxxxxx, jonathanh@xxxxxxxxxx, rodrigosiqueiramelo@xxxxxxxxx, hamohammed.sa@xxxxxxxxx, oleksandr_andrushchenko@xxxxxxxx, hyun.kwon@xxxxxxxxxx, laurent.pinchart@xxxxxxxxxxxxxxxx, michal.simek@xxxxxxxxxx, sumit.semwal@xxxxxxxxxx, evan.quan@xxxxxxx, Hawking.Zhang@xxxxxxx, tianci.yin@xxxxxxx, marek.olsak@xxxxxxx, hdegoede@xxxxxxxxxx, andrey.grodzovsky@xxxxxxx, Felix.Kuehling@xxxxxxx, xinhui.pan@xxxxxxx, aaron.liu@xxxxxxx, nirmoy.das@xxxxxxx, chris@xxxxxxxxxxxxxxxxxx, matthew.auld@xxxxxxxxx, tvrtko.ursulin@xxxxxxxxxxxxxxx, andi.shyti@xxxxxxxxx, sam@xxxxxxxxxxxx, miaoqinglang@xxxxxxxxxx, emil.velikov@xxxxxxxxxxxxx, laurentiu.palcu@xxxxxxxxxxx, shawnguo@xxxxxxxxxx, s.hauer@xxxxxxxxxxxxxx, kernel@xxxxxxxxxxxxxx, festevam@xxxxxxxxx, linux-imx@xxxxxxx
- From: Thomas Zimmermann <tzimmermann@xxxxxxx>
- Date: Wed, 23 Sep 2020 12:21:49 +0200
- Cc: amd-gfx@xxxxxxxxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, etnaviv@xxxxxxxxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, intel-gfx@xxxxxxxxxxxxxxxxxxxxx, linux-mediatek@xxxxxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, freedreno@xxxxxxxxxxxxxxxxxxxxx, nouveau@xxxxxxxxxxxxxxxxxxxxx, linux-rockchip@xxxxxxxxxxxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Thomas Zimmermann <tzimmermann@xxxxxxx>
- Delivery-date: Wed, 23 Sep 2020 10:22:42 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
GEM object functions deprecate several similar callback interfaces in
struct drm_driver. This patch replaces the per-driver callbacks with
per-instance callbacks in pl111. The only exception is gem_prime_mmap,
which is non-trivial to convert.
v2:
* use drm_gem_cma_create_object_default_funcs() (Eric)
Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
Reviewed-by: Eric Anholt <eric@xxxxxxxxxx>
---
drivers/gpu/drm/pl111/pl111_drv.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c
b/drivers/gpu/drm/pl111/pl111_drv.c
index 46b0d1c4a16c..ecef8a2383d2 100644
--- a/drivers/gpu/drm/pl111/pl111_drv.c
+++ b/drivers/gpu/drm/pl111/pl111_drv.c
@@ -224,15 +224,12 @@ static struct drm_driver pl111_drm_driver = {
.major = 1,
.minor = 0,
.patchlevel = 0,
+ .gem_create_object = drm_gem_cma_create_object_default_funcs,
.dumb_create = drm_gem_cma_dumb_create,
- .gem_free_object_unlocked = drm_gem_cma_free_object,
- .gem_vm_ops = &drm_gem_cma_vm_ops,
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
.gem_prime_import_sg_table = pl111_gem_import_sg_table,
- .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
.gem_prime_mmap = drm_gem_cma_prime_mmap,
- .gem_prime_vmap = drm_gem_cma_prime_vmap,
#if defined(CONFIG_DEBUG_FS)
.debugfs_init = pl111_debugfs_init,
--
2.28.0
|