Skip to contentSkip to conversation

b4 pulling from lore has issues when new rev has some new patches

DISCUSSION Ashok Raj 2 participants 3 messages Jun 14, 2023

lore
Share & tools
lore

Ashok Raj

author
#0 lore raw

Hi Konstatin

Dave suggested to send it your way.

I'm trying to use b4 (for the first time :-)).

I tried to pull from lore.

V1: https://lore.kernel.org/r/[email protected]

V2: https://lore.kernel.org/lkml/[email protected]/

When i try

#b4 shazam <v2 msg id>

it reports that it imported 8 patches as expected.

I was told I could pass v1 and it would now there is a V2 and pull the latest.

But the same with v1 msg-id, it pulls only 6 patches as opposed to 8.

It does tell there are 8, patches but only pulls 6. Maybe because there are 2 new patches in the front?

V1 only has 6, and v2 had 8 patches. GIving the v1 id only pulled 6 patches.

araj@araj-ucode:~/work/linux.git.trees$ b4 shazam -H [email protected]
Grabbing thread from lore.kernel.org/all/[email protected]/t.mbox.gz
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 25 messages in the thread
Partial reroll detected, reconstituting from v1
Will use the latest revision: v2
You can pick other revisions using the -vN flag
Checking attestation on all messages, may take a moment...
---
  [PATCH v1->v2 1/6] x86/smp: Remove pointless wmb() from native_stop_other_cpus()
  [PATCH v1->v2 2/6] x86/smp: Acquire stopping_cpu unconditionally
  [PATCH v1->v2 3/6] x86/smp: Use dedicated cache-line for mwait_play_dead()
  [PATCH v1->v2 4/6] x86/smp: Cure kexec() vs. mwait_play_dead() breakage
    + Reviewed-by: Ashok Raj <[email protected]>
    + Tested-by: Ashok Raj <[email protected]>
  [PATCH     v2 5/6] x86/smp: Split sending INIT IPI out into a helper function
  [PATCH v1->v2 6/6] x86/smp: Put CPUs into INIT on shutdown if possible
    + Reviewed-by: Ashok Raj <[email protected]>
  ---
  NOTE: install dkimpy for DKIM signature verification
---
Total patches: 6
---
WARNING: v2 is a partial reroll from previous revisions
         Please carefully review the resulting series to ensure correctness
         Pass --no-partial-reroll to disable
---
Base: attempting to guess base-commit...
Base: failed to guess base
Magic: Preparing a sparse worktree
---
Applying: x86/smp: Remove pointless wmb() from native_stop_other_cpus()
Applying: x86/smp: Acquire stopping_cpu unconditionally
Applying: x86/smp: Use dedicated cache-line for mwait_play_dead()
Applying: x86/smp: Cure kexec() vs. mwait_play_dead() breakage
Applying: x86/smp: Split sending INIT IPI out into a helper function
Applying: x86/smp: Put CPUs into INIT on shutdown if possible
---
Fetching into FETCH_HEAD
You can now merge or checkout FETCH_HEAD
  e.g.: git merge --no-ff -F /home/araj/work/linux.git.trees/.git/b4-cover --edit FETCH_HEAD --signoff
Signature · 6 lines
Cheers,
Ashok

Bike Shedding: (a.k.a Parkinson's Law of Triviality)
- When the discussion on a topic is inversely proportionate to the gravity of
  the topic.
#1 lore raw
Quoted 11 lines · Ashok Raj

Hi Konstatin

Dave suggested to send it your way.

I'm trying to use b4 (for the first time :-)).

I tried to pull from lore.

V1: https://lore.kernel.org/r/[email protected]

V2: https://lore.kernel.org/lkml/[email protected]/

Unfortunately, you started from a very bad case. The v1 of the series has the original 6 patches, but also a single-patch follow-ups claiming to be v2 of the series. Specifically, this message:

https://lore.kernel.org/all/87a5xe8gid.ffs@tglx/

This is why b4 auto-rolls a v2 for you, with 6 patches.

✓ [PATCH v1->v2 1/6] x86/smp: Remove pointless wmb() from native_stop_other_cpus() ✓ [PATCH v1->v2 2/6] x86/smp: Acquire stopping_cpu unconditionally
✓ [PATCH v1->v2 3/6] x86/smp: Use dedicated cache-line for mwait_play_dead() ✓ [PATCH v1->v2 4/6] x86/smp: Cure kexec() vs. mwait_play_dead() breakage
+ Reviewed-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)
+ Tested-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)
✓ [PATCH v2 5/6] x86/smp: Split sending INIT IPI out into a helper function
✓ [PATCH v1->v2 6/6] x86/smp: Put CPUs into INIT on shutdown if possible
+ Reviewed-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)

But then there's another submission that claims to be a v2, with 8 patches and a different subject in the cover letter:

https://lore.kernel.org/lkml/[email protected]/

Thankfully, b4 is quite happy to roll that into a series:

