From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [CALL-FOR-HELP] pata_ali: can't get MWDMA working! Date: Thu, 10 Jan 2008 10:44:01 +0900 Message-ID: <47857861.9010909@gmail.com> References: <4784FBC1.7070804@gmail.com> <20080109171635.27d625f0@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000507010208070802070302" Return-path: Received: from ro-out-1112.google.com ([72.14.202.176]:9850 "EHLO ro-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754465AbYAJBoJ (ORCPT ); Wed, 9 Jan 2008 20:44:09 -0500 Received: by ro-out-1112.google.com with SMTP id p4so550964roc.5 for ; Wed, 09 Jan 2008 17:44:08 -0800 (PST) In-Reply-To: <20080109171635.27d625f0@lxorguk.ukuu.org.uk> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Alan Cox Cc: Jeff Garzik , Mark Lord , IDE/ATA development list , andre@linux-ide.org, Bartlomiej Zolnierkiewicz This is a multi-part message in MIME format. --------------000507010208070802070302 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Alan Cox wrote: >> trying to fix it for some time now && finally got a machine with >> pata_ali and non-working MWDMA2 ATAPI device on my desk a few weeks ago. > > Oh good. I've been through a pile of ones that just work. > > Which North and south does it have and what revision ? Attached full output of 'lspci -nnvvvxxx' just in case. >> Then, I made libata probing sequence very close to IDE such that no >> reset is performed and NIEN isn't tempered with. No go. > > Ditto, and removing the taskfile writing optimisations Yeah, I did that too. I also converted pata_ali to use 32bit PIO for CDB transfer. :-/ >> So, I'm out of ideas at this point. Any suggestions? Ideas? > > Short of doing a printk of each access to the PCI and I/O space and > comparing them no. I ran out of ideas as well. I guess some kind of weird > chance alignment bug but who knows, and the docs I have don't explain it. The problem is not on the PCI bus as the harddisk works just fine. The drive too works fine if connected to ata_piix. I'm thinking of ordering a slim UDMA capable combo drive and see whether UDMA works; then, we can tell whether the controller doesn't like ATAPI command sequence used by libata (I made it behave the same way as IDE, but still...). Thanks. -- tejun --------------000507010208070802070302 Content-Type: text/plain; name="lspci.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lspci.out" 00:00.0 Host bridge [Class 0600]: ATI Technologies Inc AGP Bridge [IGP 320M] [1002:cab0] (rev 13) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00: 02 10 b0 ca 06 00 30 22 13 00 00 06 00 20 00 00 10: 08 00 00 d4 08 00 40 d0 91 80 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 a0 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 0b 03 00 00 00 00 00 00 04 0d 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: bd 0c a2 85 24 36 e2 56 00 00 00 00 00 01 06 c1 70: e0 0d 20 30 84 84 84 84 00 00 00 00 00 00 00 00 80: 00 00 00 00 96 10 83 00 33 00 30 00 13 00 00 00 90: 00 00 00 00 1f 1f 05 00 00 00 e4 7f 80 00 00 00 a0: 02 00 20 00 17 02 00 0f 00 00 00 00 03 00 00 00 b0: 00 00 00 00 08 00 00 00 05 00 04 04 00 00 00 00 c0: 00 00 00 ff 5a 15 05 0f 00 1c ff 1f 00 00 84 00 d0: eb 7b 0f 00 eb 7b 4f 00 6a 00 60 10 00 00 00 ff e0: 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 00 ff f0: 1f 00 09 00 00 00 00 ff 00 10 10 18 00 00 00 00 00:01.0 PCI bridge [Class 0604]: ATI Technologies Inc PCI Bridge [IGP 320M] [1002:700f] (rev 01) (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- 00: 02 10 0f 70 07 00 20 02 01 00 04 06 00 63 01 00 10: 00 00 00 00 00 00 00 00 00 01 01 44 91 91 20 22 20: 10 d0 10 d0 00 e0 f0 ef 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 ff 00 0c 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00:02.0 USB Controller [Class 0c03]: ALi Corporation USB 1.1 Controller [10b9:5237] (rev 03) (prog-if 10 [OHCI]) Subsystem: Hewlett-Packard Company Pavilion ze4400 builtin USB [103c:0024] 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- Reset- 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001 00: 17 12 33 69 87 00 10 04 01 00 07 06 00 a8 82 00 10: 00 00 01 30 a0 00 00 02 00 02 05 b0 00 00 00 20 20: 00 f0 ff 23 00 00 00 24 00 f0 ff 27 01 10 00 00 30: fd 10 00 00 01 14 00 00 fd 14 00 00 0a 01 80 05 40: 33 69 02 00 01 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 a0 00 08 ea 03 42 82 00 00 50 20 00 00 00 00 a0: 01 00 02 fe 00 40 c0 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00:0a.1 CardBus bridge [Class 0607]: O2 Micro, Inc. OZ6933/711E1 CardBus/SmartCardBus Controller [1217:6933] (rev 01) Subsystem: Unknown device [6933:0002] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- SERR- Reset- 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001 00: 17 12 33 69 87 00 10 04 01 00 07 06 00 a8 82 00 10: 00 10 01 30 a0 00 00 02 00 06 09 b0 00 00 00 28 20: 00 f0 ff 2b 00 00 00 2c 00 f0 ff 2f 01 18 00 00 30: fd 18 00 00 01 1c 00 00 fd 1c 00 00 0a 02 80 05 40: 33 69 02 00 01 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 a0 00 08 ea 03 42 82 00 00 50 20 00 00 00 00 a0: 01 00 02 fe 00 40 c0 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00:0c.0 FireWire (IEEE 1394) [Class 0c00]: Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link) [104c:8026] (prog-if 10 [OHCI]) Subsystem: Hewlett-Packard Company Unknown device [103c:0024] 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- Capabilities: [50] 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: 02 10 36 43 87 02 b0 02 00 00 00 03 10 42 00 00 10: 08 00 00 e0 01 90 00 00 00 00 10 d0 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 3c 10 24 00 30: 00 00 00 00 58 00 00 00 00 00 00 00 0a 01 08 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 3c 10 24 00 50: 01 00 02 06 00 00 00 00 02 50 20 00 07 02 00 2f 60: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 --------------000507010208070802070302--