LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-06-2005, 03:56 PM   #1
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
VIA VT82Cxxx IDE DMA problem (ubuntu breezy)


Hi,

I've just upgraded to Ubuntu breezy on my old Athlon 1100 machine, and got to say, I'm impressed with the way this distro is developing.

But I've got a problem with DMA appearing to be disabled on the hard disk drives. Apologies in advance - this might be quite a long thread.

Basic spec of machine -

Athlon 1100 / UDMA66 / 256MB RAM / 2 x 20GB Seagate drives, using LVM / 2 x optical drives.

The correct VIA driver appears to be loaded:

Code:
kevin@boxroom:~$ sudo lsmod | grep via
via686a                17816  0
i2c_sensor              3456  1 via686a
i2c_core               19728  3 i2c_acpi_ec,via686a,i2c_sensor
via_agp                 9472  1
agpgart                32328  2 nvidia,via_agp
via82cxxx              12188  1
ide_core              125268  4 ide_cd,ide_disk,ide_generic,via82cxxx
Here's a snippet from dmesg:

Code:
....
[4294704.722000] hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[4294704.722000] hdb: dma_intr: error=0x10 { SectorIdNotFound }, LBAsect=39102336, sector=39102336
[4294704.722000] ide: failed opcode was: unknown
[4294704.722000] hda: DMA disabled
[4294704.722000] hdb: DMA disabled
[4294704.872000] ide0: reset: success
[4294705.045000] hdb: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
[4294705.045000] hdb: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=39167615, sector=39102336
[4294705.045000] ide: failed opcode was: unknown
....
[
checking with hdparm:

Code:
kevin@boxroom:~$ sudo hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 38792/16/63, sectors = 39102336, start = 0
which seems to suggest DMA is OFF, but issuing hdparm with the -i extension:

Code:
kevin@boxroom:~$ sudo hdparm -i /dev/hda

/dev/hda:

 Model=ST320014A, FwRev=3.07, SerialNo=5JZAY1H4
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=off
 CurCHS=17475/15/63, CurSects=16513875, LBA=yes, LBAsects=39102336
 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=disabled
 Drive conforms to: device does not report version:

 * signifies the current active mode
and it looks like DMA is actually ON.

But, testing drive throughput seems to give pathetic results:

Code:
kevin@boxroom:~$ sudo hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:   10 MB in  4.34 seconds =   2.30 MB/sec
I've tried setting DMA on in the /etc/hdparm.conf file, but seen no difference.

I'm a bit confused. Is DMA on or not, and is the disk throughput shown 'normal' for a c. 2001 UDMA66 machine? The machine itself isn't exactly quick, even compared to an old Pentium 450!

Sorry for the length of the post, but any thoughts would be welcome!
 
Old 10-08-2005, 02:59 AM   #2
PaganHippie
Member
 
Registered: Aug 2005
Location: Ecotopia
Distribution: Ubuntu 7.04 'Feisty' & 6.06 'Dapper'; Debian 4.0 'Etch'
Posts: 119

Rep: Reputation: 15
It looks to me as if querying the drive reveals that it's capable of UDMA, but the feature is turned off. Odd, very odd.

It worked correctly under Hoary?
 
Old 10-08-2005, 03:18 AM   #3
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Original Poster
Rep: Reputation: 33
Hi PaganHippie,

Thanks for the reply. It is a bit strange and I'm still a bit confused by it, but I think I've managed to get it sorted out reasonably well..

I've added 'hdparm -c1 -d1 -m16 /dev/hda etc to the bottom of /etc/hdparm.conf and now DMA is 're-enabled' correctly. Interestingly, it didn't work when I used the alternative syntax in hdparm.conf.

Another interesting side-effect is that since enabling DMA in this manner, CD-ROMs no longer seem to 'auto-mount' in one of the optical drives.... I'll have to investigate further there I think.

I don't remember this being a problem with Hoary - actually, I've still got the old Hoary kernel installed, so I might try booting that to see, but I haven't got round to it yet.

I think the fundamental problem is with the Via chipset on my machine, and the driver incorrectly reporting errors on boot which then causes the new kernel to disable DMA as a safety measure..

Anyway, apart from this little glitch, Breezy seems to be working very well, even in pre-release.

Thanks again for your input.
 
Old 10-25-2005, 06:31 AM   #4
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Rep: Reputation: 39
TRY HERE:-

https://wiki.ubuntu.com/DMA
 
  


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
vmware 5 in Ubuntu Breezy Sharktale Ubuntu 7 07-08-2006 04:43 AM
Ubuntu 5.10 Breezy: Not Reboot !!!! Blue Jacket Ubuntu 4 06-27-2006 04:32 AM
DWL-G650, Ubuntu Breezy, ARP problem vimico Linux - Wireless Networking 0 10-21-2005 08:20 PM
dell dj and ubuntu breezy coolpyrofreak Linux - Software 17 09-22-2005 03:58 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM

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

All times are GMT -5. The time now is 02:54 AM.

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