Skip to contentSkip to conversation

linux-next: manual merge of the hyperv tree with the tip tree

PATCH Stephen Rothwell 4 participants 6 messages Mar 15, 2021 – Mar 16, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the hyperv tree got a conflict in:

arch/x86/include/asm/mshyperv.h

between commit:

a0e2bf7cb700 ("x86/paravirt: Switch time pvops functions to use static_call()")

from the tip tree and commit:

eb3e1d370b4c ("clocksource/drivers/hyper-v: Handle sched_clock differences inline")

from the hyperv tree.

I fixed it up (I used the latter version of this file and then applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Mon, 15 Mar 2021 14:31:07 +1100
Subject: [PATCH] fix up for "x86/paravirt: Switch time pvops functions to use
static_call()"

---
 drivers/clocksource/hyperv_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/hyperv_timer.c +1 -1
index ce94f78eb851..1348afc6efbf 100644
@@ -490,7 +490,7 @@ static __always_inline void hv_setup_sched_clock(void *sched_clock)
 static __always_inline void hv_setup_sched_clock(void *sched_clock)
 {
 	/* We're on x86/x64 *and* using PV ops */
-	pv_ops.time.sched_clock = sched_clock;
+	paravirt_set_sched_clock(sched_clock);
 }
 #else /* !CONFIG_GENERIC_SCHED_CLOCK && !CONFIG_PARAVIRT */
 static __always_inline void hv_setup_sched_clock(void *sched_clock) {}
Signature · 5 lines
2.30.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw

From: Stephen Rothwell <[email protected]> Sent: Sunday, March 14, 2021 8:35 PM

Quoted 51 lines

Hi all,

Today's linux-next merge of the hyperv tree got a conflict in:

arch/x86/include/asm/mshyperv.h

between commit:

a0e2bf7cb700 ("x86/paravirt: Switch time pvops functions to use static_call()")

from the tip tree and commit:

eb3e1d370b4c ("clocksource/drivers/hyper-v: Handle sched_clock differences inline")

from the hyperv tree.

I fixed it up (I used the latter version of this file and then applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Mon, 15 Mar 2021 14:31:07 +1100
Subject: [PATCH] fix up for "x86/paravirt: Switch time pvops functions to use
static_call()"

---
 drivers/clocksource/hyperv_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/hyperv_timer.c +1 -1
index ce94f78eb851..1348afc6efbf 100644
@@ -490,7 +490,7 @@ static __always_inline void hv_setup_sched_clock(void
 *sched_clock)
 static __always_inline void hv_setup_sched_clock(void *sched_clock)
 {
 	/* We're on x86/x64 *and* using PV ops */
-	pv_ops.time.sched_clock = sched_clock;
+	paravirt_set_sched_clock(sched_clock);
 }
 #else /* !CONFIG_GENERIC_SCHED_CLOCK && !CONFIG_PARAVIRT */

static __always_inline void hv_setup_sched_clock(void *sched_clock) {}
--
2.30.0

Quoted 3 lines

--
Cheers,
Stephen Rothwell

Thanks. That's the correct fix for the conflict.

Michael

#2 lore raw
In reply to Stephen Rothwell
Quoted 14 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the hyperv tree got a conflict in:

arch/x86/include/asm/mshyperv.h

between commit:

a0e2bf7cb700 ("x86/paravirt: Switch time pvops functions to use static_call()")

from the tip tree and commit:

eb3e1d370b4c ("clocksource/drivers/hyper-v: Handle sched_clock differences inline")

Quoted 8 lines

from the hyperv tree.

I fixed it up (I used the latter version of this file and then applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Right,

so tglx and I took a quick look and came to the conclusion that it would be best if you - provided it is not too much trouble - keep applying this patch so that linux-next can get tested properly and we - Wei or I
- explain this merge conflict in our pull requests during the next merge window and ask Linus to merge your patch ontop. This way we'll save us the cross-tree merging dance.

Thx!

Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
maintainer
#3 lore raw
Quoted 24 lines · Borislav Petkov
Quoted 14 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the hyperv tree got a conflict in:

arch/x86/include/asm/mshyperv.h

between commit:

a0e2bf7cb700 ("x86/paravirt: Switch time pvops functions to use static_call()")

from the tip tree and commit:

eb3e1d370b4c ("clocksource/drivers/hyper-v: Handle sched_clock differences inline")

Quoted 8 lines

from the hyperv tree.

I fixed it up (I used the latter version of this file and then applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Quoted 8 lines

Right,

so tglx and I took a quick look and came to the conclusion that it would be best if you - provided it is not too much trouble - keep applying this patch so that linux-next can get tested properly and we - Wei or I
- explain this merge conflict in our pull requests during the next merge window and ask Linus to merge your patch ontop. This way we'll save us the cross-tree merging dance.

Totally agreed. :-)

I've made a note to inform Linus about this in the next merge window.

Thanks,
Wei.

Quoted 8 lines

Thx!

Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
#4 lore raw

Hi all,

Quoted 10 lines · On Tue, 16 Mar 2021 15:05:54 +0000 Wei Liu <[email protected]> wrote:
Quoted 9 lines

Right,

so tglx and I took a quick look and came to the conclusion that it would be best if you - provided it is not too much trouble - keep applying this patch so that linux-next can get tested properly and we - Wei or I
- explain this merge conflict in our pull requests during the next merge window and ask Linus to merge your patch ontop. This way we'll save us the cross-tree merging dance.

Quoted 3 lines

Totally agreed. :-)

I've made a note to inform Linus about this in the next merge window.

No worries, I will keep applying the patch (my setup allows that to happen automatically). Linus should apply it as a part of the merge resolution (as do I).

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw
Quoted 3 lines · Stephen Rothwell

No worries, I will keep applying the patch (my setup allows that to happen automatically). Linus should apply it as a part of the merge resolution (as do I).

Thanks!

Signature · 4 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg