Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1385858

Re: qemu:beagle no longer booting with omap2plus_defconfig in -next

From Guenter Roeck <linux@roeck-us.net>
Newsgroups linux.kernel
Subject Re: qemu:beagle no longer booting with omap2plus_defconfig in -next
Date 2016-04-24 20:20 +0200
Message-ID <rrwNs-sE-9@gated-at.bofh.it> (permalink)
References <rra0y-73x-13@gated-at.bofh.it> <rrbJ0-a3-19@gated-at.bofh.it> <rrvol-7Fr-9@gated-at.bofh.it> <rrvRn-8ar-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Boris,

On 04/24/2016 10:14 AM, Boris Brezillon wrote:
[ ... ]

>>
>> In qemu, it looks like gpmc bit 0 is considered to be the NAND chip select,
>> which is distinctly different to a chip ready pin.
>
> Well, if you look at the GPIO controller implementation, you'll see
> that gpichip->get() is adding 8 to the GPIO index, so the
> implementation is actually testing bit 8 and not bit 0. Maybe this is
> not emulated properly in qemu though...
>
That helps. The QEMU emulation always returns 0x0001 when reading gpmc register
0x54, which suggests that WAIT0STATUS reports as 0.

>> Guess I would have to try
>> finding a chip datasheet to figure out what this pin is supposed to do, and
>> what is wrong. Since it is somewhat unlikely that I'll find the time to do that,
>> I just disabled MTD_NAND_OMAP2 in my qemu tests instead. Not an ideal solution,
>> of course, but the alternative would be to drop the beagle qemu tests entirely.
>
> Long time I haven't looked at qemu code, but IIRC there were no proper
> support for the NAND layer (maybe this has changed since then though).
> And the R/B pin status emulation is probably much more complicated to
> implement than just returning a valid STATUS byte in a generic NAND chip
> emulation layer (you have to emulate the GPMC block and all its
> external interfaces like the R/B IOs as well as the R/B pin
> emulation at the NAND chip emulation level)...
>

Well enough for it to at least find the NAND chip.

So the qemu "fix" was to return 0x0101 instead of 0x0001 when reading gpmc
register 0x54.

Now I get "INFO: suspicious RCU usage" on reboot, but that is a separate issue.

Thanks a lot for the hints!

Guenter

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

qemu:beagle no longer booting with omap2plus_defconfig in -next Guenter Roeck <linux@roeck-us.net> - 2016-04-23 20:00 +0200
  Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-23 21:50 +0200
    Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Guenter Roeck <linux@roeck-us.net> - 2016-04-24 18:50 +0200
      Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-24 19:20 +0200
        Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Guenter Roeck <linux@roeck-us.net> - 2016-04-24 20:20 +0200
      Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-24 19:40 +0200
        Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Guenter Roeck <linux@roeck-us.net> - 2016-04-24 20:20 +0200
    Re: qemu:beagle no longer booting with omap2plus_defconfig in -next Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-24 21:30 +0200

csiph-web