Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] hdd dma is off
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mixs
n00b
n00b


Joined: 22 Mar 2008
Posts: 37
Location: Latvia

PostPosted: Sat Mar 22, 2008 8:14 am    Post subject: [SOLVED] hdd dma is off Reply with quote

Hello,
I install Gentoo on my P4 box, but now i have one problem. I have 2 IDE disks, but for both dma is off. How can i get DMA on?

# hdparm /dev/hdc

/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19457/255/63, sectors = 312581808, start = 0


# lspci
00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 05)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 05)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 05)
00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 05)
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 05)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)
02:09.0 Network controller: Compaq Computer Corporation Netelligent 10/100 TX PCI UTP (rev 10)
02:0a.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
02:0a.1 Input device controller: Creative Labs SB Audigy Game Port (rev 03)
02:0a.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port

# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 718 MB in 2.00 seconds = 358.58 MB/sec
Timing buffered disk reads: 12 MB in 3.56 seconds = 3.37 MB/sec



I use kernel 2.6.24-gentoo-r3

I think mybe it is kernel configuration problem, but i cannot find good configuration to solve this problem. :oops:


Last edited by mixs on Sat Mar 22, 2008 7:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
barbar
Guru
Guru


Joined: 16 Apr 2003
Posts: 397
Location: Austria

PostPosted: Sat Mar 22, 2008 5:03 pm    Post subject: Reply with quote

Check if your kernel has:
Code:
Device Drivers-><*> ATA/ATAPI/MFM/RLL support  --->
<*>     Include IDE/ATA-2 DISK support
<*>     Intel PIIXn chipsets support

Check with
Code:
hdparm -i /dev/hdc
which udma modes are supprted
You can manually enable dma with
Code:
hdparm -d1 -X udma5 /dev/hdc
Back to top
View user's profile Send private message
mixs
n00b
n00b


Joined: 22 Mar 2008
Posts: 37
Location: Latvia

PostPosted: Sat Mar 22, 2008 6:40 pm    Post subject: Reply with quote

hdparm -i /dev/hdc

/dev/hdc:

Model=WDC WD1600JB-00EVA0, FwRev=15.05R15, SerialNo=WD-WMAEH1964366
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6

* signifies the current active mode

~ # hdparm -d1 -X udma2 /dev/hdc

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting xfermode to 66 (UltraDMA mode2)
using_dma = 0 (off)

~ # hdparm /dev/hdc

/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19457/255/63, sectors = 312581808, start = 0
Back to top
View user's profile Send private message
mixs
n00b
n00b


Joined: 22 Mar 2008
Posts: 37
Location: Latvia

PostPosted: Sat Mar 22, 2008 7:28 pm    Post subject: Reply with quote

Thanks
Now i have dma on. :wink:

I need to compile kernel with this option:

<*> Intel PIIXn chipsets support


Now it is much better:

/dev/hdc:
Timing cached reads: 784 MB in 2.00 seconds = 391.64 MB/sec
Timing buffered disk reads: 82 MB in 3.02 seconds = 27.18 MB/sec
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Mar 23, 2008 2:11 am    Post subject: Reply with quote

Nice, know you have some power to compile your Gentoo :)
Back to top
View user's profile Send private message
Skuromis
n00b
n00b


Joined: 02 Feb 2005
Posts: 40
Location: Lausanne

PostPosted: Sun Mar 23, 2008 3:04 pm    Post subject: Reply with quote

Hi,

for me it doesn't work that easy.
I have both options in my kernel, but still no dma for my HDD.

Quote:
Zwergenland linux # hdparm -i /dev/hda

/dev/hda:

Model=TOSHIBA MK2035GSS, FwRev=DK022A, SerialNo=77AFT0M4T
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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 udma3 udma4 *udma5
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-3,4,5,6,7

* signifies the current active mode

Zwergenland linux #


Quote:

Zwergenland linux # hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Zwergenland linux #


Any ideas?

Cheers,
Marc.
_________________
emerge -v information >> /dev/skuromis
Back to top
View user's profile Send private message
barbar
Guru
Guru


Joined: 16 Apr 2003
Posts: 397
Location: Austria

PostPosted: Sun Mar 23, 2008 4:45 pm    Post subject: Reply with quote

Do you have the same chipset? Check with lspci.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Mar 24, 2008 12:07 am    Post subject: Reply with quote

Yeah can you post your lspci plz ?
Back to top
View user's profile Send private message
Skuromis
n00b
n00b


Joined: 02 Feb 2005
Posts: 40
Location: Lausanne

PostPosted: Tue Mar 25, 2008 9:12 am    Post subject: Reply with quote

Hi again,

back to my PC and here my lspci:
Quote:

Zwergenland skuromis # lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile PCI Express Root Port (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation Mobile SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0425 (rev a1)
03:00.0 Network controller: Intel Corporation Unknown device 4229 (rev 61)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 13)
05:09.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
05:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)
05:09.2 System peripheral: Ricoh Co Ltd Unknown device 0843
05:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 09)
05:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 04)
Zwergenland skuromis #


It is not exactly the same chipset, isn't it?

Marc.
_________________
emerge -v information >> /dev/skuromis
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 11:57 am    Post subject: Reply with quote

no, you have a ICH8, so you need to have it inside the SATA-PATA section.

You need theses options :

Code:

(*) SCSI device support
     (*) SCSI Disk Support
     (*) SCSI CDROM Support
     (*) SCSI Generic Support

(*) Serial ATA (prod) and Parallel ATA (experimental) drivers
     (*) AHCI SATA support
     (*) Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
     (*) Intel PATA MPIIX support


With that you will be ok.
Back to top
View user's profile Send private message
Skuromis
n00b
n00b


Joined: 02 Feb 2005
Posts: 40
Location: Lausanne

PostPosted: Tue Mar 25, 2008 12:25 pm    Post subject: Reply with quote

Thank you, unfortunately it didn't work either... or did I do something else wrong.

What about this option?
Quote:

# CONFIG_BLK_DEV_IDE_SATA is not set


Marc.
_________________
emerge -v information >> /dev/skuromis
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
Page 1 of 1

 
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