diff mbox

drm/i915: increase the tries for HDMI hotplug live status checking

Message ID 1450858295-12804-1-git-send-email-gary.c.wang@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gary C Wang Dec. 23, 2015, 8:11 a.m. UTC
The total delay of HDMI hotplug detecting with 30ms is sometimes not
enoughtfor HDMI live status up with specific HDMI monitors in BSW platform.

After doing experiments for following monitors, it needs 80ms at least
for those worst cases.

Lenovo L246 1xwA (4 failed, necessary hot-plug delay: 58/40/60/40ms)
Philips HH2AP (9 failed, necessary hot-plug delay: 80/50/50/60/46/40/58/58/39ms)
BENQ ET-0035-N (6 failed, necessary hot-plug delay: 60/50/50/80/80/40ms)
DELL U2713HM (2 failed, necessary hot-plug delay: 58/59ms)
HP HP-LP2475w (5 failed, necessary hot-plug delay: 70/50/40/60/40ms)

It looks like 70-80 ms is BSW platform needs in some bad cases of the
monitors at this end (8 times delay at most). Keep less than 100ms for
HDCP pulse HPD low (with at least 100ms) to respond a plug out.

Reviewed-by: Cooper Chiou <cooper.chiou@intel.com>
Tested-by: Gary Wang <gary.c.wang@intel.com>
Cc: Gavin Hindman <gavin.hindman@intel.com>
Cc: Sonika Jindal <sonika.jindal@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Shobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: Gary Wang <gary.c.wang@intel.com>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 drivers/gpu/drm/i915/intel_hdmi.c

Comments

Shobhit Kumar Dec. 23, 2015, 11:34 a.m. UTC | #1
On 12/23/2015 01:41 PM, Gary Wang wrote:
> The total delay of HDMI hotplug detecting with 30ms is sometimes not
> enoughtfor HDMI live status up with specific HDMI monitors in BSW platform.
>
> After doing experiments for following monitors, it needs 80ms at least
> for those worst cases.
>
> Lenovo L246 1xwA (4 failed, necessary hot-plug delay: 58/40/60/40ms)
> Philips HH2AP (9 failed, necessary hot-plug delay: 80/50/50/60/46/40/58/58/39ms)
> BENQ ET-0035-N (6 failed, necessary hot-plug delay: 60/50/50/80/80/40ms)
> DELL U2713HM (2 failed, necessary hot-plug delay: 58/59ms)
> HP HP-LP2475w (5 failed, necessary hot-plug delay: 70/50/40/60/40ms)
>
> It looks like 70-80 ms is BSW platform needs in some bad cases of the
> monitors at this end (8 times delay at most). Keep less than 100ms for
> HDCP pulse HPD low (with at least 100ms) to respond a plug out.
>

Tested-by: Shobhit Kumar <shobhit.kumar@intel.com>

Adding
Cc: drm-intel-fixes@lists.freedesktop.org

> Reviewed-by: Cooper Chiou <cooper.chiou@intel.com>
> Tested-by: Gary Wang <gary.c.wang@intel.com>
> Cc: Gavin Hindman <gavin.hindman@intel.com>
> Cc: Sonika Jindal <sonika.jindal@intel.com>
> Cc: Shashank Sharma <shashank.sharma@intel.com>
> Cc: Shobhit Kumar <shobhit.kumar@intel.com>
> Signed-off-by: Gary Wang <gary.c.wang@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>   mode change 100644 => 100755 drivers/gpu/drm/i915/intel_hdmi.c
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> old mode 100644
> new mode 100755
> index 6214175..4a77639
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1392,7 +1392,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
>
>   	intel_display_power_get(dev_priv, POWER_DOMAIN_GMBUS);
>
> -	for (try = 0; !live_status && try < 4; try++) {
> +	for (try = 0; !live_status && try < 9; try++) {
>   		if (try)
>   			msleep(10);
>   		live_status = intel_digital_port_connected(dev_priv,
>
Jani Nikula Dec. 30, 2015, 11:57 a.m. UTC | #2
On Wed, 23 Dec 2015, Gary Wang <gary.c.wang@intel.com> wrote:
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> old mode 100644
> new mode 100755

Please pay more attention to not changing the file permissions.

Thanks,
Jani.
Shobhit Kumar Dec. 30, 2015, 5:47 p.m. UTC | #3
On 12/30/2015 05:27 PM, Jani Nikula wrote:
> On Wed, 23 Dec 2015, Gary Wang <gary.c.wang@intel.com> wrote:
>> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
>> old mode 100644
>> new mode 100755
>
> Please pay more attention to not changing the file permissions.
>

Yeah, and the new permissions are merged in drm-intel-nightly. Needs 
correcting the permissions back.

Regards
Shobhit

> Thanks,
> Jani.
>
Gary C Wang Jan. 4, 2016, 2 a.m. UTC | #4
So sorry for it, and will keep in mind on this kind of mistake.

Gary

-----Original Message-----
From: Kumar, Shobhit [mailto:shobhit.kumar@linux.intel.com] 

Sent: Thursday, December 31, 2015 1:47 AM
To: Jani Nikula <jani.nikula@linux.intel.com>; Wang, Gary C <gary.c.wang@intel.com>; intel-gfx@lists.freedesktop.org
Cc: Kumar, Shobhit <shobhit.kumar@intel.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915: increase the tries for HDMI hotplug live status checking

On 12/30/2015 05:27 PM, Jani Nikula wrote:
> On Wed, 23 Dec 2015, Gary Wang <gary.c.wang@intel.com> wrote:

>> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c 

>> b/drivers/gpu/drm/i915/intel_hdmi.c

>> old mode 100644

>> new mode 100755

>

> Please pay more attention to not changing the file permissions.

>


Yeah, and the new permissions are merged in drm-intel-nightly. Needs correcting the permissions back.

Regards
Shobhit

> Thanks,

> Jani.

>
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
old mode 100644
new mode 100755
index 6214175..4a77639
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -1392,7 +1392,7 @@  intel_hdmi_detect(struct drm_connector *connector, bool force)
 
 	intel_display_power_get(dev_priv, POWER_DOMAIN_GMBUS);
 
-	for (try = 0; !live_status && try < 4; try++) {
+	for (try = 0; !live_status && try < 9; try++) {
 		if (try)
 			msleep(10);
 		live_status = intel_digital_port_connected(dev_priv,