All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	etnaviv@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	intel-gfx@lists.freedesktop.org,
	linux-mediatek@lists.infradead.org,
	linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org,
	nouveau@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann-l3A5Bk7waGM@public.gmane.org>
To: "Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>,
	alexander.deucher-5C7GfCeVMHo@public.gmane.org,
	airlied-cv59FeDIM0c@public.gmane.org,
	daniel-/w4YWyX8dFk@public.gmane.org,
	linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org,
	maarten.lankhorst-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
	mripard-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
	christian.gmeiner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	jy0922.shim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	sw0312.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
	kgene-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	patrik.r.jakobsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
	joonas.lahtinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
	rodrigo.vivi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	chunkuang.hu-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
	matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	sean-p7yTbzM4H96eqtR555YLDQ@public.gmane.org,
	bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	tomi.valkeinen-l0cyMroinI0@public.gmane.org,
	eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org,
	hjc-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
	heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org,
	rodrigosiqueiramelo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	hamohammed.sa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	oleksandr_andrushchenko-uRwfk40T5oI@public.gmane.org,
	hyun.kwon-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org
Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	intel-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	etnaviv-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	xen-devel-GuqFBffKawtpuQazS67q72D2FQJk+8+b@public.gmane.org,
	freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be-5C7GfCeVMHo@public.gmane.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 182 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	intel-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org,
	freedreno@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	intel-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org,
	freedreno@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	intel-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org,
	freedreno@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	intel-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org,
	freedreno@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [Intel-gfx] [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Zimmermann <tzimmermann@suse.de>
To: "Christian König" <christian.koenig@amd.com>,
	alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, l.stach@pengutronix.de,
	christian.gmeiner@gmail.com, inki.dae@samsung.com,
	jy0922.shim@samsung.com, sw0312.kim@samsung.com,
	kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
	patrik.r.jakobsson@gmail.com, jani.nikula@linux.intel.com,
	joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	matthias.bgg@gmail.com, robdclark@gmail.com, sean@poorly.run,
	bskeggs@redhat.com, tomi.valkeinen@ti.com, eric@anholt.net,
	hjc@rock-chips.com, heiko@sntech.de, thierry.reding@gmail.com,
	jonathanh@nvidia.com, rodrigosiqueiramelo@gmail.com,
	hamohammed.sa@gmail.com, oleksandr_andrushchenko@epam.com,
	hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com,
	michal.simek@xilinx.com, sumit.semwal@linaro.org,
	evan.quan@amd.com, Hawking.Zhang@amd.com, tianci.yin@amd.com,
	marek.olsak@amd.com, hdegoede@redhat.com,
	andrey.grodzovsky@amd.com, Felix.Kuehling@amd.com,
	xinhui.pan@amd.com, aaron.liu@amd.com, nirmoy.das@amd.com,
	chris@chris-wilson.co.uk, matthew.auld@intel.com,
	tvrtko.ursulin@linux.intel.com, andi.shyti@intel.com,
	sam@ravnborg.org, miaoqinglang@huawei.com,
	emil.velikov@collabora.com
Cc: linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	intel-gfx@lists.freedesktop.org, etnaviv@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org,
	linux-rockchip@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, xen-devel@lists.xenproject.org,
	freedreno@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 00/21] Convert all remaining drivers to GEM object functions
Date: Thu, 17 Sep 2020 09:05:19 +0200	[thread overview]
Message-ID: <94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de> (raw)
In-Reply-To: <b527fde4-b456-6683-4a9e-0f7dcf1525be@amd.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 7773 bytes --]

Hi

Am 15.09.20 um 17:25 schrieb Christian König:
> Added my rb to the amdgpu and radeon patches.
> 
> Should we pick those up through the amd branches or do you want to push
> everything to drm-misc-next?
> 
> I think the later since this should result in much merge clash.

Yes, preferable, I'd merge it all through drm-misc.

Best regards
Thomas

