add Intel(R) X722 iWARP driver
Subsystems (4)
Re: [PATCH V1 15/16] i40iw: add entry in rdma_netlink
In reply to Faisal LatifQuoted 32 lines · Faisal Latif
Quoted 31 lines
Quoted 31 lines
Why the iwarp port mapper implementationhas to be repeated in each driver? can you join your code in a common place and avoid the duplication?
root@r-dcs58 hw]# git grep
RDMA_NL_nesnes/nes.c: [RDMA_NL_IWPM_REG_PID] = {.dump = iwpm_register_pid_cb}, nes/nes.c: [RDMA_NL_IWPM_ADD_MAPPING] = {.dump = iwpm_add_mapping_cb}, nes/nes.c: [RDMA_NL_IWPM_QUERY_MAPPING] = {.dump = iwpm_add_and_query_mapping_cb}, nes/nes.c: [RDMA_NL_IWPM_REMOTE_INFO] = {.dump = iwpm_remote_info_cb}, nes/nes.c: [RDMA_NL_IWPM_HANDLE_ERR] = {.dump = iwpm_mapping_error_cb}, nes/nes.c: [RDMA_NL_IWPM_MAPINFO] = {.dump = iwpm_mapping_info_cb}, nes/nes.c: [RDMA_NL_IWPM_MAPINFO_NUM] = {.dump = iwpm_ack_mapping_info_cb} nes/nes.c: if (ibnl_add_client(RDMA_NL_NES, RDMA_NL_IWPM_NUM_OPS, nes_nl_cb_table)) nes/nes.c: ret = iwpm_init(RDMA_NL_NES); nes/nes.c: ibnl_remove_client(RDMA_NL_NES); nes/nes.c: ibnl_remove_client(RDMA_NL_NES); nes/nes.c: iwpm_exit(RDMA_NL_NES); nes/nes_cm.c: &mapped_sockaddr, RDMA_NL_NES); nes/nes_cm.c: return iwpm_remove_mapping(&local_sockaddr, RDMA_NL_NES); nes/nes_cm.c: &remote_addr, RDMA_NL_NES); nes/nes_cm.c: iwpm_err = iwpm_register_pid(&pm_reg_msg, RDMA_NL_NES); nes/nes_cm.c: iwpm_err = iwpm_add_mapping(&pm_msg, RDMA_NL_NES); nes/nes_cm.c: iwpm_err = iwpm_register_pid(&pm_reg_msg, RDMA_NL_NES); nes/nes_cm.c: iwpm_err = iwpm_add_and_query_mapping(&pm_msg,
RDMA_NL_NES);
Quoted 1 line
Quoted 1 line
i40iw iwarp driver registers with port mapper and uses its services. Beside that it is not the scope of the patch series.
You are asked a question by reviewer and your reply is
(1) YES, I did C & P from driver X to my driver
(2) explaining why C&P is right goes beyond the scope of reviewing my driver
This isn't how things work in upstream.
If needed, talk to the upstream Intel networking folks, they can assist you catching up on upstream practices.
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1450739596-23276-9-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH V1 08/16] i40iw: add files for iwarp interface
drivers/infiniband/hw/i40iw/i40iw_ucontext.h line 84
Quoted 9 lines · Faisal Latif
drivers/infiniband/hw/i40iw/i40iw_ucontext.h new file +9
-0+ +enum i40iw_memreg_type { +IW_MEMREG_TYPE_MEM =0x0000 , +IW_MEMREG_TYPE_QP =0x0001 , +IW_MEMREG_TYPE_CQ =0x0002 , +IW_MEMREG_TYPE_MW =0x0003 , +IW_MEMREG_TYPE_FMR =0x0004 , +IW_MEMREG_TYPE_FMEM =0x0005 , +};
Can't you re-use IB core values or derive that from the actual uverbs command?
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH V1 08/16] i40iw: add files for iwarp interface
Quoted 13 lines · Or Gerlitz
drivers/infiniband/hw/i40iw/i40iw_ucontext.h line 84
Quoted 9 lines · Faisal Latif
drivers/infiniband/hw/i40iw/i40iw_ucontext.h new file +9
-0+ +enum i40iw_memreg_type { +IW_MEMREG_TYPE_MEM =0x0000 , +IW_MEMREG_TYPE_QP =0x0001 , +IW_MEMREG_TYPE_CQ =0x0002 , +IW_MEMREG_TYPE_MW =0x0003 , +IW_MEMREG_TYPE_FMR =0x0004 , +IW_MEMREG_TYPE_FMEM =0x0005 , +};Can't you re-use IB core values or derive that from the actual uverbs command?
I did not see anything which will have types that I needed. It will be confusing otherwise. I will be reducing number of types from here though.
Quoted 2 lines
Or.
Thanks
Faisal
Re: [PATCH V1 08/16] i40iw: add files for iwarp interface
Quoted 13 lines · Faisal Latif
Quoted 12 lines · Or Gerlitz
drivers/infiniband/hw/i40iw/i40iw_ucontext.h line 84
Quoted 9 lines · Faisal Latif
drivers/infiniband/hw/i40iw/i40iw_ucontext.h new file +9
-0+ +enum i40iw_memreg_type { +IW_MEMREG_TYPE_MEM =0x0000 , +IW_MEMREG_TYPE_QP =0x0001 , +IW_MEMREG_TYPE_CQ =0x0002 , +IW_MEMREG_TYPE_MW =0x0003 , +IW_MEMREG_TYPE_FMR =0x0004 , +IW_MEMREG_TYPE_FMEM =0x0005 , +};Can't you re-use IB core values or derive that from the actual uverbs command?
Quoted 1 line
I did not see anything which will have types that I needed.
what do you need? what is the role of this enum?
Quoted 4 lines
It will be confusing otherwise.
I will be reducing number of types from here though.
so why some of it can go? is that deal values which aren't used by the code
Or.
Quoted 2 lines
Thanks
Faisal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH V1 08/16] i40iw: add files for iwarp interface
Quoted 14 lines · Or Gerlitz
Quoted 13 lines · Faisal Latif
Quoted 12 lines · Or Gerlitz
drivers/infiniband/hw/i40iw/i40iw_ucontext.h line 84
Quoted 9 lines · Faisal Latif
drivers/infiniband/hw/i40iw/i40iw_ucontext.h new file +9
-0+ +enum i40iw_memreg_type { +IW_MEMREG_TYPE_MEM =0x0000 , +IW_MEMREG_TYPE_QP =0x0001 , +IW_MEMREG_TYPE_CQ =0x0002 , +IW_MEMREG_TYPE_MW =0x0003 , +IW_MEMREG_TYPE_FMR =0x0004 , +IW_MEMREG_TYPE_FMEM =0x0005 , +};Can't you re-use IB core values or derive that from the actual uverbs command?
Quoted 3 lines
Quoted 1 line
I did not see anything which will have types that I needed.
what do you need? what is the role of this enum?
We register register memory from user library for qp and cq rings as well as user memory registration and do need to distinguish in the driver.
Quoted 7 lines
Quoted 5 lines
It will be confusing otherwise.
I will be reducing number of types from here though.
so why some of it can go? is that deal values which aren't used by the code
Yes, had added all different types for user requests. But For the time being, we will just keep MEM, CQ, QP and add other as needed like Memory Windows.
Quoted 6 lines
Or.
Quoted 2 lines
Thanks
Faisal
Quoted 9 lines · Faisal Latif
This (V1) series contains the addition of the i40iw.ko driver after incorporating the feedback from Christoph Hellwig and Joe Perches for initial series.
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions. It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
Quoted 8 lines
It cooperates with the Intel(R) X722 base driver (i40e.ko) to allocate resources and program the controller.
This series include 1 patch to i40e.ko to provide interface support to i40iw.ko. The interface provides a driver registration mechanism, resource allocations, and device reset coordination mechanisms.
This patch series is based on Doug Ledford's k.o/for-4.5.
Please use shallow threading on patch submissions like this.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD
Quoted 9 lines · Faisal Latif
This (V1) series contains the addition of the i40iw.ko driver after incorporating the feedback from Christoph Hellwig and Joe Perches for initial series.
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions. It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
Quoted 8 lines
It cooperates with the Intel(R) X722 base driver (i40e.ko) to allocate resources and program the controller.
This series include 1 patch to i40e.ko to provide interface support to i40iw.ko. The interface provides a driver registration mechanism, resource allocations, and device reset coordination mechanisms.
This patch series is based on Doug Ledford's k.o/for-4.5.
My apologies Faisal. I had pushed that branch to github to get 0-day testing, but hadn't committed it to my k.o tree as it wasn't fully finalized (I was waiting for Or to get his chance to respond to it). Once Or responded, I ended up taking his patchset instead, which means you need to adjust your patches accordingly.
Quoted 45 lines
Anjali Singhai Jain (1)
net/ethernet/intel/i40e: Add support for client interface for IWARP driverFaisal Latif(15):
infiniband/hw/i40iw: add main, hdr, status infiniband/hw/i40iw: add connection management code infiniband/hw/i40iw: add puda code infiniband/hw/i40iw: add pble resource files infiniband/hw/i40iw: add hmc resource files infiniband/hw/i40iw: add hw and utils files infiniband/hw/i40iw: add files for iwarp interface infiniband/hw/i40iw: add file to handle cqp calls infiniband/hw/i40iw: add hardware related header files infiniband/hw/i40iw: add X722 register file infiniband/hw/i40iw: user kernel shared files infiniband/hw/i40iw: virtual channel handling files infiniband/hw/i40iw:KconfigandKbuildfor iwarp module infiniband/hw/i40iw: Add entry for I40IWrdma_netlink.hinfiniband/hw/i40iw: changes for build of i40iw moduleChanges done from initial version to V1 are following.
Feedback received from Christoph Hellwig
*Remove pointless braces -improved after code review and changing *kmap()/kunmap() - made it very short lived
*less casts -improved
*Remove unused routine stubs - done
*no initialize to 0 or NULL when struct field were zeroed - done *defineUNREFERENCED_PARAMETERnot needed -done
*remove defineI40eE_MASK-done*rd32(),wr32()make them inline -done*readq()use magic inlinux/io-64-nonatomic-lo-hi.h-done*SLEEP()define -done by removing it
*entry inrdma_netlink.hfor I40IW should be in proper location
and separate patch -doneFeedback received from Joe Perches
*series to respuun re-spun against next - done withDoug's Ledford's k.o/for-4.5*Change to i40e client patch regarding mailing list - this is consistent
with other i40e files.
*Removed error fromi40iw_pr_err()-done*cqp_request()change from bitfields to bool -done
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 17 lines · Doug Ledford
Quoted 16 lines · Faisal Latif
This (V1) series contains the addition of the i40iw.ko driver after incorporating the feedback from Christoph Hellwig and Joe Perches for initial series.
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions. It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
It cooperates with the Intel(R) X722 base driver (i40e.ko) to allocate resources and program the controller.
This series include 1 patch to i40e.ko to provide interface support to i40iw.ko. The interface provides a driver registration mechanism, resource allocations, and device reset coordination mechanisms.
Quoted 8 lines
Quoted 1 line
This patch series is based on Doug Ledford's k.o/for-4.5.
My apologies Faisal. I had pushed that branch to github to get 0-day testing, but hadn't committed it to my k.o tree as it wasn't fully finalized (I was waiting for Or to get his chance to respond to it). Once Or responded, I ended up taking his patchset instead, which means you need to adjust your patches accordingly.
Thanks Doug for the update, I will provide new patch series for latest k.o. Also will make sure of shallow threading for the series. I should have used V2 for this series instead of V1 and next series with k.o will make it proper with V3.
Quoted 37 lines
Quoted 37 lines
Anjali Singhai Jain (1)
net/ethernet/intel/i40e: Add support for client interface for IWARP driverFaisal Latif(15):
infiniband/hw/i40iw: add main, hdr, status infiniband/hw/i40iw: add connection management code infiniband/hw/i40iw: add puda code infiniband/hw/i40iw: add pble resource files infiniband/hw/i40iw: add hmc resource files infiniband/hw/i40iw: add hw and utils files infiniband/hw/i40iw: add files for iwarp interface infiniband/hw/i40iw: add file to handle cqp calls infiniband/hw/i40iw: add hardware related header files infiniband/hw/i40iw: add X722 register file infiniband/hw/i40iw: user kernel shared files infiniband/hw/i40iw: virtual channel handling files infiniband/hw/i40iw:KconfigandKbuildfor iwarp module infiniband/hw/i40iw: Add entry for I40IWrdma_netlink.hinfiniband/hw/i40iw: changes for build of i40iw moduleChanges done from initial version to V1 are following.
Feedback received from Christoph Hellwig
*Remove pointless braces -improved after code review and changing *kmap()/kunmap() - made it very short lived
*less casts -improved
*Remove unused routine stubs - done
*no initialize to 0 or NULL when struct field were zeroed - done *defineUNREFERENCED_PARAMETERnot needed -done
*remove defineI40eE_MASK-done*rd32(),wr32()make them inline -done*readq()use magic inlinux/io-64-nonatomic-lo-hi.h-done*SLEEP()define -done by removing it
*entry inrdma_netlink.hfor I40IW should be in proper location
and separate patch -done
Quoted 15 lines
Quoted 8 lines
Feedback received from Joe Perches
*series to respuun re-spun against next - done withDoug's Ledford's k.o/for-4.5*Change to i40e client patch regarding mailing list - this is consistent
with other i40e files.
*Removed error fromi40iw_pr_err()-done*cqp_request()change from bitfields to bool -doneSignature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD
Faisal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Faisal Latif
I will provide new patch series for latest k.o. Also will make sure of shallow threading for the series.
Please make sure that the cover letter will include the full output of the git generated cover-letter so we can see the location of changes you did to the IB core and the overall LOC volume of the driver.
Did you run the driver through 0-day testing to avoid zillion small follow up patches in a later point when this isin?
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 567ACE44.20608-VPRAkNaXOzVWk0Htik3J/[email protected]
Quoted 6 lines · Or Gerlitz
Quoted 1 line · Faisal Latif
I will provide new patch series for latest k.o. Also will make sure of shallow threading for the series.
Please make sure that the cover letter will include the full output of the git generated cover-letter so we can see the location of changes you did to the IB core and the overall LOC volume of the driver.
Yes, next patch series V3 will have the git generated cover letter.
Quoted 5 lines
Did you run the driver through 0-day testing to avoid zillion small follow up patches in a later point when this isin?
Or.
Thanks
Faisal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 27 lines · Faisal Latif
Quoted 17 lines · Doug Ledford
Quoted 16 lines · Faisal Latif
This (V1) series contains the addition of the i40iw.ko driver after incorporating the feedback from Christoph Hellwig and Joe Perches for initial series.
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions. It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
It cooperates with the Intel(R) X722 base driver (i40e.ko) to allocate resources and program the controller.
This series include 1 patch to i40e.ko to provide interface support to i40iw.ko. The interface provides a driver registration mechanism, resource allocations, and device reset coordination mechanisms.
Quoted 8 lines
Quoted 1 line
This patch series is based on Doug Ledford's k.o/for-4.5.
My apologies Faisal. I had pushed that branch to github to get 0-day testing, but hadn't committed it to my k.o tree as it wasn't fully finalized (I was waiting for Or to get his chance to respond to it). Once Or responded, I ended up taking his patchset instead, which means you need to adjust your patches accordingly.
Quoted 4 lines
Thanks Doug for the update, I will provide new patch series for latest k.o. Also will make sure of shallow threading for the series. I should have used V2 for this series instead of V1 and next series with k.o will make it proper with V3.
I'm going to repush my tree in 10 or 15 minutes if you haven't done the rebase yet. If so, the tree I pushed earlier this morning should be good enough.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD
Quoted 2 lines · Faisal Latif
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions.
Is there any public info on the X722, I didn't manage to find such.
Quoted 1 line
It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
can you explain why do you need a separate rdma driver for VFs?
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 567AD444.10204-VPRAkNaXOzVWk0Htik3J/[email protected]
Quoted 5 lines · Or Gerlitz
Quoted 2 lines · Faisal Latif
This driver provides iWARP RDMA functionality for the Intel(R) X722 Ethernet controller for PCI Physical Functions.
Is there any public info on the X722, I didn't manage to find such.
it is not yet available as it is in early product cycle with the intent of getting initial support into the kernel before users have the hardware available to purchase.
Quoted 4 lines
Quoted 2 lines
It also has support for Virtual Function driver (i40iwvf.ko), which that will be part of separate patch series.
can you explain why do you need a separate rdma driver for VFs?
The VF driver (i40iwvf.ko) requires PF driver (i40iw.ko) to work. I will add more in the cover page of the patch series.
Quoted 2 lines
Or.
Thanks
Faisal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html