diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 15:58:37 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-09-25 15:58:37 -0400 |
commit | 8340d234d78a7d0f46c11a584de538148b78b7cb (patch) | |
tree | 4837d0debd711fbe7a5cd292c2606b8c1e5d50aa /nvdebug.h | |
parent | e2fe4cb56e6252b9cf0b43c6180efbb20a168ce0 (diff) |
Remove dependency on Jetson (nvgpu) driver internals
For integrated (Jetson) GPUs:
- Directly retrieve and map GPU register region 0
- Directly check GPU power-on state before a register read/write
- Resume the GPU as needed for a register read/write
Most nvgpu APIs can now be called on TX2+ integrated GPUs without
first having to start some task on the GPU to make it non-suspended.
Tested on Jetson TX1, TX2, Xavier, and Orin.
Diffstat (limited to 'nvdebug.h')
-rw-r--r-- | nvdebug.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1470,6 +1470,8 @@ struct nvdebug_state { | |||
1470 | struct gk20a *g; | 1470 | struct gk20a *g; |
1471 | // Pointer to PCI device needed for pci_iounmap and pci_resource_start | 1471 | // Pointer to PCI device needed for pci_iounmap and pci_resource_start |
1472 | struct pci_dev *pcid; | 1472 | struct pci_dev *pcid; |
1473 | // Pointer to platform device needed for platform_get_resource | ||
1474 | struct platform_device *platd; | ||
1473 | // Pointer to generic device struct (both platform and pcie devices) | 1475 | // Pointer to generic device struct (both platform and pcie devices) |
1474 | struct device *dev; | 1476 | struct device *dev; |
1475 | }; | 1477 | }; |