Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7414452rwd; Tue, 20 Jun 2023 00:32:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QfYXXbrKSN1T3LIOEm18cVQMpevzqPNOJdN/Hn0yreWzzsPkvvVk4bMy+5LdPYGzkerQL X-Received: by 2002:a05:6808:1385:b0:39e:ceaa:92ee with SMTP id c5-20020a056808138500b0039eceaa92eemr8417215oiw.31.1687246322988; Tue, 20 Jun 2023 00:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687246322; cv=none; d=google.com; s=arc-20160816; b=iO97sTMXfwlVNAR523fI9e1TLhyWtCJuwNeshsKGED/6oIAXm2i74i/PoJhbt43bO+ XE36ZZ/ePfkD9ub8wjp09+Q+EwfXg86Ty4x+z/QBaxdyoXTZUPNKEFu+AiKQn7/RxxG6 WmYyE+RvwoPI/DyOLbO70Q8AwI+csmsUr3YUyw7crETmgRFezVk9S4KdAz0hbir9dDsB z891kH9dMYsFGSqHCYvq7Zadt9bnfxDknjAKYPmPv5c5svIbbWtVZjoWZ/OfeuTyZhDi Sl0N55jxVOaVL64qJNBvaQlcfFeViVQb1F79rUE+mqwrmLWBBHxyddqCqQwggY5Xqbxg UqcQ== 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=cHYZLznLEupvmNgdz85Wsrh9nTfIdkBiscUX255Az7M=; b=FUIk7Z3QEFu8DabcWjrB3To2IY473L2pM7QHdT40XcSwPCVqriOqC8dXZ3hMnIaL4E 0/ZLLLCGQ5tvfS62Lh2rfNOkVk+Y9TqWrjzFYNRkxPWZa0rdeltI6TBOiTUj5+Xr0vtF G9MD4jhMk6Tpe+/QcxlqXkA85DoGMhRyIa0UHoGSheWO/iGlZ7+fG9b+alzVIi4W2CKb nJxww62Q0zGVTLx8gM3LhIEykrcYoSehQcfX2yNPpri1/KrOACCkvavH9UJFN82L0q9w 0m8U/x+LDp2b4lAde1EeE8auU6Lhnyyk79dnLeWJ2XrlNZY+2lsthloJikp2NDuZb/UR OkQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KS2MlNlX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a17090a8d0400b0025979e8c246si1400540pjo.70.2023.06.20.00.31.45; Tue, 20 Jun 2023 00:32:02 -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=@gmail.com header.s=20221208 header.b=KS2MlNlX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230526AbjFTHOX (ORCPT + 99 others); Tue, 20 Jun 2023 03:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbjFTHOR (ORCPT ); Tue, 20 Jun 2023 03:14:17 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DED16119; Tue, 20 Jun 2023 00:13:47 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-988689a5f44so264018866b.1; Tue, 20 Jun 2023 00:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687245224; x=1689837224; 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=cHYZLznLEupvmNgdz85Wsrh9nTfIdkBiscUX255Az7M=; b=KS2MlNlXd3y1nTza3BQfUQefl0hUFRyaHJjF0aNqen8fNC0xrWWq2Wqj4BXSO/TymI 7ZYHqb9Q0z2YI2jLz3j5V3n5Ti55PCYI2DNo0FHlYiLkbjgBrKE94yVJbYGGRKO2JNie swEfgr00n17CznG0qqtGxiT9LXeKUpAqB8fL9K0Wiz5Fv4c9DZuG7zH27UlHU+IpIXwj /74r3NxBxFV57roZ9AojpB2d+cobw2MJdSENRHLkn+1RSHeZreF8MTrO09njiqaaSNXW jaqzeslntv7BXyd++oVljfTIIA2Inss/uW3+u+Ol8tO7biaME1caakBq2wFMkXEmVjx/ SE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687245224; x=1689837224; 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=cHYZLznLEupvmNgdz85Wsrh9nTfIdkBiscUX255Az7M=; b=Yk0oCVh5gZ2fJTX1aWMD+YoQKwivtwZRm0JUQ1S1gyAntqnSk3k7kLqRO+cz/ux6TK TlRqECa41/n0R1cVagxF/Kyj2HhzXBmIjnI93osR+98NQAaXeuso67XxAe93ErUU3TTz aags5qDR8hdh08653L80SHdaolHqpUP7zLnOtE07Lri4KxcTUV6smzXoPk/G9n6SvO6p 8FCoXWq9ZYtN8OFSIRRiVi3moLKdq3iZEoVHGeeBuMELYb6H2WOO6NCatsKKSJQvP2Dr Gk6+YlXv+xHb5hZGvkdYuB6iPN4Jzn3NkhTnC0/YSXW1L/0j0UTP8ZHEsc4bfobJS/IH 860g== X-Gm-Message-State: AC+VfDwVFm/BSyFDEAhdpK+jZ2y5avUwmqCP3kN9RJYGD8H+8CfqLJ8f N3tkD1Mt0G6Z9gddZbJj03Eq2etPDKrYFCyPYiM= X-Received: by 2002:a17:907:a412:b0:989:d9d:d911 with SMTP id sg18-20020a170907a41200b009890d9dd911mr1975412ejc.69.1687245224382; Tue, 20 Jun 2023 00:13:44 -0700 (PDT) MIME-Version: 1.0 References: <20230620004217.4700-1-dakr@redhat.com> <2c92bae3-0003-3c53-8ef1-6e12e5413995@redhat.com> In-Reply-To: From: Dave Airlie Date: Tue, 20 Jun 2023 17:13:31 +1000 Message-ID: Subject: Re: [PATCH drm-next v5 00/14] [RFC] DRM GPUVA Manager & Nouveau VM_BIND UAPI To: Oded Gabbay 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, 20 Jun 2023 at 17:06, Oded Gabbay wrote: > > On Tue, Jun 20, 2023 at 7:05=E2=80=AFAM Dave Airlie w= rote: > > > > 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 days > > in order to land some of it. > > > > Dave. > > > > > > > > > > forgot to add your email address to the patch series - sorry about th= at. > > > > > > 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 ord= er to > > > > support Vulkan features, such as sparse bindings and sparse residen= cy. > > > > > > > > Furthermore, with the DRM GPUVA manager it provides a new DRM core = feature to > > > > keep track of GPU virtual address (VA) mappings in a more generic w= ay. > > > > > > > > The DRM GPUVA manager is indented to help drivers implement userspa= ce-manageable > > > > GPU VA spaces in reference to the Vulkan API. In order to achieve t= his goal it > > > > serves the following purposes in this context. > > > > > > > > 1) Provide infrastructure to track GPU VA allocations and mapp= ings, > > > > making use of the maple_tree. > > > > > > > > 2) Generically connect GPU VA mappings to their backing buffer= s, 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.