drm/i915/perf: Fix OA context id overlap with idle context id
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fri, 24 Jan 2020 01:37:01 +0000 (17:37 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Jan 2020 21:11:59 +0000 (21:11 +0000)
commit6f280b133dc2468d86ecb5c3c7c5dbc4f23e49fc
tree5d6b9bdde6ffb7e23761280ef3639fd801115a87
parente5429340bfa2dc43a07c3329e0c30cdae4cc0b35
drm/i915/perf: Fix OA context id overlap with idle context id

Engine context pinned in perf OA was set to same context id as
the idle context. Set the context id to an unused value.

Clear the sw context id field in lrc descriptor before ORing with
ce->tag (Chris)

Closes: https://gitlab.freedesktop.org/drm/intel/issues/756
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200124013701.40609-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/i915_perf.c