Re: [PATCH 6.9 073/281] drm/xe: Use ordered WQ for G2H handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 25, 2024 at 03:02:02PM -0400, Rodrigo Vivi wrote:
> > > >> > 
> > > >> > > > (cherry picked from commit 50aec9665e0babd62b9eee4e613d9a1ef8d2b7de)
> > > >> > 
> > > >> > Would help out here, but it doesn't.  
> > > >> 
> > > >> I wonder if there would be a way of automate this on stable scripts
> > > >> to avoid attempting a cherry pick that is already there.
> > > >
> > > > Please tell me how to do so.
> > > >
> > > >> But I do understand that any change like this would cause a 'latency'
> > > >> on the scripts and slow down everything.
> > > >
> > > > Depends, I already put a huge latency on drm stable patches because of
> > > > this mess.  And I see few, if any, actual backports for when I report
> > > > FAILED stable patches, so what is going to get slower than it currently
> > > > is?
> 
> My thought was on the stable scripts doing something like that.
> 
> For each candidate commit, check if it has the tag line
> (cherry picked from commit <original-hash>)

Right there, that fails with how the drm tree works.  So you are going
to have to come up with something else for how to check this.  Or fix
your process to make this work.

Look at the commits tagged for stable in the -rc1 merge window.  They
don't have the "cherry picked" wording as they were not cherry picked!
They were the "originals" that were cherry picked from.

> if so, then something like:
>  if git rev-parse --quiet --verify <original-hash> || \
>     git log --grep="cherry picked from commit <original-hash> -E --oneline >/dev/null; then
>             echo "One version of this patch is already in tree. Skipping..."
> 	    # send-email?!
>         else
>             #attempt to apply the candidate commit...
> 
> > > > Normally you all tag these cherry-picks as such.  You didn't do that
> > > > here or either place, so there was no way for anyone to know.  Please
> > > > fix that.
> 
> I'm afraid this is not accurate. Our tooling is taking care of that for us.

Then your tooling needs to be fixed.

> > > To be fair, this one seems to have been an accident. The same commit was
> > > cherry-picked to *two* different branches by two different people
> > > [1][2], and this is something we try not to do. Any cherry-picks should
> > > go to one tree only, it's checked by our scripts, but it's not race free
> > > when two people are doing this roughly at the same time.
> 
> Also I don't believe there's anything wrong here. It was a coincidence on
> the timing, but one is
> drm-xe-next-fixes-2024-05-09-1
> and the other
> drm-xe-fixes-2024-05-09
> 
> both maintained by different people at that time.
> 
> > 
> > any cherry-pick SHOULD have the git id referenced when they are
> > cherry-picked, that's what the id is there for.  Please always do that.
> 
> Original commit hash is 50aec9665e0babd62b9eee4e613d9a1ef8d2b7de
> 50aec9665e0b ("drm/xe: Use ordered WQ for G2H handler")

And that's not in Linus's tree.

> drm-xe-next-fixes-2024-05-09-1
> has commit 2d9c72f676e6 ("drm/xe: Use ordered WQ for G2H handler")
> which contains:
> (cherry picked from commit 50aec9665e0babd62b9eee4e613d9a1ef8d2b7de)
> Signed-off-by: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx>
> 
> drm-xe-fixes-2024-05-09
> has commit c002bfe644a2 ("drm/xe: Use ordered WQ for G2H handler")
> which contains:
> (cherry picked from commit 50aec9665e0babd62b9eee4e613d9a1ef8d2b7de)
> Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>

Ok, but again, the original is not in Linus's tree.

So how am I do know that the cherry picked line was already in the tree?
Added it twice is odd, but really, that's not the common failure here at
all.  The real problem is the -rc1 window where there is NOT a commit id
that can be matched up with (as it happening with a few commits here,
and with lots of AMD patches now.)

thanks,

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux