Skip to contentSkip to conversation

drm/i915: don't clobber the pipe param in sanitize_modesetting

PATCH In review Daniel Vetter 4 participants 6 messages May 13, 2012 – May 19, 2012

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

PATCH 1/1 drm/i915: don't clobber the pipe param in sanitize_modesetting

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68

Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000

drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)
---
 drivers/gpu/drm/i915/intel_display.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +2 -1
index fb05d9d..525dc65 100644
@@ -6257,9 +6257,10 @@ static void intel_sanitize_modesetting(struct drm_device *dev,
 {
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	u32 reg, val;
+	int i;
 
 	/* Clear any frame start delays used for debugging left by the BIOS */
-	for_each_pipe(pipe) {
+	for_each_pipe(i) {
 		reg = PIPECONF(pipe);
 		I915_WRITE(reg, I915_READ(reg) & ~PIPECONF_FRAME_START_DELAY_MASK);
 	}
Signature · 1 line
1.7.10
#1 lore raw
Quoted 7 lines · Daniel Vetter

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68

Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000
Quoted 8 lines

drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)

Note this will also explain some of the bogosity with
https://bugs.freedesktop.org/show_bug.cgi?id=49838 on dinq.

Quoted 9 lines
---
 drivers/gpu/drm/i915/intel_display.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +0 -0
index fb05d9d..525dc65 100644

drivers/gpu/drm/i915/intel_display.c static void intel_sanitize_modesetting(struct drm_device *dev, · line 6264

Quoted 9 lines
drivers/gpu/drm/i915/intel_display.c +2 -1
@@ -6257,9 +6257,10 @@ static void intel_sanitize_modesetting(struct drm_device *dev,
 {
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	u32 reg, val;
+	int i;
 
 	/* Clear any frame start delays used for debugging left by the BIOS */
-	for_each_pipe(pipe) {
+	for_each_pipe(i) {
 		reg = PIPECONF(pipe);

s/pipe/i/
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw

PATCH 1/1 drm/i915: don't clobber the pipe param in sanitize_modesetting

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68

Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000

drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

v2: I've totally failed to do the s/pipe/i/ correctly, spotted by Chris Wilson.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)
---
 drivers/gpu/drm/i915/intel_display.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +3 -2
index fb05d9d..f4692f8 100644
@@ -6257,10 +6257,11 @@ static void intel_sanitize_modesetting(struct drm_device *dev,
 {
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	u32 reg, val;
+	int i;
 
 	/* Clear any frame start delays used for debugging left by the BIOS */
-	for_each_pipe(pipe) {
-		reg = PIPECONF(pipe);
+	for_each_pipe(i) {
+		reg = PIPECONF(i);
 		I915_WRITE(reg, I915_READ(reg) & ~PIPECONF_FRAME_START_DELAY_MASK);
 	}
 
Signature · 1 line
1.7.10
Reviewed-by on v1 1/1
#3 lore raw
Quoted 12 lines · Daniel Vetter

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68

Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000

drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

Quoted 6 lines

v2: I've totally failed to do the s/pipe/i/ correctly, spotted by Chris Wilson.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#4 lore raw
Quoted 13 lines · Chris Wilson
Quoted 12 lines · Daniel Vetter

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68

Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000

drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

Quoted 7 lines
Quoted 6 lines

v2: I've totally failed to do the s/pipe/i/ correctly, spotted by Chris Wilson.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)

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

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
Reviewed-by on v1 1/1
#5 lore raw
In reply to Daniel Vetter
Quoted 13 lines · Daniel Vetter

... we need it later on in the function to clean up pipe <-> plane associations. This regression has been introduced in

commit f47166d2b0001fcb752b40c5a2d4db986dfbea68
Author: Chris Wilson <[email protected]>
Date:   Thu Mar 22 15:00:50 2012 +0000

   drm/i915: Sanitize BIOS debugging bits from PIPECONF

Spotted by staring at debug output of an (as it turns out) totally unrelated bug.

Quoted 6 lines

v2: I've totally failed to do the s/pipe/i/ correctly, spotted by Chris Wilson.

Cc Chris Wilson <[email protected]>
Cc [email protected] (the regression was Cc: stable, too)

--
Eugeni Dodonov