All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
@ 2019-07-23  7:12 Leon Romanovsky
  2019-07-23 18:28 ` David Miller
  0 siblings, 1 reply; 9+ messages in thread
From: Leon Romanovsky @ 2019-07-23  7:12 UTC (permalink / raw)
  To: Doug Ledford, Jason Gunthorpe
  Cc: Edward Srouji, RDMA mailing list, Yishai Hadas, Saeed Mahameed,
	linux-netdev, Leon Romanovsky

From: Edward Srouji <edwards@mellanox.com>

Fix modify_cq_in alignment to match the device specification.
After this fix the 'cq_umem_valid' field will be in the right offset.

Cc: <stable@vger.kernel.org> # 4.19
Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits")
Signed-off-by: Edward Srouji <edwards@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
---
 include/linux/mlx5/mlx5_ifc.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index b3d5752657d9..ec571fd7fcf8 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -5975,10 +5975,12 @@ struct mlx5_ifc_modify_cq_in_bits {

 	struct mlx5_ifc_cqc_bits cq_context;

-	u8         reserved_at_280[0x40];
+	u8         reserved_at_280[0x60];

 	u8         cq_umem_valid[0x1];
-	u8         reserved_at_2c1[0x5bf];
+	u8         reserved_at_2e1[0x1f];
+
+	u8         reserved_at_300[0x580];

 	u8         pas[0][0x40];
 };
--
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23  7:12 [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment Leon Romanovsky
@ 2019-07-23 18:28 ` David Miller
  2019-07-23 19:04   ` Leon Romanovsky
  0 siblings, 1 reply; 9+ messages in thread
From: David Miller @ 2019-07-23 18:28 UTC (permalink / raw)
  To: leon; +Cc: dledford, jgg, edwards, linux-rdma, yishaih, saeedm, netdev, leonro

From: Leon Romanovsky <leon@kernel.org>
Date: Tue, 23 Jul 2019 10:12:55 +0300

> From: Edward Srouji <edwards@mellanox.com>
> 
> Fix modify_cq_in alignment to match the device specification.
> After this fix the 'cq_umem_valid' field will be in the right offset.
> 
> Cc: <stable@vger.kernel.org> # 4.19
> Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits")
> Signed-off-by: Edward Srouji <edwards@mellanox.com>
> Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>

Very confusing submission on many levels.

Coming from a Mellanox developer using a kernel.org email address.

Targetting the mlx5-next tree, yet CC:'ing stable.

A networking change, for which stable submissions are handled by me by
hand and not via CC:'ing stable.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 18:28 ` David Miller
@ 2019-07-23 19:04   ` Leon Romanovsky
  2019-07-23 20:02     ` David Miller
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Leon Romanovsky @ 2019-07-23 19:04 UTC (permalink / raw)
  To: David Miller; +Cc: dledford, jgg, edwards, linux-rdma, yishaih, saeedm, netdev

On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote:
> From: Leon Romanovsky <leon@kernel.org>
> Date: Tue, 23 Jul 2019 10:12:55 +0300
>
> > From: Edward Srouji <edwards@mellanox.com>
> >
> > Fix modify_cq_in alignment to match the device specification.
> > After this fix the 'cq_umem_valid' field will be in the right offset.
> >
> > Cc: <stable@vger.kernel.org> # 4.19
> > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits")
> > Signed-off-by: Edward Srouji <edwards@mellanox.com>
> > Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
> > Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
>
> Very confusing submission on many levels.
>
> Coming from a Mellanox developer using a kernel.org email address.

It works for us and was proven internally as the best way to have
setup which always works.

>
> Targetting the mlx5-next tree, yet CC:'ing stable.

This patch was found by RDMA team, needed by RDMA but changes are located
in code accessible by mlx5_core part. This is why mlx5-next.

>
> A networking change, for which stable submissions are handled by me by
> hand and not via CC:'ing stable.

The intention was to have this patch in shared mlx5 branch, which is
picked by RDMA too. This "Cc: stable@..." together with merge through
RDMA will ensure that such patch will be part of stable automatically.

I can remove "Cc: ..." line if you think that it is inappropriate to
have such line in patch in mlx5-next.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 19:04   ` Leon Romanovsky
@ 2019-07-23 20:02     ` David Miller
  2019-07-23 20:34       ` Saeed Mahameed
  2019-07-23 20:25     ` Saeed Mahameed
  2019-07-24 20:56     ` Saeed Mahameed
  2 siblings, 1 reply; 9+ messages in thread
From: David Miller @ 2019-07-23 20:02 UTC (permalink / raw)
  To: leon; +Cc: dledford, jgg, edwards, linux-rdma, yishaih, saeedm, netdev

From: Leon Romanovsky <leon@kernel.org>
Date: Tue, 23 Jul 2019 22:04:14 +0300

> The intention was to have this patch in shared mlx5 branch, which is
> picked by RDMA too. This "Cc: stable@..." together with merge through
> RDMA will ensure that such patch will be part of stable automatically.

Why wouldn't it come via Saeed's usual mlx5 bug fix pull requests to me?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 19:04   ` Leon Romanovsky
  2019-07-23 20:02     ` David Miller
@ 2019-07-23 20:25     ` Saeed Mahameed
  2019-07-24 20:56     ` Saeed Mahameed
  2 siblings, 0 replies; 9+ messages in thread
From: Saeed Mahameed @ 2019-07-23 20:25 UTC (permalink / raw)
  To: davem, leon
  Cc: Jason Gunthorpe, Yishai Hadas, netdev, linux-rdma, dledford,
	Edward Srouji

On Tue, 2019-07-23 at 22:04 +0300, Leon Romanovsky wrote:
> On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote:
> > From: Leon Romanovsky <leon@kernel.org>
> > Date: Tue, 23 Jul 2019 10:12:55 +0300
> > 
> > > From: Edward Srouji <edwards@mellanox.com>
> > > 
> > > Fix modify_cq_in alignment to match the device specification.
> > > After this fix the 'cq_umem_valid' field will be in the right
> > > offset.
> > > 
> > > Cc: <stable@vger.kernel.org> # 4.19
> > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID
> > > bits")
> > > Signed-off-by: Edward Srouji <edwards@mellanox.com>
> > > Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
> > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> > 
> > Very confusing submission on many levels.
> > 
> > Coming from a Mellanox developer using a kernel.org email address.
> 
> It works for us and was proven internally as the best way to have
> setup which always works.
> 
> > Targetting the mlx5-next tree, yet CC:'ing stable.
> 
> This patch was found by RDMA team, needed by RDMA but changes are
> located
> in code accessible by mlx5_core part. This is why mlx5-next.
> 

Leon, 
mlx5-next "hence the -next" is NOT meant for fixes, it is indeed
confusing what you are trying to do here, Dave's system works perfectly
for us. 

> > A networking change, for which stable submissions are handled by me
> > by
> > hand and not via CC:'ing stable.
> 
> The intention was to have this patch in shared mlx5 branch, which is
> picked by RDMA too. This "Cc: stable@..." together with merge through
> RDMA will ensure that such patch will be part of stable
> automatically.
> 
> I can remove "Cc: ..." line if you think that it is inappropriate to
> have such line in patch in mlx5-next.

No, if this was meant to land in -stable then it should go to -rc via
net branch not to mlx5-next, let's save everybody's time and energy
here. no point in arguing.. 

I will take this to my net queue and submit to Dave's net branch, as we
always do for mlx5 fixes.

for next time, mlx5 fixes should always go to net branch first, then it
is just a matter of days to see the fix in -rc and queued up to
-stable.

> 
> Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 20:02     ` David Miller
@ 2019-07-23 20:34       ` Saeed Mahameed
  2019-07-24  4:26         ` Leon Romanovsky
  0 siblings, 1 reply; 9+ messages in thread
From: Saeed Mahameed @ 2019-07-23 20:34 UTC (permalink / raw)
  To: davem, leon
  Cc: Jason Gunthorpe, Yishai Hadas, netdev, linux-rdma, dledford,
	Edward Srouji

On Tue, 2019-07-23 at 13:02 -0700, David Miller wrote:
> From: Leon Romanovsky <leon@kernel.org>
> Date: Tue, 23 Jul 2019 22:04:14 +0300
> 
> > The intention was to have this patch in shared mlx5 branch, which
> > is
> > picked by RDMA too. This "Cc: stable@..." together with merge
> > through
> > RDMA will ensure that such patch will be part of stable
> > automatically.
> 
> Why wouldn't it come via Saeed's usual mlx5 bug fix pull requests to
> me?

That should have been the plan in first place, i will handle this,
thanks Dave and sorry for any inconvenience.

I will apply this patch to my (mlx5) net queue, will submit to net
shortly.

