Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sergei Shtylyov
Date: Thursday, January 25, 2007 - 8:40 am

Hello.

Sergei Shtylyov wrote:






    BTW, on PCI0646U2 and later chips, the interrupt status (it's not really 
DMA interrupt status but a latched INTRQ signal not "coupled" with DMA logic, 
according to the datasheets) can be read from MRDMODE reg. which is accessible 
in I/O space at BMIDE base + 1 which is certainly faster.  That's what 
drivers/ide/cmd64x.c is doing in its test_dma_irq() method (however, it's 
doign this on PCI0643 and early revs of PCI0646 which don't have these bits).
The driver's dma_end() method is acting really strange: it checks if the cjip 
is PCI-648/9 and reads the PCI config space to clear those interrupt bits 
while these chips have them in I/O mapped MRDMODE; OTOH, it ignores these bits 
on earlier chips which have them in oonfig. space only (CFR/ARTTIM23 regs)... 
go figure.  I'm going to clean this up but don't heve the h/w handy... :-/



    Sent rev. 1.3... Hopefully gkernel.sourceforge.net/specs/ will be updated.

MBR, Sergei
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/15] IDE quilt tree updated, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:30 pm)
[PATCH 1/15] ACPI support for IDE devices, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 2/15] via82cxxx/pata_via: correct PCI_DEVICE_ID_VIA ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 3/15] it8213: fix build and ->ultra_mask, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 4/15] ide: convert ide_hwif_t.mmio into flag, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 5/15] hpt34x: hpt34x_tune_chipset() (->speedproc) fix, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 6/15] atiixp/jmicron/triflex: fix PIO fallback, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 7/15] piix: cleanup, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 8/15] ide: disable DMA in ->ide_dma_check for "no I ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:31 pm)
[PATCH 9/15] sgiioc4: fix sgiioc4_ide_dma_check() to enabl ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 10/15] ide: add ide_set_dma() helper, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 11/15] ide: make ide_hwif_t.ide_dma_{host_off,off_q ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 14/15] ide: rework the code for selecting the best ..., Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
[PATCH 15/15] ide: add ide_tune_dma() helper, Bartlomiej Zolnierki ..., (Thu Jan 18, 5:32 pm)
Re: [PATCH 10/15] ide: add ide_set_dma() helper, Sergei Shtylyov, (Sat Jan 20, 1:22 pm)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Sat Jan 20, 1:46 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 9:19 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 11:17 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Mon Jan 22, 1:28 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Jeff Garzik, (Mon Jan 22, 3:39 pm)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Tue Jan 23, 7:51 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Thu Jan 25, 8:40 am)
Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks, Sergei Shtylyov, (Wed Jan 31, 1:38 pm)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Mon Mar 26, 10:19 am)
Re: [PATCH 12/15] ide: make ide_hwif_t.ide_dma_host_on void, Sergei Shtylyov, (Fri Apr 20, 1:36 pm)