From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/snps: use div32 version of MPLLB word clock for UHBR
Date: Wed, 08 Dec 2021 12:17:11 +0200 [thread overview]
Message-ID: <87sfv34d08.fsf@intel.com> (raw)
In-Reply-To: <YakpXfVID+sxfbr1@intel.com>
On Thu, 02 Dec 2021, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Thu, Dec 02, 2021 at 04:44:56PM +0200, Jani Nikula wrote:
>> The mode set sequence for 128b/132b requires setting the div32 version
>> of MPLLB clock.
>>
>> Bspec: 53880, 54128
>
> Weird place for that information when all the other bits are listed
> in the clock programming section :/
>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Thanks, pushed.
>
>> ---
>> drivers/gpu/drm/i915/display/intel_snps_phy.c | 2 ++
>> drivers/gpu/drm/i915/i915_reg.h | 1 +
>> 2 files changed, 3 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_snps_phy.c b/drivers/gpu/drm/i915/display/intel_snps_phy.c
>> index c2251218a39e..09f405e4d363 100644
>> --- a/drivers/gpu/drm/i915/display/intel_snps_phy.c
>> +++ b/drivers/gpu/drm/i915/display/intel_snps_phy.c
>> @@ -186,6 +186,7 @@ static const struct intel_mpllb_state dg2_dp_uhbr10_100 = {
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_PMIX_EN, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_WORD_DIV2_EN, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_DP2_MODE, 1) |
>> + REG_FIELD_PREP(SNPS_PHY_MPLLB_SHIM_DIV32_CLK_SEL, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_V2I, 2),
>> .mpllb_div2 =
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_REF_CLK_DIV, 2) |
>> @@ -369,6 +370,7 @@ static const struct intel_mpllb_state dg2_dp_uhbr10_38_4 = {
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_PMIX_EN, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_WORD_DIV2_EN, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_DP2_MODE, 1) |
>> + REG_FIELD_PREP(SNPS_PHY_MPLLB_SHIM_DIV32_CLK_SEL, 1) |
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_V2I, 2),
>> .mpllb_div2 =
>> REG_FIELD_PREP(SNPS_PHY_MPLLB_REF_CLK_DIV, 1) |
>> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
>> index 3450818802c2..1fad1d593e13 100644
>> --- a/drivers/gpu/drm/i915/i915_reg.h
>> +++ b/drivers/gpu/drm/i915/i915_reg.h
>> @@ -2265,6 +2265,7 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
>> #define SNPS_PHY_MPLLB_DP2_MODE REG_BIT(9)
>> #define SNPS_PHY_MPLLB_WORD_DIV2_EN REG_BIT(8)
>> #define SNPS_PHY_MPLLB_TX_CLK_DIV REG_GENMASK(7, 5)
>> +#define SNPS_PHY_MPLLB_SHIM_DIV32_CLK_SEL REG_BIT(0)
>>
>> #define SNPS_PHY_MPLLB_FRACN1(phy) _MMIO_SNPS(phy, 0x168008)
>> #define SNPS_PHY_MPLLB_FRACN_EN REG_BIT(31)
>> --
>> 2.30.2
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2021-12-08 10:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 14:44 [Intel-gfx] [PATCH] drm/i915/snps: use div32 version of MPLLB word clock for UHBR Jani Nikula
2021-12-02 16:48 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for " Patchwork
2021-12-02 17:23 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-12-02 20:15 ` [Intel-gfx] [PATCH] " Ville Syrjälä
2021-12-08 10:17 ` Jani Nikula [this message]
2021-12-02 23:05 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " 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=87sfv34d08.fsf@intel.com \
--to=jani.nikula@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 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.