All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: BUG: 4.2rc1 System lockup with BT dongle insert]
@ 2015-07-09 23:29 simon
  2015-07-17  4:00 ` Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached simon
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-09 23:29 UTC (permalink / raw)
  To: linux-bluetooth

Resending as original post did not appear on list/archives.... maybe
attachments are blocked.

Cheers,
Simon.

---------------------------- Original Message ----------------------------
Subject: BUG: 4.2rc1 System lockup with BT dongle insert
From:    simon@mungewell.org
Date:    Wed, July 8, 2015 11:08 am
To:      linux-bluetooth@vger.kernel.org
Cc:      simon@mungewell.org
--------------------------------------------------------------------------

Hi,
Noticed that 4.2rc1 is locking up when I insert my USB BT dongle, this did
not occur on 4.1 and older kernels. I've seen this on both 64 and 32 bit
kernels on different machines (all on Xubuntu 15.04, ie with older Bluez
if that makes a difference).

Dongle is:
http://www.memoryexpress.com/Products/MX43823

Below are image showing last reports of syslog, a 'complete' syslog
insertion with 3.19 kernel and a lsusb log.

https://www.flickr.com/photos/24244464@N03/19375918529/sizes/o/

Cheers,
Simon.

lsusb
--
Bus 002 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         1
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x0a5c Broadcom Corp.
  idProduct          0x21e8 BCM20702A0 Bluetooth 4.0
  bcdDevice            1.12
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          218
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0011  1x 17 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0011  1x 17 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0019  1x 25 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0019  1x 25 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0021  1x 33 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0021  1x 33 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      1
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0031  1x 49 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0031  1x 49 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      1 Device Firmware Update
      bInterfaceProtocol      1
      iInterface              0
      Device Firmware Upgrade Interface Descriptor:
        bLength                             9
        bDescriptorType                    33
        bmAttributes                        5
          Will Not Detach
          Manifestation Tolerant
          Upload Unsupported
          Download Supported
        wDetachTimeout                   5000 milliseconds
        wTransferSize                      64 bytes
        bcdDFUVersion                   1.10
--

expected log from 3.19 kernel
--
Jul  7 21:42:56 retrobox kernel: [  107.180094] usb 2-1: new full-speed
USB device
number 2 using uhci_hcd
Jul  7 21:42:56 retrobox kernel: [  107.348165] usb 2-1: New USB device
found,
idVendor=0a5c, idProduct=21e8
Jul  7 21:42:56 retrobox kernel: [  107.348176] usb 2-1: New USB device
strings:
Mfr=1, Product=2, SerialNumber=3
Jul  7 21:42:56 retrobox kernel: [  107.348182] usb 2-1: Product: BCM20702A0
Jul  7 21:42:56 retrobox kernel: [  107.348188] usb 2-1: Manufacturer:
Broadcom Corp
Jul  7 21:42:56 retrobox kernel: [  107.348194] usb 2-1: SerialNumber:
5CF37065AA85
Jul  7 21:42:56 retrobox mtp-probe: checking bus 2, device 2:
"/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1"
Jul  7 21:42:56 retrobox mtp-probe: bus: 2, device: 2 was not an MTP device
Jul  7 21:42:57 retrobox kernel: [  107.514535] Bluetooth: Core ver 2.20
Jul  7 21:42:57 retrobox kernel: [  107.514571] NET: Registered protocol
family 31
Jul  7 21:42:57 retrobox kernel: [  107.514573] Bluetooth: HCI device and
connection
manager initialized
Jul  7 21:42:57 retrobox kernel: [  107.514580] Bluetooth: HCI socket
layer initialized
Jul  7 21:42:57 retrobox kernel: [  107.514585] Bluetooth: L2CAP socket layer
initialized
Jul  7 21:42:57 retrobox kernel: [  107.514595] Bluetooth: SCO socket
layer initialized
Jul  7 21:42:57 retrobox kernel: [  107.546061] usbcore: registered new
interface
driver btusb
Jul  7 21:42:57 retrobox kernel: [  107.562441] bluetooth hci0: Direct
firmware load
for brcm/BCM20702A0-0a5c-21e8.hcd failed with error -2
Jul  7 21:42:57 retrobox kernel: [  107.562452] Bluetooth: hci0: BCM: patch
brcm/BCM20702A0-0a5c-21e8.hcd not found
Jul  7 21:42:58 retrobox systemd[1]: Starting Load/Save RF Kill Switch
Status of
rfkill1...
Jul  7 21:42:58 retrobox systemd[1]: Starting Bluetooth service...
Jul  7 21:42:58 retrobox systemd[1]: Started Load/Save RF Kill Switch
Status of
rfkill1.
Jul  7 21:42:58 retrobox bluetoothd[1477]: Bluetooth daemon 4.101
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Bluetooth
daemon 4.101
Jul  7 21:42:58 retrobox systemd[1]: Started Bluetooth service.
Jul  7 21:42:58 retrobox systemd[1]: Reached target Bluetooth.
Jul  7 21:42:58 retrobox systemd[1]: Starting Bluetooth.
Jul  7 21:42:58 retrobox bluetoothd[1477]: Starting SDP server
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Starting SDP
server
Jul  7 21:42:58 retrobox bluetoothd[1477]: DIS cannot start: GATT is disabled
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init deviceinfo plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init proximity plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init time plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init alert plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init thermometer plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: DIS cannot
start: GATT
is disabled
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to init
deviceinfo plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to init
proximity plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to
init time plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to
init alert
plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to init
thermometer plugin
Jul  7 21:42:58 retrobox kernel: [  108.618280] Bluetooth: BNEP (Ethernet
Emulation)
ver 1.3
Jul  7 21:42:58 retrobox kernel: [  108.618286] Bluetooth: BNEP filters:
protocol
multicast
Jul  7 21:42:58 retrobox kernel: [  108.618294] Bluetooth: BNEP socket layer
initialized
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Failed to init
gatt_example plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Failed to init gatt_example plugin
Jul  7 21:42:58 retrobox bluetoothd[1477]: Bluetooth Management interface
initialized
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Bluetooth
Management
interface initialized
Jul  7 21:42:58 retrobox NetworkManager[586]: <info> use BlueZ version 4
Jul  7 21:42:58 retrobox kernel: [  108.637945] Bluetooth: RFCOMM TTY
layer initialized
Jul  7 21:42:58 retrobox kernel: [  108.637959] Bluetooth: RFCOMM socket
layer
initialized
Jul  7 21:42:58 retrobox kernel: [  108.637970] Bluetooth: RFCOMM ver 1.11
Jul  7 21:42:58 retrobox bluetoothd[1477]: Unknown command complete for
opcode 19
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Unknown command
complete for opcode 19
Jul  7 21:42:58 retrobox bluetoothd[1477]: bluetoothd[1477]: Adapter
/org/bluez/1477/hci0 has been enabled
Jul  7 21:42:58 retrobox bluetoothd[1477]: Adapter /org/bluez/1477/hci0
has been
enabled
--


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Kernel Oops: btusb:  4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-09 23:29 [Fwd: BUG: 4.2rc1 System lockup with BT dongle insert] simon
@ 2015-07-17  4:00 ` simon
  2015-07-17  5:14   ` simon
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-17  4:00 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: linux


> Hi,
> Noticed that 4.2rc1 is locking up when I insert my USB BT dongle, this did
> not occur on 4.1 and older kernels. I've seen this on both 64 and 32 bit
> kernels on different machines (all on Xubuntu 15.04, ie with older Bluez
> if that makes a difference).
>
> Dongle is:
> http://www.memoryexpress.com/Products/MX43823

Managed to get a serial terminal hooked up which gave the following log,
Simon

--

[  112.931888] BUG: unable to handle kernel NULL pointer dereference at
0000000000000080
[  112.934953] IP: [<ffffffff814e8433>] firmware_uevent+0x23/0x80
[  112.934953] PGD 0
[  112.934953] Oops: 0000 [#1] SMP
[  112.934953] Modules linked in: btusb btrtl btbcm btintel bluetooth
cfg80211 nvidia(OE) snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul
snd_seq_virmidi snd_emu10k1 snd_util_mem snd_hwdep snd_ac97_codec ac97_bus
snd_pcm snd_seq_midi coretemp snd_seq_midi_event gpio_ich kvm_intel
snd_rawmidi snd_seq kvm snd_seq_device snd_timer hostap_pci snd hostap
soundcore dcdbas lib80211 drm dell_smm_hwmon emu10k1_gp lpc_ich serio_raw
gameport i5000_edac edac_core i5k_amb shpchp mac_hid parport_pc ppdev lp
parport autofs4 hid_generic usbhid hid tg3 firewire_ohci ahci ptp libahci
firewire_core pata_acpi pps_core crc_itu_t
[  112.934953] CPU: 1 PID: 1398 Comm: kworker/u17:0 Tainted: G          
OE   4.2.0-rc1+ #5
[  112.934953] Hardware name: Dell Inc.                 Precision
WorkStation 490    /0GU083, BIOS A07 12/13/2007
[  112.934953] Workqueue: hci0 hci_power_on [bluetooth]
[  112.934953] task: ffff880133192d00 ti: ffff8800a7e8c000 task.ti:
ffff8800a7e8c000
[  112.934953] RIP: 0010:[<ffffffff814e8433>]  [<ffffffff814e8433>]
firmware_uevent+0x23/0x80
[  112.934953] RSP: 0018:ffff8800a7e8fa98  EFLAGS: 00010282
[  112.934953] RAX: 0000000000000000 RBX: ffff8800a7ee9000 RCX:
0000000000000075
[  112.934953] RDX: 0000000000000000 RSI: ffffffff81ae2d96 RDI:
ffff8800a7ee9000
[  112.934953] RBP: ffff8800a7e8faa8 R08: 000000000000ffff R09:
000000000000ffff
[  112.934953] R10: ffff8800aade2c00 R11: 0000000000000000 R12:
ffff8800ba919408
[  112.934953] R13: ffff8800a7ee9000 R14: ffff8800ba919408 R15:
ffff88013a508000
[  112.934953] FS:  0000000000000000(0000) GS:ffff88013fc40000(0000)
knlGS:0000000000000000
[  112.934953] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  112.934953] CR2: 0000000000000080 CR3: 000000003673c000 CR4:
00000000000007e0
[  112.934953] Stack:
[  112.934953]  ffff8800ba919418 0000000000000000 ffff8800a7e8faf8
ffffffff814d47c6
[  112.934953]  ffff8800a7e8faf8 ffffffff8138d848 ffffffff81af29e6
000000000000000e
[  112.934953]  0000000000000001 ffffffff8186a490 ffff8800a7ee9000
ffff8800ba919418
[  112.934953] Call Trace:
[  112.934953]  [<ffffffff814d47c6>] dev_uevent+0xb6/0x2b0
[  112.934953]  [<ffffffff8138d848>] ? kobject_get_path+0x98/0xf0
[  112.934953]  [<ffffffff8138eb1a>] kobject_uevent_env+0x2ea/0x660
[  112.934953]  [<ffffffff814e2157>] ? __pm_runtime_disable+0x27/0x140
[  112.934953]  [<ffffffff8138ee9b>] kobject_uevent+0xb/0x10
[  112.934953]  [<ffffffff814d2ccf>] device_del+0x18f/0x270
[  112.934953]  [<ffffffff8109b340>] ? wake_up_q+0x70/0x70
[  112.934953]  [<ffffffff814e97da>] _request_firmware+0x5aa/0xaf0
[  112.934953]  [<ffffffff814e9d55>] request_firmware+0x35/0x50
[  112.934953]  [<ffffffffc00fb881>] btbcm_setup_patchram+0x191/0x910 [btbcm]
[  112.934953]  [<ffffffff814e0994>] ? rpm_idle+0xc4/0x200
[  112.934953]  [<ffffffffc0e28488>] hci_dev_do_open+0xd8/0x500 [bluetooth]
[  112.934953]  [<ffffffffc0e29da0>] hci_power_on+0x40/0x1d0 [bluetooth]
[  112.934953]  [<ffffffff810d9628>] ? lock_timer_base.isra.34+0x58/0x80
[  112.934953]  [<ffffffff8108a6f7>] process_one_work+0x157/0x3e0
[  112.934953]  [<ffffffff8108b0de>] worker_thread+0x4e/0x470
[  112.934953]  [<ffffffff8108b090>] ? rescuer_thread+0x300/0x300
[  112.934953]  [<ffffffff81090569>] kthread+0xc9/0xe0
[  112.934953]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  112.934953]  [<ffffffff8178995f>] ret_from_fork+0x3f/0x70
[  112.934953]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  112.934953] Code: 0f 1f 84 00 00 00 00 00 66 66 66 66 90 55 48 89 e5 41
54 53 48 8b 87 c0 02 00 00 48 89 f3 49 89 fc 48 c7 c6 96 2d ae 81 48 89 df
<48> 8b 90 80 00 00 00 31 c0 e8 4f 62 ea ff 85 c0 75 39 8b 15 dd
[  112.934953] RIP  [<ffffffff814e8433>] firmware_uevent+0x23/0x80
[  112.934953]  RSP <ffff8800a7e8fa98>
[  112.934953] CR2: 0000000000000080
[  112.934953] ---[ end trace e0f226cc4d13a2bb ]---
[  117.232465] BUG: unable to handle kernel paging request at
ffffffffffffffd8
[  117.236007] IP: [<ffffffff81090b30>] kthread_data+0x10/0x20
[  117.236007] PGD 1c10067 PUD 1c12067 PMD 0
[  117.236007] Oops: 0000 [#2] SMP
[  117.236007] Modules linked in: btusb btrtl btbcm btintel bluetooth
cfg80211 nvidia(OE) snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul
snd_seq_virmidi snd_emu10k1 snd_util_mem snd_hwdep snd_ac97_codec ac97_bus
snd_pcm snd_seq_midi coretemp snd_seq_midi_event gpio_ich kvm_intel
snd_rawmidi snd_seq kvm snd_seq_device snd_timer hostap_pci snd hostap
soundcore dcdbas lib80211 drm dell_smm_hwmon emu10k1_gp lpc_ich serio_raw
gameport i5000_edac edac_core i5k_amb shpchp mac_hid parport_pc ppdev lp
parport autofs4 hid_generic usbhid hid tg3 firewire_ohci ahci ptp libahci
firewire_core pata_acpi pps_core crc_itu_t
[  117.236007] CPU: 1 PID: 1398 Comm: kworker/u17:0 Tainted: G      D   
OE   4.2.0-rc1+ #5
[  117.236007] Hardware name: Dell Inc.                 Precision
WorkStation 490    /0GU083, BIOS A07 12/13/2007
[  117.236007] task: ffff880133192d00 ti: ffff8800a7e8c000 task.ti:
ffff8800a7e8c000
[  117.236007] RIP: 0010:[<ffffffff81090b30>]  [<ffffffff81090b30>]
kthread_data+0x10/0x20
[  117.236007] RSP: 0018:ffff8800a7e8f728  EFLAGS: 00010092
[  117.236007] RAX: 0000000000000000 RBX: 0000000000000001 RCX:
000000000000000f
[  117.236007] RDX: 000000000000000f RSI: 0000000000000001 RDI:
ffff880133192d00
[  117.236007] RBP: ffff8800a7e8f728 R08: 0000000000000000 R09:
0000000000000315
[  117.236007] R10: 0000000000002aed R11: ffffea0002ab9100 R12:
00000000000168c0
[  117.236007] R13: ffff88013fc568c0 R14: ffff880133192d00 R15:
0000000000000001
[  117.236007] FS:  0000000000000000(0000) GS:ffff88013fc40000(0000)
knlGS:0000000000000000
[  117.236007] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  117.236007] CR2: 0000000000000028 CR3: 000000013a19a000 CR4:
00000000000007e0
[  117.236007] Stack:
[  117.236007]  ffff8800a7e8f748 ffffffff8108b585 ffff8800a7e8f748
ffff88013fc568c0
[  117.236007]  ffff8800a7e8f798 ffffffff817856be ffff880000000000
ffff880133192d00
[  117.236007]  ffff8800a7e8f798 ffff8800a7e90000 ffff880133193930
ffff8800a7e8f368
[  117.236007] Call Trace:
[  117.236007]  [<ffffffff8108b585>] wq_worker_sleeping+0x15/0xa0
[  117.236007]  [<ffffffff817856be>] __schedule+0x72e/0x920
[  117.236007]  [<ffffffff817858e7>] schedule+0x37/0x80
[  117.236007]  [<ffffffff810763b3>] do_exit+0x723/0xa40
[  117.236007]  [<ffffffff81017495>] oops_end+0xa5/0xe0
[  117.236007]  [<ffffffff8106119d>] no_context+0x10d/0x380
[  117.236007]  [<ffffffff8109a78d>] ?
ttwu_do_activate.constprop.83+0x5d/0x70
[  117.236007]  [<ffffffff8106148b>] __bad_area_nosemaphore+0x7b/0x1f0
[  117.236007]  [<ffffffff81061613>] bad_area_nosemaphore+0x13/0x20
[  117.236007]  [<ffffffff810618d3>] __do_page_fault+0x93/0x410
[  117.236007]  [<ffffffff810a6670>] ? dequeue_entity+0x150/0x720
[  117.236007]  [<ffffffff81061c7f>] do_page_fault+0x2f/0x80
[  117.236007]  [<ffffffff8178b488>] page_fault+0x28/0x30
[  117.236007]  [<ffffffff814e8433>] ? firmware_uevent+0x23/0x80
[  117.236007]  [<ffffffff8138e6f9>] ? add_uevent_var+0x69/0x100
[  117.236007]  [<ffffffff814d47c6>] dev_uevent+0xb6/0x2b0
[  117.236007]  [<ffffffff8138d848>] ? kobject_get_path+0x98/0xf0
[  117.236007]  [<ffffffff8138eb1a>] kobject_uevent_env+0x2ea/0x660
[  117.236007]  [<ffffffff814e2157>] ? __pm_runtime_disable+0x27/0x140
[  117.236007]  [<ffffffff8138ee9b>] kobject_uevent+0xb/0x10
[  117.236007]  [<ffffffff814d2ccf>] device_del+0x18f/0x270
[  117.236007]  [<ffffffff8109b340>] ? wake_up_q+0x70/0x70
[  117.236007]  [<ffffffff814e97da>] _request_firmware+0x5aa/0xaf0
[  117.236007]  [<ffffffff814e9d55>] request_firmware+0x35/0x50
[  117.236007]  [<ffffffffc00fb881>] btbcm_setup_patchram+0x191/0x910 [btbcm]
[  117.236007]  [<ffffffff814e0994>] ? rpm_idle+0xc4/0x200
[  117.236007]  [<ffffffffc0e28488>] hci_dev_do_open+0xd8/0x500 [bluetooth]
[  117.236007]  [<ffffffffc0e29da0>] hci_power_on+0x40/0x1d0 [bluetooth]
[  117.236007]  [<ffffffff810d9628>] ? lock_timer_base.isra.34+0x58/0x80
[  117.236007]  [<ffffffff8108a6f7>] process_one_work+0x157/0x3e0
[  117.236007]  [<ffffffff8108b0de>] worker_thread+0x4e/0x470
[  117.236007]  [<ffffffff8108b090>] ? rescuer_thread+0x300/0x300
[  117.236007]  [<ffffffff81090569>] kthread+0xc9/0xe0
[  117.236007]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  117.236007]  [<ffffffff8178995f>] ret_from_fork+0x3f/0x70
[  117.236007]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  117.236007] Code: 00 48 89 e5 5d 48 8b 40 c8 48 c1 e8 02 83 e0 01 c3 66
2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 8b 87 08 05 00 00 55 48 89 e5
<48> 8b 40 d8 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90
[  117.236007] RIP  [<ffffffff81090b30>] kthread_data+0x10/0x20
[  117.236007]  RSP <ffff8800a7e8f728>
[  117.236007] CR2: ffffffffffffffd8
[  117.236007] ---[ end trace e0f226cc4d13a2bc ]---
[  117.236007] Fixing recursive fault but reboot is needed!
[  117.240013] ------------[ cut here ]------------
[  117.240013] WARNING: CPU: 0 PID: 1407 at kernel/watchdog.c:311
watchdog_overflow_callback+0x84/0xa0()
[  117.240013] Watchdog detected hard LOCKUP on cpu 0
[  117.240013] Modules linked in: btusb btrtl btbcm btintel bluetooth
cfg80211 nvidia(OE) snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul
snd_seq_virmidi snd_emu10k1 snd_util_mem snd_hwdep snd_ac97_codec ac97_bus
snd_pcm snd_seq_midi coretemp snd_seq_midi_event gpio_ich kvm_intel
snd_rawmidi snd_seq kvm snd_seq_device snd_timer hostap_pci snd hostap
soundcore dcdbas lib80211 drm dell_smm_hwmon emu10k1_gp lpc_ich serio_raw
gameport i5000_edac edac_core i5k_amb shpchp mac_hid parport_pc ppdev lp
parport autofs4 hid_generic usbhid hid tg3 firewire_ohci ahci ptp libahci
firewire_core pata_acpi pps_core crc_itu_t
[  117.240013] CPU: 0 PID: 1407 Comm: thunar-volman Tainted: G      D   
OE   4.2.0-rc1+ #5
[  117.240013] Hardware name: Dell Inc.                 Precision
WorkStation 490    /0GU083, BIOS A07 12/13/2007
[  117.240013]  ffffffff81aa8e67 ffff88013fc05af0 ffffffff81782ae0
0000000000000007
[  117.240013]  ffff88013fc05b40 ffff88013fc05b30 ffffffff8107397a
0000000000000000
[  117.240013]  ffff88013b014800 0000000000000000 ffff88013fc05c40
ffff88013fc05ef8
[  117.240013] Call Trace:
[  117.240013]  <NMI>  [<ffffffff81782ae0>] dump_stack+0x45/0x57
[  117.240013]  [<ffffffff8107397a>] warn_slowpath_common+0x8a/0xc0
[  117.240013]  [<ffffffff810739f6>] warn_slowpath_fmt+0x46/0x50
[  117.240013]  [<ffffffff81123284>] watchdog_overflow_callback+0x84/0xa0
[  117.240013]  [<ffffffff8116196c>] __perf_event_overflow+0x8c/0x1b0
[  117.240013]  [<ffffffff811624c4>] perf_event_overflow+0x14/0x20
[  117.240013]  [<ffffffff810322f4>] intel_pmu_handle_irq+0x1d4/0x440
[  117.240013]  [<ffffffff81028fc6>] perf_event_nmi_handler+0x26/0x40
[  117.240013]  [<ffffffff81017c59>] nmi_handle+0x79/0x100
[  117.240013]  [<ffffffff810181a2>] default_do_nmi+0x42/0x100
[  117.240013]  [<ffffffff810182e3>] do_nmi+0x83/0xb0
[  117.240013]  [<ffffffff8178b7bf>] end_repeat_nmi+0x1e/0x2e
[  117.240013]  [<ffffffff810b9f0a>] ?
native_queued_spin_lock_slowpath+0x16a/0x180
[  117.240013]  [<ffffffff810b9f0a>] ?
native_queued_spin_lock_slowpath+0x16a/0x180
[  117.240013]  [<ffffffff810b9f0a>] ?
native_queued_spin_lock_slowpath+0x16a/0x180
[  117.240013]  <<EOE>>  <IRQ>  [<ffffffff81789171>] _raw_spin_lock+0x21/0x30
[  117.240013]  [<ffffffff8109b129>] try_to_wake_up+0x1c9/0x320
[  117.240013]  [<ffffffff8109b15e>] ? try_to_wake_up+0x1fe/0x320
[  117.240013]  [<ffffffff8109b352>] default_wake_function+0x12/0x20
[  117.240013]  [<ffffffff810b2c96>] autoremove_wake_function+0x16/0x40
[  117.240013]  [<ffffffff810b2602>] __wake_up_common+0x52/0x90
[  117.240013]  [<ffffffff810b285d>] __wake_up+0x3d/0x60
[  117.240013]  [<ffffffff810d3187>] rcu_gp_kthread_wake+0x47/0x50
[  117.240013]  [<ffffffff810d3440>] rcu_report_qs_rnp+0x140/0x180
[  117.240013]  [<ffffffff810d53ce>] rcu_process_callbacks+0x46e/0x5d0
[  117.240013]  [<ffffffff81077a7d>] __do_softirq+0xfd/0x280
[  117.240013]  [<ffffffff81077dd2>] irq_exit+0xe2/0xf0
[  117.240013]  [<ffffffff8178c1c6>] smp_apic_timer_interrupt+0x46/0x60
[  117.240013]  [<ffffffff8178a39b>] apic_timer_interrupt+0x6b/0x70
[  117.240013]  <EOI>
[  117.240013] ---[ end trace e0f226cc4d13a2bd ]---
[  117.236007] ------------[ cut here ]------------
[  117.236007] WARNING: CPU: 1 PID: 1398 at kernel/watchdog.c:311
watchdog_overflow_callback+0x84/0xa0()
[  117.236007] Watchdog detected hard LOCKUP on cpu 1
[  117.236007] Modules linked in: btusb btrtl btbcm btintel bluetooth
cfg80211 nvidia(OE) snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul
snd_seq_virmidi snd_emu10k1 snd_util_mem snd_hwdep snd_ac97_codec ac97_bus
snd_pcm snd_seq_midi coretemp snd_seq_midi_event gpio_ich kvm_intel
snd_rawmidi snd_seq kvm snd_seq_device snd_timer hostap_pci snd hostap
soundcore dcdbas lib80211 drm dell_smm_hwmon emu10k1_gp lpc_ich serio_raw
gameport i5000_edac edac_core i5k_amb shpchp mac_hid parport_pc ppdev lp
parport autofs4 hid_generic usbhid hid tg3 firewire_ohci ahci ptp libahci
firewire_core pata_acpi pps_core crc_itu_t
[  117.236007] CPU: 1 PID: 1398 Comm: kworker/u17:0 Tainted: G      D W 
OE   4.2.0-rc1+ #5
[  117.236007] Hardware name: Dell Inc.                 Precision
WorkStation 490    /0GU083, BIOS A07 12/13/2007
[  117.236007]  ffffffff81aa8e67 ffff88013fc45af0 ffffffff81782ae0
0000000000000007
[  117.236007]  ffff88013fc45b40 ffff88013fc45b30 ffffffff8107397a
0000000000000000
[  117.236007]  ffff88013a460000 0000000000000001 ffff88013fc45c40
ffff88013fc45ef8
[  117.236007] Call Trace:
[  117.236007]  <NMI>  [<ffffffff81782ae0>] dump_stack+0x45/0x57
[  117.236007]  [<ffffffff8107397a>] warn_slowpath_common+0x8a/0xc0
[  117.236007]  [<ffffffff810739f6>] warn_slowpath_fmt+0x46/0x50
[  117.236007]  [<ffffffff81123284>] watchdog_overflow_callback+0x84/0xa0
[  117.236007]  [<ffffffff8116196c>] __perf_event_overflow+0x8c/0x1b0
[  117.236007]  [<ffffffff811624c4>] perf_event_overflow+0x14/0x20
[  117.236007]  [<ffffffff810322f4>] intel_pmu_handle_irq+0x1d4/0x440
[  117.236007]  [<ffffffff81028fc6>] perf_event_nmi_handler+0x26/0x40
[  117.236007]  [<ffffffff81017c59>] nmi_handle+0x79/0x100
[  117.236007]  [<ffffffff8101821d>] default_do_nmi+0xbd/0x100
[  117.236007]  [<ffffffff810182e3>] do_nmi+0x83/0xb0
[  117.236007]  [<ffffffff8178b7bf>] end_repeat_nmi+0x1e/0x2e
[  117.236007]  [<ffffffff810b9ebd>] ?
native_queued_spin_lock_slowpath+0x11d/0x180
[  117.236007]  [<ffffffff810b9ebd>] ?
native_queued_spin_lock_slowpath+0x11d/0x180
[  117.236007]  [<ffffffff810b9ebd>] ?
native_queued_spin_lock_slowpath+0x11d/0x180
[  117.236007]  <<EOE>>  [<ffffffff817891a8>] _raw_spin_lock_irq+0x28/0x30
[  117.236007]  [<ffffffff81785018>] __schedule+0x88/0x920
[  117.236007]  [<ffffffff817858e7>] schedule+0x37/0x80
[  117.236007]  [<ffffffff81076525>] do_exit+0x895/0xa40
[  117.236007]  [<ffffffff81017495>] oops_end+0xa5/0xe0
[  117.236007]  [<ffffffff8106119d>] no_context+0x10d/0x380
[  117.236007]  [<ffffffff81393cda>] ? put_dec+0x1a/0x80
[  117.236007]  [<ffffffff8106148b>] __bad_area_nosemaphore+0x7b/0x1f0
[  117.236007]  [<ffffffff81061613>] bad_area_nosemaphore+0x13/0x20
[  117.236007]  [<ffffffff810618d3>] __do_page_fault+0x93/0x410
[  117.236007]  [<ffffffff81396c90>] ? vsnprintf+0x340/0x510
[  117.236007]  [<ffffffff81061c7f>] do_page_fault+0x2f/0x80
[  117.236007]  [<ffffffff8178b488>] page_fault+0x28/0x30
[  117.236007]  [<ffffffff81090b30>] ? kthread_data+0x10/0x20
[  117.236007]  [<ffffffff8108b585>] wq_worker_sleeping+0x15/0xa0
[  117.236007]  [<ffffffff817856be>] __schedule+0x72e/0x920
[  117.236007]  [<ffffffff817858e7>] schedule+0x37/0x80
[  117.236007]  [<ffffffff810763b3>] do_exit+0x723/0xa40
[  117.236007]  [<ffffffff81017495>] oops_end+0xa5/0xe0
[  117.236007]  [<ffffffff8106119d>] no_context+0x10d/0x380
[  117.236007]  [<ffffffff8109a78d>] ?
ttwu_do_activate.constprop.83+0x5d/0x70
[  117.236007]  [<ffffffff8106148b>] __bad_area_nosemaphore+0x7b/0x1f0
[  117.236007]  [<ffffffff81061613>] bad_area_nosemaphore+0x13/0x20
[  117.236007]  [<ffffffff810618d3>] __do_page_fault+0x93/0x410
[  117.236007]  [<ffffffff810a6670>] ? dequeue_entity+0x150/0x720
[  117.236007]  [<ffffffff81061c7f>] do_page_fault+0x2f/0x80
[  117.236007]  [<ffffffff8178b488>] page_fault+0x28/0x30
[  117.236007]  [<ffffffff814e8433>] ? firmware_uevent+0x23/0x80
[  117.236007]  [<ffffffff8138e6f9>] ? add_uevent_var+0x69/0x100
[  117.236007]  [<ffffffff814d47c6>] dev_uevent+0xb6/0x2b0
[  117.236007]  [<ffffffff8138d848>] ? kobject_get_path+0x98/0xf0
[  117.236007]  [<ffffffff8138eb1a>] kobject_uevent_env+0x2ea/0x660
[  117.236007]  [<ffffffff814e2157>] ? __pm_runtime_disable+0x27/0x140
[  117.236007]  [<ffffffff8138ee9b>] kobject_uevent+0xb/0x10
[  117.236007]  [<ffffffff814d2ccf>] device_del+0x18f/0x270
[  117.236007]  [<ffffffff8109b340>] ? wake_up_q+0x70/0x70
[  117.236007]  [<ffffffff814e97da>] _request_firmware+0x5aa/0xaf0
[  117.236007]  [<ffffffff814e9d55>] request_firmware+0x35/0x50
[  117.236007]  [<ffffffffc00fb881>] btbcm_setup_patchram+0x191/0x910 [btbcm]
[  117.236007]  [<ffffffff814e0994>] ? rpm_idle+0xc4/0x200
[  117.236007]  [<ffffffffc0e28488>] hci_dev_do_open+0xd8/0x500 [bluetooth]
[  117.236007]  [<ffffffffc0e29da0>] hci_power_on+0x40/0x1d0 [bluetooth]
[  117.236007]  [<ffffffff810d9628>] ? lock_timer_base.isra.34+0x58/0x80
[  117.236007]  [<ffffffff8108a6f7>] process_one_work+0x157/0x3e0
[  117.236007]  [<ffffffff8108b0de>] worker_thread+0x4e/0x470
[  117.236007]  [<ffffffff8108b090>] ? rescuer_thread+0x300/0x300
[  117.236007]  [<ffffffff81090569>] kthread+0xc9/0xe0
[  117.236007]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  117.236007]  [<ffffffff8178995f>] ret_from_fork+0x3f/0x70
[  117.236007]  [<ffffffff810904a0>] ? kthread_create_on_node+0x180/0x180
[  117.236007] ---[ end trace e0f226cc4d13a2be ]---



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb:  4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17  4:00 ` Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached simon
@ 2015-07-17  5:14   ` simon
  2015-07-17  6:14     ` simon
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-17  5:14 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: linux-kernel


