[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro
- To: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
- From: Hyun Kwon <hyun.kwon@xxxxxxxxxx>
- Date: Tue, 15 Sep 2020 11:39:09 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4nIO+lhNFgioRkRyGhdB1I3Uj8gi/oxj23FCH5WSe8E=; b=R8H8SkAXciLhrprBnQK3SHbWsJcLCXqoT+g20E1/ybgGhxqZtPiDOGOmY/LrTSxcpGB73tZW5v1PNPMcgwEzSZMJdunPyGyb+IohPUaPR8BO2oj2GZkHVfq647GrY3z9KniynTif8AVTOztHi1kEtPjQOLSScdWMVRNUP4xQLbCzGB+Kfj9GTwzzxOTbf1K+UAkqii38ibdb+kBBQr49WLJLJh8RjphzYqjDNYKUdZZhOGHIvovYgMzNgpj8qUJI3LwCXulrTIIc9F1n4FS+99hApKJrfmt6b9+AGfaSps5cJLpvUeMu5jyKWPcKjQLuB7YD69qLPjzISQqhD+zOhA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RArpkZ/l/P0gBhyiVnFzlnK1+ltpu4x88FRuCdWtNwWkp98mExU2EARfU6VG5otrPM9YMztHQ/zNIMyLWyYeDSehv+5ddUu5QkXHHrPXqkcHNzmYi/ERU4FdoINvsO0vS4BwlbEdx7+wtX0wfgwsnyORrfNfHGuXiyS1GCBCOdPHP7YfyO9HbWENIeHr4NEhKRcC1qdLa1GgV9F9xiTcV35GTG9B98p17FI7Dcmdoy5O8kN2yk4QEPzW+msX7k0AmzfXVF4ub8AMUSXd/UHcD3pRDMGcul4U5uWl9czAi4Uclw9huD+9RW5oEjZtfYzlCedo3XonK4F5T9S6WNrTwA==
- Cc: Thomas Zimmermann <tzimmermann@xxxxxxx>, "hamohammed.sa@xxxxxxxxx" <hamohammed.sa@xxxxxxxxx>, "airlied@xxxxxxxx" <airlied@xxxxxxxx>, "nouveau@xxxxxxxxxxxxxxxxxxxxx" <nouveau@xxxxxxxxxxxxxxxxxxxxx>, "dri-devel@xxxxxxxxxxxxxxxxxxxxx" <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, Michal Simek <michals@xxxxxxxxxx>, "thierry.reding@xxxxxxxxx" <thierry.reding@xxxxxxxxx>, "krzk@xxxxxxxxxx" <krzk@xxxxxxxxxx>, "sam@xxxxxxxxxxxx" <sam@xxxxxxxxxxxx>, "emil.velikov@xxxxxxxxxxxxx" <emil.velikov@xxxxxxxxxxxxx>, "linux-samsung-soc@xxxxxxxxxxxxxxx" <linux-samsung-soc@xxxxxxxxxxxxxxx>, "jy0922.shim@xxxxxxxxxxx" <jy0922.shim@xxxxxxxxxxx>, "oleksandr_andrushchenko@xxxxxxxx" <oleksandr_andrushchenko@xxxxxxxx>, "tomi.valkeinen@xxxxxx" <tomi.valkeinen@xxxxxx>, "linux-tegra@xxxxxxxxxxxxxxx" <linux-tegra@xxxxxxxxxxxxxxx>, "linux@xxxxxxxxxxxxxxx" <linux@xxxxxxxxxxxxxxx>, "jonathanh@xxxxxxxxxx" <jonathanh@xxxxxxxxxx>, "linux-rockchip@xxxxxxxxxxxxxxxxxxx" <linux-rockchip@xxxxxxxxxxxxxxxxxxx>, "kgene@xxxxxxxxxx" <kgene@xxxxxxxxxx>, "bskeggs@xxxxxxxxxx" <bskeggs@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "intel-gfx@xxxxxxxxxxxxxxxxxxxxx" <intel-gfx@xxxxxxxxxxxxxxxxxxxxx>, "matthew.auld@xxxxxxxxx" <matthew.auld@xxxxxxxxx>, "chunkuang.hu@xxxxxxxxxx" <chunkuang.hu@xxxxxxxxxx>, "andi.shyti@xxxxxxxxx" <andi.shyti@xxxxxxxxx>, "linux-arm-msm@xxxxxxxxxxxxxxx" <linux-arm-msm@xxxxxxxxxxxxxxx>, "marek.olsak@xxxxxxx" <marek.olsak@xxxxxxx>, "tianci.yin@xxxxxxx" <tianci.yin@xxxxxxx>, "etnaviv@xxxxxxxxxxxxxxxxxxxxx" <etnaviv@xxxxxxxxxxxxxxxxxxxxx>, "hdegoede@xxxxxxxxxx" <hdegoede@xxxxxxxxxx>, "linux-mediatek@xxxxxxxxxxxxxxxxxxx" <linux-mediatek@xxxxxxxxxxxxxxxxxxx>, "rodrigo.vivi@xxxxxxxxx" <rodrigo.vivi@xxxxxxxxx>, "matthias.bgg@xxxxxxxxx" <matthias.bgg@xxxxxxxxx>, "evan.quan@xxxxxxx" <evan.quan@xxxxxxx>, "sean@xxxxxxxxxx" <sean@xxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, "tvrtko.ursulin@xxxxxxxxxxxxxxx" <tvrtko.ursulin@xxxxxxxxxxxxxxx>, "amd-gfx@xxxxxxxxxxxxxxxxxxxxx" <amd-gfx@xxxxxxxxxxxxxxxxxxxxx>, "chris@xxxxxxxxxxxxxxxxxx" <chris@xxxxxxxxxxxxxxxxxx>, "rodrigosiqueiramelo@xxxxxxxxx" <rodrigosiqueiramelo@xxxxxxxxx>, "aaron.liu@xxxxxxx" <aaron.liu@xxxxxxx>, "Felix.Kuehling@xxxxxxx" <Felix.Kuehling@xxxxxxx>, "xinhui.pan@xxxxxxx" <xinhui.pan@xxxxxxx>, "sw0312.kim@xxxxxxxxxxx" <sw0312.kim@xxxxxxxxxxx>, "hjc@xxxxxxxxxxxxxx" <hjc@xxxxxxxxxxxxxx>, "miaoqinglang@xxxxxxxxxx" <miaoqinglang@xxxxxxxxxx>, "kyungmin.park@xxxxxxxxxxx" <kyungmin.park@xxxxxxxxxxx>, "nirmoy.das@xxxxxxx" <nirmoy.das@xxxxxxx>, "alexander.deucher@xxxxxxx" <alexander.deucher@xxxxxxx>, "Hawking.Zhang@xxxxxxx" <Hawking.Zhang@xxxxxxx>, "freedreno@xxxxxxxxxxxxxxxxxxxxx" <freedreno@xxxxxxxxxxxxxxxxxxxxx>, "christian.koenig@xxxxxxx" <christian.koenig@xxxxxxx>
- Delivery-date: Wed, 16 Sep 2020 04:13:00 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxx>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
>
Reviewed-by: Hyun Kwon <hyun.kwon@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
|