From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8B28C0015E for ; Fri, 28 Jul 2023 12:26:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B24D010E1FF; Fri, 28 Jul 2023 12:26:20 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D25D10E1FD; Fri, 28 Jul 2023 12:26:18 +0000 (UTC) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by madras.collabora.co.uk (Postfix) with ESMTPSA id 12AE3660716E; Fri, 28 Jul 2023 13:26:16 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690547176; bh=Zuw3jk8mejPhGkU4q+qt5KLfIfe2BfW1w5UKG2oKYJg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CXGHqz2KdwadkHCSRUxB388XGBuPyDuOkH/TrBhRLZROG/LJGdIUiKsxWjDGrpq4p qo62jLxKl2bRNl0su1D73yldGjEM8xmC7S6jweG06y1u/2tdWXnRJ1Ih3nTbb6NqqO wr4FNBwH9u9F3NcqB+YHRkHgfxNn2B5BNlWKL5lTmxLCijitlJKZvpmHFwbbqWBJLy /GJr77MVKq5v7GXuNvAsYQyljhdYDnkgmKqRKhFp2vHptb0+cgMZO+bysK4IXV+iTv GQr5a7eoXjcskeHopo9TIa31E4yMY/mhd/BctWaqitn2DLsO7b6Dnpz4dzx4WtVtpo nmLCKxDNuKVKQ== Date: Fri, 28 Jul 2023 14:26:12 +0200 From: Boris Brezillon To: Maxime Ripard Subject: Re: [PATCH drm-misc-next v8 01/12] drm: manager to keep track of GPUs VA mappings Message-ID: <20230728142612.2ecf99ef@collabora.com> In-Reply-To: References: <20230720001443.2380-1-dakr@redhat.com> <20230720001443.2380-2-dakr@redhat.com> Organization: Collabora X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: matthew.brost@intel.com, Thomas =?UTF-8?B?SGVsbHN0csO2bQ==?= , willy@infradead.org, dri-devel@lists.freedesktop.org, corbet@lwn.net, nouveau@lists.freedesktop.org, ogabbay@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Liam.Howlett@oracle.com, Danilo Krummrich , bskeggs@redhat.com, tzimmermann@suse.de, Dave Airlie , bagasdotme@gmail.com, christian.koenig@amd.com, jason@jlekstrand.net, donald.robson@imgtec.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, 28 Jul 2023 13:31:36 +0200 Maxime Ripard wrote: > Hi Danilo, >=20 > On Thu, Jul 20, 2023 at 02:14:22AM +0200, Danilo Krummrich wrote: > > Add infrastructure to keep track of GPU virtual address (VA) mappings > > with a decicated VA space manager implementation. > >=20 > > New UAPIs, motivated by Vulkan sparse memory bindings graphics drivers > > start implementing, allow userspace applications to request multiple and > > arbitrary GPU VA mappings of buffer objects. The DRM GPU VA manager is > > intended to serve the following purposes in this context. > >=20 > > 1) Provide infrastructure to track GPU VA allocations and mappings, > > making using an interval tree (RB-tree). > >=20 > > 2) Generically connect GPU VA mappings to their backing buffers, in > > particular DRM GEM objects. > >=20 > > 3) Provide a common implementation to perform more complex mapping > > operations on the GPU VA space. In particular splitting and merging > > of GPU VA mappings, e.g. for intersecting mapping requests or partial > > unmap requests. > >=20 > > Acked-by: Thomas Hellstr=C3=B6m > > Acked-by: Matthew Brost > > Reviewed-by: Boris Brezillon > > Tested-by: Matthew Brost > > Tested-by: Donald Robson > > Suggested-by: Dave Airlie > > Signed-off-by: Danilo Krummrich =20 >=20 > For some reason this breaks the drm_exec kunit patches: Fix available here [1]. [1]https://lore.kernel.org/dri-devel/cbf4ccf9-8131-27a0-332c-6942866340d1@i= galia.com/T/#t