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 4BA45CD6E79 for ; Mon, 8 Jun 2026 21:22:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8DDA710F9C2; Mon, 8 Jun 2026 21:22:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="fKRJp8b2"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B64410F9C2 for ; Mon, 8 Jun 2026 21:22:48 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id B66A56001D; Mon, 8 Jun 2026 21:22:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ED631F00893; Mon, 8 Jun 2026 21:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780953767; bh=EfXp7JFa1R9BKRZHoQ67nu1SOmfqiextSFNLvVPjdPw=; h=Date:Cc:To:From:Subject:References:In-Reply-To; b=fKRJp8b2lDPKEQ0P7arJaQthfdjff7/CLhBnyRYh7Mh7c8rfX/VweH0Ew0mGY1kIR yt+70EIPgseJyASFq0Eb8GeOpuWh0DPbTWGBRPI8UxnHfULw3rvGVcsA/irV8A013G IrberBpnJqnRCvp04DfjZSZ9LjkjMx+xd7L5Enpcd51dw5msdChsqU3ewzRlEAdNdk a7doGJS8dZopmfYQoG8cPUgBbFxtd1GGnDvVMyhGWNu4L6YYdJUvFUR06PNYXelahw KP5MOmSH+vMC96ZcOX8u3IK75RS7Nst26rCwGmVW3dNTUhc3G5eBdv1e/om9KTd2b+ 9UAgvbNxSt+cg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 08 Jun 2026 23:22:40 +0200 Message-Id: Cc: "Alice Ryhl" , "Daniel Almeida" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Trevor Gross" , "Bjorn Helgaas" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , "Abdiel Janulgue" , "Robin Murphy" , "Alexandre Courbot" , "David Airlie" , "Simona Vetter" , , , , , , , "Laura Nao" To: "Gary Guo" From: "Danilo Krummrich" Subject: Re: [PATCH v3 00/19] rust: I/O type generalization and projection References: <20260608-io_projection-v3-0-c5cde13a5ec4@garyguo.net> In-Reply-To: <20260608-io_projection-v3-0-c5cde13a5ec4@garyguo.net> 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon Jun 8, 2026 at 9:58 PM CEST, Gary Guo wrote: > This series present a major rework of I/O types, as a summary: > > - Make I/O regions typed. The existing untyped region still exists > with a dynamically sized `Region` type. > > - Create I/O view types to represent subregion of a full I/O region mappe= d. > A projection macro is added to allow safely create such subviews. > > - Split I/O traits, make I/O views play a central role, avoid > duplicate monomorphization and less `unsafe` code. > > - Add a `SysMem` backend, and make `Coherent` implement `Io`. > > - Add copying methods (memcpy_{from,to}io and friends). Great work, Gary! I very much like how the implementation turns out overall (will go over the details in the next days). FYI, once ready I will merge this with a "Merge patch series" merge commit = to retain the cover letter as I did with the driver lifetime series previously= . Suggested-by: Danilo Krummrich Link: https://rust-for-linux.zulipchat.com/#narrow/channel/288089-General/t= opic/Generic.20I.2FO.20backends/near/571198078 (Either on the relevant patches or just the cover letter, both is fine with= me.)