Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.9 kernel and DMA help please
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Sat Jan 22, 2005 5:17 pm    Post subject: 2.6.9 kernel and DMA help please Reply with quote

This is the problem:
Running gentoo, stage 3 install, on a "custom" 2.6.9 kernel.
In general, everything went fine, except:
No dma on my harddrive, and I've been trying to search around a bit. People only say that "enable VIA chipset in the kernel and you are set to go" only problem is, I know I compiled support for the VIA chipset into the kernel(Not as a module).
And I've tried virtually anything to get it working, removing generic IDE support, playing around with almost anything in the menu and so on.
Please help, what do I need to enable\disable in the kernel to get DMA support for my chipset?
(Yes, hdparm -d1 /dev/cdrom or /dev/hdc or /dev/dvd gives me operation not supported.
And yes, I did remember to move the kernel, config and system.map to /boot after kernel compile.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Jan 22, 2005 7:33 pm    Post subject: Reply with quote

Shaoran,

Please post the IDE related lines from
Code:
lspci

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bet1m
l33t
l33t


Joined: 04 Dec 2004
Posts: 631
Location: Kosova/Prishtine

PostPosted: Sat Jan 22, 2005 7:39 pm    Post subject: Reply with quote

witch chipset?
_________________
#370559


Last edited by bet1m on Wed Jan 26, 2005 6:47 pm; edited 2 times in total
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Sat Jan 22, 2005 7:40 pm    Post subject: Reply with quote

Code:
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: VIA Technologies, Inc. VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at d800 [size=16]
Capabilities: [c0] Power Management version 2


Is this correct?

If you need something from the .config file in the /boot directory, could someone tell me what, because it's rather large file.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Jan 22, 2005 7:57 pm    Post subject: Reply with quote

Shaoran,

You need the following settings in your kernel. Navigate to

Code:
Device Drivers
-> ATA/ATAPI/MFM/RLL support
then choose all of the following as Y. Modules will not work, even where they are allowed.
Code:
ATA/ATAPI/MFM/RLL support
Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
Include IDE/ATA-2 DISK support
Use multi-mode by default
generic/default IDE chipset support
PCI IDE chipset support
Sharing PCI IDE interrupts support
Generic PCI IDE Chipset Support
Use PCI DMA by default when available
VIA82CXXX chipset support

Remake and reinstall your kernel. You should get DMA by default now unless your drive is on the IDE blacklist of drives known to not work with DMA.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Sat Jan 22, 2005 8:13 pm    Post subject: Reply with quote

Right, now I double-checked and triple-checked, compiled the kernel, moved it to /boot, and right now I feel like selling it, and buying a Intel Pentium 4 at work instead, because this is annoying me to no end.
*sigh* Thanks for all help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Jan 22, 2005 9:29 pm    Post subject: Reply with quote

Shaoran,

Post the output of
Code:
hdparm -i /dev/...
It will never work if you have a blacklisted drive. Thats for your own protection.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Jan 22, 2005 10:15 pm    Post subject: Reply with quote

posting the output of "lspci -n" will help.

you should also confirm that you are running the kernel you think that you are, by running "uname -v". that will give you the date and time that your running kernel was compiled.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Wed Jan 26, 2005 3:56 pm    Post subject: Reply with quote

Code:
/dev/cdrom:

 Model=TSSTcorpDVD-ROM TS-H352A, FwRev=TS01, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no
 Drive conforms to: ATA-2 X3T10 948D revision 3:

 * signifies the current active mode


hdparm -i /dev/cdrom which is a symlink to /dev/hdc

Code:
/dev/hda:

 Model=IC35L080AVVA07-0, FwRev=VA4OA50K, SerialNo=VNC402A4G7KG2A
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
 BuffType=DualPortCache, BuffSize=1863kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=160836480
 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 udma3 udma4 *udma5
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:

 * signifies the current active mode


This is my first harddrive.

Code:
/dev/hdb:

 Model=SAMSUNG SP1614N, FwRev=TM100-23, SerialNo=0642J1FW610263
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
 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 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: (null):

 * signifies the current active mode


My second harddrive.

Code:

/dev/hdd:

 Model=TSSTcorpCD/DVDW TS-H552B, FwRev=TS03, SerialNo=TS-H552BFirmware
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:227,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

 * signifies the current active mode


And this is my DVD-burner.

Code:
0000:00:00.0 Class 0600: 1106:3099
0000:00:01.0 Class 0604: 1106:b099
0000:00:0b.0 Class 0401: 1102:0002 (rev 07)
0000:00:0b.1 Class 0980: 1102:7002 (rev 07)
0000:00:0d.0 Class 0280: 14e4:4320 (rev 03)
0000:00:11.0 Class 0601: 1106:3147
0000:00:11.1 Class 0101: 1106:0571 (rev 06)
0000:00:11.2 Class 0c03: 1106:3038 (rev 23)
0000:00:11.3 Class 0c03: 1106:3038 (rev 23)
0000:01:00.0 Class 0300: 10de:0314 (rev a1)


Output of lspci -n.


Sorry that I have to bump this, I've been away from the computer for a while.
I am 200% certain I am running the correct kernel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Wed Jan 26, 2005 5:46 pm    Post subject: Reply with quote

Shaoran,

If thats the output of
Code:
hdparm -i <device>
it shows that all your drives offer UDMS modes. If its the output of
Code:
hdparm -I <device>
It shows that UDMS is active now.

It looks like you have an 80 conductor cable on ide0 and a 40 conductor cable on ide1, since the best rate offered on ide1 is udma2.

Can you do some speed tests please.
Code:
Thats hdparam -tT <device>
and post the results.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Wed Jan 26, 2005 6:15 pm    Post subject: Reply with quote

hdparm -tT /dev/hdc gives me "read failed Input\Output error" and nothing more.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Wed Jan 26, 2005 6:55 pm    Post subject: Reply with quote

Shaoran,

If you are doing the test on a CDROM you need a disk in the drive.
I have been looking at chipset DMA problems, so a test of you hard drives would provide useful info.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Wed Jan 26, 2005 7:08 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Shaoran,

If you are doing the test on a CDROM you need a disk in the drive.


Oh.*slapsself* I knew that XD


Code:
/dev/cdrom:
 Timing cached reads:   852 MB in  2.00 seconds = 425.85 MB/sec
 Timing buffered disk reads:   26 MB in  3.11 seconds =   8.36 MB/sec


Tada.

Oh, I did the same on the /dev/hda drive, and got:
Code:
/dev/hda:
 Timing cached reads:   740 MB in  2.00 seconds = 369.13 MB/sec
 Timing buffered disk reads:   20 MB in  3.28 seconds =   6.10 MB/sec


Disturbing figures compared to the cdrom.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Wed Jan 26, 2005 8:34 pm    Post subject: Reply with quote

Shaoran,

Its time for the silly questions now.
Are you running the kernel you think you are?
Do
Code:
uname -a
and check the version and compile date.
Look in /boot while the boot partition is not mounted. It should be empty but its easy to 'install' a kernel and forget to mount /boot.

You don't have DMA on and its almost certainly a kernel problem.
I'll check the IDE blacklist and post back.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Jan 26, 2005 10:08 pm    Post subject: Reply with quote

Shaoran wrote:
Right, now I double-checked and triple-checked, compiled the kernel, moved it to /boot, and right now I feel like selling it, and buying a Intel Pentium 4 at work instead, because this is annoying me to no end.
*sigh* Thanks for all help.


Don't blame it on AMD or your board, it's working really fine here with the same chipset.
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
Shaoran
n00b
n00b


Joined: 22 Jan 2005
Posts: 9
Location: Norway

PostPosted: Wed Jan 26, 2005 10:23 pm    Post subject: Reply with quote

This is embarrasing.
I made my / partition the /boot partition, so I had copied the kernel to the wrong place.
Everything is working like a charm now, thanks for all the help.
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Wed Feb 02, 2005 9:10 pm    Post subject: Reply with quote

I have the same problem, but with an Intel Chipset (i865PE / Pentium 4).

I checked my kernel, all the options that have been mentionned by NeddySeagoon are compiled in the kernel (not as modules).

My lspci is the following :
Quote:

bash-2.05b# lspci
0000:00:00.0 Host bridge: Intel Corp.: Unknown device 2570 (rev 02)
0000:00:01.0 PCI bridge: Intel Corp.: Unknown device 2571 (rev 02)
0000:00:1d.0 USB Controller: Intel Corp.: Unknown device 24d2 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp.: Unknown device 24d4 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp.: Unknown device 24d7 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp.: Unknown device 24de (rev 02)
0000:00:1d.7 USB Controller: Intel Corp.: Unknown device 24dd (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corp.: Unknown device 24d0 (rev 02)
0000:00:1f.2 IDE interface: Intel Corp.: Unknown device 24d1 (rev 02)
0000:00:1f.3 SMBus: Intel Corp.: Unknown device 24d3 (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3 Ti200] (rev a3)
0000:02:01.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
0000:02:02.0 Ethernet controller: 3Com Corporation: Unknown device 1700 (rev 12)
0000:02:05.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
0000:02:05.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
0000:02:09.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
bash-2.05b#



The hdparm -i gives the following :

Quote:

/dev/hdc:

Model=PLEXTOR DVDR PX-716A, FwRev=1.03, SerialNo=308029
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,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

* signifies the current active mode


/dev/hdd
/dev/hdd:

Model=TEAC CD-W552E, FwRev=1.14, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:227,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

* signifies the current active mode



Can anyone give a help ?

Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Thu Feb 03, 2005 8:10 pm    Post subject: Reply with quote

E001754,

Hopefully you used the Intel PIIX driver in place of the VIA on in my original list of kernel options ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Thu Feb 03, 2005 10:33 pm    Post subject: Reply with quote

Hopefully, yes ! (I'm sorry, you could have found the bug easily if I had used the VIA driver on a Intel Mobo (but I would have wrote it to kernel.org developpers !))
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Mon Feb 07, 2005 8:36 pm    Post subject: Reply with quote

I've read somewhere in the forums that upgrading to a 2.6.10 kernel could solve the problem.
I'm now running a 2.6.10-gentoo-r6 and I still can't enable my DMA on my /dev/hdc (plextor DVD) and my /dev/hdd (Teac CDRW) drives.

Is it a kernel bug or do have I to active something somewhere ?

Thanks for any help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Mon Feb 07, 2005 9:23 pm    Post subject: Reply with quote

E001754,

Can you post the drive types from
Code:
hdparm -i /dev/....
please.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Tue Feb 08, 2005 7:34 pm    Post subject: Reply with quote

Here it is (hdparm -i /dev/hd[c/d] and hdparm /dev/hd[c/d] :

Quote:

bash-2.05b# hdparm -i /dev/hdc

/dev/hdc:

Model=PLEXTOR DVDR PX-716A, FwRev=1.03, SerialNo=308029
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,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

* signifies the current active mode

bash-2.05b# hdparm -i /dev/hdd

/dev/hdd:

Model=TEAC CD-W552E, FwRev=1.14, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:227,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

* signifies the current active mode

bash-2.05b# hdparm /dev/hdc

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
bash-2.05b# hdparm /dev/hdd

/dev/hdd:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Tue Feb 08, 2005 8:56 pm    Post subject: Reply with quote

E001754,

Do you have DMA working for your hard drive ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Tue Feb 08, 2005 9:38 pm    Post subject: Reply with quote

I don't know, because my Linux hard drive is UW-SCSI !
The windows disk is a SATA drive, seen as SCSI drive, so not working with hdparm.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Tue Feb 08, 2005 9:50 pm    Post subject: Reply with quote

E001754,

Post your
Code:
lspci
output and your kernel .config file and I'll look them over. If you have some web space, put them on the web and post a link here. I need to know your kernel version too.

You kernel config file will be in /usr/src/linux/.config by default.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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