From: Manasi Navare <manasi.d.navare@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH v8] drm/i915/dsc: Add Per connector debugfs node for DSC support/enable
Date: Wed, 19 Dec 2018 13:39:15 -0800 [thread overview]
Message-ID: <20181219213914.GA22849@intel.com> (raw)
In-Reply-To: <154520693113.11951.15348857373212272307@skylake-alporthouse-com>
On Wed, Dec 19, 2018 at 08:08:51AM +0000, Chris Wilson wrote:
> Quoting Manasi Navare (2018-12-06 00:54:07)
> > DSC can be supported per DP connector. This patch adds a per connector
> > debugfs node to expose DSC support capability by the kernel.
> > The same node can be used from userspace to force DSC enable.
>
> So this has a nice deadlock that is killing icl sporadically...
>
> > +static int i915_dsc_fec_support_show(struct seq_file *m, void *data)
> > +{
> > + struct drm_connector *connector = m->private;
> > + struct drm_device *dev = connector->dev;
> > + struct drm_crtc *crtc;
> > + struct intel_dp *intel_dp;
> > + struct drm_modeset_acquire_ctx ctx;
> > + struct intel_crtc_state *crtc_state = NULL;
> > + int ret = 0;
> > + bool try_again = false;
> > +
> > + drm_modeset_acquire_init(&ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE);
> > +
> > + do {
> > + ret = drm_modeset_lock(&dev->mode_config.connection_mutex,
> > + &ctx);
> > + if (ret) {
> > + ret = -EINTR;
> > + break;
> > + }
> > + crtc = connector->state->crtc;
> > + if (connector->status != connector_status_connected || !crtc) {
> > + ret = -ENODEV;
> > + break;
> > + }
> > + ret = drm_modeset_lock(&crtc->mutex, &ctx);
> > + if (ret == -EDEADLK) {
> > + ret = drm_modeset_backoff(&ctx);
> > + if (!ret) {
> > + try_again = true;
>
> try_again is never cleared on the next loop, so after you hit the
> backoff, we never escape on success.
Thanks for catching this, teh CI results came green before this patch was merged so
never noticed this.
I will submit a patch to fix this.
Thanks again Chris and Tomi for catching this bug
Manasi
>
> Reported-by: Tomi Sarvela <tomi.p.sarvela@intel.com>
> -Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-12-19 21:36 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 3:07 [PATCH v5] drm/i915/dsc: Add Per connector debugfs node for DSC support/enable Manasi Navare
2018-12-04 3:20 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2018-12-04 3:45 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-12-04 19:55 ` [PATCH v6] " Manasi Navare
2018-12-05 19:00 ` Lyude Paul
2018-12-05 19:29 ` Manasi Navare
2018-12-05 21:24 ` Lyude Paul
2018-12-05 22:57 ` [PATCH v7] " Manasi Navare
2018-12-05 23:03 ` Lyude Paul
2018-12-05 23:23 ` Manasi Navare
2018-12-06 0:54 ` [PATCH v8] " Manasi Navare
2018-12-19 8:08 ` Chris Wilson
2018-12-19 21:39 ` Manasi Navare [this message]
2018-12-04 20:18 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dsc: Add Per connector debugfs node for DSC support/enable (rev2) Patchwork
2018-12-04 20:44 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-12-05 23:25 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dsc: Add Per connector debugfs node for DSC support/enable (rev3) Patchwork
2018-12-05 23:46 ` ✓ Fi.CI.BAT: success " Patchwork
2018-12-06 1:56 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dsc: Add Per connector debugfs node for DSC support/enable (rev4) Patchwork
2018-12-06 2:19 ` ✓ Fi.CI.BAT: success " Patchwork
2018-12-06 12:21 ` ✓ Fi.CI.IGT: " 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=20181219213914.GA22849@intel.com \
--to=manasi.d.navare@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@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.