From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794853782; b=RacriIazbzjBLsLNmIh0czDYR6O5OBEPpl5krkp2sUVdomKUPLMrR16UU1VcHoD3b0il kLnXL12EeArEvxSQXfDwY2CmQht1L/EwO/spETR6F6UHdHDx4Zpo6HlxC7jsS+buoNYOt 8mSkyTUbpQzr6z/66TczE49TRu6uENck6esYEjCCFkgZTVXcua9Gqz8jJqIA1islrZ7tH 6ed8D1aErgPfkHoN7obgRyGQ0uTJnlZbzkRKWKZjqO//QBQemlZ9LFfSeitLfxjq+kdOf XJF53O+Mg8JWWsWpPI1PtU0ZXklId2hbjrZDfq6miZnn7vfYy3pp+p7IgDdydWgUB+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794853782; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=ohJe8BJBCDffCZ4MuZ0uQ527x40SLHyvNrdc9OJlZqQ=; b=AjU7IxST9m+FKwm5+SepnoVvlWiILaI192xo15McwaUDgodBXz+7Kq4rGSmsNDH1F97K U7ZuL5SwYwSKlb2ciECqIZ4jDR5CIqW08CzjbWYtAymTlojToVkLPhkrRAnxjPw5l0yVP Pn6aG3j9Pl7ix2pWftGyAJYuw6qE3zTCm5qpTVrcwQljxtCB+FMJ39d3QiZeDScsWq2Bd g7jHDvNRE+4J4kHtqX3asEBxRDNIi5DJE8RNVGHn0yqDcCbNL47A0KXwCH9kEsEol6M+A PQG2MKOIYUXbxZswfWuFmv7Fkuhwd8Psfk9IX5s4Qp5js8HxXS8qPEpDy6eeG6gBVAQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=UFF1nAp6; arc=none smtp.remote-ip=209.85.128.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F206F606A322 for ; Mon, 16 Nov 2026 18:29:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F206F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=UFF1nAp6 Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4bb64ef5a14so19488215e9.1 for ; Mon, 16 Nov 2026 10:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794853780; x=1795458580; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ohJe8BJBCDffCZ4MuZ0uQ527x40SLHyvNrdc9OJlZqQ=; b=UFF1nAp66FEYrSP1Ai6hOAAcyk7zYvUl1WilpmpZ7iOinYDf68RS9oUufkPwpndgA1 hWvO6WCypFAzbra9ZgWw/8G8xE14b7rDYSVuI7nGqbYzTAyEESJN+dKkSYMH9opZ11b7 zJak45y8uPPFoyZ8+E8ZZEttxH/VBgANsjulmRxrVus9cVr0CfSe1otD36bkbP8+YM6L W54Wu+ucJhZU1xC6QuDeRUO+wUBNURQ5rgNTSbx9djTnO0KYyW9/hYcWylLuPMEf73xI aGH4BBiU6CnhcLgVv5VpT9kbUSNRlYfAZLHHPQK+CiO+9QmK3Cp6iBtp2Tg/YQHe1AgL vwQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794853780; x=1795458580; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ohJe8BJBCDffCZ4MuZ0uQ527x40SLHyvNrdc9OJlZqQ=; b=bvZSxSOu3nFxFnq2PFAbWyYvjFCnTTK7k4fx4uAuKipMhyIxkd5yj8n+/BoZnpGCJS k6TJyu58IJCvraht1Bg/bnvYnHd/e5ris6dp+Q/GThfCkbkTRS1PVrE7xVhaHPdh9rNs GdxVqXbdTTTyg+fAmoy9fT7JbFta05PU+GKAMpl8V0005mb5jfUf8ROKGvLSjB1Oraco 5mKrpv2zEFEwGvsu1bXNh3aknKcuoeSOC31dQev3GNOYvr3+2Q5Xn+dXx/9fRGdmM/PO E4JanV6p/3W8xEekQfXM6q2X8ALFB0tpJ5i5uX0BBOzymTgWFAH+o8yj+//RxpoyqGrk 6ixg== X-Forwarded-Encrypted: i=1; AL+hErHg6NviQhg8NvB9i5r7XnCENIm+a82Jr8Yj5HgFBb0iSkDSgyIQ0ceOl0tKiKMoi2OghsloNqoGERD/Ug==@vger.kernel.org X-Gm-Message-State: APuU4Z+LKVXdF4VlClHqacBEX+LasYC9UIiEgMm/dtYRwS8SdjHLPCa8 zj75fY8vhpErjCjXo1ZkJV5CIA7B2KNBum7tt8pGYdwbgQq/iRzMa9Qu X-Gm-Gg: AYBFou3YNLjd4x9HPNM1jd4sxllmgouWdhuDdOUDDHmhHxN3sV2gQS5nO+OJG/1f3m+ h8DuivFVodbs1TRWPBaD0fTnriZvI63WTaZAje3ikpF28FJJleDzAmojhZh7B/enjsZCDYtlGV8 5mU+iLg+lL4XfM1M2l/EOIvmVx8Ymqv4zzF91LxVVmWXRFW0eXa0MJ+86PA36cK7BxOYacgy0pG 52DVpxRZd1OopAS8x8wVoDmSdVJFy0dlock7QgJkQzM1MF/0zrBuYTK0vKfQWvlQ3quEFm92HyI UFaV0JcVet0RY1nj7wyfY4g+BlS5hRjcM1azV0w+L/MZCJFCem64fqXLrUuH2/prspjT5Rju2vq 3ctoQhY/NfDderxogMlGTXYSqjfep1/54V3CPSWyW3GhOTWBM1EQ6JarqZFKQR94kkfp+4uJwZz QuqXRj2wcfgsAVswlTU7+ZC6AJL2tw6glHDEF6YptpDhBz9jBh8IMGbcgYRR/T+7rCoeP1SUA6X 3F95v9LfB+qd3GmrMmmN2eUILInh70q+4HSPej+XBWF2fbUI8C5B0lIKhSLTD8TQoReejfz4yAN rJZrXJcGUe/IDXs3npaGI8JPfZVjhNLNoElFpkXBC1OtUQ3D+tM= X-Received: by 2002:a05:600c:46c9:b0:4a3:d327:6ed with SMTP id 5b1f17b1804b1-4bb55a5fdf6mr254839115e9.17.1794853780298; Mon, 16 Nov 2026 10:29:40 -0800 (PST) Received: from [10.155.107.148] ([147.88.200.116]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb783965d4sm7171285e9.7.2026.11.16.10.29.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Nov 2026 10:29:39 -0800 (PST) Message-ID: <1b7a7d94-e349-4f3c-b973-c365041c15f2@gmail.com> Date: Mon, 16 Nov 2026 18:29:38 +0100 X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/12] drm/atomic: Try to make atomic+async usable, and clear up the "async update" helper confusion To: Ville Syrjala , dri-devel@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, =?UTF-8?Q?Andr=C3=A9_Almeida?= , Boris Brezillon , Christopher Snowhill , Dave Stevenson , Dharma Balasubiramani , Dmitry Baryshkov , freedreno@lists.freedesktop.org, Gustavo Padovan , Huacai Chen , Icenowy Zheng , Jianmin Lv , linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org, Liviu Dudau , =?UTF-8?Q?Ma=C3=ADra_Canal?= , Manikandan Muralidharan , Maxime Ripard , Mingcong Bai , nouveau@lists.freedesktop.org, Qianhai Wu , Raspberry Pi Kernel Maintenance , Simon Ser , wayland-devel@lists.freedesktop.org, Xaver Hugl , Xi Ruoyao References: <20261116091130.13950-1-ville.syrjala@linux.intel.com> Content-Language: en-US From: Erwin Springer In-Reply-To: <20261116091130.13950-1-ville.syrjala@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 16.11.2026 um 10:11 schrieb Ville Syrjala: > From: Ville Syrjälä > > The weird uapi semantics of the atomic async flip support make it > really hard for drivers to implement. Try to fix that by filtering > out the no-op junk from the commit that userspace likes to put there. > > Also a lot of people are apparently confusing the > .atomic_async_{update,check}() hack with async flips. The two > are completely orthogonal, so try to clear up that mess by > renaming the hack to .atomic_bypass_{update,check}(). > > TODO: atomic+async is in serious need to proper tests, somehow > all that seems to have gotten skipped when the feature > was added :( thanks, this fixes the KWin case for me, so my patch is no longer needed.. tested on Raptor Lake-U (Iris Xe) with unmodified KWin 6.8.2 and a fullscreen client that requests tearing through wp_tearing_control_v1, without my patch. I applied the series to the CachyOS 7.3.4 kernel, the only conflicts were the renames in amdgpu and msm. Before, none of about 350 frames per run was presented without vsync. With the series 3330 of 3336 frames tear over four runs (with and without CCS modifiers), and the "async flip not supported" message is gone. What is still rejected is the first flip after the modifier or format changed, once per run, as intended, and in three of the runs one commit that touches the cursor plane, which can't do async flips:   [PLANE:146:cursor A] does not support async flips No warnings and no flip_done timeouts in the log. If you think it fits, feel free to add: Reported-by: Erwin Springer Tested-by: Erwin Springer