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 1191AD2ECF7 for ; Tue, 20 Jan 2026 11:14:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67FD610E092; Tue, 20 Jan 2026 11:14:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="EiEPzaJr"; 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 700DB10E092 for ; Tue, 20 Jan 2026 11:14:39 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 9E378600CB; Tue, 20 Jan 2026 11:14:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB7E7C16AAE; Tue, 20 Jan 2026 11:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768907678; bh=M+5IH4rPhd3O/CiKQNbmPNdoVNjC+8DGvt8pxyAAxuc=; h=Date:From:Subject:Cc:To:References:In-Reply-To:From; b=EiEPzaJrbDRPOVNGuP19VhN1BcljC3yI9MqgN/+siqnDucSM/bFDH5jI7MGDAapUX yxuN0+uAZbWonce1CDMfZgqf8NeLDtOUd+lmW4O+kmE9ZpKBRh3W2ekvGzKcD/kFWw 2Be7RbrFiqfl5QqRwCOTExitHsQv9/oWhTpijABhEf/WAlZJoa9n2SXGtG9UGnjsbp aN/PDzVvxGkKxW2zTWbSQuaNiArkeVklWqp1UW7N82hqyEV4HLQVGuPcHTKEZLko1F PmLJWF+lVtczRKloFhrnlqPBzg2zo7jisyF8EsolLs7oDTnN0kZG6950qasnCqI24i HvZn4UhgvkoCA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 20 Jan 2026 12:14:33 +0100 Message-Id: From: "Danilo Krummrich" Subject: Re: [PATCH 4/4] rust: drm: dispatch delayed work items to the private data Cc: "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "David Airlie" , "Simona Vetter" , , , To: "Daniel Almeida" References: <20260115-aref-workitem-v1-0-9883e00f0509@collabora.com> <20260115-aref-workitem-v1-4-9883e00f0509@collabora.com> In-Reply-To: <20260115-aref-workitem-v1-4-9883e00f0509@collabora.com> 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 Fri Jan 16, 2026 at 1:36 AM CET, Daniel Almeida wrote: > +// SAFETY: Our `HasWork` implementation returns a `work_struct` t= hat is > +// stored in the `work` field of a `delayed_work` with the same access r= ules as > +// the `work_struct` owing to the bound on `T::Data: HasDelayedWork, > +// ID>`, which requires that `T::Data::raw_get_work` return a `work_stru= ct` that > +// is inside a `delayed_work`. > +unsafe impl HasDelayedWork, ID> for Device > +where > + T: drm::Driver, > + T::Data: HasDelayedWork, ID>, > +{ > +} What do you intend to do within work that is queued for a DRM device? I ass= ume you have to access bus device resources? Also, it would be nice to see how this is used in a driver. Can you please = add a patch for Tyr to the series?