> [  117.236007]  [<ffffffff814d2ccf>] device_del+0x18f/0x270
> [  117.236007]  [<ffffffff8109b340>] ? wake_up_q+0x70/0x70
> [  117.236007]  [<ffffffff814e97da>] _request_firmware+0x5aa/0xaf0
> [  117.236007]  [<ffffffff814e9d55>] request_firmware+0x35/0x50
> [  117.236007]  [<ffffffffc00fb881>] btbcm_setup_patchram+0x191/0x910
> [btbcm]
> [  117.236007]  [<ffffffff814e0994>] ? rpm_idle+0xc4/0x200
> [  117.236007]  [<ffffffffc0e28488>] hci_dev_do_open+0xd8/0x500

Looking between log from 3.19
--
Jul  7 21:42:57 retrobox kernel: [  107.562441] bluetooth hci0: Direct
firmware load
for brcm/BCM20702A0-0a5c-21e8.hcd failed with error -2
Jul  7 21:42:57 retrobox kernel: [  107.562452] Bluetooth: hci0: BCM: patch
brcm/BCM20702A0-0a5c-21e8.hcd not found
--

And the log of the lockup:
https://www.flickr.com/photos/24244464@N03/19375918529/sizes/o/

It looks like the firmware 'opt_flags' must be different, so this may be a
contributing factor.

