Skip to contentSkip to conversation

drm/i915: mdelay(10) considered harmful

PATCH Applied Daniel Vetter 4 participants 4 messages Dec 11, 2015 – Dec 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: mdelay(10) considered harmful

I missed this myself when reviewing

commit 237ed86c693d8a8e4db476976aeb30df4deac74b

Author: Sonika Jindal <[email protected]>
Date:   Tue Sep 15 09:44:20 2015 +0530

drm/i915: Check live status before reading edid

Long sleeps like this really shouldn't waste cpy cycles spinning.

Cc Sonika Jindal <[email protected]>
Cc "Wang, Gary C" <[email protected]>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_hdmi.c +1 -1
index c3978bad5ca0..b0a5a883227c 100644
@@ -1397,7 +1397,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
 	while (!live_status && --retry) {
 		live_status = intel_digital_port_connected(dev_priv,
 				hdmi_to_dig_port(intel_hdmi));
-		mdelay(10);
+		msleep(10);
 	}
 
 	if (!live_status)
Signature · 6 lines
2.5.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 9 lines · Daniel Vetter

I missed this myself when reviewing

commit 237ed86c693d8a8e4db476976aeb30df4deac74b

Author: Sonika Jindal <[email protected]>
Date:   Tue Sep 15 09:44:20 2015 +0530

drm/i915: Check live status before reading edid

Long sleeps like this really shouldn't waste cpy cycles spinning.

Also start contemplating async workers for detection? -Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#2 lore raw
In reply to Daniel Vetter

%s/cpy/cpu

Quoted 22 lines · Daniel Vetter

I missed this myself when reviewing

commit 237ed86c693d8a8e4db476976aeb30df4deac74b

Author: Sonika Jindal <[email protected]>
Date:   Tue Sep 15 09:44:20 2015 +0530

drm/i915: Check live status before reading edid

Long sleeps like this really shouldn't waste cpy cycles spinning.

Cc Sonika Jindal <[email protected]>
Cc "Wang, Gary C" <[email protected]>
---
  drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_hdmi.c +0 -0
index c3978bad5ca0..b0a5a883227c 100644

drivers/gpu/drm/i915/intel_hdmi.c intel_hdmi_detect(struct drm_connector *connector, bool force) · line 1403

Quoted 8 lines
drivers/gpu/drm/i915/intel_hdmi.c +1 -1
@@ -1397,7 +1397,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
  	while (!live_status && --retry) {
  		live_status = intel_digital_port_connected(dev_priv,
  				hdmi_to_dig_port(intel_hdmi));
-		mdelay(10);
+		msleep(10);
  	}
 
  	if (!live_status)

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
Quoted 3 lines · Sonika

%s/cpy/cpu

Queued for -next, thanks for the review.
-Daniel

Quoted 36 lines · Daniel Vetter
Quoted 22 lines

I missed this myself when reviewing

commit 237ed86c693d8a8e4db476976aeb30df4deac74b

Author: Sonika Jindal <[email protected]>
Date:   Tue Sep 15 09:44:20 2015 +0530

drm/i915: Check live status before reading edid

Long sleeps like this really shouldn't waste cpy cycles spinning.

Cc Sonika Jindal <[email protected]>
Cc "Wang, Gary C" <[email protected]>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_hdmi.c +0 -0
index c3978bad5ca0..b0a5a883227c 100644

drivers/gpu/drm/i915/intel_hdmi.c intel_hdmi_detect(struct drm_connector *connector, bool force) · line 1402

Quoted 7 lines
drivers/gpu/drm/i915/intel_hdmi.c +1 -1
@@ -1397,7 +1397,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
 	while (!live_status && --retry) {
 		live_status = intel_digital_port_connected(dev_priv,
 				hdmi_to_dig_port(intel_hdmi));
-		mdelay(10);
+		msleep(10);
 	}
 	if (!live_status)

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx