Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Seems Slow - Reiserfs or Kernel to Blame?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat May 29, 2004 3:25 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
eandry
n00b
n00b


Joined: 15 Nov 2004
Posts: 50

PostPosted: Tue Jan 25, 2005 3:54 am    Post subject: Problems enabling DMA Reply with quote

Sorry if this is in the wrong place. I found this thread because I'm having the same problem of not being able to enable my DMA on my IDE controller. I have a Compaq Presario 1500 laptop. After following the suggestions in this thread I'm still not able to enable DMA with hdparm

Here is the relevant info about my notebook

Output of "uname -a":

Code:
Linux gundam 2.6.10-gentoo-r6 #1 Sun Jan 23 21:45:47 EST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz GenuineIntel GNU/Linux


Output of "hdparm -d 1 /dev/hda":

Code:
HDIO_SET_DMA failed: Operation not permitted

/dev/hda:
 setting using_dma to 1 (on)
 using_dma    =  0 (off)


Output of "lspci -n":

Code:
0000:00:00.0 Class 0600: 8086:1a30 (rev 04)
0000:00:01.0 Class 0604: 8086:1a31 (rev 04)
0000:00:1e.0 Class 0604: 8086:2448 (rev 42)
0000:00:1f.0 Class 0601: 8086:248c (rev 02)
0000:00:1f.1 Class 0101: 8086:248a (rev 02)
0000:00:1f.5 Class 0401: 8086:2485 (rev 02)
0000:01:00.0 Class 0300: 1002:4c57
0000:02:04.0 Class 0780: 14f1:2f00 (rev 01)
0000:02:05.0 Class 0c00: 104c:8023
0000:02:06.0 Class 0607: 104c:ac50 (rev 02)
0000:02:08.0 Class 0200: 8086:1031 (rev 42)
0000:02:0e.0 Class 0c03: 1033:0035 (rev 41)
0000:02:0e.1 Class 0c03: 1033:0035 (rev 41)
0000:02:0e.2 Class 0c03: 1033:00e0 (rev 02)


Output of "lspci":

Code:
0000:00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
0000:00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev 42)
0000:00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
0000:02:04.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:02:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
0000:02:06.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 02)
0000:02:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
0000:02:0e.0 USB Controller: NEC Corporation USB (rev 41)
0000:02:0e.1 USB Controller: NEC Corporation USB (rev 41)
0000:02:0e.2 USB Controller: NEC Corporation USB 2.0 (rev 02)


Output of "dmesg | grep -i ide":

Code:

radeondb: BIOS provided dividers will be used
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4
 -> 4 multi-buttons, i.e. besides standard buttons


Output of "cat /usr/src/linux/.config | grep -i ide | grep -vi video | grep -v '#'":

Code:
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_IDE_TASK_IOCTL=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_IDE_CHIPSETS=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y


What did I miss in my kernel config?

If anyone has some suggestions I would be very greatful!

TIA!
Back to top
View user's profile Send private message
dsd
Developer
Developer


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

PostPosted: Tue Jan 25, 2005 12:00 pm    Post subject: Reply with quote

you missed intel piix ide support
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
eandry
n00b
n00b


Joined: 15 Nov 2004
Posts: 50

PostPosted: Wed Jan 26, 2005 2:06 am    Post subject: Knew it was something stupid... Reply with quote

Great!

That's what needed to be set.


Code:
gundam root # hdparm -d /dev/hda

/dev/hda:
 using_dma    =  1 (on)


Thank you for the help! One down...many more to go! :)
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Nov 07, 2005 3:43 pm    Post subject: Solved by kernel upgrade [SOLVED] Reply with quote

Sorry this looks like repeat but eventough I have enabled support for SIS 5513 chipset still I get
Code:
# hdparm -d1 /dev/hda

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


lspci
Code:
# lspci | grep IDE
0000:00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
0000:00:05.0 IDE interface: Silicon Integrated Systems [SiS] RAID bus controller 180 SATA/PATA  [SiS] (rev 01)


lspci -n
Code:
# lspci -n
0000:00:00.0 Class 0600: 1039:0760 (rev 03)
0000:00:01.0 Class 0604: 1039:0002
0000:00:02.0 Class 0601: 1039:0964 (rev 36)
0000:00:02.5 Class 0101: 1039:5513 (rev 01)
0000:00:02.7 Class 0401: 1039:7012 (rev a0)
0000:00:03.0 Class 0c03: 1039:7001 (rev 0f)
0000:00:03.1 Class 0c03: 1039:7001 (rev 0f)
0000:00:03.2 Class 0c03: 1039:7001 (rev 0f)
0000:00:03.3 Class 0c03: 1039:7002
0000:00:04.0 Class 0200: 1039:0900 (rev 91)
0000:00:05.0 Class 0101: 1039:0180 (rev 01)
0000:00:18.0 Class 0600: 1022:1100
0000:00:18.1 Class 0600: 1022:1101
0000:00:18.2 Class 0600: 1022:1102
0000:00:18.3 Class 0600: 1022:1103
0000:01:00.0 Class 0300: 1039:6330


kernel config
Code:
# cat /usr/src/linux/.config | grep -i ide | grep -v "#"
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEFLOPPY=m
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_VIDEO_SELECT=y


dmesg
Code:
ommand line is ro root=/dev/hda6 video=vesafb:ywrap,pmipal,1024x768-24@85 splash=verbose,fadein,theme:emergence CONSOLE=/dev/tty1)
BIOS-provided physical RAM map:
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Kernel command line: ro root=/dev/hda6 video=vesafb:ywrap,pmipal,1024x768-24@85 splash=verbose,fadein,theme:emergence CONSOLE=/dev/tty1
Boot video device is 0000:01:00.0
sisfb: Video ROM found and copied
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
SIS5513: IDE controller at PCI slot 0000:00:02.5
SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller
SIS5513: port 0x01f0 already claimed by ide0
SIS5513: port 0x0170 already claimed by ide1
SIS5513: neither IDE port enabled (BIOS)


Any ideas?

[EDIT]
Solved after kernel upgrade from 2.6.10-r* to 2.6.13-r5
[/EDIT]
_________________
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Back to top
View user's profile Send private message
Ginta
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 152
Location: Spain

PostPosted: Wed Apr 05, 2006 3:10 pm    Post subject: I think I have problems too with disk transfers Reply with quote

Hi, I found thiws thread and I think I have very slow file transfer (about 65 mb/s) and is not a laptop. On my SATA1 is very slow i think too:

Code:

hdparm /dev/hda

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

hdparm /dev/sda

/dev/sda:
 IO_support   =  0 (default 16-bit)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 36481/255/63, sectors = 586072368, start = 0


The first disk is Seagate 160 GB Ide (with ultra dma5 - I see in windows xp). Last one is Seagate 300 Gb sata (without any raid)

And here are the rates:
Code:

hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   2628 MB in  2.00 seconds = 1312.23 MB/sec
 Timing buffered disk reads:  154 MB in  3.07 seconds =  50.12 MB/sec

hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   2668 MB in  2.00 seconds = 1332.20 MB/sec
 Timing buffered disk reads:  186 MB in  3.01 seconds =  61.72 MB/sec


My machine is AMD ATHLON64 X2 3800+, 1GB RAM, NVIDIA 6600GT (with all 64 bit native). I think all is configured but is it possible that transfer values are too slow ('cause I don't want to compare, but with other SO I get very very fastest file transfers).

Thanks
_________________
Some people should use emerge brain on theirselves...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 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