In fact I found a log from 4.1.0rc7, which shows they recently changed!!
--
Jul 15 21:17:40 blind-fury kernel: [    0.000000] Linux version 4.1.0-rc7+
(root@blind-fury) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #2 SMP
Wed Jun 10 21:25:17 MDT 2015
Jul 15 21:17:40 blind-fury kernel: [    0.000000] Command line:
BOOT_IMAGE=/boot/vmlinuz-4.1.0-rc7+
root=UUID=56684438-bf61-422a-9c47-e0d7e405f4e7 ro quiet splash
...
Jul 15 21:20:04 blind-fury kernel: [  173.591327] usbcore: registered new
interface driver btusb
Jul 15 21:20:04 blind-fury kernel: [  173.604148] Bluetooth: hci0: BCM:
chip id 63
Jul 15 21:20:04 blind-fury kernel: [  173.606079] Bluetooth: hci0:
BCM20702A1 (001.002.014) build 0000
Jul 15 21:20:04 blind-fury kernel: [  173.628434] bluetooth hci0: Direct
firmware load for brcm/BCM20702A1-0a5c-21e8.hcd failed with error -2
Jul 15 21:20:04 blind-fury kernel: [  173.628439] Bluetooth: hci0: BCM:
Patch brcm/BCM20702A1-0a5c-21e8.hcd not found
--

