From: gshan <gshan@alcatel-lucent.com>
To: Tejun Heo <tj@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Jeff Garzik <jeff@garzik.org>,
Linux IDE mailing list <linux-ide@vger.kernel.org>
Subject: Re: PIIX4: DMA timeout issue
Date: Fri, 24 Oct 2008 14:09:42 +0800 [thread overview]
Message-ID: <490166A6.3070203@alcatel-lucent.com> (raw)
In-Reply-To: <4892BEBA.2000602@kernel.org>
Hi Alan & Jeff,
I have being struggled for this issue for long time, but have no ideas
finally. So
I have to write mail to you for suggestions again. Thanks in advance for
your
reply since you're busy.
I'm using IDE driver instead of ATA driver for my PIIX4 IDE controller.
The experiment
is: 1)mount local directory (/aaa on ramdisk) to remote server via NFS;
2)copy a big
file (about 600MB) from remote server to local disk, finally DMA timeout
happened.
When DMA timeout happened, I have dumped out PRD table as follows, it seems
the PRD table doesn't have any problem. Note that pls swap bytes for PRD
entries
(from big endian to little endian).
SP(27-A) $ mount /dev/hda1 /disk_root/
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SP(27-A) $ cd /disk_root/
SP(27-A) $ cp /aaa/Gavin/sp3m/target_7xx_cge5.2008-07-10.tgz ./
hda: dma_timer_expiry: dma status == 0x21
========IDE Register DUmp========
DMA start sector: 0x00169657
DMA sectors : 0x0100
Data Reg : 0x06
Error Reg : 0x00
Nsector Reg : 0xd5
Sector Reg : 0x82
LCYL Reg : 0x96
HCYL Reg : 0x16
Select Reg : 0xe0
Status Reg : 0x5a
Control Reg : 0x58
IRQ Reg : 0xff
======Physical Region Descriptor=======
Base_PRD: 0x0fec5000 Current_PRD: 0x0fec5018 Entries:7
index=0 base=0x00d0661c lengh=0x00300000
index=1 base=0x0000671c lengh=0x00200000
index=2 base=0x0000691c lengh=0x00800000
index=3 base=0x0080691c lengh=0x00800000
index=4 base=0x00006a1c lengh=0x00300000
index=5 base=0x0040e21d lengh=0x00100000
index=6 base=0x00306a1c lengh=0x00700080
If possible, could you tell me how IDE complete DMA transfer on PCI bus?
Thanks,
Gavin
prev parent reply other threads:[~2008-10-24 6:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <488ED837.2060509@alcatel-lucent.com>
2008-07-29 13:34 ` PIIX4: DMA timeout issue Jeff Garzik
[not found] ` <200807291713.29580.bzolnier@gmail.com>
2008-07-30 0:57 ` gshan
2008-07-30 19:43 ` Bartlomiej Zolnierkiewicz
2008-07-31 1:00 ` gshan
2008-07-30 0:58 ` gshan
2008-07-30 9:04 ` gshan
2008-07-30 10:49 ` Alan Cox
2008-07-31 4:30 ` gshan
2008-08-01 7:43 ` Tejun Heo
2008-08-01 8:38 ` gshan
2008-08-01 8:54 ` gshan
2008-08-03 14:10 ` Gavin Shan
2008-08-05 3:41 ` gshan
2008-10-24 6:09 ` gshan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=490166A6.3070203@alcatel-lucent.com \
--to=gshan@alcatel-lucent.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).