[Kernel-packages] [Bug 713487] Re: ExpressCard compact flash card DMA setting is wrong
After a little more digging, I came across the original reporter's correspondence on the linux-ide mailing list which determined because the adapter appears as a generic JMicron PCIe to PATA controller, it couldn't be reliably whitelisted without affecting other devices with the same controller. For reference, the workaround is to use module parameter libata.force=80c. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/713487 Title: ExpressCard compact flash card DMA setting is wrong Status in linux package in Ubuntu: Confirmed Bug description: I'm using Natty alpha 2 with the latest updates, running on a Lenovo T400s. When using a Lexar ExpressCard CompactFlash (CF) reader in the ExpressCard slot, the speed of this high speed device is very slow because the wrong settings are being used by the kernel. This is the product: http://www.lexar.com/products/lexar-professional- expresscard-compactflash-cf-reader?category=213 Some relevant dmesg output: [1.308314] udev[74]: starting version 165 [1.355564] pata_jmicron :05:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [1.355610] pata_jmicron :05:00.0: setting latency timer to 64 [1.362895] scsi0 : pata_jmicron [1.366095] scsi1 : pata_jmicron [1.366145] ata1: PATA max UDMA/100 cmd 0x4020 ctl 0x4014 bmdma 0x4000 irq 19 [1.366148] ata2: PATA max UDMA/100 cmd 0x4018 ctl 0x4010 bmdma 0x4008 irq 19 [1.382061] e1000e: Intel(R) PRO/1000 Network Driver - 1.2.20-k2 [1.382063] e1000e: Copyright(c) 1999 - 2011 Intel Corporation. [1.382095] e1000e :00:19.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 [1.382106] e1000e :00:19.0: setting latency timer to 64 [1.382248] e1000e :00:19.0: irq 43 for MSI/MSI-X [1.560701] ata1.00: CFA: TRANSCEND, 20091215, max UDMA/133 [1.560704] ata1.00: 125059072 sectors, multi 0: LBA [1.560707] ata1.00: limited to UDMA/33 due to 40-wire cable [1.580098] usb 1-6: new high speed USB device using ehci_hcd and address 3 [1.600683] ata1.00: configured for UDMA/33 [1.600837] scsi 0:0:0:0: Direct-Access ATA TRANSCEND2009 PQ: 0 ANSI: 5 [1.600983] sd 0:0:0:0: Attached scsi generic sg0 type 0 [1.601000] sd 0:0:0:0: [sda] 125059072 512-byte logical blocks: (64.0 GB/59.6 GiB) [1.601047] sd 0:0:0:0: [sda] Write Protect is off [1.601049] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [1.601076] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [1.602198] sda: sda1 [1.602554] sd 0:0:0:0: [sda] Attached SCSI disk "limited to UDMA/33 due to 40-wire cable" is obviously a key point here. Relevant output from sudo lspci -vv: 05:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller (prog-if 85 [Master SecO PriO]) Subsystem: JMicron Technology Corp. JMB368 IDE controller Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 10Mbs } RawCHS=16383/15/63, TrkSize=0, SectSize=576, ECCbytes=4 BuffType=DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off CurCHS=65535/15/63, CurSects=61930575, LBA=yes, LBAsects=125059072 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma6 AdvancedPM=yes: disabled (255) WriteCache=disabled * signifies the current active mode hdparm cannot set a higher speed mode: $ sudo hdparm -X udma5 /dev/sda /dev/sda: setting xfermode to 69 (UltraDMA mode5) SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: linux-image-2.6.38-1-generic 2.6.38-1.28 Regression: No Reproducible: Yes ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2 Uname: Linux 2.6.38-1-generic x86_64 AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23. AplayDevices: List of PLAYBACK Hardware Devices card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 Architecture: amd64 ArecordDevices: List of CAPTURE Hardware Devices card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC0: damon 1362 F pulseaudio CRDA: Error: [Errno 2] No such file or directory Card0.Amixer.info: Card hw:0 'Intel'/'HDA Intel at 0xf282 irq 45' Mixer name : 'Conexant CX20585'
[Kernel-packages] [Bug 713487] Re: ExpressCard compact flash card DMA setting is wrong
I have the same Lexar Expresscard CompactFlash reader, and encountered this issue is still present in Ubuntu 17.10, even when using mainline kernel (4.14.2). ** Changed in: linux (Ubuntu) Status: Expired => Confirmed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/713487 Title: ExpressCard compact flash card DMA setting is wrong Status in linux package in Ubuntu: Confirmed Bug description: I'm using Natty alpha 2 with the latest updates, running on a Lenovo T400s. When using a Lexar ExpressCard CompactFlash (CF) reader in the ExpressCard slot, the speed of this high speed device is very slow because the wrong settings are being used by the kernel. This is the product: http://www.lexar.com/products/lexar-professional- expresscard-compactflash-cf-reader?category=213 Some relevant dmesg output: [1.308314] udev[74]: starting version 165 [1.355564] pata_jmicron :05:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 [1.355610] pata_jmicron :05:00.0: setting latency timer to 64 [1.362895] scsi0 : pata_jmicron [1.366095] scsi1 : pata_jmicron [1.366145] ata1: PATA max UDMA/100 cmd 0x4020 ctl 0x4014 bmdma 0x4000 irq 19 [1.366148] ata2: PATA max UDMA/100 cmd 0x4018 ctl 0x4010 bmdma 0x4008 irq 19 [1.382061] e1000e: Intel(R) PRO/1000 Network Driver - 1.2.20-k2 [1.382063] e1000e: Copyright(c) 1999 - 2011 Intel Corporation. [1.382095] e1000e :00:19.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 [1.382106] e1000e :00:19.0: setting latency timer to 64 [1.382248] e1000e :00:19.0: irq 43 for MSI/MSI-X [1.560701] ata1.00: CFA: TRANSCEND, 20091215, max UDMA/133 [1.560704] ata1.00: 125059072 sectors, multi 0: LBA [1.560707] ata1.00: limited to UDMA/33 due to 40-wire cable [1.580098] usb 1-6: new high speed USB device using ehci_hcd and address 3 [1.600683] ata1.00: configured for UDMA/33 [1.600837] scsi 0:0:0:0: Direct-Access ATA TRANSCEND2009 PQ: 0 ANSI: 5 [1.600983] sd 0:0:0:0: Attached scsi generic sg0 type 0 [1.601000] sd 0:0:0:0: [sda] 125059072 512-byte logical blocks: (64.0 GB/59.6 GiB) [1.601047] sd 0:0:0:0: [sda] Write Protect is off [1.601049] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [1.601076] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [1.602198] sda: sda1 [1.602554] sd 0:0:0:0: [sda] Attached SCSI disk "limited to UDMA/33 due to 40-wire cable" is obviously a key point here. Relevant output from sudo lspci -vv: 05:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller (prog-if 85 [Master SecO PriO]) Subsystem: JMicron Technology Corp. JMB368 IDE controller Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 10Mbs } RawCHS=16383/15/63, TrkSize=0, SectSize=576, ECCbytes=4 BuffType=DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off CurCHS=65535/15/63, CurSects=61930575, LBA=yes, LBAsects=125059072 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma6 AdvancedPM=yes: disabled (255) WriteCache=disabled * signifies the current active mode hdparm cannot set a higher speed mode: $ sudo hdparm -X udma5 /dev/sda /dev/sda: setting xfermode to 69 (UltraDMA mode5) SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: linux-image-2.6.38-1-generic 2.6.38-1.28 Regression: No Reproducible: Yes ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2 Uname: Linux 2.6.38-1-generic x86_64 AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23. AplayDevices: List of PLAYBACK Hardware Devices card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 Architecture: amd64 ArecordDevices: List of CAPTURE Hardware Devices card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC0: damon 1362 F pulseaudio CRDA: Error: [Errno 2] No such file or directory Card0.Amixer.info: Card hw:0 'Intel'/'HDA Intel at 0xf282 irq 45' Mixer name : 'Conexant CX20585' Components : 'HDA:14f15069,17aa2132,00100302' Controls : 8 Simple ctrls : 5 Card29.Amixer.info: Card hw:29
[Kernel-packages] [Bug 1366538] Re: Synchronisation/close /dev/sdX: i/o error on target host
I have used this workaround for a LaCie DVD RW (being used as a USB hard drive adapter): 059f:0363 (I obtain the usb id for my particular enclosure using `lsusb`). - For temporarily adding the quirks, I stop the kernel module: `modprobe -r usb-storage` (I may also need to stop dependent kernel modules, e.g. `modprobe -r uas` beforehand), and then restart with quirks: `modprobe usb-storage quirks=059f:0363:uw`. - For permanently adding the quirks, I followed the suggest in #34 where I use e.g. `sudo sh -c 'echo "options usb-storage quirks=059f:0363:uw" > /etc/modprobe.d/lacie-quirks.conf'`. Replace 059f:0363 with usb id for your enclosure, and maybe call it "maxtor- quirks.conf" if that's what you have. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1366538 Title: Synchronisation/close /dev/sdX: i/o error on target host Status in linux package in Ubuntu: Triaged Status in linux source package in Trusty: Triaged Status in linux source package in Utopic: Triaged Status in linux source package in Vivid: Triaged Bug description: Ubuntu 14.04.1 x86-64 wanting to unmout a pata drive (usb attached), I get this (title) "Warning from libparted" when gparted launches. Same issue with another pc x86-64 Errors retries then ignore, shred /dev/sdi fails: shred: /dev/sdi : pass 1/2 (random)… shred: /dev/sdi : pass 1/2 (random)…231MiB/94GiB 0 % shred: /dev/sdi : failure of fdatasync: i/o error on target host I reached to shred the drive from a 12.04.4 i386 pc with no error. Sep 7 15:07:08 nux kernel: [261448.072475] usb 5-1: new high-speed USB device number 10 using xhci_hcd Sep 7 15:07:09 nux kernel: [261448.202999] usb 5-1: New USB device found, idVendor=04cf, idProduct=8818 Sep 7 15:07:09 nux kernel: [261448.203008] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Sep 7 15:07:09 nux kernel: [261448.203013] usb 5-1: Product: USB Mass Storage Device Sep 7 15:07:09 nux kernel: [261448.203018] usb 5-1: Manufacturer: Myson Century, Inc. Sep 7 15:07:09 nux kernel: [261448.205463] usb-storage 5-1:1.0: USB Mass Storage device detected Sep 7 15:07:09 nux kernel: [261448.205673] scsi20 : usb-storage 5-1:1.0 Sep 7 15:07:10 nux kernel: [261449.206849] scsi 20:0:0:0: Direct-Access HTS72101 0G9AT00 MCZO PQ: 0 ANSI: 0 CCS Sep 7 15:07:10 nux kernel: [261449.207763] sd 20:0:0:0: Attached scsi generic sg7 type 0 Sep 7 15:07:10 nux kernel: [261449.207901] sd 20:0:0:0: [sdi] 195371568 512-byte logical blocks: (100 GB/93.1 GiB) Sep 7 15:07:10 nux kernel: [261449.208068] sd 20:0:0:0: [sdi] Write Protect is off Sep 7 15:07:10 nux kernel: [261449.208074] sd 20:0:0:0: [sdi] Mode Sense: 00 14 00 00 Sep 7 15:07:10 nux kernel: [261449.208280] sd 20:0:0:0: [sdi] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Sep 7 15:07:10 nux kernel: [261449.555232] sdi: unknown partition table Sep 7 15:07:10 nux kernel: [261449.555926] sd 20:0:0:0: [sdi] Attached SCSI disk Sep 7 15:07:43 nux kernel: [261482.219026] end_request: critical target error, dev sdi, sector 0 Sep 7 15:07:52 nux kernel: [261492.015180] end_request: critical target error, dev sdi, sector 0 Sep 7 15:07:55 nux kernel: [261494.261159] end_request: critical target error, dev sdi, sector 0 Sep 7 15:16:23 nux kernel: [262003.027005] end_request: critical target error, dev sdi, sector 0 Sep 7 15:16:35 nux kernel: [262014.215352] end_request: critical target error, dev sdi, sector 0 Sep 7 15:16:35 nux kernel: [262014.859651] end_request: critical target error, dev sdi, sector 0 [EDIT: Once shreded, no error on the i386, but still same error on the 2 x86-64] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1366538/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp