Skip to content

Commit

Permalink
drm/xe/lnl: Add LNL platform definition
Browse files Browse the repository at this point in the history
LNL is an integrated GPU based on the Xe2 architecture.

Bspec: 70821
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
  • Loading branch information
mattrope authored and rodrigovivi committed Dec 21, 2023
1 parent 0993b22 commit 3330361
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/xe/xe_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ static const struct xe_device_desc mtl_desc = {
PLATFORM(XE_METEORLAKE),
};

static const struct xe_device_desc lnl_desc = {
PLATFORM(XE_LUNARLAKE),
.require_force_probe = true,
};

#undef PLATFORM

/* Map of GMD_ID values to graphics IP */
Expand Down Expand Up @@ -356,6 +361,7 @@ static const struct pci_device_id pciidlist[] = {
XE_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_desc),
XE_DG2_IDS(INTEL_VGA_DEVICE, &dg2_desc),
XE_MTL_IDS(INTEL_VGA_DEVICE, &mtl_desc),
XE_LNL_IDS(INTEL_VGA_DEVICE, &lnl_desc),
{ }
};
MODULE_DEVICE_TABLE(pci, pciidlist);
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/xe_platform_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enum xe_platform {
XE_DG2,
XE_PVC,
XE_METEORLAKE,
XE_LUNARLAKE,
};

enum xe_subplatform {
Expand Down
5 changes: 5 additions & 0 deletions include/drm/xe_pciids.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,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

0 comments on commit 3330361

Please sign in to comment.