drm/i915/perf: Determine context valid in OA reports
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Wed, 2 Aug 2023 20:28:54 +0000 (13:28 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 24 Oct 2023 13:41:56 +0000 (09:41 -0400)
commitcba94bbcff08d209710dd7bdc139caad675a6f8d
tree674c6faeaa67471afe267b6430381f14b3de460c
parent05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
drm/i915/perf: Determine context valid in OA reports

When supporting OA for TGL, it was seen that the context valid bit in
the report ID was not defined, however revisiting the spec seems to have
this bit defined. The bit is used to determine if a context is valid on
a context switch and is essential to determine active and idle periods
for a context. Re-enable the context valid bit for gen12 platforms.

BSpec: 52196 (description of report_id)

v2: Include BSpec reference (Ashutosh)

Fixes: 00a7f0d7155c ("drm/i915/tgl: Add perf support on TGL")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230802202854.1224547-1-umesh.nerlige.ramappa@intel.com
(cherry picked from commit 7eeaedf79989a8f131939782832e21e9218ed2a0)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_perf.c