Skip to contentSkip to conversation

Versatile Express no-boot with multi-platform kernels

DISCUSSION Russell King - ARM Linux 1 participant 2 messages May 9, 2015

lore
Share & tools
lore
#0 lore raw

I've been building an OMAP4 + Versatile Express kernel in the build system as a check that there are no incompatibilities between the two creeping in.

However, a while back, Versatile Express stopped booting with this configuration _after_ the resolution of the L2 cache latency issue.

I've been trying to debug it today, but what I find is that if I change the LL_DEBUG to the Versatile Express option, and put my printascii() hack into kernel/printk/printk.c, it boots.

I can't say much more than that right now - I tried moving the debug output to one of the other ports, but it seems that the other ttyAMA ports aren't actually connected to the 9-pin D connectors on the chassis (well, the CTS signal appears to be, but not the TX/RX signals.) Port 1 appears to be redirected permanently to one of the on-board micros. Port 3, when set to 38400 baud, receives random characters with framing errors from an unknown source. Port 2 appears to do nothing both in the TX and RX directions.

Having the printascii hack in place but directed to one of the other ports also results in a non-booting scenario.

It seems that printascii() on ttyAMA0 (the console) helps the kernel boot.

I thought maybe it was a result of the recent commits to change the TX behaviour in the pl011 driver, so I've tried reverting:

48d7ff0eaacb drivers/tty: serial: remove info message
1c9be3101574 drivers/tty: amba: defer DMA probe until the DMA channel is require... f2ee6dfa0e85 serial/amba-pl011: Leave the TX IRQ alone when the UART is not open... 734745caeb9f serial/amba-pl011: Activate TX IRQ passively

but these seem to have no effect. Reverting much before that starts getting quite tricky because of changes which span outside of the driver.

The final data point is that a kernel built specifically for Versatile Express /does/ work.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
#1 lore raw
Quoted 20 lines · Russell King - ARM Linux

I've been building an OMAP4 + Versatile Express kernel in the build system as a check that there are no incompatibilities between the two creeping in.

However, a while back, Versatile Express stopped booting with this configuration _after_ the resolution of the L2 cache latency issue.

I've been trying to debug it today, but what I find is that if I change the LL_DEBUG to the Versatile Express option, and put my printascii() hack into kernel/printk/printk.c, it boots.

I can't say much more than that right now - I tried moving the debug output to one of the other ports, but it seems that the other ttyAMA ports aren't actually connected to the 9-pin D connectors on the chassis (well, the CTS signal appears to be, but not the TX/RX signals.) Port 1 appears to be redirected permanently to one of the on-board micros. Port 3, when set to 38400 baud, receives random characters with framing errors from an unknown source. Port 2 appears to do nothing both in the TX and RX directions.

Quoted 5 lines

Having the printascii hack in place but directed to one of the other ports also results in a non-booting scenario.

It seems that printascii() on ttyAMA0 (the console) helps the kernel boot.

Okay, I've tried doing a bisect - the breakage happened between v3.19 and v4.0. I'm running these bisects with a tag latency of <2 2 1>.

Bisect finds that the broken commit is 0be952c13be8:

commit 0be952c13be80ccdd3cb0d1ba25099de9468ac1b
Merge: 9c987a33a864 ec76f4007079
Author: Linus Torvalds <[email protected]>
Date: Sat Mar 14 09:36:10 2015 -0700

Merge tag 'vfio-v4.0-rc4' of git://github.com/awilliam/linux-vfio

Testing (and re-resting) the three commit IDs reconfirms that individually, both merge parents work, but the combined result does not.

I'm re-running the bisect to make absolutely sure of this result. I don't see how a change to the vfio code would affect this, especially as drivers/vfio/pci/vfio_pci_intrs.c is not even built.

If it confirms it, then I'm not sure what we do...

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.