unable to activate my older scsi scanner

after upgrading to 12.1, I can no longer use my Canon 2710s slide scanner. It’s been difficult to operate at the best of times, but now it isn’t even detected by sane-find-scanner anymore despite the fact that it’s listed by lsscsi.

I’ve included the dmesg output of rmmod sym53c8xx and modprobe sym53c8xx, maybe it helps.

3526.550641] ------------ cut here ]------------
3526.550691] WARNING: at /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147 ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx
3526.550699] Hardware name: GA-MA780G-UD3H
3526.550703] Modules linked in: lm87 ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc iscsi_trgt bridge stp llc binfmt_misc it87 hwmon_vid cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 mperf microcode sr_mod cdrom raid1 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx kvm_amd kvm hdj_mod snd_rawmidi snd_seq_device gspca_sonixj gspca_main videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi ppdev usblp snd_hda_codec_realtek ums_cypress usb_storage uas firewire_ohci firewire_core crc_itu_t pcspkr sp5100_tco edac_core edac_mce_amd k10temp snd_hda_intel snd_hda_codec i2c_piix4 snd_hwdep snd_pcm snd_timer snd soundcore sg snd_page_alloc wmi parport_pc parport button r8169 shpchp pci_hotplug autofs4 dm_mod linear ohci_hcd ehci_hcd radeon usbcore ttm drm_kms_helper drm ssb mmc_core pcmcia pcmcia_core i2c_algo_bit fan processor thermal thermal_sys ata_generic sym53c8xx(-) scsi_transport_spi sata_sil24 pata_atiixp
3526.550847] Pid: 3949, comm: rmmod Not tainted 3.1.0-1.2-default #1
3526.550852] Call Trace:
3526.550880] <ffffffff810042fa>] dump_trace+0x9a/0x270
3526.550895] <ffffffff81523edb>] dump_stack+0x69/0x6f
3526.550909] <ffffffff81051eab>] warn_slowpath_common+0x7b/0xc0
3526.550929] <ffffffffa002c243>] ___free_dma_mem_cluster+0xe3/0xf0 [sym53c8xx]
3526.550980] <ffffffffa002c563>] __sym_mfree_dma+0x73/0xc0 [sym53c8xx]
3526.551023] <ffffffffa002bd43>] sym_hcb_free+0x53/0x1e0 [sym53c8xx]
3526.551061] <ffffffffa0022790>] sym_free_resources+0x40/0x80 [sym53c8xx]
3526.551079] <ffffffffa002287b>] sym_detach+0xab/0xe0 [sym53c8xx]
3526.551097] <ffffffffa00228e3>] sym2_remove+0x33/0x60 [sym53c8xx]
3526.551113] <ffffffff812c9f7c>] pci_device_remove+0x3c/0x110
3526.551128] <ffffffff8136c2b6>] __device_release_driver+0x76/0xe0
3526.551141] <ffffffff8136cb20>] driver_detach+0xa0/0xb0
3526.551154] <ffffffff8136c11a>] bus_remove_driver+0x7a/0xf0
3526.551166] <ffffffff812c8e9e>] pci_unregister_driver+0x3e/0xb0
3526.551183] <ffffffffa002db8b>] sym2_exit+0xd/0x482 [sym53c8xx]
3526.551204] <ffffffff8108f38f>] sys_delete_module+0x16f/0x250
3526.551217] <ffffffff81543e12>] system_call_fastpath+0x16/0x1b
3526.551232] <00007f657708eb27>] 0x7f657708eb26
3526.551237] — end trace 7fc4a35ac72bea44 ]—
3526.551246] ------------ cut here ]------------
3526.551260] WARNING: at /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147 ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx
3526.551267] Hardware name: GA-MA780G-UD3H
3526.551270] Modules linked in: lm87 ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc iscsi_trgt bridge stp llc binfmt_misc it87 hwmon_vid cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 mperf microcode sr_mod cdrom raid1 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx kvm_amd kvm hdj_mod snd_rawmidi snd_seq_device gspca_sonixj gspca_main videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi ppdev usblp snd_hda_codec_realtek ums_cypress usb_storage uas firewire_ohci firewire_core crc_itu_t pcspkr sp5100_tco edac_core edac_mce_amd k10temp snd_hda_intel snd_hda_codec i2c_piix4 snd_hwdep snd_pcm snd_timer snd soundcore sg snd_page_alloc wmi parport_pc parport button r8169 shpchp pci_hotplug autofs4 dm_mod linear ohci_hcd ehci_hcd radeon usbcore ttm drm_kms_helper drm ssb mmc_core pcmcia pcmcia_core i2c_algo_bit fan processor thermal thermal_sys ata_generic sym53c8xx(-) scsi_transport_spi sata_sil24 pata_atiixp
3526.551403] Pid: 3949, comm: rmmod Tainted: G W 3.1.0-1.2-default #1
3526.551408] Call Trace:
3526.551420] <ffffffff810042fa>] dump_trace+0x9a/0x270
3526.551430] <ffffffff81523edb>] dump_stack+0x69/0x6f
3526.551441] <ffffffff81051eab>] warn_slowpath_common+0x7b/0xc0
3526.551458] <ffffffffa002c243>] ___free_dma_mem_cluster+0xe3/0xf0 [sym53c8xx]
3526.551504] <ffffffffa002c563>] __sym_mfree_dma+0x73/0xc0 [sym53c8xx]
3526.551546] <ffffffffa002bd69>] sym_hcb_free+0x79/0x1e0 [sym53c8xx]
3526.551585] <ffffffffa0022790>] sym_free_resources+0x40/0x80 [sym53c8xx]
3526.551602] <ffffffffa002287b>] sym_detach+0xab/0xe0 [sym53c8xx]
3526.551619] <ffffffffa00228e3>] sym2_remove+0x33/0x60 [sym53c8xx]
3526.551633] <ffffffff812c9f7c>] pci_device_remove+0x3c/0x110
3526.551645] <ffffffff8136c2b6>] __device_release_driver+0x76/0xe0
3526.551657] <ffffffff8136cb20>] driver_detach+0xa0/0xb0
3526.551669] <ffffffff8136c11a>] bus_remove_driver+0x7a/0xf0
3526.551680] <ffffffff812c8e9e>] pci_unregister_driver+0x3e/0xb0
3526.551697] <ffffffffa002db8b>] sym2_exit+0xd/0x482 [sym53c8xx]
3526.551716] <ffffffff8108f38f>] sys_delete_module+0x16f/0x250
3526.551728] <ffffffff81543e12>] system_call_fastpath+0x16/0x1b
3526.551741] <00007f657708eb27>] 0x7f657708eb26
3526.551745] — end trace 7fc4a35ac72bea45 ]—
3526.551750] ------------ cut here ]------------
3526.551764] WARNING: at /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147 ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx
3526.551770] Hardware name: GA-MA780G-UD3H
3526.551774] Modules linked in: lm87 ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc iscsi_trgt bridge stp llc binfmt_misc it87 hwmon_vid cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 mperf microcode sr_mod cdrom raid1 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx kvm_amd kvm hdj_mod snd_rawmidi snd_seq_device gspca_sonixj gspca_main videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi ppdev usblp snd_hda_codec_realtek ums_cypress usb_storage uas firewire_ohci firewire_core crc_itu_t pcspkr sp5100_tco edac_core edac_mce_amd k10temp snd_hda_intel snd_hda_codec i2c_piix4 snd_hwdep snd_pcm snd_timer snd soundcore sg snd_page_alloc wmi parport_pc parport button r8169 shpchp pci_hotplug autofs4 dm_mod linear ohci_hcd ehci_hcd radeon usbcore ttm drm_kms_helper drm ssb mmc_core pcmcia pcmcia_core i2c_algo_bit fan processor thermal thermal_sys ata_generic sym53c8xx(-) scsi_transport_spi sata_sil24 pata_atiixp
3526.551905] Pid: 3949, comm: rmmod Tainted: G W 3.1.0-1.2-default #1
3526.551910] Call Trace:
3526.551922] <ffffffff810042fa>] dump_trace+0x9a/0x270
3526.551932] <ffffffff81523edb>] dump_stack+0x69/0x6f
3526.551942] <ffffffff81051eab>] warn_slowpath_common+0x7b/0xc0
3526.551959] <ffffffffa002c243>] ___free_dma_mem_cluster+0xe3/0xf0 [sym53c8xx]
3526.552005] <ffffffffa002c563>] __sym_mfree_dma+0x73/0xc0 [sym53c8xx]
3526.552047] <ffffffffa002bd8d>] sym_hcb_free+0x9d/0x1e0 [sym53c8xx]
3526.552085] <ffffffffa0022790>] sym_free_resources+0x40/0x80 [sym53c8xx]
3526.552102] <ffffffffa002287b>] sym_detach+0xab/0xe0 [sym53c8xx]
3526.552120] <ffffffffa00228e3>] sym2_remove+0x33/0x60 [sym53c8xx]
3526.552134] <ffffffff812c9f7c>] pci_device_remove+0x3c/0x110
3526.552145] <ffffffff8136c2b6>] __device_release_driver+0x76/0xe0
3526.552157] <ffffffff8136cb20>] driver_detach+0xa0/0xb0
3526.552169] <ffffffff8136c11a>] bus_remove_driver+0x7a/0xf0
3526.552180] <ffffffff812c8e9e>] pci_unregister_driver+0x3e/0xb0
3526.552197] <ffffffffa002db8b>] sym2_exit+0xd/0x482 [sym53c8xx]
3526.552217] <ffffffff8108f38f>] sys_delete_module+0x16f/0x250
3526.552228] <ffffffff81543e12>] system_call_fastpath+0x16/0x1b
3526.552241] <00007f657708eb27>] 0x7f657708eb26
3526.552245] — end trace 7fc4a35ac72bea46 ]—
3526.552323] ------------ cut here ]------------
3526.552338] WARNING: at /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147 ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx
3526.552345] Hardware name: GA-MA780G-UD3H
3526.552348] Modules linked in: lm87 ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc iscsi_trgt bridge stp llc binfmt_misc it87 hwmon_vid cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 mperf microcode sr_mod cdrom raid1 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx kvm_amd kvm hdj_mod snd_rawmidi snd_seq_device gspca_sonixj gspca_main videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi ppdev usblp snd_hda_codec_realtek ums_cypress usb_storage uas firewire_ohci firewire_core crc_itu_t pcspkr sp5100_tco edac_core edac_mce_amd k10temp snd_hda_intel snd_hda_codec i2c_piix4 snd_hwdep snd_pcm snd_timer snd soundcore sg snd_page_alloc wmi parport_pc parport button r8169 shpchp pci_hotplug autofs4 dm_mod linear ohci_hcd ehci_hcd radeon usbcore ttm drm_kms_helper drm ssb mmc_core pcmcia pcmcia_core i2c_algo_bit fan processor thermal thermal_sys ata_generic sym53c8xx(-) scsi_transport_spi sata_sil24 pata_atiixp
3526.552479] Pid: 3949, comm: rmmod Tainted: G W 3.1.0-1.2-default #1
3526.552483] Call Trace:
3526.552496] <ffffffff810042fa>] dump_trace+0x9a/0x270
3526.552506] <ffffffff81523edb>] dump_stack+0x69/0x6f
3526.552517] <ffffffff81051eab>] warn_slowpath_common+0x7b/0xc0
3526.552534] <ffffffffa002c243>] ___free_dma_mem_cluster+0xe3/0xf0 [sym53c8xx]
3526.552580] <ffffffffa002c563>] __sym_mfree_dma+0x73/0xc0 [sym53c8xx]
3526.552621] <ffffffffa002bdb1>] sym_hcb_free+0xc1/0x1e0 [sym53c8xx]
3526.552659] <ffffffffa0022790>] sym_free_resources+0x40/0x80 [sym53c8xx]
3526.552676] <ffffffffa002287b>] sym_detach+0xab/0xe0 [sym53c8xx]
3526.552694] <ffffffffa00228e3>] sym2_remove+0x33/0x60 [sym53c8xx]
3526.552707] <ffffffff812c9f7c>] pci_device_remove+0x3c/0x110
3526.552719] <ffffffff8136c2b6>] __device_release_driver+0x76/0xe0
3526.552730] <ffffffff8136cb20>] driver_detach+0xa0/0xb0
3526.552742] <ffffffff8136c11a>] bus_remove_driver+0x7a/0xf0
3526.552754] <ffffffff812c8e9e>] pci_unregister_driver+0x3e/0xb0
3526.552770] <ffffffffa002db8b>] sym2_exit+0xd/0x482 [sym53c8xx]
3526.552790] <ffffffff8108f38f>] sys_delete_module+0x16f/0x250
3526.552801] <ffffffff81543e12>] system_call_fastpath+0x16/0x1b
3526.552813] <00007f657708eb27>] 0x7f657708eb26
3526.552817] — end trace 7fc4a35ac72bea47 ]—
3526.552825] ------------ cut here ]------------
3526.552839] WARNING: at /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147 ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx
3526.552846] Hardware name: GA-MA780G-UD3H
3526.552849] Modules linked in: lm87 ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc iscsi_trgt bridge stp llc binfmt_misc it87 hwmon_vid cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 mperf microcode sr_mod cdrom raid1 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx kvm_amd kvm hdj_mod snd_rawmidi snd_seq_device gspca_sonixj gspca_main videodev v4l2_compat_ioctl32 snd_hda_codec_hdmi ppdev usblp snd_hda_codec_realtek ums_cypress usb_storage uas firewire_ohci firewire_core crc_itu_t pcspkr sp5100_tco edac_core edac_mce_amd k10temp snd_hda_intel snd_hda_codec i2c_piix4 snd_hwdep snd_pcm snd_timer snd soundcore sg snd_page_alloc wmi parport_pc parport button r8169 shpchp pci_hotplug autofs4 dm_mod linear ohci_hcd ehci_hcd radeon usbcore ttm drm_kms_helper drm ssb mmc_core pcmcia pcmcia_core i2c_algo_bit fan processor thermal thermal_sys ata_generic sym53c8xx(-) scsi_transport_spi sata_sil24 pata_atiixp
3526.552980] Pid: 3949, comm: rmmod Tainted: G W 3.1.0-1.2-default #1
3526.552984] Call Trace:
3526.552996] <ffffffff810042fa>] dump_trace+0x9a/0x270
3526.553006] <ffffffff81523edb>] dump_stack+0x69/0x6f
3526.553017] <ffffffff81051eab>] warn_slowpath_common+0x7b/0xc0
3526.553034] <ffffffffa002c243>] ___free_dma_mem_cluster+0xe3/0xf0 [sym53c8xx]
3526.553079] <ffffffffa002c563>] __sym_mfree_dma+0x73/0xc0 [sym53c8xx]
3526.553119] <ffffffffa002287b>] sym_detach+0xab/0xe0 [sym53c8xx]
3526.553137] <ffffffffa00228e3>] sym2_remove+0x33/0x60 [sym53c8xx]
3526.553150] <ffffffff812c9f7c>] pci_device_remove+0x3c/0x110
3526.553162] <ffffffff8136c2b6>] __device_release_driver+0x76/0xe0
3526.553173] <ffffffff8136cb20>] driver_detach+0xa0/0xb0
3526.553185] <ffffffff8136c11a>] bus_remove_driver+0x7a/0xf0
3526.553197] <ffffffff812c8e9e>] pci_unregister_driver+0x3e/0xb0
3526.553213] <ffffffffa002db8b>] sym2_exit+0xd/0x482 [sym53c8xx]
3526.553233] <ffffffff8108f38f>] sys_delete_module+0x16f/0x250
3526.553244] <ffffffff81543e12>] system_call_fastpath+0x16/0x1b
3526.553256] <00007f657708eb27>] 0x7f657708eb26
3526.553260] — end trace 7fc4a35ac72bea48 ]—
3526.553379] sym53c8xx 0000:05:06.0: PCI INT A disabled
3532.212313] sym53c8xx 0000:05:06.0: PCI INT A → GSI 20 (level, low) → IRQ 20
3532.213045] sym0: <810a> rev 0x12 at pci 0000:05:06.0 irq 20
3532.215226] sym0: No NVRAM, ID 7, Fast-10, SE, parity checking
3532.217152] sym0: SCSI BUS has been reset.
3532.221591] scsi12 : sym-2.2.3
3536.694251] scsi 12:0:5:0: Scanner CANON IX-27025E 1.12 PQ: 0 ANSI: 2
3536.694282] scsi target12:0:5: Beginning Domain Validation
3536.708898] scsi target12:0:5: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 8)
3536.716858] scsi target12:0:5: Domain Validation skipping write tests
3536.716868] scsi target12:0:5: Ending Domain Validation
3536.717454] scsi 12:0:5:0: Attached scsi generic sg10 type 6

I have a scanner from the same family and I had a similar problem with the sym53c8xx driver on 11.3 and 11.4, not sure if it was the PCI SCSI card or the software. It just wouldn’t react to any commands. In the end I dug up an old ISA SCSI card to hook the scanner to an old machine running Debian. I only need it to keep working until I have scanned all the slides in.

I don’t think I have anything with ISA ports anymore. If this is a problem with the driver, surely it should not be limited to this scanner but maybe to SCSI scanners?

I think I should have included the lsscsi output:

[0:0:0:0] disk ATA OCZ-VERTEX2 1.29 /dev/sda
[1:0:0:0] disk ATA ST31500341AS CC1H /dev/sdb
[2:0:0:0] disk ATA ST31500341AS CC1H /dev/sdc
[3:0:0:0] disk ATA ST31500341AS CC1H /dev/sdd
[4:0:0:0] disk ATA MAXTOR STM332082 3.AA /dev/sde
[4:0:1:0] disk ATA MAXTOR STM332082 3.AA /dev/sdf
[5:0:0:0] disk ATA ST31500341AS CC1H /dev/sdg
[5:0:1:0] disk ATA ST31500341AS CC1H /dev/sdh
[7:0:0:0] disk ATA FUJITSU MJA2500B 0041 /dev/sdi
[8:0:0:0] disk ATA SAMSUNG HM500JI 2AC1 /dev/sdj
[11:0:0:0] cd/dvd HL-DT-ST DVDRAM GSA-4163B A105 /dev/sr0
[12:0:5:0] scanner CANON IX-27025E 1.12 -

