]> 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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 12 Nov 2019 08:22:37 +0000 (10:22 +0200)
commit1b465633019438e6d9d33c0d21bbc2bb1387ea30
tree64cdc8f993ed16112fa40d47ae730e1d08887926
parentd6eeb010a30a9568674022faa02e3c656d1b4cb2
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: 84de59d7deeb ("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