From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FD4733F8C1 for ; Thu, 19 Feb 2026 14:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771512334; cv=none; b=ItrghUL8RNF0FKOY2TlmzLKkQMvgWE5piRWVP6cVyFNWj7EEczV+nFXi7t6cExAiImPjQIq4pfW5lGvbUlGX0XoJ+5l9srNWX+NzwqrLEPVruEkX2brvTQk5sjLozWBlgKGKQgGpIPyFyeOWWJxanMi6jCAzJdSrJ6A7a1RPqfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771512334; c=relaxed/simple; bh=fYw1FO2Zyktav/6HUO5ChasMYjYS3ZMigDlcZGSnzvA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Ubwm+57HW0sLH1zE76pel7lffsnDeFn/JvVOwrGY+Cq0Ca3MW9rEAqBuudfxdJlcsRoVQggdVbuMMj17Nw/9yeGqA7h0m522EkHRvWKwX/n+zmV7V7cDRtnsfoPNxIlM39tmvWLXDZLI7W4V/T79GzIe0/8A72ppZHMrkKcbHGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ISIBhEHC; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ISIBhEHC" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4836b7fbf4fso9815405e9.2 for ; Thu, 19 Feb 2026 06:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771512329; x=1772117129; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ON/96V1lMwS1dfQQ1ZSvAAeHD+BqqqKIY95pUkvU5Uw=; b=ISIBhEHCmt+5QE6t2UQZPLIBICAxiidCnBa62PlAqN9JkaAR9jfHEwsHn1cgkNxoF+ geLa4TEUbTNb1vel8OCAocIRuq8WbAoGwYzoaey4M0kh2bLQ30CkGE3BY/srRPD9vhbn +wOBBo4dnFXSndIsFL3Pklcm5x8gxHnslN2QhVYzVC71kuz+QFZmgSgcgL8E7CYAL21g EVjx4T+aQN1WaTJo62xT3uyflbj8fE1q8HwhVwcbBLO4fgQaGXitzZny+H2ZujxPe7sl gMQTj9BGz4Q/SkzmiQkJajTqar5CesghVOT2iVpznUsOnK/EiJ1GbdichU9iJoGJ76Zn aX7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771512329; x=1772117129; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ON/96V1lMwS1dfQQ1ZSvAAeHD+BqqqKIY95pUkvU5Uw=; b=tKoFyVx5Nwt8jEDjVpx2cfB415yAn0Jo76I7ZHeOHLkHTJnquptbbwc6yHvxt0lZQ7 ++NCXydsDMuIdRJNHI01jBMx8Lnz+xyJ/Hq8qD7JBsA447E27fNPhzxQ4dtT6SXDktPd b6+Y5PXcv+kvFuRgvu4zYL17vv7+MJKwN/prrkkwdvKtblv8S9sWheawROzkp40mHn2i WRkoM6rSuJjqZ83SEGNzeBYm+dHGSQbbEyIwIXZlQGN24SW3xTPl9VyeIlwLkxgvMyWD zD/W9XgvBk0oSFqTBT8YyPiG6FPh0Yb/fLJOlLj/dR6jQo4ijbAYlGa5yaU+sZ1iis/n yzcA== X-Forwarded-Encrypted: i=1; AJvYcCUaut/CWYn+KjD/9FbGtIGPFye8rVb0yuAbcolfJeIRFlOFeZq6iT9Z07nHmgB5G4+IO0o6vi+QN3ukq7A=@vger.kernel.org X-Gm-Message-State: AOJu0Yx7xXOgWGx/hTkafduQ69xFNe/7ylQsJRYlwob54q+2/DVq6tvP uxEGTBxCpH++UrnGIBbOHo0lfwVNBLPRVc6j0FFosD2Fz9uql/JfCVmx67iIzemK19H1XzkxOeJ A5Hesx047RXJvGLmN9Q== X-Received: from wmdp17.prod.google.com ([2002:a05:600c:5d1:b0:483:291c:7f23]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600d:8443:10b0:482:df17:bbbc with SMTP id 5b1f17b1804b1-4839e661d4bmr37096335e9.20.1771512329237; Thu, 19 Feb 2026 06:45:29 -0800 (PST) Date: Thu, 19 Feb 2026 14:45:28 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260130-gpuvm-rust-v4-0-8364d104ff40@google.com> <20260130-gpuvm-rust-v4-2-8364d104ff40@google.com> Message-ID: Subject: Re: [PATCH v4 2/6] rust: helpers: Add bindings/wrappers for dma_resv_lock From: Alice Ryhl To: Danilo Krummrich , Sumit Semwal , "Christian =?utf-8?B?S8O2bmln?=" Cc: Daniel Almeida , Boris Brezillon , Janne Grunau , Matthew Brost , "Thomas =?utf-8?Q?Hellstr=C3=B6m?=" , Lyude Paul , Asahi Lina , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Thu, Feb 19, 2026 at 03:40:20PM +0100, Danilo Krummrich wrote: > On Fri Jan 30, 2026 at 3:24 PM CET, Alice Ryhl wrote: > > From: Asahi Lina > > > > This is just for basic usage in the DRM shmem abstractions for implied > > locking, not intended as a full DMA Reservation abstraction yet. > > > > Signed-off-by: Asahi Lina > > Signed-off-by: Daniel Almeida > > Reviewed-by: Alice Ryhl > > Signed-off-by: Lyude Paul > > Reviewed-by: Janne Grunau > > Reviewed-by: Daniel Almeida > > Signed-off-by: Alice Ryhl > > --- > > Taken from: > > https://lore.kernel.org/all/20251202220924.520644-3-lyude@redhat.com/ > > with __rust_helper added. > > --- > > MAINTAINERS | 1 + > > rust/bindings/bindings_helper.h | 1 + > > rust/helpers/dma-resv.c | 14 ++++++++++++++ > > rust/helpers/helpers.c | 1 + > > 4 files changed, 17 insertions(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 618becae72985b9dfdca8469ee48d4752fd0ca41..8d44728261ffa82fc36fa0c5df3b11a5bfb4339b 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -7467,6 +7467,7 @@ L: rust-for-linux@vger.kernel.org > > S: Supported > > W: https://rust-for-linux.com > > T: git git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git > > +F: rust/helpers/dma-resv.c > > F: rust/helpers/dma.c > > F: rust/helpers/scatterlist.c > > F: rust/kernel/dma.rs > > That's fine for me in general, but maybe the DMA BUFFER SHARING FRAMEWORK is > probably the correct place. DMA BUFFER SHARING FRAMEWORK is also under the DRM > umbrella, so we should also add it to the drm-rust entry as well. Sumit, Christian, are you ok with listing this under DMA BUFFER SHARING FRAMEWORK? Alice