From: Daniel Vetter <daniel@ffwll.ch>
To: Sonika Jindal <sonika.jindal@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/4] drm/i915: Retry for live status
Date: Wed, 26 Aug 2015 11:39:57 +0200 [thread overview]
Message-ID: <20150826093957.GD1367@phenom.ffwll.local> (raw)
In-Reply-To: <1440504093-19370-5-git-send-email-sonika.jindal@intel.com>
On Tue, Aug 25, 2015 at 05:31:33PM +0530, Sonika Jindal wrote:
> Some monitors take time in setting the live status.
> So retry for few times if this is a connect HPD
>
> Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Why was this bugfix not part of the original series? Now I have to retest
on my ivb to figure out whether maybe this one here is the issue ...
Also how exactly does this work? I thought the hpd bits control whether we
get an interrupt, not the other way round? Why exactly does this help?
Definitely needs a lot more explanation.
Also this seems to break bisect, since before the preceeding patch to
check hpd status we just retried edid reading for a while.
This kind of hacking doesn't really convince me that hpd status is
working, just that our own testing isn't good enough to catch all
real-world issues.
-Daniel
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 59518b4..239d70d 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1415,6 +1415,7 @@ void intel_hdmi_probe(struct intel_encoder *intel_encoder)
> struct intel_connector *intel_connector =
> intel_hdmi->attached_connector;
> bool live_status = false;
> + unsigned int retry = 3;
>
> /*
> * Sometimes DDI ports are enumerated as DP as well as HDMI and
> @@ -1425,6 +1426,20 @@ void intel_hdmi_probe(struct intel_encoder *intel_encoder)
> return;
>
> live_status = intel_hdmi_live_status(hdmi_to_dig_port(intel_hdmi));
> + if (!intel_connector->detect_edid && live_status == false) {
> + /*
> + * Hotplug had occurred and old status was disconnected,
> + * so it might be possible that live status is not set,
> + * so retry for few times
> + */
> + do {
> + mdelay(10);
> + live_status = intel_hdmi_live_status(hdmi_to_dig_port(intel_hdmi));
> + if (live_status)
> + break;
> + } while (retry--);
> + }
> +
> /*
> * We are here, means there is a hotplug or a force
> * detection. Clear the cached EDID and probe the
> --
> 1.7.10.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-08-26 9:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 12:01 [PATCH 0/4] HDMI optimization series Sonika Jindal
2015-08-25 12:01 ` [PATCH 1/4] drm/i915: add attached connector to hdmi container Sonika Jindal
2015-08-25 12:01 ` [PATCH 2/4] drm/i915: Add HDMI probe function Sonika Jindal
2015-08-25 12:01 ` [PATCH 3/4] drm/i915: Check live status before reading edid Sonika Jindal
2015-08-25 16:51 ` Jani Nikula
2015-08-26 4:36 ` Hindman, Gavin
2015-08-26 6:36 ` Jani Nikula
2015-08-25 12:01 ` [PATCH 4/4] drm/i915: Retry for live status Sonika Jindal
2015-08-26 9:39 ` Daniel Vetter [this message]
2015-08-26 10:05 ` Jindal, Sonika
2015-08-26 15:17 ` Daniel Vetter
2015-08-27 9:16 ` Sharma, Shashank
2015-09-02 8:46 ` Daniel Vetter
2015-08-29 11:10 ` shuang.he
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=20150826093957.GD1367@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=sonika.jindal@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