[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5edf3123-4721-4a02-b5b8-9556804b248b@nvidia.com>
Date: Wed, 24 Sep 2025 13:50:11 -0700
From: John Hubbard <jhubbard@...dia.com>
To: Lyude Paul <lyude@...hat.com>, Alistair Popple <apopple@...dia.com>,
rust-for-linux@...r.kernel.org, dri-devel@...ts.freedesktop.org,
dakr@...nel.org, acourbot@...dia.com
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
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>,
Joel Fernandes <joelagnelf@...dia.com>, Timur Tabi <ttabi@...dia.com>,
linux-kernel@...r.kernel.org, nouveau@...ts.freedesktop.org
Subject: Re: [PATCH v2 02/10] gpu: nova-core: Create initial Gsp
On 9/24/25 1:13 PM, Lyude Paul wrote:
> Some comments down below
...
>> +/// Creates a self-mapping page table for `obj` at its beginning.
>> +fn create_pte_array(obj: &mut CoherentAllocation<u8>) {
>> + let num_pages = obj.size().div_ceil(GSP_PAGE_SIZE);
>
> Unfortunately there's a bit of a gotcha here - we can't actually use functions
> like div_ceil as-is, because a number of 32 bit architectures do not support
> u64 / u64 natively. The problem is we don't have __aeabi_uldivmod implemented
I recall that we agreed that nova will depend upon CONFIG_64BIT.
Does that make this point N/A?
thanks,
--
John Hubbard
Powered by blists - more mailing lists