Skip to content

Commit

Permalink
[IA64-SGI] Altix only: Fix for sn_dma_flush
Browse files Browse the repository at this point in the history
The following patch fixes a bug in the SGI Altix sn_dma_flush code.  
sn_dma_flush is broken in 2.6.  The code isn't waiting for the DMA 
data to be flushed out of the PIC ASIC. This patch is based off the 
linux-ia64-test-2.6.12 tree

Signed-off-by: Mike Habeck <habeck@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Mike Habeck authored and Tony Luck committed May 3, 2005
1 parent bb0fc08 commit de7548d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/sn/pci/pcibr/pcibr_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void sn_dma_flush(uint64_t addr)
spin_lock_irqsave(&((struct sn_flush_device_list *)p)->
sfdl_flush_lock, flags);

p->sfdl_flush_value = 0;
*p->sfdl_flush_addr = 0;

/* force an interrupt. */
*(volatile uint32_t *)(p->sfdl_force_int_addr) = 1;
Expand Down

0 comments on commit de7548d

Please sign in to comment.