Nouveau Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hyun Kwon <hyun.kwon@xilinx.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
	"hamohammed.sa@gmail.com" <hamohammed.sa@gmail.com>,
	"airlied@linux.ie" <airlied@linux.ie>,
	"nouveau@lists.freedesktop.org" <nouveau@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	Michal Simek <michals@xilinx.com>,
	"thierry.reding@gmail.com" <thierry.reding@gmail.com>,
	"krzk@kernel.org" <krzk@kernel.org>,
	"sam@ravnborg.org" <sam@ravnborg.org>,
	"emil.velikov@collabora.com" <emil.velikov@collabora.com>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	"jy0922.shim@samsung.com" <jy0922.shim@samsung.com>,
	"oleksandr_andrushchenko@epam.com"
	<oleksandr_andrushchenko@epam.com>,
	"tomi.valkeinen@ti.com"
	<tomi.valkeinen@ti.com>"linux-tegra@vger.kernel.org" <linux->
Subject: Re: [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro
Date: Tue, 15 Sep 2020 11:39:09 -0700	[thread overview]
Message-ID: <20200915183909.GA2471550@xilinx.com> (raw)
In-Reply-To: <20200915155346.GA26029@pendragon.ideasonboard.com>

Hi Tomas,

Thanks for the patch.

On Tue, Sep 15, 2020 at 08:53:46AM -0700, Laurent Pinchart wrote:
> Hi Thomas,
> 
> Thank you for the patch.
> 
> On Tue, Sep 15, 2020 at 04:59:57PM +0200, Thomas Zimmermann wrote:
> > The xlnx driver uses CMA helpers with default callback functions.
> > Initialize the driver structure with the rsp CMA helper macro. The
> > driver is being converted to use GEM object functions as part of
> > this change.
> > 
> > Two callbacks, .dumb_destroy and .gem_prime_import, were initialized
> > to their default implementations, so they are just kept empty now.
> > 
> > v2:
> > 	* initialize with DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (Laurent)
> > 
> > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 

Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>

Thanks,
-hyun

> > ---
> >  drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 14 +-------------
> >  1 file changed, 1 insertion(+), 13 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
> > index 8e69303aad3f..f3ffc3703a0e 100644
> > --- a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
> > +++ b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
> > @@ -80,19 +80,7 @@ static struct drm_driver zynqmp_dpsub_drm_driver = {
> >  	.driver_features		= DRIVER_MODESET | DRIVER_GEM |
> >  					  DRIVER_ATOMIC,
> >  
> > -	.prime_handle_to_fd		= drm_gem_prime_handle_to_fd,
> > -	.prime_fd_to_handle		= drm_gem_prime_fd_to_handle,
> > -	.gem_prime_export		= drm_gem_prime_export,
> > -	.gem_prime_import		= drm_gem_prime_import,
> > -	.gem_prime_get_sg_table		= drm_gem_cma_prime_get_sg_table,
> > -	.gem_prime_import_sg_table	= drm_gem_cma_prime_import_sg_table,
> > -	.gem_prime_vmap			= drm_gem_cma_prime_vmap,
> > -	.gem_prime_vunmap		= drm_gem_cma_prime_vunmap,
> > -	.gem_prime_mmap			= drm_gem_cma_prime_mmap,
> > -	.gem_free_object_unlocked	= drm_gem_cma_free_object,
> > -	.gem_vm_ops			= &drm_gem_cma_vm_ops,
> > -	.dumb_create			= zynqmp_dpsub_dumb_create,
> > -	.dumb_destroy			= drm_gem_dumb_destroy,
> > +	DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE(zynqmp_dpsub_dumb_create),
> >  
> >  	.fops				= &zynqmp_dpsub_drm_fops,
> >  
> 
> -- 
> Regards,
> 
> Laurent Pinchart
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2020-09-15 18:39 UTC|newest]

Thread overview: 46+ 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 ` [PATCH v2 01/21] drm/amdgpu: Introduce " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-2-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-15 15:05     ` Christian König
     [not found]       ` <835ba167-3576-1af6-5421-552075588796-5C7GfCeVMHo@public.gmane.org>
2020-09-17  7:40         ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 02/21] drm/armada: " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-3-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-15 15:07     ` Russell King - ARM Linux admin
2020-09-15 14:59 ` [PATCH v2 03/21] drm/etnaviv: " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-4-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 11:21     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 05/21] drm/gma500: " Thomas Zimmermann
2020-09-16 11:31   ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 07/21] drm/mediatek: " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-8-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 11:35     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 08/21] drm/msm: Introduce GEM object funcs Thomas Zimmermann
     [not found]   ` <20200915145958.19993-9-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 12:01     ` Daniel Vetter
     [not found] ` <20200915145958.19993-1-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-15 14:59   ` [PATCH v2 04/21] drm/exynos: Introduce GEM object functions Thomas Zimmermann
     [not found]     ` <20200915145958.19993-5-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 10:03       ` Daniel Vetter
     [not found]         ` <20200916100318.GF438822-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2020-09-16 10:36           ` Thomas Zimmermann
     [not found]             ` <fb1f5992-1642-5751-5672-486b89442e1c-l3A5Bk7waGM@public.gmane.org>
2020-09-16 11:24               ` Daniel Vetter
2020-09-15 14:59   ` [PATCH v2 06/21] drm/i915: " Thomas Zimmermann
     [not found]     ` <20200915145958.19993-7-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-15 16:14       ` Tvrtko Ursulin
2020-09-15 14:59   ` [PATCH v2 09/21] drm/nouveau: " Thomas Zimmermann
     [not found]     ` <20200915145958.19993-10-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 12:04       ` Daniel Vetter
2020-09-15 14:59   ` [PATCH v2 19/21] drm/xen: " Thomas Zimmermann
2020-09-15 14:59   ` [PATCH v2 21/21] drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver Thomas Zimmermann
     [not found]     ` <20200915145958.19993-22-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 12:12       ` Daniel Vetter
2020-09-16 17:55     ` Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 10/21] drm/omapdrm: Introduce GEM object functions Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 11/21] drm/pl111: " Thomas Zimmermann
2020-09-15 14:59 ` [PATCH v2 12/21] drm/radeon: " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-13-tzimmermann-l3A5Bk7waGM@public.gmane.org>
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
     [not found]   ` <20200915145958.19993-14-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 12:07     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 14/21] drm/tegra: Introduce GEM object functions Thomas Zimmermann
     [not found]   ` <20200915145958.19993-15-tzimmermann-l3A5Bk7waGM@public.gmane.org>
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 ` [PATCH v2 16/21] drm/vgem: " Thomas Zimmermann
     [not found]   ` <20200915145958.19993-17-tzimmermann-l3A5Bk7waGM@public.gmane.org>
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
     [not found]   ` <20200915145958.19993-18-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-16 12:09     ` Daniel Vetter
2020-09-15 14:59 ` [PATCH v2 18/21] drm/vkms: Introduce GEM object functions Thomas Zimmermann
     [not found]   ` <20200915145958.19993-19-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-09-17 11:31     ` Melissa Wen
2020-09-15 14:59 ` [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro Thomas Zimmermann
2020-09-15 15:53   ` Laurent Pinchart
2020-09-15 18:39     ` Hyun Kwon [this message]
2020-09-15 15:25 ` [PATCH v2 00/21] Convert all remaining drivers to GEM object functions Christian König
     [not found]   ` <b527fde4-b456-6683-4a9e-0f7dcf1525be-5C7GfCeVMHo@public.gmane.org>
2020-09-17  7:05     ` Thomas Zimmermann

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=20200915183909.GA2471550@xilinx.com \
    --to=hyun.kwon@xilinx.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.velikov@collabora.com \
    --cc=hamohammed.sa@gmail.com \
    --cc=jy0922.shim@samsung.com \
    --cc=krzk@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=michals@xilinx.com \
    --cc=nouveau@lists.freedesktop.org \
    --cc=oleksandr_andrushchenko@epam.com \
    --cc=sam@ravnborg.org \
    --cc=thierry.reding@gmail.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=tzimmermann@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox