[Intel-xe] [PATCH 13/15] drm/xe/lnl: Add LNL platform definition
Matt Roper
matthew.d.roper at intel.com
Fri Aug 11 16:23:47 UTC 2023
On Fri, Aug 11, 2023 at 09:06:16AM -0700, Lucas De Marchi wrote:
> From: Matt Roper <matthew.d.roper at intel.com>
>
> LNL is an integrated GPU based on the Xe2 architecture.
>
> Bspec: 70821
> Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
> Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
Since this patch is just being posted for the first time, was this
supposed to be a Cc: rather than an r-b?
Matt
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> ---
> drivers/gpu/drm/xe/xe_pci.c | 7 +++++++
> drivers/gpu/drm/xe/xe_platform_types.h | 1 +
> include/drm/xe_pciids.h | 5 +++++
> 3 files changed, 13 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index 70d5f25c0d208..5e3ffe76cc460 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -342,6 +342,12 @@ static const struct xe_device_desc mtl_desc = {
> .has_display = true,
> };
>
> +static const struct xe_device_desc lnl_desc = {
> + PLATFORM(XE_LUNARLAKE),
> + .has_4tile = true,
> + .require_force_probe = true,
> +};
> +
> #undef PLATFORM
> __diag_pop();
>
> @@ -382,6 +388,7 @@ static const struct pci_device_id pciidlist[] = {
> XE_DG2_IDS(INTEL_VGA_DEVICE, &dg2_desc),
> XE_PVC_IDS(INTEL_VGA_DEVICE, &pvc_desc),
> XE_MTL_IDS(INTEL_VGA_DEVICE, &mtl_desc),
> + XE_LNL_IDS(INTEL_VGA_DEVICE, &lnl_desc),
> { }
> };
> MODULE_DEVICE_TABLE(pci, pciidlist);
> diff --git a/drivers/gpu/drm/xe/xe_platform_types.h b/drivers/gpu/drm/xe/xe_platform_types.h
> index abbb8a1f29a8e..e378a64a0f863 100644
> --- a/drivers/gpu/drm/xe/xe_platform_types.h
> +++ b/drivers/gpu/drm/xe/xe_platform_types.h
> @@ -21,6 +21,7 @@ enum xe_platform {
> XE_DG2,
> XE_PVC,
> XE_METEORLAKE,
> + XE_LUNARLAKE,
> };
>
> enum xe_subplatform {
> diff --git a/include/drm/xe_pciids.h b/include/drm/xe_pciids.h
> index 43afd973e153b..29f07a00ac0fd 100644
> --- a/include/drm/xe_pciids.h
> +++ b/include/drm/xe_pciids.h
> @@ -207,4 +207,9 @@
> XE_MTL_S_IDS(MACRO__, ## __VA_ARGS__), \
> XE_ARL_IDS(MACRO__, ## __VA_ARGS__)
>
> +#define XE_LNL_IDS(MACRO__, ...) \
> + MACRO__(0x6420, ## __VA_ARGS__), \
> + MACRO__(0x64A0, ## __VA_ARGS__), \
> + MACRO__(0x64B0, ## __VA_ARGS__)
> +
> #endif
> --
> 2.40.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list