From mboxrd@z Thu Jan 1 00:00:00 1970 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 73F60D1CA17 for ; Wed, 6 Nov 2024 05:04:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FAE310E116; Wed, 6 Nov 2024 05:04:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kode54.net header.i=@kode54.net header.b="niRMnD/A"; dkim-atps=neutral Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) by gabe.freedesktop.org (Postfix) with ESMTPS id D78AB10E629 for ; Wed, 6 Nov 2024 05:04:23 +0000 (UTC) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kode54.net; s=key1; t=1730869461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HU2FgKEr1fhOjtgslxIdAEo3xX+OzWXmdwVSvh7wQrk=; b=niRMnD/A6eZ6rUQyFxKiXIPVFga8PQ7mvS3yX8P5oK41TiTdgDrvGy4n0N1KsWMaSRJATC iwyanom3nmNGGh1mO+zWBJsgjpRjnAPP8FNXK0qz6OUUfG2PwgwrD4yV/qZMEDywSYZBcp nxh1kMB42C81RMbnr9bYgAeLb07pKwU0wxs3ZX5TgksGmkdRAhMAIpHMn1Lk27ZNnyfpiU zSMDSKrcyy2Z1whmplJqjZYmxpA8MeIxAdJXAeIBgcYsphIyX+8Cu5oin9XDJUT54cFDkW 1+kRnbuLpTC9bWqSK1EpxX4IB4Gj2VqkUz8k4srRjDBJixI6wgDmeihe64W9XA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 05 Nov 2024 21:04:14 -0800 Message-Id: Cc: =?utf-8?q?Andr=C3=A9_Almeida?= , , "Simon Ser" , "Thomas Zimmermann" , , , "Daniel Stone" , "Xaver Hugl" , "Harry Wentland" , "Simona Vetter" , "Alex Deucher" , "Maarten Lankhorst" , "Maxime Ripard" , , , , "Leo Li" , =?utf-8?q?Christian_K=C3=B6nig?= , "David Airlie" , "Rodrigo Siqueira" , "Xinhui Pan" Subject: Re: [PATCH RESEND v9 1/2] drm/atomic: Let drivers decide which planes to async flip X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Christopher Snowhill" To: "Dmitry Baryshkov" References: <20241101-tonyk-async_flip-v9-0-681814efbfbe@igalia.com> <20241101-tonyk-async_flip-v9-1-681814efbfbe@igalia.com> <00a99b3e-3fad-42fb-8dc8-4f45d158c4c1@igalia.com> In-Reply-To: X-Migadu-Flow: FLOW_OUT 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" On Tue Nov 5, 2024 at 2:51 AM PST, Dmitry Baryshkov wrote: > On Tue, 5 Nov 2024 at 10:15, Christopher Snowhill wrot= e: > > > > On Mon Nov 4, 2024 at 12:52 PM PST, Andr=C3=A9 Almeida wrote: > > > Hi Christopher, > > > > > > Em 03/11/2024 03:36, Christopher Snowhill escreveu: > > > > On Fri Nov 1, 2024 at 11:23 AM PDT, Andr=C3=A9 Almeida wrote: > > > >> Currently, DRM atomic uAPI allows only primary planes to be flippe= d > > > >> asynchronously. However, each driver might be able to perform asyn= c > > > >> flips in other different plane types. To enable drivers to set the= ir own > > > >> restrictions on which type of plane they can or cannot flip, use t= he > > > >> existing atomic_async_check() from struct drm_plane_helper_funcs t= o > > > >> enhance this flexibility, thus allowing different plane types to b= e able > > > >> to do async flips as well. > > > >> > > > >> In order to prevent regressions and such, we keep the current poli= cy: we > > > >> skip the driver check for the primary plane, because it is always > > > >> allowed to do async flips on it. > > > >> > > > >> Signed-off-by: Andr=C3=A9 Almeida > > > > > > > > Should I do a R-b too? > > > > > > If you can review the code, it's always really appreciated. > > > > I mean, I did review your changes, they looked good to me. I just didn'= t > > know the protocol for reporting review in addition to testing. > > Please respond with the R-B tag. Also ideally the Tested-by should > contain the reference to a platform which was used to test it. > > > > > > > > > > The changes looked sound enough for me to feel > > > > like testing it as well. Tested Borderlands Game of the Year Enhanc= ed on > > > > my RX 7700 XT at maximum settings at 1080p165, and the tearing supp= ort in > > > > labwc allowed it to reach over 700fps. No problems from the hardwar= e > > > > cursor. > > > > > > Thanks for testing and reporting! > > > > > > > > > > > Tested-by: Christopher Snowhill > > > > > > Reviewed-by: Christopher Snowhill Tested-by: Christopher Snowhill on Radeon RX 7700 XT using labwc-git (I must admit, the documents do not make it clear what format the Testing-by tag should take, or how to append which hardware it was tested on, etc.)