I am running centos 5.2 i686.
The /boot/config indicates that VIA82CXXXX is built into the kernel.
CONFIG_BLK_DEV_VIA82CXXX=y
my lspci -v gives
00:0f.0 IDE interface: VIA Technologies, Inc. CX700M2 IDE (prog-if 8a 
[Master SecP PriP])
       Subsystem: VIA Technologies, Inc. Unknown device 0581
       Flags: bus master, medium devsel, latency 32
       I/O ports at fc00 [size=16]
       Capabilities: [b0] Power Management version 2
Which I think is the VIA part.
when I do "hdparm /dev/hdc" I get
/dev/hdc:
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     = 15733/16/63, sectors = 15858864, start = 0
when I do "hdparm -d1 /dev/dhc" I get
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma    =  0 (off)
I get operation not permitted.
How do I enable DMA mode for this device?
Jerry
On Mon, 2008-12-22 at 15:27 -0500, Jerry Geis wrote:> I am running centos 5.2 i686. > > The /boot/config indicates that VIA82CXXXX is built into the kernel. > CONFIG_BLK_DEV_VIA82CXXX=y > > my lspci -v gives > 00:0f.0 IDE interface: VIA Technologies, Inc. CX700M2 IDE (prog-if 8a > [Master SecP PriP]) > Subsystem: VIA Technologies, Inc. Unknown device 0581 > Flags: bus master, medium devsel, latency 32 > I/O ports at fc00 [size=16] > Capabilities: [b0] Power Management version 2 > > Which I think is the VIA part. > > when I do "hdparm /dev/hdc" I get > /dev/hdc: > 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 = 15733/16/63, sectors = 15858864, start = 0 > > when I do "hdparm -d1 /dev/dhc" I get > > /dev/hdc: > setting using_dma to 1 (on) > HDIO_SET_DMA failed: Operation not permitted > using_dma = 0 (off) > > > I get operation not permitted. > How do I enable DMA mode for this device?----\ You try setting hdparm -p4 /dev/hda Just to see if you can set the PIO Mode? How old is the Disk in question? JohnStanley
Jerry Geis wrote:> I am running centos 5.2 i686. > > The /boot/config indicates that VIA82CXXXX is built into the kernel. > CONFIG_BLK_DEV_VIA82CXXX=y > > my lspci -v gives > 00:0f.0 IDE interface: VIA Technologies, Inc. CX700M2 IDE (prog-if 8a >... those are two different chipsets, the CX700M2 is for the C4 family of ITX mini boards, while hte 82C7xxx stuff is their older northbridges for desktop systems... googling for that, I saw mention that Via has a linux patch for it, and apparently all it does is add a new PCI vendor/device ID so the existing drivers recognize the new chip. you can probably find the CX700M2's PCI vendor/device ID with lspci(8)