From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Rename ICL_PORT_TX_DW6 bits
Date: Fri, 8 Mar 2024 10:33:28 -0500 [thread overview]
Message-ID: <ZesvyLtpIjjKz63Q@intel.com> (raw)
In-Reply-To: <20240308072400.28918-1-ville.syrjala@linux.intel.com>
On Fri, Mar 08, 2024 at 09:24:00AM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Our definitions for bit 7 and bit 0 of ICL_PORT_TX_DW6 are
> swapped. Functionally it doesn't matter as we always set both
> bits, but let's rename the bits to match bspec 100%.
>
> And while at it, add the definition for bits 1-6 as well, just
> to have it all fully documented.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_combo_phy_regs.h | 5 +++--
> drivers/gpu/drm/i915/display/intel_display_power_well.c | 2 +-
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_combo_phy_regs.h b/drivers/gpu/drm/i915/display/intel_combo_phy_regs.h
> index 63601129b736..0964e392d02c 100644
> --- a/drivers/gpu/drm/i915/display/intel_combo_phy_regs.h
> +++ b/drivers/gpu/drm/i915/display/intel_combo_phy_regs.h
> @@ -141,8 +141,9 @@
> #define ICL_PORT_TX_DW6_AUX(phy) _MMIO(_ICL_PORT_TX_DW_AUX(6, phy))
> #define ICL_PORT_TX_DW6_GRP(phy) _MMIO(_ICL_PORT_TX_DW_GRP(6, phy))
> #define ICL_PORT_TX_DW6_LN(ln, phy) _MMIO(_ICL_PORT_TX_DW_LN(6, ln, phy))
> -#define ICL_AUX_ANAOVRD1_LDO_BYPASS REG_BIT(7)
> -#define ICL_AUX_ANAOVRD1_ENABLE REG_BIT(0)
> +#define O_FUNC_OVRD_EN REG_BIT(7)
> +#define O_LDO_REF_SEL_CRI REG_GENMASK(6, 1)
> +#define O_LDO_BYPASS_CRI REG_BIT(0)
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> #define ICL_PORT_TX_DW7_AUX(phy) _MMIO(_ICL_PORT_TX_DW_AUX(7, phy))
> #define ICL_PORT_TX_DW7_GRP(phy) _MMIO(_ICL_PORT_TX_DW_GRP(7, phy))
> diff --git a/drivers/gpu/drm/i915/display/intel_display_power_well.c b/drivers/gpu/drm/i915/display/intel_display_power_well.c
> index 217f82f1da84..78005d12638c 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_power_well.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_power_well.c
> @@ -425,7 +425,7 @@ icl_combo_phy_aux_power_well_enable(struct drm_i915_private *dev_priv,
> if (pw_idx >= ICL_PW_CTL_IDX_AUX_A && pw_idx <= ICL_PW_CTL_IDX_AUX_B &&
> !intel_aux_ch_is_edp(dev_priv, ICL_AUX_PW_TO_CH(pw_idx)))
> intel_de_rmw(dev_priv, ICL_PORT_TX_DW6_AUX(ICL_AUX_PW_TO_PHY(pw_idx)),
> - 0, ICL_AUX_ANAOVRD1_ENABLE | ICL_AUX_ANAOVRD1_LDO_BYPASS);
> + 0, O_FUNC_OVRD_EN | O_LDO_BYPASS_CRI);
> }
>
> static void
> --
> 2.43.0
>
next prev parent reply other threads:[~2024-03-08 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-08 7:24 [PATCH] drm/i915: Rename ICL_PORT_TX_DW6 bits Ville Syrjala
2024-03-08 12:42 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-03-08 15:33 ` Rodrigo Vivi [this message]
2024-03-13 19:25 ` ✗ Fi.CI.BAT: failure for drm/i915: Rename ICL_PORT_TX_DW6 bits (rev2) Patchwork
2024-03-15 12:10 ` ✓ Fi.CI.BAT: success for drm/i915: Rename ICL_PORT_TX_DW6 bits (rev3) Patchwork
2024-03-16 13:05 ` ✗ Fi.CI.IGT: 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=ZesvyLtpIjjKz63Q@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@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