From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A72C03537FC; Wed, 8 Apr 2026 18:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775671273; cv=none; b=VI/llytgjDSjBgF+SkdyknZ0Srtq/9RsW+uXSSzcad5rIs2DmMpmt5hsiX78CowlPA9lXEiOKsyDfM2llVKC+BVVYSoxfjMoWu2e/QoXiq9lXH7f7YKAQkvxGqjQZn9Z/dHo+xpZ120DU2cjg+xjYevywBWpY+xd2LpDRAV+Rz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775671273; c=relaxed/simple; bh=vMeMK+n87aZGl3H05qmgvP4N4G/hHJPPTA9+9weNZ94=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=e1VrFSe7TU4uA6fAwa6Goir7eaF3xFQDjYUx2jzf/hDpyBuBVh/ZyuOTirpArtvp5MHpm+Hn8CH2zv8S+8hlAQuGw10rtGPwTC2DhETwyQik4mTEaa2p1vgBovs5GOblwbZl9dHAk77ZGcFafW63LHMO0ITeNpzdadF6GFUGKdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cz55or9/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cz55or9/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46CE3C19421; Wed, 8 Apr 2026 18:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775671273; bh=vMeMK+n87aZGl3H05qmgvP4N4G/hHJPPTA9+9weNZ94=; h=Date:Cc:To:From:Subject:References:In-Reply-To:From; b=Cz55or9/FmdbXo2d5UahkCjF5PYt1L4nL7LkO8dKTXHIp13pUXjVQ996CuZ2YmJBh 2POkTq2nv0uCHmNMsFvZWFtoH4OyfaCVu3+BHjaViU9ip9OEFMztcHaRF08gcHH/SW P0ZozX65OAjZTAAXPsuavCA3DK0GW4zw895UdyqCDkiAPxhNOkJ07D1VlNlZ1Kw5zu Gq5uP4CsUQ4RgjkKuRkTETtSZAY5RQ/JTIIeg1O/mSsz/rFHRWcgR41YYkOldcLshk TtW1/VI6qDJhAEqjfBuBzYVnk4+5uXpl6Dg4Sk6Skz7shIetnoI/ANCtbLWAaivlkU 33HfPiJK+044Q== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 08 Apr 2026 20:01:01 +0200 Message-Id: Cc: , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , "Bjorn Roy Baron" , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Dave Airlie" , "Daniel Almeida" , "Koen Koning" , , , "Nikola Djukic" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Jonathan Corbet" , "Alex Deucher" , "Christian Koenig" , "Jani Nikula" , "Joonas Lahtinen" , "Rodrigo Vivi" , "Tvrtko Ursulin" , "Huang Rui" , "Matthew Auld" , "Matthew Brost" , "Lucas De Marchi" , "Thomas Hellstrom" , "Helge Deller" , "Alex Gaynor" , "Boqun Feng" , "John Hubbard" , "Alistair Popple" , "Timur Tabi" , "Edwin Peer" , "Alexandre Courbot" , "Andrea Righi" , "Andy Ritger" , "Zhi Wang" , "Balbir Singh" , "Philipp Stanner" , "Elle Rhumsaa" , , , , , , , To: "Joel Fernandes" , "Eliot Courtney" From: "Danilo Krummrich" Subject: Re: [PATCH v10 12/21] gpu: nova-core: mm: Add unified page table entry wrapper enums References: <20260311004008.2208806-1-joelagnelf@nvidia.com> <20260331212048.2229260-1-joelagnelf@nvidia.com> <20260331212048.2229260-13-joelagnelf@nvidia.com> <5db2aab1-4b65-486e-ad9b-27a108bdb0d6@nvidia.com> <537a8c5a-3885-4c47-99f6-963b48ddf87d@nvidia.com> In-Reply-To: On Wed Apr 8, 2026 at 6:58 PM CEST, Joel Fernandes wrote: > So you're making the code much much worse than before actually. We don't > new traits and types pointlessly. I had a look at both approaches and yes, the traits can be considered boilerplate. But, they are not complex and they just list method signatures= that each version's types already implement functionality wise and they get us r= id of a lot of dispatch sites. The implementation turns out cleaner as there is l= ess parameter threading throughout call chains, etc. Overall, it seems more scalable. On the other hand, there are indeed more abstractions and type indirections= to understand in Eliot's code. I.e. there are advantages and disadvantages to = both approaches. That said, please engage with Eliot's proposal, it is not as off as your re= ply implies and dismissing it right away is not what I'd like to see in this situation.