All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manasi Navare <manasi.d.navare@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org, daniel.vetter@intel.com
Subject: [PATCH RFC 2/8] drm: Define a work struct for scheduling a uevent for modeset retry
Date: Wed, 19 Oct 2016 14:46:18 -0700	[thread overview]
Message-ID: <1476913584-16948-3-git-send-email-manasi.d.navare@intel.com> (raw)
In-Reply-To: <1476913584-16948-1-git-send-email-manasi.d.navare@intel.com>

This work struct will be used to schedule a uevent on a separate
thread. This will be scheduled after a link train failure during modeset
to indicate a modeset retry request. It will get executed after the
current modeset is complete and all locks are released. This was
required to avoid deadlock.

Cc: dri-devel@lists.freedesktop.org
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>

Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
 include/drm/drm_connector.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index d499466..9218a24 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -687,6 +687,11 @@ struct drm_connector {
 	 * in case of link train failure during current modeset
 	 */
 	bool link_train_retry;
+
+	/* Work struct to schedule a uevent on link train failure for
+	 * DisplayPort.
+	 */
+	struct work_struct i915_modeset_retry_work;
 };
 
 #define obj_to_connector(x) container_of(x, struct drm_connector, base)
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2016-10-19 21:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-19 21:46 [PATCH RFC 0/8] Hotplug Uevent on Link training failure on DP Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 1/8] drm: Add a link_train_retry field to drm_connector Manasi Navare
2016-10-19 21:46 ` Manasi Navare [this message]
2016-10-19 23:52   ` [PATCH RFC 2/8] drm: Define a work struct for scheduling a uevent for modeset retry Pandiyan, Dhinakaran
2016-10-19 21:46 ` [PATCH RFC 3/8] drm: Trigger a complete modeset if link_train_retry is set Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 4/8] drm/i915: Change the placement of some static functions in intel_dp.c Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 5/8] drm/i915; Add a function to return index of link rate Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 6/8] drm/i915: Define the modeset retry work function Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 7/8] drm/i915: Link Rate fallback on Link training failure Manasi Navare
2016-10-19 21:46 ` [PATCH RFC 8/8] drm/i915: Add support for DP link training compliance Manasi Navare
2016-10-19 22:24 ` ✗ Fi.CI.BAT: failure for Hotplug Uevent on Link training failure on DP 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=1476913584-16948-3-git-send-email-manasi.d.navare@intel.com \
    --to=manasi.d.navare@intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --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.