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 56A52CDE00E for ; Fri, 26 Jun 2026 08:56:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4438610E341; Fri, 26 Jun 2026 08:56:09 +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="myPsRFpl"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5222310E33E for ; Fri, 26 Jun 2026 08:56:05 +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:Sender:Reply-To: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=1KhjT3UxB+UIZ+vh0fRk2xJWGdUyBmX8ovqJwlu+EDA=; b=myPsRFplqXehJjVzvXE0DzqQ3i +1gM9EzMTCy+u0wCsKm96USW9ImsbfxJaEnAL6LuoacSdlQ9p6C3aMxyznNasxR7z3dyoUz6gfwrN icihCUlFrV/Rq0k7bkxf6/mE1weJzqOQduykVmlPX2k0UqPJ/dey34MKx9Ru+df9d6RVFJPmcuDYn S+xnhjnpnxyF8+Hjn0x/KICev+HU/cgNEAqhpqFgPNjz+9cnIBhIumRwVI/m1uf9hkBhAn7e0oNuA rm+x2lOrQLool7t2Y6zweDLGBHYolBjA1X4yMiowQViL9Ex/iTsHw2j5cuOw3wgcWbTH98S6iMbUw cR31SU1w==; Received: from [90.240.106.137] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wd2Ly-005PwW-TH; Fri, 26 Jun 2026 10:56:03 +0200 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: [PATCH 0/3] Job submission optimisation Date: Fri, 26 Jun 2026 09:55:55 +0100 Message-ID: <20260626085558.97923-1-tvrtko.ursulin@igalia.com> X-Mailer: git-send-email 2.54.0 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" I accidentally noticed some inefficiencies on the job submit path which seemed easy to address. CPU usage of the DRM scheduler submission thread: before after UnigineHeaven 2.3% 1.3% vkgears vsync off 15% 12% Gains are mostly due reduced hammering on the delayed worker rescheduling. Stock profile of the scheduler thread otherwise looks like this: 20.25% [kernel] [k] __mod_timer 2.87% [kernel] [k] enqueue_timer 2.16% [kernel] [k] amdgpu_gfx_profile_ring_end_use More pairs of eyes would be welcome to check I did not break something. Cc: Alex Deucher Cc: Christian König Cc: Timur Kristóf Tvrtko Ursulin (3): drm/amdgpu: Remove unused amdgpu_device_ip_is_hw drm/amdgpu: Save some cycles on the job submission path drm/amdgpu: Do not fiddle with the idle workers too much drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 11 +++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c | 21 ------------------- drivers/gpu/drm/amd/amdgpu/amdgpu_ip.h | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 9 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 12 +++++------ drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 12 +++++------ drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 14 +++++-------- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 8 ++++++- 10 files changed, 36 insertions(+), 57 deletions(-) -- 2.54.0