From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 A1FBD314A83 for ; Tue, 24 Mar 2026 08:20:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774340437; cv=none; b=ibXYdvWh3YNstE2JlkoUHCWprbyUXHrWop4Ck2UzZi0ptrvxEkRXQh54vrH26xQr6LOIYQtxpLcokhzu9Bzsu2VEMfZjkzv64tbPa+COiCp1JpJmDEanU96RPseMkoXcKS0k2ZikLLUXUTJnRDctGCmepY4lDve4UfpC9pqv5uA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774340437; c=relaxed/simple; bh=sRfq9wJk0/MXbTZzaFK1SbHdbY4bWli4oNxRjSHJkJo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=uGbRvcTIVW1HisASBikNhfQwNHCoBGyJnWZeOL0yPVFBCkt6tTJ7I+5HsQewoDv6h/8NeggjXIiFUWyll9ULwv6qviDLzO1AE6qpaDVeFrvGmQ8755NRKEqD/gKebiLdkY2WRVIJu0Aj0aBxkQD8fi46iadtb9vVWDIGZq8/bQQ= 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=T0l5Qq/p; arc=none smtp.client-ip=209.85.128.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="T0l5Qq/p" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4852cf0318dso14122305e9.3 for ; Tue, 24 Mar 2026 01:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1774340430; x=1774945230; 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=rmKn3DTyzERwdlhCSakIzT6UnoUWWIujEFwhVV176J8=; b=T0l5Qq/pilKJvFuS4rdx+qa2ksp/WxiKN9ReJegv1TpphrqppSwDml44VbTFsUfLsX l0muCeVZH+IZd+E/FGrSqDilxaXQb6uYnQI24UXWaJtE3/m4Y2AChqs0Ai6G1e96MHfF Gn0OPho0MzeQSUB0In94zntEPxDkMmOwYJLLXuzV2FSUWdL2JTv+7cbJqH5AFzCi2FKK oKbfm3U60PSj6czc1FOOipHVmA61fOjYXgiJEg6OObEfzgW4shwl10QRxtC/H0oiaVBP 734hk6U9vUIRVA0u5pcvaRzJBNO3IT1+/4KbgwwZsYXf0Zzj+82gNIAkWKWNs71DQXMt z6hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774340430; x=1774945230; 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=rmKn3DTyzERwdlhCSakIzT6UnoUWWIujEFwhVV176J8=; b=OnEz1Ct2xZhVD9OJ6tFrtdmcE/GoL2x2tt3Hdlmesllw07WxCHLpADfXO5Ot/nlX7m rhwSoz3xOuavSGg7bJS7xUZhrduSaan0hNsk6lYF29aN/+3pNO2zNO0Bl766CBKqdkyu N0yWik9Ijs8sYpATbAQ8qpurBtJT5cldrqWmzARI47d4Fp4Ttmo3TAfQvW5r1tCY7P1u iG6ckVP8RYV38GV7olYakpVOzpzjF9DovpQ5N/2VMsZqzaR8qKXIeA9W1Ig7GkTQxaCS r8C8JzoOgdygbffbqfNLjxXfInQ7CYeEEkvDuQHwS+peYT+Qs+YCcU0d9LSH0vukYhlx rrSQ== X-Forwarded-Encrypted: i=1; AJvYcCUATSEU74SPXaB0BSALi+jajawQWsxYpUEMEuHSZ0aX68lCCsxA5+peMUbULco2KZeCS6ytkiF3pbIOzZ8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy1wU73qVvEkFnjCTdxy2AHXgeSydvxgzg9ZUI7+gVPf2V/2lVr yYS13i1Gb1Zkh8YsF7WbWGKMmwuWG6S+lDrwIFq59aADKkftoji7dfmD8g/636F7UX1MRojEhlr 1rhv3c2uyrhUhyzoqZA== X-Received: from wmsu11-n1.prod.google.com ([2002:a05:600c:c3cb:10b0:487:1c3:7963]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:1615:b0:487:18c:7acf with SMTP id 5b1f17b1804b1-487018c7d7fmr119524405e9.25.1774340429538; Tue, 24 Mar 2026 01:20:29 -0700 (PDT) Date: Tue, 24 Mar 2026 08:20:27 +0000 In-Reply-To: <20260323-aref-workitem-v3-0-f59729b812aa@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260323-aref-workitem-v3-0-f59729b812aa@collabora.com> Message-ID: Subject: Re: [PATCH v3 0/4] rust: Add ARef support for work items From: Alice Ryhl To: Daniel Almeida , Tejun Heo Cc: Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , David Airlie , Simona Vetter , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" On Mon, Mar 23, 2026 at 08:26:58PM -0300, Daniel Almeida wrote: > This series adds ARef support for both regular and delayed work items. > > - Patches 1 and 3 actually implement the support in workqueue.rs > - Patches 2 and 4 adds a corresponding implementation in drm::Device that > dispatches the calls to the underlying T::Data. > > This was tested on Tyr, and is actually needed in order to obtain a > &drm::Device when handling work items. This is then needed in order to > allocate GEM objects inside the work handler that processes the tiler OOM > (out of memory) events. The current series sets the stage so that the above > is possible in the future. > > --- > Changes in v3: > - Rebase on rust-drm > - Pick up tags > - Fix import style for drm/device.rs changes > - Link to v2: https://lore.kernel.org/r/20260204-aref-workitem-v2-0-bec25b012d2a@collabora.com Thanks! Tejun, is this something you could pick up? If so, please go ahead. It looks good from Rust perspective. We can also pick it up through drm if you prefer (in that case please provide an Acked-by). Alice