From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Wainer dos Santos Moschetta <wainersm@redhat.com>,
Beniamino Galvani <b.galvani@gmail.com>,
Niek Linnenbank <nieklinnenbank@gmail.com>,
qemu-arm <qemu-arm@nongnu.org>,
Willian Rampazzo <wrampazz@redhat.com>,
Cleber Rosa <crosa@redhat.com>
Subject: Re: [RFC PATCH 6/6] hw/arm/cubieboard: Disable unsupported M-USB in device tree blob
Date: Mon, 6 Jan 2020 17:36:34 +0100 [thread overview]
Message-ID: <092926a0-cc84-a9b4-4e7d-61219388a6f5@redhat.com> (raw)
In-Reply-To: <CAFEAcA_MTPuvHvijgeFkeLu2e96Tn90iAop0Lp5eER=7QnU_Nw@mail.gmail.com>
On 1/6/20 5:07 PM, Peter Maydell wrote:
> On Mon, 30 Dec 2019 at 11:10, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>>
>> We do not model the Sunxi Multipoint USB.
>> The Linux kernel OOPS when booting:
>
>> This is not critical but confusing. To avoid the Linux kernel to
>> probe this device, mark it disabled in the device tree blob.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>> I'm not sure if this is a QEMU anti-pattern or bad practice.
>> I know we prefer to be as close to the hardware as possible,
>> but here the hardware is not changed, the dtb is. However
>> this makes the guest behave differently. At least we don't
>> have to manually edit the dts. If this is only annoying for
>> acceptance testing, we might consider manually editing the
>> dts in the tests setup().
>
> In general I'd definitely prefer it if we avoided editing
> the DTB for things like this (we have very few boards that
> edit the DTB and none of them do it as workarounds for
> buggy/missing device emulation).
Yes I understand (I was expecting this answer, but better to have it
explicit).
> Is it possible to have
> at least a dummy implementation of the controller that's
> enough to make the probe function fail more cleanly?
Niek gave some pointers. Anyway The kernel is not crashing, it is just
oopsing, so this is not fatal (the VM is still usable).
Thanks!
Phil.
next prev parent reply other threads:[~2020-01-06 16:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-30 11:09 [PATCH 0/6] hw/arm/cubieboard: Few cleanups, add acceptance tests Philippe Mathieu-Daudé
2019-12-30 11:09 ` [PATCH 1/6] tests/boot_linux_console: Add initrd test for the CubieBoard Philippe Mathieu-Daudé
2019-12-30 20:52 ` Wainer dos Santos Moschetta
2019-12-31 11:41 ` Philippe Mathieu-Daudé
2020-01-03 13:31 ` Wainer dos Santos Moschetta
2019-12-30 11:09 ` [PATCH 2/6] tests/boot_linux_console: Add a SD card " Philippe Mathieu-Daudé
2019-12-30 11:09 ` [PATCH 3/6] hw/arm/allwinner-a10: Move SoC definitions out of header Philippe Mathieu-Daudé
2020-01-06 15:59 ` Peter Maydell
2019-12-30 11:09 ` [PATCH 4/6] hw/arm/allwinner-a10: Simplify by passing IRQs with qdev_pass_gpios() Philippe Mathieu-Daudé
2020-01-06 16:01 ` Peter Maydell
2019-12-30 11:09 ` [PATCH 5/6] hw/arm/allwinner-a10: Remove local qemu_irq variables Philippe Mathieu-Daudé
2020-01-06 16:01 ` Peter Maydell
2019-12-30 11:09 ` [RFC PATCH 6/6] hw/arm/cubieboard: Disable unsupported M-USB in device tree blob Philippe Mathieu-Daudé
2019-12-30 11:33 ` Niek Linnenbank
2019-12-30 13:55 ` Philippe Mathieu-Daudé
2019-12-30 20:05 ` Niek Linnenbank
2020-01-06 16:07 ` Peter Maydell
2020-01-06 16:36 ` Philippe Mathieu-Daudé [this message]
2020-01-06 16:24 ` [PATCH 0/6] hw/arm/cubieboard: Few cleanups, add acceptance tests Peter Maydell
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=092926a0-cc84-a9b4-4e7d-61219388a6f5@redhat.com \
--to=philmd@redhat.com \
--cc=b.galvani@gmail.com \
--cc=crosa@redhat.com \
--cc=f4bug@amsat.org \
--cc=nieklinnenbank@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@redhat.com \
--cc=wrampazz@redhat.com \
/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).