From: Gabriele Tozzi Subject: Possible BUG in Linux's Promise TX4 drivers Date: Thu, 21 Jun 2007 04:38:01 +0200 Message-ID: <4679E489.2020205@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from vsmtp2.tin.it ([212.216.176.222]:59830 "EHLO vsmtp2.tin.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbXFUCkA (ORCPT ); Wed, 20 Jun 2007 22:40:00 -0400 Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: jgarzik@pobox.com Cc: linux-ide@vger.kernel.org Hello, I got a Promise TX4 SATA 300 Controller with 3 SAMSUNG HD400LJ SATA 300 disks (sdc, sdd, sde), the disks runs under a software raid5 with Luks (Cryptography layer) and Lvm2. The disks works well and there is no data loss, but i'm continuously and always getting worrisome error messages and poor performance (with brief system jams) when i perform writing operations to disks. Reading data works well and seems to give no error messages. I've checked cables and power supply and i've tryied swapping controller's pci slot and playing with bios irq setting. None of them changed the results, so i'm assuming the presence of a kernel bug. I'm sorry if i'm getting wrong and then wasting your time. My kernel version: Linux version 2.6.21.5 (root@transylvania) (gcc version 4.1.3 20070601 (prerelease) (Debian 4.1.2-12)) #1 SMP Fri Jun 15 20:25:41 CEST 2007 This presumed bug was present on linux 2.60.20.7 too. On kernel 2.6.18.1 the bug was present, but with different error messages, the messages were identical to those reported by another user on this mail: http://lkml.org/lkml/2006/10/25/198 I got an Asus CUV4X-D motherboard with two PIII 800Mhz CPUS, this is my home server :) Here is an example of the given error messages: ************************************************** Jun 20 14:02:54 localhost kernel: ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:02:54 localhost kernel: ata4.00: cmd 25/00:40:7f:01:46/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 32768 in Jun 20 14:02:54 localhost kernel: res 50/00:00:be:01:46/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:02:54 localhost kernel: ata4.00: configured for UDMA/100 Jun 20 14:02:54 localhost kernel: SCSI device sde: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:02:54 localhost kernel: sde: Write Protect is off Jun 20 14:02:54 localhost kernel: sde: Mode Sense: 00 3a 00 00 Jun 20 14:02:54 localhost kernel: SCSI device sde: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 20 14:03:22 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:03:22 localhost kernel: ata1.00: cmd 25/00:60:c7:38:46/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 49152 in Jun 20 14:03:22 localhost kernel: res 50/00:00:26:39:46/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:03:22 localhost kernel: ata1.00: configured for UDMA/100 Jun 20 14:03:22 localhost kernel: SCSI device sdc: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:03:22 localhost kernel: sdc: Write Protect is off Jun 20 14:03:22 localhost kernel: sdc: Mode Sense: 00 3a 00 00 Jun 20 14:03:22 localhost kernel: SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 20 14:03:42 localhost kernel: ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:03:42 localhost kernel: ata4.00: cmd 25/00:10:af:b2:46/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 8192 in Jun 20 14:03:42 localhost kernel: res 50/00:00:be:b2:46/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:03:42 localhost kernel: ata4.00: configured for UDMA/100 Jun 20 14:03:42 localhost kernel: SCSI device sde: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:03:42 localhost kernel: sde: Write Protect is off Jun 20 14:03:42 localhost kernel: sde: Mode Sense: 00 3a 00 00 Jun 20 14:03:42 localhost kernel: SCSI device sde: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 20 14:04:03 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:04:03 localhost kernel: ata1.00: cmd 25/00:08:4f:dd:45/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 4096 in Jun 20 14:04:03 localhost kernel: res 50/00:00:56:dd:45/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:04:04 localhost kernel: ata1.00: configured for UDMA/100 Jun 20 14:04:04 localhost kernel: SCSI device sdc: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:04:04 localhost kernel: sdc: Write Protect is off Jun 20 14:04:04 localhost kernel: sdc: Mode Sense: 00 3a 00 00 Jun 20 14:04:04 localhost kernel: SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 20 14:05:28 localhost kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:05:28 localhost kernel: ata2.00: cmd 25/00:08:e7:5a:47/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 4096 in Jun 20 14:05:28 localhost kernel: res 50/00:00:ee:5a:47/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:05:28 localhost kernel: ata2.00: configured for UDMA/133 Jun 20 14:05:28 localhost kernel: SCSI device sdd: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:05:28 localhost kernel: sdd: Write Protect is off Jun 20 14:05:28 localhost kernel: sdd: Mode Sense: 00 3a 00 00 Jun 20 14:05:28 localhost kernel: SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 20 14:06:59 localhost kernel: ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 20 14:06:59 localhost kernel: ata4.00: cmd 25/00:58:e7:dd:48/00:00:2d:00:00/e0 tag 0 cdb 0x0 data 45056 in Jun 20 14:06:59 localhost kernel: res 50/00:00:3e:de:48/00:00:2d:00:00/e0 Emask 0x1 (device error) Jun 20 14:06:59 localhost kernel: ata4.00: configured for UDMA/100 Jun 20 14:06:59 localhost kernel: SCSI device sde: 781422768 512-byte hdwr sectors (400088 MB) Jun 20 14:06:59 localhost kernel: sde: Write Protect is off Jun 20 14:06:59 localhost kernel: sde: Mode Sense: 00 3a 00 00 Jun 20 14:06:59 localhost kernel: SCSI device sde: write cache: enabled, read cache: enabled, doesn't support DPO or FUA ************************************************** Here is my lspci output (with controller information): ************************************************** transylvania:~# lspci -vvv 00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev c4) Subsystem: ASUSTeK Computer Inc. Unknown device 8038 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40) Subsystem: ASUSTeK Computer Inc. Unknown device 8038 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=220mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Bridge: PM- B3+ 00:0d.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30) Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR-