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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 12 Nov 2019 08:22:37 +0000 (10:22 +0200)
commit2b3c7f0db8b4518713bad16e99271439d22dbc9d
tree64cdc8f993ed16112fa40d47ae730e1d08887926
parentf77021372e2880237278e0ee57faadc077a8256a
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
(cherry picked from commit 0b0120d4c7b013eba59b33254febc0a6e4049e13)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_perf.c