Re: [PATCH 02/10] drivers: gpu: Update ARef imports from sync::aref

From: Alexandre Courbot
Date: Mon Nov 24 2025 - 07:19:50 EST


On Sun Nov 23, 2025 at 6:24 PM JST, Shankari Anand wrote:
> Update call sites to import `ARef` from `sync::aref`
> instead of `types`.
>
> This aligns with the ongoing effort to move `ARef` and
> `AlwaysRefCounted` to sync.
>
> Suggested-by: Benno Lossin <lossin@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1173
> Signed-off-by: Shankari Anand <shankari.ak0208@xxxxxxxxx>
> ---
> drivers/gpu/drm/tyr/driver.rs | 2 +-
> drivers/gpu/nova-core/gsp/sequencer.rs | 2 +-
> drivers/gpu/nova-core/vbios.rs | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
> index 0389c558c036..264c2362237a 100644
> --- a/drivers/gpu/drm/tyr/driver.rs
> +++ b/drivers/gpu/drm/tyr/driver.rs
> @@ -16,10 +16,10 @@
> use kernel::regulator;
> use kernel::regulator::Regulator;
> use kernel::sizes::SZ_2M;
> +use kernel::sync::aref::ARef;
> use kernel::sync::Arc;
> use kernel::sync::Mutex;
> use kernel::time;
> -use kernel::types::ARef;
>
> use crate::file::File;
> use crate::gem::TyrObject;
> diff --git a/drivers/gpu/nova-core/gsp/sequencer.rs b/drivers/gpu/nova-core/gsp/sequencer.rs
> index 2d0369c49092..9c689f0b21ab 100644
> --- a/drivers/gpu/nova-core/gsp/sequencer.rs
> +++ b/drivers/gpu/nova-core/gsp/sequencer.rs
> @@ -14,12 +14,12 @@
> device,
> io::poll::read_poll_timeout,
> prelude::*,
> + sync::aref::ARef, //
> time::{
> delay::fsleep,
> Delta, //
> },
> transmute::FromBytes,
> - types::ARef, //

I think you will want to move the trailing `//` to the new last line instead
of carrying it when moving `ARef`.

With this, for nova-core,

Acked-by: Alexandre Courbot <acourbot@xxxxxxxxxx>