[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't enable DMA



Aaron wrote:
> On -4969-Fri, Jul 18, 2003 at 10:41:47PM -0500, Shyamal Prasad <shyamal.prasad@sbcglobal.net> spake thus,
>
>>    "Anthony" == Anthony Campbell <ac@acampbell.org.uk> writes:
>>
>>    Anthony> On 18 Jul 2003, John Little wrote:
>>    >> >I'm using 3.0r0 (2.4.18-bf2.4 kernel) with ASRock K7VT2
>>    >> m/board and Maxtor >30GB ATA133 hard disk.  >I tried switching
>>    >> on DMA using hdparm -d1 /dev/hda but got the following >error
>>    >> message:
>>    >> >
>>    >> >HDIO_SET_DMA failed: Operation not permitted
>>    >> >
>>
>>    Anthony> [snip]
>>
>>    Anthony> Not sure if this will help, but with a VIA chipset I had
>>    Anthony> to enable
>>
>>    Anthony> CONFIG_BLK_DEV_VIA82CXXX=y
>>
>>    Anthony> to get DMA to work.
>>
>>FYI to the original poster this option is set in 2.4.18-bf2.4.
>>
>>http://ftp.us.debian.org/debian/dists/woody/main/disks-i386/current/images-1.44/bf2.4/kernel-config
>>
>
>
> I've been having this same problem, but apparently my VIA version
> doesn't match 82CXXX, so I'm completely dead in the water for DMA (I
> know, VIA is bad). I want to buy a PCI IDE controller card that will
> support DMA, will this solve my problem? If so, what kind should I get
> so it will be Debian-compatible?
>
> Any suggestions? If someone out there is using Debian and a PCI IDE
> controller, I'd love to hear from you.
>

You need a newer kernel.  Stock 2.4.18 wasn't up-to-date with VIA agp
chipsets -- Red Hat always patch their kernels with driver updates,
which is why your Red Hat system worked.

In fact there's a ton of VIA chipset updates between 2.4.20 and 2.4.21,
and more in 2.4.22pre.  I am running 2.4.22pre5 on a KM266 chipset,
which is basically your KT266A with integrated video.

Your motherboard has the 8235 southbridge:

http://www.amptron.com/html/Motherboard_K7vt2_frame.html


It is working for me:

Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 409M
agpgart: Detected Via Apollo Pro KM266 / KL266 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xac00-0xac07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xac08-0xac0f, BIOS settings: hdc:DMA, hdd:pio

darjeeling:/data/debian/dists/extra# hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 9964/255/63, sectors = 160086528, start = 0
 busstate     =  1 (on)

As you can see, my chipset is a KM266, not your KT266A, but the
southbridge chip that actually does the IDE is the same.

If upgrading to 2.4.21 doesn't work, come back to me.  As a last resort,
contact Vojtech Pavlik <vojtech@suse.cz> as your syslog suggested -- I'm
looking at the source for 2.4.22pre5 and I'm a bit confused by the
KT266A detection; I wouldn't be amazed if there was a bug in there.

(I always build my own kernels with make-kpkg, so I don't know if .debs
are easily available for woody for the 2.4.21 kernel:  can someone give
pointers if necessary?  If not you'll have to do what I do: install
kernel-package and build from the kernel sources.)

Andrew McGuinness




Reply to: