linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-17  3:56 Jeffrey Baker
  2003-05-18  7:59 ` Tomas Szepe
  0 siblings, 1 reply; 13+ messages in thread
From: Jeffrey Baker @ 2003-05-17  3:56 UTC (permalink / raw)
  To: linux-kernel

I have the same problem on VIA chipset.  IDE DMA is disabled in
2.4.21-rc2 but works fine otherwise:

root@noodles /etc # hdparm -d 1 /dev/hda

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

root@noodles /etc # lspci -v
00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-760 [IGD4-1P] System Contr
ller (rev 13)
        Flags: bus master, medium devsel, latency 32
        Memory at f0000000 (32-bit, prefetchable) [size=64M]
        Memory at f7005000 (32-bit, prefetchable) [size=4K]
        I/O ports at a000 [disabled] [size=4]
        Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-760 [IGD4-1P] AGP Bridge (p
rog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 32
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 00009000-00009fff
        Memory behind bridge: f4000000-f5ffffff
        Prefetchable memory behind bridge: e8000000-efffffff

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40
)
        Subsystem: ABIT Computer Corp. KG7-Lite Mainboard
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master 
IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Subsystem: VIA Technologies, Inc. VT8235 Bus Master ATA133/100/66/33 IDE
        Flags: bus master, medium devsel, latency 32
        I/O ports at a400 [size=16]
        Capabilities: [c0] Power Management version 2

00:07.2 USB Controller: VIA Technologies, Inc. USB (rev 1a) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 15
        I/O ports at a800 [size=32]
        Capabilities: [80] Power Management version 2

00:07.3 USB Controller: VIA Technologies, Inc. USB (rev 1a) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 15
        I/O ports at ac00 [size=32]
        Capabilities: [80] Power Management version 2

00:07.4 SMBus: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
        Subsystem: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
        Flags: medium devsel, IRQ 5
        Capabilities: [68] Power Management version 2

00:08.0 SCSI storage controller: Adaptec AHA-7850 (rev 03)
        Subsystem: Adaptec AHA-2904/Integrated AIC-7850
        Flags: bus master, medium devsel, latency 32, IRQ 15
        I/O ports at b000 [disabled] [size=256]
        Memory at f7008000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [dc] Power Management version 1

00:09.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at b400 [disabled] [size=256]
        Memory at f7004000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at <unassigned> [disabled] [size=64K]

00:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 05)
        Subsystem: Creative Labs CT4760 SBLive!
        Flags: bus master, medium devsel, latency 32, IRQ 15
        I/O ports at b800 [size=32]
        Capabilities: [dc] Power Management version 1

00:0b.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 05)
        Subsystem: Creative Labs Gameport Joystick
        Flags: bus master, medium devsel, latency 32
        I/O ports at bc00 [size=8]
        Capabilities: [dc] Power Management version 1

00:0d.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)
        Subsystem: Kingston Technologies: Unknown device f002
        Flags: bus master, medium devsel, latency 32, IRQ 10
        I/O ports at c000 [size=256]
        Memory at f7006000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at <unassigned> [disabled] [size=256K]

00:0f.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (
Link) (prog-if 10 [OHCI])
        Subsystem: Procomp Informatics Ltd: Unknown device 8010
        Flags: bus master, medium devsel, latency 32, IRQ 10
        Memory at f7007000 (32-bit, non-prefetchable) [size=2K]
        Memory at f7000000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 1

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon R100 QD [Radeon 7
200] (prog-if 00 [VGA])
        Subsystem: ATI Technologies Inc Radeon AIW
        Flags: bus master, stepping, 66Mhz, medium devsel, latency 32, IRQ 12
        Memory at e8000000 (32-bit, prefetchable) [size=128M]
        I/O ports at 9000 [size=256]
        Memory at f5000000 (32-bit, non-prefetchable) [size=512K]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-17  3:56 HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20 Jeffrey Baker
@ 2003-05-18  7:59 ` Tomas Szepe
  2003-05-19  3:03   ` Lars
  0 siblings, 1 reply; 13+ messages in thread
From: Tomas Szepe @ 2003-05-18  7:59 UTC (permalink / raw)
  To: Jeffrey Baker; +Cc: linux-kernel

> [jwbaker@acm.org]
> 
> I have the same problem on VIA chipset.  IDE DMA is disabled in
> 2.4.21-rc2 but works fine otherwise:

Please post the relevant extract of your .config and dmesg output.

-- 
Tomas Szepe <szepe@pinerecords.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-18  7:59 ` Tomas Szepe
@ 2003-05-19  3:03   ` Lars
  0 siblings, 0 replies; 13+ messages in thread
From: Lars @ 2003-05-19  3:03 UTC (permalink / raw)
  To: Tomas Szepe; +Cc: Jeffrey Baker, linux-kernel

Tomas Szepe wrote:
>>[jwbaker@acm.org]
>>
>>I have the same problem on VIA chipset.  IDE DMA is disabled in
>>2.4.21-rc2 but works fine otherwise:
> 
> 
> Please post the relevant extract of your .config and dmesg output.
> 

Here's all the information:

dmesg:
------
...
PCI: PCI BIOS revision 2.10 entry at 0xfc06e, last bus=8
PCI: Using configuration type 1
PCI: Probing PCI hardware
Transparent bridge - Intel Corp. 82801BAM/CAM PCI Bridge
PCI: Using IRQ router PIIX [8086/244c] at 00:1f.0
...
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: HITACHI_DK23CA-30, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-C2502, ATAPI CD/DVD-ROM drive
hdc: TOSHIBA CD-RW/DVD-ROM SD-R2102, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 58605120 sectors (30006 MB) w/2048KiB Cache, CHS=3648/255/63
Partition check:
hda: hda1 hda2 hda3 < hda5 hda6 hda7 hda8 hda9 hda10 >

.config:
--------
...
#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_ISA=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y
...
#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
CONFIG_BLK_DEV_IDEFLOPPY=m
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_BLK_DEV_ADMA100 is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
CONFIG_BLK_DEV_IDE_MODES=y
# CONFIG_BLK_DEV_ATARAID is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set
# CONFIG_BLK_DEV_ATARAID_HPT is not set
# CONFIG_BLK_DEV_ATARAID_SII is not set
...

lspci:
------
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and 
Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation: Unknown device 1131 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801BA PCI (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (ICH2) (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801BAM IDE U100 (rev 03)
00:1f.2 USB Controller: Intel Corporation 82801BA(M) USB (Hub A) (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 
0112 (revb2)
02:03.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i 
PCI Audio Accelerator (rev 10)
02:06.0 PCI bridge: Action Tec Electronics Inc: Unknown device 0100 (rev 11)
02:0f.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.2 FireWire (IEEE 1394): Texas Instruments: Unknown device 8027
08:04.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] 
(rev 08)08:08.0 Communication controller: Lucent Microelectronics 
WinModem 56k (rev 01)


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-24  2:45 Lars
  0 siblings, 0 replies; 13+ messages in thread
From: Lars @ 2003-05-24  2:45 UTC (permalink / raw)
  To: linux-kernel

Solved!

I looked at the 2.4.20 output and saw ICH2M mentioned in the
output. I then grepped the drivers/ide/pci files for ICH2M
and found I just had to enable CONFIG_BLK_DEV_PIIX.

In my defense I can only say that the Configure.help
stated that this option only enables extended PIO modes.

So for the record: A Dell Inspiron 8100 Laptop needs
the CONFIG_BLK_DEV_PIIX to enable DMA.

-- Lars


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-22  7:06 Lars
  0 siblings, 0 replies; 13+ messages in thread
From: Lars @ 2003-05-22  7:06 UTC (permalink / raw)
  To: linux-kernel

Please read the entire thread.

I am the person who started the thread and yes, I have
# CONFIG_BLK_DEV_VIA82CXXX is not set

Then again, I also do not have a VIA chipset, Jeffrey had
the same problem and he has the VIA chipset, that's where
the confusion comes from.

 From the same post:
00:1e.0 PCI bridge: Intel Corporation 82801BA PCI (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (ICH2) (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801BAM IDE U100 (rev 03)

It seems to me that I'm missing something very obvious.

Anyway, as there seems to be no solution at hand for me, so I'm back
to 2.4.20 for the time being until I have time have a look at the
source myself.

-- Lars


-----------------------------------------------------------------


The person who posted their DMESG had it unset.

Here's an archive of the post:

http://www.ussg.iu.edu/hypermail/linux/kernel/0305.2/0440.html

And the line:

# CONFIG_BLK_DEV_VIA82CXXX is not set

From: Lars (lhofhansl@yahoo.com)
Date: Sun May 18 2003 - 22:03:16 EST

--eric

-----Original Message-----
From: Jeffrey W. Baker [mailto:jwbaker@acm.org]
Sent: Monday, May 19, 2003 5:01 PM
To: Tomas Szepe; linux-kernel@vger.kernel.org
Subject: Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20

On Mon, 2003-05-19 at 15:29, Tomas Szepe wrote:
 > > [alan@lxorguk.ukuu.org.uk]
 > >
 > > On Llu, 2003-05-19 at 21:04, Jeffrey W. Baker wrote:
 > > > I was using Via IDE chipset and, yes, I had configured the kernel for
 > > > VIA support. That's why it worked in 2.4.20. But it stopped working
in
 > > > 2.4.21-rc.
 > >
 > > VIA IDE should be working reliably, my main test box is an EPIA series
 > > VIA system so the VIA IDE does get a fair beating
 >
 > This person is running with CONFIG_BLK_DEV_VIA82CXXX unset.

No, this person is not.

-jwb



^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-19 19:56 Mudama, Eric
  2003-05-19 20:04 ` Jeffrey W. Baker
@ 2003-05-20  1:25 ` lars hofhansl
  1 sibling, 0 replies; 13+ messages in thread
From: lars hofhansl @ 2003-05-20  1:25 UTC (permalink / raw)
  To: Mudama, Eric, Tomas Szepe; +Cc: Jeffrey Baker, linux-kernel

No hdparm does not allow me to.
I can't check the exact error msg right now (at work),
but previous messages in this thread have it.

-- Lars


--- "Mudama, Eric" <eric_mudama@maxtor.com> wrote:
> 
> # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
> 
> I think that is the offending line?
> 
> can you enable DMA transfer modes on the drive using
> hdparm?
> 
> --eric
> 

[ lots of other discussion deleted ]


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-19 23:12 Mudama, Eric
  0 siblings, 0 replies; 13+ messages in thread
From: Mudama, Eric @ 2003-05-19 23:12 UTC (permalink / raw)
  To: 'Jeffrey W. Baker', Tomas Szepe, linux-kernel

The person who posted their DMESG had it unset.

Here's an archive of the post:

http://www.ussg.iu.edu/hypermail/linux/kernel/0305.2/0440.html

And the line:

# CONFIG_BLK_DEV_VIA82CXXX is not set 

From: Lars (lhofhansl@yahoo.com)
Date: Sun May 18 2003 - 22:03:16 EST 



--eric



-----Original Message-----
From: Jeffrey W. Baker [mailto:jwbaker@acm.org]
Sent: Monday, May 19, 2003 5:01 PM
To: Tomas Szepe; linux-kernel@vger.kernel.org
Subject: Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20


On Mon, 2003-05-19 at 15:29, Tomas Szepe wrote:
> > [alan@lxorguk.ukuu.org.uk]
> > 
> > On Llu, 2003-05-19 at 21:04, Jeffrey W. Baker wrote:
> > > I was using Via IDE chipset and, yes, I had configured the kernel for
> > > VIA support.  That's why it worked in 2.4.20.  But it stopped working
in
> > > 2.4.21-rc.
> > 
> > VIA IDE should be working reliably, my main test box is an EPIA series
> > VIA system so the VIA IDE does get a fair beating
> 
> This person is running with CONFIG_BLK_DEV_VIA82CXXX unset.

No, this person is not.  

-jwb

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-19 22:29     ` Tomas Szepe
@ 2003-05-19 23:00       ` Jeffrey W. Baker
  0 siblings, 0 replies; 13+ messages in thread
From: Jeffrey W. Baker @ 2003-05-19 23:00 UTC (permalink / raw)
  To: Tomas Szepe, linux-kernel

On Mon, 2003-05-19 at 15:29, Tomas Szepe wrote:
> > [alan@lxorguk.ukuu.org.uk]
> > 
> > On Llu, 2003-05-19 at 21:04, Jeffrey W. Baker wrote:
> > > I was using Via IDE chipset and, yes, I had configured the kernel for
> > > VIA support.  That's why it worked in 2.4.20.  But it stopped working in
> > > 2.4.21-rc.
> > 
> > VIA IDE should be working reliably, my main test box is an EPIA series
> > VIA system so the VIA IDE does get a fair beating
> 
> This person is running with CONFIG_BLK_DEV_VIA82CXXX unset.

No, this person is not.  

-jwb


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-19 19:45   ` Alan Cox
@ 2003-05-19 22:29     ` Tomas Szepe
  2003-05-19 23:00       ` Jeffrey W. Baker
  0 siblings, 1 reply; 13+ messages in thread
