drm/xe/xe2: Define Xe2_LPM IP features
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 11 Aug 2023 16:06:12 +0000 (09:06 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:25 +0000 (11:40 -0500)
Xe2_LPM media is represented by GMD_ID value 20.00.
It provides 1 VD + 1 VE + 1 SFC.

Bspec: 70821, 70819
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>
drivers/gpu/drm/xe/xe_pci.c

index 46145340ae90b773b89edaf340efaf486be10908..467b0cef6d21b83bf05d92d49a08eae6036cae64 100644 (file)
@@ -209,6 +209,12 @@ static const struct xe_media_desc media_xelpmp = {
                BIT(XE_HW_ENGINE_VECS0),        /* TODO: add GSC0 */
 };
 
+static const struct xe_media_desc media_xe2 = {
+       .name = "Xe2_LPM",
+       .hw_engine_mask =
+               BIT(XE_HW_ENGINE_VCS0) | BIT(XE_HW_ENGINE_VECS0), /* TODO: GSC0 */
+};
+
 static const struct xe_device_desc tgl_desc = {
        .graphics = &graphics_xelp,
        .media = &media_xem,
@@ -320,6 +326,7 @@ static struct gmdid_map graphics_ip_map[] = {
 /* Map of GMD_ID values to media IP */
 static struct gmdid_map media_ip_map[] = {
        { 1300, &media_xelpmp },
+       { 2000, &media_xe2 },
 };
 
 #define INTEL_VGA_DEVICE(id, info) {                   \