From: Cheng Xu <chengyou@linux.alibaba.com>
To: Bernard Metzler <BMT@zurich.ibm.com>, Leon Romanovsky <leon@kernel.org>
Cc: "jgg@ziepe.ca" <jgg@ziepe.ca>,
"dledford@redhat.com" <dledford@redhat.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"KaiShen@linux.alibaba.com" <KaiShen@linux.alibaba.com>,
"tonylu@linux.alibaba.com" <tonylu@linux.alibaba.com>
Subject: Re: [PATCH rdma-next 07/11] RDMA/erdma: Add verbs implementation
Date: Thu, 23 Dec 2021 16:38:39 +0800 [thread overview]
Message-ID: <a002e8cb-88ed-2ecc-503c-f687dd882928@linux.alibaba.com> (raw)
In-Reply-To: <BYAPR15MB263117DA2E661F36741F35A2997D9@BYAPR15MB2631.namprd15.prod.outlook.com>
On 12/22/21 8:46 PM, Bernard Metzler wrote:
>> -----Original Message-----
>> From: Cheng Xu <chengyou@linux.alibaba.com>
>> Sent: Wednesday, 22 December 2021 04:11
>> To: Bernard Metzler <BMT@zurich.ibm.com>; Leon Romanovsky
>> <leon@kernel.org>
>> Cc: jgg@ziepe.ca; dledford@redhat.com; linux-rdma@vger.kernel.org;
>> KaiShen@linux.alibaba.com; tonylu@linux.alibaba.com
>> Subject: [EXTERNAL] Re: [PATCH rdma-next 07/11] RDMA/erdma: Add verbs
>> implementation
>>
>>
>>
>> On 12/21/21 11:20 PM, Bernard Metzler wrote:
>>>> -----Original Message-----
>>>> From: Leon Romanovsky <leon@kernel.org>
>>>> Sent: Tuesday, 21 December 2021 14:32
>>>> To: Cheng Xu <chengyou@linux.alibaba.com>
>>>> Cc: jgg@ziepe.ca; dledford@redhat.com; linux-rdma@vger.kernel.org;
>>>> KaiShen@linux.alibaba.com; tonylu@linux.alibaba.com
>>>> Subject: [EXTERNAL] Re: [PATCH rdma-next 07/11] RDMA/erdma: Add verbs
>>>> implementation
>>>>
>>>> On Tue, Dec 21, 2021 at 10:48:54AM +0800, Cheng Xu wrote:
>>>>> The RDMA verbs implementation of erdma is divided into three files:
>>>>> erdma_qp.c, erdma_cq.c, and erdma_verbs.c. Internal used functions and
>>>>> datapath functions of QP/CQ are put in erdma_qp.c and erdma_cq.c, the
>>>> reset
>>>>> is in erdma_verbs.c.
>>>>>
>>>>> Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
>>>>> ---
>>>>> drivers/infiniband/hw/erdma/erdma_cq.c | 201 +++
>>>>> drivers/infiniband/hw/erdma/erdma_qp.c | 624 +++++++++
>>>>> drivers/infiniband/hw/erdma/erdma_verbs.c | 1477
>> +++++++++++++++++++++
>>>>> 3 files changed, 2302 insertions(+)
>>>>> create mode 100644 drivers/infiniband/hw/erdma/erdma_cq.c
>>>>> create mode 100644 drivers/infiniband/hw/erdma/erdma_qp.c
>>>>> create mode 100644 drivers/infiniband/hw/erdma/erdma_verbs.c
>>>>
>>>>
>>>> Please no inline functions in .c files and no void casting for the
>>>> return values of functions.
>>>>
>>>> <...>
>>>>
>>>>> diff --git a/drivers/infiniband/hw/erdma/erdma_qp.c
>>>> b/drivers/infiniband/hw/erdma/erdma_qp.c
>>>>> new file mode 100644
>>>>> index 000000000000..8c02215cee04
>>>>> --- /dev/null
>>>>> +++ b/drivers/infiniband/hw/erdma/erdma_qp.c
>>>>> @@ -0,0 +1,624 @@
>>>>> +// SPDX-License-Identifier: GPL-2.0
>>>>> +/*
>>>>> + * Authors: Cheng Xu <chengyou@linux.alibaba.com>
>>>>> + * Kai Shen <kaishen@linux.alibaba.com>
>>>>> + * Copyright (c) 2020-2021, Alibaba Group.
>>>>> + *
>>>>> + * Authors: Bernard Metzler <bmt@zurich.ibm.com>
>>>>> + * Fredy Neeser <nfd@zurich.ibm.com>
>>>>> + * Copyright (c) 2008-2016, IBM Corporation
>>>>
>>>> What does it mean?
>>>>
>>>
>>> Significant parts of the driver have been taken from siw it seems.
>>> Probably really from an old version of it.
>>> In that case I would have recommended to take the upstream siw
>>> code, which has been cleaned from those issues we now see again
>>> (including debugfs code, extern definitions, inline in .c code,
>>> casting issues, etc etc.). Why starting in 2020 with
>>> code from 2016, if better code is available?
>>>
>>> Bernard.
>>
>> First of all, thank you for developing siw, Bernard and Fredy, so we
>> can build our erdma based on your work.
>
> You are welcome.
> You probably got the code from https://github.com/zrlio/softiwarp
> where I stopped pushing updates 4 years ago. By then, I started working
> on making it acceptable for upstream. As said, I highly recommend taking
> it from there, since the community already invested time and effort to
> make the code better, and finally acceptable. If you do so, please also
> update the copyright notice.
Thank you, and I will follow your recommendation.
> Fredy isn't part of it since almost 10 years, and is not reachable
> via the email provided. And, by 2016, his contributions were limited to
> the siw_cm.c code only.
>
>
>
>> At the beginning, we started developing erdma driver in kernel
>> 4.9/4.19/5.10, and didn't know the upstream siw version since it is in
>
>
> siw is in the Linux kernel since v5.3
>
Yes, I got it wrong.
Thanks,
Cheng Xu
>> the newer kernel version. As a result, we develop erdma based on the
>> older version.
>> Thank you for your recommendation. We will check the differences and
>> take the upstream siw code if needed.
>>
>> Thanks,
>> Cheng Xu
next prev parent reply other threads:[~2021-12-23 8:38 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 2:48 [PATCH rdma-next 00/11] Elastic RDMA Adapter (ERDMA) driver Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 01/11] RDMA: Add ERDMA to rdma_driver_id definition Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 02/11] RDMA/erdma: Add the hardware related definitions Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 03/11] RDMA/erdma: Add main include file Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 04/11] RDMA/erdma: Add cmdq implementation Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 05/11] RDMA/erdma: Add event queue implementation Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 06/11] RDMA/erdma: Add verbs header file Cheng Xu
2021-12-21 13:28 ` Leon Romanovsky
2021-12-22 2:36 ` Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 07/11] RDMA/erdma: Add verbs implementation Cheng Xu
2021-12-21 13:32 ` Leon Romanovsky
2021-12-21 15:20 ` Bernard Metzler
2021-12-22 3:11 ` Cheng Xu
2021-12-22 4:18 ` Cheng Xu
2021-12-22 12:46 ` Bernard Metzler
2021-12-23 8:38 ` Cheng Xu [this message]
2021-12-22 2:50 ` Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 08/11] RDMA/erdma: Add connection management (CM) support Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 09/11] RDMA/erdma: Add the erdma module Cheng Xu
2021-12-21 13:26 ` Leon Romanovsky
2021-12-22 2:33 ` Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 10/11] RDMA/erdma: Add the ABI definitions Cheng Xu
2021-12-21 11:57 ` kernel test robot
2021-12-22 16:14 ` kernel test robot
2021-12-23 15:46 ` Yanjun Zhu
2021-12-23 18:45 ` Leon Romanovsky
2021-12-23 22:55 ` Yanjun Zhu
2021-12-24 6:04 ` Leon Romanovsky
2021-12-24 7:54 ` Yanjun Zhu
2021-12-24 18:11 ` Leon Romanovsky
2021-12-24 7:12 ` Cheng Xu
2021-12-24 8:02 ` Yanjun Zhu
2021-12-24 18:19 ` Leon Romanovsky
2021-12-25 0:03 ` Yanjun Zhu
2021-12-25 3:36 ` Cheng Xu
2021-12-21 2:48 ` [PATCH rdma-next 11/11] RDMA/erdma: Add driver to kernel build environment Cheng Xu
2021-12-22 0:58 ` kernel test robot
2021-12-21 13:09 ` [PATCH rdma-next 00/11] Elastic RDMA Adapter (ERDMA) driver Leon Romanovsky
2021-12-22 3:35 ` Cheng Xu
2021-12-23 10:23 ` Leon Romanovsky
2021-12-23 12:59 ` Cheng Xu
2021-12-23 13:44 ` Leon Romanovsky
2021-12-24 7:07 ` Cheng Xu
2021-12-24 18:26 ` Leon Romanovsky
2021-12-25 2:54 ` Cheng Xu
2021-12-25 2:57 ` Cheng Xu
2021-12-25 3:03 ` [Please ignore the two former responses]Re: " Cheng Xu
2022-01-07 14:24 ` Jason Gunthorpe
2022-01-10 10:07 ` Cheng Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a002e8cb-88ed-2ecc-503c-f687dd882928@linux.alibaba.com \
--to=chengyou@linux.alibaba.com \
--cc=BMT@zurich.ibm.com \
--cc=KaiShen@linux.alibaba.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=tonylu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).