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 9B90EC83F09 for ; Wed, 9 Jul 2025 10:55:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48B8410E794; Wed, 9 Jul 2025 10:55:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="LZuvz0zj"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AC2810E794 for ; Wed, 9 Jul 2025 10:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=t7+sNKCjKi29sTACewXulxuLjlERqW2bdHLk1x7bt3k=; b=LZuvz0zjq/pRjYth0OFd8v1HD5 skNbP/7JysMk6Nt3xGNlx1SUsZx3hfJ39R5V2PyHT1Tx92rrF3drFbdpnuS7lJiOlNKngqnHB/3xU NUposdZI31g+TvO7qLW8dRzT01Mm9ovRgk7bOHXhtWuKxdW2eI/EpgaPd+XlHZtfxX8juKULaMi7s mQb80A60ChhWnHj+OdsU3NRUSdzyZ0twbGdhzQJ8l4gN4obcmZmdtNQ1xs1MOVk+qiOkBYomFT1QL cdekWM/wq2V/pT6ynolbrk+HUIcbvUyfbUSQnH5zo4H0sXPd2Ux/Zi4oICd+sVlYz/INpugkjrRYV EaKb1c2w==; Received: from [84.65.48.237] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1uZSS2-00EQnU-Gd; Wed, 09 Jul 2025 12:54:58 +0200 From: Tvrtko Ursulin To: intel-xe@lists.freedesktop.org Cc: kernel-dev@igalia.com, Tvrtko Ursulin , Lucas De Marchi , Matt Roper Subject: [PATCH v9 0/8] More missing XeLP workarounds Date: Wed, 9 Jul 2025 11:54:47 +0100 Message-ID: <20250709105455.93902-1-tvrtko.ursulin@igalia.com> X-Mailer: git-send-email 2.48.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Some more missing XeLP workarounds. This time including some which need to go into indirect context, which also means some plumbing had to be added. Includes a fix to use iosys helpers for existing wa bb emission since there is a code dependency on it. v2: * Use iosys helpers. * Split indirect context plumbing as a separate patch. * Tweak where and how Wa_16010904313 is emitted. * Move Wa_18022495364 into the wa_bb. v3: * Rewrite on top of Lucas' wa bb changes - use same infrastructure. v4: * Rework due 3a1edef8f4b5 ("drm/xe: Make WA BB part of LRC BO"). v5: * Fix indirect ring state offset calculation. * Removed extra space in one patch. v6: * Fixed indirect ctx MI_NOOP padding to 64B cacheline. * Do not add negative errors codes to reported emitted counts. * Renamed workaround emission functions. (Lucas) v7: * Rebase for removal of bo->size. v8: * Rename bo emission helpers. (Lucas) * Drop XELP prefix from LRC layout define. (Lucas) * Drop first patch from the series as it was merged. v9: * Contain emission helpers arguments in a struct. (Lucas) * Use REG_FIELD_PREP for CTX_INDIRECT_CTX_OFFSET_DEFAULT. (Lucas) * Coding style tweaks. (Lucas) * Improved comment. (Lucas) * Split indirect ctx bo size defined from maximum hw supported size. Cc: Lucas De Marchi Cc: Matt Roper Tvrtko Ursulin (8): drm/xe: Generalize wa bb emission code drm/xe: Pass wa bb setup arguments in a struct drm/xe: Rename utilization workaround emission function drm/xe: Track number of written dwords from workaround batch buffer emission drm/xe: Allow specifying number of extra dwords at the end of wa bb emission drm/xe: Add plumbing for indirect context workarounds drm/xe/xelp: Implement Wa_16010904313 drm/xe/xelp: Add Wa_18022495364 .../gpu/drm/xe/instructions/xe_mi_commands.h | 1 + drivers/gpu/drm/xe/regs/xe_engine_regs.h | 3 + drivers/gpu/drm/xe/regs/xe_lrc_layout.h | 5 + drivers/gpu/drm/xe/xe_lrc.c | 266 +++++++++++++++--- drivers/gpu/drm/xe/xe_lrc_types.h | 3 +- drivers/gpu/drm/xe/xe_wa_oob.rules | 2 + 6 files changed, 243 insertions(+), 37 deletions(-) -- 2.48.0