]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: only update no_fbc_reason when active
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Aug 2017 07:23:27 +0000 (09:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Aug 2017 14:57:18 +0000 (16:57 +0200)
commit0d985f0c7822ecdce273183561572cfeb3c78907
tree5ddd9e7afd460d59325533a56e9c7116cf1ab143
parent6668f5d965c9a4b74fc1ad9de3a4bf5790f6d936
drm/i915/fbc: only update no_fbc_reason when active

In our snb farm in CI we have plenty of underruns, but not enough
stolen memory to enable fbc. Which means every time there's an
underrun the no_fbc_reason swichtes to something that makes
kms_frontbuffer_tracking fail instead of skip, adding massive amounts
of additional noise to igt test runs.

Make sure we don't try to disable fbc when it's off already.

v2: Squash in additional WARN_ON suggestion from Chris.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170811072327.4335-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/intel_fbc.c