]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check idle to active before processing CSQ
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 6 Aug 2015 14:09:17 +0000 (17:09 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Aug 2015 15:50:40 +0000 (17:50 +0200)
commitb14b714b9f1f2a1cc67a46c9738694dc85e5a12f
tree196c1be4c9261f6371d9917a23f402b7d3d1b687
parent5fa5aaa737e6d965e4af90b3fa11326f4702f98d
drm/i915: Check idle to active before processing CSQ

If idle to active bit is set, the rest of the fields
in CSQ are not valid.

Bail out early if this is the case in order to prevent
rest of the loop inspecting stale values.

This was found by Bspec/code inspection. Doesn't seem to fix any of
the known issues.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Arun Siluvery <arun.siluvery@linux.intel.com>
[danvet: Add note about how this was found.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c