Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2565953rdg; Mon, 16 Oct 2023 08:10:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3Fdt0QFLf+kGbVudwnVKuqR6yxAM7lUl1uvlXD2yV1nUHDvDNsB+cZ1R3tNdYj497rYVy X-Received: by 2002:a17:902:c407:b0:1c9:9e33:3a7d with SMTP id k7-20020a170902c40700b001c99e333a7dmr11736741plk.20.1697469034170; Mon, 16 Oct 2023 08:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697469034; cv=none; d=google.com; s=arc-20160816; b=eWM3bY+Fl2Bu2p/tgQ4d7Bdev81jk28ff4WrVchOYAyt2AiK7Fa7+mvnY3ThidtiVd ReaOKoOkxbPcziIO2tIHJfbx+JfzRPlyhA8emg33WWR4umm1SyHJawbrXWgjxkkuAZvv FGq8UFWugqd4HR//vpLKP8Ab1H0lxDXD8OEWQ7+RXpXB4vocZkFG1qxC6YjOB4k6Hv+u sWCNia6ltd+anZn7qNKoLLkaGxBQms6oIVz64OET4Q1xZ/J1BVQnEqqMrAB0xQ7bqcDw xgKLLh2pMlr5bu08bu6V9kTzTAfpzN7JKZ059IifBF4svyA6KyE76ZYEUF6tYNoCrViU 5sug== 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=QKoLeTx4A4Bng5NxXcSuSFpuJfSYJZv0xj5MIKejFpI=; fh=BHF/tOrZKNU9bZxseOWvJ8lrMO3BiigVx4ttC4/HUBc=; b=Tp9wLhyzakOTJxmll/BFh6ZrpmpInfFqgP14kuMjdYsOdavavpKSNSM0W9wphcIR8H JoGgG3UaXBvqdr3xx6rRY/ApbNBC09PpM+xqsDyynACBuOHG1Qtp/1sI5Lnk0uzjTvVM rURcNcsu26QUQRbk5CHhToY5uoj1mAXVgfFr3RdXq79IcAahX9It3s8N2KQsI716WtWO GwsIwyPtCA7p7fHutG1+DqBwb8AgSqBOxafyoPIaGhx8vg0sleA6VgQfahlpK9hK+cRK r9O9O3C8LXSPnq73c79c1w4tH8AgiiZMRaAEJr5oYFNadvmtr3AmdnfhjAnp1zahgts1 3Y1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SxdhfmYR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s7-20020a170902ea0700b001ca3cd7ead6si5283402plg.452.2023.10.16.08.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SxdhfmYR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 35BC780B183B; Mon, 16 Oct 2023 08:10:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232316AbjJPPKS (ORCPT + 99 others); Mon, 16 Oct 2023 11:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJPPKR (ORCPT ); Mon, 16 Oct 2023 11:10:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11C06B4 for ; Mon, 16 Oct 2023 08:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697469016; x=1729005016; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=MyQvP0kMS5N7+lm1yhQWu0Yl1r3TfRGrjFdxq50e9BY=; b=SxdhfmYRRF7j8cEO52r6X2R+ngjMYp4qzL6BTAcgBskneebP6zhOjEJa iu8UUvrDpYJCjgm7xmfhkQO/XiRBEjht1zsMMVZ83xLf6sLsuAO26lm2M IhUJxF438LnX6GgZCUs+juANlNqM3rcmiuVwOwbR8vsH7lJuByWwbmJKC AQn9bO6unP0DUigJX+kTGQjuseBXkVQyZyLMflnU57182/y86qTlrJ97L 8KoRaBACyGU6X7l/ZWRPOSZiu7uBZS9xs97ceG+YtoxaxM0IHjCf/SEr2 TPQ+OJiBFgAV6nQzjzNoWIVsb5wA40HPP13Jh2oLv/QYyy/wBgCoFVTbH g==; X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="370622954" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="370622954" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 08:10:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="790832317" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="790832317" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 16 Oct 2023 08:10:07 -0700 Received: by stinkbox (sSMTP sendmail emulation); Mon, 16 Oct 2023 18:10:07 +0300 Date: Mon, 16 Oct 2023 18:10:07 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Pekka Paalanen Cc: =?iso-8859-1?Q?Andr=E9?= Almeida , Michel =?iso-8859-1?Q?D=E4nzer?= , xaver.hugl@gmail.com, pierre-eric.pelloux-prayer@amd.com, Daniel Vetter , 'Marek =?utf-8?B?T2zFocOhayc=?= , Randy Dunlap , Daniel Stone , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hwentlan@amd.com, Rob Clark , kernel-dev@igalia.com, alexander.deucher@amd.com, Dave Airlie , christian.koenig@amd.com, joshua@froggi.es, wayland-devel@lists.freedesktop.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231016175222.7a89e6ab@eldfell> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:10:31 -0700 (PDT) On Mon, Oct 16, 2023 at 05:52:22PM +0300, Pekka Paalanen wrote: > On Mon, 16 Oct 2023 15:42:16 +0200 > Andr? Almeida wrote: > > > Hi Pekka, > > > > On 10/16/23 14:18, Pekka Paalanen wrote: > > > On Mon, 16 Oct 2023 12:52:32 +0200 > > > Andr? Almeida 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 > > >>>> > > >>>> Specify how the atomic state is maintained between userspace and > > >>>> kernel, plus the special case for async flips. > > >>>> > > >>>> Signed-off-by: Pekka Paalanen > > >>>> Signed-off-by: Andr? Almeida > > >>> [...] > > >>> > > >>>> +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. The other issues (mainly relating to hardware where not all planes support async flips) I've already highlighted in some earlier mail. -- Ville Syrj?l? Intel