public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* Re: CQ and RDMA READ/WRITE APIs
       [not found]       ` <CA+55aFzq+4DJL46B8PXQQG-DpNpzZNzk=O6j+8U_NC6H6BwTdQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-17  5:38         ` Christoph Hellwig
  2016-05-17 15:35           ` Christoph Lameter
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2016-05-17  5:38 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Doug Ledford, Christoph Hellwig, Linux Kernel Mailing List,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi Linus,

we're not talking about a driver here - we're talking about a new API
lifted from a driver to generic code because it's commonly useful.

It's also in entirely new files and not a modification of existing code,
and it's always been clear how it is.  Some of the code has been in
since Linux 4.5 with a properly clear copyright.

I really don't understand Doug's objection, and as said if they have
a weird problem with it we can simply move it to a separate module.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: CQ and RDMA READ/WRITE APIs
  2016-05-17  5:38         ` CQ and RDMA READ/WRITE APIs Christoph Hellwig
@ 2016-05-17 15:35           ` Christoph Lameter
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Lameter @ 2016-05-17 15:35 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Linus Torvalds, Doug Ledford, Linux Kernel Mailing List,
	linux-rdma

On Tue, 17 May 2016, Christoph Hellwig wrote:

> It's also in entirely new files and not a modification of existing code,
> and it's always been clear how it is.  Some of the code has been in
> since Linux 4.5 with a properly clear copyright.


The problem is that the RDMA subsystem is rather more than a driver. Its a
subsystem that contains drivers.  Dual licensed drivers can use the
features that Christoph provides. This is more infrastructure and thus GPL
I thought.

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

* Re: CQ and RDMA READ/WRITE APIs
       [not found]         ` <6633ce02-7983-ad09-f95d-03cea6f54e31-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-05-17 17:29           ` Bart Van Assche
       [not found]             ` <573B550D.5020008-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Bart Van Assche @ 2016-05-17 17:29 UTC (permalink / raw)
  To: Doug Ledford, Linus Torvalds
  Cc: Christoph Hellwig, Linux Kernel Mailing List, Sagi Grimberg,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On 05/16/2016 11:23 AM, Doug Ledford wrote:
> In this particular case, the dual license is used by the OpenFabrics
> Alliance.  They strip the RDMA stack in the kernel down to just the RDMA
> stack files and ship those separate from the rest of the kernel, along
> with the necessary user space stuff, and put the entire compilation
> under the same dual GPL/BSD license.  That's what their OFED product is.
>
> As I understand it, members of the OFA (Intel, Mellanox, Chelsio, etc.)
> actually signed an agreement as part of their membership entry into OFA
> that they would preserve that dual license when submitting code
> upstream.  This was originally intended to make sure that the stack as a
> whole could be used upstream, in distros, on switches, etc.  The idea
> being that a unified stack that could be copied around would enhance
> interoperability or something like that.
>
> I can't speak to how actively used it is any more.  I think maybe on
> switches or some other dedicated devices.  But, I was asked by the OFA
> to try and preserve it.
>
> In this particular case, Christoph wrote his code from scratch.  I'm not
> concerned with it.  It was never dual licensed and need not be.  But he
> did submit patches that modified existing dual license drivers to use
> his new code and removed their own implementation of the same thing in
> the process.  What used to be more or less functional drivers that could
> be copied and used elsewhere will no longer be able to be copied in the
> same way.  I'm just waiting for Sagi Grimberg to speak for iSER and for
> Bart van Assche to speak for SRP and let me know that they are OK with
> the change.  I think a patch set that will essentially change the
> licensing nature of their code should carry their explicit approval of
> the license change.

(+linux-rdma)

Hello Doug,

As far as I know SanDisk, a Western Digital Company, is fine with 
changing the license of the code under drivers/infiniband/ulp/srpt from 
dual licensed into GPL-only. However, if OFA members want that the 
entire RDMA core is dual licensed I think we will have to talk to Tejun:

$ PAGER= git grep EXPORT_SYMBOL_GPL drivers/infiniband/
drivers/infiniband/core/device.c:EXPORT_SYMBOL_GPL(ib_wq);

