platform/x86/intel/ifs: Store IFS generation number
authorJithu Joseph <jithu.joseph@intel.com>
Thu, 5 Oct 2023 19:51:29 +0000 (12:51 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 6 Oct 2023 10:05:13 +0000 (13:05 +0300)
commit97a5e801b3045c1e800f76bc0fb544972538089d
tree4bc229d5aa2780ba7abfc455748f50f28e54cb8f
parentcdb1013808bed0c0c392b44ed4eed6c7743028c3
platform/x86/intel/ifs: Store IFS generation number

IFS generation number is reported via MSR_INTEGRITY_CAPS.  As IFS
support gets added to newer CPUs, some differences are expected during
IFS image loading and test flows.

Define MSR bitmasks to extract and store the generation in driver data,
so that driver can modify its MSR interaction appropriately.

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-2-jithu.joseph@intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
arch/x86/include/asm/msr-index.h
drivers/platform/x86/intel/ifs/core.c
drivers/platform/x86/intel/ifs/ifs.h