Re: [PATCH RFC 50/77] mlx5: Update MSI/MSI-X interrupts enablement code

2013-10-10 Thread Eli Cohen
On Thu, Oct 03, 2013 at 09:48:39PM +0200, Alexander Gordeev wrote: > > pci_enable_msix() may fail, but it can not return a positive number. > That is true according to the current logic but the comment on top of pci_enable_msix() still says: "A return of < 0 indicates a failure. Or a return of >

Re: [PATCH RFC 50/77] mlx5: Update MSI/MSI-X interrupts enablement code

2013-10-03 Thread Eli Cohen
On Wed, Oct 02, 2013 at 12:49:06PM +0200, Alexander Gordeev wrote: > > + err = pci_msix_table_size(dev->pdev); > + if (err < 0) > + return err; > + > nvec = dev->caps.num_ports * num_online_cpus() + MLX5_EQ_VEC_COMP_BASE; > nvec = min_t(int, nvec, num_eqs); > +

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-10 Thread Eli Cohen
On Mon, Oct 10, 2011 at 11:24:05AM +0200, Benjamin Herrenschmidt wrote: > On Mon, 2011-10-10 at 11:16 +0200, Eli Cohen wrote: > > > Until then I think we need to have the logic working right on ppc and > > measure if blue flame buys us any improvement in ppc. If that'

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-10 Thread Eli Cohen
On Mon, Oct 10, 2011 at 11:01:24AM +0200, Benjamin Herrenschmidt wrote: > > The case where things get a bit more nasty is when you try to use MMIO > for low latency small-data type transfers instead of DMA, in which case > you do want the ability for the chipset to write-combine and control the >

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-10 Thread Eli Cohen
On Mon, Oct 10, 2011 at 09:40:17AM +0100, David Laight wrote: > > Actually memory barriers shouldn't really be added to > any of these 'accessor' functions. > (Or, at least, ones without barriers should be provided.) > > The driver may want to to a series of writes, then a > single barrier, befor

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-09 Thread Eli Cohen
On Sun, Oct 09, 2011 at 11:52:19AM +0200, Benjamin Herrenschmidt wrote: > > > > To go back to the driver code, the statements that ring a "bell" are: > > > > > > *(u32 *) (&tx_desc->ctrl.vlan_tag) |= ring->doorbell_qpn; > > > > > > This doesn't look right unless "doorbell_qpn" itself is alread

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-09 Thread Eli Cohen
On Sun, Oct 09, 2011 at 10:38:56AM +0200, Benjamin Herrenschmidt wrote: > On Sun, 2011-10-09 at 10:07 +0200, Eli Cohen wrote: > > > > Well, first, what do you mean by "swapped" ? :-) But no, it won't for > > > all intend and purpose, this is a copy routine,

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-09 Thread Eli Cohen
On Sun, Oct 09, 2011 at 10:00:54AM +0200, Benjamin Herrenschmidt wrote: > On Sun, 2011-10-09 at 09:35 +0200, Eli Cohen wrote: > > On Sun, Oct 09, 2011 at 09:25:18AM +0200, Benjamin Herrenschmidt wrote: > > > On Thu, 2011-10-06 at 15:57 +0200, Eli Cohen wrote: > > > >

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-09 Thread Eli Cohen
On Sun, Oct 09, 2011 at 09:25:18AM +0200, Benjamin Herrenschmidt wrote: > On Thu, 2011-10-06 at 15:57 +0200, Eli Cohen wrote: > > On Wed, Oct 05, 2011 at 10:15:02AM +0200, Eli Cohen wrote: > > > > How about this patch - can you give it a try

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-06 Thread Eli Cohen
On Wed, Oct 05, 2011 at 10:15:02AM +0200, Eli Cohen wrote: How about this patch - can you give it a try? >From dee60547aa9e35a02835451d9e694cd80dd3072f Mon Sep 17 00:00:00 2001 From: Eli Cohen Date: Thu, 6 Oct 2011 15:50:02 +0200 Subject: [PATCH] mlx4_en: Fix blue flame on powerpc The sou

Re: [PATCH] mlx4_en: fix transmit of packages when blue frame is enabled

2011-10-05 Thread Eli Cohen
On Tue, Oct 04, 2011 at 05:26:20PM -0300, Thadeu Lima de Souza Cascardo wrote: I believe we have an endianess problem here. The source buffer is in big endian - in x86 archs, it will rich the pci device unswapped since both x86 and pci are little endian. In ppc, it wil be swapped by the chipset so