From: Liviu Dudau <liviu.dudau@arm.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: javierm@redhat.com, airlied@gmail.com, simona@ffwll.ch,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 02/28] drm/arm/hdlcd: Use video aperture helpers
Date: Wed, 2 Oct 2024 14:48:34 +0100 [thread overview]
Message-ID: <Zv1PMoDuDCfUp9vy@e110455-lin.cambridge.arm.com> (raw)
In-Reply-To: <20240930130921.689876-3-tzimmermann@suse.de>
On Mon, Sep 30, 2024 at 03:03:00PM +0200, Thomas Zimmermann wrote:
> DRM's aperture functions have long been implemented as helpers
> under drivers/video/ for use with fbdev. Avoid the DRM wrappers by
> calling the video functions directly.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Best regards,
Liviu
> ---
> drivers/gpu/drm/arm/hdlcd_drv.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c
> index f5d358f3893b..cd4389809d42 100644
> --- a/drivers/gpu/drm/arm/hdlcd_drv.c
> +++ b/drivers/gpu/drm/arm/hdlcd_drv.c
> @@ -9,6 +9,7 @@
> * ARM HDLCD Driver
> */
>
> +#include <linux/aperture.h>
> #include <linux/module.h>
> #include <linux/spinlock.h>
> #include <linux/clk.h>
> @@ -21,7 +22,6 @@
> #include <linux/platform_device.h>
> #include <linux/pm_runtime.h>
>
> -#include <drm/drm_aperture.h>
> #include <drm/drm_atomic_helper.h>
> #include <drm/drm_client_setup.h>
> #include <drm/drm_crtc.h>
> @@ -287,7 +287,7 @@ static int hdlcd_drm_bind(struct device *dev)
> */
> if (hdlcd_read(hdlcd, HDLCD_REG_COMMAND)) {
> hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0);
> - drm_aperture_remove_framebuffers(&hdlcd_driver);
> + aperture_remove_all_conflicting_devices(hdlcd_driver.name);
> }
>
> drm_mode_config_reset(drm);
> --
> 2.46.0
>
--
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
next prev parent reply other threads:[~2024-10-02 13:48 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 13:02 [PATCH 00/28] drm: Remove DRM aperture helpers Thomas Zimmermann
2024-09-30 13:02 ` [PATCH 01/28] drm/amdgpu: Use video " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 02/28] drm/arm/hdlcd: " Thomas Zimmermann
2024-10-02 13:48 ` Liviu Dudau [this message]
2024-09-30 13:03 ` [PATCH 03/28] drm/armada: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 04/28] drm/ast: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 05/28] drm/hisilicon/hibmc: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 06/28] drm/hyperv-drm: " Thomas Zimmermann
2024-09-30 16:22 ` Deepak Rawat
2024-09-30 13:03 ` [PATCH 07/28] drm/i915: " Thomas Zimmermann
2024-10-02 11:54 ` Jani Nikula
2024-09-30 13:03 ` [PATCH 08/28] drm/loongson: " Thomas Zimmermann
2024-10-04 9:01 ` Sui Jingfeng
2024-09-30 13:03 ` [PATCH 09/28] drm/meson: " Thomas Zimmermann
2024-09-30 13:16 ` Neil Armstrong
2024-09-30 13:03 ` [PATCH 10/28] drm/mgag200: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 11/28] drm/msm: " Thomas Zimmermann
2024-10-19 13:52 ` Dmitry Baryshkov
2024-09-30 13:03 ` [PATCH 12/28] drm/nouveau: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 13/28] drm/ofdrm: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 14/28] drm/qxl: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 15/28] drm/radeon: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 16/28] drm/rockchip: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 17/28] drm/simpledrm: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 18/28] drm/stm: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 19/28] drm/sun4i: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 20/28] drm/tegra: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 21/28] drm/bochs: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 22/28] drm/cirrus: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 23/28] drm/vboxvideo: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 24/28] drm/vc4: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 25/28] drm/virtgpu: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 26/28] drm/vmwgfx: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 27/28] drm/xe: " Thomas Zimmermann
2024-09-30 13:03 ` [PATCH 28/28] drm: Remove DRM " Thomas Zimmermann
2024-09-30 14:06 ` Deucher, Alexander
2024-09-30 13:26 ` [PATCH 00/28] " Javier Martinez Canillas
2024-10-21 12:17 ` (subset) " Dmitry Baryshkov
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=Zv1PMoDuDCfUp9vy@e110455-lin.cambridge.arm.com \
--to=liviu.dudau@arm.com \
--cc=airlied@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=javierm@redhat.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--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