Skip to contentSkip to conversation

Alpha: ALi 15x3 DMA completely broken now

DISCUSSION Jason Papadopoulos 2 participants 3 messages Nov 6, 2003 – Nov 7, 2003

lore
Share & tools
lore
#0 lore raw

Hello. 2.4.21-rc could not start DMA at boot time on my system, but hdparm could turn it on afterwards. Now with 2.4.22, nothing will turn on DMA; using hdparm locks the machine immediately.

The machine in question is an DS10 Alphaserver, Ali M5229 rev c0 IDE controller. Has 2.4.23-pre made any fixes for this device?

Thanks in advance,
jasonp

#1 lore raw
Quoted 9 lines · Jason Papadopoulos

Hello. 2.4.21-rc could not start DMA at boot time on my system, but hdparm could turn it on afterwards. Now with 2.4.22, nothing will turn on DMA; using hdparm locks the machine immediately.

The machine in question is an DS10 Alphaserver, Ali M5229 rev c0 IDE controller. Has 2.4.23-pre made any fixes for this device?

Yes - setup_irq() fix in 2.4.23-pre8 (arch/alpha/kernel/irq.c) had fixed IDE hangs on DS10 (verified for 5229 rev c1). If that doesn't help, try to narrow it down - try 2.4.21-* + irq.c change and see where does it stop working.

It should be able to do DMA at boot time, BTW:

wynton:~# dmesg |head -2
Linux version 2.4.23-pre8 (al@wynton) (gcc version 3.3.2 20031005 (Debian prerelease)) #1 SMP Fri Oct 24 04:27:45 EDT 2003
Booting GENERIC on Tsunami variation Webbrick using machine vector Webbrick from SRM
wynton:~# lspci |grep M5229
00:0d.0 IDE interface: ALi Corporation M5229 IDE (rev c1)
wynton:~# hdparm -i /dev/hdc|grep modes
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 udma3 udma4 
wynton:~# hdparm -i /dev/hda|grep modes
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2 

DS10 with cdrom on hda and disk on hdc, no ide-related arguments in command line. Revision c0 won't do UDMA, but it should be able to do DMA just fine...

What configuration do you have?

#2 lore raw
Quoted 6 lines · At 06:58 AM 11/6/03 +0000, [email protected] wrote:

Yes - setup_irq() fix in 2.4.23-pre8 (arch/alpha/kernel/irq.c) had fixed IDE hangs on DS10 (verified for 5229 rev c1). If that doesn't help, try to narrow it down - try 2.4.21-* + irq.c change and see where does it stop working.

It should be able to do DMA at boot time, BTW:

I actually have a rev c1 controller.

And it works now, with DMA turned on at boot time. Attempting to turn on UDMA with hdparm, even with irq.c patched, still causes an immediate hang.

I don't care though. Thanks a million.

jasonp