Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685AbYHAIzT (ORCPT ); Fri, 1 Aug 2008 04:55:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752051AbYHAIzG (ORCPT ); Fri, 1 Aug 2008 04:55:06 -0400 Received: from 215.47.DSNET ([211.144.215.47]:45508 "EHLO cnshjsmin03.cn.alcatel-lucent.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751863AbYHAIzE (ORCPT ); Fri, 1 Aug 2008 04:55:04 -0400 X-AuditID: ac189297-ae201bb000003fd3-15-4892dc18187c Message-ID: <4892CF2B.9030309@alcatel-lucent.com> Date: Fri, 01 Aug 2008 16:54:03 +0800 From: gshan User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: Tejun Heo CC: Alan Cox , Jeff Garzik , linux-kernel@vger.kernel.org, Linux IDE mailing list Subject: Re: PIIX4: DMA timeout issue References: <488ED837.2060509@alcatel-lucent.com> <488F1C6C.9000002@garzik.org> <48902EB5.8070102@alcatel-lucent.com> <20080730114934.5a593cf4@lxorguk.ukuu.org.uk> <48913FFD.5070901@alcatel-lucent.com> <4892BEBA.2000602@kernel.org> In-Reply-To: <4892BEBA.2000602@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2008 08:53:53.0627 (UTC) FILETIME=[1FFB12B0:01C8F3B4] X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6315 Lines: 163 >> Alan/Jeff, I tried to install ATA driver on PIIX4. After fixing IRQ number >> to 143 for primary and secondary channel. I got following output and >> it seems the driver has been loaded sucessfully. However, I couldn't >> see any information from /proc/devices. Do you have any ideas? >> > > You need the SCSI disk driver - sd_mod.ko. > > Unfortunately, the timeout issue still happened on ATA driver as IDE. Command (m for help): p Disk /dev/sda: 60.0 GB, 60011642880 bytes 255 heads, 63 sectors/track, 7296 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x4892c004 Device Boot Start End Blocks Id System /dev/sda1 1 17 136521 83 Linux /dev/sda4 18 7296 58468567+ 5 Extended /dev/sda5 18 7296 58468536 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB) sda: Write Protect is off SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda4 < sda5 > Syncing disks. / $ mkfs.ext3 -N 655360 /dev/sda5 mke2fs 1.40 (29-Jun-2007) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 657984 inodes, 14617134 blocks 730856 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 447 block groups 32768 blocks per group, 32768 fragments per group 1472 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. / $ mkdir /aaa / $ ifconfig rep0 192.168.253.27 mv643xx_eth_if_start: register PHY interrupt rep0 port=1 sw=1 swport=2 / $ mount -o nolock 192.168.253.26:/home1 /aaa / $ cd /disk_root/ /disk_root $ ls /disk_root $ cd / / $ mount /dev/sda5 /disk_root/ kjournald starting. Commit interval 5 seconds EXT3 FS on sda5, internal journal EXT3-fs: mounted filesystem with ordered data mode. / $ cd /disk_root/ /disk_root $ tar -zxf /aaa/target_7xx_cge5.2008-07-10.tgz ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/33 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/33 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/33 ata2: EH complete ata2.00: limiting speed to UDMA/25:PIO4 ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/25 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/25 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd 35/00:00:18:ef:28/00:04:01:00:00/e0 tag 0 cdb 0x0 data 524288 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/25 sd 1:0:0:0: SCSI error: return code = 0x08000002 sda: Current [descriptor]: sense key=0xb ASC=0x0 ASCQ=0x0 Descriptor sense data with sense descriptors (in hex): 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 00 00 00 00 end_request: I/O error, dev sda, sector 19459864 Buffer I/O error on device sda5, logical block 2398337 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398338 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398339 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398340 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398341 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398342 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398343 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398344 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398345 lost page write due to I/O error on sda5 Buffer I/O error on device sda5, logical block 2398346 lost page write due to I/O error on sda5 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd ca/00:f8:18:f3:28/00:00:00:00:00/e1 tag 0 cdb 0x0 data 126976 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/25 ata2: EH complete ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata2.00: cmd ca/00:f8:18:f3:28/00:00:00:00:00/e1 tag 0 cdb 0x0 data 126976 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata2: soft resetting port ata2.00: configured for UDMA/25 ata2: EH complete Gavin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/