All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Zimmerman <1892604@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1892604] Re: qemu-system-arm: ../hw/usb/hcd-dwc2.c:666: dwc2_glbreg_read: Assertion `addr <= GINTSTS2' failed.
Date: Sun, 20 Sep 2020 06:35:40 -0000	[thread overview]
Message-ID: <160058374016.13871.5073456430396266746.malone@gac.canonical.com> (raw)
In-Reply-To: 159814309088.988.14645850566795174578.malonedeb@wampee.canonical.com

So I dug into this a little more, and it looks like this issue has
nothing to do with hcd-dwc2, other than it served as a canary because of
the assert that fired. With hcd-dwc2 removed from the build, the
2016-05-27 Raspbian image still doesn't work, it hangs shortly after the
login prompt appears on the console, before the GUI starts.

I tested with Qemu 4.0.0 and 4.2.1 and they are fine. The issue started
with Qemu 5.0.0. hcd-dwc2 wasn't introduced until 5.1.0, so it can't be
the root cause.

Since the issue doesn't seem to appear with any Raspbian distro since
2016-05-27, I don't know if anyone will be motivated to look into this
any further. Should we just close this bug?

** Changed in: qemu
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1892604

Title:
  qemu-system-arm: ../hw/usb/hcd-dwc2.c:666: dwc2_glbreg_read: Assertion
  `addr <= GINTSTS2' failed.

Status in QEMU:
  Confirmed

Bug description:
  When trying to run the 2016-05-27 Raspbian image on the emulated
  raspi2 platform, the system boots but shortly after the login prompt
  QEMU (master; commit ID ca489cd037e4d50dc6c40570a167504ad7e5a521) dies
  with:

  qemu-system-arm: ../hw/usb/hcd-dwc2.c:666: dwc2_glbreg_read: Assertion
  `addr <= GINTSTS2' failed.

  Steps to reproduce:

  1. Get the image: wget
  http://downloads.raspberrypi.org/raspbian/images/raspbian-2016-05-31/2016-05-27
  -raspbian-jessie.zip

  2. Extract the kernel image and DTB:

  sudo losetup -f --show -P 2016-05-27-raspbian-jessie.img
  sudo mkdir /mnt/rpi
  sudo mount /dev/loop11p1 /mnt/rpi/
  cp /mnt/rpi/kernel7.img .                                                                                                                                                                                                                                                                         
  cp /mnt/rpi/bcm2709-rpi-2-b.dtb .                                                                                                                                                                                                                                                                 
  sudo umount /mnt/rpi 
  sudo losetup -d /dev/loop11 

  3. Run QEMU:
  qemu-system-arm -M raspi2 -m 1G -dtb bcm2709-rpi-2-b.dtb -kernel kernel7.img -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -sd 2016-05-27-raspbian-jessie.img -smp 4 -serial stdio -display none

  A few seconds after the login prompt is displayed, QEMU will exit with
  the assertion failure.

  I also tried changing all of the asserts to if statements that (for
  MMIO reads) returned 0 and (for writes) just returned, but this
  resulted in a non-responsive system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1892604/+subscriptions


  parent reply	other threads:[~2020-09-20  6:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23  0:38 [Bug 1892604] [NEW] qemu-system-arm: ../hw/usb/hcd-dwc2.c:666: dwc2_glbreg_read: Assertion `addr <= GINTSTS2' failed Brendan Dolan-Gavitt
2020-08-23  0:54 ` [Bug 1892604] " Brendan Dolan-Gavitt
2020-08-25 19:47 ` Paul Zimmerman
2020-08-26  0:02 ` Brendan Dolan-Gavitt
2020-08-26  9:08 ` Peter Maydell
2020-08-26 22:07 ` Paul Zimmerman
2020-09-15 17:31 ` Petunia
2020-09-15 17:51 ` Brendan Dolan-Gavitt
2020-09-15 18:32 ` Petunia
2020-09-15 20:10 ` Paul Zimmerman
2020-09-15 20:49 ` Petunia
2020-09-15 23:44 ` Paul Zimmerman
2020-09-17  9:08 ` Paul Zimmerman
2020-09-17  9:21 ` Paul Zimmerman
2020-09-18 14:52 ` Brendan Dolan-Gavitt
2020-09-19 20:35 ` Paul Zimmerman
2020-09-20  6:35 ` Paul Zimmerman [this message]
2021-05-11  8:00 ` Thomas Huth
2021-05-11  8:26 ` 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=160058374016.13871.5073456430396266746.malone@gac.canonical.com \
    --to=1892604@bugs.launchpad.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.