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 7D660C36002 for ; Mon, 24 Mar 2025 23:17:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DB0310E4E7; Mon, 24 Mar 2025 23:17:14 +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="EyhccGqz"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by gabe.freedesktop.org (Postfix) with ESMTPS id 039EA10E4E7 for ; Mon, 24 Mar 2025 23:17:13 +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:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZjyeFBW/BEW5pN4dW9cgRvuMp9wBCeIqE18dk2lK7nA=; b=EyhccGqzuPeA1+73N6heXRrhqY B2wCu84RyrCOJFt/ooMoqs20Ogp523ONUCpi+oucHSnqyqH1VrsoD4hTTJxzohG6CSxDlrc6TKX2e l3WP/DtYKQHxTPBp373Jiiox2zz2hAjDMMlbU8U8QANQT16Bw3/RnuW1BYyIOWxhRK7t8kjlY/Y8M Zs+1AY3zz16PGxg6MTc57Sg3kJ1A0QnSEbxJsHfSncXNWjWfs0vRYa5dRFzLNTAmBBWQIbQ3mkQMg otIQBtzrQAukJRk9dp/KUfPYWhO0dJNGJ8Xnd0xA9Ho64CU0TRguly2wZ9eUfcUgfRuLaCkmWkXJV FPlVkNWg==; Received: from [189.7.87.178] (helo=[192.168.0.224]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1twr2c-005vRC-Tx; Tue, 25 Mar 2025 00:17:11 +0100 Message-ID: <977cb1c8-7f55-4e3e-bac3-30cb29dec4b3@igalia.com> Date: Mon, 24 Mar 2025 20:17:07 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] A few drm_syncobj optimisations To: Tvrtko Ursulin , dri-devel@lists.freedesktop.org Cc: kernel-dev@igalia.com References: <20250318155424.78552-1-tvrtko.ursulin@igalia.com> Content-Language: en-US From: =?UTF-8?Q?Ma=C3=ADra_Canal?= In-Reply-To: <20250318155424.78552-1-tvrtko.ursulin@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Tvrtko, Thanks for this patchset! I applied this patchset to the RPi downstream kernel 6.13.7 [1] and saw an FPS improvement of approximately 5.85% with "vkgears -present-mailbox" on the RPi 5. I did five 100 seconds runs on each kernel and here are my results: ### 6.13.7 | Run | Min FPS | Max FPS | Avg FPS | |----------|-------------|-------------|-------------| | Run #1 | 6646.52 | 6874.77 | 6739.313 | | Run #2 | 5387.04 | 6723.274 | 6046.773 | | Run #3 | 6230.49 | 6823.47 | 6423.923 | | Run #4 | 5269.678 | 5870.59 | 5501.858 | | Run #5 | 5504.54 | 6285.91 | 5859.724 | * Overall Avg FPS: 6114.318 FPS ### 6.13.7 + DRM Syncobj optimisations | Run | Min FPS | Max FPS | Avg FPS | |----------|-------------|-------------|-------------| | Run #1 | 6089.05 | 7296.27 | 6859.724 | | Run #2 | 6022.48 | 7264 | 6818.518 | | Run #3 | 5987.68 | 6188.77 | 6041.365 | | Run #4 | 5699.27 | 6448.99 | 6190.374 | | Run #5 | 6199.27 | 6791.15 | 6450.900 | * Overall Avg FPS: 6472.176 FPS [1] https://github.com/raspberrypi/linux/tree/rpi-6.13.y Best Regards, - Maíra On 18/03/25 12:54, Tvrtko Ursulin wrote: > A small set of drm_syncobj optimisations which should make things a tiny bit > more efficient on the CPU side of things. > > Improvement seems to be around 1.5%* more FPS if observed with "vkgears > -present-mailbox" on a Steam Deck Plasma desktop, but I am reluctant to make a > definitive claim on the numbers since there is some run to run variance. But, as > suggested by Michel Dänzer, I did do a five ~100 second runs on the each kernel > to be able to show the ministat analysis. > > x before > + after > +------------------------------------------------------------+ > | x + | > | x x + | > | x xx ++++ | > | x x xx x ++++ | > | x xx x xx x+ ++++ | > | xxxxx xxxxxx+ ++++ + + | > | xxxxxxx xxxxxx+x ++++ +++ | > | x xxxxxxxxxxx*xx+* x++++++++ ++ | > | x x xxxxxxxxxxxx**x*+*+*++++++++ ++++ + | > | xx x xxxxxxxxxx*x****+***+**+++++ ++++++ | > |x xxx x xxxxx*x****x***********+*++**+++++++ + + +| > | |_______A______| | > | |______A_______| | > +------------------------------------------------------------+ > N Min Max Median Avg Stddev > x 135 21697.58 22809.467 22321.396 22307.707 198.75011 > + 118 22200.746 23277.09 22661.4 22671.442 192.10609 > Difference at 95.0% confidence > 363.735 +/- 48.3345 > 1.63054% +/- 0.216672% > (Student's t, pooled s = 195.681) > > Tvrtko Ursulin (7): > drm/syncobj: Remove unhelpful helper > drm/syncobj: Do not allocate an array to store zeros when waiting > drm/syncobj: Avoid one temporary allocation in drm_syncobj_array_find > drm/syncobj: Use put_user in drm_syncobj_query_ioctl > drm/syncobj: Avoid temporary allocation in > drm_syncobj_timeline_signal_ioctl > drm/syncobj: Add a fast path to drm_syncobj_array_wait_timeout > drm/syncobj: Add a fast path to drm_syncobj_array_find > > drivers/gpu/drm/drm_syncobj.c | 281 ++++++++++++++++++---------------- > 1 file changed, 147 insertions(+), 134 deletions(-) >