Introduce nova-core mm prerequisites
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Changes in v1 from the cover letter
- Part 1 of 2; the v12 series was split for easier review. Page-table/VMM/BAR1 patches in companion series.
- Broke v12's "Add common memory management types" into atomic patches: Pfn, VramAddress, VramAddress arithmetic.
- New prereq: "rust: pci: add resource_flags accessor".
- New prereq: "rust: bitfield: support cast+shift accessor syntax".
- "Add GpuMm centralized memory manager" scoped to scaffolding only; buddy/TLB wiring deferred to companion series.
- Squashed v12's "pramin: drop useless as_ref()" cleanup into "Add PRAMIN aperture self-tests".
- Moved "rust: maple_tree: Send and Sync" out as a standalone dependency.
- Smaller code touch-ups across most carried-over patches.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | rust: pci: add resource_flags accessorrust/ rust/ rust/ | +28 | 0 replies | |
| 2/12 | rust: bitfield: support cast+shift accessor syntaxrust/ | +67 | 0 replies | |
| 3/12 | gpu: nova-core: gsp: Return GspStaticInfo from boot()drivers/ drivers/ | +14 | 0 replies | |
| 4/12 | gpu: nova-core: gsp: Extract usable FB region from GSPdrivers/ drivers/ | +49 | 0 replies | |
| 5/12 | gpu: nova-core: gsp: Expose total physical VRAM end from FB region infodrivers/ drivers/ drivers/ | +22 | 0 replies | |
| 6/12 | gpu: nova-core: mm: Add Pfn (Physical Frame Number) typedrivers/ | +70 | 0 replies | |
| 7/12 | gpu: nova-core: mm: Add VramAddress type and conversion traitsdrivers/ | +57 | 0 replies | |
| 8/12 | gpu: nova-core: mm: Add VramAddress arithmetic and orderingdrivers/ | +60 | 0 replies | |
| 9/12 | gpu: nova-core: mm: Add support to use PRAMIN windows to write to VRAMdrivers/ drivers/ drivers/ +1 more | +423 | 0 replies | |
| 10/12 | docs: gpu: nova-core: Document the PRAMIN aperture mechanismDocumentation/ Documentation/ | +124 | 0 replies | |
| 11/12 | gpu: nova-core: mm: Add GpuMm centralized memory managerdrivers/ drivers/ | +66 | 0 replies | |
| 12/12 | gpu: nova-core: mm: Add PRAMIN aperture self-testsdrivers/ drivers/ drivers/ +2 more | +251 | 0 replies |
Reviews trailers per patch
2 of 12 patches have a Reviewed-by or Acked-by.
| Patch | John Hubbard | Eliot Courtney |
|---|---|---|
| 1/12 | ||
| 2/12 | ||
| 3/12 | R-b | R-b |
| 4/12 | R-b | |
| 5/12 | ||
| 6/12 | ||
| 7/12 | ||
| 8/12 | ||
| 9/12 | ||
| 10/12 | ||
| 11/12 | ||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 00/12] Introduce nova-core mm prerequisites
This series introduces the prerequisite memory-management infrastructure for the nova-core driver: a centralized GpuMm manager, types for addressing VRAM (Pfn, VramAddress), the PRAMIN aperture for indirect VRAM access from the CPU, and the GSP plumbing that surfaces the usable FB region and total VRAM extent at boot. It also picks up two small Rust enablers (pci::Bar::resource_flags() and a cast+shift accessor form of bitfield!) that the rest of the nova-core mm code relies on.
This series is based on drm-rust-next.
Dependencies (not yet merged):
- Alex Courbot's bitfield series. Tested on v2:
https://lore.kernel.org/all/[email protected]/
A newer v3 of bitfield is available and should also work (haven't tested):
https://lore.kernel.org/all/[email protected]/
- rust: maple_tree: implement Send and Sync for MapleTree (v3):
https://lore.kernel.org/all/[email protected]/
The git tree (containing the dependencies above, this series, and the follow-on page-table/VMM/BAR1 series) can be found at:git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git (tag: nova-mm-v1-20260518)
Change log:
Changes from v12 to v1 (split-out):
- Part 1 of 2; the v12 series was split for easier review. Page-table/VMM/BAR1 patches in companion series.
- Broke v12's "Add common memory management types" into atomic patches: Pfn, VramAddress, VramAddress arithmetic.
- New prereq: "rust: pci: add resource_flags accessor".
- New prereq: "rust: bitfield: support cast+shift accessor syntax".
- "Add GpuMm centralized memory manager" scoped to scaffolding only; buddy/TLB wiring deferred to companion series.
- Squashed v12's "pramin: drop useless as_ref()" cleanup into "Add PRAMIN aperture self-tests".
- Moved "rust: maple_tree: Send and Sync" out as a standalone dependency.
- Smaller code touch-ups across most carried-over patches.
Link to v12: https://lore.kernel.org/all/[email protected]/
Joel Fernandes (12):
rust: pci: add resource_flags accessor
rust: bitfield: support cast+shift accessor syntax
gpu: nova-core: gsp: Return GspStaticInfo from boot()
gpu: nova-core: gsp: Extract usable FB region from GSP
gpu: nova-core: gsp: Expose total physical VRAM end from FB region
info
gpu: nova-core: mm: Add Pfn (Physical Frame Number) type
gpu: nova-core: mm: Add VramAddress type and conversion traits
gpu: nova-core: mm: Add VramAddress arithmetic and ordering
gpu: nova-core: mm: Add support to use PRAMIN windows to write to VRAM
docs: gpu: nova-core: Document the PRAMIN aperture mechanism
gpu: nova-core: mm: Add GpuMm centralized memory manager
gpu: nova-core: mm: Add PRAMIN aperture self-tests
Documentation/gpu/nova/core/pramin.rst | 123 ++++++ Documentation/gpu/nova/index.rst | 1 + drivers/gpu/nova-core/Kconfig | 10 + drivers/gpu/nova-core/driver.rs | 2 + drivers/gpu/nova-core/gpu.rs | 48 ++- drivers/gpu/nova-core/gsp/boot.rs | 12 +- drivers/gpu/nova-core/gsp/commands.rs | 16 +- drivers/gpu/nova-core/gsp/fw/commands.rs | 49 ++- drivers/gpu/nova-core/mm.rs | 247 +++++++++++ drivers/gpu/nova-core/mm/pramin.rs | 512 +++++++++++++++++++++++ drivers/gpu/nova-core/nova_core.rs | 1 + drivers/gpu/nova-core/regs.rs | 122 ++++++ rust/helpers/pci.c | 6 + rust/kernel/bitfield.rs | 67 +++ rust/kernel/io/resource.rs | 8 + rust/kernel/pci.rs | 14 + 16 files changed, 1228 insertions(+), 10 deletions(-) create mode 100644 Documentation/gpu/nova/core/pramin.rst create mode 100644 drivers/gpu/nova-core/mm.rs create mode 100644 drivers/gpu/nova-core/mm/pramin.rs
base-commit: 9bd99adf7cee4b8ed4adecd53269010250a0d2ec
Signature · 1 line
2.34.1