Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28021862rwd; Tue, 4 Jul 2023 11:25:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HsxMv988dZgWa7VCMIs28jG/N3HzVQM43lTEE9FADAt5d0bJHumUjkJCfsGvo/IHZdMFy X-Received: by 2002:a05:6a20:3252:b0:120:1baf:e56e with SMTP id hm18-20020a056a20325200b001201bafe56emr13461568pzc.19.1688495158497; Tue, 04 Jul 2023 11:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688495158; cv=none; d=google.com; s=arc-20160816; b=pAeoxzGz15EjRPks848CX/9T/l6xh2T4WR3fTPM7K0QMt0cRUIn+JDhyryTagZqinA sJudiD9qKWsiipsns5GrF658nmEhXxljCIbg+D1uFkhjoGD+pLBD7CxSzRUHVeoP5h2p OOS6Epcoxw6l5LHA8oisyCRAT277Jy/YeJ1epyZcf+ISz5z24baMXokYaqzzcHE4SWE4 HIqXEZ7A0m6F+Y2EVhX47sGYvurifts5N5Is3RMO+1bju6ETXn66nSKnTHrFhGX7ClEY yAwZp0h44LZ8sXXO50DFuqmFSMNEVGS+C2utx5KXi9z4K23WvGprDm+1HQMXkBQvsEq6 LWyg== 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 :dkim-signature:date; bh=A2izVLmKnAOTqixZ0m4jX7wiQ2V2QLpbP3fSp42+WRM=; fh=xQo0xKPC/I/iooG+7mA4hQsuSBYmMElyvvvCREuKfqQ=; b=MGQA9deNNyCGkY1ob0Z7s2UtniCJB2s6A05FkFwOpMwVSqYnX5EuWMWTLb52bPCztJ VhHcthltO95WuGUM0IhzObYl4AZTA1M6ubF9JQmmJVNMbCyykCFFRmR4y3Xkx9FhRYCs 4idP/3FQUXHDfkconTEp8FKQtEqwZPLDA0bmU3QLe4+RCxAse2cMAwy6WK3X8EcVYxas UEuQm3oSGABCudSStsM69Ogy1gKplNLvqzBEjB958qvHS9aywzTzgIn8BKCQGEpKxU2a dQm91LVUyT6s/ovaCaFL9SIvCFyMaR/NJ33cRaHFFrmcZohAvYvpnCImu3PM0NGqmANt IUqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail header.b=jLOT0tTO; 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=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a63d807000000b0055ace8caef9si18999062pgh.309.2023.07.04.11.25.44; Tue, 04 Jul 2023 11:25:58 -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=@emersion.fr header.s=protonmail header.b=jLOT0tTO; 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=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbjGDR5S (ORCPT + 99 others); Tue, 4 Jul 2023 13:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjGDR5R (ORCPT ); Tue, 4 Jul 2023 13:57:17 -0400 Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8499910C8 for ; Tue, 4 Jul 2023 10:57:13 -0700 (PDT) Date: Tue, 04 Jul 2023 17:57:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1688493430; x=1688752630; bh=A2izVLmKnAOTqixZ0m4jX7wiQ2V2QLpbP3fSp42+WRM=; 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=jLOT0tTOSkxg8LjsDKwNgrKPXhldiiJRdpMIbXZkpOBkxXNeUOuZRywdmJQ3P5Iyj 5gS9lyB8ymKw9JkTmUADEugrz8sXHNTeCwLtupS9/s7OeQgB1AQn78MreulGdGYQlP jeEnR3wNf2uCLNv5pbKuOXwfqjoNiqedMqpfxmLt5Ky4be6d9eGZmEVAMAiknPZ09x zf2Rpba1PK1XH0rt8t3qh5e4LQielBdGT/2IM1JpXdSAxhd0zc878dNGrRObqt96k8 7TtIV+42MtycK7nRw24lo+YlCQTldLM2P7571yupf7SyqqynFLkf2W/fHsZ9qWtnlk MJwvS5XEUjwaA== To: Sebastian Wick From: Simon Ser Cc: =?utf-8?Q?Andr=C3=A9_Almeida?= , pierre-eric.pelloux-prayer@amd.com, =?utf-8?Q?Marek_Ol=C5=A1=C3=A1k?= , =?utf-8?Q?Michel_D=C3=A4nzer?= , 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 Subject: Re: [PATCH v4 1/6] drm: allow DRM_MODE_PAGE_FLIP_ASYNC for atomic commits Message-ID: In-Reply-To: References: <20230701020917.143394-1-andrealmeid@igalia.com> <20230701020917.143394-2-andrealmeid@igalia.com> 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=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Tuesday, July 4th, 2023 at 19:06, Sebastian Wick wrote: > > + * When used with atomic uAPI, the driver will return an error if the = hardware > > + * doesn't support performing an asynchronous page-flip for this updat= e. > > + * User-space should handle this, e.g. by falling back to a regular pa= ge-flip. > > + * > > + * Note, some hardware might need to perform one last synchronous page= -flip > > + * before being able to switch to asynchronous page-flips. As an excep= tion, > > + * the driver will return success even though that first page-flip is = not > > + * asynchronous. >=20 > 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? What happens to the timing feedback? >=20 > This seems really risky to include tbh. I would prefer if we would not > add such special cases for now. This is not a new case, i915 already does this with the legacy API to address some hw issues. Sadly I don't think we can do anything about it.