From 8340d234d78a7d0f46c11a584de538148b78b7cb Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 25 Sep 2024 15:58:37 -0400 Subject: 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. --- Makefile | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 972bc0b..fea3819 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,6 @@ nvdebug-objs = runlist_procfs.o device_info_procfs.o runlist.o mmu.o \ KBUILD_CFLAGS += -DGIT_HASH=\"$(shell git --git-dir=$(PWD)/.git rev-parse --short HEAD)\" # -mfentry above if not building due to mcount missing -# TODO: Avoid needing to distribute NVIDIA's headers (at least they're MIT...) -ccflags-y += -I$(PWD)/include -#ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu/include -#ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/drivers/gpu/nvgpu -#ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include -#ccflags-y += -I/playpen/Linux_for_Tegra/source/public/kernel/nvgpu/include/uapi - all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: -- cgit v1.2.2