LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-17-2008, 01:24 PM   #1
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
DMA not working slackware 12.1 Generic Stock SMP kernel


Hi

On my machine , the harddisk doesn't have its DMA enabled.

Quote:
bash-3.1# whoami
root
bash-3.1# hdparm -d 1 /dev/hda

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


bash-3.1# lspci | grep ide -i
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
When I searched the forum for older thread - they said I should compile the kernel with the required IDE module that can be found with the help of above lspci command. The IDE interface is Intel , so I am pretty sure it should work by default. Anyways, I am using the generic-smp kernel that came with Slackware 12.1 , so it should be present as a module too.

They also talked about how the initrd could load the generic-ide module which is causing problems (even though I have never heard of this before) .. I did a find /boot/initrd-tree | grep -i ide , but that returned zero results.

Any ideas / helps/comments ?!

Trust me .. without DMA a computer sucks ..


its a 1.86 Ghz Core 2 Duo , so its not really old or something.
 
Old 09-17-2008, 01:57 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Could you post the output with: dmesg | grep -i ide
 
Old 09-17-2008, 05:26 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
You will have to force your drive to the SATA driver. It will make a change from /dev/hda to become /dev/sda which is why this is not a trivial excercise.
The IDE driver which your hard disk is using now, prohibits it from using DMA.
The solution is simple - you need to pass LILO the argument
Code:
append = "hda=noprobe"
. This is easiest when you append this to the boot prompt right away during installation, but since you already installed you may not want to re-install.
I made several posts about this on LQ, these are the ones I could find during a quick search (http://www.google.com/search?hl=en&q...%22+eric+alien):
http://www.linuxquestions.org/questi...88#post3152888

http://www.linuxquestions.org/questi...20#post3205020

And the most detail:
http://www.linuxquestions.org/questi...43#post3169143

Good luck, Eric
 
Old 09-18-2008, 02:58 AM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
I only have remote access to the comp right now, so I can't test the lilo thing right now. But a quick question to check it I get it right -

I need to make the drive use the SATA driver , but doing this will make the hda to sda. So a simple hda=noprobe at lilo, won't work cos then it won't be able to find the root partition (as it will search for hda and not sda)

but won't "hda=noprobe root=/dev/sda2" work ?


Quote:
bash:~# dmesg | grep -i ide
BIOS-provided physical RAM map:
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 00000000 00000001 00000000
Boot video device is 0000:00:02.0
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
ide-floppy driver 0.99.newide
 
Old 09-18-2008, 05:53 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
Quote:
Originally Posted by duryodhan View Post
So a simple hda=noprobe at lilo, won't work cos then it won't be able to find the root partition (as it will search for hda and not sda)

but won't "hda=noprobe root=/dev/sda2" work ?
Your first conclusion is right. But since /etc/fstab also has references to hda instead of the new sda, your Slackware will still refuse to boot.

Eric
 
Old 09-18-2008, 09:48 AM   #6
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
So if fstab is the only problem - I can edit fstab and then reboot and it will work ?

(I know the installer is a safer alternative .. but this is more cool , if you are not sure then tell me .. I will try it out for the heck of it )


And , I don't know but when I booted the installer (I had grub so just copied over the initrd and hugesmp.s into the older /boot), it didn't tell me that dma is off. I was thinking maybe it is a nice thing for the installer to check if DMA is off and confirm with user - additionally ask them to read the Change_AND_Hints when it detects such a problem ?

cos the changes and hints said to mostly think about Thinkpads or laptops .. this is a desktop, I never thought that this would be the case here ..

Last edited by duryodhan; 09-18-2008 at 09:50 AM.
 
Old 09-18-2008, 11:01 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
The task of the installer is to do what the user wants. Unlike other distros the Slackware installer tries not to make assumptions or educate the user.
You should read CHANGES_AND_HINTS.TXT before installing Slackware...

Eric
 
Old 09-18-2008, 11:18 AM   #8
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
I agree , and thats what I love about it.

My point was - noting that DMA is not working should be done. I am not saying catch everything that the CHANGES_HINTS document talks about. But comeon .. DMA not working is going to change the install time from minutes to hours ... DMA is pretty fundamental

imho, my 2c
 
Old 09-18-2008, 01:54 PM   #9
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
Hey it worked

I edited fstab , restarted and in lilo added root=/dev/sda2 hda=noprobe
and restarted it worked fine, then I edited lilo.conf , made an initrd again and reran lilo

after a restart it is all working fine.

Ofcourse, this is not for someone who doesn't trust himself to recover if something goes wrong (cos there is a high chance it will ... see Eric's links for a safe and nice way to do this)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper and generic smp kernel Bazzaah Slackware 13 05-17-2008 03:31 AM
smp oops in kernel 2.6.20-16-generic anirudhvij Linux - Kernel 0 08-19-2007 07:02 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 04:59 AM
Upgrading stock 2.4.22 kernel to 2.5.x then to 2.6.6 with existing stock .config file Kyl3 Slackware 8 06-09-2004 06:34 PM
Slackware 8.0 with SMP enabled sound driver not working mdroz Slackware 1 05-16-2002 09:22 AM


All times are GMT -5. The time now is 03:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration