platform/x86/intel/tpmi: Add additional TPMI header fields
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 23 Apr 2024 20:46:13 +0000 (13:46 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 11:01:08 +0000 (13:01 +0200)
commitc8405cc815151a8b2fa6f7510ede8256228e45da
treecfbc29fbd69a1104964678fad7eba97883f2859a
parent1192534407d0f8ab9a0503052777260ae74968c3
platform/x86/intel/tpmi: Add additional TPMI header fields

TPMI information header added additional fields in version 2. Some of the
reserved fields in version 1 are used to define new fields.

Parse new fields and export as part of platform data. These fields include:
- PCI segment ID
- Partition ID of the package: If a package is represented by more than
  one PCI device, then partition ID along with cdie_mask, describes the
  scope. For example to update get/set properties for a compute die, one
  of the PCI MMIO region is selected from the partition ID.
- cdie_mask: Mask of all compute dies in this partition.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240423204619.3946901-5-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/tpmi.c
include/linux/intel_tpmi.h