]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix initial pipe underrun state tracking
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 23 Mar 2014 23:01:41 +0000 (00:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 28 Mar 2014 17:25:19 +0000 (18:25 +0100)
commit5a8bca7a3bd6a2e23671a41566d40c0280c5b202
tree043f5f61c65adb22ea2fc2c07c68cff0b51679e8
parent3ee883226778925723416fd8f4ea9430d7fc5cac
drm/i915: Fix initial pipe underrun state tracking

Since

commit 8944c3140995c2945158d2ad75d6cec5b19679ce
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Mar 7 20:34:46 2014 +0100

    drm/i915: Don't enable display error interrupts from the start

we don't enable underrun interrupts any more at takeover time.
Unfortunately I've forgotten to also adjust the sw-side tracking.

Since the code assumes that disabled pipes have underrun reporting
enabled set the disable flag only on all pipes which are active at
takeover time. Without this underrun reporting wasn't enabled
correctly on the first modeset. Note that for fastboot this is another
piece of state that needs to be fixed up by enabling the underrung
reporting after watermarks have beend fixed up.

On ivb/hsw an additional effect of this regression was that also all
cpu crc reporting stopped working since the master error interrupt it
shared across all pipes and sources.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76150
[danvet: Augment the code comment and polish the commit message a bit,
as discussed with Jani.]
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: lu hua <huax.lu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c