drm/i915: fixup assert_pipe to take the pipe A quirk into account
Subsystems (2)
PATCH 1/1 drm/i915: fixup assert_pipe to take the pipe A quirk into account
This was completely spamming dmesg on my i855gm.
--- drivers/gpu/drm/i915/intel_display.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_display.c +4 -0
@@ -936,6 +936,10 @@ void assert_pipe(struct drm_i915_private *dev_priv,u32 val;bool cur_state; +/* if we need the pipe A quirk it must be always on */ +if (pipe ==PIPE_A && dev_priv->quirks &QUIRK_PIPEA_FORCE ) + state = true; + reg =PIPECONF (pipe); val =I915_READ (reg); cur_state = !!(val &PIPECONF_ENABLE );
Signature · 1 line
1.7.8.3
Quoted 1 line · Daniel Vetter
This was completely spamming dmesg on my i855gm.
This comes from intel_disable_pll, which wants to turn the pll off, but if the pipe is still active, it won't be able to. This seems bad to me.
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Keith Packard
Quoted 1 line · Daniel Vetter
This was completely spamming dmesg on my i855gm.
This comes from
intel_disable_pll, which wants to turn the pll off, but if the pipe is still active, it won't be able to. This seems bad to me.
I honestly can't reconcile your comment with the code&patch. Afaics
- the pll disable code checks for the pipe a quirk and does an early exit before mucking around with the hw and calling assert_pipe.
- assert_pipe only does a WARN and the patch only changes whether we hit that WARN. All reg reads/writes should be unchanged.
- the backtrace I'm seeing goes through crtc_disable.
Yours, Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
Quoted 7 lines · On Mon, 23 Jan 2012 20:40:27 +0100 Daniel Vetter <[email protected]> wrote:
Quoted 5 lines · Keith Packard
Quoted 1 line · Daniel Vetter
This was completely spamming dmesg on my i855gm.
This comes from
intel_disable_pll, which wants to turn the pll off, but if the pipe is still active, it won't be able to. This seems bad to me.
Quoted 6 lines
I honestly can't reconcile your comment with the code&patch. Afaics
- the pll disable code checks for the pipe a quirk and does an early exit before mucking around with the hw and callingassert_pipe.
-assert_pipeonly does a WARN and the patch only changes whether we hit that WARN. All reg reads/writes should be unchanged.
- the backtrace I'm seeing goes throughcrtc_disable.
Ah ok so it's coming from the new pipe disabled check Chris added. Patch looks fine... and reminds me to be puzzled about the pipe a force quirk on 855. :)
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 17 lines · Jesse Barnes
Quoted 7 lines · On Mon, 23 Jan 2012 20:40:27 +0100 Daniel Vetter <[email protected]> wrote:
Quoted 5 lines · Keith Packard
Quoted 1 line · Daniel Vetter
This was completely spamming dmesg on my i855gm.
This comes from
intel_disable_pll, which wants to turn the pll off, but if the pipe is still active, it won't be able to. This seems bad to me.Quoted 6 lines
I honestly can't reconcile your comment with the code&patch. Afaics
- the pll disable code checks for the pipe a quirk and does an early exit before mucking around with the hw and callingassert_pipe.
-assert_pipeonly does a WARN and the patch only changes whether we hit that WARN. All reg reads/writes should be unchanged.
- the backtrace I'm seeing goes throughcrtc_disable.
Quoted 3 lines
Ah ok so it's coming from the new pipe disabled check Chris added. Patch looks fine... and reminds me to be puzzled about the pipe a force quirk on 855. :)
Ok, I've queued this for next with an improved commit msg stating that this was only shortly introduced in -next (plus citing the offending commit).
Thanks, Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48