Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BCE6606A31A for ; Tue, 1 Dec 2026 17:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=SQdPhALQ Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 301F910FB49; Tue, 1 Dec 2026 17:31:40 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8629A10FB49 for ; Tue, 1 Dec 2026 17:31:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:From:Reply-To; bh=07vVV/9z61wwM0podHRZP5b7u0Bodx95SV4IY4DZTlY=; t=1796146294; x=2111506294; b=SQdPhALQHqXfiIJ9YhnDWlfzcXUnsTn4eeDOyj6qQu7AEFSYdcA389WUnH47LSef+kEiZ80K7SK RYOvcK5HQ6Pm8q6Y9jGezBtHKyoxogmWApX8szBW6gKRmHfb+BdORgZWUb9SZhrw6WcD0Rt59Q0Dn xQVkch75SUXNOlIGgMTAX2OuQMSxq5NKlb8RQN1iQa4m5IIvR70jCs3eWg4Fy12QFrrgo9ZifUns1 Oj/XhYc4frIe5FeTbgiMeOLGYfSaoky+5Pftse+2TyRGQMCDFfuyYngYUhujFZ6GOedKgxlnENAYv qP8d3ynQ4mQmAE8UnJD9b6n0Rw7MmuWkZb/A==; Received: from [81.79.79.1] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) (envelope-from ) id 1xYRhU-00000000liy-3SHk; Tue, 01 Dec 2026 18:31:32 +0100 From: Tvrtko Ursulin To: amd-gfx@lists.freedesktop.org Cc: kernel-dev@igalia.com, Tvrtko Ursulin , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Timur=20Krist=C3=B3f?= Subject: [RFC v4 0/4] Use high priority scheduler workqueue for high priority rings Date: Tue, 1 Dec 2026 17:31:27 +0000 Message-ID: <20261201173131.79944-1-tvrtko.ursulin@igalia.com> X-Mailer: git-send-email 2.56.0 X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "amd-gfx" X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Last patch is the headline item while three preceding ones are hopefully fixes for problems I stumbled upon while adding WQ_HIGHPRI. On those three more eyes are definitely required since the init paths can be tricky. Smoke tested on the Steam Deck and no explosions. Cc: Alex Deucher Cc: Christian König Cc: Timur Kristóf v2: * Lets see if I fixed the sashiko bugs.. change log in patch 2. v3: * Fixed more sashiko reported issues in patch 2. v4: * New patch in the series to cleanup unused function return code. * Squashed old patches 2 and 3 into 3 because the flow is much clearer, and fixed more sashiko reported bugs. :( Tvrtko Ursulin (4): drm/amdgpu: Free trail_fence_offs when freeing rings drm/amdgpu: Remove return value from amdgpu_fence_driver_start_ring() drm/amdgpu: Cleanup on ring failure properly drm/amdgpu: Use high priority scheduler workqueue for high priority rings drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 60 ++++++++------ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 96 ++++++++++++++-------- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 11 ++- 4 files changed, 108 insertions(+), 62 deletions(-) -- 2.56.0