Message ID | 20231010142725.8920-1-thomas.hellstrom@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp242962vqb; Tue, 10 Oct 2023 07:28:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeiCs2NaLip4rmKVH/WQ5/k0Irr9PCNn8h7YozySDsCGUmgBr5U4xzjDeqdVtoEvbtv1Ua X-Received: by 2002:a05:6a00:b52:b0:690:15c7:60d8 with SMTP id p18-20020a056a000b5200b0069015c760d8mr23471328pfo.22.1696948088416; Tue, 10 Oct 2023 07:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696948088; cv=none; d=google.com; s=arc-20160816; b=eKkpMVbVs/coUNadiELzzlQMag9NcCvd5z7jB5FeX/PHBFIBQ4hs5lEPuvIi3eI+Os xZCsN2I+YgcqNAa+ZSzdgYwBcwLLl95uVs0jEkrBs8YxRoAr/gnj9vpO0AwoVAZI4J4g 7rcxdJ0bao0qwYE/TMoBE2UYN3hgenSpUnetUZgFEjB1EVauXGVKweGRdC2RAYK/4cFP SQfB04/Mdi3olG7n/hUBSUNnwr3p2+MOT94he+uMAzO64gxo/oR1ikbhO5BxSf6N/1kP N5MJjQsrj/p50hP8mpZNBxpl6EnLrz4rcgcfnVQ8+MDa7eO28/tm3LCUb2Rj6xr1j9p3 rgzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BX9n6xWg5zbV3VxVV+oJLiJaj2Shs+MB85+eQjEX1xY=; fh=J/L6n4xnSOGIPaqTE8gF5zKDq+Zok2Fboj3uZTuaJEc=; b=WPGzeQApmtdgJgBeuSIiiVqmD2+5LN+8v7HqLSwPItgj+vZ+cGlXcAC1qgdc/2IZfS GJKFpq09VVtGTpsh3+aWraxHddtKuXY5zdSC4wr1d2K3OrWyb0vOz7w6uW8Jv79ZiH/e o4OA9L61664xg84oR1jEbsMrPrmFGoq04tDQivnfBbBdwz5ilnS8WH4IRl8LZPmNXQ2d 9cJfMym9Lnzh+IGg4c5MSL/ZMBqygLl7Rvne+L9OuioWwxoF8gRwbM4JS6AKr3J0g1i0 /WxNbiluC/QRsxXlJIbpNkOA8zjtDZRXhqk4Dbl22HYw/qtZRd5LkNQUYEJLSVih500i U2xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hLT4P8Tz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id y3-20020a056a00190300b0068a65b26fc6si10084118pfi.43.2023.10.10.07.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:28:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hLT4P8Tz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0B1938056C5A; Tue, 10 Oct 2023 07:28:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232779AbjJJO1s (ORCPT <rfc822;rua109.linux@gmail.com> + 20 others); Tue, 10 Oct 2023 10:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbjJJO1q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Oct 2023 10:27:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D3E91 for <linux-kernel@vger.kernel.org>; Tue, 10 Oct 2023 07:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696948065; x=1728484065; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5WdwfPpssWHEumsq9mc7e5KRo9vNp83NwtHC1MesJUc=; b=hLT4P8TzO9ZjeLCcDW4XF73d41XOUx7lcDNFsBsL0Awp8NSlwaFcPDWH 4EtYrbOtfiJG9tdUykoM/8Fwd+c3Zu3p36oeS/jQRKFz4vsATKu1vHFz4 I/GdPYenoQ+aAdBvNtAUgD2Drri9eFwOwje4a3EQzytqMB3xhtCFCKeN7 B7TiUfApgmbfWZbzIehjOQXBMjvliH3HsAM2xd0LDDmF8LxER07Zr2vKZ A7AsPBxVpD0EqpebQN9GqGBJqiUG5fwBENB24vjHZr+Pyq8UEuD7LdNxg l2Da4vD6K5Z6YlkqCBHPgQrhIvjIPDpV7CSbw5ZOHGyqlq2sPk9YJYH8Q w==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="448598110" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="448598110" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 07:27:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="869713704" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="869713704" Received: from agargas-mobl.ger.corp.intel.com (HELO fedora..) ([10.249.254.164]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 07:27:43 -0700 From: =?utf-8?q?Thomas_Hellstr=C3=B6m?= <thomas.hellstrom@linux.intel.com> To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: =?utf-8?q?Thomas_Hellstr=C3=B6m?= <thomas.hellstrom@linux.intel.com>, Danilo Krummrich <dakr@redhat.com>, airlied@gmail.com, daniel@ffwll.ch, linux-kernel@vger.kernel.org Subject: [PATCH] drm/gpuvm: Dual-licence the drm_gpuvm code GPL-2.0 OR MIT Date: Tue, 10 Oct 2023 16:27:24 +0200 Message-ID: <20231010142725.8920-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:28:03 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779379038931781858 X-GMAIL-MSGID: 1779379038931781858 |
Series |
drm/gpuvm: Dual-licence the drm_gpuvm code GPL-2.0 OR MIT
|
|
Commit Message
Thomas Hellström
Oct. 10, 2023, 2:27 p.m. UTC
Dual-licence in order to make it possible for other non-GPL os'es
to re-implement the code. The use of EXPORT_SYMBOL_GPL() is intentionally
left untouched to prevent use of drm_gpuvm as a proxy for non-GPL drivers
to access GPL-only kernel symbols.
Much of the ideas and algorithms used in the drm_gpuvm code is already
present in one way or another in MIT-licensed code.
Cc: Danilo Krummrich <dakr@redhat.com>
Cc: airlied@gmail.com
Cc: daniel@ffwll.ch
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/drm_gpuvm.c | 2 +-
include/drm/drm_gpuvm.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
On Tue, Oct 10, 2023 at 04:27:24PM +0200, Thomas Hellström wrote: > Dual-licence in order to make it possible for other non-GPL os'es > to re-implement the code. The use of EXPORT_SYMBOL_GPL() is intentionally > left untouched to prevent use of drm_gpuvm as a proxy for non-GPL drivers > to access GPL-only kernel symbols. > > Much of the ideas and algorithms used in the drm_gpuvm code is already > present in one way or another in MIT-licensed code. > > Cc: Danilo Krummrich <dakr@redhat.com> > Cc: airlied@gmail.com > Cc: daniel@ffwll.ch > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Acked-by: Danilo Krummrich <dakr@redhat.com> > --- > drivers/gpu/drm/drm_gpuvm.c | 2 +- > include/drm/drm_gpuvm.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c > index 02ce6baacdad..08c088319652 100644 > --- a/drivers/gpu/drm/drm_gpuvm.c > +++ b/drivers/gpu/drm/drm_gpuvm.c > @@ -1,4 +1,4 @@ > -// SPDX-License-Identifier: GPL-2.0-only > +// SPDX-License-Identifier: GPL-2.0 OR MIT > /* > * Copyright (c) 2022 Red Hat. > * > diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h > index 361fea5cb849..21bbf11415b3 100644 > --- a/include/drm/drm_gpuvm.h > +++ b/include/drm/drm_gpuvm.h > @@ -1,4 +1,4 @@ > -/* SPDX-License-Identifier: GPL-2.0-only */ > +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ > > #ifndef __DRM_GPUVM_H__ > #define __DRM_GPUVM_H__ > -- > 2.41.0 >
On 10/17/23 09:54, Danilo Krummrich wrote: > On Tue, Oct 10, 2023 at 04:27:24PM +0200, Thomas Hellström wrote: >> Dual-licence in order to make it possible for other non-GPL os'es >> to re-implement the code. The use of EXPORT_SYMBOL_GPL() is intentionally >> left untouched to prevent use of drm_gpuvm as a proxy for non-GPL drivers >> to access GPL-only kernel symbols. >> >> Much of the ideas and algorithms used in the drm_gpuvm code is already >> present in one way or another in MIT-licensed code. >> >> Cc: Danilo Krummrich <dakr@redhat.com> >> Cc: airlied@gmail.com >> Cc: daniel@ffwll.ch >> Cc: linux-kernel@vger.kernel.org >> Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> > Acked-by: Danilo Krummrich <dakr@redhat.com> Thanks, Danilo Thomas > >> --- >> drivers/gpu/drm/drm_gpuvm.c | 2 +- >> include/drm/drm_gpuvm.h | 2 +- >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c >> index 02ce6baacdad..08c088319652 100644 >> --- a/drivers/gpu/drm/drm_gpuvm.c >> +++ b/drivers/gpu/drm/drm_gpuvm.c >> @@ -1,4 +1,4 @@ >> -// SPDX-License-Identifier: GPL-2.0-only >> +// SPDX-License-Identifier: GPL-2.0 OR MIT >> /* >> * Copyright (c) 2022 Red Hat. >> * >> diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h >> index 361fea5cb849..21bbf11415b3 100644 >> --- a/include/drm/drm_gpuvm.h >> +++ b/include/drm/drm_gpuvm.h >> @@ -1,4 +1,4 @@ >> -/* SPDX-License-Identifier: GPL-2.0-only */ >> +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ >> >> #ifndef __DRM_GPUVM_H__ >> #define __DRM_GPUVM_H__ >> -- >> 2.41.0 >>
On Tue, Oct 17, 2023 at 10:14:59AM +0200, Thomas Hellström wrote: > > On 10/17/23 09:54, Danilo Krummrich wrote: > > On Tue, Oct 10, 2023 at 04:27:24PM +0200, Thomas Hellström wrote: > > > Dual-licence in order to make it possible for other non-GPL os'es > > > to re-implement the code. The use of EXPORT_SYMBOL_GPL() is intentionally > > > left untouched to prevent use of drm_gpuvm as a proxy for non-GPL drivers > > > to access GPL-only kernel symbols. > > > > > > Much of the ideas and algorithms used in the drm_gpuvm code is already > > > present in one way or another in MIT-licensed code. > > > > > > Cc: Danilo Krummrich <dakr@redhat.com> > > > Cc: airlied@gmail.com > > > Cc: daniel@ffwll.ch > > > Cc: linux-kernel@vger.kernel.org > > > Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> > > Acked-by: Danilo Krummrich <dakr@redhat.com> As this was acked by author: Reviewed-by: Francois Dugast <francois.dugast@intel.com> > > Thanks, Danilo > > Thomas > > > > > > > --- > > > drivers/gpu/drm/drm_gpuvm.c | 2 +- > > > include/drm/drm_gpuvm.h | 2 +- > > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c > > > index 02ce6baacdad..08c088319652 100644 > > > --- a/drivers/gpu/drm/drm_gpuvm.c > > > +++ b/drivers/gpu/drm/drm_gpuvm.c > > > @@ -1,4 +1,4 @@ > > > -// SPDX-License-Identifier: GPL-2.0-only > > > +// SPDX-License-Identifier: GPL-2.0 OR MIT > > > /* > > > * Copyright (c) 2022 Red Hat. > > > * > > > diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h > > > index 361fea5cb849..21bbf11415b3 100644 > > > --- a/include/drm/drm_gpuvm.h > > > +++ b/include/drm/drm_gpuvm.h > > > @@ -1,4 +1,4 @@ > > > -/* SPDX-License-Identifier: GPL-2.0-only */ > > > +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ > > > #ifndef __DRM_GPUVM_H__ > > > #define __DRM_GPUVM_H__ > > > -- > > > 2.41.0 > > >
diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c index 02ce6baacdad..08c088319652 100644 --- a/drivers/gpu/drm/drm_gpuvm.c +++ b/drivers/gpu/drm/drm_gpuvm.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-only +// SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (c) 2022 Red Hat. * diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h index 361fea5cb849..21bbf11415b3 100644 --- a/include/drm/drm_gpuvm.h +++ b/include/drm/drm_gpuvm.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ #ifndef __DRM_GPUVM_H__ #define __DRM_GPUVM_H__