From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (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 09EC1337B8E for ; Thu, 22 Jan 2026 09:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769073839; cv=none; b=UHuw1gSj54GDSGZ0behQZ8mTBv93mFOsJkNWtQA8B2Dd+fHhN/gAWo3eHwFc/Lw6gk4JUXSVBAUfbKp6f4A+SibtyhR0JKR/buMaPg8C+lVH3e571Jp/Dh5sdyg1CqPpEZ0UOqtlc3hMNdPDuFw4n6C0Sf88RYXo8HZWQgg4MVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769073839; c=relaxed/simple; bh=3FXpgVv+E3HY9bZvS4MaytEOHIZxTZ1RLjCqSroub2E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Q4uwUs03iZy++ijmx0Effz96wNUteyLRicroTlKQM/McZ60L7FTrJMHTre4sDZ00kLCqD0YuG7/Xe7fzp1Z2LmuLRjYotT6xJ6ukN5RF4/LMsT7FW5Ct5aTBpYxMIH4WAny4/JszntdGCQ25UtrUy/LSyb/jYHIng1M4EC4AiX4= 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=GxwKdliq; arc=none smtp.client-ip=209.85.221.73 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="GxwKdliq" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-430fd96b2f5so710758f8f.3 for ; Thu, 22 Jan 2026 01:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769073834; x=1769678634; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=f+tqp471u8S2ObvMZsCZi1wCcRe0pFsBheU96MjEess=; b=GxwKdliqYZGWdEK81/9CbbaLNxJe5PyxC5UCs8zukJVK46eAqm9xHjh5TWn115U+t+ VLtE3DS5NM+bIww09OGJA9D4a3LnqrD836n+DQICB6F9ocGwvkLM3lmiCqtlltpxFmfg qAxbsFtkLOI3m7ANQ19hlS0FRRexYHbAx+Cqd2cNlqiSIBXRBOfjaJ9TnXfPh/xUNYUB uIAtRqXB60hkHd65YRemkw2gK5RJ4yn3fjGtHb172zSf/5dnjxlB81dCMi6eWlTnBhfz o4cI43Jno2gUO4q78VY9s63P8lhKAPphULOOQ9tSmjxgG1X7ysrCRQsCkAk3JttI5RNC PqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769073834; x=1769678634; h=content-transfer-encoding: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=f+tqp471u8S2ObvMZsCZi1wCcRe0pFsBheU96MjEess=; b=gm7nFF8dY3btv63f6VN4hXlSNANsZD2n8/5BWN5ezVYosvwmQ7fwJ7RCngfqsbzpFM pQua1dfiK9j6noZ4+0BrzDv+stwesDG9Q3YDyO5s+TX/7b2L7HNE6hLxGAXkWIyVi9Tq 97PCcHOJZ3bxljoKF3Djn5Ouk2HriOZSTEdjUp5+bA4NL/oT9rWZHW5bgmwyK0Rw0+td ksKmmsHdQXbKZwh8eKEa3hMC7X58Vngqkc3dWN1ps2SJdpMC93Q9lBW5bfImNcvWJ46J hdQYhMSwJvvjs+DhORIw/HEbVs5QZUEnMgirZAGmWhi8JV8qVksVbNbN0QI/LJzS3nLi Kf5g== X-Forwarded-Encrypted: i=1; AJvYcCXMKF3RjqMtKU3HcyK90jcicwNhB0vRP/2Xo56yquomstpsiiu1SHcDnoD+/4J2rHI0IlRNGFo4frECXE4=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5i7XnRUUI0hZHqyKbHXU/dBXwJWGKDniDiTuUwF7RnKXaJiKs n5EgQbb0MrvArV5/v3u/LGsqFxdB5wpOY119ubM3BDJNtY76AHLmJvm5bylzjCRhTQTrXXJ5/rT GzcSOG5I4y+PyA4mJXA== X-Received: from wmbh2.prod.google.com ([2002:a05:600c:a102:b0:47a:7874:d5d]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:6814:b0:477:5b0a:e616 with SMTP id 5b1f17b1804b1-4803e78fdd9mr135016735e9.5.1769073834677; Thu, 22 Jan 2026 01:23:54 -0800 (PST) Date: Thu, 22 Jan 2026 09:23:53 +0000 In-Reply-To: <52A861BB-9CA1-4F16-AFF5-E3AA96B5833D@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260121-gpuvm-rust-v3-0-dd95c04aec35@google.com> <20260121-gpuvm-rust-v3-1-dd95c04aec35@google.com> <52A861BB-9CA1-4F16-AFF5-E3AA96B5833D@collabora.com> Message-ID: Subject: Re: [PATCH v3 1/6] rust: drm: add base GPUVM immediate mode abstraction From: Alice Ryhl To: Daniel Almeida Cc: Danilo Krummrich , 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" Content-Transfer-Encoding: quoted-printable On Wed, Jan 21, 2026 at 02:04:33PM -0300, Daniel Almeida wrote: > Hi Alice, >=20 > > On 21 Jan 2026, at 08:31, Alice Ryhl wrote: > > +/// The manager for a GPUVM. > > +pub trait DriverGpuVm: Sized { > > + /// Parent `Driver` for this object. > > + type Driver: drm::Driver; > > + > > + /// The kind of GEM object stored in this GPUVM. > > + type Object: IntoGEMObject; >=20 > Hmm, can=E2=80=99t we derive that from Driver::AllocOps? More specificall= y, shouldn=E2=80=99t we enforce it? Hrm, we may wish to require that Self::Object =3D=3D Self::Driver::Object. Not sure what you mean by AllocOps. Alice