mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* AMD 760MPX DMA lockup
@ 2002-09-12 14:12 Jan Kasprzak
  2002-09-12 15:07 ` kernel
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jan Kasprzak @ 2002-09-12 14:12 UTC (permalink / raw)
  To: linux-kernel

	Hello, kernel hackers,

my dual athlon box is unstable in some situations. I can consistently
lock it up by running the following code:

fd = open("/dev/hda3", O_RDWR);
for (i=0; i<1024*1024; i++) {
	read(fd, buffer, 8192);
	lseek(fd, -8192, SEEK_CUR);
	write(fd, buffer, 8192);
}

It locks up in a minute or so (solid lock up, it does not react even
to a NumLock key or console switching). It can surely be a HW problem
(this is a new box), but how to tell whether this is the case?

The mainboard is MSI K7D Master, AMD 760MPX chipset, 460W power supply,
1GB RAM.

The box survived whole night of memtest86 and the whole night of three kernel
compiles running in parallel in an infinite loop.

This problem is on many recent kernels (tried 2.4.18-11 from RedHat "null",
2.4.20-pre5-ac1, 2.4.20-pre5-ac5, 2.4.20-pre6). It does not matter whether
I compile the kernel SMP or UP, with or without CONFIG_HIGHMEM.

I tried several disks (WD1200JB, WD1200BB, IBM 120GXP).
I tried to remove all other PCI cards and 512MB of RAM. No change.
I tried to create an ext3 filesystem on /dev/hda3, mounted it 
as /mnt, created big file /mnt/bigfile and run the above code
on /mnt/bigfile. System still locks up.

I tried to put the tested disk to a separate IDE controller
(Promise PDC20269 PCI card) - then I do not get a complete lockup,
just the drive starts to complain about the DMA timeout, and the kernel
reesets the controller. However, DMA timeouts start to occur even on
the primary controller.

When I switch off the DMA (hdparm -d0 /dev/hda), the problem goes away
(however, the disk is very slow, as expected).

Is anybody able to run the above code on AMD 760MPX-based system?
Is it a kernel problem or hardware problem?

	Thanks in advance,

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|----------- If you want the holes in your knowledge showing up -----------|
|----------- try teaching someone.                  -- Alan Cox -----------|

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-09-13 11:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12 14:12 AMD 760MPX DMA lockup Jan Kasprzak
2002-09-12 15:07 ` kernel
2002-09-12 16:22 ` Petr Konecny
2002-09-12 23:10 ` Denis Vlasenko
2002-09-12 19:14   ` AMD 760MPX DMA lockup (partly solved) Jan Kasprzak
2002-09-12 20:43     ` Alan Cox
2002-09-13  9:41       ` Jan Kasprzak
2002-09-13  9:46         ` Vojtech Pavlik
2002-09-12 21:34     ` Vojtech Pavlik
2002-09-13 11:58     ` Denis Vlasenko
2002-09-13 11:44       ` kernel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®