Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28821809rwd; Wed, 5 Jul 2023 03:17:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFe5hP1WuYRAgNYrv36zwGAfeMOsMfNupw2q+LoEkIFhNlZplXT+RpGj/n5xvBxMJiZt94R X-Received: by 2002:a17:90b:607:b0:262:fa59:2908 with SMTP id gb7-20020a17090b060700b00262fa592908mr2615244pjb.1.1688552254000; Wed, 05 Jul 2023 03:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688552253; cv=none; d=google.com; s=arc-20160816; b=jYTuG51VWyrf5jzJHJeVJXjQepmuJBOgQ+BFo3dMkoZQ4i/bqAKL4h1AZqteS9huUd /5PKB0nt1oB+PWjgk/ut1B4PrHnqw2OTmFAOc4z9qymrYAqDIVZDCys9sW0DcZvy3y98 E0EVi6qru3BKTBeFfwp7FJt3KIA1wblQmcBq82hLIkf/mkNrUjctSXDrQXc1EMIqw4vZ O0w6EUqfuFYlvMFyXwTV17PqU+cEspDvjSUCLZaO0nrbdxLCDzm6VRj8gHUyEfB4T0uF 9kWa9L67g4z0a4xFc3tk8e8HraVXrzodDZIh9zDIVmehO0bbiusnPDJOeUVBUnIc/Nlv nygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=RQq2nzlBvqs3LR1ATp7LlQkGuwAdsoU/HQzWWBGdLIw=; fh=w8gSD88RNNfU9xWD6F0TIe9oHEZkpKXIgvKxsJcg9i4=; b=na0gx+CB9Mebb9YmyKnEIONAmawFF4zU8R1VIQhb1vsmx9apzyhzYf/k5XXQHDPwuR Jc4o1yMqTD7z6mtiBZGUxid1J+uKyYAUCMrsFsyL2s7aLuoOGaWPyD4qB3gBQ7X8MiEr eCWJ+cVCGtqkBV5GfWXMKRL/0MvvV8/4UhG8eRWPhbbMhGbPbUQ1HSyi4W1nDaLVmjec zGooJSBJkfZ4A95WXKHly82eiT1uzMsYhOc5XgQBYYe2+DDkD4YYpil1+sx0Bgy/sqlE SKjmLrTJZFYmGyrTN5wsAOxOmttQa0dGSW+/1ukU30xQ0f7aS46DhotRI/reQMHjkonC Q58g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="bXVa/v8Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc2-20020a17090b3b8200b0025e9a3124c7si1479958pjb.143.2023.07.05.03.17.21; Wed, 05 Jul 2023 03:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="bXVa/v8Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbjGEKAS (ORCPT + 99 others); Wed, 5 Jul 2023 06:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbjGEKAR (ORCPT ); Wed, 5 Jul 2023 06:00:17 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98462E41 for ; Wed, 5 Jul 2023 03:00:15 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4QwwBf62Pcz9st7; Wed, 5 Jul 2023 12:00:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1688551210; 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=RQq2nzlBvqs3LR1ATp7LlQkGuwAdsoU/HQzWWBGdLIw=; b=bXVa/v8QQNAnFngBbvUcsMVuH+/SPoQAZfblpknVcvwO6MGo/8NvOLZUIKyxmIU6hd31dL h10otONCenoNL9X/8ZhxH5tbqT2jTxS7DuRQ3tfqJiiHcPuF6x1AsUqfr8p1kxqgJ+Csbk OCl56xkrYxHXbdV6KFuYrE8IP14+W8TTwMNAF85xYtDBW1R5Eg2bHp9F1LEi08wO3tMBVU 5iatrMHZvgyRNfQrbnbQZsNzkbt0Fa7eNE3/C5IBGJyA2slAQVttxnF31KiF15Yb+U4Nh9 nyFHA1xUmekdto9eR1l/5JaAOkdVsD0SRyNXbgKZOmNRkj0x/2N8bPKNpJtLAw== Message-ID: Date: Wed, 5 Jul 2023 12:00:07 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v4 1/6] drm: allow DRM_MODE_PAGE_FLIP_ASYNC for atomic commits Content-Language: de-CH-frami, en-CA To: Sebastian Wick , =?UTF-8?Q?Andr=c3=a9_Almeida?= Cc: pierre-eric.pelloux-prayer@amd.com, =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= , Italo Nicola , Randy Dunlap , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, wayland-devel@lists.freedesktop.org, Pekka Paalanen , dri-devel@lists.freedesktop.org, kernel-dev@igalia.com, alexander.deucher@amd.com, hwentlan@amd.com, christian.koenig@amd.com, joshua@froggi.es References: <20230701020917.143394-1-andrealmeid@igalia.com> <20230701020917.143394-2-andrealmeid@igalia.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 42841dc9c0b77bbe99d X-MBO-RS-META: x149rw5ddd5djf7m5nw57pee9poq3fos X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/4/23 19:06, Sebastian Wick wrote: > On Sat, Jul 1, 2023 at 4:09 AM André Almeida wrote: >> >> @@ -949,6 +949,15 @@ struct hdr_output_metadata { >> * Request that the page-flip is performed as soon as possible, ie. with no >> * delay due to waiting for vblank. This may cause tearing to be visible on >> * the screen. >> + * >> + * When used with atomic uAPI, the driver will return an error if the hardware >> + * doesn't support performing an asynchronous page-flip for this update. >> + * User-space should handle this, e.g. by falling back to a regular page-flip. >> + * >> + * Note, some hardware might need to perform one last synchronous page-flip >> + * before being able to switch to asynchronous page-flips. As an exception, >> + * the driver will return success even though that first page-flip is not >> + * asynchronous. > > What would happen if one commits another async KMS update before the > first page flip? Does one receive EAGAIN, does it amend the previous > commit? Should be the former. DRM_MODE_PAGE_FLIP_ASYNC just means the flip may complete outside of vertical blank, it doesn't change anything else. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer