* [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits
@ 2018-10-31 10:20 Leon Romanovsky
2018-11-06 21:31 ` Doug Ledford
0 siblings, 1 reply; 7+ messages in thread
From: Leon Romanovsky @ 2018-10-31 10:20 UTC (permalink / raw)
To: Doug Ledford, Jason Gunthorpe
Cc: Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed,
linux-netdev, Leon Romanovsky
From: Yishai Hadas <yishaih@mellanox.com>
Adapt XRC SRQ to the latest HW specification with fixed definition
around umem valid bits. The previous definition relied on a bit which
was taken for other purposes in legacy FW.
Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
---
Hi Doug, Jason
This commit fixes code sent in this merge window, so I'm not marking it
with any rdma-rc/rdma-next. It will be better to be sent during this merge
window if you have extra pull request to issue, or as a -rc material, if
not.
BTW, we didn't combine reserved fields, because our convention is to align such
fields to 32 bits for better readability.
Thanks
---
include/linux/mlx5/mlx5_ifc.h | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 0f460fb22c31..248116bc13a8 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -2470,14 +2470,15 @@ struct mlx5_ifc_xrc_srqc_bits {
u8 wq_signature[0x1];
u8 cont_srq[0x1];
- u8 dbr_umem_valid[0x1];
+ u8 reserved_at_22[0x1];
u8 rlky[0x1];
u8 basic_cyclic_rcv_wqe[0x1];
u8 log_rq_stride[0x3];
u8 xrcd[0x18];
u8 page_offset[0x6];
- u8 reserved_at_46[0x2];
+ u8 reserved_at_46[0x1];
+ u8 dbr_umem_valid[0x1];
u8 cqn[0x18];
u8 reserved_at_60[0x20];
@@ -6685,9 +6686,12 @@ struct mlx5_ifc_create_xrc_srq_in_bits {
struct mlx5_ifc_xrc_srqc_bits xrc_srq_context_entry;
- u8 reserved_at_280[0x40];
+ u8 reserved_at_280[0x60];
+
u8 xrc_srq_umem_valid[0x1];
- u8 reserved_at_2c1[0x5bf];
+ u8 reserved_at_2e1[0x1f];
+
+ u8 reserved_at_300[0x580];
u8 pas[0][0x40];
};
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-10-31 10:20 [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits Leon Romanovsky @ 2018-11-06 21:31 ` Doug Ledford 2018-11-06 22:02 ` Jason Gunthorpe 0 siblings, 1 reply; 7+ messages in thread From: Doug Ledford @ 2018-11-06 21:31 UTC (permalink / raw) To: Leon Romanovsky, Jason Gunthorpe Cc: Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev, Leon Romanovsky [-- Attachment #1: Type: text/plain, Size: 1175 bytes --] On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > From: Yishai Hadas <yishaih@mellanox.com> > > Adapt XRC SRQ to the latest HW specification with fixed definition > around umem valid bits. The previous definition relied on a bit which > was taken for other purposes in legacy FW. > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > --- > Hi Doug, Jason > > This commit fixes code sent in this merge window, so I'm not marking it > with any rdma-rc/rdma-next. It will be better to be sent during this merge > window if you have extra pull request to issue, or as a -rc material, if > not. > > BTW, we didn't combine reserved fields, because our convention is to align such > fields to 32 bits for better readability. > > Thanks This looks fine. Let me know when it's in the mlx5-next tree to pull. -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-11-06 21:31 ` Doug Ledford @ 2018-11-06 22:02 ` Jason Gunthorpe 2018-11-06 22:10 ` Doug Ledford 0 siblings, 1 reply; 7+ messages in thread From: Jason Gunthorpe @ 2018-11-06 22:02 UTC (permalink / raw) To: Doug Ledford Cc: Leon Romanovsky, Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev, Leon Romanovsky On Tue, Nov 06, 2018 at 04:31:08PM -0500, Doug Ledford wrote: > On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > > From: Yishai Hadas <yishaih@mellanox.com> > > > > Adapt XRC SRQ to the latest HW specification with fixed definition > > around umem valid bits. The previous definition relied on a bit which > > was taken for other purposes in legacy FW. > > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > > Hi Doug, Jason > > > > This commit fixes code sent in this merge window, so I'm not marking it > > with any rdma-rc/rdma-next. It will be better to be sent during this merge > > window if you have extra pull request to issue, or as a -rc material, if > > not. > > > > BTW, we didn't combine reserved fields, because our convention is to align such > > fields to 32 bits for better readability. > > > > Thanks > > This looks fine. Let me know when it's in the mlx5-next tree to pull. It needs to go to -rc... This needs a mlx5-rc branch for this I guess? Jason ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-11-06 22:02 ` Jason Gunthorpe @ 2018-11-06 22:10 ` Doug Ledford 2018-11-06 22:11 ` Jason Gunthorpe 0 siblings, 1 reply; 7+ messages in thread From: Doug Ledford @ 2018-11-06 22:10 UTC (permalink / raw) To: Jason Gunthorpe Cc: Leon Romanovsky, Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev, Leon Romanovsky [-- Attachment #1: Type: text/plain, Size: 1768 bytes --] On Tue, 2018-11-06 at 22:02 +0000, Jason Gunthorpe wrote: > On Tue, Nov 06, 2018 at 04:31:08PM -0500, Doug Ledford wrote: > > On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > > > From: Yishai Hadas <yishaih@mellanox.com> > > > > > > Adapt XRC SRQ to the latest HW specification with fixed definition > > > around umem valid bits. The previous definition relied on a bit which > > > was taken for other purposes in legacy FW. > > > > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > > > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > > > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > > > Hi Doug, Jason > > > > > > This commit fixes code sent in this merge window, so I'm not marking it > > > with any rdma-rc/rdma-next. It will be better to be sent during this merge > > > window if you have extra pull request to issue, or as a -rc material, if > > > not. > > > > > > BTW, we didn't combine reserved fields, because our convention is to align such > > > fields to 32 bits for better readability. > > > > > > Thanks > > > > This looks fine. Let me know when it's in the mlx5-next tree to pull. > > It needs to go to -rc... > > This needs a mlx5-rc branch for this I guess? I don't think so. As long as it's the first commit in mlx5-next, and mlx5-next is 4.20-rc1 based, then pulling this commit into the -rc tree will only pull the single commit. Then when we pull into for-next for the first time, we will get this in for-next too. That seems best to me. -- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-11-06 22:10 ` Doug Ledford @ 2018-11-06 22:11 ` Jason Gunthorpe 2018-11-07 7:34 ` Leon Romanovsky 0 siblings, 1 reply; 7+ messages in thread From: Jason Gunthorpe @ 2018-11-06 22:11 UTC (permalink / raw) To: Doug Ledford Cc: Leon Romanovsky, Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev, Leon Romanovsky On Tue, Nov 06, 2018 at 05:10:53PM -0500, Doug Ledford wrote: > On Tue, 2018-11-06 at 22:02 +0000, Jason Gunthorpe wrote: > > On Tue, Nov 06, 2018 at 04:31:08PM -0500, Doug Ledford wrote: > > > On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > > > > From: Yishai Hadas <yishaih@mellanox.com> > > > > > > > > Adapt XRC SRQ to the latest HW specification with fixed definition > > > > around umem valid bits. The previous definition relied on a bit which > > > > was taken for other purposes in legacy FW. > > > > > > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > > > > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > > > > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > > > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > > > > Hi Doug, Jason > > > > > > > > This commit fixes code sent in this merge window, so I'm not marking it > > > > with any rdma-rc/rdma-next. It will be better to be sent during this merge > > > > window if you have extra pull request to issue, or as a -rc material, if > > > > not. > > > > > > > > BTW, we didn't combine reserved fields, because our convention is to align such > > > > fields to 32 bits for better readability. > > > > > > > > Thanks > > > > > > This looks fine. Let me know when it's in the mlx5-next tree to pull. > > > > It needs to go to -rc... > > > > This needs a mlx5-rc branch for this I guess? > > I don't think so. As long as it's the first commit in mlx5-next, and > mlx5-next is 4.20-rc1 based, then pulling this commit into the -rc tree > will only pull the single commit. Then when we pull into for-next for > the first time, we will get this in for-next too. That seems best to > me. That works too, if Leon is fast :) Jason ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-11-06 22:11 ` Jason Gunthorpe @ 2018-11-07 7:34 ` Leon Romanovsky 2018-11-07 22:07 ` Jason Gunthorpe 0 siblings, 1 reply; 7+ messages in thread From: Leon Romanovsky @ 2018-11-07 7:34 UTC (permalink / raw) To: Jason Gunthorpe Cc: Doug Ledford, Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev [-- Attachment #1: Type: text/plain, Size: 2042 bytes --] On Tue, Nov 06, 2018 at 03:11:53PM -0700, Jason Gunthorpe wrote: > On Tue, Nov 06, 2018 at 05:10:53PM -0500, Doug Ledford wrote: > > On Tue, 2018-11-06 at 22:02 +0000, Jason Gunthorpe wrote: > > > On Tue, Nov 06, 2018 at 04:31:08PM -0500, Doug Ledford wrote: > > > > On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > > > > > From: Yishai Hadas <yishaih@mellanox.com> > > > > > > > > > > Adapt XRC SRQ to the latest HW specification with fixed definition > > > > > around umem valid bits. The previous definition relied on a bit which > > > > > was taken for other purposes in legacy FW. > > > > > > > > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > > > > > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > > > > > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > > > > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > > > > > Hi Doug, Jason > > > > > > > > > > This commit fixes code sent in this merge window, so I'm not marking it > > > > > with any rdma-rc/rdma-next. It will be better to be sent during this merge > > > > > window if you have extra pull request to issue, or as a -rc material, if > > > > > not. > > > > > > > > > > BTW, we didn't combine reserved fields, because our convention is to align such > > > > > fields to 32 bits for better readability. > > > > > > > > > > Thanks > > > > > > > > This looks fine. Let me know when it's in the mlx5-next tree to pull. > > > > > > It needs to go to -rc... > > > > > > This needs a mlx5-rc branch for this I guess? > > > > I don't think so. As long as it's the first commit in mlx5-next, and > > mlx5-next is 4.20-rc1 based, then pulling this commit into the -rc tree > > will only pull the single commit. Then when we pull into for-next for > > the first time, we will get this in for-next too. That seems best to > > me. > > That works too, if Leon is fast :) Thank you both for suggestion. I did it. 99b77fef3c6c net/mlx5: Fix XRC SRQ umem valid bits It is first commit and it is based on -rc1. Thanks > > Jason [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits 2018-11-07 7:34 ` Leon Romanovsky @ 2018-11-07 22:07 ` Jason Gunthorpe 0 siblings, 0 replies; 7+ messages in thread From: Jason Gunthorpe @ 2018-11-07 22:07 UTC (permalink / raw) To: Leon Romanovsky Cc: Doug Ledford, Yishai Hadas, RDMA mailing list, Artemy Kovalyov, Saeed Mahameed, linux-netdev On Wed, Nov 07, 2018 at 09:34:34AM +0200, Leon Romanovsky wrote: > On Tue, Nov 06, 2018 at 03:11:53PM -0700, Jason Gunthorpe wrote: > > On Tue, Nov 06, 2018 at 05:10:53PM -0500, Doug Ledford wrote: > > > On Tue, 2018-11-06 at 22:02 +0000, Jason Gunthorpe wrote: > > > > On Tue, Nov 06, 2018 at 04:31:08PM -0500, Doug Ledford wrote: > > > > > On Wed, 2018-10-31 at 12:20 +0200, Leon Romanovsky wrote: > > > > > > From: Yishai Hadas <yishaih@mellanox.com> > > > > > > > > > > > > Adapt XRC SRQ to the latest HW specification with fixed definition > > > > > > around umem valid bits. The previous definition relied on a bit which > > > > > > was taken for other purposes in legacy FW. > > > > > > > > > > > > Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits") > > > > > > Signed-off-by: Yishai Hadas <yishaih@mellanox.com> > > > > > > Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> > > > > > > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > > > > > > Hi Doug, Jason > > > > > > > > > > > > This commit fixes code sent in this merge window, so I'm not marking it > > > > > > with any rdma-rc/rdma-next. It will be better to be sent during this merge > > > > > > window if you have extra pull request to issue, or as a -rc material, if > > > > > > not. > > > > > > > > > > > > BTW, we didn't combine reserved fields, because our convention is to align such > > > > > > fields to 32 bits for better readability. > > > > > > > > > > > > Thanks > > > > > > > > > > This looks fine. Let me know when it's in the mlx5-next tree to pull. > > > > > > > > It needs to go to -rc... > > > > > > > > This needs a mlx5-rc branch for this I guess? > > > > > > I don't think so. As long as it's the first commit in mlx5-next, and > > > mlx5-next is 4.20-rc1 based, then pulling this commit into the -rc tree > > > will only pull the single commit. Then when we pull into for-next for > > > the first time, we will get this in for-next too. That seems best to > > > me. > > > > That works too, if Leon is fast :) > > Thank you both for suggestion. > > I did it. > 99b77fef3c6c net/mlx5: Fix XRC SRQ umem valid bits > > It is first commit and it is based on -rc1. Okay, I put this branch in -rc Jason ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-11-08 7:39 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-10-31 10:20 [PATCH rdma] net/mlx5: Fix XRC SRQ umem valid bits Leon Romanovsky 2018-11-06 21:31 ` Doug Ledford 2018-11-06 22:02 ` Jason Gunthorpe 2018-11-06 22:10 ` Doug Ledford 2018-11-06 22:11 ` Jason Gunthorpe 2018-11-07 7:34 ` Leon Romanovsky 2018-11-07 22:07 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).