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>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Xinhui Pan" <Xinhui.Pan@amd.com>
Subject: [PATCH 01/28] drm/amdgpu: Use video aperture helpers
Date: Mon, 30 Sep 2024 15:02:59 +0200 [thread overview]
Message-ID: <20240930130921.689876-2-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: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: Xinhui Pan <Xinhui.Pan@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index fd853dc843e9..128e086b4251 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -25,6 +25,8 @@
* Alex Deucher
* Jerome Glisse
*/
+
+#include <linux/aperture.h>
#include <linux/power_supply.h>
#include <linux/kthread.h>
#include <linux/module.h>
@@ -35,7 +37,6 @@
#include <linux/pci-p2pdma.h>
#include <linux/apple-gmux.h>
-#include <drm/drm_aperture.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h>
@@ -4199,7 +4200,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
return r;
/* Get rid of things like offb */
- r = drm_aperture_remove_conflicting_pci_framebuffers(adev->pdev, &amdgpu_kms_driver);
+ r = aperture_remove_conflicting_pci_devices(adev->pdev, amdgpu_kms_driver.name);
if (r)
return r;
--
2.46.0
next prev 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 ` Thomas Zimmermann [this message]
2024-09-30 13:03 ` [PATCH 02/28] drm/arm/hdlcd: Use video " 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 ` [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=20240930130921.689876-2-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--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 \
/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