boot-qemu.sh: Use different CPU for arm64 with new QEMU + old kernel#61
Merged
nathanchance merged 1 commit intoApr 6, 2022
Merged
Conversation
Member
|
From that thread, it sounds like there's perhaps a missing backport we should take into stable instead? |
Member
Author
|
Maybe, I'll see. |
After FEAT_LPA was implemented in QEMU's TCG, kernels without
commit 787fd1d019b2 ("arm64: limit PA size to supported range") fail to
boot; this change first showed up in 4.16.
We already have a workaround for FEAT_LPA2 not working with kernels
older than 5.12, which is known. Reporting this to QEMU upstream
resulted in the recommendation to use one of the ARMv8.0 CPUs for these
older kernels. Use 'cortex-a72' for booting anything older than 4.16
with QEMU 6.2.50 (master) and newer.
Link: https://gitlab.com/qemu-project/qemu/-/issues/964
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
9a9ca9a to
4dd7e0b
Compare
Member
Author
|
I've updated the kernel check and commit message based on my analysis at https://gitlab.com/qemu-project/qemu/-/issues/964#note_903403849. |
nickdesaulniers
approved these changes
Apr 6, 2022
nickdesaulniers
left a comment
Member
There was a problem hiding this comment.
thanks for running the bisection to identify the change, the asses the risks in backporting it. Looks like this is the way to go. 🆔 ⛲
Member
Author
|
Thanks for double checking my analysis as always! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After FEAT_LPA was implemented in QEMU's TCG, kernels older than 4.19,
namely 4.9 and 4.14, fail to boot. We already have a workaround for
FEAT_LPA2 not working with kernels older than 5.12, which is known.
Reporting this to QEMU upstream resulted in the recommendation to use
one of the ARMv8.0 CPUs for these older kernels. Use 'cortex-a72' for
booting anything older than 4.19 with QEMU 6.2.50 (master) and newer.
Link: https://gitlab.com/qemu-project/qemu/-/issues/964