LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-22-2009, 12:03 PM   #1
wufo
Member
 
Registered: Oct 2004
Posts: 209

Rep: Reputation: 15
Getting the freaking DMA working in 8.04


First some background. My 7.1 Ubuntu worked fine on my AMD/VIA chipset machine and them I updated to 8.04 and all hell broke loose. My machine got super slow and the key was a message during boot saying disk dma was turned off. Sure enough, hdparm showed dma was turned of and I could not turn it on with hdparm. Further investigation revealed that the Ubuntu kernel maintainers had decided nobody should use VIA chipsets and disabled the building/loading of the via82cxx.ko module.
I first tried building a new kernel, I have been building kernels for Slackware distros for over 10 years, and had nothing but trouble with the Ubuntu debian based system. Hell, even building one WITHOUT modifying the original config file from /boot wouldn't boot. Stopping at a usb config line until I turned off the printer and then stopping at a line stating:
Uniform CD-ROM driver Revision: 3.2
I gave up.

I then tries just building and installing the via82cxxx.ko module using
make drivers/ide/pci/via82cxxx.ko
which built. I then did an insmod via82cxxx.ko, which worked. But, hdparm still said dma was disabled. So, I executed
hdparm -d 1 /dev/hdb
which gave a HDIO_SET_DMA failed: Operation not permitted
and yes, I did it s root.
lsmod shows via82cxxx is installed, etc.

S, what the hell do I need to do to get this Ubuntu 8.04 to use the damn disk dma?

Plus, another thing i noticed, The makeconfig no longer allowed you to build the via82cxxx into the kernel, it only allowed none or as a module.

tj
 
Old 01-23-2009, 04:56 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
I had much the same problem with an older GA-8TRS350MT board on FC3 a while ago. The stock FC3 kernel had no support for the DMA chip this board had come out with.

I solved it in exactly the way you are trying to, e. g. I got a newer kernel that had support for the chip (I think it was a VIA chip too, come to think of it), I compiled that kernel with support for that chip and it worked - on-board DMA was enabled, as well as disk DMA.

HOWEVER

I think your approach is sound, but you are trying to do this with Ubuntu - which, IMO, is not know as a very hands-on distro. E. g. anything and everything install or kernelwise must be done with... erm... "Synaptic", isn't it? E.g. Ubuntu as a distro does not "like" you poking and compiling stuff yourself, it is designed for everything being done package-wise, much like .deb and .rpm for Debian and Fedora distros.

I'd suggest getting another distro, your approach and logic looks 100% correct.
 
  


Reply



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
DMA aint working ... DarkDraw Red Hat 2 03-18-2008 12:36 PM
DMA not working on DVD writer rrr-jr Linux - Hardware 11 02-10-2007 02:57 PM
DMA 2.6.7 (still not working) powadha Linux - Hardware 4 07-10-2005 10:25 PM
ide dma not working n6rob Linux - Hardware 1 01-10-2005 08:50 PM
File permissions not sticking, DMA not working... Gveto Linux - General 11 12-17-2002 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration