Skip to contentSkip to conversation

linux-next: manual merge of the kvm-arm tree with the arm64 tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Jul 23, 2018 – Aug 17, 2018

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

Hi all,

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

arch/arm64/include/asm/cpucaps.h

between commit:

314d53d29798 ("arm64: Handle mismatched cache type")

from the arm64 tree and commit:

e48d53a91f6e ("arm64: KVM: Add support for Stage-2 control of memory types and cacheability")

from the kvm-arm tree.

I fixed it up (see below) 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.

Signature · 19 lines
Cheers,
Stephen Rothwell

diff --cc arch/arm64/include/asm/cpucaps.h
index be3bf3d08916,ed84d6536830..000000000000
--- a/arch/arm64/include/asm/cpucaps.h
+++ b/arch/arm64/include/asm/cpucaps.h
@@@ -49,8 -49,8 +49,9 @@@
  #define ARM64_HAS_CACHE_DIC			28
  #define ARM64_HW_DBM				29
  #define ARM64_SSBD				30
 -#define ARM64_HAS_STAGE2_FWB			31
 +#define ARM64_MISMATCHED_CACHE_TYPE		31
++#define ARM64_HAS_STAGE2_FWB			32
  
--#define ARM64_NCAPS				32
++#define ARM64_NCAPS				33
  
  #endif /* __ASM_CPUCAPS_H */
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 15 lines · Stephen Rothwell

Hi all,

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

arch/arm64/include/asm/cpucaps.h

between commit:

314d53d29798 ("arm64: Handle mismatched cache type")

from the arm64 tree and commit:

e48d53a91f6e ("arm64: KVM: Add support for Stage-2 control of memory types and cacheability")

Quoted 9 lines

from the kvm-arm tree.

I fixed it up (see below) 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.

Looks good, thanks Stephen.

	M.

- --
Jazz is not dead. It just smells funny...
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEn9UcU+C1Yxj9lZw9I9DQutE9ekMFAltVscgVHG1hcmMuenlu Z2llckBhcm0uY29tAAoJECPQ0LrRPXpDlcAP/1ahY/hghk5uJBrWdv13H0/wam85 OBB0xfaPU7f3HWIIZlyccMW+nY/mxxffdpZ4fGIiwMKfUNcshG0pjALNkvSmtgSx UDehcHjHcdahqTG0SBFe0F8zISdCGgLEPgJ7Ow5RO+5RoNTQckNIPz92nUW5Hu3d bTE41mMr+isFg6eYSVbBBHwuxN0PAVhQ9xDfJwEezfm5jcSTlg2nenRHbic6cf7o utOXe27ZU2W278cwWGrk4iMmLg2EDJcPZ1nK15WI4GVL25sQGBX8MYScjiXImaBX eF8aJtfd8xJ3LWH4ENgD0EEnt7dKGBTidZIZA86g1+LmZH+zA4/1AEWpidvsExPe zH/b3N3Al8oLPMOJjxJEcFB2yAeTiyMJ+fRc9+6X/Tv0Pxj0FeyqrJrIDCLz8I0Y fy4VL3nuHCyKtgFGWAM6hznM1scCm4JAwq3kE0Pe2sxHjClRPb1TjQ1IdALtL4tI iSdth16dSBKluaMeVCBugOG+hfX11REUChkpMaX4X73ISOY87w1u40l1aqE3UBr3 XOOHW8bZ3TkDCrqtWxw4Cgb4fgTzJMbmINwoj77Hc57NdsV9WWTeS0T7lRdRFvbs ohmMekjvc/3HjkiI1X+vKVFQdLdUtpAoo/j6MLAsx8F4hluneZS0bACM2oO6moVD qRjj85emuDsA0a2R
=pFup
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 32 lines · On Mon, 23 Jul 2018 14:46:41 +1000 Stephen Rothwell <[email protected]>…

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

arch/arm64/include/asm/cpucaps.h

between commit:

314d53d29798 ("arm64: Handle mismatched cache type")

from the arm64 tree and commit:

e48d53a91f6e ("arm64: KVM: Add support for Stage-2 control of memory types and cacheability")

from the kvm-arm tree.

I fixed it up (see below) 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.

Signature · 2 lines
Cheers,
Stephen Rothwell
arch/arm64/include/asm/cpucaps.h +0 -0
diff --cc arch/arm64/include/asm/cpucaps.h
index be3bf3d08916,ed84d6536830..000000000000
@@@ -49,8 -49,8 +49,9 @@@
  #define ARM64_HAS_CACHE_DIC			28

arch/arm64/include/asm/cpucaps.h

Quoted 10 lines
arch/arm64/include/asm/cpucaps.h +2 -1
  #define ARM64_HW_DBM				29
  #define ARM64_SSBD				30
 -#define ARM64_HAS_STAGE2_FWB			31
 +#define ARM64_MISMATCHED_CACHE_TYPE		31
++#define ARM64_HAS_STAGE2_FWB			32
 
--#define ARM64_NCAPS				32
++#define ARM64_NCAPS				33
 
  #endif /* __ASM_CPUCAPS_H */

This is now a conflict between Linus' tree and the kvm-arm tree (and presumably soon the kvm tree).

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#3 lore raw
Quoted 10 lines · Stephen Rothwell
Quoted 8 lines

-#define ARM64_HAS_STAGE2_FWB 31
+#define ARM64_MISMATCHED_CACHE_TYPE 31
++#define ARM64_HAS_STAGE2_FWB 32

--#define ARM64_NCAPS 32
++#define ARM64_NCAPS 33

  #endif /* __ASM_CPUCAPS_H */

This is now a conflict between Linus' tree and the kvm-arm tree (and presumably soon the kvm tree).

This should have been sorted out using topic branches. I'll handle it myself by splitting the pull request in two, but please try to organize better the changes in non-KVM-specific arch/arm and arch/arm64 files.

Thanks,

Paolo

#4 lore raw
Quoted 9 lines · Paolo Bonzini
Quoted 7 lines · Stephen Rothwell
Quoted 7 lines

-#define ARM64_HAS_STAGE2_FWB 31
+#define ARM64_MISMATCHED_CACHE_TYPE 31
++#define ARM64_HAS_STAGE2_FWB 32

--#define ARM64_NCAPS 32
++#define ARM64_NCAPS 33

Quoted 7 lines
Quoted 3 lines
Quoted 1 line
  #endif /* __ASM_CPUCAPS_H */

This is now a conflict between Linus' tree and the kvm-arm tree (and presumably soon the kvm tree).

This should have been sorted out using topic branches. I'll handle it myself by splitting the pull request in two, but please try to organize better the changes in non-KVM-specific arch/arm and arch/arm64 files.

We've dealt with that kind of trivial conflicts in the past without requiring topic branches (cpucaps.h has always been a popular place), and I always assumed that this was acceptable. I must have misunderstood something here.

Next time, I'll direct the architecture-specific code via the arm64 tree directly.

Thanks,

	M.
Signature · 1 line
Jazz is not dead, it just smell funny.