These are checked here, but code hasn't changed recently:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/base/firmware_class.c?id=6593d9245bc66e6e3cf4ba6d365a7833110c1402#n1135


There has been changes to the btbcm.c code wrt to firmware loading:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/bluetooth/btbcm.c?id=18aeb4445aa00f6f402ba3a92a2e9ff3d13882b4

Simon.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb:  4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17  5:14   ` simon
@ 2015-07-17  6:14     ` simon
  2015-07-17  7:09       ` Kim, Milo
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-17  6:14 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: linux-kernel, Milo Kim


> It looks like the firmware 'opt_flags' must be different, so this may be a
> contributing factor.

Plot thickens.... kernel config has changed since I built 4.1.0rc7, but I
don't recall doing it or starting a fresh.

/boot/config-4.1.0-rc7+
--
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
--

/boot/config-4.2.0-rc1+
--
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y   <------------!!!
CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
--


Has a kconfig forced a change?.... Grrr
--
$ git blame ./drivers/leds/Kconfig
--
c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 228) config
LEDS_LP55XX_COMMON
33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 229)    
tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 230)    
depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501
10c06d178 (Milo(Woogyom) Kim         2013-02-05 19:17:20 +0900 231)    
select FW_LOADER
b67893206 (Milo Kim                  2015-06-28 17:39:14 -0700 232)    
select FW_LOADER_USER_HELPER_FALLBACK                                
<-----!!!!
c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 233)     help
33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 234)      
This option supports common operations for LP5521/5523/55231/5562/8501
c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 235)      
devices.
--

So in summary this problem is showing up now as the 'User Helper Fallback'
is now forced on, obviously the underlying problem needs to be fixed - but
I don't know when it crept in.

Will try building 4.1 with this option to see if it fails.
Simon


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17  6:14     ` simon
@ 2015-07-17  7:09       ` Kim, Milo
  2015-07-17 15:14         ` simon
  0 siblings, 1 reply; 9+ messages in thread