Leon can merge the next -rc when this patch lands there.
meanwhile, Leon can also merge my (mlx5) net queue which is always
based on latest -rc.
https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/log/?h=net-mlx5



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 20:34       ` Saeed Mahameed
@ 2019-07-24  4:26         ` Leon Romanovsky
  0 siblings, 0 replies; 9+ messages in thread
From: Leon Romanovsky @ 2019-07-24  4:26 UTC (permalink / raw)
  To: Saeed Mahameed
  Cc: davem, Jason Gunthorpe, Yishai Hadas, netdev, linux-rdma,
	dledford, Edward Srouji

On Tue, Jul 23, 2019 at 08:34:07PM +0000, Saeed Mahameed wrote:
> On Tue, 2019-07-23 at 13:02 -0700, David Miller wrote:
> > From: Leon Romanovsky <leon@kernel.org>
> > Date: Tue, 23 Jul 2019 22:04:14 +0300
> >
> > > The intention was to have this patch in shared mlx5 branch, which
> > > is
> > > picked by RDMA too. This "Cc: stable@..." together with merge
> > > through
> > > RDMA will ensure that such patch will be part of stable
> > > automatically.
> >
> > Why wouldn't it come via Saeed's usual mlx5 bug fix pull requests to
> > me?
>
> That should have been the plan in first place, i will handle this,
> thanks Dave and sorry for any inconvenience.
>
> I will apply this patch to my (mlx5) net queue, will submit to net
> shortly.

OK, whatever works for you best.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-23 19:04   ` Leon Romanovsky
  2019-07-23 20:02     ` David Miller
  2019-07-23 20:25     ` Saeed Mahameed
@ 2019-07-24 20:56     ` Saeed Mahameed
  2019-07-25  3:02       ` Leon Romanovsky
  2 siblings, 1 reply; 9+ messages in thread
From: Saeed Mahameed @ 2019-07-24 20:56 UTC (permalink / raw)
  To: davem, leon
  Cc: Jason Gunthorpe, Yishai Hadas, netdev, linux-rdma, dledford,
	Edward Srouji

On Tue, 2019-07-23 at 22:04 +0300, Leon Romanovsky wrote:
> On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote:
> > From: Leon Romanovsky <leon@kernel.org>
> > Date: Tue, 23 Jul 2019 10:12:55 +0300
> > 
> > > From: Edward Srouji <edwards@mellanox.com>
> > > 
> > > Fix modify_cq_in alignment to match the device specification.
> > > After this fix the 'cq_umem_valid' field will be in the right
> > > offset.
> > > 
> > > Cc: <stable@vger.kernel.org> # 4.19
> > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID
> > > bits")

Leon, I applied this patch to my tree, it got marked for -stable 4.20
and not 4.19, i checked manually and indeed the offending patch came to
light only on 4.20


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
  2019-07-24 20:56     ` Saeed Mahameed
@ 2019-07-25  3:02       ` Leon Romanovsky
  0 siblings, 0 replies; 9+ messages in thread
From: Leon Romanovsky @ 2019-07-25  3:02 UTC (permalink / raw)
  To: Saeed Mahameed
  Cc: davem, Jason Gunthorpe, Yishai Hadas, netdev, linux-rdma,
	dledford, Edward Srouji

On Wed, Jul 24, 2019 at 08:56:08PM +0000, Saeed Mahameed wrote:
> On Tue, 2019-07-23 at 22:04 +0300, Leon Romanovsky wrote:
> > On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote:
> > > From: Leon Romanovsky <leon@kernel.org>
> > > Date: Tue, 23 Jul 2019 10:12:55 +0300
> > >
> > > > From: Edward Srouji <edwards@mellanox.com>
> > > >
> > > > Fix modify_cq_in alignment to match the device specification.
> > > > After this fix the 'cq_umem_valid' field will be in the right
> > > > offset.
> > > >
> > > > Cc: <stable@vger.kernel.org> # 4.19
> > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID
> > > > bits")
>
> Leon, I applied this patch to my tree, it got marked for -stable 4.20
> and not 4.19, i checked manually and indeed the offending patch came to
> light only on 4.20

Thanks

>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-25  3:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23  7:12 [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment Leon Romanovsky
2019-07-23 18:28 ` David Miller
2019-07-23 19:04   ` Leon Romanovsky
2019-07-23 20:02     ` David Miller
2019-07-23 20:34       ` Saeed Mahameed
2019-07-24  4:26         ` Leon Romanovsky
2019-07-23 20:25     ` Saeed Mahameed
2019-07-24 20:56     ` Saeed Mahameed
2019-07-25  3:02       ` Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.