mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
* kernel-open: add opt-in Tegra194 GV11B platform_driver and bus-agnostic rmapi_node registration * rmapi_node: support platform dev in nv_rs_rmapi_mmap * platform(gv11b): skip reset_control when Tegra genpd pm_domain owns GPU reset * kernel-open(gv11b): fault-map and revoke platform BAR IO VMAs on GPU removal * kernel-open(gv11b): extract rmapi_plat_io.h and test platform BAR VMA revocation in host fixture * kernel-open(gv11b): propagate and report actual platform DMA mask in proc gpu info * kernel-open(gv11b): document plat_io pgoff/BDF assumptions and harden !live release * kernel-open(gv11b): clean up orphaned plat_io mappings on file release * kernel-open(gv11b): resolve duplicate boot0/dma_bits fields after rebase * kernel-open(gv11b): gate file_ref_get() on Linux >= 6.13 or NV_RS_HAVE_FILE_REF
28 lines
1.9 KiB
Makefile
28 lines
1.9 KiB
Makefile
# Diagnostic module only. Deliberately does not produce NVIDIA driver names.
|
|
include $(src)/compat_probes.mk
|
|
obj-m += nvidia_rs.o nvidia_rs_modeset.o nvidia_rs_peermem.o
|
|
ifneq ($(CONFIG_DRM),)
|
|
obj-m += nvidia_rs_drm.o
|
|
endif
|
|
nvidia_rs_modeset-y := nvidia-modeset/nvidia_rs_modeset.o
|
|
nvidia_rs_drm-y := nvidia-drm/nvidia_rs_drm.o
|
|
CFLAGS_nvidia-drm/nvidia_rs_drm.o := -I$(src)/nvidia-modeset
|
|
nvidia_rs_peermem-y := nvidia-peermem/nvidia_rs_peermem.o
|
|
nvidia_rs-y := nvidia/diagnostic.o nvidia/rmapi_node.o nvidia/uvm_node.o nvidia/uvm_iface_exports.o nvidia/modeset_iface_exports.o nvidia/pci_driver.o nvidia/platform_driver.o nvidia/gpu_owner.o nvidia/pci_adapter.o nvidia/ga10x_adapter.o nvidia/dma_adapter.o nvidia/dmabuf_p2p.o nvidia/hwmon_adapter.o nvidia/irq_adapter.o nvidia/clock_adapter.o nvidia/clock_store_adapter.o nvidia/registry_adapter.o nvidia/software_manager_adapter.o nvidia/nano_timer_adapter.o nvidia/event_work_adapter.o nvidia/scheduling_adapter.o nvidia/thread_adapter.o nvidia/thread_state_adapter.o nvidia/memory_copy.o nvidia/rom_buffer.o nvidia/rom_fw_adapter.o nvidia/rom_acpi_adapter.o nvidia/rust-core.o
|
|
# Record Kbuild command metadata for modpost, as with shipped binary objects.
|
|
# Kernels with CONFIG_DEBUG_INFO_BTF encode the linked module with pahole, which
|
|
# cannot recode rustc's DWARF: it fails with "tag__recode_dwarf_type: couldn't
|
|
# find ... (inlined_subroutine)". Strip the Rust object's debug info there; code,
|
|
# relocations and the exported interface are unchanged. Without BTF keep it, so
|
|
# CONFIG_DEBUG_INFO kernels still have the Rust frames for kgdb.
|
|
ifeq ($(CONFIG_DEBUG_INFO_BTF),y)
|
|
quiet_cmd_rustcopy = RUSTOBJ $@
|
|
cmd_rustcopy = $(OBJCOPY) --strip-debug $< $@
|
|
else
|
|
quiet_cmd_rustcopy = RUSTOBJ $@
|
|
cmd_rustcopy = cp $< $@
|
|
endif
|
|
targets += nvidia/rust-core.o
|
|
$(obj)/nvidia/rust-core.o: $(src)/nvidia/nv-rust.o_binary FORCE
|
|
$(call if_changed,rustcopy)
|