From: Kim, Milo @ 2015-07-17  7:09 UTC (permalink / raw)
  To: simon; +Cc: linux-bluetooth, linux-kernel

Hi Simon,

On 7/17/2015 3:14 PM, simon@mungewell.org wrote:
>
>> It looks like the firmware 'opt_flags' must be different, so this may be a
>> contributing factor.
>
> Plot thickens.... kernel config has changed since I built 4.1.0rc7, but I
> don't recall doing it or starting a fresh.
>
> /boot/config-4.1.0-rc7+
> --
> CONFIG_PREVENT_FIRMWARE_BUILD=y
> CONFIG_FW_LOADER=y
> CONFIG_FIRMWARE_IN_KERNEL=y
> CONFIG_EXTRA_FIRMWARE=""
> CONFIG_FW_LOADER_USER_HELPER=y
> # CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
> CONFIG_WANT_DEV_COREDUMP=y
> CONFIG_ALLOW_DEV_COREDUMP=y
> CONFIG_DEV_COREDUMP=y
> --
>
> /boot/config-4.2.0-rc1+
> --
> CONFIG_PREVENT_FIRMWARE_BUILD=y
> CONFIG_FW_LOADER=y
> CONFIG_FIRMWARE_IN_KERNEL=y
> CONFIG_EXTRA_FIRMWARE=""
> CONFIG_FW_LOADER_USER_HELPER=y
> CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y   <------------!!!
> CONFIG_WANT_DEV_COREDUMP=y
> CONFIG_ALLOW_DEV_COREDUMP=y
> CONFIG_DEV_COREDUMP=y
> --
>
>
> Has a kconfig forced a change?.... Grrr
> --
> $ git blame ./drivers/leds/Kconfig
> --
> c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 228) config
> LEDS_LP55XX_COMMON
> 33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 229)
> tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
> 33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 230)
> depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501
> 10c06d178 (Milo(Woogyom) Kim         2013-02-05 19:17:20 +0900 231)
> select FW_LOADER
> b67893206 (Milo Kim                  2015-06-28 17:39:14 -0700 232)
> select FW_LOADER_USER_HELPER_FALLBACK
> <-----!!!!
> c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 233)     help
> 33b3a561f (Kim, Milo                 2013-07-09 02:11:37 -0700 234)
> This option supports common operations for LP5521/5523/55231/5562/8501
> c93d08fa7 (Milo(Woogyom) Kim         2013-02-05 18:01:23 +0900 235)
> devices.
> --
>
> So in summary this problem is showing up now as the 'User Helper Fallback'
> is now forced on, obviously the underlying problem needs to be fixed - but
> I don't know when it crept in.
>

