From: Imre Deak <imre.deak@intel.com>
To: "Murthy, Arun R" <arun.r.murthy@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 06/14] drm/i915/dp: Send only a single modeset-retry uevent for a commit
Date: Wed, 24 Jul 2024 14:16:10 +0300 [thread overview]
Message-ID: <ZqDiegIe4mPSuZLU@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <IA0PR11MB730719E68DD305BF254B5F2DBAAA2@IA0PR11MB7307.namprd11.prod.outlook.com>
On Wed, Jul 24, 2024 at 07:29:33AM +0300, Murthy, Arun R wrote:
>
> > -----Original Message-----
> > From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Imre
> > Deak
> > Sent: Monday, July 22, 2024 10:25 PM
> > To: intel-gfx@lists.freedesktop.org
> > Subject: [PATCH 06/14] drm/i915/dp: Send only a single modeset-retry uevent
> > for a commit
> >
> > There are multiple failure cases a modeset-retry uevent can be sent for a link
> > (TBT tunnel BW allocation failure, unrecoverable link training failure), a follow-
> > up patch adding the handling for a new case where the DP MST payload
> > allocation fails. The uevent is the same in all cases, sent to all the connectors on
> > the link, so in case of multiple failures there is no point in sending a separate
> > uevent for each failure; prevent this, sending only a single modeset-retry
> > uevent for a commit.
> >
> Is an exit condition required with some 'x' retry so that this retry
> doesn't end up in an infinite loop. For link training failure the
> link rate/lane count is reduced and when it reaches the least can
> exit, but for BW allocation failures/payload failure this may not be
> the case.
This is an error condition the driver reports (asynchronously) if a
modeset request by userspace/client failed. It would be incorrect not to
report this error, leaving the output in a blank, enabled state.
I think that userspace/client should handle such failures - in the
above case a buggy sink - by disabling the output.
> Thanks and Regards,
> Arun R Murthy
> --------------------
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_display_types.h | 1 +
> > drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++
> > 2 files changed, 7 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h
> > b/drivers/gpu/drm/i915/display/intel_display_types.h
> > index a9d2acdc51a4a..3501125c55158 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> > +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> > @@ -1754,6 +1754,7 @@ struct intel_dp {
> > u8 lane_count;
> > u8 sink_count;
> > bool link_trained;
> > + bool needs_modeset_retry;
> > bool use_max_params;
> > u8 dpcd[DP_RECEIVER_CAP_SIZE];
> > u8 psr_dpcd[EDP_PSR_RECEIVER_CAP_SIZE];
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c
> > b/drivers/gpu/drm/i915/display/intel_dp.c
> > index 421e970b3c180..0882dddd97206 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > @@ -2876,6 +2876,11 @@ intel_dp_queue_modeset_retry_for_link(struct
> > intel_atomic_state *state,
> > struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> > int i;
> >
> > + if (intel_dp->needs_modeset_retry)
> > + return;
> > +
> > + intel_dp->needs_modeset_retry = true;
> > +
> > if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST)) {
> > intel_dp_queue_modeset_retry_work(intel_dp-
> > >attached_connector);
> >
> > @@ -3009,6 +3014,7 @@ void intel_dp_set_link_params(struct intel_dp
> > *intel_dp, {
> > memset(intel_dp->train_set, 0, sizeof(intel_dp->train_set));
> > intel_dp->link_trained = false;
> > + intel_dp->needs_modeset_retry = false;
> > intel_dp->link_rate = link_rate;
> > intel_dp->lane_count = lane_count;
> > }
> > --
> > 2.44.2
>
next prev parent reply other threads:[~2024-07-24 11:16 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 16:54 [PATCH 00/14] drm/i915/dp_mst: Enable LT fallback for UHBR<->non-UHBR rates Imre Deak
2024-07-22 16:54 ` [PATCH 01/14] drm/dp_mst: Factor out function to queue a topology probe work Imre Deak
2024-07-22 17:19 ` Lyude Paul
2024-07-26 17:05 ` Imre Deak
2024-07-30 10:55 ` Jani Nikula
2024-07-22 16:54 ` [PATCH 02/14] drm/dp_mst: Add a helper to queue a topology probe Imre Deak
2024-07-22 16:54 ` [PATCH 03/14] drm/dp_mst: Simplify the condition when to enumerate path resources Imre Deak
2024-08-04 13:45 ` Manasi Navare
2024-08-05 13:47 ` Imre Deak
2024-07-22 16:54 ` [PATCH 04/14] drm/i915/ddi: For an active output call the DP encoder sync_state() only for DP Imre Deak
2024-07-23 8:28 ` Kandpal, Suraj
2024-07-23 11:56 ` Imre Deak
2024-07-23 13:04 ` Kandpal, Suraj
2024-07-22 16:54 ` [PATCH 05/14] drm/i915/dp: Initialize the link parameters during HW readout Imre Deak
2024-07-23 8:34 ` Kandpal, Suraj
2024-07-23 11:59 ` Imre Deak
2024-07-23 13:05 ` Kandpal, Suraj
2024-07-22 16:54 ` [PATCH 06/14] drm/i915/dp: Send only a single modeset-retry uevent for a commit Imre Deak
2024-07-24 4:29 ` Murthy, Arun R
2024-07-24 11:16 ` Imre Deak [this message]
2024-07-25 3:16 ` Murthy, Arun R
2024-07-25 11:44 ` Imre Deak
2024-07-26 3:30 ` Murthy, Arun R
2024-07-22 16:54 ` [PATCH 07/14] drm/i915/dp: Add a separate function to reduce the link parameters Imre Deak
2024-07-23 9:12 ` Kandpal, Suraj
2024-07-24 4:55 ` Murthy, Arun R
2024-07-24 11:19 ` Imre Deak
2024-07-25 3:20 ` Murthy, Arun R
2024-07-25 12:14 ` Imre Deak
2024-07-22 16:54 ` [PATCH 08/14] drm/i915/dp: Add helpers to set link training mode, BW parameters Imre Deak
2024-07-23 9:17 ` Kandpal, Suraj
2024-07-22 16:54 ` [PATCH 09/14] drm/i915/dp_mst: Reduce the link parameters in BW order after LT failures Imre Deak
2024-07-22 19:25 ` Imre Deak
2024-07-24 6:43 ` Kandpal, Suraj
2024-07-24 11:27 ` Imre Deak
2024-07-24 16:42 ` Kandpal, Suraj
2024-07-29 14:44 ` [PATCH v2 " Imre Deak
2024-07-29 15:59 ` Murthy, Arun R
2024-07-22 16:54 ` [PATCH 10/14] drm/i915/dp_mst: Configure MST after the link parameters are reset Imre Deak
2024-07-24 6:45 ` Kandpal, Suraj
2024-07-22 16:55 ` [PATCH 11/14] drm/i915/dp_mst: Queue modeset-retry after a failed payload BW allocation Imre Deak
2024-07-24 8:07 ` Kandpal, Suraj
2024-07-22 16:55 ` [PATCH 12/14] drm/i915/dp_mst: Reprobe the MST topology after a link parameter change Imre Deak
2024-07-24 8:48 ` Kandpal, Suraj
2024-07-22 16:55 ` [PATCH 13/14] drm/i915/dp_mst: Ensure link parameters are up-to-date for a disabled link Imre Deak
2024-07-25 5:26 ` Kandpal, Suraj
2024-07-25 12:16 ` Imre Deak
2024-07-22 16:55 ` [PATCH 14/14] drm/i915/dp_mst: Enable LT fallback between UHBR/non-UHBR link rates Imre Deak
2024-07-24 8:52 ` Kandpal, Suraj
2024-07-24 11:33 ` Imre Deak
2024-07-24 16:41 ` Kandpal, Suraj
2024-07-22 18:48 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp_mst: Enable LT fallback for UHBR<->non-UHBR rates Patchwork
2024-07-22 18:48 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-07-22 18:55 ` ✓ Fi.CI.BAT: success " Patchwork
2024-07-23 10:41 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-07-29 16:25 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp_mst: Enable LT fallback for UHBR<->non-UHBR rates (rev2) Patchwork
2024-07-29 16:25 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-07-29 16:34 ` ✓ Fi.CI.BAT: success " Patchwork
2024-07-30 7:27 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-07-31 16:05 ` Imre Deak
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=ZqDiegIe4mPSuZLU@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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.