AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, airlied@gmail.com, simona@ffwll.ch,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Sui Jingfeng <suijingfeng@loongson.cn>
Subject: [PATCH 08/28] drm/loongson: Use video aperture helpers
Date: Mon, 30 Sep 2024 15:03:06 +0200	[thread overview]
Message-ID: <20240930130921.689876-9-tzimmermann@suse.de> (raw)
In-Reply-To: <20240930130921.689876-1-tzimmermann@suse.de>

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: Sui Jingfeng <suijingfeng@loongson.cn>
---
 drivers/gpu/drm/loongson/lsdc_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/loongson/lsdc_drv.c b/drivers/gpu/drm/loongson/lsdc_drv.c
index a19dce35c839..b350bdcf1645 100644
--- a/drivers/gpu/drm/loongson/lsdc_drv.c
+++ b/drivers/gpu/drm/loongson/lsdc_drv.c
@@ -3,10 +3,10 @@
  * Copyright (C) 2023 Loongson Technology Corporation Limited
  */
 
+#include <linux/aperture.h>
 #include <linux/pci.h>
 #include <linux/vgaarb.h>
 
-#include <drm/drm_aperture.h>
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_client_setup.h>
@@ -215,9 +215,9 @@ lsdc_create_device(struct pci_dev *pdev,
 		return ERR_PTR(ret);
 	}
 
-	ret = drm_aperture_remove_conflicting_framebuffers(ldev->vram_base,
-							   ldev->vram_size,
-							   driver);
+	ret = aperture_remove_conflicting_devices(ldev->vram_base,
+						  ldev->vram_size,
+						  driver->name);
 	if (ret) {
 		drm_err(ddev, "Remove firmware framebuffers failed: %d\n", ret);
 		return ERR_PTR(ret);
-- 
2.46.0


  parent reply	other threads:[~2024-09-30 13:09 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
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 ` Thomas Zimmermann [this message]
2024-10-04  9:01   ` [PATCH 08/28] drm/loongson: " 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=20240930130921.689876-9-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --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=suijingfeng@loongson.cn \
    /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