The 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' enables to load firmware 
data manually by accessing /sys/class/firmware/<name>/data. It runs in 
case the firmware file is missing.
This user helper fallback will be enabled if one of LP55xx driver is 
included in your dot config. Please see my patch below.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/leds?id=b67893206fc0a0e8af87130e67f3d8ae553fc87c

However, I'm not sure why this affects your system lockup. Can I have 
more details?

Best regards,
Milo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17  7:09       ` Kim, Milo
@ 2015-07-17 15:14         ` simon
  2015-07-17 17:23           ` Laura Abbott
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-17 15:14 UTC (permalink / raw)
  To: Kim, Milo; +Cc: linux-bluetooth, linux-kernel


>> So in summary this problem is showing up now as the 'User Helper
>> Fallback'
>> is now forced on, obviously the underlying problem needs to be fixed -
>> but
>> I don't know when it crept in.
>>
>
> The 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' enables to load firmware
> data manually by accessing /sys/class/firmware/<name>/data. It runs in
> case the firmware file is missing.
> This user helper fallback will be enabled if one of LP55xx driver is
> included in your dot config. Please see my patch below.
>
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/leds?id=b67893206fc0a0e8af87130e67f3d8ae553fc87c
>
> However, I'm not sure why this affects your system lockup. Can I have
> more details?

Hi Milo,
I'm not suggesting that your patch is the cause, just that it is an
'enabler' and and explains why the problem (system lockup when I plug USB
Bluetooth dongle in) appears now.

A full Oops log is further back in this thread:
http://www.spinics.net/lists/linux-bluetooth/msg63090.html


>> Will try building 4.1 with this option to see if it fails.

A very quick test as I was leaving the house this morning shows that 4.1
with 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' does not show the problem.

So at least we know the 'real' problem is a recent change to the code.
Simon


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17 15:14         ` simon
@ 2015-07-17 17:23           ` Laura Abbott
  2015-07-17 17:40             ` simon
  0 siblings, 1 reply; 9+ messages in thread
