[Intel-xe] [PATCH 2/2] drm/xe: Add Rocketlake device info
Anusha Srivatsa
anusha.srivatsa at intel.com
Thu Apr 6 17:58:12 UTC 2023
Add missing device info for Rocketlake.
v2: Also add abox_mask to the device info(lucas)
Signed-off-by: Anusha Srivatsa <anusha.srivatsa at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_display.c | 11 +++++++++++
drivers/gpu/drm/xe/xe_pci.c | 9 +++++++++
2 files changed, 20 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index 5fab5b9fbde0..44697c0f7fb5 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -488,6 +488,17 @@ void xe_display_info_init(struct xe_device *xe)
case XE_DG1:
xe->info.display = (struct xe_device_display_info) { GEN12_DISPLAY };
break;
+ case XE_ROCKETLAKE:
+ xe->info.display = (struct xe_device_display_info) {
+ GEN12_DISPLAY,
+ .abox_mask = BIT(0),
+ .has_hti = 1,
+ .has_psr_hw_tracking = 0,
+ .cpu_transcoder_mask =
+ BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
+ BIT(TRANSCODER_C),
+ };
+ break;
case XE_ALDERLAKE_S:
xe->info.display = (struct xe_device_display_info) {
GEN12_DISPLAY,
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 20be113544fa..9fcaf2255a28 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -103,6 +103,14 @@ static const struct xe_device_desc tgl_desc = {
BIT(XE_HW_ENGINE_VCS2),
};
+static const struct xe_device_desc rkl_desc = {
+ GEN12_FEATURES,
+ PLATFORM(XE_ROCKETLAKE),
+ .platform_engine_mask =
+ BIT(XE_HW_ENGINE_RCS0) | BIT(XE_HW_ENGINE_BCS0) |
+ BIT(XE_HW_ENGINE_VECS0) | BIT(XE_HW_ENGINE_VCS0),
+};
+
static const struct xe_device_desc adl_s_desc = {
GEN12_FEATURES,
PLATFORM(XE_ALDERLAKE_S),
@@ -286,6 +294,7 @@ __diag_pop();
*/
static const struct pci_device_id pciidlist[] = {
XE_TGL_IDS(INTEL_VGA_DEVICE, &tgl_desc),
+ XE_RKL_IDS(INTEL_VGA_DEVICE, &rkl_desc),
XE_ADLS_IDS(INTEL_VGA_DEVICE, &adl_s_desc),
XE_ADLP_IDS(INTEL_VGA_DEVICE, &adl_p_desc),
XE_DG1_IDS(INTEL_VGA_DEVICE, &dg1_desc),
--
2.25.1
More information about the Intel-xe
mailing list