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 /Makefile | |
| 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 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -4,13 +4,6 @@ nvdebug-objs = runlist_procfs.o device_info_procfs.o runlist.o mmu.o \ | |||
| 4 | KBUILD_CFLAGS += -DGIT_HASH=\"$(shell git --git-dir=$(PWD)/.git rev-parse --short HEAD)\" | 4 | KBUILD_CFLAGS += -DGIT_HASH=\"$(shell git --git-dir=$(PWD)/.git rev-parse --short HEAD)\" |
| 5 | # -mfentry above if not building due to mcount missing | 5 | # -mfentry above if not building due to mcount missing |
| 6 | 6 | ||
| 7 | # TODO: Avoid needing to distribute NVIDIA's headers (at least they're MIT...) | ||
| 8 | ccflags-y += -I$(PWD)/include | ||
| 9 | #ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu/include | ||
| 10 | #ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu | ||
| 11 | #ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include | ||
| 12 | #ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include/uapi | ||
| 13 | |||
| 14 | all: | 7 | all: |
| 15 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | 8 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules |
| 16 | clean: | 9 | clean: |
