]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: add Falcon HAL method load_method()
authorTimur Tabi <ttabi@nvidia.com>
Thu, 22 Jan 2026 22:28:44 +0000 (16:28 -0600)
committerAlexandre Courbot <acourbot@nvidia.com>
Sat, 24 Jan 2026 01:48:59 +0000 (10:48 +0900)
commitab2aad252fe21347674cf969a5e9d44d69e403bb
tree55a3cd89d0de14140262ce2e62e9dbe12d205cc3
parenta75718afc9a5c61d9266d5d0010228a6a3bb7233
gpu: nova-core: add Falcon HAL method load_method()

Some GPUs do not support using DMA to transfer code/data from system
memory to Falcon memory, and instead must use programmed I/O (PIO).
Add a function to the Falcon HAL to indicate whether a given GPU's
Falcons support DMA for this purpose.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260122222848.2555890-10-ttabi@nvidia.com
[acourbot@nvidia.com: add short code to call into the HAL.]
[acourbot@nvidia.com: make `dma_load` private as per feedback.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/falcon.rs
drivers/gpu/nova-core/falcon/hal.rs
drivers/gpu/nova-core/falcon/hal/ga102.rs
drivers/gpu/nova-core/falcon/hal/tu102.rs
drivers/gpu/nova-core/firmware/fwsec.rs
drivers/gpu/nova-core/gsp/boot.rs