platform/x86/intel/ifs: Gen2 Scan test support
authorJithu Joseph <jithu.joseph@intel.com>
Thu, 5 Oct 2023 19:51:32 +0000 (12:51 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 6 Oct 2023 10:05:18 +0000 (13:05 +0300)
commit72b96ee29ed6f7670bbb180ba694816e33d361d1
tree6c244c71a94bba0fd11ec1d703bf43dd725647e6
parent07f47c01b3bc2a42c4d4da35831edab10aa60449
platform/x86/intel/ifs: Gen2 Scan test support

Width of chunk related bitfields is ACTIVATE_SCAN and SCAN_STATUS MSRs
are different in newer IFS generation compared to gen0.

Make changes to scan test flow such that MSRs are populated
appropriately based on the generation supported by hardware.

Account for the 8/16 bit MSR bitfield width differences between gen0 and
newer generations for the scan test trace event too.

Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tested-by: Pengfei Xu <pengfei.xu@intel.com>
Link: https://lore.kernel.org/r/20231005195137.3117166-5-jithu.joseph@intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/ifs/ifs.h
drivers/platform/x86/intel/ifs/runtest.c
include/trace/events/intel_ifs.h