* OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
@ 2007-03-06 10:33 Dirk Schoebel
2007-03-06 11:07 ` [linux-usb-devel] " Oliver Neukum
0 siblings, 1 reply; 6+ messages in thread
From: Dirk Schoebel @ 2007-03-06 10:33 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-usb-devel
[-- Attachment #1: Type: text/plain, Size: 3495 bytes --]
when trying to access /dev/ttyUSB0, which is a port on a dual port
usb-serial cable (mos7720 based) an kernel OOPS happens
the driver loads ok, first access via minicom -> OOPS
(config.gz attached)
Mar 6 11:21:49 emerald Unable to handle kernel paging request at
ffff81093d0e3668 RIP:
Mar 6 11:21:49 emerald
[<ffffffff88164431>] :usbserial:serial_open+0x91/0x190
Mar 6 11:21:49 emerald PGD 8063 PUD 0
Mar 6 11:21:49 emerald Oops: 0000 [1] SMP
Mar 6 11:21:49 emerald CPU 0
Mar 6 11:21:49 emerald Modules linked in: snd_rtctimer snd_seq_midi
snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul
snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event
snd_seq nls_iso8859_15 vmnet(PF) vmmon(PF) rfcomm l2cap it87 hwmon_vid
i2c_isa eeprom lm90 fuse nls_iso8859_1 nls_cp850 kqemu capability dazuko
commoncap eth1394 tuner psmouse tvaudio msp3400 nvidia(P) k8temp mos7720
usbserial skge snd_bt87x forcedeth snd_emu10k1 snd_rawmidi snd_seq_device
snd_util_mem snd_hwdep bttv video_buf ir_common compat_ioctl32 btcx_risc
tveeprom videodev v4l2_common v4l1_compat ohci1394 hci_usb bluetooth zaurus
cdc_ether usbnet snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd
snd_page_alloc i2c_nforce2
Mar 6 11:21:49 emerald Pid: 11948, comm: minicom Tainted: PF
2.6.21-rc2-emi #1
Mar 6 11:21:49 emerald RIP: 0010:[<ffffffff88164431>]
[<ffffffff88164431>] :usbserial:serial_open+0x91/0x190
Mar 6 11:21:49 emerald RSP: 0018:ffff8100bbe3bda8 EFLAGS: 00010293
Mar 6 11:21:49 emerald RAX: 00000000ffffff01 RBX: 000000000bc00000 RCX:
ffff8100bd72a248
Mar 6 11:21:49 emerald RDX: 00000000000000ff RSI: ffff81010b780b80 RDI:
ffff81013d0e3ea0
Mar 6 11:21:49 emerald RBP: ffff81013d0e3e40 R08: 0000000000000000 R09:
ffff8100bd72a2a8
Mar 6 11:21:49 emerald R10: 000000000000028f R11: 0000000000000002 R12:
ffff8100bd72a000
Mar 6 11:21:49 emerald R13: 0000000000000000 R14: 00000000ffffffed R15:
ffff81010b780b80
Mar 6 11:21:49 emerald FS: 00002b80ce8e5da0(0000) GS:ffffffff808a200
(0000) knlGS:00000000f65519c0
Mar 6 11:21:49 emerald CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 6 11:21:49 emerald CR2: ffff81093d0e3668 CR3: 00000000bd7c2000 CR4:
00000000000006e0
Mar 6 11:21:49 emerald Process minicom (pid: 11948, threadinfo
ffff8100bbe3a000, task ffff810109d727f0)
Mar 6 11:21:49 emerald Stack: ffff81010a583f80 000000000bc00000
ffff81010b780b80 0000000000000000
Mar 6 11:21:49 emerald 0000000000000100 0000000000008902 ffff81013fc2d680
ffffffff805253a6
Mar 6 11:21:49 emerald ffff8100bd72a000 000000000b780b80 0000000000000000
ffff81013df58c08
Mar 6 11:21:49 emerald Call Trace:
Mar 6 11:21:49 emerald [<ffffffff805253a6>] tty_open+0x1b6/0x360
Mar 6 11:21:49 emerald [<ffffffff8024afe2>] chrdev_open+0x182/0x1e0
Mar 6 11:21:49 emerald [<ffffffff8024ae60>] chrdev_open+0x0/0x1e0
Mar 6 11:21:49 emerald [<ffffffff8021eccd>] __dentry_open+0xed/0x1e0
Mar 6 11:21:49 emerald [<ffffffff8022855d>] do_filp_open+0x2d/0x40
Mar 6 11:21:49 emerald [<ffffffff80234c6f>] do_setitimer+0x16f/0x350
Mar 6 11:21:49 emerald [<ffffffff802199ca>] do_sys_open+0x5a/0x100
Mar 6 11:21:49 emerald [<ffffffff802601ce>] system_call+0x7e/0x83
Mar 6 11:21:49 emerald
Mar 6 11:21:49 emerald
Mar 6 11:21:49 emerald Code: 48 8b 5c c5 20 48 85 db 0f 84 c2 00 00 00 4c
8d 6b 18 66 41
Mar 6 11:21:49 emerald RIP
[<ffffffff88164431>] :usbserial:serial_open+0x91/0x190
Mar 6 11:21:49 emerald RSP <ffff8100bbe3bda8>
Mar 6 11:21:49 emerald CR2: ffff81093d0e3668
[-- Attachment #2: config.gz --]
[-- Type: application/x-gzip, Size: 12979 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-usb-devel] OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
2007-03-06 10:33 OOPS with 2.6.20 and 2.6.21-rc2 (mos7720) Dirk Schoebel
@ 2007-03-06 11:07 ` Oliver Neukum
2007-03-06 14:52 ` Dirk Schoebel
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Neukum @ 2007-03-06 11:07 UTC (permalink / raw)
To: linux-usb-devel; +Cc: Dirk Schoebel, linux-kernel
Am Dienstag, 6. März 2007 11:33 schrieb Dirk Schoebel:
> when trying to access /dev/ttyUSB0, which is a port on a dual port
> usb-serial cable (mos7720 based) an kernel OOPS happens
> the driver loads ok, first access via minicom -> OOPS
> (config.gz attached)
Please apply:
ftp://ftp.kernel.org/linux/kernel/people/gregkh/gregkh-2.6/gregkh-03-usb/usb-fix-usb-serial-device-naming-bug.patch
ftp://ftp.kernel.org/linux/kernel/people/gregkh/gregkh-2.6/gregkh-03-usb/usb-further-fix-for-usb-serial.patch
HTH
Oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-usb-devel] OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
2007-03-06 11:07 ` [linux-usb-devel] " Oliver Neukum
@ 2007-03-06 14:52 ` Dirk Schoebel
2007-03-06 15:18 ` Oliver Neukum
0 siblings, 1 reply; 6+ messages in thread
From: Dirk Schoebel @ 2007-03-06 14:52 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-usb-devel
Oliver Neukum wrote:
> Am Dienstag, 6. März 2007 11:33 schrieb Dirk Schoebel:
>> when trying to access /dev/ttyUSB0, which is a port on a dual port
>> usb-serial cable (mos7720 based) an kernel OOPS happens
>> the driver loads ok, first access via minicom -> OOPS
>
> Please apply:
>
ftp://ftp.kernel.org/linux/kernel/people/gregkh/gregkh-2.6/gregkh-03-usb/usb-fix-usb-serial-device-naming-bug.patch
>
ftp://ftp.kernel.org/linux/kernel/people/gregkh/gregkh-2.6/gregkh-03-usb/usb-further-fix-for-usb-serial.patch
>
> HTH
> Oliver
hmm, applied these patches, still crashes
Mar 6 15:46:30 emerald Unable to handle kernel NULL pointer dereference at
0000000000000070 RIP:
Mar 6 15:46:30 emerald
[<ffffffff8813b606>] :mos7720:mos7720_open+0x406/0x5a0
Mar 6 15:46:30 emerald PGD 13d489067 PUD 10ffe4067 PMD 0
Mar 6 15:46:30 emerald Oops: 0000 [1] SMP
Mar 6 15:46:30 emerald CPU 0
Mar 6 15:46:30 emerald Modules linked in: snd_rtctimer snd_seq_midi
snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul
snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event
snd_seq nls_iso8859_15 vmnet(PF) vmmon(PF) it87 hwmon_vid i2c_isa rfcomm
eeprom l2cap lm90 fuse nls_iso8859_1 nls_cp850 eth1394 kqemu capability
dazuko commoncap tuner tvaudio msp3400 psmouse nvidia(P) snd_emu10k1
snd_rawmidi snd_seq_device snd_util_mem snd_hwdep mos7720 usbserial
ohci1394 i2c_nforce2 skge snd_bt87x bttv video_buf ir_common compat_ioctl32
btcx_risc tveeprom videodev v4l2_common v4l1_compat k8temp forcedeth
snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd snd_page_alloc
zaurus cdc_ether usbnet hci_usb bluetooth
Mar 6 15:46:30 emerald Pid: 11881, comm: minicom Tainted: PF
2.6.21-rc2-emi #1
Mar 6 15:46:30 emerald RIP: 0010:[<ffffffff8813b606>]
[<ffffffff8813b606>] :mos7720:mos7720_open+0x406/0x5a0
Mar 6 15:46:30 emerald RSP: 0018:ffff810122757d58 EFLAGS: 00010202
Mar 6 15:46:30 emerald RAX: 0000000040000780 RBX: ffff81013dfc5800 RCX:
ffff81013ffe8000
Mar 6 15:46:30 emerald RDX: 0000000000000000 RSI: ffff810001000110 RDI:
0000000000000000
Mar 6 15:46:30 emerald RBP: ffff810122757d6f R08: ffff810122756000 R09:
ffff810122757b58
Mar 6 15:46:30 emerald R10: 0000000000000000 R11: 0000000000000000 R12:
ffff81013dfc5800
Mar 6 15:46:30 emerald R13: ffff81013d868bc0 R14: ffff81013cf43b00 R15:
ffff81013d688580
Mar 6 15:46:30 emerald FS: 00002ba10338cda0(0000) GS:ffffffff808a200
(0000) knlGS:00000000f64af9c0
Mar 6 15:46:30 emerald CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 6 15:46:30 emerald CR2: 0000000000000070 CR3: 000000013e55e000 CR4:
00000000000006e0
Mar 6 15:46:30 emerald Process minicom (pid: 11881, threadinfo
ffff810122756000, task ffff810100074730)
Mar 6 15:46:30 emerald Stack: ffff81013dfc5800 ffff81013d774ff0
0c00000000000282 ffff81013dfc5800
Mar 6 15:46:30 emerald ffff81013d868bc0 ffff810139607000 ffff81013dfc5818
00000000ffffffed
Mar 6 15:46:30 emerald ffff8100bdabb2c0 ffffffff8812f487 ffff810109b6c900
000000000bc00000
Mar 6 15:46:30 emerald Call Trace:
Mar 6 15:46:30 emerald
[<ffffffff8812f487>] :usbserial:serial_open+0x117/0x190
Mar 6 15:46:30 emerald [<ffffffff805253a6>] tty_open+0x1b6/0x360
Mar 6 15:46:30 emerald [<ffffffff8024afe2>] chrdev_open+0x182/0x1e0
Mar 6 15:46:30 emerald [<ffffffff8024ae60>] chrdev_open+0x0/0x1e0
Mar 6 15:46:30 emerald [<ffffffff8021eccd>] __dentry_open+0xed/0x1e0
Mar 6 15:46:30 emerald [<ffffffff8022855d>] do_filp_open+0x2d/0x40
Mar 6 15:46:30 emerald [<ffffffff80234c6f>] do_setitimer+0x16f/0x350
Mar 6 15:46:30 emerald [<ffffffff802199ca>] do_sys_open+0x5a/0x100
Mar 6 15:46:30 emerald [<ffffffff802601ce>] system_call+0x7e/0x83
Mar 6 15:46:30 emerald
Mar 6 15:46:30 emerald
Mar 6 15:46:30 emerald Code: 44 8b 47 70 09 c2 48 8b 43 38 c7 47 04 01 00
00 00 48 89 4f
Mar 6 15:46:30 emerald RIP
[<ffffffff8813b606>] :mos7720:mos7720_open+0x406/0x5a0
Mar 6 15:46:30 emerald RSP <ffff810122757d58>
Mar 6 15:46:30 emerald CR2: 0000000000000070
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-usb-devel] OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
2007-03-06 14:52 ` Dirk Schoebel
@ 2007-03-06 15:18 ` Oliver Neukum
2007-03-06 15:31 ` Dirk Schoebel
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Neukum @ 2007-03-06 15:18 UTC (permalink / raw)
To: Dirk Schoebel; +Cc: linux-kernel, linux-usb-devel
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
Am Dienstag, 6. März 2007 15:52 schrieb Dirk Schoebel:
> hmm, applied these patches, still crashes
Please apply the attached debugging patch.
Regards
Oliver
[-- Attachment #2: mos.debug --]
[-- Type: text/x-diff, Size: 304 bytes --]
--- a/drivers/usb/serial/mos7720.c 2007-03-06 16:16:16.000000000 +0100
+++ b/drivers/usb/serial/mos7720.c 2007-03-06 16:16:21.000000000 +0100
@@ -334,7 +334,7 @@
int port_number;
char data;
int j;
-
+BUG_ON(port == NULL);
serial = port->serial;
mos7720_port = usb_get_serial_port_data(port);
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
2007-03-06 15:18 ` Oliver Neukum
@ 2007-03-06 15:31 ` Dirk Schoebel
2007-03-06 18:31 ` Dirk Schoebel
0 siblings, 1 reply; 6+ messages in thread
From: Dirk Schoebel @ 2007-03-06 15:31 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-usb-devel
new trace
(if i should activate some kernel debugging optioons just mention it)
Mar 6 16:28:02 emerald usbcore: registered new interface driver moschip7720
Mar 6 16:28:12 emerald Unable to handle kernel NULL pointer dereference at
0000000000000070 RIP:
Mar 6 16:28:12 emerald
[<ffffffff881895fb>] :mos7720:mos7720_open+0x3fb/0x580
Mar 6 16:28:12 emerald PGD 10ba92067 PUD 1321b3067 PMD 0
Mar 6 16:28:12 emerald Oops: 0000 [2] SMP
Mar 6 16:28:12 emerald CPU 0
Mar 6 16:28:12 emerald Modules linked in: mos7720 snd_rtctimer snd_seq_midi
snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul
snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi_event
snd_seq nls_iso8859_15 vmnet(PF) vmmon(PF) it87 hwmon_vid i2c_isa eeprom
lm90 rfcomm l2cap fuse nls_iso8859_1 nls_cp850 eth1394 kqemu capability
dazuko commoncap tuner tvaudio msp3400 nvidia(P) usbserial psmouse bttv
video_buf ir_common compat_ioctl32 btcx_risc zaurus cdc_ether usbnet
tveeprom videodev v4l2_common v4l1_compat hci_usb bluetooth snd_emu10k1
snd_rawmidi snd_seq_device snd_util_mem snd_hwdep skge snd_intel8x0
snd_ac97_codec ac97_bus snd_bt87x snd_pcm snd_timer ohci1394 snd
snd_page_alloc k8temp i2c_nforce2 forcedeth
Mar 6 16:28:12 emerald Pid: 15042, comm: minicom Tainted: PF R
2.6.21-rc2-emi #1
Mar 6 16:28:12 emerald RIP: 0010:[<ffffffff881895fb>]
[<ffffffff881895fb>] :mos7720:mos7720_open+0x3fb/0x580
Mar 6 16:28:12 emerald RSP: 0018:ffff810138a97d58 EFLAGS: 00010202
Mar 6 16:28:12 emerald RAX: 0000000040000780 RBX: ffff81011926cc00 RCX:
ffff81013ff96000
Mar 6 16:28:12 emerald RDX: 0000000000000000 RSI: ffff810001000138 RDI:
0000000000000000
Mar 6 16:28:12 emerald RBP: ffff810138a97d6f R08: ffff810138a96000 R09:
ffff810138a97b58
Mar 6 16:28:12 emerald R10: 0000000000000000 R11: 0000000000000000 R12:
ffff81011926cc00
Mar 6 16:28:12 emerald R13: ffff8100be0e1240 R14: ffff8100bc2a4540 R15:
ffff810136a3fe20
Mar 6 16:28:12 emerald FS: 00002b640ead7da0(0000) GS:ffffffff808a200
(0000) knlGS:00000000f65019c0
Mar 6 16:28:12 emerald CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 6 16:28:12 emerald CR2: 0000000000000070 CR3: 0000000138617000 CR4:
00000000000006e0
Mar 6 16:28:12 emerald Process minicom (pid: 15042, threadinfo
ffff810138a96000, task ffff81011d76eee0)
Mar 6 16:28:12 emerald Stack: ffff81011926cc00 ffff81013d1cd000
0c00000000000282 ffff81011926cc00
Mar 6 16:28:12 emerald ffff8100be0e1240 ffff81013ae12800 ffff81011926cc18
00000000ffffffed
Mar 6 16:28:12 emerald ffff8100baad1680 ffffffff8817d487 ffff8100bd27f940
000000000bc00002
Mar 6 16:28:12 emerald Call Trace:
Mar 6 16:28:12 emerald
[<ffffffff8817d487>] :usbserial:serial_open+0x117/0x190
Mar 6 16:28:12 emerald [<ffffffff805253a6>] tty_open+0x1b6/0x360
Mar 6 16:28:12 emerald [<ffffffff8024afe2>] chrdev_open+0x182/0x1e0
Mar 6 16:28:12 emerald [<ffffffff8024ae60>] chrdev_open+0x0/0x1e0
Mar 6 16:28:12 emerald [<ffffffff8021eccd>] __dentry_open+0xed/0x1e0
Mar 6 16:28:12 emerald [<ffffffff8022855d>] do_filp_open+0x2d/0x40
Mar 6 16:28:12 emerald [<ffffffff80234c6f>] do_setitimer+0x16f/0x350
Mar 6 16:28:12 emerald [<ffffffff802199ca>] do_sys_open+0x5a/0x100
Mar 6 16:28:12 emerald [<ffffffff802601ce>] system_call+0x7e/0x83
Mar 6 16:28:12 emerald
Mar 6 16:28:12 emerald
Mar 6 16:28:12 emerald Code: 44 8b 47 70 09 c2 48 8b 43 38 c7 47 04 01 00
00 00 48 89 4f
Mar 6 16:28:12 emerald RIP
[<ffffffff881895fb>] :mos7720:mos7720_open+0x3fb/0x580
Mar 6 16:28:12 emerald RSP <ffff810138a97d58>
Mar 6 16:28:12 emerald CR2: 0000000000000070
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)
2007-03-06 15:31 ` Dirk Schoebel
@ 2007-03-06 18:31 ` Dirk Schoebel
0 siblings, 0 replies; 6+ messages in thread
From: Dirk Schoebel @ 2007-03-06 18:31 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-usb-devel
...btw...
another usb serial adapter (single port ftdi) works well, no OOPSes
so.. maybe the error is less to search within usb-serial itself but more the
interaction or the driver itself...
Dirk.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-03-06 18:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:33 OOPS with 2.6.20 and 2.6.21-rc2 (mos7720) Dirk Schoebel
2007-03-06 11:07 ` [linux-usb-devel] " Oliver Neukum
2007-03-06 14:52 ` Dirk Schoebel
2007-03-06 15:18 ` Oliver Neukum
2007-03-06 15:31 ` Dirk Schoebel
2007-03-06 18:31 ` Dirk Schoebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox