]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/perf: Express OA register ranges with i915_range
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 27 Jan 2022 23:43:30 +0000 (15:43 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Feb 2022 15:52:23 +0000 (07:52 -0800)
commit66a19a3a0e2d200121f30a48d13b80532582f1a5
tree97ea41ee49d0fa1d773355fa48248a1a2764dc7e
parent2ef6d3bf426218440b156d392cf95e830990e0e4
drm/i915/perf: Express OA register ranges with i915_range

Let's use 'struct i915_range' to express sets of b-counter and mux
registers in the perf code.  This makes the code more similar to how we
handle things like multicast register ranges, forcewake tables, shadow
tables, etc. and also lets us avoid needing symbolic register name
definitions for the various range end points.  With this change, many of
the OA register definitions are no longer used in the code, so we can
drop their #define's for simplicity.

v2:  Drop 'inline' from reg_in_range_table().  (Jani)

v3:  Split the first range in gen12_oa_mux_regs[] so that 0xd08 isn't
     whitelisted.  (Umesh)

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127234334.4016964-3-matthew.d.roper@intel.com
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf_oa_regs.h