Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp934332rdh; Sun, 24 Sep 2023 19:41:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVsPV4iJpjQG6X8l5tC4pVMZvhfxdnnSMWeYiTGN3aep6z8qL6NyzFIrak+uHQT789LB4N X-Received: by 2002:a05:6a00:1513:b0:68a:586a:f62 with SMTP id q19-20020a056a00151300b0068a586a0f62mr4932032pfu.4.1695609690094; Sun, 24 Sep 2023 19:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695609690; cv=none; d=google.com; s=arc-20160816; b=pKAb6FbxqqHDzZJ7GNzW62n/ml8FHacn9RqZ7bJyP9MgB9fXrvAXZqxJdgHyBm6H/8 pg1wGd/BBqACmG1hGCPuvNb34HTY8obAfqA7jG1iMcAP/S/Mm8pTVNOABZxnaEy/j2L4 TI2Gf1xHUxdo3XZWMxNbeql5mT+yi3yJchPFG3Y6cAZWyb8iWI45ie6UJOstEY/Qh9cP br2tGtfI3Gos/woFCZFtelWaJUuU26/lyrFLcDMkHSCcigm3fn+Ny2stQq7ISmgfjf2i i9yMPhSfNCx05oMyAhY2AGOHhwcqjFsouTvvcVBhzXt5qyU+iJp9btBgjYjWOU6EkVhU Tikw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Wmy5JexBXWcDO5nMMXegOq/JNnbovpsIKxOY5tt3G3A=; fh=DLZDiJ/NOp/EddijZgfkdG1kdd04P6gaTe1eUc7pdac=; b=0U/IrJvfr9JwNCdQNLJN+uprXhNgfm5y2D2EH0pD3tNP9NEUmwniyIzsbzHPDTNj5u kgbYmwcv6sM5HDnAHQEzQQqH+yQItsyVqpNi4xsUdPMR/pn0xEcdJwPk7lQBBvBprLr8 WytPLo5U7l7aJXczO8fNNwx43KP5OBonBJNqtAt81pf+Rhxd6unGG6X9yLAWW5OF3yLS yvf5C0VwBMGL2PAjY5MpD7GnX56T+4enHEL2hwwDLWfE2yREKpfqmuO4wm19nYHM9XJW VX9K/5mxjUPNp+ibu2ihkXRZMeGyOSLV//En1eaBj0nTzCirOOWTd3xbd9funHT96Byr h0gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jeZuHTeC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ea25-20020a056a004c1900b00690ba709d02si8932189pfb.381.2023.09.24.19.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 19:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jeZuHTeC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B3CBA802373D; Sun, 24 Sep 2023 17:44:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231622AbjIYAnH (ORCPT + 99 others); Sun, 24 Sep 2023 20:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231513AbjIYAnE (ORCPT ); Sun, 24 Sep 2023 20:43:04 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E1FFE for ; Sun, 24 Sep 2023 17:42:48 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-991c786369cso644946966b.1 for ; Sun, 24 Sep 2023 17:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695602566; x=1696207366; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Wmy5JexBXWcDO5nMMXegOq/JNnbovpsIKxOY5tt3G3A=; b=jeZuHTeC0HQLgUg9+mUw+FN3ixnf+edslKVa3Ff2n1ycGNPmpE7r2PEWTK00wGQLG+ 0WPDBuymRtx/m7ZKJm6owzZSC1hU3vOsOMXo0XqcT6L8JaqicrORUpU06c0UfOuJy6Yf GIBoeuk/DQ1QM1BPnz9I1LgbAmdIzjwdJoKsET3SuRXfplgEO0HAj8Se0RqwUcvfNaJp GxrL677iGunRUnZY8yL4pb2+Robil7Qqa0GI6Z6hB0PORIJTN5X+2wLvKFEnRJUFfJJi Sv7v3HpZsFruPa3IxlpLy5dDTuzNOomIByL0ik8yebfIVJ01AAVSzK0krBKETd/UvCiU mLxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695602566; x=1696207366; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wmy5JexBXWcDO5nMMXegOq/JNnbovpsIKxOY5tt3G3A=; b=Dt93TZxI8eUAYvAgu5J/62OnSvc5AWbht3ekCdGT+eo8mta0plrHEOMVZtIXyHLqjp zLb8w2wWZVInLpvMY+kWtP95bF3BFamnInKL8towxjgVgNwfvDmxgj5Kjhu7YLdc+a3l YC4PEk1YPY91Oq7C+S4JrvOiRL70aVSCOtDTqqLZmQ0Zc6Xkk0CjNmfOM6QszNvrdrUX xwrHw5qXj5ClOpbSqXUH8esHvlGS1l5Y4UPf4nfAbjrSQbBmmwRv6QIJAfZ24f2ksJ7V dAY98BK76YasilmPmEeXEjTSn0Ke5HbNq6EWdMLK7SDPvOKC7+STW98sNgWpTyciTiNA 78Mw== X-Gm-Message-State: AOJu0YwgFZEh7Y6AgUlpW6vhHHNamd9wRzNwAe7+h9fUHZlkZfkabhHa SG4BLZRokhGlbnBqUQabiG4tp/Erip3xUrhNGAw= X-Received: by 2002:a17:907:78cc:b0:9b2:8c37:820 with SMTP id kv12-20020a17090778cc00b009b28c370820mr59580ejc.65.1695602566451; Sun, 24 Sep 2023 17:42:46 -0700 (PDT) MIME-Version: 1.0 References: <20230920144343.64830-1-dakr@redhat.com> <20230920144343.64830-3-dakr@redhat.com> In-Reply-To: <20230920144343.64830-3-dakr@redhat.com> From: Dave Airlie Date: Mon, 25 Sep 2023 10:42:35 +1000 Message-ID: Subject: Re: [PATCH drm-misc-next v4 2/8] drm/gpuvm: allow building as module To: Danilo Krummrich Cc: daniel@ffwll.ch, matthew.brost@intel.com, thomas.hellstrom@linux.intel.com, sarah.walker@imgtec.com, donald.robson@imgtec.com, boris.brezillon@collabora.com, christian.koenig@amd.com, faith.ekstrand@collabora.com, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Sun, 24 Sep 2023 17:44:30 -0700 (PDT) On Thu, 21 Sept 2023 at 00:43, Danilo Krummrich wrote: > > Currently, the DRM GPUVM does not have any core dependencies preventing > a module build. > > Also, new features from subsequent patches require helpers (namely > drm_exec) which can be built as module. > > Reviewed-by: Christian K=C3=B6nig > Signed-off-by: Danilo Krummrich Reviewed-by: Dave Airlie > --- > drivers/gpu/drm/Kconfig | 7 +++++++ > drivers/gpu/drm/Makefile | 2 +- > drivers/gpu/drm/drm_gpuvm.c | 3 +++ > drivers/gpu/drm/nouveau/Kconfig | 1 + > 4 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > index ab9ef1c20349..0f78a03e4e84 100644 > --- a/drivers/gpu/drm/Kconfig > +++ b/drivers/gpu/drm/Kconfig > @@ -216,6 +216,13 @@ config DRM_EXEC > help > Execution context for command submissions > > +config DRM_GPUVM > + tristate > + depends on DRM && DRM_EXEC > + help > + GPU-VM representation providing helpers to manage a GPUs virtua= l > + address space > + > config DRM_BUDDY > tristate > depends on DRM > diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile > index 7a84b3cddeab..8e1bde059170 100644 > --- a/drivers/gpu/drm/Makefile > +++ b/drivers/gpu/drm/Makefile > @@ -45,7 +45,6 @@ drm-y :=3D \ > drm_vblank.o \ > drm_vblank_work.o \ > drm_vma_manager.o \ > - drm_gpuvm.o \ > drm_writeback.o > drm-$(CONFIG_DRM_LEGACY) +=3D \ > drm_agpsupport.o \ > @@ -81,6 +80,7 @@ obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) +=3D drm_pan= el_orientation_quirks.o > # > # > obj-$(CONFIG_DRM_EXEC) +=3D drm_exec.o > +obj-$(CONFIG_DRM_GPUVM) +=3D drm_gpuvm.o > > obj-$(CONFIG_DRM_BUDDY) +=3D drm_buddy.o > > diff --git a/drivers/gpu/drm/drm_gpuvm.c b/drivers/gpu/drm/drm_gpuvm.c > index 7074bcad5b28..bfea4a8a19ec 100644 > --- a/drivers/gpu/drm/drm_gpuvm.c > +++ b/drivers/gpu/drm/drm_gpuvm.c > @@ -1723,3 +1723,6 @@ drm_gpuva_ops_free(struct drm_gpuvm *gpuvm, > kfree(ops); > } > EXPORT_SYMBOL_GPL(drm_gpuva_ops_free); > + > +MODULE_DESCRIPTION("DRM GPUVM"); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kc= onfig > index c52e8096cca4..1e6aaf95ff7c 100644 > --- a/drivers/gpu/drm/nouveau/Kconfig > +++ b/drivers/gpu/drm/nouveau/Kconfig > @@ -11,6 +11,7 @@ config DRM_NOUVEAU > select DRM_TTM > select DRM_TTM_HELPER > select DRM_EXEC > + select DRM_GPUVM > select DRM_SCHED > select I2C > select I2C_ALGOBIT > -- > 2.41.0 >