From: Tomas Szepe @ 2003-05-19 22:29 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jeffrey W. Baker, Mudama, Eric, Linux Kernel Mailing List

> [alan@lxorguk.ukuu.org.uk]
> 
> On Llu, 2003-05-19 at 21:04, Jeffrey W. Baker wrote:
> > I was using Via IDE chipset and, yes, I had configured the kernel for
> > VIA support.  That's why it worked in 2.4.20.  But it stopped working in
> > 2.4.21-rc.
> 
> VIA IDE should be working reliably, my main test box is an EPIA series
> VIA system so the VIA IDE does get a fair beating

This person is running with CONFIG_BLK_DEV_VIA82CXXX unset.

-- 
Tomas Szepe <szepe@pinerecords.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-19 19:56 Mudama, Eric
@ 2003-05-19 20:04 ` Jeffrey W. Baker
  2003-05-19 19:45   ` Alan Cox
  2003-05-20  1:25 ` lars hofhansl
  1 sibling, 1 reply; 13+ messages in thread
From: Jeffrey W. Baker @ 2003-05-19 20:04 UTC (permalink / raw)
  To: Mudama, Eric, linux-kernel

On Mon, 2003-05-19 at 12:56, Mudama, Eric wrote:
> # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
> 
> I think that is the offending line?
> 
> can you enable DMA transfer modes on the drive using hdparm?

Why should force be enabled?  Forced sounds like a last resort.  If you
read this thread you will see that hdparm isn't working.  It returns
EPERM.

I was using Via IDE chipset and, yes, I had configured the kernel for
VIA support.  That's why it worked in 2.4.20.  But it stopped working in
2.4.21-rc.

Meanwhile, I have switched to 2.4.21-rc-ac, and dumped the hardware in
favor of Intel i865, and DMA is working again.

-jwb


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-19 19:56 Mudama, Eric
  2003-05-19 20:04 ` Jeffrey W. Baker
  2003-05-20  1:25 ` lars hofhansl
  0 siblings, 2 replies; 13+ messages in thread
From: Mudama, Eric @ 2003-05-19 19:56 UTC (permalink / raw)
  To: 'Lars', Tomas Szepe; +Cc: Jeffrey Baker, linux-kernel


# CONFIG_BLK_DEV_IDEDMA_FORCED is not set

I think that is the offending line?

can you enable DMA transfer modes on the drive using hdparm?

--eric

-----Original Message-----
From: Lars [mailto:lhofhansl@yahoo.com]
Sent: Sunday, May 18, 2003 9:03 PM
To: Tomas Szepe
Cc: Jeffrey Baker; linux-kernel@vger.kernel.org
Subject: Re: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20


Tomas Szepe wrote:
>>[jwbaker@acm.org]
>>
>>I have the same problem on VIA chipset.  IDE DMA is disabled in
>>2.4.21-rc2 but works fine otherwise:
> 
> 
> Please post the relevant extract of your .config and dmesg output.
> 

Here's all the information:

dmesg:
------
...
PCI: PCI BIOS revision 2.10 entry at 0xfc06e, last bus=8
PCI: Using configuration type 1
PCI: Probing PCI hardware
Transparent bridge - Intel Corp. 82801BAM/CAM PCI Bridge
PCI: Using IRQ router PIIX [8086/244c] at 00:1f.0
...
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: HITACHI_DK23CA-30, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-C2502, ATAPI CD/DVD-ROM drive
hdc: TOSHIBA CD-RW/DVD-ROM SD-R2102, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 58605120 sectors (30006 MB) w/2048KiB Cache, CHS=3648/255/63
Partition check:
hda: hda1 hda2 hda3 < hda5 hda6 hda7 hda8 hda9 hda10 >

.config:
--------
...
#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_ISA=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y
...
#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
CONFIG_BLK_DEV_IDEFLOPPY=m
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_BLK_DEV_ADMA100 is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
CONFIG_BLK_DEV_IDE_MODES=y
# CONFIG_BLK_DEV_ATARAID is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set
# CONFIG_BLK_DEV_ATARAID_HPT is not set
# CONFIG_BLK_DEV_ATARAID_SII is not set
...

lspci:
------
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and 
Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation: Unknown device 1131 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801BA PCI (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (ICH2) (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801BAM IDE U100 (rev 03)
00:1f.2 USB Controller: Intel Corporation 82801BA(M) USB (Hub A) (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 
0112 (revb2)
02:03.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i 
PCI Audio Accelerator (rev 10)
02:06.0 PCI bridge: Action Tec Electronics Inc: Unknown device 0100 (rev 11)
02:0f.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:0f.2 FireWire (IEEE 1394): Texas Instruments: Unknown device 8027
08:04.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] 
(rev 08)08:08.0 Communication controller: Lucent Microelectronics 
WinModem 56k (rev 01)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
  2003-05-19 20:04 ` Jeffrey W. Baker
