login
Header Space

 
 

Re: atl1 64-bit => 32-bit DMA borkage (reproducible, bisected)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Dobriyan <adobriyan@...>
Cc: Luca Tettamanti <kronos.it@...>, Chris Snook <csnook@...>, Jeff Garzik <jeff@...>, Pekka Enberg <penberg@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <netdev@...>, Christoph Lameter <clameter@...>, <torvalds@...>
Date: Monday, April 21, 2008 - 10:08 pm

On Mon, 21 Apr 2008 00:55:00 +0400
Alexey Dobriyan <adobriyan@gmail.com> wrote:


Alexey, can you please try this (very minimally tested) patch?

diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 5586fc6..07fe5c0 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -1115,9 +1115,6 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter)
 	struct atl1_rrd_ring *rrd_ring = &adapter->rrd_ring;
 	struct atl1_ring_header *ring_header = &adapter->ring_header;
 
-	atl1_clean_tx_ring(adapter);
-	atl1_clean_rx_ring(adapter);
-
 	kfree(tpd_ring->buffer_info);
 	pci_free_consistent(pdev, ring_header->size, ring_header->desc,
 		ring_header->dma);
@@ -3423,6 +3420,8 @@ static int atl1_set_ringparam(struct net_device *netdev,
 		adapter->rrd_ring = rrd_old;
 		adapter->tpd_ring = tpd_old;
 		adapter->ring_header = rhdr_old;
+		atl1_clean_tx_ring(adapter);
+		atl1_clean_rx_ring(adapter);
 		atl1_free_ring_resources(adapter);
 		adapter->rfd_ring = rfd_new;
 		adapter->rrd_ring = rrd_new;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25-rc8-mm2: FIX kmalloc-2048 (was Re: 2.6.25-rc8-mm2..., Christoph Lameter, (Mon Apr 14, 4:05 pm)
atl1 64-bit =&gt; 32-bit DMA borkage (reproducible, bisected), Alexey Dobriyan, (Sat Apr 19, 10:45 am)
Re: atl1 64-bit => 32-bit DMA borkage (reproducible, bisected), Jay Cliburn, (Mon Apr 21, 10:08 pm)
speck-geostationary