Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3112970rdg; Tue, 17 Oct 2023 05:14:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlPQZbdPsjrn8/jPG+IB9aoITonZlt0EpgMcrsJspaUdnm/Y6MV2BWePDjpw5bpjaiZZ/X X-Received: by 2002:a05:6a00:198f:b0:68e:3616:604a with SMTP id d15-20020a056a00198f00b0068e3616604amr2483579pfl.8.1697544872184; Tue, 17 Oct 2023 05:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544872; cv=none; d=google.com; s=arc-20160816; b=aVkb4fthvf/+Id2gRv95AcbtT8VisGjb3f6BTx7yV7WY2MC/i5eE3KCvyBLiWwXZOA TJIieaG7xOih7HK2lxsyrnMGBERw0CyiO0ft3EaDEg2hPy+T5vQ8A7nUSSDp8Oyo6LR4 q/VxOH941ZWtqZFFVSMYCgenLqhEHykhJjsjEY+7V1aJZEwxQ5R4C4xxEDcwfyJtdPjz +Ji4Codr63e/9jbFOO3FjN1/rqNtuVSQZWbzBnU8Fy4ndU24/FDEpGm0FxoD9cYykhks g1ZVdBiDGTFEeUnWCALp5lECAwVR2r+wbulisWNcpNXWKFhoTEPpOKkU4Muq9kYpcc0Y TpCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Bbe51d1TxX0uuyyffUPrWaiyKVm/DhS/tXhWG+xN8GA=; fh=9AuGacoIplO5HXlmHzXQNC3BehTOxvqFxajYZHJ/B50=; b=dY5+X/TmPcj8fnrBPpqLhQ7dMb9fj4OyWOYdZu8d1DzduilAqLfAQW9mhQzRqcOvdA jCBKOstu7s+JvUvj4C+3ga82eww4SGLYGjjkcTkmChUKd9Xb/ylHJs16kei+2B037eI+ 3Au3aub79ZUORLRry8ZnpqqXEFVK9oyDaP6Vd7r0Ddl2IAvSAu9lX9g9VxrNvJI3o1cM +LTW1vZypMTrnzRXdQ86jv16Ccwee263uLzYbZvvKHDbK6jn8NbFaH+vkU2hs2isBN9+ pthxRS7i5siIhNaGUZ9KJFnl5qIa5Q+SKCqXjD1SzPq4T/2ZWWus/OMDubaUBwmc3Dxw M5cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n9KWsyyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a5-20020a056a000c8500b0068fee0e95c5si1581555pfv.89.2023.10.17.05.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n9KWsyyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7583C8076E41; Tue, 17 Oct 2023 05:14:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343585AbjJQMOW (ORCPT + 99 others); Tue, 17 Oct 2023 08:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343729AbjJQMN5 (ORCPT ); Tue, 17 Oct 2023 08:13:57 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCFCA27B for ; Tue, 17 Oct 2023 05:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697544721; x=1729080721; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=nIE6NT2Pk1clEi5GWA+owq3CNDdTVpk0MrTKfRDcdQw=; b=n9KWsyyVEjHZGMPgST3SzhdcIJLZ27+IDbYH3AG3bD2655V9Go5HH49a HnwEjXlZpDFsP6+IAgzI0UmSrtLsRRyXCCt+T0xL/g/be/xAZYDLC4NT8 OwsOL7A0EJncvX7GeeFU1bd+PhHRMHR2c2Nt4rB7DNXlFLx2yOlmfUaHX 6HhyPAux7vCadozdHIpRRzYxKK1OSS2i56syTA5UQoggIJrJqAY/Bgg/7 HcgkltIsZkU/9EoKVM8lwRSASGbe6lf7lzVUrVycZFTuz/3uU2iR7uvLO jy2Og0Pg5uXVdcYYH0kzUVvpr8VT24bmgNMp6ygX8q0amOjBWZZdUVaxw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="376131292" X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; d="scan'208";a="376131292" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 05:10:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="826417071" X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; d="scan'208";a="826417071" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmsmga004.fm.intel.com with SMTP; 17 Oct 2023 05:10:01 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 17 Oct 2023 15:10:01 +0300 Date: Tue, 17 Oct 2023 15:10:01 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Simon Ser Cc: Pekka Paalanen , pierre-eric.pelloux-prayer@amd.com, =?iso-8859-1?Q?Andr=E9?= Almeida , kernel-dev@igalia.com, 'Marek =?utf-8?B?T2zFocOhayc=?= , Michel =?iso-8859-1?Q?D=E4nzer?= , 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: 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> <8NqDNz1Y8H5I_WhNhOj0ERarBH7nJhGQAsDHbmSnwzoOFtXPBPILwxLlF8-vDPKR06Uknp1BDSt7-6gTmHls62k79ETajXDfPRsmIP-cZN0=@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8NqDNz1Y8H5I_WhNhOj0ERarBH7nJhGQAsDHbmSnwzoOFtXPBPILwxLlF8-vDPKR06Uknp1BDSt7-6gTmHls62k79ETajXDfPRsmIP-cZN0=@emersion.fr> X-Patchwork-Hint: comment X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:14:29 -0700 (PDT) On Mon, Oct 16, 2023 at 10:00:51PM +0000, Simon Ser wrote: > On Monday, October 16th, 2023 at 17:10, Ville Syrj?l? wrote: > > > On Mon, Oct 16, 2023 at 05:52:22PM +0300, Pekka Paalanen wrote: > > > > > On Mon, 16 Oct 2023 15:42:16 +0200 > > > Andr? Almeida andrealmeid@igalia.com wrote: > > > > > > > Hi Pekka, > > > > > > > > On 10/16/23 14:18, Pekka Paalanen wrote: > > > > > > > > > On Mon, 16 Oct 2023 12:52:32 +0200 > > > > > Andr? Almeida andrealmeid@igalia.com wrote: > > > > > > > > > > > Hi Michel, > > > > > > > > > > > > On 8/17/23 12:37, Michel D?nzer wrote: > > > > > > > > > > > > > On 8/15/23 20:57, Andr? Almeida wrote: > > > > > > > > > > > > > > > From: Pekka Paalanen pekka.paalanen@collabora.com > > > > > > > > > > > > > > > > Specify how the atomic state is maintained between userspace and > > > > > > > > kernel, plus the special case for async flips. > > > > > > > > > > > > > > > > Signed-off-by: Pekka Paalanen pekka.paalanen@collabora.com > > > > > > > > Signed-off-by: Andr? Almeida andrealmeid@igalia.com > > > > > > > > [...] > > > > > > > > > > > > > > > +An atomic commit with the flag DRM_MODE_PAGE_FLIP_ASYNC is allowed 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 which re-sets the same FB_ID could actually have an effect with VRR: It could trigger scanout of the next frame before vertical blank has reached its maximum duration. Some kind of mechanism is required for this in order to allow user space to perform low frame rate compensation. > > > > > > > > > > > > Xaver tested this hypothesis in a flipping the same fb in a VRR monitor > > > > > > and it worked as expected, so this shouldn't be a concern. > > > > > > Right, so it must have some effect. It cannot be simply ignored like 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 reported > > > > > > framerate will be increased. Maybe an additional wording could be like: > > > > > > > > Flipping to the same FB_ID will result in a immediate flip as if it was > > > > changing to a different one, with no effect on the image but effecting > > > > the reported frame rate. > > > > > > Re-setting FB_ID to its current value is a special case regardless of > > > PAGE_FLIP_ASYNC, is it not? > > > > 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. I see it only checking if FB_ID changes or not. If it doesn't change then the implication is that the side effects will in fact be skipped as not all planes may even support async flips. -- Ville Syrj?l? Intel