From patchwork Sat May 4 23:29:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niranjana Vishwanathapura X-Patchwork-Id: 13654146 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 A3411C4345F for ; Sat, 4 May 2024 23:30:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A0E4310FFB2; Sat, 4 May 2024 23:29:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="KOlX0nJw"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED80E10FFB2 for ; Sat, 4 May 2024 23:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714865399; x=1746401399; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=QbSKszTXFl7WEoKBL3GqyA0ihgQHo3ZTNnsjBtVK6YQ=; b=KOlX0nJwaw77Kdka3xkUXLZbYcqmNBOcR8xrhQzpVFObcsEQtDq22mva P3w8Oe4f/n7gMYYkSq8kL4xfYyHMww2iq/s+ZmM1z19Ld1Z42YFYUI8qI U6/hcsUgR4rN/owAtqCY3dHvFZG/1ZOWSP+rZIyy905prStQUcGgUewvL YhPzWN2/F+MgPZJ/qJ6YZCm+ffLNbpmb4eTnI2JX4NeDJokDLTtoe9qst GjOdDcEWN3+K4Mcv4n4ZIFY4qep4L31sNas3S7+E8l3PRhZQ+OF4FuS8k +jbi3BHwWYipjxxtWxoceJ4zebWE1YzVCaL0u5RMHNC3/2dPXSZ4i+MnR w==; X-CSE-ConnectionGUID: pi5u5/vxSNaqHKlMpT7ypQ== X-CSE-MsgGUID: /KSkFdTTS56dP2j0gXsQcA== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10770759" X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="10770759" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 16:29:58 -0700 X-CSE-ConnectionGUID: t3UlaOLnToCndeoeHv1mRA== X-CSE-MsgGUID: Xqy/RAiHSLCiGgExQqszGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,255,1708416000"; d="scan'208";a="58997444" Received: from nvishwa1-desk.sc.intel.com ([172.25.29.76]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2024 16:29:58 -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:29:48 -0700 Message-ID: <20240504232955.16022-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(-)