Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369AbdHKOY0 (ORCPT ); Fri, 11 Aug 2017 10:24:26 -0400 Received: from mail-bn3nam01on0060.outbound.protection.outlook.com ([104.47.33.60]:56128 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752763AbdHKOYX (ORCPT ); Fri, 11 Aug 2017 10:24:23 -0400 From: "Deucher, Alexander" To: "'Cihangir Akturk'" CC: "devel@driverdev.osuosl.org" , "linux-arm-msm@vger.kernel.org" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "etnaviv@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "daniel@ffwll.ch" , "nouveau@lists.freedesktop.org" , "linux-tegra@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "freedreno@lists.freedesktop.org" Subject: RE: [PATCH v3 00/28] DRM API Conversions Thread-Topic: [PATCH v3 00/28] DRM API Conversions Thread-Index: AQHTEq1Ck/dgzRyj00mCsT/k5nAClKJ/NVYQ Date: Fri, 11 Aug 2017 14:24:19 +0000 Message-ID: References: <1502454794-28558-1-git-send-email-cakturk@gmail.com> In-Reply-To: <1502454794-28558-1-git-send-email-cakturk@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Deucher@amd.com; x-originating-ip: [165.204.55.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR12MB1650;20:jIg+xr4S5aawF1CYzrzPRDLpMCMDPWOuqWK8A4pxiDuR46SZ3hi9P2RuS/HI6hSGEaOc4D1EYkItBq+mg+J0Kt1QJgWtn1bRKLBjAMiKFu3EH4sQOKDzJwULaVLyvmoM0cbFMo//88d6FZe7aAVwbiH8dU9FdoOmAMjT8Yllp9mfJIbZyENISJyBpXuKdkG6eMEpqPEZjRnnTXGe5nrtQ0ax/vpbfpamFFRXnG7LiJcabZOpt0qOfQoxZn2faCix x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 016b42d7-52e0-4a8d-9b03-08d4e0c4a77f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR12MB1650; x-ms-traffictypediagnostic: BN6PR12MB1650: x-exchange-antispam-report-test: UriScan:(9452136761055)(217544274631240); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR12MB1650;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR12MB1650; x-forefront-prvs: 03965EFC76 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(199003)(377454003)(13464003)(189002)(106356001)(2906002)(478600001)(1411001)(3660700001)(189998001)(54906002)(105586002)(7416002)(6306002)(66066001)(74316002)(7736002)(3846002)(6116002)(102836003)(575784001)(110136004)(86362001)(9686003)(966005)(6246003)(97736004)(53936002)(229853002)(55016002)(6916009)(2950100002)(68736007)(3280700002)(99286003)(25786009)(6506006)(8676002)(50986999)(81166006)(5660300001)(8936002)(76176999)(54356999)(14454004)(101416001)(81156014)(7696004)(72206003)(2900100001)(6436002)(77096006)(33656002)(39060400002)(4326008)(305945005)(217873001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1650;H:BN6PR12MB1652.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2017 14:24:19.2420 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1650 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v7BEOV73011966 Content-Length: 11575 Lines: 226 > -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf > Of Cihangir Akturk > Sent: Friday, August 11, 2017 8:33 AM > Cc: devel@driverdev.osuosl.org; linux-arm-msm@vger.kernel.org; intel- > gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; dri- > devel@lists.freedesktop.org; etnaviv@lists.freedesktop.org; Cihangir Akturk; > amd-gfx@lists.freedesktop.org; daniel@ffwll.ch; > nouveau@lists.freedesktop.org; linux-tegra@vger.kernel.org; > virtualization@lists.linux-foundation.org; freedreno@lists.freedesktop.org > Subject: [PATCH v3 00/28] DRM API Conversions > > Changes since v2: > > - Patch series is based on *drm-misc-next* as suggested by Sean Paul. > > - Dropped patch 05 (drm/atmel-hlcdc) and patch 25 (drm/vc4) from v2, > since they were already pulled in the drm-misc-next > > Changes since v1: > > - This time patches were generated with coccinelle instead of my own > script, as suggested by Daniel Vetter. > > - Fixed the typo in commit messages. s/adn/and > FWIW, I already picked up v1 of these patches for radeon and amdgpu. Alex > Note: I've included r-b, a-b tags, as these patches are identical to v1 > except for the file: drivers/gpu/drm/i915/i915_gem_object.h > > This patch set replaces the occurrences of drm_*_reference() and > drm_*_unreference() with the new drm_*_get() and drm_*_put() > functions. > All patches in the series do the same thing, converting to the new APIs. > I created patches per DRM driver as suggested by Daniel Vetter. > > This patch set was generated by scripts/coccinelle/api/drm-get-put.cocci > > Previous thread can be reached at: > https://marc.info/?l=dri-devel&m=150178288816047 > > Background: > > In the kernel, reference counting APIs use *_get(), *_put() style naming > to reference-count the objects. But DRM subsystem uses a different > naming for them such as *_reference(), *_unreference() which is > inconsistent with the other reference counting APIs in the kernel. To > solve this consistency issue, Thierry Reding introduced a couple of > functions and compatibility aliases in the following commits for them. > > commit 020a218f95bd3ceff7dd1022ff7ebc0497bc7bf9 > Author: Thierry Reding > Date: Tue Feb 28 15:46:38 2017 +0100 > > drm: Introduce drm_mode_object_{get,put}() > > commit ad09360750afa18a0a0ce0253d6ea6033abc22e7 > Author: Thierry Reding > Date: Tue Feb 28 15:46:39 2017 +0100 > > drm: Introduce drm_connector_{get,put}() > > commit a4a69da06bc11a937a6e417938b1bb698ee1fa46 > Author: Thierry Reding > Date: Tue Feb 28 15:46:40 2017 +0100 > > drm: Introduce drm_framebuffer_{get,put}() > > commit e6b62714e87c8811d5564b6a0738dcde63a51774 > Author: Thierry Reding > Date: Tue Feb 28 15:46:41 2017 +0100 > > drm: Introduce drm_gem_object_{get,put}() > > commit 6472e5090be7c78749a3c279b4faae87ab835c40 > Author: Thierry Reding > Date: Tue Feb 28 15:46:42 2017 +0100 > > drm: Introduce drm_property_blob_{get,put}() > > Cihangir Akturk (28): > drm/amdgpu: switch to drm_*_get(), drm_*_put() helpers > drm: mali-dp: switch to drm_*_get(), drm_*_put() helpers > drm/armada: switch to drm_*_get(), drm_*_put() helpers > drm/ast: switch to drm_*_get(), drm_*_put() helpers > drm/bochs: switch to drm_*_get(), drm_*_put() helpers > drm/cirrus: switch to drm_*_get(), drm_*_put() helpers > drm/etnaviv: switch to drm_*_get(), drm_*_put() helpers > drm/exynos: switch to drm_*_get(), drm_*_put() helpers > drm/gma500: switch to drm_*_get(), drm_*_put() helpers > drm/hisilicon: switch to drm_*_get(), drm_*_put() helpers > drm/i915: switch to drm_*_get(), drm_*_put() helpers > drm/imx: switch to drm_*_get(), drm_*_put() helpers > drm/mediatek: switch to drm_*_get(), drm_*_put() helpers > drm/mgag200: switch to drm_*_get(), drm_*_put() helpers > drm/msm: switch to drm_*_get(), drm_*_put() helpers > drm/nouveau: switch to drm_*_get(), drm_*_put() helpers > drm/omapdrm: switch to drm_*_get(), drm_*_put() helpers > drm/qxl: switch to drm_*_get(), drm_*_put() helpers > drm/radeon: switch to drm_*_get(), drm_*_put() helpers > drm/rockchip: switch to drm_*_get(), drm_*_put() helpers > drm/tegra: switch to drm_*_get(), drm_*_put() helpers > drm/tilcdc: switch to drm_*_get(), drm_*_put() helpers > drm/udl: switch to drm_*_get(), drm_*_put() helpers > drm/vc4: switch to drm_*_get(), drm_*_put() helpers > drm/vgem: switch to drm_*_get(), drm_*_put() helpers > drm/virtio: switch to drm_*_get(), drm_*_put() helpers > drm/vmwgfx: switch to drm_*_get(), drm_*_put() helpers > drm: vboxvideo: switch to drm_*_get(), drm_*_put() helpers > > drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 ++--- > drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 4 +-- > drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 22 ++++++++--------- > drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 6 ++--- > drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 6 ++--- > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 6 ++--- > drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 6 ++--- > drivers/gpu/drm/arm/malidp_planes.c | 2 +- > drivers/gpu/drm/armada/armada_crtc.c | 22 ++++++++--------- > drivers/gpu/drm/armada/armada_drv.c | 2 +- > drivers/gpu/drm/armada/armada_fb.c | 8 +++--- > drivers/gpu/drm/armada/armada_fbdev.c | 6 ++--- > drivers/gpu/drm/armada/armada_gem.c | 14 +++++------ > drivers/gpu/drm/armada/armada_overlay.c | 4 +-- > drivers/gpu/drm/ast/ast_fb.c | 2 +- > drivers/gpu/drm/ast/ast_main.c | 10 ++++---- > drivers/gpu/drm/ast/ast_mode.c | 6 ++--- > drivers/gpu/drm/bochs/bochs_fbdev.c | 2 +- > drivers/gpu/drm/bochs/bochs_mm.c | 10 ++++---- > drivers/gpu/drm/cirrus/cirrus_fbdev.c | 2 +- > drivers/gpu/drm/cirrus/cirrus_main.c | 10 ++++---- > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 8 +++--- > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 20 +++++++-------- > drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 2 +- > drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 4 +-- > drivers/gpu/drm/exynos/exynos_drm_fb.c | 4 +-- > drivers/gpu/drm/exynos/exynos_drm_gem.c | 12 ++++----- > drivers/gpu/drm/exynos/exynos_drm_plane.c | 2 +- > drivers/gpu/drm/gma500/framebuffer.c | 4 +-- > drivers/gpu/drm/gma500/gem.c | 4 +-- > drivers/gpu/drm/gma500/gma_display.c | 6 ++--- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c | 4 +-- > drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c | 8 +++--- > drivers/gpu/drm/i915/i915_gem_object.h | 4 +-- > drivers/gpu/drm/i915/intel_display.c | 24 +++++++++--------- > drivers/gpu/drm/i915/intel_dp_mst.c | 2 +- > drivers/gpu/drm/i915/intel_fbdev.c | 4 +-- > drivers/gpu/drm/imx/ipuv3-crtc.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_fb.c | 4 +-- > drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- > drivers/gpu/drm/mgag200/mgag200_cursor.c | 2 +- > drivers/gpu/drm/mgag200/mgag200_fb.c | 4 +-- > drivers/gpu/drm/mgag200/mgag200_main.c | 10 ++++---- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 10 ++++---- > drivers/gpu/drm/msm/adreno/a5xx_power.c | 2 +- > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 +- > drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 6 ++--- > drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 2 +- > drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 2 +- > drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 4 +-- > drivers/gpu/drm/msm/msm_drv.c | 8 +++--- > drivers/gpu/drm/msm/msm_fb.c | 4 +-- > drivers/gpu/drm/msm/msm_fbdev.c | 2 +- > drivers/gpu/drm/msm/msm_gem.c | 8 +++--- > drivers/gpu/drm/msm/msm_gem_submit.c | 4 +-- > drivers/gpu/drm/msm/msm_gpu.c | 4 +-- > drivers/gpu/drm/msm/msm_ringbuffer.c | 2 +- > drivers/gpu/drm/nouveau/dispnv04/crtc.c | 2 +- > drivers/gpu/drm/nouveau/nouveau_abi16.c | 2 +- > drivers/gpu/drm/nouveau/nouveau_display.c | 8 +++--- > drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 +- > drivers/gpu/drm/nouveau/nouveau_gem.c | 14 +++++------ > drivers/gpu/drm/nouveau/nv50_display.c | 2 +- > drivers/gpu/drm/omapdrm/omap_drv.c | 2 +- > drivers/gpu/drm/omapdrm/omap_fb.c | 4 +-- > drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +- > drivers/gpu/drm/omapdrm/omap_gem.c | 4 +-- > drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 2 +- > drivers/gpu/drm/qxl/qxl_display.c | 4 +-- > drivers/gpu/drm/qxl/qxl_dumb.c | 2 +- > drivers/gpu/drm/qxl/qxl_fb.c | 6 ++--- > drivers/gpu/drm/qxl/qxl_gem.c | 2 +- > drivers/gpu/drm/qxl/qxl_ioctl.c | 4 +-- > drivers/gpu/drm/qxl/qxl_object.c | 6 ++--- > drivers/gpu/drm/radeon/radeon_cs.c | 2 +- > drivers/gpu/drm/radeon/radeon_cursor.c | 6 ++--- > drivers/gpu/drm/radeon/radeon_display.c | 12 ++++----- > drivers/gpu/drm/radeon/radeon_fb.c | 4 +-- > drivers/gpu/drm/radeon/radeon_gem.c | 30 +++++++++++------------ > drivers/gpu/drm/radeon/radeon_object.c | 2 +- > drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 6 ++--- > drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 2 +- > drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- > drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 +-- > drivers/gpu/drm/tegra/drm.c | 12 ++++----- > drivers/gpu/drm/tegra/fb.c | 8 +++--- > drivers/gpu/drm/tegra/gem.c | 10 ++++---- > drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 6 ++--- > drivers/gpu/drm/udl/udl_fb.c | 6 ++--- > drivers/gpu/drm/udl/udl_gem.c | 4 +-- > drivers/gpu/drm/vc4/vc4_bo.c | 2 +- > drivers/gpu/drm/vgem/vgem_drv.c | 4 +-- > drivers/gpu/drm/vgem/vgem_fence.c | 2 +- > drivers/gpu/drm/virtio/virtgpu_display.c | 4 +-- > drivers/gpu/drm/virtio/virtgpu_gem.c | 4 +-- > drivers/gpu/drm/virtio/virtgpu_ioctl.c | 14 +++++------ > drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 2 +- > drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 4 +-- > drivers/staging/vboxvideo/vbox_fb.c | 2 +- > drivers/staging/vboxvideo/vbox_main.c | 8 +++--- > drivers/staging/vboxvideo/vbox_mode.c | 2 +- > 103 files changed, 294 insertions(+), 294 deletions(-) > > -- > 2.7.4 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx