From: Jani Nikula <jani.nikula@intel.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: "Michał Grzelak" <michal.grzelak@intel.com>
Subject: Re: [PATCH v2 1/4] drm/i915/display: fix SKL_DSSM register macros
Date: Tue, 04 Aug 2026 11:01:58 +0300 [thread overview]
Message-ID: <058226c5ce1d9063891372679b15fd14ba4dc29f@intel.com> (raw)
In-Reply-To: <20260803214909.3076716-2-michal.grzelak@intel.com>
On Mon, 03 Aug 2026, Michał Grzelak <michal.grzelak@intel.com> wrote:
> Indent SKL_DSSM register macros. Define mask and register values with
> REG_GENMASK() and REG_FIELD_PREP() instead of bit shifts.
Nitpick, in subject, "fix" is misleading. This is just cleanup without
functional changes.
No need to resend for this.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> v1->v2
> - s/REG_GENMASK/REG_FIELD_PREP/ (Jani)
>
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_regs.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_regs.h b/drivers/gpu/drm/i915/display/intel_display_regs.h
> index 0f5018482497..740331ead20a 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_regs.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_regs.h
> @@ -1779,10 +1779,10 @@
> #define XE2LPD_DE_CAP_SCALER_SINGLE 1
>
> #define SKL_DSSM _MMIO(0x51004)
> -#define ICL_DSSM_CDCLK_PLL_REFCLK_MASK (7 << 29)
> -#define ICL_DSSM_CDCLK_PLL_REFCLK_24MHz (0 << 29)
> -#define ICL_DSSM_CDCLK_PLL_REFCLK_19_2MHz (1 << 29)
> -#define ICL_DSSM_CDCLK_PLL_REFCLK_38_4MHz (2 << 29)
> +#define ICL_DSSM_CDCLK_PLL_REFCLK_MASK REG_GENMASK(31, 29)
> +#define ICL_DSSM_CDCLK_PLL_REFCLK_24MHz REG_FIELD_PREP(ICL_DSSM_CDCLK_PLL_REFCLK_MASK, 0)
> +#define ICL_DSSM_CDCLK_PLL_REFCLK_19_2MHz REG_FIELD_PREP(ICL_DSSM_CDCLK_PLL_REFCLK_MASK, 1)
> +#define ICL_DSSM_CDCLK_PLL_REFCLK_38_4MHz REG_FIELD_PREP(ICL_DSSM_CDCLK_PLL_REFCLK_MASK, 2)
>
> /*GEN11 chicken */
> #define _PIPEA_CHICKEN 0x70038
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-08-04 8:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 21:49 [PATCH v2 0/4] SKL_DSSM / DE_CAP fixes Michał Grzelak
2026-08-03 21:49 ` [PATCH v2 1/4] drm/i915/display: fix SKL_DSSM register macros Michał Grzelak
2026-08-04 8:01 ` Jani Nikula [this message]
2026-08-03 21:49 ` [PATCH v2 2/4] drm/i915/3dlut: disable 3D LUT for pre-GLK Michał Grzelak
2026-08-04 14:39 ` Borah, Chaitanya Kumar
2026-08-03 21:49 ` [PATCH v2 3/4] drm/i915/3dlut: log 3D LUT's status Michał Grzelak
2026-08-03 21:49 ` [PATCH v2 4/4] drm/i915/3dlut: disable 3D LUT if unsupported Michał Grzelak
2026-08-04 14:39 ` Borah, Chaitanya Kumar
2026-08-03 22:00 ` ✓ CI.KUnit: success for SKL_DSSM / DE_CAP fixes Patchwork
2026-08-04 1:19 ` ✓ Xe.CI.FULL: " Patchwork
2026-08-04 12:42 ` ✓ CI.KUnit: " Patchwork
2026-08-04 19:00 ` ✓ i915.CI.BAT: " Patchwork
2026-08-05 2:45 ` ✓ i915.CI.Full: " Patchwork
2026-08-05 6:00 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-05 9:15 ` ✓ CI.KUnit: success for SKL_DSSM / DE_CAP fixes (rev2) Patchwork
2026-08-05 10:22 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-05 18:43 ` ✗ 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=058226c5ce1d9063891372679b15fd14ba4dc29f@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.grzelak@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.