Skip to contentSkip to conversation

next/master boot: 264 boots: 62 failed, 199 passed with 3 conflicts (next-20171109)

DISCUSSION Mark Brown 2 participants 4 messages Nov 9, 2017 1 message not in the archive USB

lore
Share & tools
lore

Mark Brown

author
#1 lore raw
In reply to a message not in the archive

On Thu, Nov 09, 2017 at 04:14:26AM -0800, kernelci.org bot wrote:

Today's -next fails to boot a bcm2836-rpi-2-b on any config in kernelci, it was working yesterday:

Quoted 3 lines
    bcm2835_defconfig:
        bcm2836-rpi-2-b:
            lab-collabora: new failure (last pass: next-20171107)

The boot log looks like something went badly wrong with USB:

[    1.643488] dwc2 3f980000.usb: DWC OTG Controller
[    1.648225] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.655328] dwc2 3f980000.usb: irq 39, io mem 0x3f980000
[    1.661495] hub 1-0:1.0: USB hub found
[    1.665301] hub 1-0:1.0: 1 port detected
[    1.669239] hub 1-0:1.0: config failed, can't get hub status (err 2)
[    1.676763] hub 1-0:1.0: activate --> -22
[    1.680806] hub 1-0:1.0: activate --> -22
[    1.684855] hub 1-0:1.0: activate --> -22

and so on until the tester gets bored. There's nothing obvious changed in arch/arm or drivers/usb though.

More info and full log here:

https://kernelci.org/boot/id/5a04231159b514cb291cdd1a/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171109/9596ee7b/attachment-0001.sig>

author
#2 lore raw
Quoted 21 lines · Mark Brown

On Thu, Nov 09, 2017 at 04:14:26AM -0800, kernelci.org bot wrote:

Today's -next fails to boot a bcm2836-rpi-2-b on any config in kernelci, it was working yesterday:

Quoted 3 lines
    bcm2835_defconfig:
        bcm2836-rpi-2-b:
            lab-collabora: new failure (last pass: next-20171107)

The boot log looks like something went badly wrong with USB:

[    1.643488] dwc2 3f980000.usb: DWC OTG Controller
[    1.648225] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.655328] dwc2 3f980000.usb: irq 39, io mem 0x3f980000
[    1.661495] hub 1-0:1.0: USB hub found
[    1.665301] hub 1-0:1.0: 1 port detected
[    1.669239] hub 1-0:1.0: config failed, can't get hub status (err 2)
[    1.676763] hub 1-0:1.0: activate --> -22
[    1.680806] hub 1-0:1.0: activate --> -22
[    1.684855] hub 1-0:1.0: activate --> -22
Quoted 6 lines

and so on until the tester gets bored. There's nothing obvious changed in arch/arm or drivers/usb though.

More info and full log here:

   https://kernelci.org/boot/id/5a04231159b514cb291cdd1a/

There's similar issues reported for Odroid c1 with the same DesignWare controller so it's unlikely to be something Raspberry Pi related:

    https://kernelci.org/boot/id/5a0416c059b514c4931cdd1b/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171109/a386f5ca/attachment.sig>

author
#4 lore raw
In reply to a message not in the archive

On Thu, Nov 09, 2017 at 04:14:26AM -0800, kernelci.org bot wrote:

The armada-8040-db has been failing to boot for a little while in -next, though there were some generic arm64 issues which make it hard to tell when it started:

Quoted 3 lines
    defconfig:
        armada-8040-db:
            lab-free-electrons: failing since 5 days (last pass: next-20170929 - first fail: next-20171103)

It gets timeouts talking to MMC and a RCU lockup:

[   23.071083] INFO: rcu_preempt detected stalls on CPUs/tasks:
[   23.076772] 	0-...0: (0 ticks this GP) idle=caa/1/4611686018427387904 softirq=408/408 fqs=2281 
[   23.085505] 	(detected by 1, t=5252 jiffies, g=-201, c=-202, q=20)
[   23.091714] Task dump for CPU 0:
[   23.094955] kworker/0:1     R  running task        0    75      2 0x00000002
[   23.102048] Workqueue: events deferred_probe_work_func
[   23.107208] Call trace:
[   23.109668]  __switch_to+0x90/0xa8
[   23.113084]  0xffff8001f5c95c38

with substantially less chat in the log from PCI than mainline where it seems to boot OK. Links to some builds for mainline and other useful information here:

https://kernelci.org/boot/id/5a040fe359b514c1601cdd1c/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171109/d5f12d6a/attachment.sig>

#3 lore raw
In reply to Mark Brown
Quoted 25 lines · Mark Brown
Quoted 24 lines · Mark Brown

On Thu, Nov 09, 2017 at 04:14:26AM -0800, kernelci.org bot wrote:

Today's -next fails to boot a bcm2836-rpi-2-b on any config in kernelci, it was working yesterday:

Quoted 3 lines
    bcm2835_defconfig:
        bcm2836-rpi-2-b:
            lab-collabora: new failure (last pass: next-20171107)

The boot log looks like something went badly wrong with USB:

[    1.643488] dwc2 3f980000.usb: DWC OTG Controller
[    1.648225] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[    1.655328] dwc2 3f980000.usb: irq 39, io mem 0x3f980000
[    1.661495] hub 1-0:1.0: USB hub found
[    1.665301] hub 1-0:1.0: 1 port detected
[    1.669239] hub 1-0:1.0: config failed, can't get hub status (err 2)
[    1.676763] hub 1-0:1.0: activate --> -22
[    1.680806] hub 1-0:1.0: activate --> -22
[    1.684855] hub 1-0:1.0: activate --> -22

and so on until the tester gets bored. There's nothing obvious changed in arch/arm or drivers/usb though.

Quoted 8 lines
Quoted 3 lines

More info and full log here:

   https://kernelci.org/boot/id/5a04231159b514cb291cdd1a/

There's similar issues reported for Odroid c1 with the same DesignWare controller so it's unlikely to be something Raspberry Pi related:

    https://kernelci.org/boot/id/5a0416c059b514c4931cdd1b/

Fix is already diagnosed and is in my tree now.

I've put it below if you need/want it now.

thanks,

greg k-h
-------------

Quoted 1 line

From d656fa32b13424701bb85f6b5183ea869b363799 Mon Sep 17 00:00:00 2001

From: Felipe Balbi <[email protected]>
Date: Thu, 9 Nov 2017 12:59:58 +0200
Subject: usb: core: message: remember to reset 'ret' to 0 when necessary

usb_control_msg() will return the amount of bytes transferred, if that amount matches what we wanted to transfer, we need to reset 'ret' to 0 from usb_get_status().

Fixes 2e43f0fe379c ("usb: core: add a 'type' parameter to usb_get_status()")
---
 drivers/usb/core/message.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/usb/core/message.c +2 -0
index ebaea514161f..77001bcfc504 100644
@@ -975,6 +975,7 @@ int usb_get_status(struct usb_device *dev, int recip, int type, int target,
 		}
 
 		*(u32 *) data = le32_to_cpu(*(__le32 *) status);
+		ret = 0;
 		break;
 	case 2:
 		if (type != USB_STATUS_TYPE_STANDARD) {
@@ -983,6 +984,7 @@ int usb_get_status(struct usb_device *dev, int recip, int type, int target,
 		}
 
 		*(u16 *) data = le16_to_cpu(*(__le16 *) status);
+		ret = 0;
 		break;
 	default:
 		ret = -EIO;
Signature · 1 line
2.15.0