From: Laura Abbott @ 2015-07-17 17:23 UTC (permalink / raw)
  To: simon, Kim, Milo; +Cc: linux-bluetooth, linux-kernel

On 07/17/2015 08:14 AM, simon@mungewell.org wrote:
>
>>> So in summary this problem is showing up now as the 'User Helper
>>> Fallback'
>>> is now forced on, obviously the underlying problem needs to be fixed -
>>> but
>>> I don't know when it crept in.
>>>
>>
>> The 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' enables to load firmware
>> data manually by accessing /sys/class/firmware/<name>/data. It runs in
>> case the firmware file is missing.
>> This user helper fallback will be enabled if one of LP55xx driver is
>> included in your dot config. Please see my patch below.
>>
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/leds?id=b67893206fc0a0e8af87130e67f3d8ae553fc87c
>>
>> However, I'm not sure why this affects your system lockup. Can I have
>> more details?
>
> Hi Milo,
> I'm not suggesting that your patch is the cause, just that it is an
> 'enabler' and and explains why the problem (system lockup when I plug USB
> Bluetooth dongle in) appears now.
>
> A full Oops log is further back in this thread:
> http://www.spinics.net/lists/linux-bluetooth/msg63090.html
>
>
>>> Will try building 4.1 with this option to see if it fails.
>
> A very quick test as I was leaving the house this morning shows that 4.1
> with 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' does not show the problem.
>
> So at least we know the 'real' problem is a recent change to the code.
> Simon
>

