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 BED23C0015E for ; Fri, 11 Aug 2023 16:08:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9965910E6B6; Fri, 11 Aug 2023 16:08:52 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF44D10E6B3 for ; Fri, 11 Aug 2023 16:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691770127; x=1723306127; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q6VDURVCp1jGKen6yBKU12QqgTJ10vj4+U3hF49bYcM=; b=gS/3oHPw3OTWSIsLoGdOl7qGL0M6+7Yk8I6W32Et7h0vXXT0eqGIm09j dVAjHtFmo2lk+14kksMhVv+AjdI448n21lJW8iGZTuwJYl/EBOVUka7kc P3kUujJMolSBLW4XgGa01BeRc4GlX85PcTS1Sca6OPLGVZpbcbFhssEX9 qLBU8ev8G7uWgAkHL0W7gX/bpXnUb7BVXaAcQ69QVHA2iGwJuKH5fbFt9 pyL+Lu3VreJFENQ8mkG8ezZToXe4yQXI+MGjTHP/8Q696y3F//ImgzLY2 5N38krOWyVjj55g2WZGf4yHcdc4PxGiJmdYwSZz5w5TgfYG+ZJi2GilRE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="438044340" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="438044340" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 09:06:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="726300484" X-IronPort-AV: E=Sophos;i="6.01,166,1684825200"; d="scan'208";a="726300484" 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; 11 Aug 2023 09:06:27 -0700 From: Lucas De Marchi To: intel-xe@lists.freedesktop.org Date: Fri, 11 Aug 2023 09:06:18 -0700 Message-Id: <20230811160618.477297-16-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230811160618.477297-1-lucas.demarchi@intel.com> References: <20230811160618.477297-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 15/15] drm/xe/lnl: Hook up MOCS table 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: Matt Roper Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" From: Balasubramani Vivekanandan LNL uses the Xe2 MOCS table introduced in an earlier patch. Bspec: 71582 Cc: Matt Roper Signed-off-by: Balasubramani Vivekanandan Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/xe/xe_mocs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c index d779ab8466d32..38d3e4ec9f445 100644 --- a/drivers/gpu/drm/xe/xe_mocs.c +++ b/drivers/gpu/drm/xe/xe_mocs.c @@ -395,6 +395,14 @@ static unsigned int get_mocs_settings(struct xe_device *xe, memset(info, 0, sizeof(struct xe_mocs_info)); switch (xe->info.platform) { + case XE_LUNARLAKE: + info->size = ARRAY_SIZE(xe2_mocs_table); + info->table = xe2_mocs_table; + info->n_entries = XE2_NUM_MOCS_ENTRIES; + info->uc_index = 3; + info->wb_index = 1; + info->unused_entries_index = 1; + break; case XE_PVC: info->size = ARRAY_SIZE(pvc_mocs_desc); info->table = pvc_mocs_desc; -- 2.40.1