Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-07 Thread Stephen Hemminger
On Wed, 06 Dec 2006 23:24:59 -0800 (PST) David Miller <[EMAIL PROTECTED]> wrote: > From: "Amit S. Kale" <[EMAIL PROTECTED]> > Date: Thu, 7 Dec 2006 11:55:22 +0530 > > > We can let a driver handle dma mapping errors using these-> > > > > 1.Reduce the size of a receive ring. This will free some po

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-07 Thread Muli Ben-Yehuda
On Thu, Dec 07, 2006 at 11:48:14AM +0530, Amit S. Kale wrote: > On the x86_64 boxes that don't feature iommu functionality (because the > motherboard disables it or because Linux can't handle it) Linux bounce buffer > framework automatically comes into picture. Could we have the same framework

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread David Miller
From: "Amit S. Kale" <[EMAIL PROTECTED]> Date: Thu, 7 Dec 2006 11:55:22 +0530 > We can let a driver handle dma mapping errors using these-> > > 1.Reduce the size of a receive ring. This will free some possibly remapped > memory, reducing pressure on iommu. We also need to printk a message so tha

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Amit S. Kale
On Thursday 07 December 2006 12:16, Stephen Hemminger wrote: > Amit S. Kale wrote: > > We can let a driver handle dma mapping errors using these-> > > > > 1.Reduce the size of a receive ring. This will free some possibly > > remapped memory, reducing pressure on iommu. We also need to printk a > >

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Stephen Hemminger
Amit S. Kale wrote: We can let a driver handle dma mapping errors using these-> 1.Reduce the size of a receive ring. This will free some possibly remapped memory, reducing pressure on iommu. We also need to printk a message so that a user knows the reason why receive ring was shrunk. Growing i

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Amit S. Kale
We can let a driver handle dma mapping errors using these-> 1.Reduce the size of a receive ring. This will free some possibly remapped memory, reducing pressure on iommu. We also need to printk a message so that a user knows the reason why receive ring was shrunk. Growing it when iommu pressure

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Amit S. Kale
On Thursday 07 December 2006 01:03, Muli Ben-Yehuda wrote: > On Wed, Dec 06, 2006 at 10:16:44AM -0800, Stephen Hemminger wrote: > > I think it is really only an issue for drivers that turn on HIGH_DMA > > and have limited mask values. The majority of drivers either only > > handle 32 bit (!HIGH_DMA

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread David Miller
From: Rick Jones <[EMAIL PROTECTED]> Date: Wed, 06 Dec 2006 18:18:52 -0800 > While tossing a TCP|UDP|SCTP|etc packet could be plusungood, especially > if the IOMMU fills frequently (for some suitable definiton of > frequently), is it really worth the effort to save say an ACK? ACKs are less imp

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Rick Jones
David Miller wrote: From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 6 Dec 2006 16:58:35 -0800 The more robust way would be to stop the queue (like flow control) and return busy. You would need a timer though to handle the case where some disk i/o stole all the mappings and then network

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 6 Dec 2006 16:58:35 -0800 > The more robust way would be to stop the queue (like flow control) > and return busy. You would need a timer though to handle the case > where some disk i/o stole all the mappings and then network device flow > bloc

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Stephen Hemminger
On Wed, 06 Dec 2006 16:54:18 -0800 (PST) David Miller <[EMAIL PROTECTED]> wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Wed, 6 Dec 2006 10:16:44 -0800 > > > I think it is really only an issue for drivers that turn on HIGH_DMA > > and have limited mask values. The majority of driver

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 6 Dec 2006 10:16:44 -0800 > I think it is really only an issue for drivers that turn on HIGH_DMA > and have limited mask values. The majority of drivers either only handle > 32 bit (!HIGH_DMA) or do full 64 bit mapping. I don't know the detail

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Muli Ben-Yehuda
On Wed, Dec 06, 2006 at 10:16:44AM -0800, Stephen Hemminger wrote: > I think it is really only an issue for drivers that turn on HIGH_DMA > and have limited mask values. The majority of drivers either only > handle 32 bit (!HIGH_DMA) or do full 64 bit mapping. I don't know > the details of how we

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-06 Thread Stephen Hemminger
On Tue, 5 Dec 2006 09:00:45 +0200 Muli Ben-Yehuda <[EMAIL PROTECTED]> wrote: > On Mon, Dec 04, 2006 at 10:39:49AM -0800, Stephen Hemminger wrote: > > > I notice that no current network driver handles dma mapping errors. > > Might that be part of the problem. On i386, this never happens, and > >

Re: network devices don't handle pci_dma_mapping_error()'s

2006-12-04 Thread Muli Ben-Yehuda
On Mon, Dec 04, 2006 at 10:39:49AM -0800, Stephen Hemminger wrote: > I notice that no current network driver handles dma mapping errors. > Might that be part of the problem. On i386, this never happens, and > it would be rare on most others. IOMMUs are already available on x86-64 and are going t

network devices don't handle pci_dma_mapping_error()'s

2006-12-04 Thread Stephen Hemminger
On Sat, 02 Dec 2006 00:32:55 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: > Amit S. Kale wrote: > > NetXen: 1G/10G Ethernet driver updates > > - These fixes take care of driver on machines with >4G memory > > - Driver cleanup > > > > Signed-off-by: Amit S. Kale <[EMAIL PROTECTED]> > > >