View previous topic :: View next topic |
Author |
Message |
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Jul 23, 2003 4:41 am Post subject: what kernel has the latest silicon image 3112A sata driver? |
|
|
wondering which kernel has the later version of the silicon image 3112A sata driver?
or whether there is a driver one can patch into the kernel manually ?
cheers!
Chris _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
ibliss n00b
Joined: 07 May 2003 Posts: 14
|
Posted: Wed Jul 23, 2003 3:21 pm Post subject: |
|
|
i think i would place my bets on the ac-sources.. most of the IDE work is done in that tree i think. |
|
Back to top |
|
|
mickwd n00b
Joined: 04 Jun 2003 Posts: 70
|
Posted: Wed Jul 23, 2003 8:18 pm Post subject: |
|
|
The ac-sources seem to have the latest one I've seen.
The main file seems to be /usr/src/linux/drivers/ide/pci/siimage.c.
ac-sources-2.4.22_pre6-r1.ebuild has siimage.c, version 1.06.
Earlier versions of the kernel seem to have version 1.02 (I think).
The newer version fixes a few faults, and seems to be more reliable.
However, my SATA drive (a Maxtor) still starts up in non-DMA mode (which is extremely slow). You need to emerge "hdparm", and configure it to enable DMA. The computer occasionally freezes when running hdparm on boot, but apart from that I have no problems.
I tried copying the siimage.c and siimage.h files to different kernel sources, but they rely on changes in other files. I don't think the changes are too hard, but I didn't have the time to try and make them.
I think the new version of siimage.c made it into 2.4.22-pre3 (though I may be wrong). Unfortunately, gs-sources is currently based on 2.4.22-pre2. |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Jul 23, 2003 10:44 pm Post subject: |
|
|
thanks guys
who develops the driver? and do they release it as a patch?
I think it's the kernel guys isn't it? so I'm guessing not..
anyway I used ac-sources 2.4.22_pre6-r1.. it also boots with dma OFF
mickwd, have u had problems enabling dma? I haven't been game to try it yet.. don't want it corrupting my software raid array _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
mickwd n00b
Joined: 04 Jun 2003 Posts: 70
|
Posted: Fri Jul 25, 2003 7:05 pm Post subject: |
|
|
mickwd, have u had problems enabling dma?
About 1 in 5 boots fails when enabling hdparm, just after it prints:
Code: |
Running hdparm on disk0
|
Sometimes it will respond to Alt-SysRq-S, Alt-SysRq-U, Alt-SysRq-B, but usually it's hung solid and you need to press reset, or do a power-off restart. However, I've not lost any data yet.
A journaled filesystem is STRONGLY recommended. An fsck takes a loooooong time before DMA is disabled, and you're checking a big disk at about 1.5MB/second.
If you're interested, here are my hdparm settings, as placed in /etc/conf.d/hdparm:
Code: |
disc0_args="-d1 -X udma2 -c1 -m16"
|
Note that "-X udma2" is the same as "-X66" (but I find it more descriptive). My machine won't accept any higher rating than this (and I'm not sure whether the UDMA ratings really apply to SATA disks), but this setting is good enough, giving me the following:
Code: |
desktop root # hdparm -tT /dev/hde
/dev/hde:
Timing buffer-cache reads: 1764 MB in 2.00 seconds = 882.00 MB/sec
Timing buffered disk reads: 152 MB in 3.00 seconds = 50.67 MB/sec
|
|
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Fri Jul 25, 2003 11:14 pm Post subject: |
|
|
hmm.. hdparm -i /dev/hde shows that it only supports udma2
Quote: | bash-2.05b# hdparm -i /dev/hde
/dev/hde:
Model=ST380013AS, FwRev=3.05, SerialNo=3JV32V8W
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2: 1 2 3 4 5 6
|
and when I try to enable dma, the machine freezes.
when I try to run hdparm withOUT dma.. the machine freezes.
this occurs with both linux-2.4.22-pre6-ac1 and linux-2.4.22-pre6-ac1
so my linux box is pretty crap atm!
I will try adding your line to /etc/conf.d/hdparm, mickwd _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|