From: Jani Nikula <jani.nikula@intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
ville.syrjala@linux.intel.com
Cc: vinod.govindapillai@intel.com, ville.syrjala@intel.com,
jani.saarinen@intel.com
Subject: Re: [PATCH 3/8] drm/i915/display: update use_minimal_wm0_only to use intel_display
Date: Tue, 05 Nov 2024 11:08:40 +0200 [thread overview]
Message-ID: <87ses6gi93.fsf@intel.com> (raw)
In-Reply-To: <20241105071600.235338-4-vinod.govindapillai@intel.com>
On Tue, 05 Nov 2024, Vinod Govindapillai <vinod.govindapillai@intel.com> wrote:
> Avoid using struct drm_i915_private reference and use intel_display
> instead. This is in preparation for the rest of the patches in this
> series where hw support for the minimum and interim ddb allocations
> for async flip is added
This is technically correct, but it's self-contained in a single
function. I've preferred two approaches over this:
- Convert entire files (sometimes internally first, with the external
interface changes in a separate patch, depending on how big the patch
becomes).
- Convert single functions which are widely used and have struct
intel_display as parameter, to limit the size of the patch (as opposed
to doing the conversion as part of an entire file change).
I think Ville said he's had a go at converting skl_watermark.c. Ville,
do you have a patch for that?
BR,
Jani.
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> ---
> drivers/gpu/drm/i915/display/skl_watermark.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c
> index 2afc95e7533c..2018abc35c8a 100644
> --- a/drivers/gpu/drm/i915/display/skl_watermark.c
> +++ b/drivers/gpu/drm/i915/display/skl_watermark.c
> @@ -1372,9 +1372,9 @@ static bool
> use_minimal_wm0_only(const struct intel_crtc_state *crtc_state,
> struct intel_plane *plane)
> {
> - struct drm_i915_private *i915 = to_i915(plane->base.dev);
> + struct intel_display *display = to_intel_display(plane);
>
> - return DISPLAY_VER(i915) >= 13 &&
> + return DISPLAY_VER(display) >= 13 &&
> crtc_state->uapi.async_flip &&
> plane->async_flip;
> }
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-11-05 9:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 7:15 [PATCH 0/8] use hw support for min/interim ddb allocation for async flip Vinod Govindapillai
2024-11-05 7:15 ` [PATCH 1/8] drm/i915/display: update intel_enabled_dbuf_slices_mask to use intel_display Vinod Govindapillai
2024-11-05 8:52 ` Jani Nikula
2024-11-05 9:07 ` Govindapillai, Vinod
2024-11-05 7:15 ` [PATCH 2/8] drm/i9i5/display: use intel_display in intel_de_read calls of skl_watermark.c Vinod Govindapillai
2024-11-05 8:58 ` Jani Nikula
2024-11-05 9:03 ` Jani Nikula
2024-11-05 7:15 ` [PATCH 3/8] drm/i915/display: update use_minimal_wm0_only to use intel_display Vinod Govindapillai
2024-11-05 9:08 ` Jani Nikula [this message]
2024-11-06 14:06 ` Ville Syrjälä
2024-11-06 15:49 ` Govindapillai, Vinod
2024-11-05 7:15 ` [PATCH 4/8] drm/i915/display: update use_min_ddb " Vinod Govindapillai
2024-11-05 7:15 ` [PATCH 5/8] drm/i915/display: update skl_plane_wm_equals " Vinod Govindapillai
2024-11-05 9:09 ` Jani Nikula
2024-11-05 7:15 ` [PATCH 6/8] drm/i915/display: update to plane_wm register access function Vinod Govindapillai
2024-11-05 7:15 ` [PATCH 7/8] drm/i915/xe3: Use hw support for min/interim ddb allocations for async flip Vinod Govindapillai
2024-11-06 22:45 ` Ville Syrjälä
2024-11-20 22:26 ` Govindapillai, Vinod
2024-11-05 7:16 ` [PATCH 8/8] drm/i915/debugfs: add dbuf alloc status as part of i915_ddb_info Vinod Govindapillai
2024-11-06 22:46 ` Ville Syrjälä
2024-11-20 22:30 ` Govindapillai, Vinod
2024-11-05 8:17 ` ✗ Fi.CI.CHECKPATCH: warning for use hw support for min/interim ddb allocation for async flip Patchwork
2024-11-05 8:17 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-05 9:11 ` ✗ Fi.CI.BAT: failure " 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=87ses6gi93.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.saarinen@intel.com \
--cc=ville.syrjala@intel.com \
--cc=ville.syrjala@linux.intel.com \
--cc=vinod.govindapillai@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