From: Jani Nikula <jani.nikula@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
dri-devel@lists.freedesktop.org,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Ville Syrjala <ville.syrjala@linux.intel.com>,
Simona Vetter <simona.vetter@ffwll.ch>
Subject: Re: [PATCH] drm/{i915,xe}: driver agnostic drm to display pointer chase
Date: Fri, 26 Sep 2025 18:11:41 +0300 [thread overview]
Message-ID: <20562bfd487f43278df768822cc44317f0ca6f79@intel.com> (raw)
In-Reply-To: <vxxrpnasd5qfoof4coi3rw4pu3pbnau42u3lywc5dd52nma5sx@r5coda25idn4>
On Fri, 26 Sep 2025, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Fri, Sep 26, 2025 at 02:10:32PM +0300, Jani Nikula wrote:
>>diff --git a/drivers/gpu/drm/i915/display/intel_display_conversion.c b/drivers/gpu/drm/i915/display/intel_display_conversion.c
>>index d56065f22655..9a47aa38cf82 100644
>>--- a/drivers/gpu/drm/i915/display/intel_display_conversion.c
>>+++ b/drivers/gpu/drm/i915/display/intel_display_conversion.c
>>@@ -1,15 +1,21 @@
>> // SPDX-License-Identifier: MIT
>> /* Copyright © 2024 Intel Corporation */
>>
>>-#include "i915_drv.h"
>>-#include "intel_display_conversion.h"
>>+#include <drm/intel/display_member.h>
>>
>>-static struct intel_display *__i915_to_display(struct drm_i915_private *i915)
>>-{
>>- return i915->display;
>>-}
>>+#include "intel_display_conversion.h"
>>
>> struct intel_display *__drm_to_display(struct drm_device *drm)
>
> it seems like this could be inline in drm/intel/display_member.h
>
> Although it doesn't seem we have many calls to convert from drm to
> intel_display, so lgtm as is.
We actually do, lots and lots, via to_intel_display().
I thought about inlining, but decided to leave that for follow-up.
> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Thanks,
Jani.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-09-26 15:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-26 11:10 [PATCH] drm/{i915,xe}: driver agnostic drm to display pointer chase Jani Nikula
2025-09-26 11:16 ` ✗ CI.checkpatch: warning for " Patchwork
2025-09-26 11:17 ` ✓ CI.KUnit: success " Patchwork
2025-09-26 11:54 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-26 13:34 ` [PATCH] " Lucas De Marchi
2025-09-26 15:11 ` Jani Nikula [this message]
2025-09-26 15:22 ` Lucas De Marchi
2025-09-29 10:07 ` Jani Nikula
2025-09-26 17:04 ` ✗ Xe.CI.Full: failure for " 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=20562bfd487f43278df768822cc44317f0ca6f79@intel.com \
--to=jani.nikula@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=simona.vetter@ffwll.ch \
--cc=ville.syrjala@linux.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