]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: always consider holding preemption a privileged op
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Nov 2019 09:53:08 +0000 (11:53 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Nov 2019 10:14:01 +0000 (12:14 +0200)
commit0b0120d4c7b013eba59b33254febc0a6e4049e13
treee01a6a0304671d3d31f349e1bc92e44c68f398f3
parentbaea9ffe64200033499a4955f431e315bb807899
drm/i915/perf: always consider holding preemption a privileged op

The ordering of the checks in the existing code can lead to holding
preemption not being considered as privileged op.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 9cd20ef7803c ("drm/i915/perf: allow holding preemption on filtered ctx")
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191111095308.2550-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c