[PATCH i-g-t v4 1/8] PTL: lib/intel_chipset: add pantherlake definition and support
Matt Roper
matthew.d.roper at intel.com
Fri Dec 6 23:30:15 UTC 2024
On Fri, Dec 06, 2024 at 01:27:41PM -0800, Clint Taylor wrote:
> From: Matt Atwood <matthew.s.atwood at intel.com>
>
> Add support for the pantherlake platform for xe.
>
> Signed-off-by: Matt Atwood <matthew.s.atwood at intel.com>
> Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar at intel.com>
> Signed-off-by: Clint Taylor <Clinton.A.Taylor at intel.com>
It's bad that we're still hardcoding the graphics version in the device
info structures for these platforms, but that misdesign needs to be
fixed separately.
The changes here seem accurate for the current design.
Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> lib/intel_chipset.h | 2 ++
> lib/intel_device_info.c | 13 +++++++++++++
> 2 files changed, 15 insertions(+)
>
> diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
> index 0c04476bf..c93ad9f75 100644
> --- a/lib/intel_chipset.h
> +++ b/lib/intel_chipset.h
> @@ -92,6 +92,8 @@ struct intel_device_info {
> bool is_pontevecchio : 1;
> bool is_lunarlake : 1;
> bool is_battlemage : 1;
> + bool is_pantherlake : 1;
> +
> const struct intel_cmds_info *cmds_info;
> const char *codename;
> };
> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
> index d38dc415d..349cf1b48 100644
> --- a/lib/intel_device_info.c
> +++ b/lib/intel_device_info.c
> @@ -526,6 +526,17 @@ static const struct intel_device_info intel_battlemage_info = {
> .cmds_info = &xe2_cmds_info,
> };
>
> +static const struct intel_device_info intel_pantherlake_info = {
> + .graphics_ver = 30,
> + .graphics_rel = 0,
> + .display_ver = 30,
> + .has_4tile = true,
> + .has_flatccs = true,
> + .is_pantherlake = true,
> + .codename = "pantherlake",
> + .cmds_info = &xe2_cmds_info,
> +};
> +
> #define INTEL_PCI_ID_INIT(_id, _info) { \
> .vendor_id = 0x8086, .device_id = (_id), \
> .subvendor_id = PCI_MATCH_ANY, .subdevice_id = PCI_MATCH_ANY, \
> @@ -642,6 +653,8 @@ static const struct pci_id_match intel_device_match[] = {
>
> INTEL_BMG_IDS(INTEL_PCI_ID_INIT, &intel_battlemage_info),
>
> + INTEL_PTL_IDS(INTEL_PCI_ID_INIT, &intel_pantherlake_info),
> +
> INTEL_PCI_ID_INIT(PCI_MATCH_ANY, &intel_generic_info),
> };
>
> --
> 2.25.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the igt-dev
mailing list