and for sane-find-scanner -v this is the SCSI section:

searching for SCSI scanners:
checking /dev/scanner… open ok
inquiry for device /dev/scanner failed (Device busy)
checking /dev/sg0… failed to open (Invalid argument)
checking /dev/sg1… failed to open (Invalid argument)
checking /dev/sg2… failed to open (Invalid argument)
checking /dev/sg3… failed to open (Invalid argument)
checking /dev/sg4… failed to open (Invalid argument)
checking /dev/sg5… failed to open (Invalid argument)
checking /dev/sg6… failed to open (Invalid argument)
checking /dev/sg7… failed to open (Invalid argument)
checking /dev/sg8… failed to open (Invalid argument)
checking /dev/sg9… failed to open (Invalid argument)
checking /dev/sga… failed to open (Invalid argument)
checking /dev/sgb… failed to open (Invalid argument)
checking /dev/sgc… failed to open (Invalid argument)
checking /dev/sgd… failed to open (Invalid argument)
checking /dev/sge… failed to open (Invalid argument)
checking /dev/sgf… failed to open (Invalid argument)
checking /dev/sgg… failed to open (Invalid argument)
checking /dev/sgh… failed to open (Invalid argument)
checking /dev/sgi… failed to open (Invalid argument)
checking /dev/sgj… failed to open (Invalid argument)
checking /dev/sgk… failed to open (Invalid argument)
checking /dev/sgl… failed to open (Invalid argument)
checking /dev/sgm… failed to open (Invalid argument)
checking /dev/sgn… failed to open (Invalid argument)
checking /dev/sgo… failed to open (Invalid argument)
checking /dev/sgp… failed to open (Invalid argument)
checking /dev/sgq… failed to open (Invalid argument)
checking /dev/sgr… failed to open (Invalid argument)
checking /dev/sgs… failed to open (Invalid argument)
checking /dev/sgt… failed to open (Invalid argument)
checking /dev/sgu… failed to open (Invalid argument)
checking /dev/sgv… failed to open (Invalid argument)
checking /dev/sgw… failed to open (Invalid argument)
checking /dev/sgx… failed to open (Invalid argument)
checking /dev/sgy… failed to open (Invalid argument)
checking /dev/sgz… failed to open (Invalid argument)

