Skip to content

Altix only: Fix for sn_dma_flush

Mike Habeck linux-ia64 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 patches 0 repliesNew

Patches in v1 No applies recorded yet

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 2.6.12 0/0] Altix only: Fix for sn_dma_flush

Tony,

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

arch/ia64/sn/pci/pcibr/pcibr_dma.c +1 -1
Index: test-2.6.12/arch/ia64/sn/pci/pcibr/pcibr_dma.c
===================================================================
@@ -301,7 +301,7 @@
 		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;