mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "pstanner@redhat.com" <pstanner@redhat.com>
To: "Tvrtko Ursulin" <tursulin@igalia.com>,
	"Christian König" <christian.koenig@amd.com>,
	"André Draszik" <andre.draszik@linaro.org>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	"Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>
Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
	 linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org,
	Peter Griffin <peter.griffin@linaro.org>,
	Tudor Ambarus <tudor.ambarus@linaro.org>,
	Juan Yescas <jyescas@google.com>,
	kernel-team@android.com
Subject: Re: [PATCH] dma-fence: use correct callback in dma_fence_timeline_name()
Date: Tue, 23 Jun 2026 15:08:39 +0200	[thread overview]
Message-ID: <bf8dbb798406303e0fdf75a596e36ab8fb85aa0d.camel@redhat.com> (raw)
In-Reply-To: <27f54324-94ac-4bbc-ba58-642a314197d7@igalia.com>

On Thu, 2026-06-18 at 20:30 +0200, Tvrtko Ursulin wrote:
> 
> On 18/06/2026 14:46, Christian König wrote:
> > On 6/18/26 14:00, André Draszik wrote:
> > > dma_fence_timeline_name() is a wrapper around
> > > dma_fence_ops::get_timeline_name(). Since the blamed commit below, it
> > > calls an incorrect callback.
> > > 
> > > Update it to restore functionality by calling the intended callback.
> > > 
> > > Fixes: 62918542b7bf ("dma-fence: Fix sparse warnings due __rcu annotations")
> > > Signed-off-by: André Draszik <andre.draszik@linaro.org>

Reviewed-by: Philipp Stanner <phasta@kernel.org>

> > I'm like 99% sure we had that already fixed weeks ago, but somehow it looks like that was never merged to drm-misc-fixes.

I'm also very sure that we had shot that bug down not too long in the
past.

> > 
> > Anyway Reviewed-by: Christian König <christian.koenig@amd.com>
> 
> I was also perplexed and took me some digging to realise what had happened.
> 
> The copy-and-paste bug was indeed originally fixed in:
> 
> commit 033559473dd3b55558b535aa37b8848c207b5cbb
> Author:     Akash Goel <akash.goel@arm.com>
> AuthorDate: Tue Oct 21 17:09:51 2025 +0100
> Commit:     Tvrtko Ursulin <tursulin@ursulin.net>
> CommitDate: Fri Oct 24 16:56:37 2025 +0100
> 
>      dma-fence: Fix safe access wrapper to call timeline name method
> 
> 
> But waaay before that I sent a fix for something else which touched 
> those lines not noticing the copy-and-paste, fixing a different issue. 
> That one however was not merged until earlier this year:
> 
> commit 62918542b7bf08860a60ebbde7654486e0ac0776
> Author:     Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> AuthorDate: Mon Jun 16 16:59:52 2025 +0100
> Commit:     Christian König <christian.koenig@amd.com>
> CommitDate: Mon Feb 9 14:05:20 2026 +0100
> 
>      dma-fence: Fix sparse warnings due __rcu annotations
> 
> Notice the authored vs commited dates.
> 
> I guess it was a silent conflict which overwrote the earlier fix and 
> restore the copy-and-paste bug.

silent conflict? If that can happen with our git workflow, how is it
that we don't see things like that more often?


P.


      reply	other threads:[~2026-06-23 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18 12:00 André Draszik
2026-06-18 12:46 ` Christian König
2026-06-18 18:30   ` Tvrtko Ursulin
2026-06-23 13:08     ` pstanner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf8dbb798406303e0fdf75a596e36ab8fb85aa0d.camel@redhat.com \
    --to=pstanner@redhat.com \
    --cc=andre.draszik@linaro.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jyescas@google.com \
    --cc=kernel-team@android.com \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=sumit.semwal@linaro.org \
    --cc=tudor.ambarus@linaro.org \
    --cc=tursulin@igalia.com \
    --cc=tvrtko.ursulin@igalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome