Re: [PATCH v5 0/9] Introduce bitfield and move register macro to rust/kernel/

From: Danilo Krummrich

Date: Tue Sep 30 2025 - 11:08:57 EST


On Tue Sep 30, 2025 at 4:45 PM CEST, Joel Fernandes wrote:
> MAINTAINERS | 7 +
> drivers/gpu/nova-core/falcon.rs | 2 +-
> drivers/gpu/nova-core/falcon/gsp.rs | 4 +-
> drivers/gpu/nova-core/falcon/sec2.rs | 2 +-
> drivers/gpu/nova-core/regs.rs | 6 +-
> rust/kernel/bitfield.rs | 804 ++++++++++++++++++
> rust/kernel/io.rs | 1 +
> .../macros.rs => rust/kernel/io/register.rs | 317 +------
> rust/kernel/lib.rs | 1 +
> security/Kconfig.hardening | 9 +
> 10 files changed, 870 insertions(+), 283 deletions(-)
> create mode 100644 rust/kernel/bitfield.rs
> rename drivers/gpu/nova-core/regs/macros.rs => rust/kernel/io/register.rs (72%)

I think we have at least three or four potential target trees for this:
driver-core (I/O), drm-rust (Nova), bitmap / Rust.

(I don't know which tree the bitmap stuff would go through, I did not find a
tree entry in the MAINTAINERS file.)

Unless someone thinks otherwise, I'd take it through the drm-rust tree once the
series is ready. This should cause the least conflicts and as a bonus enable Tyr
to use it right away.