[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aC3K0-z7JARmg7Cc@Mac.home>
Date: Wed, 21 May 2025 05:45:07 -0700
From: Boqun Feng <boqun.feng@...il.com>
To: Alexandre Courbot <acourbot@...dia.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
John Hubbard <jhubbard@...dia.com>, Ben Skeggs <bskeggs@...dia.com>,
Joel Fernandes <joelagnelf@...dia.com>,
Timur Tabi <ttabi@...dia.com>, Alistair Popple <apopple@...dia.com>,
linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org,
nouveau@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org
Subject: Re: [PATCH v4 03/20] rust: sizes: add constants up to SZ_2G
On Wed, May 21, 2025 at 03:44:58PM +0900, Alexandre Courbot wrote:
> nova-core will need to use SZ_1M, so make the remaining constants
> available.
>
> Signed-off-by: Alexandre Courbot <acourbot@...dia.com>
Reviewed-by: Boqun Feng <boqun.feng@...il.com>
Regards,
Boqun
> ---
> rust/kernel/sizes.rs | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/rust/kernel/sizes.rs b/rust/kernel/sizes.rs
> index 834c343e4170f507821b870e77afd08e2392911f..661e680d9330616478513a19fe2f87f9521516d7 100644
> --- a/rust/kernel/sizes.rs
> +++ b/rust/kernel/sizes.rs
> @@ -24,3 +24,27 @@
> pub const SZ_256K: usize = bindings::SZ_256K as usize;
> /// 0x00080000
> pub const SZ_512K: usize = bindings::SZ_512K as usize;
> +/// 0x00100000
> +pub const SZ_1M: usize = bindings::SZ_1M as usize;
> +/// 0x00200000
> +pub const SZ_2M: usize = bindings::SZ_2M as usize;
> +/// 0x00400000
> +pub const SZ_4M: usize = bindings::SZ_4M as usize;
> +/// 0x00800000
> +pub const SZ_8M: usize = bindings::SZ_8M as usize;
> +/// 0x01000000
> +pub const SZ_16M: usize = bindings::SZ_16M as usize;
> +/// 0x02000000
> +pub const SZ_32M: usize = bindings::SZ_32M as usize;
> +/// 0x04000000
> +pub const SZ_64M: usize = bindings::SZ_64M as usize;
> +/// 0x08000000
> +pub const SZ_128M: usize = bindings::SZ_128M as usize;
> +/// 0x10000000
> +pub const SZ_256M: usize = bindings::SZ_256M as usize;
> +/// 0x20000000
> +pub const SZ_512M: usize = bindings::SZ_512M as usize;
> +/// 0x40000000
> +pub const SZ_1G: usize = bindings::SZ_1G as usize;
> +/// 0x80000000
> +pub const SZ_2G: usize = bindings::SZ_2G as usize;
>
> --
> 2.49.0
>
Powered by blists - more mailing lists