✓ [PATCH v2 1/8] x86/smp: Make stop_other_cpus() more robust
✓ [PATCH v2 2/8] x86/smp: Dont access non-existing CPUID leaf
✓ [PATCH v2 3/8] x86/smp: Remove pointless wmb() from native_stop_other_cpus() ✓ [PATCH v2 4/8] x86/smp: Acquire stopping_cpu unconditionally
✓ [PATCH v2 5/8] x86/smp: Use dedicated cache-line for mwait_play_dead() ✓ [PATCH v2 6/8] x86/smp: Cure kexec() vs. mwait_play_dead() breakage ✓ [PATCH v2 7/8] x86/smp: Split sending INIT IPI out into a helper function ✓ [PATCH v2 8/8] x86/smp: Put CPUs into INIT on shutdown if possible

Quoted 8 lines

When i try

#b4 shazam <v2 msg id>

it reports that it imported 8 patches as expected.

I was told I could pass v1 and it would now there is a V2 and pull the latest.

Unfortunately, in this case we're dealing with a messed-up situation, so it fails. The auto-finding of the previous series only works in perfect scenarios, and this one is very far from perfect, sorry.

Quoted 4 lines

But the same with v1 msg-id, it pulls only 6 patches as opposed to 8.

It does tell there are 8, patches but only pulls 6. Maybe because there are 2 new patches in the front?

Basically, at this point we just give up and ask people to stop doing crazy things with their patch submissions and please just always send a new series. :)

If you're trying to get a v2, just use the msgid of the v2 series -- any reason that doesn't work for you?

-K

author
#2 lore raw

Hi Konstatin,

First, b4 is awesome.. I'm just being the novice user trying it for the very first time :-)

Quoted 51 lines · Konstantin Ryabitsev
Quoted 11 lines · Ashok Raj

Hi Konstatin

Dave suggested to send it your way.

I'm trying to use b4 (for the first time :-)).

I tried to pull from lore.

V1: https://lore.kernel.org/r/[email protected]

V2: https://lore.kernel.org/lkml/[email protected]/

Unfortunately, you started from a very bad case. The v1 of the series has the original 6 patches, but also a single-patch follow-ups claiming to be v2 of the series. Specifically, this message:

https://lore.kernel.org/all/87a5xe8gid.ffs@tglx/

This is why b4 auto-rolls a v2 for you, with 6 patches.

✓ [PATCH v1->v2 1/6] x86/smp: Remove pointless wmb() from native_stop_other_cpus() ✓ [PATCH v1->v2 2/6] x86/smp: Acquire stopping_cpu unconditionally
✓ [PATCH v1->v2 3/6] x86/smp: Use dedicated cache-line for mwait_play_dead() ✓ [PATCH v1->v2 4/6] x86/smp: Cure kexec() vs. mwait_play_dead() breakage
+ Reviewed-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)
+ Tested-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)
✓ [PATCH v2 5/6] x86/smp: Split sending INIT IPI out into a helper function
✓ [PATCH v1->v2 6/6] x86/smp: Put CPUs into INIT on shutdown if possible
+ Reviewed-by: Ashok Raj <[email protected]> (✓ DKIM/intel.com)

But then there's another submission that claims to be a v2, with 8 patches and a different subject in the cover letter:

https://lore.kernel.org/lkml/[email protected]/

Thankfully, b4 is quite happy to roll that into a series:

✓ [PATCH v2 1/8] x86/smp: Make stop_other_cpus() more robust
✓ [PATCH v2 2/8] x86/smp: Dont access non-existing CPUID leaf
✓ [PATCH v2 3/8] x86/smp: Remove pointless wmb() from native_stop_other_cpus() ✓ [PATCH v2 4/8] x86/smp: Acquire stopping_cpu unconditionally
✓ [PATCH v2 5/8] x86/smp: Use dedicated cache-line for mwait_play_dead() ✓ [PATCH v2 6/8] x86/smp: Cure kexec() vs. mwait_play_dead() breakage ✓ [PATCH v2 7/8] x86/smp: Split sending INIT IPI out into a helper function ✓ [PATCH v2 8/8] x86/smp: Put CPUs into INIT on shutdown if possible

Quoted 4 lines

When i try

#b4 shazam <v2 msg id>

Quoted 8 lines
Quoted 4 lines

it reports that it imported 8 patches as expected.

I was told I could pass v1 and it would now there is a V2 and pull the latest.

Unfortunately, in this case we're dealing with a messed-up situation, so it fails. The auto-finding of the previous series only works in perfect scenarios, and this one is very far from perfect, sorry.

My bad :-)

Quoted 9 lines
Quoted 5 lines

But the same with v1 msg-id, it pulls only 6 patches as opposed to 8.

It does tell there are 8, patches but only pulls 6. Maybe because there are 2 new patches in the front?

Basically, at this point we just give up and ask people to stop doing crazy things with their patch submissions and please just always send a new series. :)

What would have worked in this case? if the subject was identical except a v2?

Can it have more/less patches than the prior version?

Quoted 3 lines

If you're trying to get a v2, just use the msgid of the v2 series -- any reason that doesn't work for you?

That works "beautifully" :-)... I was just trying the crazy thing since Dave said these cool things about b4 :-)..