@ 2003-05-19 19:45   ` Alan Cox
  2003-05-19 22:29     ` Tomas Szepe
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Cox @ 2003-05-19 19:45 UTC (permalink / raw)
  To: Jeffrey W. Baker; +Cc: Mudama, Eric, Linux Kernel Mailing List

On Llu, 2003-05-19 at 21:04, Jeffrey W. Baker wrote:
> I was using Via IDE chipset and, yes, I had configured the kernel for
> VIA support.  That's why it worked in 2.4.20.  But it stopped working in
> 2.4.21-rc.

VIA IDE should be working reliably, my main test box is an EPIA series
VIA system so the VIA IDE does get a fair beating

^ permalink raw reply	[flat|nested] 13+ messages in thread

* HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20
@ 2003-05-15  7:56 Lars
  0 siblings, 0 replies; 13+ messages in thread
From: Lars @ 2003-05-15  7:56 UTC (permalink / raw)
  To: linux-kernel

Ever since I upgraded my kernel to 2.4.21-rc{1|2} from 2.4.20
I can't enable DMA on my harddisk anymore.

hdparm -d1 returns
HDIO_SET_DMA failed: Operation not permitted

What am I missing? I looked through the archive, and couldn't
find any discussion on this (I apologize if this has been discusses
before).

