From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 09/10] drm/{i915,xe}/fbdev: pass struct drm_device to intel_fbdev_fb_fill_info()
Date: Thu, 18 Sep 2025 20:45:27 +0300 [thread overview]
Message-ID: <aMxFN1G6JTX-RUdU@intel.com> (raw)
In-Reply-To: <1f633154f5f3106f55d7525a711bf347f5635ea7.1758184771.git.jani.nikula@intel.com>
On Thu, Sep 18, 2025 at 11:40:59AM +0300, Jani Nikula wrote:
> This code is in fact driver core rather than display specific. Pass
> struct drm_device instead of struct intel_display.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +-
> drivers/gpu/drm/i915/display/intel_fbdev_fb.c | 6 +++---
> drivers/gpu/drm/i915/display/intel_fbdev_fb.h | 3 +--
> drivers/gpu/drm/xe/display/intel_fbdev_fb.c | 6 ++----
> 4 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c
> index 4bc9a053ca40..3fbdf75415cc 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbdev.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c
> @@ -332,7 +332,7 @@ int intel_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
>
> obj = intel_fb_bo(&fb->base);
>
> - ret = intel_fbdev_fb_fill_info(display, info, obj, vma);
> + ret = intel_fbdev_fb_fill_info(display->drm, info, obj, vma);
> if (ret)
> goto out_unpin;
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fbdev_fb.c b/drivers/gpu/drm/i915/display/intel_fbdev_fb.c
> index c802a4b2bfc7..8af409bff0f0 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbdev_fb.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbdev_fb.c
> @@ -50,10 +50,10 @@ void intel_fbdev_fb_bo_destroy(struct drm_gem_object *obj)
> drm_gem_object_put(obj);
> }
>
> -int intel_fbdev_fb_fill_info(struct intel_display *display, struct fb_info *info,
> +int intel_fbdev_fb_fill_info(struct drm_device *drm, struct fb_info *info,
> struct drm_gem_object *_obj, struct i915_vma *vma)
> {
> - struct drm_i915_private *i915 = to_i915(display->drm);
> + struct drm_i915_private *i915 = to_i915(drm);
> struct drm_i915_gem_object *obj = to_intel_bo(_obj);
> struct i915_gem_ww_ctx ww;
> void __iomem *vaddr;
> @@ -85,7 +85,7 @@ int intel_fbdev_fb_fill_info(struct intel_display *display, struct fb_info *info
>
> vaddr = i915_vma_pin_iomap(vma);
> if (IS_ERR(vaddr)) {
> - drm_err(display->drm,
> + drm_err(drm,
> "Failed to remap framebuffer into virtual memory (%pe)\n", vaddr);
> ret = PTR_ERR(vaddr);
> continue;
> diff --git a/drivers/gpu/drm/i915/display/intel_fbdev_fb.h b/drivers/gpu/drm/i915/display/intel_fbdev_fb.h
> index 3b7b59d664b5..1fa44ed28543 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbdev_fb.h
> +++ b/drivers/gpu/drm/i915/display/intel_fbdev_fb.h
> @@ -11,11 +11,10 @@ struct drm_gem_object;
> struct drm_mode_fb_cmd2;
> struct fb_info;
> struct i915_vma;
> -struct intel_display;
>
> struct drm_gem_object *intel_fbdev_fb_bo_create(struct drm_device *drm, int size);
> void intel_fbdev_fb_bo_destroy(struct drm_gem_object *obj);
> -int intel_fbdev_fb_fill_info(struct intel_display *display, struct fb_info *info,
> +int intel_fbdev_fb_fill_info(struct drm_device *drm, struct fb_info *info,
> struct drm_gem_object *obj, struct i915_vma *vma);
>
> #endif
> diff --git a/drivers/gpu/drm/xe/display/intel_fbdev_fb.c b/drivers/gpu/drm/xe/display/intel_fbdev_fb.c
> index 37681503edb1..35a5b07eeba4 100644
> --- a/drivers/gpu/drm/xe/display/intel_fbdev_fb.c
> +++ b/drivers/gpu/drm/xe/display/intel_fbdev_fb.c
> @@ -5,8 +5,6 @@
>
> #include <linux/fb.h>
>
> -#include "intel_display_core.h"
> -#include "intel_display_types.h"
> #include "intel_fbdev_fb.h"
> #include "xe_bo.h"
> #include "xe_ttm_stolen_mgr.h"
> @@ -53,11 +51,11 @@ void intel_fbdev_fb_bo_destroy(struct drm_gem_object *obj)
> xe_bo_unpin_map_no_vm(gem_to_xe_bo(obj));
> }
>
> -int intel_fbdev_fb_fill_info(struct intel_display *display, struct fb_info *info,
> +int intel_fbdev_fb_fill_info(struct drm_device *drm, struct fb_info *info,
> struct drm_gem_object *_obj, struct i915_vma *vma)
> {
> struct xe_bo *obj = gem_to_xe_bo(_obj);
> - struct pci_dev *pdev = to_pci_dev(display->drm->dev);
> + struct pci_dev *pdev = to_pci_dev(drm->dev);
>
> if (!(obj->flags & XE_BO_FLAG_SYSTEM)) {
> if (obj->flags & XE_BO_FLAG_STOLEN)
> --
> 2.47.3
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-09-18 17:45 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 8:40 [PATCH v2 00/10] drm/{i915,xe}/fbdev: refactor Jani Nikula
2025-09-18 8:40 ` [PATCH v2 01/10] drm/xe/fbdev: use the same 64-byte stride alignment as i915 Jani Nikula
2025-09-18 17:38 ` Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 02/10] drm/i915/fbdev: make intel_framebuffer_create() error return handling explicit Jani Nikula
2025-09-18 17:38 ` Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 03/10] drm/{i915, xe}/fbdev: pass struct drm_device to intel_fbdev_fb_alloc() Jani Nikula
2025-09-18 17:39 ` [PATCH v2 03/10] drm/{i915,xe}/fbdev: " Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 04/10] drm/{i915, xe}/fbdev: deduplicate struct drm_mode_fb_cmd2 init Jani Nikula
2025-09-18 17:40 ` [PATCH v2 04/10] drm/{i915,xe}/fbdev: " Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 05/10] drm/i915/fbdev: abstract bo creation Jani Nikula
2025-09-18 17:42 ` Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 06/10] drm/xe/fbdev: " Jani Nikula
2025-09-18 17:42 ` Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 07/10] drm/{i915, xe}/fbdev: add intel_fbdev_fb_bo_destroy() Jani Nikula
2025-09-18 17:43 ` [PATCH v2 07/10] drm/{i915,xe}/fbdev: " Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 08/10] drm/{i915,xe}/fbdev: deduplicate fbdev creation Jani Nikula
2025-09-18 17:44 ` Ville Syrjälä
2025-09-18 8:40 ` [PATCH v2 09/10] drm/{i915, xe}/fbdev: pass struct drm_device to intel_fbdev_fb_fill_info() Jani Nikula
2025-09-18 17:45 ` Ville Syrjälä [this message]
2025-09-18 8:41 ` [PATCH v2 10/10] drm/i915/fbdev: drop dependency on display in i915 specific code Jani Nikula
2025-09-18 17:50 ` Ville Syrjälä
2025-09-19 7:00 ` Jani Nikula
2025-09-18 8:59 ` ✓ CI.KUnit: success for drm/{i915,xe}/fbdev: refactor (rev2) Patchwork
2025-09-18 9:33 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-18 15:54 ` ✓ Xe.CI.Full: " Patchwork
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=aMxFN1G6JTX-RUdU@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/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