From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 3/3] drm/i915/cx0: convert to struct intel_display based platform checks
Date: Tue, 4 Feb 2025 18:06:34 -0500 [thread overview]
Message-ID: <Z6Kdeu9mch62o0vH@intel.com> (raw)
In-Reply-To: <20250204134228.2934744-3-jani.nikula@intel.com>
On Tue, Feb 04, 2025 at 03:42:28PM +0200, Jani Nikula wrote:
> Switch the IS_<PLATFORM>() checks to display->platform.<platform>, and
> drop a number of struct drm_i915_private pointers in the process.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_cx0_phy.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> index 48b0b9755b2b..0ff76ef10d4b 100644
> --- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> @@ -34,13 +34,13 @@
>
> bool intel_encoder_is_c10phy(struct intel_encoder *encoder)
> {
> - struct drm_i915_private *i915 = to_i915(encoder->base.dev);
> + struct intel_display *display = to_intel_display(encoder);
> enum phy phy = intel_encoder_to_phy(encoder);
>
> - if (IS_PANTHERLAKE(i915) && phy == PHY_A)
> + if (display->platform.pantherlake && phy == PHY_A)
> return true;
>
> - if ((IS_LUNARLAKE(i915) || IS_METEORLAKE(i915)) && phy < PHY_C)
> + if ((display->platform.lunarlake || display->platform.meteorlake) && phy < PHY_C)
> return true;
>
> return false;
> @@ -3216,12 +3216,11 @@ void intel_mtl_pll_enable(struct intel_encoder *encoder,
> static u8 cx0_power_control_disable_val(struct intel_encoder *encoder)
> {
> struct intel_display *display = to_intel_display(encoder);
> - struct drm_i915_private *i915 = to_i915(encoder->base.dev);
>
> if (intel_encoder_is_c10phy(encoder))
> return CX0_P2PG_STATE_DISABLE;
>
> - if ((IS_BATTLEMAGE(i915) && encoder->port == PORT_A) ||
> + if ((display->platform.battlemage && encoder->port == PORT_A) ||
> (DISPLAY_VER(display) >= 30 && encoder->type == INTEL_OUTPUT_EDP))
> return CX0_P2PG_STATE_DISABLE;
>
> --
> 2.39.5
>
next prev parent reply other threads:[~2025-02-04 23:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 13:42 [PATCH 1/3] drm/i915/display: convert intel_ddi_buf_trans.c to struct intel_display Jani Nikula
2025-02-04 13:42 ` [PATCH 2/3] drm/i915/cdclk: switch to new platform checks Jani Nikula
2025-02-04 23:06 ` Rodrigo Vivi
2025-02-04 13:42 ` [PATCH 3/3] drm/i915/cx0: convert to struct intel_display based " Jani Nikula
2025-02-04 23:06 ` Rodrigo Vivi [this message]
2025-02-04 16:59 ` ✓ CI.Patch_applied: success for series starting with [1/3] drm/i915/display: convert intel_ddi_buf_trans.c to struct intel_display Patchwork
2025-02-04 16:59 ` ✓ CI.checkpatch: " Patchwork
2025-02-04 17:00 ` ✓ CI.KUnit: " Patchwork
2025-02-04 17:16 ` ✓ CI.Build: " Patchwork
2025-02-04 17:19 ` ✓ CI.Hooks: " Patchwork
2025-02-04 17:20 ` ✗ CI.checksparse: warning " Patchwork
2025-02-04 18:00 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-02-04 18:20 ` ✗ i915.CI.BAT: failure " Patchwork
2025-02-05 8:31 ` Jani Nikula
2025-02-05 14:00 ` Ravali, JupallyX
2025-02-04 23:01 ` [PATCH 1/3] " Rodrigo Vivi
2025-02-05 17:56 ` Jani Nikula
2025-02-05 6:09 ` ✓ Xe.CI.BAT: success for series starting with [1/3] " Patchwork
2025-02-05 11:32 ` ✓ i915.CI.BAT: " Patchwork
2025-02-05 15:27 ` ✗ i915.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=Z6Kdeu9mch62o0vH@intel.com \
--to=rodrigo.vivi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.