lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DDN3BGP9270Q.28ZV9MAWO3CUC@nvidia.com>
Date: Mon, 20 Oct 2025 19:50:50 +0900
From: "Alexandre Courbot" <acourbot@...dia.com>
To: "Danilo Krummrich" <dakr@...nel.org>, "Alexandre Courbot"
 <acourbot@...dia.com>
Cc: "Alistair Popple" <apopple@...dia.com>,
 <rust-for-linux@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
 "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>, "John
 Hubbard" <jhubbard@...dia.com>, "Joel Fernandes" <joelagnelf@...dia.com>,
 "Timur Tabi" <ttabi@...dia.com>, <linux-kernel@...r.kernel.org>,
 <nouveau@...ts.freedesktop.org>
Subject: Re: [PATCH v5 03/14] gpu: nova-core: gsp: Create wpr metadata

On Mon Oct 20, 2025 at 7:13 PM JST, Danilo Krummrich wrote:
> On Mon Oct 20, 2025 at 7:40 AM CEST, Alexandre Courbot wrote:
>> The alternative would be to have const functions like `usize_to_u64`. It
>> doesn't look as smooth as the extention trait, but can be used in const
>> contexts.
>
> That's what I thought of, exactly for the reason of being usable in const
> contexts (at least for a quick fix in nova-core).
>
> Whether we want an extention trait and a separate temporary const_usize_to_u64()
> etc. can be discussed in the context of making it common infrastructure.

Thanks - so IIUC the idea would be to keep this local to nova-core in a
first time? If so I guess I can produce this fast (and convert our many
uses of `as` in the driver so far).

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