From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 3A65428C009 for ; Tue, 19 May 2026 19:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779217338; cv=none; b=eWQYq2A7vDjgxGYxuWTMfDtPOmkUgfMsy0THcvpM7W/w+XdHBMtySPZyhzk1wzCXbKT2kox9m5twOZ06sAZLVY0zyh0KWR4ion4d9fWhqgz1TW8o0yMQJkopLqXpKubEC0vsMHSAs4BeuAE1vrR9231YQ2+yjmhYaqo6B0oNcxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779217338; c=relaxed/simple; bh=k0U0SPErPKCW9LWawSkKTcXgFGdc7H4m2CUvw8GQtis=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=nrhMonVj9YbHU4cldkasHogoyhZ5ijJEcqxSwWbNpktcoUvPXIUwDPOqovbl+cHn5rjI9+eSWVvVwbSB2kELGuGHcpQ62Y2T/I7kA+NinXfW685A7YJjeC40BCAY1vOHDFY7tUFR+huql97DR6F0pCSl5fPGjPEQLKzltTD+dLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=G15pZRrA; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=aXHbgP1U; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="G15pZRrA"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="aXHbgP1U" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779217336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k0U0SPErPKCW9LWawSkKTcXgFGdc7H4m2CUvw8GQtis=; b=G15pZRrAmm/GYWygQuao36aQPPrj/gNJSGGzetAzUUD1PLMQ5eYGIijfWCpk4cj5GXLxWk TJJ9xwG6IIwLOmXbK5OHbyWdJvjdqweHHiquZ8c/oW0P2Fu/+l+m/DQJAohin9UpO/RnjW CrvDanSlLhNkzNGWrsW6fqSnBlHzO7U= Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-444-sRv2NfcgMwWCGsnJM6YroQ-1; Tue, 19 May 2026 15:02:14 -0400 X-MC-Unique: sRv2NfcgMwWCGsnJM6YroQ-1 X-Mimecast-MFC-AGG-ID: sRv2NfcgMwWCGsnJM6YroQ_1779217334 Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-1329791f18fso6805628c88.1 for ; Tue, 19 May 2026 12:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1779217334; x=1779822134; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=k0U0SPErPKCW9LWawSkKTcXgFGdc7H4m2CUvw8GQtis=; b=aXHbgP1U+wvMbbPVZV2w6vLJNe2J/FmwxX2OEnF21WK5vxkeAzzm9XQ7afy30gN/Ga Fe8wsE37SgNMAXg6oHb8Xc/JB7NPsUiT3svWmynR0Kc2z0UU6sGSP+N3oNtwedCMrY5j /VCIxZcREVBqadH1vRye5eqZZ2P2ogSs5zRhg9SBBjt9fOTtdmQY++RumzbWNgXYK96x CiK2b+5RzS/ndA4jJ9RTF5g8Tv4VhFLRiah6eECwuzJQVCiIilmbvtwWHQPN/0i8ijkx 9eX4eKwqINYGq8hnjH486d/mNjDZFq2oABxJLZeyJEB9AQxDvXdFmacQL1+T9ZeV7gfe PySQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779217334; x=1779822134; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k0U0SPErPKCW9LWawSkKTcXgFGdc7H4m2CUvw8GQtis=; b=Y/naBcGGJYt6LJ4BJyAqsfGkuwlp4y3Ap+MOYmqPChBlNn0d2VVsxd1vte44loIPIv oCEmdypF/3b188rUyJknF4FfosHTg7DYSKQY8AEFX0wVYE2yz7iZ5O0bxVdvzqX1ULJK DhShCA+JzA4s/SJo+gBljL5EOIjuHG2ZlCai7CpKSqCr+5InxCvTUlWiFUQ/Nx2PSSep BS3qVn750fILeIAFxg3XfiB7+c4Wg1pFE+U4vl3Xmq7UnEMwsWpNLpPkhE1ClBPf0+Ic TRvoFdwLWzbTkpT2PuGR3/gLnFoXAsbuP9t4A2digXDezilws6SBlOnUAgH5N5emABzD CCvA== X-Forwarded-Encrypted: i=1; AFNElJ9JYBDr6/xUeoh5HZkuczQdGwKe6rGximCg62HFlearaojXduO1VQwXyOxqBnD235fbRXzYsoveVojcpzE=@vger.kernel.org X-Gm-Message-State: AOJu0YzJr90lNGkRJiIpBwMczI+KCAT9LLU+FV4vAjS1LpyV4l7ptiFT Xwj3Yh3ypdMnfeog8bXBV307HTavMQrJQAEneekeIf/81djpCTB53Q0ueF3STzNzm57FcdfWPvb BC9GDpTN5inWCERuj3YJfExsDlv+62L5vY8w/7tAZt6XuhucFoiUcI8OAr5qybbH/0w== X-Gm-Gg: Acq92OE0jxTpZa1NedMB3k68IKKPVedA/IXMlEkTvDx3DjX/MVuOd2xwWPnSIj1T9iA QGzLrK8XSEt/4K4PGi4iAt1XqtdASlphsDBmqucKTgYndYtcrhLoN/hw1cGlj0lFgOlyv7P0Xkp 3/8rdi5fcYpfj7dGapEPMZzEcHN91g9JqgSUZrBHZltvIyJ1o9jT4W70KG49S6bn82EGUBcWHdg 6sTD5Tw8c80XXyBBW8GBJ9dlPylB4fCU/RlvIl4725MjWi3Jz8/Rsfg+sIJ9mgFpyq0mM/EczqC Po6UpbpA1EGi1v1KcrVfqaLCEVtW/eOj9lR74trGotB14mq0gK9T/RZ0xBNt5qbIy6Ag1FVZjV9 q6dXS4ywpnwzbEZHU7w== X-Received: by 2002:a05:7022:6baa:b0:135:578a:cde2 with SMTP id a92af1059eb24-135578ad3admr5580678c88.34.1779217333606; Tue, 19 May 2026 12:02:13 -0700 (PDT) X-Received: by 2002:a05:7022:6baa:b0:135:578a:cde2 with SMTP id a92af1059eb24-135578ad3admr5580606c88.34.1779217332985; Tue, 19 May 2026 12:02:12 -0700 (PDT) Received: from [192.168.8.4] ([100.0.180.93]) by smtp.gmail.com with ESMTPSA id af79cd13be357-910baf22315sm1962832785a.21.2026.05.19.12.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 12:02:12 -0700 (PDT) Message-ID: <3ed6a4bc42a547ed973cf2b77bde7171e0a15314.camel@redhat.com> Subject: Re: [PATCH 0/6] rust: drm: Higher-Ranked Lifetime private data From: lyude@redhat.com To: Boris Brezillon , Danilo Krummrich Cc: Deborah Brouwer , aliceryhl@google.com, airlied@gmail.com, simona@ffwll.ch, daniel.almeida@collabora.com, acourbot@nvidia.com, apopple@nvidia.com, ecourtney@nvidia.com, ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, tmgross@umich.edu, driver-core@lists.linux.dev, nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Date: Tue, 19 May 2026 15:02:11 -0400 In-Reply-To: <20260519205947.3c9d99b3@fedora> References: <20260506221027.858481-1-dakr@kernel.org> <20260519205947.3c9d99b3@fedora> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2026-05-19 at 20:59 +0200, Boris Brezillon wrote: > On Thu, 14 May 2026 21:07:11 +0200 > "Danilo Krummrich" wrote: >=20 > > On Thu May 14, 2026 at 8:59 PM CEST, Deborah Brouwer wrote: > > > let unreg_dev =3D > > > drm::UnregisteredDevice::::new(pdev, data)?;=C2=A0=20 > >=20 > > You shouldn't need this anymore as the drm::Registration itself has > > private data > > now that is bound to the lifetime of the underlying bus device, > > which should be > > the correct lifetime for juggling the GPU page tables. >=20 > The problem we have is that, to initialize some of the sub-components > of the driver, we need to be able to allocate GEM objects before the > DRM > device is exposed (registered), and because the data we want to > attach > to the final registration contains these sub-components, we need to > defer the data assignment to the registration step (which was allowed > by [1], but apparently this was dropped from the latest version of > the series for some reason). >=20 > [1] > https://lore.kernel.org/dri-devel/20260320233645.950190-4-lyude@redha > t.com/ I dropped it because when talking with Danilo I had the impression that we weren't going to need this (and I thought we explicitly had mentioned it when talking with eachother). But I'm always happy to add it back