[PATCH 0/4] rust: Add support for reserving of ranges of IDs

From: Eliot Courtney

Date: Fri Jul 03 2026 - 06:20:12 EST


Add support for reserving of ranges of IDs, with a usage in nova-core
for channel IDs. This entails adding the helpers+users of the C bitmap
API for ranges of bits, then users of that in `IdPool`, and finally a
user of `IdPool` in nova-core, `ChannelIdPool`.

This is based on drm-rust-next.

Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
---
Eliot Courtney (4):
rust: bitmap: use function-level cfg on kunit test
rust: bitmap: add contiguous area operations
rust: id_pool: add contiguous area allocation
gpu: nova-core: add ChannelIdPool

drivers/gpu/nova-core/gpu.rs | 2 +
drivers/gpu/nova-core/gpu/channel.rs | 134 +++++++++++++++++++
rust/helpers/bitmap.c | 22 ++++
rust/kernel/bitmap.rs | 244 +++++++++++++++++++++++++++++++++--
rust/kernel/id_pool.rs | 68 ++++++++++
5 files changed, 456 insertions(+), 14 deletions(-)
---
base-commit: a73a398a68ca9b9e5116a617562471f16b8310c4
change-id: 20260608-chid-18fa943c6d6c

Best regards,
--
Eliot Courtney <ecourtney@xxxxxxxxxx>