How to get DMA working in Linux w. Seagate Serial-ATA Drives

Everything Linux nForced in here: installation, drivers, discussion...

Moderators: nForcer, Moderators

avatar
Google
Adsense
Google
 
Posts: 900913
Joined: March 2003
Location: Forum

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby bananafury » Wed May 07, 2003 1:02 am

Will this work with a WD Raptor 10,000rpm sata drive?
bananafury
Just got here...
 
Posts: 1
Joined: Wed May 07, 2003 1:01 am

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby pier.3dnow » Fri May 16, 2003 10:36 pm

10x anybody

the trick of echo max_kb_per_request:15 > /proc/ide/hde/settings worked for my wd1800jb eide with serille adaptor :) and the performance boost up from 2Mb/s to 36Mb/s (in windows I had maximum 29Mb/s :D)
anyway can you tell how to get the single drive patch pls?
pier.3dnow
nFHQ Member
nFHQ Member
 
Posts: 15
Joined: Fri Jan 17, 2003 1:30 am
Location: somewhere in Italy

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby anybody » Sat May 17, 2003 10:23 am

I don't think there is any single drive patch yet.

It was just some speculation that it probably can be easily done by making a few changes to the siimage.c driver file in the kernel sources.

I don't really know C so i'm probably not the right one to do it. Anyone up to this ?
anybody
nFHQ Member
nFHQ Member
 
Posts: 13
Joined: Sun Dec 22, 2002 5:20 pm

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby pier.3dnow » Sat May 17, 2003 11:16 am

anybody wrote:I don't think there is any single drive patch yet.

It was just some speculation that it probably can be easily done by making a few changes to the siimage.c driver file in the kernel sources.

I don't really know C so i'm probably not the right one to do it. Anyone up to this ?
something strange happens this morning with your tricks to enable dma, the system hang up :( I will try to upgrade the kernel (2.40.20-13.9) to a new one to see if something goes better with the dma
pier.3dnow
nFHQ Member
nFHQ Member
 
Posts: 15
Joined: Fri Jan 17, 2003 1:30 am
Location: somewhere in Italy

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby leibold » Sat May 17, 2003 10:03 pm

anybody wrote:Anyone up to this ?


I was looking for anything obvious in siimage.[ch] and the only thing I found worth trying is the number of channels in siimage.h for the SIL3112A chip (change from 2 to 1). However, I haven't tried it.
leibold
nLightened
nLightened
 
Posts: 133
Joined: Sat Jan 04, 2003 9:25 pm
Location: Sunnyvale, CA

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby benfarrell » Sun May 18, 2003 11:45 pm

hi I've just recently had the experence (or pain :)) of setting up a7n8x-deluxe motherboard with Gentoo, so I thought I would share a few things.

I've only got one WD1200JB hard drive on a SATA->PATA converter, and its reconised as /dev/hde.

To get around the problem with the long pause, I added the following to /etc/lilo.conf:
Code: Select all
append = "pci=noacpi hdg=none"


If your using the nvidia network controller on this board the pci=noacpi seems to fix this driver crashing. The hdg=none tells the ide sub system to not probe hdg.

Also on the topic of DMA I found just using hdparm -d1 /dev/hde would cause the system to lock up however using hdparm -d1 -X69 /dev/hde seems to fix this problem :)

I am currently using hdparm -u1 -c1 -d1 -X69 /dev/hde and I get the following hardparm timings:

/dev/hde:
Timing buffer-cache reads: 128 MB in 0.24 seconds =533.33 MB/sec
Timing buffered disk reads: 64 MB in 1.45 seconds = 44.14 MB/sec

Cheers,
Ben
benfarrell
Just got here...
 
Posts: 2
Joined: Sun May 18, 2003 11:22 pm

Re: How to get DMA working in Linux w. Seagate Serial-ATA Drives

Postby leibold » Mon May 19, 2003 3:12 am

hdg=none :-) The best fixes are the simple ones. Thanks!

Be careful with your DMA settings. There are known data corruption issues. The workaround is to reduce both speed (UDMA mode 2) and size of data transfers (max_kb_per_request = 15).

It sounds as if the latest ASUS bios (1004 for rev 1.x A7N8X boards) may contain a fix for this problem, but I'm not sure whether there are also driver fixes required.
leibold
nLightened
nLightened
 
Posts: 133
Joined: Sat Jan 04, 2003 9:25 pm
Location: Sunnyvale, CA

WD800JB

Postby Savage1 » Mon May 19, 2003 1:20 pm

Wow, cool

I thought that I would not be able to use my sata converter in Linux, but this looks promising.

Now since I have installed already on IDE (hda), how would I get my install to recognise my new location on SATA (hde)?

Would I have to do a reinstall and is it worth it? I mean, is the performance that much better?

Thanks,

Lee.
Savage1
nFHQ Member
nFHQ Member
 
Posts: 14
Joined: Mon May 19, 2003 12:38 pm

Re: How to get DMA working in Linux w. Seagate Serial-ATA Dr

Postby hachre » Sun Jul 20, 2003 10:03 pm

The performance is very worth it...

Switching from /dev/hda to /dev/hde depends on your distribution.
Normally you just have to change the settings in your bootloader and the root=/dev/hdX parameter for your kernel...

Just change /dev/hda to /dev/hde in
/etc/lilo.conf (or similar)
/boot/grub/grub.conf (or similar)
/etc/fstab

this should do it on most distris.
hachre
nFHQ Member
nFHQ Member
 
Posts: 8
Joined: Tue Apr 15, 2003 3:09 pm

Re: How to get DMA working in Linux w. Seagate Serial-ATA Dr

Postby speedboy » Sun Aug 03, 2003 10:17 pm

I agree I am also having problems with the settings nobody gave us to try. It crashes after a certain amount of data throughput. I am ditching these ATA drives and getting IDE ones. Pitty no one is writing a decent driver for this controller. :\
speedboy
Just got here...
 
Posts: 3
Joined: Tue Jul 15, 2003 8:26 pm
Location: .DE
avatar
Google
Adsense
Google
 
Posts: 900913
Joined: March 2003
Location: Forum
PreviousNext

Return to nForce Linux



Who is online

Users browsing this forum: No registered users and 0 guests