Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp179498rdg; Tue, 10 Oct 2023 07:28:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcBL88LlaEn7w4P2RpeKE8SPLVFFbulq87/kllqNRzi8VU33hwtAIYLqDQLA+Z0JMEU8V8 X-Received: by 2002:a05:6a00:b8b:b0:68f:d1a7:1a3a with SMTP id g11-20020a056a000b8b00b0068fd1a71a3amr21806890pfj.8.1696948079969; Tue, 10 Oct 2023 07:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696948079; cv=none; d=google.com; s=arc-20160816; b=GAWN3tZZvp0oIlGo0TN+RMOu/P7oJQxsDb3rBHrdPyTRaz+kKRKIKJ+ftulTvzEiXP iOYT/5jBqRcUH+WpQoLzgrW2a0/lRsMxx+eXDDJjbjqo6/dqqlV2Yx9ZFIv/K2465PVm PNHdPaXcjFnSonfhh8HdoWkcXzKXufQmZ8V1kf/j1h2LlV11ISaAEpAF1Co4efuCOxNZ v3XFcwERWGuz/CT8gebG6zYno1wCHEvt9hvwJw1WNxCLEKq6Hu76XHytvCU6pFq0G2QZ CflAhTi+lzqyae8aefpvvQBIoi+1R7lvtVbexHUkWff11eppBGcRZjGA9/XFTD6xNdYG FOVA== 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:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i185-20020a6387c2000000b00578e4bff431si11614150pge.420.2023.10.10.07.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:27:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; 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:2 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 agentk.vger.email (Postfix) with ESMTP id BDE08804AD0C; Tue, 10 Oct 2023 07:27:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233023AbjJJO1s (ORCPT + 99 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 ); 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 ; 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=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Danilo Krummrich , 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:27:57 -0700 (PDT) X-Spam-Level: ** 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 Cc: airlied@gmail.com Cc: daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org Signed-off-by: Thomas Hellström --- 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