Re: how to limit number of sectors each time

From: gshan
Date: Thu Oct 16 2008 - 02:29:30 EST



I'm using IDE driver instead of HD driver.
I dumped out IO registers and PRD table. Note that
maxinum allowed sector number has been decreased
from 256 to 32.

hdc: dma_timer_expiry: dma status == 0x21
========IDE Register DUmp========
DMA start sector: 0x007d5fb5
DMA sectors : 0x0020
Data Reg : 0x00
Error Reg : 0x00
Nsector Reg : 0x19
Sector Reg : 0xbc
LCYL Reg : 0x5f
HCYL Reg : 0x7d
Select Reg : 0xe0
Status Reg : 0x58
Control Reg : 0x58
IRQ Reg : 0x58
======Physical Region Descriptor=======
Base_PRD: 0x0189f000 Current_PRD: 0x0189f008 Entries:3
index=0 base=0x00204d1c lengh=0x00100000
index=1 base=0x00604c1c lengh=0x00200000
index=2 base=0x00304d1c lengh=0x00100080

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/