Re: DMA woes
On Tue, Dec 17, 2002 at 01:34:09PM -0500, Gregory Seidman wrote:
> Michael P. Soulier sez:
> } On 17/12/02 Gregory Seidman did speaketh:
> } > Thank you, I know. And it was. I even indicated it by including the #
> } > prompt instead of the % prompt.
> }
> } Is this a custom kernel? You need support for your IDE controller
> } before this will work. See if it's recognized at boot by checking the
> } dmesg output.
>
> % dmesg | grep -i ide
> ide0: unexpected interrupt, status=0x58, count=1
> ide0: Speed warnings UDMA 3/4/5 is not functional.
> ide0: Speed warnings UDMA 3/4/5 is not functional.
> ide0: unexpected interrupt, status=0x58, count=2
>
> Something is clearly wrong. However:
>
> # hdparm -i /dev/hda | grep -i dma
> IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
> DMA modes: mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
>
> I don't know I need to compile into the kernel to get support for my IDE
> controller (partly because I don't know much of anything about my IDE
> controller). All I know is:
>
> % lspci | grep IDE
> 00:1f.1 IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 01)
I've got
00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02)
so it looks like you have a newer version. The AA works fine; I'm
running 2.4.19.
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH: IDE controller on PCI bus 00 dev f9
ICH: chipset revision 2
ICH: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1800-0x1807, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x1808-0x180f, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD600BB-00CAA0, ATA DISK drive
hdc: CD-RW BCE2410IM, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=40079/225/13, UDMA(66)
The relevant bits of my kernel config (sorry for the length):
#
# 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_RZ1000 is not set
CONFIG_BLK_DEV_IDEPCI=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=y
# CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_AEC62XX_TUNING 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_CMD680 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=y
CONFIG_PIIX_TUNING=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_SVWKS 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
The PIIX supprt is for Intel 82801XX stuff.
If you've never compiled a kernel before; never fear ... just install
'kernel-package', 'fakeroot', and either install a kernel-source
package or grab kernel source from kernel.org. We're here to help :)
--
Nathan Norman - Incanus Networking mailto:nnorman@incanus.net
Q: What's the big deal about rm, I have been deleting stuff for
years? And never lost anything.. oops!
A: ...
-- Frequently Unasked Questions
Reply to:
- References:
- DMA woes
- From: Gregory Seidman <gss+debian@cs.brown.edu>
- Re: DMA woes
- From: Antoine Jacoutot <ajacoutot@lphp.org>
- Re: DMA woes
- From: Gregory Seidman <gss+debian@cs.brown.edu>
- Re: DMA woes
- From: "Michael P. Soulier" <msoulier@storm.ca>
- Re: DMA woes
- From: Gregory Seidman <gss+debian@cs.brown.edu>