[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#618309: linux-image-2.6-686: Comedi jr3_pci crash by incorrect ioremap call



Package: linux-image-2.6-686
Severity: important
Tags: patch


The Comedi drivers has a module jr3_pci for an specific kind of analog cards.
This driver, when is loading crash with this message:

[    6.531366] comedi: module is from the staging directory, the quality is 
unknown, you have been warned.
[    6.580157] comedi: version 0.7.76 - http://www.comedi.org
[    6.637867] jr3_pci: module is from the staging directory, the quality is 
unknown, you have been warned.
[    6.639647] comedi0: jr3_pci
[    6.639672] resource map sanity check conflict: 0xfb000000 0xfb1fffff 
0xfb000000 0xfb0fffff 0000:04:02.0
[    6.639676] ------------[ cut here ]------------
[    6.639687] WARNING: at /build/buildd-linux-2.6_2.6.32-30-i386-
UYhWt7/linux-2.6-2.6.32/debian/build/source_i386_none/arch/x86/mm/ioremap.c:135 
__ioremap_caller+0x65/0x254()
[    6.639698] Hardware name: P4SCT
[    6.639701] Info: mapping multiple BARs. Your kernel is fine.
[    6.639705] Modules linked in: jr3_pci(C+) videobuf_core(+) btcx_risc 
tveeprom comedi(C) nouveau ttm wis_tw2804 drm_kms_helper rng_core drm 
i2c_algo_bit i6300esb shpchp i2c_i801 parport_pc snd_usb_audio go7007_usb 
pci_hotplug parport snd_usb_lib go7007 snd_hwdep videodev snd_seq_midi 
v4l1_compat button snd_rawmidi snd_go7007 snd_seq_midi_event snd_pcm_oss evdev 
pcspkr processor snd_seq snd_mixer_oss snd_pcm snd_timer snd_seq_device 
snd_page_alloc i2c_core snd soundcore ext4 mbcache jbd2 crc16 sg sr_mod cdrom 
fan sd_mod crc_t10dif ata_generic uhci_hcd ohci_hcd firewire_ohci ata_piix 
thermal firewire_core libata floppy e1000 ehci_hcd crc_itu_t thermal_sys 
scsi_mod usbcore nls_base [last unloaded: scsi_wait_scan]
[    6.639804] Pid: 635, comm: modprobe Tainted: G         C 2.6.32-5-686 #1
[    6.639808] Call Trace:
[    6.639818]  [<c10303fd>] ? warn_slowpath_common+0x5e/0x8a
[    6.639827]  [<c103045b>] ? warn_slowpath_fmt+0x26/0x2a
[    6.639834]  [<c101bbd0>] ? __ioremap_caller+0x65/0x254
[    6.639844]  [<c11449a6>] ? __pci_request_selected_regions+0x25/0x57
[    6.639850]  [<c101be7a>] ? ioremap_nocache+0xd/0xf
[    6.639859]  [<f7cee777>] ? jr3_pci_attach+0x4e3/0x506 [jr3_pci]
[    6.639867]  [<f7cee777>] ? jr3_pci_attach+0x4e3/0x506 [jr3_pci]
[    6.639878]  [<f7c956ee>] ? comedi_device_attach+0x96/0x31e [comedi]
[    6.639886]  [<f7c95aa2>] ? comedi_auto_config+0x12c/0x171 [comedi]
[    6.639896]  [<f7c95b23>] ? comedi_pci_auto_config+0x26/0x2a [comedi]
[    6.639905]  [<c1145fa5>] ? local_pci_probe+0xb/0xc
[    6.639912]  [<c11468ef>] ? pci_device_probe+0x41/0x63
[    6.639921]  [<c11b2dee>] ? driver_probe_device+0x8a/0x11e
[    6.639927]  [<c11b2ec2>] ? __driver_attach+0x40/0x5b
[    6.639934]  [<c11b2831>] ? bus_for_each_dev+0x37/0x5f
[    6.639942]  [<c11b2cc1>] ? driver_attach+0x11/0x13
[    6.639949]  [<c11b2e82>] ? __driver_attach+0x0/0x5b
[    6.639955]  [<c11b22f9>] ? bus_add_driver+0x99/0x1c5
[    6.639962]  [<c11b30f3>] ? driver_register+0x87/0xe0
[    6.639969]  [<c1146ac0>] ? __pci_register_driver+0x33/0x89
[    6.639977]  [<f7c3e000>] ? driver_jr3_pci_init_module+0x0/0x2d [jr3_pci]
[    6.639985]  [<c100113e>] ? do_one_initcall+0x55/0x155
[    6.639992]  [<c1057449>] ? sys_init_module+0xa7/0x1d7
[    6.640060]  [<c10030fb>] ? sysenter_do_call+0x12/0x28
[    6.640066] ---[ end trace 659b2733e74ceac3 ]---
[    6.640368] p->channel f9790000 f9780000 (10000)
[    6.640375] p->channel f9810000 f9780000 (90000)
[    6.640383] jr3_pci 0000:04:02.0: firmware: requesting comedi/jr3pci.idm
[    6.783020] Loading#0 131c bytes at 0004
[    6.788516] Loading#0 0002 bytes at 0000
[    6.788522] Loading#1 131c bytes at 0004
[    6.793976] Loading#1 0002 bytes at 0000
[    6.793990] Firmare load 0
[    6.825015] Copyright JR3 1993-2000


I have contacted with upstream that confirm the bug and send a patch [1]. 
Please, apply it to the next upgrade of the kernel image.

Thanks,

Best regards,

Leo



[1] https://patchwork.kernel.org/patch/629011/




-- System Information:
Debian Release: 6.0
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: