Author Topic: Kernel Bug When Ejecting Bluetooth Card  (Read 2353 times)

simbaB

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://www.oakcourt.dyndns.org/~andrew/
Kernel Bug When Ejecting Bluetooth Card
« on: September 30, 2006, 01:02:49 pm »
Code: [Select]
BUG: warning at drivers/serial/serial_core.c:492/uart_write()
[] (dump_stack+0x0/0x14) from [] (uart_write+0x50/0x13c)
[] (uart_write+0x0/0x13c) from [] (hci_uart_tx_wakeup+0xb4/0x1ac [hci_uart])
[] (hci_uart_tx_wakeup+0x0/0x1ac [hci_uart]) from [] (bcsp_timed_event+0xbc/0xc0 [hci_uart])
 r7 = C04C96E0  r6 = 40000013  r5 = C17B8000  r4 = C089A0E0
[] (bcsp_timed_event+0x0/0xc0 [hci_uart]) from [] (run_timer_softirq+0x1a8/0x238)
 r7 = C17B9D60  r6 = C17B8000  r5 = 00000103  r4 = C025EF94
[] (run_timer_softirq+0x0/0x238) from [] (__do_softirq+0x5c/0xd0)
[] (__do_softirq+0x0/0xd0) from [] (irq_exit+0x44/0x58)
 r8 = 00000001  r7 = 00000002  r6 = 04000000  r5 = C17B8000
 r4 = C17B8000
[] (irq_exit+0x0/0x58) from [] (asm_do_IRQ+0x124/0x140)
 r4 = FFFFFFFF
[] (asm_do_IRQ+0x0/0x140) from [] (__irq_svc+0x38/0x78)
[] (xscale_mc_copy_user_page+0x0/0xa0) from [] (__handle_mm_fault+0x37c/0x93c)
 r4 = C02AD8C0
[] (__handle_mm_fault+0x0/0x93c) from [] (do_page_fault+0xe0/0x214)
[] (do_page_fault+0x0/0x214) from [] (do_DataAbort+0x3c/0xa0)
[] (do_DataAbort+0x0/0xa0) from [] (ret_from_exception+0x0/0x10)
 r8 = BEFE42CC  r7 = 400CE954  r6 = 400CE97C  r5 = 4001C000
 r4 = FFFFFFFF
BUG: warning at drivers/serial/serial_core.c:492/uart_write()
[] (dump_stack+0x0/0x14) from [] (uart_write+0x50/0x13c)
[] (uart_write+0x0/0x13c) from [] (hci_uart_tx_wakeup+0xb4/0x1ac [hci_uart])
[] (hci_uart_tx_wakeup+0x0/0x1ac [hci_uart]) from [] (bcsp_timed_event+0xbc/0xc0 [hci_uart])
 r7 = C04C96E0  r6 = 60000013  r5 = C020C000  r4 = C089A0E0
[] (bcsp_timed_event+0x0/0xc0 [hci_uart]) from [] (run_timer_softirq+0x1a8/0x238)
 r7 = C020DEB4  r6 = C020C000  r5 = 00000103  r4 = C025EF94
[] (run_timer_softirq+0x0/0x238) from [] (__do_softirq+0x5c/0xd0)
[] (__do_softirq+0x0/0xd0) from [] (irq_exit+0x44/0x58)
 r8 = 00000001  r7 = 00000002  r6 = 04000000  r5 = C020C000
 r4 = C020C000
[] (irq_exit+0x0/0x58) from [] (asm_do_IRQ+0x124/0x140)
 r4 = FFFFFFFF
[] (asm_do_IRQ+0x0/0x140) from [] (__irq_svc+0x38/0x78)
[] (default_idle+0x0/0x5c) from [] (cpu_idle+0x48/0x84)
[] (cpu_idle+0x0/0x84) from [] (__init_end+0x48/0x50)
 r5 = C0259044  r4 = C020C000
[] (__init_end+0x0/0x50) from [] (start_kernel+0x1a0/0x1e8)
 r4 = C02614D4
[] (start_kernel+0x0/0x1e8) from [] (0xa0008030)

This is after using the Opie applet to eject the card.

The card isn't working properly, it appears to initialize but it can only scan, connection attempts time out with an I/O error. It is a Belkin Bluetooth CF card,

Code: [Select]
root@poodle:/etc/bluetooth# cardctl info
PRODID_1="CF CARD"
PRODID_2="GENERIC"
PRODID_3=""
PRODID_4=""
MANFID=0279,950b
FUNCID=2

It is identified as a 'Compaq iPAQ Bluetooth Sleeve' by Opie and all initialization is done by pcmcia-cs and friends (e.g. nothing manual).

If I down the hci0 interface ('hciconfig hci0 down') it will not come back up: 'Connection timed out (110)'

It has worked properly in the past, most recently with stock OZ 3.5.4.2-rc2. I'd like to stick with the Hentges ROM because it fixes a number of bugs for me on recent OZ firmwares.
[span style=\'font-size:8pt;line-height:100%\']Collie (not used) | Poodle (OZ/Opie 3.5.4.2-rc2)
Nokia 770 (ITOS 2006) | IBM Thinkpad R51 (Debian)
Intel Core 2 Duo/Desktop Board DG965RY (Debian)[/span]

simbaB

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://www.oakcourt.dyndns.org/~andrew/
Kernel Bug When Ejecting Bluetooth Card
« Reply #1 on: September 30, 2006, 01:57:28 pm »
Strange, replacing bluez-utils-dbus with bluez-utils-nodbus seemed to fix all the problems. I can use my phone now and ejecting the card does not hit a kernel BUG()
[span style=\'font-size:8pt;line-height:100%\']Collie (not used) | Poodle (OZ/Opie 3.5.4.2-rc2)
Nokia 770 (ITOS 2006) | IBM Thinkpad R51 (Debian)
Intel Core 2 Duo/Desktop Board DG965RY (Debian)[/span]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Kernel Bug When Ejecting Bluetooth Card
« Reply #2 on: October 01, 2006, 11:35:05 am »
I thought Opie was supposed to have the nodbus one by default?

Anyone?

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva