Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7424370rwd; Tue, 20 Jun 2023 00:42:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eUp8ro5VHeo+r0kLIpb3x7cHKTloKowiDFY6VAqnrwy7dj4ZzVKRR+hCNQyQUWX8md6lN X-Received: by 2002:a05:6358:e802:b0:130:fe44:72c9 with SMTP id gi2-20020a056358e80200b00130fe4472c9mr812037rwb.31.1687246976733; Tue, 20 Jun 2023 00:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687246976; cv=none; d=google.com; s=arc-20160816; b=eL8vD8avB1j4fieSJUOwi6FiPBwvovd1ivY2b0Qud0wCOBBujVL+tVw0zFaO8mMTse WqbOpH9NjprZhSm8WnRFUlKqYgogKOsCxV9e2wX+1D26BZQUmuJ4/XVhUYuzpF0DJmp/ b8p2ypkK67LzcD66Vt+WkEgJ9bM/q0Fw4rOnobxFZujcw3FJpcML3YJt/66raSbpM48m E2MSErpOpSt+hVwR2UPGYM80lCoi7i0XWVemf+wUOwollt2B0VhG1G0slq53MtSUkQSe WiXtglRz0htqEltj8cpEUAC9LaHxzEr7qLJdO8qvY8FqIXot13R0OGqOxFjcS+3o7uQF dLAA== 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=TbDjZp1GjSS8e7S76BoXi2n+LrS9fkKZEsxGlz+dwoI=; b=BR8kJbX8+Xfv+aDysrjIOCVErj6wBx07QXeOG6KUccSBP0U3ZuFnL/NXAjEd5PXFuR 8XLAQwq2bdqT/piRuQcqEzDRBJO/uqANmxKVfJnsusaQPrpcv1lkiMlLEXwX8o8ubZ/a 5OI/++V/eYyQmrwB8V7DzLULNdM3Wmg+JN4qtfUr2okl7VLFGMJa9kjvy5rOAqz462Ga XrGK80/wo/cQ2JlzrGuHavvlnBWQHxhudkNxBQEi5T8leZUaAJ4x0CP32bIFTVQqq9jM nxf9rrF7/MjLGLxbygWcZE2QXJu1XWnfDrnFjGTxf4/GCopglR2KXM72CeSC0gmGYClo Nr5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LJ32k4sI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a637f17000000b00553caa0c884si1198745pgd.611.2023.06.20.00.42.44; Tue, 20 Jun 2023 00:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LJ32k4sI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbjFTHgO (ORCPT + 99 others); Tue, 20 Jun 2023 03:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbjFTHfO (ORCPT ); Tue, 20 Jun 2023 03:35:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEAEC10DB; Tue, 20 Jun 2023 00:34:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA2BE6102A; Tue, 20 Jun 2023 07:34:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3244FC433C0; Tue, 20 Jun 2023 07:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687246484; bh=x4bDx7j3zJPo8H1+HoyMmJ95wfLoimCtDNuaHTR7vGc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LJ32k4sITWRFtBWDLlr5Rq2XN6LHpbTj5I6Iss6pPs8sYAePnlfRkMV2WIV4UfkFC uJD0j+E4w0a2YvZQGw3a+9i7PzNAc49bz6L9WX1yMcl8iznNVyqUGQaJUTDo27zMWv NNOJP1Lk/3Y+7CSuflPI7S4cwhOHHPSo97NQLtXPo/CU4YGavtCTuDJtjJzpzDIvf8 8cE4WvKAE22FULUIspt69sqo011iUeJD3f6GHXwDCDJOO/kbWDof79WzBtULI527AZ VoLkfbxh797lZsgh/0TkOZNam9AfSmgpxgE3MsTgxY8gZUKLDDOun2o2tBQrF377dh fruysrJDc1g9w== Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-570808d8ddeso41631177b3.0; Tue, 20 Jun 2023 00:34:44 -0700 (PDT) X-Gm-Message-State: AC+VfDzXLDDI9n4tCZ1qXag1vmdLydmOR2DGgjuXyDdwZhYJy0nw4xLY KyUZ73/RG6xZJcqSU/6FXMZXqsrynyo7gJEEa48= X-Received: by 2002:a25:e786:0:b0:b9e:b9b4:bb12 with SMTP id e128-20020a25e786000000b00b9eb9b4bb12mr8461938ybh.48.1687246483175; Tue, 20 Jun 2023 00:34:43 -0700 (PDT) MIME-Version: 1.0 References: <20230620004217.4700-1-dakr@redhat.com> <2c92bae3-0003-3c53-8ef1-6e12e5413995@redhat.com> In-Reply-To: From: Oded Gabbay Date: Tue, 20 Jun 2023 10:34:16 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH drm-next v5 00/14] [RFC] DRM GPUVA Manager & Nouveau VM_BIND UAPI To: Dave Airlie Cc: Danilo Krummrich , Donald Robson , daniel@ffwll.ch, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net, christian.koenig@amd.com, bskeggs@redhat.com, Liam.Howlett@oracle.com, matthew.brost@intel.com, boris.brezillon@collabora.com, alexdeucher@gmail.com, bagasdotme@gmail.com, willy@infradead.org, jason@jlekstrand.net, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 10:13=E2=80=AFAM Dave Airlie wr= ote: > > On Tue, 20 Jun 2023 at 17:06, Oded Gabbay wrote: > > > > On Tue, Jun 20, 2023 at 7:05=E2=80=AFAM Dave Airlie = wrote: > > > > > > Since this is feature is nouveau only currently and doesn't disturb > > > the current nouveau code paths, I'd like to try and get this work in > > > tree so other drivers can work from it. > > > > > > If there are any major objections to this, I'm happy to pull it back > > > out again, but I'd like to get some acks/rb in the next couple of day= s > > > in order to land some of it. > > > > > > Dave. > > > > > > > > > > > > > > forgot to add your email address to the patch series - sorry about = that. > > > > > > > > This series (v5) contains the Documentation changes you requested. > > > > > > > > - Danilo > > > > > > > > On 6/20/23 02:42, Danilo Krummrich wrote: > > > > > This patch series provides a new UAPI for the Nouveau driver in o= rder to > > > > > support Vulkan features, such as sparse bindings and sparse resid= ency. > > > > > > > > > > Furthermore, with the DRM GPUVA manager it provides a new DRM cor= e feature to > > > > > keep track of GPU virtual address (VA) mappings in a more generic= way. > > > > > > > > > > The DRM GPUVA manager is indented to help drivers implement users= pace-manageable > > > > > GPU VA spaces in reference to the Vulkan API. In order to achieve= this goal it > > > > > serves the following purposes in this context. > > > > > > > > > > 1) Provide infrastructure to track GPU VA allocations and ma= ppings, > > > > > making use of the maple_tree. > > > > > > > > > > 2) Generically connect GPU VA mappings to their backing buff= ers, in > > > > > particular DRM GEM objects. > > Will this manager be able to connect GPU VA mappings to host memory > > allocations (aka user pointers) ? > > > > I only skimmed over the uapi definitions, but from that quick glance I > > saw you can only pass a (gem) handle to the vm bind uapi. > > > > I think it is an important feature because you don't want to have two > > GPU VA managers running in your driver (if that's even possible). > > Maybe we should at least try to make sure the uapi is/will be > > compatible with such an extension. > > > > I think that would have to be a new uAPI entry point anyways, since > managing user ptrs is extra, but the uAPI is nouveau specific and > nouveau has no hostptr support as of now. > > The gpuva manager is kernel internal, I think adding host ptr tracking > is useful, but I don't think it's a blocker right now. > > One of the reasons I'd like to get this in the tree is to add things > like that instead of overloading this initial patchset with feature > creep. > > Dave. ok, that makes sense. Thanks, Oded