Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2780470rdg; Mon, 16 Oct 2023 15:01:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEy7UixWx8e8bNfdHHBkXZ+HglJeHA6B4hhtKWl2CJ5Ryd93LKYdQH3BAy/RV5v/fyK475E X-Received: by 2002:a05:6a00:21cf:b0:6b7:18c1:c09a with SMTP id t15-20020a056a0021cf00b006b718c1c09amr407484pfj.5.1697493671499; Mon, 16 Oct 2023 15:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697493671; cv=none; d=google.com; s=arc-20160816; b=AZ/po6GQ577c/3ZFnMuH3FU17SOjOFEXT/LQxEv14YKBh7Ug4XcKycmCHK78cyd8cT J7MS2aPBWknMLj/08HpVbJcwZtpxTIXSjkOYO7lbSPh/R8phNFGqeBM3uHVXLvoVBRTi Z+gxi+400Y/9RF4E6L1N3Zoac6QkW0EIqmSNKAecvDlyCtTkBVmNTSfa87NmONLHk4qe rKak3DJwvAvw681mJWON25DcP6XrBQT3A7pcU3aJc8sLwp4GFNmVMWc9iFFmhAVYeMMh VvciL+n1pxklgficyBERkDGG3i3uqqFN7udZVWPlbpv8UvtC/mu8einLPJwAJQyfKxZ2 cCeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=lcrxJ62ovmcgufbYpw2zpeWY7Qp+hqWh8XzmUljEu2Y=; fh=MCKYftvW8hFaYYgc59zYhnLgh4uK1LPDklAVpLTdriM=; b=kDd7C2EmK5p2uFCrTIbkOAHaOENvXUzZat8obTy+du1Bo9QA4UEBf59DZ0gmgjjzqO cQbDSIDBWyqiaJSs3k60Vwmu+rv3la/F3xkWK9K0DrDTra5MhuYprceLiXE9D1srGElE JOdyz60tU4F2irT8/Kv6DMKeEDezUw/T6wjw/cKtB86aEnzbLtBPZFCG8yeAl/UMRyQ9 pmDOkrtvDiTkgxtTmr0EPRDVQ+4q0ExTpK1uRPuwd/AxzID1FNvYnVhBQDKDNluogprp lmjsS4KDBmJbX/oNmmt2CDK+W2073an+/pusp4ULZs2dWfPALxoIRDrD/VR0aUzOcmKI xtdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=a71ythfx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id b4-20020a056a000cc400b006b4f46bdc1bsi139811pfv.22.2023.10.16.15.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 15:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=a71ythfx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A253F803DAF1; Mon, 16 Oct 2023 15:01:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjJPWBB (ORCPT + 99 others); Mon, 16 Oct 2023 18:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJPWA7 (ORCPT ); Mon, 16 Oct 2023 18:00:59 -0400 Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 244D39B for ; Mon, 16 Oct 2023 15:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1697493654; x=1697752854; bh=lcrxJ62ovmcgufbYpw2zpeWY7Qp+hqWh8XzmUljEu2Y=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=a71ythfxsG8+Qe76wJBozaaajSCSFFsi3XMTnaOKQu13/kRHSGTpwBhbPlCsofuTj VQuadXMHYXJLTrbuUCMrLFgP35DvECdH+xzctH+VzwOn5rF5uCI51jfYNZxq/nNIqg 3NkKecbSO7kVKgcvFlz2/Ruzc2OWC0vN/GTKyG7UMycvs22reo2zIGRYpcQByc5G2w qUNXaLJ3zbIK1Dd/dKhcZ6uITQbspn8l7IVTxfvhSvSa2dlgk743m29rO4p+ujblIs FB7nNR4c+9xeONeltKdGado8qYuZWb3QhDDdmQ7YfkIVMVeGS3quAVxpxW3Ppqa5Ko o4OPUP02XTvJQ== Date: Mon, 16 Oct 2023 22:00:51 +0000 To: =?utf-8?Q?Ville_Syrj=C3=A4l=C3=A4?= From: Simon Ser Cc: Pekka Paalanen , pierre-eric.pelloux-prayer@amd.com, =?utf-8?Q?Andr=C3=A9_Almeida?= , kernel-dev@igalia.com, =?utf-8?Q?=27Marek_Ol=C5=A1=C3=A1k=27?= , =?utf-8?Q?Michel_D=C3=A4nzer?= , dri-devel@lists.freedesktop.org, Randy Dunlap , xaver.hugl@gmail.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, alexander.deucher@amd.com, wayland-devel@lists.freedesktop.org, hwentlan@amd.com, christian.koenig@amd.com, joshua@froggi.es Subject: Re: [PATCH v6 6/6] drm/doc: Define KMS atomic state set Message-ID: <8NqDNz1Y8H5I_WhNhOj0ERarBH7nJhGQAsDHbmSnwzoOFtXPBPILwxLlF8-vDPKR06Uknp1BDSt7-6gTmHls62k79ETajXDfPRsmIP-cZN0=@emersion.fr> In-Reply-To: References: <20230815185710.159779-1-andrealmeid@igalia.com> <20230815185710.159779-7-andrealmeid@igalia.com> <1b23576d-1649-ff5c-6273-b54729ea46d8@mailbox.org> <20231016151856.74af9305@eldfell> <20231016175222.7a89e6ab@eldfell> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 15:01:08 -0700 (PDT) On Monday, October 16th, 2023 at 17:10, Ville Syrj=C3=A4l=C3=A4 wrote: > On Mon, Oct 16, 2023 at 05:52:22PM +0300, Pekka Paalanen wrote: >=20 > > On Mon, 16 Oct 2023 15:42:16 +0200 > > Andr=C3=A9 Almeida andrealmeid@igalia.com wrote: > >=20 > > > Hi Pekka, > > >=20 > > > On 10/16/23 14:18, Pekka Paalanen wrote: > > >=20 > > > > On Mon, 16 Oct 2023 12:52:32 +0200 > > > > Andr=C3=A9 Almeida andrealmeid@igalia.com wrote: > > > >=20 > > > > > Hi Michel, > > > > >=20 > > > > > On 8/17/23 12:37, Michel D=C3=A4nzer wrote: > > > > >=20 > > > > > > On 8/15/23 20:57, Andr=C3=A9 Almeida wrote: > > > > > >=20 > > > > > > > From: Pekka Paalanen pekka.paalanen@collabora.com > > > > > > >=20 > > > > > > > Specify how the atomic state is maintained between userspace = and > > > > > > > kernel, plus the special case for async flips. > > > > > > >=20 > > > > > > > Signed-off-by: Pekka Paalanen pekka.paalanen@collabora.com > > > > > > > Signed-off-by: Andr=C3=A9 Almeida andrealmeid@igalia.com > > > > > > > [...] > > > > > >=20 > > > > > > > +An atomic commit with the flag DRM_MODE_PAGE_FLIP_ASYNC is a= llowed to > > > > > > > +effectively change only the FB_ID property on any planes. No= -operation changes > > > > > > > +are ignored as always. [...] > > > > > > > During the hackfest in Brno, it was mentioned that a commit w= hich re-sets the same FB_ID could actually have an effect with VRR: It coul= d trigger scanout of the next frame before vertical blank has reached its m= aximum duration. Some kind of mechanism is required for this in order to al= low user space to perform low frame rate compensation. > > > > >=20 > > > > > Xaver tested this hypothesis in a flipping the same fb in a VRR m= onitor > > > > > and it worked as expected, so this shouldn't be a concern. > > > > > Right, so it must have some effect. It cannot be simply ignored l= ike in > > > > > the proposed doc wording. Do we special-case re-setting the same = FB_ID > > > > > as "not a no-op" or "not ignored" or some other way? > > > > > There's an effect in the refresh rate, the image won't change but= it > > > > > will report that a flip had happened asynchronously so the report= ed > > > > > framerate will be increased. Maybe an additional wording could be= like: > > >=20 > > > Flipping to the same FB_ID will result in a immediate flip as if it w= as > > > changing to a different one, with no effect on the image but effectin= g > > > the reported frame rate. > >=20 > > Re-setting FB_ID to its current value is a special case regardless of > > PAGE_FLIP_ASYNC, is it not? >=20 > No. The rule has so far been that all side effects are observed > even if you flip to the same fb. And that is one of my annoyances > with this proposal. The rules will now be different for async flips > vs. everything else. Well with the patches the async page-flip case is exactly the same as the non-async page-flip case. In both cases, if a FB_ID is included in an atomic commit then the side effects are triggered even if the property value didn't change. The rules are the same for everything.