From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 609C0EE4998 for ; Fri, 18 Aug 2023 22:08:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 36F4B10E049; Fri, 18 Aug 2023 22:08:53 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id A4B4F10E2C9 for ; Fri, 18 Aug 2023 22:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692396512; x=1723932512; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+m10+JgtU9k8QrwbxCqEyNcqxhRf9QYCigSjJgUR+6g=; b=KujvnhEx6t28AgE32bxmTLeR4WskwhCqPMeN2+bJbdZBb4uU1GzgG07P q//KPZQ9M6TEyvL8B5kLYbhxa7CwTzww/Ir/wk4+hRWBiEeAEWIXT8aYk xYST3ui73hdJftadWvsIE38xFYc3I5ElCHZ95bF/fLvtCxCOi53Ot+9ET Yx5ZoaMKkt8evRFI/pG4btRMCsEJN9IKK1ld0yFgIrQv9cZBO1Vuqvb9S Yrz0HE+H9mG18EBrgWC5+ebc3edP6KgJQzTzkESEL0ClVm+iWv7BIabGU wc5VrJQ0LUVn/r8ihm0pkgooGL8pLC6R+GoOP+ka5vVtDQXuF6rAmv7PH g==; X-IronPort-AV: E=McAfee;i="6600,9927,10806"; a="439592991" X-IronPort-AV: E=Sophos;i="6.01,184,1684825200"; d="scan'208";a="439592991" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2023 15:08:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10806"; a="728758200" X-IronPort-AV: E=Sophos;i="6.01,184,1684825200"; d="scan'208";a="728758200" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2023 15:08:31 -0700 From: Lucas De Marchi To: intel-xe@lists.freedesktop.org Date: Fri, 18 Aug 2023 15:08:18 -0700 Message-Id: <20230818220824.700519-10-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230818220824.700519-1-lucas.demarchi@intel.com> References: <20230818220824.700519-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v2 09/15] drm/xe/xe2: Define Xe2_LPM IP features X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi , Matt Roper Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" From: Matt Roper Xe2_LPM media is represented by GMD_ID values 20.00 and 20.04. It provides 1 VD + 1 VE + 1 SFC. Bspec: 70821, 70819 Signed-off-by: Matt Roper Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/xe/xe_pci.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index ed6c4bf8c63b..fdd2eba1b91f 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -221,6 +221,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, @@ -344,6 +350,8 @@ 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 }, + { 2004, &media_xe2 }, }; #define INTEL_VGA_DEVICE(id, info) { \ -- 2.40.1