提交 de7548d0 编写于 作者: M Mike Habeck 提交者: Tony Luck

[IA64-SGI] Altix only: Fix for sn_dma_flush

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: NMike Habeck <habeck@sgi.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 bb0fc085
...@@ -301,7 +301,7 @@ void sn_dma_flush(uint64_t addr) ...@@ -301,7 +301,7 @@ void sn_dma_flush(uint64_t addr)
spin_lock_irqsave(&((struct sn_flush_device_list *)p)-> spin_lock_irqsave(&((struct sn_flush_device_list *)p)->
sfdl_flush_lock, flags); sfdl_flush_lock, flags);
p->sfdl_flush_value = 0; *p->sfdl_flush_addr = 0;
/* force an interrupt. */ /* force an interrupt. */
*(volatile uint32_t *)(p->sfdl_force_int_addr) = 1; *(volatile uint32_t *)(p->sfdl_force_int_addr) = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册