From: Jani Nikula <jani.nikula@intel.com>
To: "Garg, Nemesa" <nemesa.garg@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: RE: [PATCH 1/3] drm/i915/pch: Make LPT LP a dedicated PCH type
Date: Wed, 12 Feb 2025 13:18:10 +0200 [thread overview]
Message-ID: <87jz9vza19.fsf@intel.com> (raw)
In-Reply-To: <IA1PR11MB646763382628DF974F79D6FAE3FD2@IA1PR11MB6467.namprd11.prod.outlook.com>
On Tue, 11 Feb 2025, "Garg, Nemesa" <nemesa.garg@intel.com> wrote:
>> -----Original Message-----
>> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Jani
>> Nikula
>> Sent: Friday, February 7, 2025 3:48 PM
>> To: intel-gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org
>> Cc: Nikula, Jani <jani.nikula@intel.com>
>> Subject: [PATCH 1/3] drm/i915/pch: Make LPT LP a dedicated PCH type
>>
>> Add PCH type PCH_LPT_LP and rename PCH_LPT to PCH_LPT_H for
>> consistency. Keep the existing HAS_PCH_LPT*() macros, but express them in
>> terms of the PCH types instead of looking at the device IDs directly. This
>> makes the PCH checks independent of the PCH device IDs.
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> LGTM,
> Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
Thanks for the review, series pushed to din.
BR,
Jani.
>> ---
>> drivers/gpu/drm/i915/display/intel_backlight.c | 2 +-
>> drivers/gpu/drm/i915/soc/intel_pch.c | 8 ++++----
>> drivers/gpu/drm/i915/soc/intel_pch.h | 14 ++++++--------
>> 3 files changed, 11 insertions(+), 13 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_backlight.c
>> b/drivers/gpu/drm/i915/display/intel_backlight.c
>> index 477b21af71a4..178dc6c8de80 100644
>> --- a/drivers/gpu/drm/i915/display/intel_backlight.c
>> +++ b/drivers/gpu/drm/i915/display/intel_backlight.c
>> @@ -1829,7 +1829,7 @@ void intel_backlight_init_funcs(struct intel_panel
>> *panel)
>> panel->backlight.pwm_funcs = &bxt_pwm_funcs;
>> } else if (INTEL_PCH_TYPE(i915) >= PCH_CNP) {
>> panel->backlight.pwm_funcs = &cnp_pwm_funcs;
>> - } else if (INTEL_PCH_TYPE(i915) >= PCH_LPT) {
>> + } else if (INTEL_PCH_TYPE(i915) >= PCH_LPT_H) {
>> if (HAS_PCH_LPT(i915))
>> panel->backlight.pwm_funcs = &lpt_pwm_funcs;
>> else
>> diff --git a/drivers/gpu/drm/i915/soc/intel_pch.c
>> b/drivers/gpu/drm/i915/soc/intel_pch.c
>> index 9f7c9dbc178e..0370ccb6943c 100644
>> --- a/drivers/gpu/drm/i915/soc/intel_pch.c
>> +++ b/drivers/gpu/drm/i915/soc/intel_pch.c
>> @@ -33,14 +33,14 @@ intel_pch_type(const struct drm_i915_private
>> *dev_priv, unsigned short id)
>> !IS_HASWELL(dev_priv) &&
>> !IS_BROADWELL(dev_priv));
>> drm_WARN_ON(&dev_priv->drm,
>> IS_HASWELL_ULT(dev_priv) ||
>> IS_BROADWELL_ULT(dev_priv));
>> - return PCH_LPT;
>> + return PCH_LPT_H;
>> case INTEL_PCH_LPT_LP_DEVICE_ID_TYPE:
>> drm_dbg_kms(&dev_priv->drm, "Found LynxPoint LP
>> PCH\n");
>> drm_WARN_ON(&dev_priv->drm,
>> !IS_HASWELL(dev_priv) &&
>> !IS_BROADWELL(dev_priv));
>> drm_WARN_ON(&dev_priv->drm,
>> !IS_HASWELL_ULT(dev_priv) &&
>> !IS_BROADWELL_ULT(dev_priv));
>> - return PCH_LPT;
>> + return PCH_LPT_LP;
>> case INTEL_PCH_WPT_DEVICE_ID_TYPE:
>> drm_dbg_kms(&dev_priv->drm, "Found WildcatPoint
>> PCH\n");
>> drm_WARN_ON(&dev_priv->drm,
>> @@ -48,7 +48,7 @@ intel_pch_type(const struct drm_i915_private *dev_priv,
>> unsigned short id)
>> drm_WARN_ON(&dev_priv->drm,
>> IS_HASWELL_ULT(dev_priv) ||
>> IS_BROADWELL_ULT(dev_priv));
>> /* WPT is LPT compatible */
>> - return PCH_LPT;
>> + return PCH_LPT_H;
>> case INTEL_PCH_WPT_LP_DEVICE_ID_TYPE:
>> drm_dbg_kms(&dev_priv->drm, "Found WildcatPoint LP
>> PCH\n");
>> drm_WARN_ON(&dev_priv->drm,
>> @@ -56,7 +56,7 @@ intel_pch_type(const struct drm_i915_private *dev_priv,
>> unsigned short id)
>> drm_WARN_ON(&dev_priv->drm,
>> !IS_HASWELL_ULT(dev_priv) &&
>> !IS_BROADWELL_ULT(dev_priv));
>> /* WPT is LPT compatible */
>> - return PCH_LPT;
>> + return PCH_LPT_LP;
>> case INTEL_PCH_SPT_DEVICE_ID_TYPE:
>> drm_dbg_kms(&dev_priv->drm, "Found SunrisePoint
>> PCH\n");
>> drm_WARN_ON(&dev_priv->drm,
>> diff --git a/drivers/gpu/drm/i915/soc/intel_pch.h
>> b/drivers/gpu/drm/i915/soc/intel_pch.h
>> index 89e89ede265d..bc926df14c45 100644
>> --- a/drivers/gpu/drm/i915/soc/intel_pch.h
>> +++ b/drivers/gpu/drm/i915/soc/intel_pch.h
>> @@ -19,7 +19,8 @@ enum intel_pch {
>> PCH_NONE = 0, /* No PCH present */
>> PCH_IBX, /* Ibexpeak PCH */
>> PCH_CPT, /* Cougarpoint/Pantherpoint PCH */
>> - PCH_LPT, /* Lynxpoint/Wildcatpoint PCH */
>> + PCH_LPT_H, /* Lynxpoint/Wildcatpoint H PCH */
>> + PCH_LPT_LP, /* Lynxpoint/Wildcatpoint LP PCH */
>> PCH_SPT, /* Sunrisepoint/Kaby Lake PCH */
>> PCH_CNP, /* Cannon/Comet Lake PCH */
>> PCH_ICP, /* Ice Lake/Jasper Lake PCH */
>> @@ -72,13 +73,10 @@ enum intel_pch {
>> #define HAS_PCH_ICP(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_ICP)
>> #define HAS_PCH_CNP(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_CNP)
>> #define HAS_PCH_SPT(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_SPT)
>> -#define HAS_PCH_LPT(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_LPT)
>> -#define HAS_PCH_LPT_LP(dev_priv) \
>> - (INTEL_PCH_ID(dev_priv) == INTEL_PCH_LPT_LP_DEVICE_ID_TYPE ||
>> \
>> - INTEL_PCH_ID(dev_priv) == INTEL_PCH_WPT_LP_DEVICE_ID_TYPE)
>> -#define HAS_PCH_LPT_H(dev_priv) \
>> - (INTEL_PCH_ID(dev_priv) == INTEL_PCH_LPT_DEVICE_ID_TYPE || \
>> - INTEL_PCH_ID(dev_priv) == INTEL_PCH_WPT_DEVICE_ID_TYPE)
>> +#define HAS_PCH_LPT_H(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_LPT_H)
>> +#define HAS_PCH_LPT_LP(dev_priv) (INTEL_PCH_TYPE(dev_priv)
>> == PCH_LPT_LP)
>> +#define HAS_PCH_LPT(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_LPT_H || \
>> + INTEL_PCH_TYPE(dev_priv)
>> == PCH_LPT_LP)
>> #define HAS_PCH_CPT(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_CPT)
>> #define HAS_PCH_IBX(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_IBX)
>> #define HAS_PCH_NOP(dev_priv)
>> (INTEL_PCH_TYPE(dev_priv) == PCH_NOP)
>> --
>> 2.39.5
>
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-02-12 11:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 10:17 [PATCH 0/3] drm/i915/pch: small cleanups, refactors Jani Nikula
2025-02-07 10:17 ` [PATCH 1/3] drm/i915/pch: Make LPT LP a dedicated PCH type Jani Nikula
2025-02-11 18:12 ` Garg, Nemesa
2025-02-12 11:18 ` Jani Nikula [this message]
2025-02-07 10:17 ` [PATCH 2/3] drm/i915/pch: Hide PCH device IDs Jani Nikula
2025-02-11 18:03 ` Garg, Nemesa
2025-02-07 10:17 ` [PATCH 3/3] drm/i915/pch: Remove unused i915->pch_id Jani Nikula
2025-02-11 17:59 ` Garg, Nemesa
2025-02-07 11:36 ` ✓ CI.Patch_applied: success for drm/i915/pch: small cleanups, refactors Patchwork
2025-02-07 11:37 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-07 11:38 ` ✓ CI.KUnit: success " Patchwork
2025-02-07 11:54 ` ✓ CI.Build: " Patchwork
2025-02-07 11:56 ` ✓ CI.Hooks: " Patchwork
2025-02-07 11:58 ` ✓ CI.checksparse: " Patchwork
2025-02-07 12:19 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-07 15:28 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2025-02-07 15:28 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-02-07 16:18 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-07 18:49 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-08 6:02 ` ✗ 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=87jz9vza19.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=nemesa.garg@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.