Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit bcf9b29

Browse files
Radhakrishna Sripadamattrope
authored andcommitted
drm/i915/mtl: Add MeteorLake platform info
MTL has Xe_LPD+ display IP (version = 14), MTL graphics IP (version = 12.70), and Xe_LPM+ media IP (version = 13). Bspec: 55413 Bspec: 55416 Bspec: 55417 Bspec: 55418 Bspec: 55726 Bspec: 45544 Bspec: 65380 v2: rearrange the fields in pci_info(MattR) Cc: Matt Roper <[email protected]> Signed-off-by: Radhakrishna Sripada <[email protected]> Reviewed-by: Matt Roper <[email protected]> [mattrope: Moved IS_METEORLAKE() higher in header] Signed-off-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 9a92732 commit bcf9b29

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

drivers/gpu/drm/i915/i915_drv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
10691069
#define IS_XEHPSDV(dev_priv) IS_PLATFORM(dev_priv, INTEL_XEHPSDV)
10701070
#define IS_DG2(dev_priv) IS_PLATFORM(dev_priv, INTEL_DG2)
10711071
#define IS_PONTEVECCHIO(dev_priv) IS_PLATFORM(dev_priv, INTEL_PONTEVECCHIO)
1072+
#define IS_METEORLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_METEORLAKE)
10721073

10731074
#define IS_DG2_G10(dev_priv) \
10741075
IS_SUBPLATFORM(dev_priv, INTEL_DG2, INTEL_SUBPLATFORM_G10)

drivers/gpu/drm/i915/i915_pci.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,31 @@ static const struct intel_device_info pvc_info = {
11111111
.require_force_probe = 1,
11121112
};
11131113

1114+
#define XE_LPDP_FEATURES \
1115+
XE_LPD_FEATURES, \
1116+
.display.ver = 14, \
1117+
.display.has_cdclk_crawl = 1
1118+
1119+
__maybe_unused
1120+
static const struct intel_device_info mtl_info = {
1121+
XE_HP_FEATURES,
1122+
XE_LPDP_FEATURES,
1123+
/*
1124+
* Real graphics IP version will be obtained from hardware GMD_ID
1125+
* register. Value provided here is just for sanity checking.
1126+
*/
1127+
.graphics.ver = 12,
1128+
.graphics.rel = 70,
1129+
.media.ver = 13,
1130+
PLATFORM(INTEL_METEORLAKE),
1131+
.display.has_modular_fia = 1,
1132+
.has_flat_ccs = 0,
1133+
.has_snoop = 1,
1134+
.memory_regions = REGION_SMEM | REGION_STOLEN_LMEM,
1135+
.platform_engine_mask = BIT(RCS0) | BIT(BCS0) | BIT(CCS0),
1136+
.require_force_probe = 1,
1137+
};
1138+
11141139
#undef PLATFORM
11151140

11161141
/*

drivers/gpu/drm/i915/intel_device_info.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static const char * const platform_names[] = {
7373
PLATFORM_NAME(XEHPSDV),
7474
PLATFORM_NAME(DG2),
7575
PLATFORM_NAME(PONTEVECCHIO),
76+
PLATFORM_NAME(METEORLAKE),
7677
};
7778
#undef PLATFORM_NAME
7879

drivers/gpu/drm/i915/intel_device_info.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ enum intel_platform {
8989
INTEL_XEHPSDV,
9090
INTEL_DG2,
9191
INTEL_PONTEVECCHIO,
92+
INTEL_METEORLAKE,
9293
INTEL_MAX_PLATFORMS
9394
};
9495

0 commit comments

Comments
 (0)