Please 'CC me on replies as I'm not subscribed to the list.

Thanks.

-- Lars


I attached some info on my system:

hdparm -i /dev/hda
------------------

/dev/hda:

  Model=HITACHI_DK23CA-30, FwRev=00H0A0G3, SerialNo=119T7D
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
  RawCHS=16383/16/63, TrkSize=36477, SectSize=579, ECCbytes=4
  BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
  CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=58605120
  IORDY=yes, tPIO={min:400,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes: pio0 pio1 pio2 pio3 pio4
  DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 
udma4 *udma5
  AdvancedPM=yes: mode=0x80 (128)
  Drive Supports : ATA/ATAPI-5 T13 1321D revision 3 : ATA-1 ATA-2 ATA-3 
ATA-4 ATA-5



lspci -v
--------
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and 
Memory Controller Hub (rev 04)
	Flags: bus master, fast devsel, latency 0
	Memory at e8000000 (32-bit, prefetchable) [size=64M]
	Capabilities: [88] #09 [e104]
	Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corporation: Unknown device 1131 (rev 04) 
(prog-if 00 [Normal decode])
	Flags: bus master, 66Mhz, fast devsel, latency 32
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: fc000000-fdffffff
	Prefetchable memory behind bridge: e0000000-e7ffffff

00:1e.0 PCI bridge: Intel Corporation 82801BA PCI (rev 03) (prog-if 00 
[Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=10, sec-latency=32
	I/O behind bridge: 0000d000-0000ffff
	Memory behind bridge: f2000000-fbffffff

00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (ICH2) (rev 03)
	Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801BAM IDE U100 (rev 03) 
(prog-if 80 [Master])
	Subsystem: Intel Corporation: Unknown device 4541
	Flags: bus master, medium devsel, latency 0
	I/O ports at bfa0 [size=16]

00:1f.2 USB Controller: Intel Corporation 82801BA(M) USB (Hub A) (rev 
03) (prog-if 00 [UHCI])
	Subsystem: Intel Corporation: Unknown device 4541
	Flags: bus master, medium devsel, latency 0, IRQ 10
	I/O ports at bce0 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 
0112 (rev b2) (prog-if 00 [VGA])
	Subsystem: Dell Computer Corporation: Unknown device 00e6
	Flags: bus master, VGA palette snoop, 66Mhz, medium devsel, latency 
248, IRQ 11
	Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (32-bit, prefetchable) [size=128M]
	Expansion ROM at <unassigned> [disabled] [size=64K]
	Capabilities: [60] Power Management version 2
	Capabilities: [44] AGP version 2.0

02:03.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i 
PCI Audio Accelerator (rev 10)
	Subsystem: Dell Computer Corporation: Unknown device 00e6
	Flags: bus master, medium devsel, latency 32, IRQ 5
	I/O ports at dc00 [size=256]
	Memory at f6ffe000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: [c0] Power Management version 2

02:06.0 PCI bridge: Action Tec Electronics Inc: Unknown device 0100 (rev 
11) (prog-if 00 [Normal decode])
	Flags: bus master, medium devsel, latency 32
	Bus: primary=02, secondary=08, subordinate=08, sec-latency=32
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: f8000000-f9ffffff
	Capabilities: [80] Power Management version 2
	Capabilities: [90] #06 [0000]

02:0f.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
	Subsystem: Dell Computer Corporation: Unknown device 00e6
	Flags: bus master, medium devsel, latency 168, IRQ 10
	Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=09, subordinate=0c, sec-latency=176
	Memory window 0: 10400000-107ff000 (prefetchable)
	Memory window 1: 10800000-10bff000
	I/O window 0: 00004000-000040ff
	I/O window 1: 00004400-000044ff
	16-bit legacy interface ports at 0001

02:0f.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
	Subsystem: Dell Computer Corporation: Unknown device 00e6
	Flags: bus master, medium devsel, latency 168, IRQ 10
	Memory at 10001000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=0d, subordinate=10, sec-latency=176
	Memory window 0: 10c00000-10fff000 (prefetchable)
	Memory window 1: 11000000-113ff000
	I/O window 0: 00004800-000048ff
	I/O window 1: 00004c00-00004cff
	16-bit legacy interface ports at 0001

02:0f.2 FireWire (IEEE 1394): Texas Instruments: Unknown device 8027 
(prog-if 10 [OHCI])
	Subsystem: Dell Computer Corporation: Unknown device 00e6
	Flags: bus master, medium devsel, latency 32, IRQ 10
	Memory at f6ffd800 (32-bit, non-prefetchable) [size=2K]
	Memory at f6ff8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2

08:04.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] 
(rev 08)
	Subsystem: Action Tec Electronics Inc: Unknown device 1100
	Flags: bus master, medium devsel, latency 32, IRQ 10
	Memory at f8fff000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at ecc0 [size=64]
	Memory at f8e00000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at f9000000 [disabled] [size=1M]
	Capabilities: [dc] Power Management version 2

08:08.0 Communication controller: Lucent Microelectronics WinModem 56k 
(rev 01)
	Subsystem: Action Tec Electronics Inc: Unknown device 2400
	Flags: bus master, medium devsel, latency 0, IRQ 10
	Memory at f8ffec00 (32-bit, non-prefetchable) [size=256]
	I/O ports at ecb8 [size=8]
	I/O ports at e800 [size=256]
	Capabilities: [f8] Power Management version 2



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-24  2:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-17  3:56 HD DMA disabled in 2.4.21-rc2, works fine in 2.4.20 Jeffrey Baker
2003-05-18  7:59 ` Tomas Szepe
2003-05-19  3:03   ` Lars
  -- strict thread matches above, loose matches on Subject: below --
2003-05-24  2:45 Lars
2003-05-22  7:06 Lars
2003-05-19 23:12 Mudama, Eric
2003-05-19 19:56 Mudama, Eric
2003-05-19 20:04 ` Jeffrey W. Baker
2003-05-19 19:45   ` Alan Cox
2003-05-19 22:29     ` Tomas Szepe
2003-05-19 23:00       ` Jeffrey W. Baker
2003-05-20  1:25 ` lars hofhansl
2003-05-15  7:56 Lars

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).