> 
> Christian.
> 
> Am 15.09.20 um 16:59 schrieb Thomas Zimmermann:
>> The GEM and PRIME related callbacks in struct drm_driver are
>> deprecated in
>> favor of GEM object functions in struct drm_gem_object_funcs. This
>> patchset
>> converts the remaining drivers to object functions and removes most of
>> the
>> obsolete interfaces.
>>
>> Patches #1 to #16 and #18 to #19 convert DRM drivers to GEM object
>> functions,
>> one by one. Each patch moves existing callbacks from struct drm_driver
>> to an
>> instance of struct drm_gem_object_funcs, and sets these funcs when the
>> GEM
>> object is initialized. The expection is .gem_prime_mmap. There are
>> different
>> ways of how drivers implement the callback, and moving it to GEM object
>> functions requires a closer review for each.
>>
>> Patch #17 fixes virtgpu to use GEM object functions where possible. The
>> driver recently introduced a function for one of the deprecated
>> callbacks.
>>
>> Patch #20 converts xlnx to CMA helper macros. There's no apparent reason
>> why the driver does the GEM setup on it's own. Using CMA helper macros
>> adds GEM object functions implicitly.
>>
>> With most of the GEM and PRIME moved to GEM object functions, related
>> code
>> in struct drm_driver and in the DRM core/helpers is being removed by
>> patch
>> #21.
>>
>> Further testing is welcome. I tested the drivers for which I have HW
>> available. These are gma500, i915, nouveau, radeon and vc4. The console,
>> Weston and Xorg apparently work with the patches applied.
>>
>> v2:
>>     * moved code in amdgpu and radeon
>>     * made several functions static in various drivers
>>     * updated TODO-list item
>>     * fix virtgpu
>>
>> Thomas Zimmermann (21):
>>    drm/amdgpu: Introduce GEM object functions
>>    drm/armada: Introduce GEM object functions
>>    drm/etnaviv: Introduce GEM object functions
>>    drm/exynos: Introduce GEM object functions
>>    drm/gma500: Introduce GEM object functions
>>    drm/i915: Introduce GEM object functions
>>    drm/mediatek: Introduce GEM object functions
>>    drm/msm: Introduce GEM object funcs
>>    drm/nouveau: Introduce GEM object functions
>>    drm/omapdrm: Introduce GEM object functions
>>    drm/pl111: Introduce GEM object functions
>>    drm/radeon: Introduce GEM object functions
>>    drm/rockchip: Convert to drm_gem_object_funcs
>>    drm/tegra: Introduce GEM object functions
>>    drm/vc4: Introduce GEM object functions
>>    drm/vgem: Introduce GEM object functions
>>    drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs
>>    drm/vkms: Introduce GEM object functions
>>    drm/xen: Introduce GEM object functions
>>    drm/xlnx: Initialize DRM driver instance with CMA helper macro
>>    drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
>>
>>   Documentation/gpu/todo.rst                    |  7 +-
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  6 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       | 23 +++--
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h       |  5 --
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c    |  1 +
>>   drivers/gpu/drm/armada/armada_drv.c           |  3 -
>>   drivers/gpu/drm/armada/armada_gem.c           | 12 ++-
>>   drivers/gpu/drm/armada/armada_gem.h           |  2 -
>>   drivers/gpu/drm/drm_gem.c                     | 35 ++------
>>   drivers/gpu/drm/drm_gem_cma_helper.c          |  6 +-
>>   drivers/gpu/drm/drm_prime.c                   | 17 ++--
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 13 ---
>>   drivers/gpu/drm/etnaviv/etnaviv_drv.h         |  1 -
>>   drivers/gpu/drm/etnaviv/etnaviv_gem.c         | 19 ++++-
>>   drivers/gpu/drm/exynos/exynos_drm_drv.c       | 10 ---
>>   drivers/gpu/drm/exynos/exynos_drm_gem.c       | 15 ++++
>>   drivers/gpu/drm/gma500/framebuffer.c          |  2 +
>>   drivers/gpu/drm/gma500/gem.c                  | 18 +++-
>>   drivers/gpu/drm/gma500/gem.h                  |  3 +
>>   drivers/gpu/drm/gma500/psb_drv.c              |  9 --
>>   drivers/gpu/drm/gma500/psb_drv.h              |  2 -
>>   drivers/gpu/drm/i915/gem/i915_gem_object.c    | 21 ++++-
>>   drivers/gpu/drm/i915/gem/i915_gem_object.h    |  3 -
>>   drivers/gpu/drm/i915/i915_drv.c               |  4 -
>>   .../gpu/drm/i915/selftests/mock_gem_device.c  |  3 -
>>   drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  5 --
>>   drivers/gpu/drm/mediatek/mtk_drm_gem.c        | 11 +++
>>   drivers/gpu/drm/msm/msm_drv.c                 | 13 ---
>>   drivers/gpu/drm/msm/msm_drv.h                 |  1 -
>>   drivers/gpu/drm/msm/msm_gem.c                 | 19 ++++-
>>   drivers/gpu/drm/nouveau/nouveau_drm.c         |  9 --
>>   drivers/gpu/drm/nouveau/nouveau_gem.c         | 13 +++
>>   drivers/gpu/drm/nouveau/nouveau_gem.h         |  2 +
>>   drivers/gpu/drm/nouveau/nouveau_prime.c       |  2 +
>>   drivers/gpu/drm/omapdrm/omap_drv.c            |  9 --
>>   drivers/gpu/drm/omapdrm/omap_gem.c            | 18 +++-
>>   drivers/gpu/drm/omapdrm/omap_gem.h            |  2 -
>>   drivers/gpu/drm/pl111/pl111_drv.c             |  5 +-
>>   drivers/gpu/drm/radeon/radeon_drv.c           | 23 +----
>>   drivers/gpu/drm/radeon/radeon_gem.c           | 31 ++++++-
>>   drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  5 --
>>   drivers/gpu/drm/rockchip/rockchip_drm_gem.c   | 10 +++
>>   drivers/gpu/drm/tegra/drm.c                   |  4 -
>>   drivers/gpu/drm/tegra/gem.c                   |  8 ++
>>   drivers/gpu/drm/vc4/vc4_bo.c                  | 21 ++++-
>>   drivers/gpu/drm/vc4/vc4_drv.c                 | 12 ---
>>   drivers/gpu/drm/vc4/vc4_drv.h                 |  1 -
>>   drivers/gpu/drm/vgem/vgem_drv.c               | 21 +++--
>>   drivers/gpu/drm/virtio/virtgpu_drv.c          |  1 -
>>   drivers/gpu/drm/virtio/virtgpu_object.c       |  1 +
>>   drivers/gpu/drm/vkms/vkms_drv.c               |  8 --
>>   drivers/gpu/drm/vkms/vkms_gem.c               | 13 +++
>>   drivers/gpu/drm/xen/xen_drm_front.c           | 44 ++++------
>>   drivers/gpu/drm/xen/xen_drm_front.h           |  2 +
>>   drivers/gpu/drm/xen/xen_drm_front_gem.c       | 15 ++++
>>   drivers/gpu/drm/xlnx/zynqmp_dpsub.c           | 14 +--
>>   include/drm/drm_drv.h                         | 85 +------------------
>>   57 files changed, 319 insertions(+), 349 deletions(-)
>>
>> -- 
>> 2.28.0
>>
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  reply	other threads:[~2020-09-17  7:23 UTC|newest]

