From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/3] drm/i915: Initialize eDP source rates after per-panel VBT parsing
Date: Thu, 02 Jun 2022 12:27:21 +0300 [thread overview]
Message-ID: <87sfonpg92.fsf@intel.com> (raw)
In-Reply-To: <20220601151907.18725-2-ville.syrjala@linux.intel.com>
On Wed, 01 Jun 2022, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> We'll need to know the VBT panel_type before we can determine the
> maximum link rate for eDP. To that end move
> intel_dp_set_source_rates() & co. to be called after the per-panel
> VBT parsing has been done.
>
> I'm not immediately spotting anything that would consult the link
> rate arrays before this, so seems safe enough.
Cc: Imre
I guess these are some of the reasons we have them there:
3f61ef9777c0 ("drm/i915/dp: Ensure sink rate values are always valid")
bedcaddadd22 ("drm/i915/dp: Ensure sink/link max lane count values are always valid")
9ad87de47356 ("drm/i915/dp: Ensure max link params are always valid")
But I can't see why they'd need to be so early. *knocks wood*
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index b8e2d3cd4d68..03af93ef9e93 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2852,9 +2852,6 @@ intel_edp_init_dpcd(struct intel_dp *intel_dp)
> intel_dp_set_sink_rates(intel_dp);
> intel_dp_set_max_sink_lane_count(intel_dp);
>
> - intel_dp_set_common_rates(intel_dp);
> - intel_dp_reset_max_link_params(intel_dp);
> -
> /* Read the eDP DSC DPCD registers */
> if (DISPLAY_VER(dev_priv) >= 10)
> intel_dp_get_dsc_sink_cap(intel_dp);
> @@ -5342,11 +5339,8 @@ intel_dp_init_connector(struct intel_digital_port *dig_port,
> type = DRM_MODE_CONNECTOR_DisplayPort;
> }
>
> - intel_dp_set_source_rates(intel_dp);
> intel_dp_set_default_sink_rates(intel_dp);
> intel_dp_set_default_max_sink_lane_count(intel_dp);
> - intel_dp_set_common_rates(intel_dp);
> - intel_dp_reset_max_link_params(intel_dp);
>
> if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv))
> intel_dp->pps.active_pipe = vlv_active_pipe(intel_dp);
> @@ -5384,6 +5378,10 @@ intel_dp_init_connector(struct intel_digital_port *dig_port,
> goto fail;
> }
>
> + intel_dp_set_source_rates(intel_dp);
> + intel_dp_set_common_rates(intel_dp);
> + intel_dp_reset_max_link_params(intel_dp);
> +
> intel_dp_add_properties(intel_dp, connector);
>
> if (is_hdcp_supported(dev_priv, port) && !intel_dp_is_edp(intel_dp)) {
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-06-02 9:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 15:19 [Intel-gfx] [PATCH 0/3] drm/i915: Parse more eDP link rate stuff from VBT Ville Syrjala
2022-06-01 15:19 ` [Intel-gfx] [PATCH 1/3] drm/i915: Initialize eDP source rates after per-panel VBT parsing Ville Syrjala
2022-06-02 9:27 ` Jani Nikula [this message]
2022-06-03 16:58 ` [Intel-gfx] [PATCH v2 " Ville Syrjala
2022-06-01 15:19 ` [Intel-gfx] [PATCH 2/3] drm/i915: Update eDP fast link training link rate parsing Ville Syrjala
2022-06-02 9:38 ` Jani Nikula
2022-06-02 17:57 ` Ville Syrjälä
2022-06-02 20:56 ` [Intel-gfx] [PATCH v2 " Ville Syrjala
2022-06-03 8:01 ` Jani Nikula
2022-06-01 15:19 ` [Intel-gfx] [PATCH 3/3] drm/i915: Parse max link rate from the eDP BDB block Ville Syrjala
2022-06-02 9:43 ` Jani Nikula
2022-06-02 20:57 ` [Intel-gfx] [PATCH v2 " Ville Syrjala
2022-06-03 8:02 ` Jani Nikula
2022-06-01 17:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Parse more eDP link rate stuff from VBT Patchwork
2022-06-01 22:08 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-06-02 21:29 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Parse more eDP link rate stuff from VBT (rev3) Patchwork
2022-06-03 1:10 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-06-04 0:27 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Parse more eDP link rate stuff from VBT (rev4) Patchwork
2022-06-04 16:33 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Parse more eDP link rate stuff from VBT (rev5) Patchwork
2022-06-04 17:55 ` [Intel-gfx] ✗ 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=87sfonpg92.fsf@intel.com \
--to=jani.nikula@linux.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