i915/perf: Store a mask of valid OA formats for a platform
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Mon, 8 Feb 2021 17:40:27 +0000 (09:40 -0800)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 9 Feb 2021 11:26:29 +0000 (13:26 +0200)
commit77892f4f050e73e5998c4f3a12b1e459680be7f6
tree04048599a5cea15af550fa2d7bd4a1daa9f3dc5d
parente22fa6f0a9760297295c621fdcd4e29cf32fcfbd
i915/perf: Store a mask of valid OA formats for a platform

Validity of an OA format is checked by using a sparse array of formats
per gen. Instead maintain a mask of supported formats for a platform in
the perf object.

v2: Use set_bit and test_bit style for the format_mask (Chris)

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210208174029.45621-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf_types.h