No SCSI scanners found. If you expected something different, make sure that

you have loaded a kernel SCSI driver for your SCSI adapter.

push to see if someone has an answer

On 12/18/2011 09:16 AM, pjakobs wrote:
> after upgrading to 12.1, I can no longer use my Canon 2710s slide
> scanner. It’s been difficult to operate at the best of times, but now it
> isn’t even detected by sane-find-scanner anymore despite the fact that
> it’s listed by lsscsi.
>
> I’ve included the dmesg output of rmmod sym53c8xx and modprobe
> sym53c8xx, maybe it helps.
>
> 3526.550641] ------------ cut here ]------------
> 3526.550691] WARNING: at
> /home/abuild/rpmbuild/BUILD/kernel-default-3.1.0/linux-3.1/arch/x86/include/asm/dma-mapping.h:147
> ___free_dma_mem_cluster+0xe3/0xf0 sym53c8xx

That is a kernel bug. The warning is for freeing DMA memory with the interrupts
in the wrong state.

You shoul put the dmesg output in a mail message and send it to Matthew Wilcox
<matthew@wil.cx>, linux-scsi@vger.kernel.org, and linux-kernel@vger.kernel.org.
I did not see any patches since 3.1 that addressed this issue, but the experts
will know. If not already fixed, they should be able to help.