Skip to content
  • Alan Cox's avatar
    pata_cmd64x: implement serialization as per notes · d4374439
    Alan Cox authored
    
    
    Daniela Engert pointed out that there are some implementation notes for the
    643 and 646 that deal with certain serialization rules. In theory we don't
    need them because they apply when the motherboard decides not to retry PCI
    requests for long enough and the chip is busy doing a DMA transfer on the
    other channel.
    
    The rule basically is "don't touch the taskfile of the other channel while
    a DMA is in progress". To implement that we need to
    
    - not issue a command on a channel when there is a DMA command queued
    - not issue a DMA command on a channel when there are PIO commands queued
    - use the alternative access to the interrupt source so that we do not
      touch altstatus or status on shared IRQ.
    
    Updated to remote extra conditional check Bartlomiej noted and to remove
    the variables for irq checks as the CMD648 doesn't have the underlying problem.
    
    Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    d4374439