I think this was reported and fixed

https://lkml.org/lkml/2015/7/8/858
https://lkml.org/lkml/2015/7/8/1199
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6f957724b94cb19f5c1c97efd01dd4df8ced323c

Thanks,
Laura



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17 17:23           ` Laura Abbott
@ 2015-07-17 17:40             ` simon
  2015-07-20  1:48               ` simon
  0 siblings, 1 reply; 9+ messages in thread
From: simon @ 2015-07-17 17:40 UTC (permalink / raw)
  To: Laura Abbott, Shuah Khan; +Cc: Kim, Milo, linux-bluetooth, linux-kernel

> On 07/17/2015 08:14 AM, simon@mungewell.org wrote:
>>
>>>> So in summary this problem is showing up now as the 'User Helper
>>>> Fallback'
>>>> is now forced on, obviously the underlying problem needs to be fixed -
>>>> but
>>>> I don't know when it crept in.
>>>>
>>>
>>> The 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' enables to load firmware
>>> data manually by accessing /sys/class/firmware/<name>/data. It runs in
>>> case the firmware file is missing.
>>> This user helper fallback will be enabled if one of LP55xx driver is
>>> included in your dot config. Please see my patch below.
>>>
>>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/leds?id=b67893206fc0a0e8af87130e67f3d8ae553fc87c
>>>
>>> However, I'm not sure why this affects your system lockup. Can I have
>>> more details?
>>
>> Hi Milo,
>> I'm not suggesting that your patch is the cause, just that it is an
>> 'enabler' and and explains why the problem (system lockup when I plug
>> USB
>> Bluetooth dongle in) appears now.
>>
>> A full Oops log is further back in this thread:
>> http://www.spinics.net/lists/linux-bluetooth/msg63090.html
>>
>>
>>>> Will try building 4.1 with this option to see if it fails.
>>
>> A very quick test as I was leaving the house this morning shows that 4.1
>> with 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' does not show the problem.
>>
>> So at least we know the 'real' problem is a recent change to the code.
>> Simon
>>
>
> I think this was reported and fixed
>
> https://lkml.org/lkml/2015/7/8/858
> https://lkml.org/lkml/2015/7/8/1199
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6f957724b94cb19f5c1c97efd01dd4df8ced323c
>

Certainly looks like a plausible solution, will build kernel tonight to
confirm.

If  Shuah is still looking for the trigger, see above note regarding
'CONFIG_FW_LOADER_USER_HELPER_FALLBACK'.

Thanks, and have an awesome weekend. :-)
Simon


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached
  2015-07-17 17:40             ` simon
@ 2015-07-20  1:48               ` simon
  0 siblings, 0 replies; 9+ messages in thread
From: simon @ 2015-07-20  1:48 UTC (permalink / raw)
  To: simon; +Cc: Laura Abbott, Shuah Khan, Kim, Milo, linux-bluetooth, linux-kernel


>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6f957724b94cb19f5c1c97efd01dd4df8ced323c
>>
>
> Certainly looks like a plausible solution, will build kernel tonight to
> confirm.

Just to confirm; 4.2rc1 + above patch, and 4.2rc2 both function correctly
and I no longer see the lock up/Oops.

Thanks to all who helped out,
Simon.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-20  1:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 23:29 [Fwd: BUG: 4.2rc1 System lockup with BT dongle insert] simon
2015-07-17  4:00 ` Kernel Oops: btusb: 4.2rc1 System lockup with BT dongle insert - log attached simon
2015-07-17  5:14   ` simon
2015-07-17  6:14     ` simon
2015-07-17  7:09       ` Kim, Milo
2015-07-17 15:14         ` simon
2015-07-17 17:23           ` Laura Abbott
2015-07-17 17:40             ` simon
2015-07-20  1:48               ` simon

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.