mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/6] gpu: nova-core: merge `load` and `boot` for falcons
@ 2026-11-29  2:55 Eliot Courtney
  2026-11-29  2:55 ` [PATCH v2 1/6] gpu: nova-core: falcon: program BROM and BOOTVEC in `boot` Eliot Courtney
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Eliot Courtney @ 2026-11-29  2:55 UTC (permalink / raw)
  To: Danilo Krummrich, Alice Ryhl, Alexandre Courbot, David Airlie,
	Simona Vetter
  Cc: John Hubbard, Alistair Popple, Timur Tabi, nova-gpu, dri-devel,
	linux-kernel, Eliot Courtney

Currently, loading the firmware and booting it is split into two
separate steps. Load is always called in combination with boot. Rewrite
the process to basically look like:

falcon.boot(<the firmware you want>, ...)

Additionally, add a segment source for firmware already in the
framebuffer (this is for HS binaries).

This simplifies running HS binaries in the r000 load+exec boot process
[1], because they can be treated as falcon firmware binaries directly,
without having to call into the guts of the boot process code + make fns
like `dma_wr` public.

This is not a pure refactor, with this `dma_load` uses two `Coherent`s
(one for imem, one for dmem) instead of one. The extra `Coherent` is a
consequence of splitting the storage vs transfer method more
orthogonally. I don't think it's consequential but jfyi.

Tested boot on TU104, GA104, AD106 and GB205.

This is based on drm-rust-next.

[1]: https://lore.kernel.org/20261120044704.165223-1-jhubbard@nvidia.com

Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
---
Changes in v2:
- Drop the patches that were applied to drm-rust-next
- Rebase on drm-rust-next
- Remove `FalconDmaLoadTarget` instead of renaming it to `FalconLoadTarget`
- Fix the framebuffer `base` doc and link `MEM_BLOCK_ALIGNMENT` in
  patch #4 (Alex)
- Link to v1: https://patch.msgid.link/20261126-boot-rework2-v1-0-99a1dc6c7cc4@nvidia.com

---
Eliot Courtney (6):
      gpu: nova-core: falcon: program BROM and BOOTVEC in `boot`
      gpu: nova-core: use correct offset for imem in `BooterFirmware`
      gpu: nova-core: remove some dependencies on FalconDmaLoadTarget
      gpu: nova-core: falcon: separate staging data for DMA from its location
      gpu: nova-core: falcon: add `FalconImage` for `FalconFirmware` trait
      gpu: nova-core: falcon: load the firmware image in Falcon::boot

 drivers/gpu/nova-core/falcon.rs                    | 425 ++++++++-------------
 drivers/gpu/nova-core/firmware.rs                  |  74 +---
 drivers/gpu/nova-core/firmware/booter.rs           | 120 +++---
 drivers/gpu/nova-core/firmware/fwsec.rs            |  57 +--
 drivers/gpu/nova-core/firmware/fwsec/bootloader.rs |  49 +--
 drivers/gpu/nova-core/firmware/gen_bootloader.rs   | 103 +++--
 drivers/gpu/nova-core/gsp/hal/tu102.rs             |   9 +-
 7 files changed, 344 insertions(+), 493 deletions(-)
---
base-commit: abfb640b2374e26de8ff81d488c39d8254db538e
change-id: 20261125-boot-rework2-3b6e58af67ae

Best regards,
--  
Eliot Courtney <ecourtney@nvidia.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-29  2:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  2:55 [PATCH v2 0/6] gpu: nova-core: merge `load` and `boot` for falcons Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 1/6] gpu: nova-core: falcon: program BROM and BOOTVEC in `boot` Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 2/6] gpu: nova-core: use correct offset for imem in `BooterFirmware` Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 3/6] gpu: nova-core: remove some dependencies on FalconDmaLoadTarget Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 4/6] gpu: nova-core: falcon: separate staging data for DMA from its location Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 5/6] gpu: nova-core: falcon: add `FalconImage` for `FalconFirmware` trait Eliot Courtney
2026-11-29  2:55 ` [PATCH v2 6/6] gpu: nova-core: falcon: load the firmware image in Falcon::boot Eliot Courtney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®