dma timer expires
Hi,
We are using the MIPS custom board based
on RM5231A MIPS
processor and IT8172 companion chip. The
kernel version we are using is
2.4.25.
When we connect the maxtor hard disk we
are able to do continuous data
access, as in playing a movie. But when
we connect a samsung or seagate
drive we get the dma timer expiry error
with the dma staus reg value =0x61 when the partition check is made
initially.
Another observation is that the
multicount value when we boot the Maxtor
is 16 (i guess this is default value)
where us when we use samsung or
seagate drives it is set to 0.
I have also attached the log below.
Can you please tell me the reason why
the dma is timing out?
regards
priya
--
Such is oft the course of deeds that
move the wheels of the world: small
hands do them because they must, while
the eyes of the great are elsewhere.
--Elrond
Download succeeded: total 0x23e494 bytes, entry 0x802f8040 PMON> g
ITE board running...timer_setup
0x00000080
memsize unknown: setting to 32MB
Memory size: 32MB
setting the MC and SDTYPE ...- priyaCPU revision is: 00002831
FPU revision is: 00002830
Primary instruction cache 32kB, physically tagged, 2-way, linesize 32 bytes. Primary data cache 32kB 2-way, linesize 32 bytes.
Linux version 2.4.25 (root@rdvd2) (gcc version 3.2.3) #330 Tue Jul 12 18:43:24 IST 2005
priya - search 8712 - Id1 - 0x87
priya - search 8712 - Id2 - 0x12Found IT8712 Super IO
*** priya mips base - 0xa0000000***
*** priya printing the global config register start***
index all - 0x7 - 0x1
index all - 0x20 - 0xffffff87
index all - 0x21 - 0x12
index all - 0x22 - 0x4
index all - 0x23 - 0x0
index all - 0x24 - 0x0
index 0x7 - 0x25 - 0x0
index 0x7 - 0x26 - 0x0
index 0x7 - 0x27 - 0x0
index 0x7 - 0x28 - 0x0
index 0x7 - 0x29 - 0x0
index 0x7 - 0x2a - 0x0
index all - 0x2b - 0x0
index 0x7 - 0x2c - 0x0
index 0xf4 - 0x2e - 0x0
index 0xf4 - 0x2f - 0x0
*** priya printing the global config register end
***
*** priya printing the parllel port register
*** priya printing the parllel port register over ....Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1 console=ttyS0,115200n8 noinitrd ip=bootp calculating r4koff... 001e6ffa(1994746)
CPU frequency 398.95 MHz
Using 199.475 MHz high precision timer.
Console: colour dummy device 80x25
Calibrating delay loop... 398.13 BogoMIPS
Memory: 28888k/32768k available (2003k kernel code, 3880k reserved, 124k data, 160k init, 0k highmem) Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... available.
POSIX conformance testing by UNIFIX
Autoconfig PCI channel 0x80340984
Scanning bus 00, I/O 0x14018000:0x18000000, Mem 0x10101000:0x14000000
00:10.0 Class 0200: 10ec:8139 (rev 10)
I/O at 0x14018000 [size=0x100]
Mem at 0x10101000 [size=0x100]
00:12.0 Class 0480: 1939:1000 (rev 01)
I/O at 0x14018100 [size=0x40]
Mem at 0x10101100 [size=0x40]
Mem at 0x10110000 [size=0x10000]Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch ([email protected])
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1initialize_kbd: Keyboard reset failed, no ACK
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
keyboard: Timeout - AT keyboard not present?(ed)
keyboard: Timeout - AT keyboard not present?(f4)
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x14011800 (irq = 23) is a 16550A
ttyS01 at 0x140003f8 (irq = 4) is a 16550A
ttyS02 at 0x140002f8 (irq = 5) is a 16550A
ttyS03 at 0x14012000 (irq = 24) is a 16550A
ttyS04 at 0x14012800 (irq = 25) is a 16550A
kmod: failed to exec /sbin/modprobe -s -k parport_lowlevel, errno = 2
priya lp_count - 0<6>lp: driver loaded but no devices found
rtc: I/O resource 70 is not free.
Generic MIPS RTC Driver v1.0
loop: loaded (max 8 devices)
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17) 8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 at 0xb0101000, 00:10:12:01:00:83, IRQ 38 Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT8172G: IDE controller at PCI slot 00:01.5
IT8172G: chipset revision 1
IT8172G: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x14017800-0x14017807, BIOS settings: hda:DMA, hdb:DMA
IT8172G: IDE controller at PCI slot 00:01.7
PCI: Unable to reserve I/O region #5:10@14017800 for device 00:01.7
IT8172G: 100% native mode on irq 34
IT8172G: port 0x140179f0 already claimed by ide0
IT8172G: neither IDE port enabled (BIOS)
hda: SAMSUNG MP0302H, ATA DISK drive
blk: queue 80363ff0, I/O limit 4095Mb (mask 0xffffffff)
ide1: ports already in use, skipping probe
ide2: ports already in use, skipping probe
ide3: ports already in use, skipping probe
ide4: ports already in use, skipping probe
ide5: ports already in use, skipping probe
ide0 at 0x140179f0-0x140179f7,0x14017bf6 on irq 34
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 58711968 sectors (30061 MB) w/8192KiB Cache, CHS=3654/255/63, UDMA(33) Partition check:
/dev/ide/host0/bus0/target0/lun0:<4>hda: dma_timer_expiry: dma status == 0x61
hda: error waiting for DMA
hda: dma timeout retry: status=0x58 { DriveReady SeekComplete DataRequest }
hda: status timeout: status=0xd0 { Busy }
hda: drive not ready for command
ide0: reset: success
p1
IT8172 audio: version v0.5 time 18:41:03 Jul 8 2005
IT8172 audio: IO at 0x14017000, IRQ 32
PCI: Enabling device 00:01.0 (0000 -> 0001)
IT8172 audio: disabling S/PDIF outputac97_codec: AC97 Audio codec, id: ADS72 (Analog Devices AD1881A) physmap flash device: 4000000 at 8000000
CFI: Found no Physically mapped flash device at location zero Search for id:(00 90) interleave(1) type(2)
Search for id:(00 90) interleave(1) type(2)
Search for id:(90 00) interleave(1) type(2)
Search for id:(00 90) interleave(2) type(1)
Search for id:(00 90) interleave(2) type(1)
Search for id:(90 00) interleave(2) type(1)
Search for id:(9090 9090) interleave(2) type(2)
Search for id:(9090 9090) interleave(2) type(2)
Search for id:(9090 9090) interleave(2) type(2)
JEDEC: Found no Physically mapped flash device at location zero
kmod: failed to exec /sbin/modprobe -s -k map_rom, errno = 2 usb.c: registered new driver usbdevfsusb.c: registered new driver hubhost/usb-ohci.c: USB OHCI at membase 0xb0100000, IRQ 35 host/usb-ohci.c: usb-00:01.3, PCI device 1283:1234usb.c: new USB bus registered, assigned bus number 1
Product: USB OHCI Root Hub
SerialNumber: b0100000hub.c: USB hub foundhub.c: 2 ports detectedusb.c: registered new driver hiddevusb.c: registered new driver hidhid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[email protected]> hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Sending BOOTP requests . OK
IP-Config: Got BOOTP answer from 192.168.1.233, my address is 192.168.1.202
IP-Config: Complete:
device=eth0, addr=192.168.1.202, mask=255.255.255.0, gw=192.168.1.5,
host=192.168.1.202, domain=, nis-domain=(none),
bootserver=192.168.1.233, rootserver=192.168.1.233, rootpath=/opt/hardhat-tc/targetNET4: Unix domain sockets 1.0/SMP for Linux NET4.0.