Re: [Linux-ia64] Re: 64 Bits DMA Addresses for Alloc Consistent Interfaces.

From: Jeremy Higdon <jeremy_at_classic.engr.sgi.com>
Date: 2003-05-17 09:40:25
> --- /usr/tmp/TmpDir.15862-0/linux/drivers/net/tg3.c_1.20	2003-05-16 15:37:45.000000000 -0700
> +++ linux/drivers/net/tg3.c	2003-05-16 15:35:40.000000000 -0700
> @@ -6401,7 +6401,7 @@
>  	tw32(FTQ_RESET, 0);
>  
>  	/* pci_alloc_consistent gives only non-DAC addresses */
> -	test_desc.addr_hi = 0;
> +	test_desc.addr_hi = ((u64) buf_dma >> 32);
>  	test_desc.addr_lo = buf_dma & 0xffffffff;
>  	test_desc.nic_mbuf = 0x00002100;
>  	test_desc.len = size;
> 

I guess this is better:
--- /usr/tmp/TmpDir.15906-0/linux/drivers/net/tg3.c_1.20	2003-05-16 15:41:19.000000000 -0700
+++ linux/drivers/net/tg3.c	2003-05-16 15:39:13.000000000 -0700
@@ -6400,8 +6400,7 @@
 	tw32(BUFMGR_MODE, 0);
 	tw32(FTQ_RESET, 0);
 
-	/* pci_alloc_consistent gives only non-DAC addresses */
-	test_desc.addr_hi = 0;
+	test_desc.addr_hi = ((u64) buf_dma >> 32);
 	test_desc.addr_lo = buf_dma & 0xffffffff;
 	test_desc.nic_mbuf = 0x00002100;
 	test_desc.len = size;
Received on Fri May 16 16:43:51 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST