From: "Oliver Steffen" <osteffen@redhat.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: devel@edk2.groups.io, dann.frazier@canonical.com
Subject: Re: [edk2-devel] [PATCH v2 2/2] ArmVirtPkg/ArmVirtQemu: Avoid early ID map on ThunderX
Date: Wed, 18 Jan 2023 00:27:54 -0800 [thread overview]
Message-ID: <CA+bRGFpQ_GPTHoCHA-E80B2tiuE3J7RojFwXWLryh+Q9wrtBtQ@mail.gmail.com> (raw)
In-Reply-To: <CAMj1kXEyqRpKCum67O07AXq5FHD4OZCPy9Ph8TH7PZvywN_xhQ@mail.gmail.com>
Quoting Ard Biesheuvel (2023-01-18 08:34:32)
> On Wed, 18 Jan 2023 at 07:37, Oliver Steffen <osteffen@redhat.com> wrote:
> >
> > On Tue, Jan 17, 2023 at 3:57 PM Ard Biesheuvel <ardb@kernel.org> wrote:
> >>
> >> On Tue, 17 Jan 2023 at 13:48, Oliver Steffen <osteffen@redhat.com> wrote:
> >> >
> >> > Hi Ard, Hi everyone,
> >> >
> >> > Thanks for the work!
> >> >
> >> > But somehow this patch (as it was merged into master branch) does not
> >> > work for me on the ThunderX box we have.
> >> >
> >> > Any idea what could be wrong?
> >>
> >> I'm not sure I understand the question. The patch targets ThunderX,
> >> and you are using a ThunderX2.
> >>
> >> What were you expecting to happen, and what is happening instead?
> >
> >
> > Firmware does not start at all when using KVM.
> >
> > Please excuse my limited knowledge of Arm processor variants.
> > I assumed that ThunderX and ThunderX2 are very similar and hoped
> > the fix would also work for this case.
> >
> > The issue was introduced by the same commit that Dann
> > reported (07be1d34d95460a238fcd0f6693efb747c28b329):
> > "ArmVirtPkg/ArmVirtQemu: enable initial ID map at early boot".
> >
>
> Can you share the QEMU command line that you are using? I use a
> ThunderX2 basically 24/7 to do all my Linux and EDK2 development, so
> this change was developed on ThunderX2 and so I'm surprised you are
> seeing this issue.
>
> Did you try the DEBUG build as well?
Yes, debug is on.
Here is what I have, trying with the master branch from just now
(998ebe5ca0ae5c449e83ede533bee872f97d63af):
# make -C BaseTools && \
. ./edksetup.sh && \
build -t GCC5 -a AARCH64 \
-p ArmVirtPkg/ArmVirtQemu.dsc \
-DCAVIUM_ERRATUM_27456 \
-b DEBUG
# /usr/libexec/qemu-kvm \
-machine accel=kvm -m 1G -boot menu=on \
-blockdev node-name=code,driver=file,filename="${FW_CODE_RESIZED}",read-only=on
\
-blockdev node-name=vars,driver=file,filename="${FW_VARS}" \
-machine pflash0=code \
-machine pflash1=vars \
-cpu max \
-net none \
-serial stdio
# /usr/libexec/qemu-kvm --version
QEMU emulator version 7.2.0 (qemu-kvm-7.2.0-3.el9)
# uname -r
5.14.0-234.el9.aarch64
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-redhat-linux/11/lto-wrapper
Target: aarch64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-host-pie
--enable-host-bind-now --enable-languages=c,c++,fortran,lto
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --enable-plugin --enable-initfini-array
--without-isl --enable-multilib --with-linker-hash-style=gnu
--enable-gnu-indirect-function --build=aarch64-redhat-linux
--with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.1 20221121 (Red Hat 11.3.1-4) (GCC)
Since you have the same CPU... Might this be a bug in KVM?
Thanks!
-Oliver
next prev parent reply other threads:[~2023-01-18 8:27 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-05 16:25 [PATCH v2 1/2] ArmVirtPkg/ArmPlatformLibQemu: Ensure that VFP is on before running C code Ard Biesheuvel
2023-01-05 16:25 ` [PATCH v2 2/2] ArmVirtPkg/ArmVirtQemu: Avoid early ID map on ThunderX Ard Biesheuvel
2023-01-10 0:08 ` dann frazier
2023-01-17 12:47 ` [edk2-devel] " Oliver Steffen
2023-01-17 14:53 ` Ard Biesheuvel
2023-01-18 6:36 ` Oliver Steffen
2023-01-18 7:34 ` Ard Biesheuvel
2023-01-18 8:27 ` Oliver Steffen [this message]
2023-01-18 8:48 ` Ard Biesheuvel
2023-01-18 9:22 ` Ard Biesheuvel
2023-01-19 11:03 ` Oliver Steffen
2023-01-19 11:11 ` Ard Biesheuvel
2023-01-19 11:25 ` Oliver Steffen
2023-01-19 11:55 ` Marc Zyngier
2023-01-19 12:21 ` Ard Biesheuvel
2023-01-19 12:00 ` Gerd Hoffmann
2023-01-19 12:55 ` Oliver Steffen
2023-01-19 13:21 ` Ard Biesheuvel
2023-01-26 12:01 ` Gerd Hoffmann
2023-01-26 13:48 ` Marc Zyngier
2023-01-26 14:46 ` Gerd Hoffmann
2023-01-26 15:08 ` Marc Zyngier
2023-02-01 9:13 ` Oliver Steffen
2023-02-01 11:51 ` Ard Biesheuvel
2023-02-01 12:58 ` Oliver Steffen
2023-02-01 13:29 ` Ard Biesheuvel
2023-02-02 11:09 ` Oliver Steffen
[not found] ` <173FFD60429C89C3.3213@groups.io>
2023-02-07 10:51 ` Oliver Steffen
2023-02-07 11:56 ` Ard Biesheuvel
2023-02-07 12:58 ` Oliver Steffen
2023-02-09 15:15 ` Ard Biesheuvel
2023-03-02 10:50 ` Ard Biesheuvel
2023-03-02 13:29 ` Oliver Steffen
[not found] ` <17489D498A098DB9.9697@groups.io>
2023-05-19 16:32 ` Oliver Steffen
2023-05-19 21:36 ` Ard Biesheuvel
2023-05-20 8:37 ` Oliver Steffen
2023-05-20 9:20 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+bRGFpQ_GPTHoCHA-E80B2tiuE3J7RojFwXWLryh+Q9wrtBtQ@mail.gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox