From: Klaus Jensen <its@irrelevant.dk>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: mips, nvme/pci boot regression (commit 145e2198d749)
Date: Wed, 18 Jan 2023 08:24:20 +0100 [thread overview]
Message-ID: <Y8eepLAgZg8H+sq2@cormorant.local> (raw)
In-Reply-To: <aad40d69-c570-de15-8258-cde109842af9@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]
On Jan 17 15:25, Philippe Mathieu-Daudé wrote:
> Hi Klaus,
>
> On 17/1/23 13:30, Klaus Jensen wrote:
> > Hi Philippe,
> >
> > Commit 145e2198d749 ("hw/mips/gt64xxx_pci: Endian-swap using
> > PCI_HOST_BRIDGE MemoryRegionOps") broke my mips64 nvme boot test
> > (little-endian host, mips64 and nvme boot device).
> >
> > The pci device doesn't show up and the kernel panics.
> >
> > qemu-system-mips64 \
> > -nodefaults -nographic -snapshot -no-reboot \
> > -M "malta" -cpu "I6400" -m 512M \
> > -nic user,model=pcnet \
> > -drive file=images/rootfs.ext2,format=raw,if=none,id=d0 \
> > -device nvme,serial=default,drive=d0 \
> > -kernel images/vmlinux \
> > -append "root=/dev/nvme0n1 console=ttyS0,115200" \
> > -serial stdio
>
> How do I get this images/ folder, or how do you generate
> the kernel / rootfs images?
It's a buildroot with the qemu_mips64r6_malta_defconfig. However, the
kernel must be at least v6.2-rc3 and a potential fix for pin-based
interrupts[1] (other fixes are being discussed) must be applied. On
older kernels the device should show up, but it will be broken (issue on
big-endian with shadow doorbells and occasional timeouts due to the
kernel missing interrupts).
If you don't want to mess with that, I put the images on github[2] (the
kernel is v6.2-rc4 + my potential nvme driver fix). Just gunzip
rootfs.ext2.gz.
[1]: https://lore.kernel.org/linux-nvme/Y8W+H6T9DOZ08SoF@cormorant.local/
[2]: https://github.com/birkelund/qemu-nvme-boot
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-01-18 7:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-17 12:30 mips, nvme/pci boot regression (commit 145e2198d749) Klaus Jensen
2023-01-17 14:25 ` Philippe Mathieu-Daudé
2023-01-18 7:24 ` Klaus Jensen [this message]
2023-01-18 9:42 ` Philippe Mathieu-Daudé
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-all 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=Y8eepLAgZg8H+sq2@cormorant.local \
--to=its@irrelevant.dk \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).