$ git show f06267104dd9112f11586830d22501d0e26245ea
commit f06267104dd9112f11586830d22501d0e26245ea
Author: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Date:   Tue Oct 19 15:24:36 2010 +0000

     RDMA: Update workqueue usage

[ ... ]
+struct workqueue_struct *ib_wq;
+EXPORT_SYMBOL_GPL(ib_wq);
[ ... ]

$ PAGER= git grep -lw ib_wq drivers/infiniband/
drivers/infiniband/core/cache.c
drivers/infiniband/core/device.c
drivers/infiniband/core/roce_gid_mgmt.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/umem.c
drivers/infiniband/hw/qib/qib_iba7220.c
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_init.c

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: CQ and RDMA READ/WRITE APIs
       [not found]             ` <573B550D.5020008-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
@ 2016-05-17 17:32               ` Doug Ledford
  2016-05-17 18:50                 ` Linus Torvalds
       [not found]                 ` <732fb772-2f21-3ac9-a35a-aa4383734df5-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Doug Ledford @ 2016-05-17 17:32 UTC (permalink / raw)
  To: Bart Van Assche, Linus Torvalds
  Cc: Christoph Hellwig, Linux Kernel Mailing List, Sagi Grimberg,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

[-- Attachment #1: Type: text/plain, Size: 3500 bytes --]

On 05/17/2016 01:29 PM, Bart Van Assche wrote:
> On 05/16/2016 11:23 AM, Doug Ledford wrote:
>> In this particular case, the dual license is used by the OpenFabrics
>> Alliance.  They strip the RDMA stack in the kernel down to just the RDMA
>> stack files and ship those separate from the rest of the kernel, along
>> with the necessary user space stuff, and put the entire compilation
>> under the same dual GPL/BSD license.  That's what their OFED product is.
>>
>> As I understand it, members of the OFA (Intel, Mellanox, Chelsio, etc.)
>> actually signed an agreement as part of their membership entry into OFA
>> that they would preserve that dual license when submitting code
>> upstream.  This was originally intended to make sure that the stack as a
>> whole could be used upstream, in distros, on switches, etc.  The idea
>> being that a unified stack that could be copied around would enhance
>> interoperability or something like that.
>>
>> I can't speak to how actively used it is any more.  I think maybe on
>> switches or some other dedicated devices.  But, I was asked by the OFA
>> to try and preserve it.
>>
>> In this particular case, Christoph wrote his code from scratch.  I'm not
>> concerned with it.  It was never dual licensed and need not be.  But he
>> did submit patches that modified existing dual license drivers to use
>> his new code and removed their own implementation of the same thing in
>> the process.  What used to be more or less functional drivers that could
>> be copied and used elsewhere will no longer be able to be copied in the
>> same way.  I'm just waiting for Sagi Grimberg to speak for iSER and for
>> Bart van Assche to speak for SRP and let me know that they are OK with
>> the change.  I think a patch set that will essentially change the
>> licensing nature of their code should carry their explicit approval of
>> the license change.
> 
> (+linux-rdma)
> 
> Hello Doug,
> 
> As far as I know SanDisk, a Western Digital Company, is fine with
> changing the license of the code under drivers/infiniband/ulp/srpt from
> dual licensed into GPL-only. However, if OFA members want that the
> entire RDMA core is dual licensed I think we will have to talk to Tejun:
> 
> $ PAGER= git grep EXPORT_SYMBOL_GPL drivers/infiniband/
> drivers/infiniband/core/device.c:EXPORT_SYMBOL_GPL(ib_wq);
> 
> $ git show f06267104dd9112f11586830d22501d0e26245ea
> commit f06267104dd9112f11586830d22501d0e26245ea
> Author: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Date:   Tue Oct 19 15:24:36 2010 +0000
> 
>     RDMA: Update workqueue usage
> 
> [ ... ]
> +struct workqueue_struct *ib_wq;
> +EXPORT_SYMBOL_GPL(ib_wq);
> [ ... ]
> 
> $ PAGER= git grep -lw ib_wq drivers/infiniband/
> drivers/infiniband/core/cache.c
> drivers/infiniband/core/device.c
> drivers/infiniband/core/roce_gid_mgmt.c
> drivers/infiniband/core/sa_query.c
> drivers/infiniband/core/umem.c
> drivers/infiniband/hw/qib/qib_iba7220.c
> drivers/infiniband/hw/qib/qib_iba7322.c
> drivers/infiniband/hw/qib/qib_init.c

Nice catch there Bart.  That was well before my role as maintainer and
so settles things well enough for me.  IOW, I don't feel I need to worry
about trying to maintain the dual license nature of the RDMA stack as it
was broken long before I took over.  Thanks for pointing that out.


-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

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

* Re: CQ and RDMA READ/WRITE APIs
  2016-05-17 17:32               ` Doug Ledford
@ 2016-05-17 18:50                 ` Linus Torvalds
       [not found]                 ` <732fb772-2f21-3ac9-a35a-aa4383734df5-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Linus Torvalds @ 2016-05-17 18:50 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Bart Van Assche, Christoph Hellwig, Linux Kernel Mailing List,
	Sagi Grimberg, linux-rdma@vger.kernel.org

On Tue, May 17, 2016 at 10:32 AM, Doug Ledford <dledford@redhat.com> wrote:
>
> Nice catch there Bart.  That was well before my role as maintainer and
> so settles things well enough for me.  IOW, I don't feel I need to worry
> about trying to maintain the dual license nature of the RDMA stack as it
> was broken long before I took over.  Thanks for pointing that out.

Ok, so it sounds like there isn't really a problem. Good.

              Linus

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

* Re: CQ and RDMA READ/WRITE APIs
       [not found]                 ` <732fb772-2f21-3ac9-a35a-aa4383734df5-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-05-18  2:48                   ` Parav Pandit
       [not found]                     ` <CAG53R5VSjz_G1adajcoUdgh3Sf1yyKf7UREFoNF9x_V+N6oR6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Parav Pandit @ 2016-05-18  2:48 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Bart Van Assche, Linus Torvalds, Christoph Hellwig,
	Linux Kernel Mailing List, Sagi Grimberg,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Doug,

On Tue, May 17, 2016 at 11:02 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Nice catch there Bart.  That was well before my role as maintainer and
> so settles things well enough for me.  IOW, I don't feel I need to worry
> about trying to maintain the dual license nature of the RDMA stack as it
> was broken long before I took over.  Thanks for pointing that out.
>

Does it mean we can submit new code files under GPL only license?
I submitted RDMA cgroup related code in ib_core under GPLv2 only license.
Existing files which are calling those new APIs will continue to be
dual license (similar to CQ and RDMA APIs)?

Parav
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: CQ and RDMA READ/WRITE APIs
       [not found]                     ` <CAG53R5VSjz_G1adajcoUdgh3Sf1yyKf7UREFoNF9x_V+N6oR6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-18 14:07                       ` Doug Ledford
       [not found]                         ` <43b558b1-8400-612c-9b27-6539be080871-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Ledford @ 2016-05-18 14:07 UTC (permalink / raw)
  To: Parav Pandit
  Cc: Bart Van Assche, Linus Torvalds, Christoph Hellwig,
	Linux Kernel Mailing List, Sagi Grimberg,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]

On 05/17/2016 10:48 PM, Parav Pandit wrote:
> Hi Doug,
> 
> On Tue, May 17, 2016 at 11:02 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Nice catch there Bart.  That was well before my role as maintainer and
>> so settles things well enough for me.  IOW, I don't feel I need to worry
>> about trying to maintain the dual license nature of the RDMA stack as it
>> was broken long before I took over.  Thanks for pointing that out.
>>
> 
> Does it mean we can submit new code files under GPL only license?

You always could.

> I submitted RDMA cgroup related code in ib_core under GPLv2 only license.

You did and you didn't.  For instance, in patch 1/3, the new
cgroup_rdma.c file has a notice of GPLv2, but no notice of copyright, so
it's incomplete.  You need to put a copyright notice in the file too.
And in the file cgroup_rdma.h you have neither a copyright notice or a
license statement.  It's a plain file.

In patch 2/3, the file infiniband/core/cgroup.c has a copied dual
license (not necessary, it can be GPL only), but again, it is missing
the copyright notice.

You need to finish the conversation you and Christoph were having in
that thread, but you also need a v11 of the patchset that fixes the
copyright issues.

> Existing files which are calling those new APIs will continue to be
> dual license (similar to CQ and RDMA APIs)?

Yes.


-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

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

* Re: CQ and RDMA READ/WRITE APIs
       [not found]                         ` <43b558b1-8400-612c-9b27-6539be080871-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-05-18 15:54                           ` Parav Pandit
  0 siblings, 0 replies; 8+ messages in thread
From: Parav Pandit @ 2016-05-18 15:54 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Bart Van Assche, Linus Torvalds, Christoph Hellwig,
	Linux Kernel Mailing List, Sagi Grimberg,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, May 18, 2016 at 7:37 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On 05/17/2016 10:48 PM, Parav Pandit wrote:
>> Hi Doug,
>>
>> On Tue, May 17, 2016 at 11:02 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>>> Nice catch there Bart.  That was well before my role as maintainer and
>>> so settles things well enough for me.  IOW, I don't feel I need to worry
>>> about trying to maintain the dual license nature of the RDMA stack as it
>>> was broken long before I took over.  Thanks for pointing that out.
>>>
>>
>> Does it mean we can submit new code files under GPL only license?
>
> You always could.
>
>> I submitted RDMA cgroup related code in ib_core under GPLv2 only license.
>
> You did and you didn't.  For instance, in patch 1/3, the new
> cgroup_rdma.c file has a notice of GPLv2, but no notice of copyright, so
> it's incomplete.  You need to put a copyright notice in the file too.
> And in the file cgroup_rdma.h you have neither a copyright notice or a
> license statement.  It's a plain file.
>
> In patch 2/3, the file infiniband/core/cgroup.c has a copied dual
> license (not necessary, it can be GPL only), but again, it is missing
> the copyright notice.
>
ok. I will fix this part too in v11.

> You need to finish the conversation you and Christoph were having in
> that thread, but you also need a v11 of the patchset that fixes the
> copyright issues.
>
Yes. I will ping Christoph and Tejun as I am waiting for their responses.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-05-18 15:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <743399f9-10b7-6e62-2bf4-6a8656df8a55@redhat.com>
     [not found] ` <20160516114926.GA681@lst.de>
     [not found]   ` <f6fdfc59-8193-18ed-0449-a16bba4601e0@redhat.com>
     [not found]     ` <CA+55aFzq+4DJL46B8PXQQG-DpNpzZNzk=O6j+8U_NC6H6BwTdQ@mail.gmail.com>
     [not found]       ` <CA+55aFzq+4DJL46B8PXQQG-DpNpzZNzk=O6j+8U_NC6H6BwTdQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-17  5:38         ` CQ and RDMA READ/WRITE APIs Christoph Hellwig
2016-05-17 15:35           ` Christoph Lameter
     [not found]       ` <6633ce02-7983-ad09-f95d-03cea6f54e31@redhat.com>
     [not found]         ` <6633ce02-7983-ad09-f95d-03cea6f54e31-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-17 17:29           ` Bart Van Assche
     [not found]             ` <573B550D.5020008-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2016-05-17 17:32               ` Doug Ledford
2016-05-17 18:50                 ` Linus Torvalds
     [not found]                 ` <732fb772-2f21-3ac9-a35a-aa4383734df5-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-18  2:48                   ` Parav Pandit
     [not found]                     ` <CAG53R5VSjz_G1adajcoUdgh3Sf1yyKf7UREFoNF9x_V+N6oR6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-18 14:07                       ` Doug Ledford
     [not found]                         ` <43b558b1-8400-612c-9b27-6539be080871-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-18 15:54                           ` Parav Pandit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox