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 19809C61DB2 for ; Fri, 13 Jun 2025 12:42:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A668510E1E5; Fri, 13 Jun 2025 12:42:15 +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="dpkw7XgO"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FC4610E1E3 for ; Fri, 13 Jun 2025 12:42:09 +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=R/wOicSiJ+LHyZ58XVZ7BIcmYS+mSYHhI8TrfGjBTv0=; b=dpkw7XgO+HP/86Fa1N4pi3wJaF dwP2dRo9P859jmfc8LGds/ff1usEBJh9P29GfBKP4M2RRCkkkfjR8cibt67sUQNdSiJ6nVw5W6jKx N8UdmBki2DZilnMmkMqBuEJD0ngQiiwvI25xzJlk9I64Z5OT7+54WvXYZJQsxI9iVG2TRErLxi0Kg 5oo7BmqXOy3cXYH4qJ752AG1qisOC70fS2acKOAKzzNOcxgHjL7Xwt6KjUb+YdhzuKlcXvny6oAx0 CkM7xltulITmoH0m9X8npTy1jPYZcBKKkj75CAP6JoKMK1tZtC65rJgwsgT6fx5EBINOMjvVc0zHY tA7MlUrg==; Received: from [81.79.92.254] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1uQ3jT-0030z6-Bl; Fri, 13 Jun 2025 14:42:07 +0200 From: Tvrtko Ursulin To: intel-xe@lists.freedesktop.org Cc: kernel-dev@igalia.com, Tvrtko Ursulin , Lucas De Marchi , Matt Roper Subject: [PATCH v3 0/8] More missing XeLP workarounds Date: Fri, 13 Jun 2025 13:41:51 +0100 Message-ID: <20250613124159.65636-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. Cc: Lucas De Marchi Cc: Matt Roper Tvrtko Ursulin (8): drm/xe: Clarify LRC size when allocating drm/xe: Generalize wa bb emission code drm/xe: Support writing at offset in workaround batch buffer emission drm/xe: Return 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 | 4 + drivers/gpu/drm/xe/xe_lrc.c | 231 +++++++++++++++--- drivers/gpu/drm/xe/xe_lrc_types.h | 5 +- drivers/gpu/drm/xe/xe_wa_oob.rules | 2 + 6 files changed, 212 insertions(+), 34 deletions(-) -- 2.48.0