Hello.
Bartlomiej Zolnierkiewicz wrote:
quoted text > [PATCH] ide: don't allow DMA to be enabled if CONFIG_IDEDMA_{ICS,PCI}_AUTO=n
quoted text > For CONFIG_IDEDMA_{ICS,PCI}_AUTO=n and/or "ide=nodma" option the host/device
Not only that: it also would affect CompactFlash with no DMA support but
with DMA autotuning enabled in IDE core...
quoted text > are not programmed for DMA and it is also explicitly disabled by ide_set_dma()
> (->ide_dma_check returns "-1"). However the code responsible for manually
> enabling DMA ("hdparm -d 1") has a bug which results in DMA being erroneously
> enabled - ide_set_dma() incorrectly passes "0" return value to set_using_dma().
Heh, I've just run into this myself while trying to retro-fit Palmchip
BK3710 IDE driver into 2.6.18 properly.
quoted text > This may work if BIOS/firmware configured the host/device for DMA and chipset
> allows independent configuration of DMA/PIO modes but won't work after suspend
> and is generally unsafe on many chipsets (possibly including data corruption
> if the same registers are used for DMA/PIO timings).
Timeouts ensued in my case...
WBR, Sergei
--
unsubscribe notice 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/
Messages in current thread:
Re: [PATCH 1/2] ide: don't allow DMA to be enabled if CONF ... , Sergei Shtylyov , (Sun Aug 10, 9:30 am)