From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 2/3] drm/i915: Reverse the scanline_offset if ladder
Date: Thu, 20 Feb 2025 10:02:25 +0000 [thread overview]
Message-ID: <056ff2f0877c17a92af4350d8aabf819df97fa4c.camel@intel.com> (raw)
In-Reply-To: <20250207215406.19348-3-ville.syrjala@linux.intel.com>
On Fri, 2025-02-07 at 23:54 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Make intel_crtc_scanline_offset() a bit less confusing by
> fully reordering the if ladder to use the new->old platform
> order.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_vblank.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vblank.c
> b/drivers/gpu/drm/i915/display/intel_vblank.c
> index 7b240ce681a0..dd928d890e3a 100644
> --- a/drivers/gpu/drm/i915/display/intel_vblank.c
> +++ b/drivers/gpu/drm/i915/display/intel_vblank.c
> @@ -224,12 +224,12 @@ int intel_crtc_scanline_offset(const struct
> intel_crtc_state *crtc_state)
> */
> if (DISPLAY_VER(display) >= 20 || display-
> >platform.battlemage)
> return 1;
> - else if (DISPLAY_VER(display) == 2)
> - return -1;
> else if (HAS_DDI(display) && intel_crtc_has_type(crtc_state,
> INTEL_OUTPUT_HDMI))
> return 2;
> - else
> + else if (DISPLAY_VER(display) >= 3)
> return 1;
> + else
> + return -1;
> }
>
> /*
next prev parent reply other threads:[~2025-02-20 10:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 21:54 [PATCH 0/3] drm/i915: Fix scanline_offset for LNL+/BMG+ Ville Syrjala
2025-02-07 21:54 ` [PATCH 1/3] drm/i915: Fix scanline_offset for LNL+ and BMG+ Ville Syrjala
2025-02-20 9:30 ` Hogander, Jouni
2025-03-20 11:23 ` Shankar, Uma
2025-02-07 21:54 ` [PATCH 2/3] drm/i915: Reverse the scanline_offset if ladder Ville Syrjala
2025-02-20 10:02 ` Hogander, Jouni [this message]
2025-02-07 21:54 ` [PATCH 3/3] drm/i915: Replace the HAS_DDI() in intel_crtc_scanline_offset() with specific platform checks Ville Syrjala
2025-02-20 9:58 ` Hogander, Jouni
2025-02-07 22:36 ` ✓ CI.Patch_applied: success for drm/i915: Fix scanline_offset for LNL+/BMG+ Patchwork
2025-02-07 22:36 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-07 22:37 ` ✓ CI.KUnit: success " Patchwork
2025-02-07 22:41 ` [PATCH 0/3] " Lucas De Marchi
2025-02-10 16:05 ` Gustavo Sousa
2025-02-10 16:16 ` Ville Syrjälä
2025-02-10 18:10 ` Lucas De Marchi
2025-02-10 20:02 ` Ville Syrjälä
2025-02-10 21:49 ` Matt Roper
2025-02-07 22:53 ` ✓ CI.Build: success for " Patchwork
2025-02-07 22:56 ` ✓ CI.Hooks: " Patchwork
2025-02-07 22:57 ` ✓ CI.checksparse: " Patchwork
2025-02-07 23:17 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-08 14:18 ` ✗ Xe.CI.Full: 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=056ff2f0877c17a92af4350d8aabf819df97fa4c.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--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