drm/i915: don't clobber the pipe param in sanitize_modesetting
Subsystems (2)
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.
--- drivers/gpu/drm/i915/intel_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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);I915_WRITE (reg,I915_READ (reg) & ~PIPECONF_FRAME_START_DELAY_MASK ); }
Signature · 1 line
1.7.10
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
f47166d2b0001fcb752b40c5a2d4db986dfbea68Author: 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)Signed-off-by Daniel Vetter <[email protected]>
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
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
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.
--- drivers/gpu/drm/i915/intel_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +3 -2
@@ -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
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
f47166d2b0001fcb752b40c5a2d4db986dfbea68Author: Chris Wilson <[email protected]> Date: Thu Mar 22 15:00:50 2012 +0000drm/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)Signed-off-by Daniel Vetter <[email protected]>
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Daniel Vetter
AppliedQuoted 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
f47166d2b0001fcb752b40c5a2d4db986dfbea68Author: Chris Wilson <[email protected]> Date: Thu Mar 22 15:00:50 2012 +0000drm/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)Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Chris Wilson <[email protected]>
Queued for -next, thanks for the review.
-Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
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 +0000drm/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)Signed-off-by Daniel Vetter <[email protected]>
--
Eugeni Dodonov