From patchwork Sat May 4 23:15:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niranjana Vishwanathapura X-Patchwork-Id: 13654144 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 94565C10F1A for ; Sat, 4 May 2024 23:15:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C512610FF91; Sat, 4 May 2024 23:15:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jGfJDmRM"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id D9C6310FF87 for ; Sat, 4 May 2024 23:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714864537; x=1746400537; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=QbSKszTXFl7WEoKBL3GqyA0ihgQHo3ZTNnsjBtVK6YQ=; b=jGfJDmRMzcEBYZpnncoazow/KPj+XOzGhPNcLS7OxAqiCQ625wvKJwHw 6VwRIF04Vsw11A0PprvqqVI5v8apys8sFVoMj9HDC9beEsqA/6npdAkLH hIIINaLACuBpNMmwWpXXZEIycLmZQDXzAq7IEDxdp77aNC/WahZZ4julm EKqgBvnf7erQvEtiZRmUgd/zDwW9qDlokEZujEHhMu/+YPsmfebT4NWMC Eb3scfdMUpbOa6F+pnWm/e3qtH9PQWb4WPELKWGk1xyaqTGvSyN+Op2id +Qz1R4e4hyEZd3ktadHQIQftnX3SZRFiQQfCP8Lkp6pLT9u6xirc4WUo1 A==; X-CSE-ConnectionGUID: /ba7TMohSTGhGnVieZblPA== X-CSE-MsgGUID: 4l+biqMwTYux9K62VDuVZw== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="14459054" X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="14459054" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 16:15:35 -0700 X-CSE-ConnectionGUID: jixSp6/HTu+nD1KcxK6nNg== X-CSE-MsgGUID: BcTkpGQeRt2FD4/pigL8CA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="28200948" Received: from nvishwa1-desk.sc.intel.com ([172.25.29.76]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 16:15:35 -0700 From: Niranjana Vishwanathapura To: intel-gfx@lists.freedesktop.org Subject: [PATCH 0/4] drm/xe: Add Indirect Ring State support Date: Sat, 4 May 2024 16:15:23 -0700 Message-ID: <20240504231530.15732-1-niranjana.vishwanathapura@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" When Indirect Ring State is enabled, the Ring Buffer state and Batch Buffer state are context save/restored to/form Indirect Ring State instead of the LRC. It is the recommended mode for Xe2, hence enable it by default for Xe2 platforms. Signed-off-by: Niranjana Vishwanathapura Niranjana Vishwanathapura (4): drm/xe: Minor cleanup in LRC handling drm/xe: Add Indirect Ring State support drm/xe: Dump Indirect Ring State registers drm/xe/xe2: Enable Indirect Ring State support for Xe2 drivers/gpu/drm/xe/regs/xe_engine_regs.h | 9 +- drivers/gpu/drm/xe/regs/xe_lrc_layout.h | 7 + drivers/gpu/drm/xe/xe_gt.c | 6 +- drivers/gpu/drm/xe/xe_gt.h | 7 + drivers/gpu/drm/xe/xe_gt_types.h | 6 +- drivers/gpu/drm/xe/xe_guc_ads.c | 5 +- drivers/gpu/drm/xe/xe_guc_submit.c | 2 +- drivers/gpu/drm/xe/xe_hw_engine.c | 11 ++ drivers/gpu/drm/xe/xe_hw_engine_types.h | 4 + drivers/gpu/drm/xe/xe_lrc.c | 187 +++++++++++++++++++---- drivers/gpu/drm/xe/xe_lrc.h | 5 +- drivers/gpu/drm/xe/xe_lrc_types.h | 4 + drivers/gpu/drm/xe/xe_pci.c | 3 + drivers/gpu/drm/xe/xe_pci_types.h | 3 + 14 files changed, 220 insertions(+), 39 deletions(-)