Thread overview: 332+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-15 14:59 [PATCH v2 00/21] Convert all remaining drivers to GEM object functions Thomas Zimmermann
2020-09-15 14:59 ` Thomas Zimmermann
2020-09-15 14:59 ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59 ` Thomas Zimmermann
2020-09-15 14:59 ` Thomas Zimmermann
2020-09-15 14:59 ` Thomas Zimmermann
2020-09-15 14:59 ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 01/21] drm/amdgpu: Introduce " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 15:05   ` Christian König
2020-09-15 15:05     ` Christian König
2020-09-15 15:05     ` [Intel-gfx] " Christian König
2020-09-15 15:05     ` Christian König
2020-09-15 15:05     ` Christian König
2020-09-15 15:05     ` Christian König
2020-09-15 15:05     ` Christian König
2020-09-17  7:40     ` Thomas Zimmermann
2020-09-17  7:40       ` Thomas Zimmermann
2020-09-17  7:40       ` [Intel-gfx] " Thomas Zimmermann
2020-09-17  7:40       ` Thomas Zimmermann
2020-09-17  7:40       ` Thomas Zimmermann
2020-09-17  7:40       ` Thomas Zimmermann
2020-09-17  7:40       ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 02/21] drm/armada: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 15:07   ` Russell King - ARM Linux admin
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 15:07     ` [Intel-gfx] " Russell King - ARM Linux admin
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 14:59 ` [PATCH v2 03/21] drm/etnaviv: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 11:21   ` Daniel Vetter
2020-09-16 11:21     ` Daniel Vetter
2020-09-16 11:21     ` [Intel-gfx] " Daniel Vetter
2020-09-16 11:21     ` Daniel Vetter
2020-09-16 11:21     ` Daniel Vetter
2020-09-16 11:21     ` Daniel Vetter
2020-09-16 11:21     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 04/21] drm/exynos: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 10:03   ` Daniel Vetter
2020-09-16 10:03     ` Daniel Vetter
2020-09-16 10:03     ` [Intel-gfx] " Daniel Vetter
2020-09-16 10:03     ` Daniel Vetter
2020-09-16 10:03     ` Daniel Vetter
2020-09-16 10:03     ` Daniel Vetter
2020-09-16 10:03     ` Daniel Vetter
2020-09-16 10:36     ` Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 10:36       ` [Intel-gfx] " Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 10:36       ` Thomas Zimmermann
2020-09-16 11:24       ` Daniel Vetter
2020-09-16 11:24         ` Daniel Vetter
2020-09-16 11:24         ` [Intel-gfx] " Daniel Vetter
2020-09-16 11:24         ` Daniel Vetter
2020-09-16 11:24         ` Daniel Vetter
2020-09-16 11:24         ` Daniel Vetter
2020-09-16 11:24         ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 05/21] drm/gma500: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 11:31   ` Daniel Vetter
2020-09-16 11:31     ` Daniel Vetter
2020-09-16 11:31     ` [Intel-gfx] " Daniel Vetter
2020-09-16 11:31     ` Daniel Vetter
2020-09-16 11:31     ` Daniel Vetter
2020-09-16 11:31     ` Daniel Vetter
2020-09-16 11:31     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 06/21] drm/i915: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 16:14   ` Tvrtko Ursulin
2020-09-15 16:14     ` Tvrtko Ursulin
2020-09-15 16:14     ` [Intel-gfx] " Tvrtko Ursulin
2020-09-15 16:14     ` Tvrtko Ursulin
2020-09-15 16:14     ` Tvrtko Ursulin
2020-09-15 16:14     ` Tvrtko Ursulin
2020-09-15 16:14     ` Tvrtko Ursulin
2020-09-15 14:59 ` [PATCH v2 07/21] drm/mediatek: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 11:35   ` Daniel Vetter
2020-09-16 11:35     ` Daniel Vetter
2020-09-16 11:35     ` [Intel-gfx] " Daniel Vetter
2020-09-16 11:35     ` Daniel Vetter
2020-09-16 11:35     ` Daniel Vetter
2020-09-16 11:35     ` Daniel Vetter
2020-09-16 11:35     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 08/21] drm/msm: Introduce GEM object funcs Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 12:01   ` Daniel Vetter
2020-09-16 12:01     ` Daniel Vetter
2020-09-16 12:01     ` [Intel-gfx] " Daniel Vetter
2020-09-16 12:01     ` Daniel Vetter
2020-09-16 12:01     ` Daniel Vetter
2020-09-16 12:01     ` Daniel Vetter
2020-09-16 12:01     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 09/21] drm/nouveau: Introduce GEM object functions Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 12:04   ` Daniel Vetter
2020-09-16 12:04     ` Daniel Vetter
2020-09-16 12:04     ` [Intel-gfx] " Daniel Vetter
2020-09-16 12:04     ` Daniel Vetter
2020-09-16 12:04     ` Daniel Vetter
2020-09-16 12:04     ` Daniel Vetter
2020-09-16 12:04     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 10/21] drm/omapdrm: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 11/21] drm/pl111: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 12/21] drm/radeon: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 15:08   ` Christian König
2020-09-15 15:08     ` Christian König
2020-09-15 15:08     ` [Intel-gfx] " Christian König
2020-09-15 15:08     ` Christian König
2020-09-15 15:08     ` Christian König
2020-09-15 15:08     ` Christian König
2020-09-15 15:08     ` Christian König
2020-09-15 14:59 ` [PATCH v2 13/21] drm/rockchip: Convert to drm_gem_object_funcs Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16  4:19   ` kernel test robot
2020-09-16 12:07   ` Daniel Vetter
2020-09-16 12:07     ` Daniel Vetter
2020-09-16 12:07     ` [Intel-gfx] " Daniel Vetter
2020-09-16 12:07     ` Daniel Vetter
2020-09-16 12:07     ` Daniel Vetter
2020-09-16 12:07     ` Daniel Vetter
2020-09-16 12:07     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 14/21] drm/tegra: Introduce GEM object functions Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-17 10:56   ` Thierry Reding
2020-09-17 10:56     ` Thierry Reding
2020-09-17 10:56     ` [Intel-gfx] " Thierry Reding
2020-09-17 10:56     ` Thierry Reding
2020-09-17 10:56     ` Thierry Reding
2020-09-17 10:56     ` Thierry Reding
2020-09-17 10:56     ` Thierry Reding
2020-09-15 14:59 ` [PATCH v2 15/21] drm/vc4: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 16/21] drm/vgem: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-17 14:01   ` Melissa Wen
2020-09-17 14:01     ` Melissa Wen
2020-09-17 14:01     ` [Intel-gfx] " Melissa Wen
2020-09-17 14:01     ` Melissa Wen
2020-09-17 14:01     ` Melissa Wen
2020-09-17 14:01     ` Melissa Wen
2020-09-17 14:01     ` Melissa Wen
2020-09-15 14:59 ` [PATCH v2 17/21] drm/virtgpu: Set PRIME export function in struct drm_gem_object_funcs Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16 12:09   ` Daniel Vetter
2020-09-16 12:09     ` Daniel Vetter
2020-09-16 12:09     ` [Intel-gfx] " Daniel Vetter
2020-09-16 12:09     ` Daniel Vetter
2020-09-16 12:09     ` Daniel Vetter
2020-09-16 12:09     ` Daniel Vetter
2020-09-16 12:09     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 18/21] drm/vkms: Introduce GEM object functions Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-17 11:31   ` Melissa Wen
2020-09-17 11:31     ` Melissa Wen
2020-09-17 11:31     ` [Intel-gfx] " Melissa Wen
2020-09-17 11:31     ` Melissa Wen
2020-09-17 11:31     ` Melissa Wen
2020-09-17 11:31     ` Melissa Wen
2020-09-17 11:31     ` Melissa Wen
2020-09-15 14:59 ` [PATCH v2 19/21] drm/xen: " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 15:53   ` Laurent Pinchart
2020-09-15 15:53     ` Laurent Pinchart
2020-09-15 15:53     ` [Intel-gfx] " Laurent Pinchart
2020-09-15 15:53     ` Laurent Pinchart
2020-09-15 15:53     ` Laurent Pinchart
2020-09-15 15:53     ` Laurent Pinchart
2020-09-15 15:53     ` Laurent Pinchart
2020-09-15 18:39     ` Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 18:39       ` [Intel-gfx] " Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 18:39       ` Hyun Kwon
2020-09-15 14:59 ` [PATCH v2 21/21] drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` [Intel-gfx] " Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-15 14:59   ` Thomas Zimmermann
2020-09-16  8:01   ` kernel test robot
2020-09-16 10:16   ` kernel test robot
2020-09-16 12:12   ` Daniel Vetter
2020-09-16 12:12     ` Daniel Vetter
2020-09-16 12:12     ` [Intel-gfx] " Daniel Vetter
2020-09-16 12:12     ` Daniel Vetter
2020-09-16 12:12     ` Daniel Vetter
2020-09-16 12:12     ` Daniel Vetter
2020-09-16 12:12     ` Daniel Vetter
2020-09-16 17:55   ` Thomas Zimmermann
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-16 17:55     ` [Intel-gfx] " Thomas Zimmermann
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-21  8:11   ` Dan Carpenter
2020-09-21  8:11     ` Dan Carpenter
2020-09-15 15:25 ` [PATCH v2 00/21] Convert all remaining drivers to GEM object functions Christian König
2020-09-15 15:25   ` Christian König
2020-09-15 15:25   ` [Intel-gfx] " Christian König
2020-09-15 15:25   ` Christian König
2020-09-15 15:25   ` Christian König
2020-09-15 15:25   ` Christian König
2020-09-15 15:25   ` Christian König
2020-09-17  7:05   ` Thomas Zimmermann [this message]
2020-09-17  7:05     ` Thomas Zimmermann
2020-09-17  7:05     ` [Intel-gfx] " Thomas Zimmermann
2020-09-17  7:05     ` Thomas Zimmermann
2020-09-17  7:05     ` Thomas Zimmermann
2020-09-17  7:05     ` Thomas Zimmermann
2020-09-17  7:05     ` Thomas Zimmermann
2020-09-15 16:22 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Convert all remaining drivers to GEM object functions (rev2) Patchwork
2020-09-15 16:24 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-09-15 16:39 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=94b4d32e-92f2-cc29-1d59-b9b10b814220@suse.de \
    --to=tzimmermann@suse.de \
    --cc=Felix.Kuehling@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=aaron.liu@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=andi.shyti@intel.com \
    --cc=andrey.grodzovsky@amd.com \
    --cc=bskeggs@redhat.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=christian.gmeiner@gmail.com \
    --cc=christian.koenig@amd.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.velikov@collabora.com \
    --cc=eric@anholt.net \
    --cc=etnaviv@lists.freedesktop.org \
    --cc=evan.quan@amd.com \
    --cc=freedreno@lists.freedesktop.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=hyun.kwon@xilinx.com \
    --cc=inki.dae@samsung.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jonathanh@nvidia.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=jy0922.shim@samsung.com \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=l.stach@pengutronix.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marek.olsak@amd.com \
    --cc=matthew.auld@intel.com \
    --cc=matthias.bgg@gmail.com \
    --cc=miaoqinglang@huawei.com \
    --cc=michal.simek@xilinx.com \
    --cc=mripard@kernel.org \
    --cc=nirmoy.das@amd.com \
    --cc=nouveau@lists.freedesktop.org \
    --cc=oleksandr_andrushchenko@epam.com \
    --cc=p.zabel@pengutronix.de \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=robdclark@gmail.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=rodrigosiqueiramelo@gmail.com \
    --cc=sam@ravnborg.org \
    --cc=sean@poorly.run \
    --cc=sumit.semwal@linaro.org \
    --cc=sw0312.kim@samsung.com \
    --cc=thierry.reding@gmail.com \
    --cc=tianci.yin@amd.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=tvrtko.ursulin@linux.intel.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xinhui.pan@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.