From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136374; b=ILiz+EF7HWzUaNvFfewkLunFUdzGxZnCdj+MuLoBJOk1CleFvi4jT3N5egvCGetQtTnO 2KT+c0gH5Wbavr/mtg7QM7SzuXS7H/0B5prw3CN+gRkcTHlBwb1RIBjbaWk7T9mkwieFd Dmuj/3yEfDjsDViIkkp7eMMS1NktyBhRyKQA9vzrZNkLgyg7lBY2fH8s2xKHMHkuSVRmL NgSLjNWrEMuTJVNXz4mKQFvuaYeqKRrID0cCWvWmPr2HMGJPlfhQ5rPkzKxP7cShklpOS SHxhS4ejPbGalbQTPZ/WiyD7sABU9klv+btxdD+S+qZfbC6KFm4zO0hNdgPG07dTkqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136374; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From: Reply-To:To:Cc:Date:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version:X-MBO-RS-ID: X-MBO-RS-META; bh=gSUCwVsAIf4h2ioCm4mVKWxIwSKm//Okiov2htZEqyI=; b=B2v06AT3XWPj7FK8dnIa7JH13mjVGF1TCkKcqyenaqQfNNtVhUY7+KolBQrLMP7AzMFZ u0MezrQ+I+ip2km7I+d5JcwJcDj5N+chExaix+kodpTioS43/eDOhzpPOTUK6cAIJUWNU tjF4lvBT0g3MLxyLsxC+ihgfUqtAhDZYYQmghypctm2Gr3oKjt6sxHeNNCIGD7Tmbsrvy NhnAw4x4hZkHfREQ0cet5dNdk/DWtMDpAm4AM5FpWIL/37MRrEBngQVUNAaU9/PfDV+Hk JnmyvrZ3YjM0JHlGs56tSc9CdcJh5V1HWPNF25d/R259L3pEdk1cgbiLODQ+y/65WAw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=e1UkEJJw; arc=none smtp.remote-ip=80.241.56.172 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 408E7606A31A; Tue, 1 Dec 2026 14:46:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 408E7606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=e1UkEJJw Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4jf3c139wlzMlsd; Tue, 01 Dec 2026 15:46:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796136369; h=from:from:reply-to: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=gSUCwVsAIf4h2ioCm4mVKWxIwSKm//Okiov2htZEqyI=; b=e1UkEJJw2unYkfCw7W10CMtoqumPswaoNV2w5JD5FrzRLMQZuYVzvyyacpYDiBDS5icoje QxuzArs4O+jY4CkB7uQu8o/A6nEUMVBpyWI4ShI4reVNABWQ5TNHw0KvqTGpEL7hdi1HIU A876Pw2iJvz7Zce+jV9Xj/kbSIqv1tXYlRY44mOjnKWNqidXPvF/07i+IBsC9KHGksi3Hy BVvH9VVcxtDFxZJ0IvMg+vv5M09WSrsDEMhUhyGYt7Qieyhc/wVNiNcuhnubzADq/5Xa91 9/4YyLnjWeFkf5adOXykk/N4maSK4Q7zLZcjsUryBBE8CVLEumr/QCFsKBYGBg== Message-ID: <5a133e6a9173715422baf2ad30e5036c9f53d70f.camel@mailbox.org> Subject: Re: [PATCH v2 0/3] dma-fence: Properly order timestamps From: Philipp Stanner Reply-To: phasta@kernel.org To: Danilo Krummrich , Philipp Stanner Cc: Sumit Semwal , Christian =?ISO-8859-1?Q?K=F6nig?= , Alex Deucher , David Airlie , Simona Vetter , Matthew Brost , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Tvrtko Ursulin , Pierre-Eric Pelloux-Prayer , Shahyan Soltani , Ruslan Vagner , "Mario Limonciello (AMD)" , Gustavo Padovan , Chris Wilson , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org Date: Tue, 01 Dec 2026 15:46:05 +0100 In-Reply-To: References: <20261201091712.716354-2-phasta@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MBO-RS-ID: c1165d344891bbe40f0 X-MBO-RS-META: wkubt6rqfasfqufctfecg8ba5yg6orfu On Tue, 2026-12-01 at 15:36 +0100, Danilo Krummrich wrote: > On Tue Dec 1, 2026 at 10:17 AM CET, Philipp Stanner wrote: > > =C2=A0 - Avoid "hotfix" rhetoric. (Danilo) >=20 > This wasn't about terminology. I'm questioning why this is needed as a la= te > cycle fix. >=20 > You pointed out that this gap already exists for a very long time and we = don't > have any reports for this causing issues in practice. Yes, I have understood that already. This series is about: this is a problem, so let's merge into into drm- misc-fixes, some time in the near to mid future. This is not intended as a "late cycle fix", just as a fix. > Additionally, you mention below that you work on a proper solution that y= ou will > post soon. >=20 > So, why do we need this as a quick late cycle fix? Why can't we just go w= ith > your proper fix? What does the proper fix look like? https://lore.kernel.org/dri-devel/20261127101812.2706432-2-phasta@kernel.or= g/ > Now, of course the regression potential of this series is surveyable, but= given > that you say it is temporary and you send a proper fix soon, it seems > unnecessary. It's small and easy to backport. The "proper solution", linked above, once again might not be so easy to roll out, because (surprise /s): - fence lock and fence context lock are shared, for example in sync_file. - Some parties call dma_fence_timestamp() from a fence callback, thereby deadlocking because the fence callbacks are called with the lock held. I guess these we *might* be able to port to just ktime_get(). - Users have ossified the API, most notably i915. It could be that removal of the TIMESTAMP bit would have to be reverted should i915 regress. So same story as always. The toughest nut to crack for a cleaner solution would be sync_file, which doesn't use inline_lock right now, therefore is condemned to a manual test_bit(). I currently am inclined to think that dma_fence_timestamp() should work with manual barriers for now, then the broken users be ported, and then one day dma_fence_timestamp() can be locked. Maybe together with the signaled-bit, depending on how our discussions there unfold. Clear now? P.