NVIDIA Linux open GPU kernel module source
11187 matches across 10 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | nv-compiler.sh | 1 | #!/bin/sh |
| LOW | kernel-open/conftest.sh | 41 | # sufficient to check for CONFIG_XEN, but the introduction of |
| LOW | kernel-open/conftest.sh | 61 | while read LINE; do |
| LOW | kernel-open/conftest.sh | 181 | # Older kernels perform this check and set this flag in Kbuild, and since |
| LOW | kernel-open/conftest.sh | 221 | #include <linux/kconfig.h> |
| LOW | kernel-open/conftest.sh | 501 | # Determine if the set_memory_uc() function is present. |
| LOW | kernel-open/conftest.sh | 521 | ;; |
| LOW | kernel-open/conftest.sh | 581 | |
| LOW | kernel-open/conftest.sh | 601 | }" |
| LOW | kernel-open/conftest.sh | 621 | #include <linux/percpu.h> |
| LOW | kernel-open/conftest.sh | 741 | ;; |
| LOW | kernel-open/conftest.sh | 781 | # Determine if mdev_get_type_group_id() function is present or not |
| LOW | kernel-open/conftest.sh | 801 | # Determine if vfio_device_mig_state enum is present or not |
| LOW | kernel-open/conftest.sh | 881 | # Determine if the struct mdev_parent_ops type is present. |
| LOW | kernel-open/conftest.sh | 901 | # |
| LOW | kernel-open/conftest.sh | 921 | # Removed by commit 062e720cd20 ("vfio/mdev: remove |
| LOW | kernel-open/conftest.sh | 941 | CODE=" |
| LOW | kernel-open/conftest.sh | 1041 | # Determine if 'vfio_device_ops' struct has 'dma_unmap' field. |
| LOW | kernel-open/conftest.sh | 1081 | #include <linux/pci.h> |
| LOW | kernel-open/conftest.sh | 1141 | compile_check_conftest "$CODE" "NV_IRQ_BYPASS_PRODUCER_HAS_TOKEN" "" "types" |
| LOW | kernel-open/conftest.sh | 1281 | #if defined(NV_LINUX_VFIO_PCI_CORE_H_PRESENT) |
| LOW | kernel-open/conftest.sh | 1381 | compile_check_conftest "$CODE" "NV_GET_DEV_PAGEMAP_HAS_PGMAP_ARG" "" "types" |
| LOW | kernel-open/conftest.sh | 1541 | drm_driver_has_legacy_dev_list) |
| LOW | kernel-open/conftest.sh | 1581 | |
| LOW | kernel-open/conftest.sh | 1601 | |
| LOW | kernel-open/conftest.sh | 1621 | CODE=" |
| LOW | kernel-open/conftest.sh | 1801 | # |
| LOW | kernel-open/conftest.sh | 1981 | # Determine if FOLL_LONGTERM enum is present or not |
| LOW | kernel-open/conftest.sh | 2101 | |
| LOW | kernel-open/conftest.sh | 2181 | # Determine if vma.vm_ops.fault takes (vma, vmf), or just (vmf) |
| LOW | kernel-open/conftest.sh | 2261 | rm -f conftest$$.o |
| LOW | kernel-open/conftest.sh | 2301 | else |
| LOW | kernel-open/conftest.sh | 2401 | drm_helper_mode_fill_fb_struct(NULL, NULL, NULL, NULL); |
| LOW | kernel-open/conftest.sh | 2421 | # |
| LOW | kernel-open/conftest.sh | 2461 | # |
| LOW | kernel-open/conftest.sh | 2481 | # |
| LOW | kernel-open/conftest.sh | 2561 | ;; |
| LOW | kernel-open/conftest.sh | 2581 | #include <drm/drm_blend.h> |
| LOW | kernel-open/conftest.sh | 2621 | drm_connector_for_each_possible_encoder) |
| LOW | kernel-open/conftest.sh | 2701 | # Added by commit d56c0d45f0e2 ("proc: decouple proc from VFS |
| LOW | kernel-open/conftest.sh | 2841 | pci_enable_atomic_ops_to_root) |
| LOW | kernel-open/conftest.sh | 2961 | # pci_channel_state was removed by commit 16d79cd4e23b ("PCI: Use |
| LOW | kernel-open/conftest.sh | 3001 | #if defined(NV_LINUX_CC_PLATFORM_H_PRESENT) |
| LOW | kernel-open/conftest.sh | 3081 | drm_crtc_atomic_check_has_atomic_state_arg) |
| LOW | kernel-open/conftest.sh | 3121 | # argument of 'struct dma_buf_map' type. |
| LOW | kernel-open/conftest.sh | 3161 | # |
| LOW | kernel-open/conftest.sh | 3181 | # by commit 233eb0bf3b94 ("mm: remove follow_pfn") |
| LOW | kernel-open/conftest.sh | 3261 | # |
| LOW | kernel-open/conftest.sh | 3321 | |
| LOW | kernel-open/conftest.sh | 3381 | # |
| LOW | kernel-open/conftest.sh | 3581 | # Determine if the migrate_device_range() function is present |
| LOW | kernel-open/conftest.sh | 3601 | # |
| LOW | kernel-open/conftest.sh | 3621 | # |
| LOW | kernel-open/conftest.sh | 3661 | (void)foo.no_vblank; |
| LOW | kernel-open/conftest.sh | 3721 | # |
| LOW | kernel-open/conftest.sh | 3821 | # Added by commit 1224451bb6f93 ("PM / devfreq: Register devfreq as a cooling device |
| LOW | kernel-open/conftest.sh | 3881 | |
| LOW | kernel-open/conftest.sh | 3901 | |
| LOW | kernel-open/conftest.sh | 3961 | # |
| LOW | kernel-open/conftest.sh | 3981 | # Note: the include directive for <linux/types> in this conftest is |
| 11047 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | kernel-open/nvidia/nv-dma.c | 722 | // ops can be NULL on 5.0+ kernels, meaning we can utilize direct dma. |
| MEDIUM | kernel-open/nvidia-uvm/uvm_ce_test.c | 1104 | // CPU decryption(s), but it is more robust against test changes to force |
| MEDIUM | kernel-open/nvidia-uvm/uvm_gpu.h | 1119 | // Bug 4577236 outlines the issue. Essentially normal eviction of coherent |
| MEDIUM | kernel-open/nvidia-uvm/uvm_sec2_test.c | 463 | // CPU decryption(s), but it is more robust against test changes to force |
| MEDIUM | kernel-open/nvidia-uvm/uvm_gpu_semaphore.c | 806 | // recent addition to the kernel, just leverage smp_mb__after_atomic() that |
| MEDIUM | src/common/nvswitch/kernel/lr10/clock_lr10.c | 138 | // Unfortunately, we don't have a full robust infrastructure for detecting the |
| MEDIUM | src/nvidia/src/libraries/containers/eheap/eheap_old.c | 195 | // Form the list of free mem structures. Just need to utilize the next field of EMEMBLOCK. |
| MEDIUM | src/nvidia/src/kernel/mem_mgr/gpu_vaspace.c | 696 | // RM would need internal CE support (e.g. leverage ECC scrubber) |
| MEDIUM | src/nvidia/src/kernel/gpu/mem_mgr/sem_surf.c | 1093 | // it to ensure using it in the future (E.g., for robust channel error |
| MEDIUM | src/nvidia/src/kernel/gpu/mem_mgr/sem_surf.c | 1255 | // it to ensure using it in the future (E.g., for robust channel error |
| MEDIUM | …ia/src/kernel/gpu/mem_mgr/arch/maxwell/mem_mgr_gm107.c | 2080 | // I.e. refactor and leverage the code performing these tasks |
| MEDIUM | src/nvidia/src/kernel/gpu/spdm/arch/hopper/spdm_gh100.c | 832 | // If we haven't established the session yet, we need to utilize polling |
| MEDIUM | src/nvidia/src/kernel/gpu/mmu/gmmu_walk.c | 910 | // debug print - to remove when the code is robust enough |
| MEDIUM | src/nvidia/src/kernel/gpu/mig_mgr/kernel_mig_manager.c | 6650 | //TODO: Remove below code once a more robust SRT is available to test for this condition |
| MEDIUM | …nvidia/src/kernel/gpu/ce/arch/hopper/kernel_ce_gh100.c | 948 | // In the self hosted case, utilize table entries |
| MEDIUM | …nvidia/src/kernel/gpu/rc/kernel_rc_watchdog_callback.c | 186 | // Do nothing if robust channels are not enabled |
| MEDIUM | …nvidia/src/kernel/gpu/rc/kernel_rc_watchdog_callback.c | 242 | // Handle robust channel testing, if necessary. |
| MEDIUM | src/nvidia/src/kernel/gpu/rc/kernel_rc.c | 88 | // Force uncached pushbuffers for robust channel. |
| MEDIUM | src/nvidia/src/kernel/gpu/rc/kernel_rc.c | 93 | // with the robust channel, and ended up requesting sizeof(RC + pushbuffer) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | kernel-open/nvidia-uvm/uvm_gpu.c | 775 | // procfs_files are created before gpu_init_isr, we need to check if the |
| LOW | kernel-open/nvidia-uvm/uvm_va_block.c | 6362 | // Step 1: Make the 2M entry invalid. We can't directly transition from a |
| LOW | kernel-open/nvidia-uvm/uvm_va_block.c | 6388 | // Step 2: Switch the 2M entry from invalid to a PDE. This activates the |
| LOW | …c/common/nvlink/kernel/nvlink/core/nvlink_initialize.c | 65 | // Step 1: Perform INITPHASE1 on all endpoints |
| LOW | …c/common/nvlink/kernel/nvlink/core/nvlink_initialize.c | 319 | // Step 1: Perform INITPHASE1 on all endpoints |
| LOW | …c/common/nvlink/kernel/nvlink/core/nvlink_initialize.c | 379 | // Step 3: Enable Common mode on all Tx's |
| LOW | …c/common/nvlink/kernel/nvlink/core/nvlink_initialize.c | 405 | // Step 4: call INITPHASE5 |
| LOW | …c/common/nvlink/kernel/nvlink/core/nvlink_initialize.c | 431 | // Step 5: Put the links in SAFE mode |
| LOW | src/common/displayport/src/dp_connectorimpl.cpp | 1815 | // we need to check if we have enough BW for the stream on FRL link. |
| LOW | src/common/displayport/src/dp_connectorimpl.cpp | 4322 | // Step 1: Setup PCON for later operation |
| LOW | src/common/displayport/src/dp_connectorimpl.cpp | 4354 | // Step 2: Assess FRL Link capability. |
| LOW | src/common/displayport/src/dp_connectorimpl.cpp | 4436 | // Step 3: Assess DP Link capability. |
| LOW | src/common/displayport/src/dp_configcaps.cpp | 2500 | // Step 1: Configure FRL Link (FRL BW, BW mask / Concurrent) |
| LOW | src/common/nvswitch/kernel/lr10/lr10.c | 6193 | // Step 0 : |
| LOW | src/common/nvswitch/kernel/lr10/lr10.c | 6242 | // Step 1 : Perform surgical reset |
| LOW | src/common/nvswitch/kernel/lr10/lr10.c | 6313 | // Step 2 : Assert NPORT Reset after Control & Drain routine. |
| LOW | src/common/nvswitch/kernel/lr10/lr10.c | 6377 | // Step 3 : Restore link state |
| LOW | src/common/nvswitch/kernel/cci/cables/cci_common.c | 1451 | * The purpose of this function is to provide a trace |
| LOW | src/nvidia/arch/nvalloc/unix/src/unix_intr.c | 248 | // Step 1: Check if we can service nonstall interrupts outside the GPUs lock. Otherwise |
| LOW | src/nvidia/arch/nvalloc/unix/src/unix_intr.c | 284 | // Step 2: Service nonstall interrupts and check if there are any stall interrupts |
| LOW | …nel/gpu/mem_mgr/arch/hopper/virt_mem_allocator_gh100.c | 74 | // Step 1: |
| LOW | …nel/gpu/mem_mgr/arch/hopper/virt_mem_allocator_gh100.c | 84 | // Step 2: |
| LOW | …nel/gpu/mem_mgr/arch/hopper/virt_mem_allocator_gh100.c | 103 | // Step 3: |
| LOW | …nvidia/src/kernel/gpu/mmu/arch/volta/kern_gmmu_gv100.c | 348 | // Step 1: Unregister(vas) --> UnsetPageDirectory(vas) |
| LOW | …nvidia/src/kernel/gpu/mmu/arch/volta/kern_gmmu_gv100.c | 349 | // Step 2: FreeSubcontext(vas) |
| LOW | …nvidia/src/kernel/gpu/ce/arch/ampere/kernel_ce_ga100.c | 524 | // So, we need to check if the FBHUB PCEs have already been assigned. |
| LOW | src/nvidia/src/kernel/gpu/rc/kernel_rc_watchdog.c | 258 | // Step 1: check for conflicting requests, and bail out without changing |
| LOW | src/nvidia/src/kernel/gpu/rc/kernel_rc_watchdog.c | 290 | // Step 2: if client state has changed, adjust the per-GPU/RC refcount: |
| LOW | src/nvidia/src/kernel/gpu/rc/kernel_rc_watchdog.c | 318 | // Step 3: record client state: |
| LOW | src/nvidia/src/kernel/gpu/rc/kernel_rc_watchdog.c | 324 | // Step 4: if per-GPU/RC refcount has changed from 0 to 1, then change the |
| LOW | src/nvidia/src/kernel/rmapi/alloc_free.c | 1008 | // so we need to check if Device has the same OBJGPU. |
| LOW | src/nvidia/src/kernel/rmapi/nv_gpu_ops.c | 3588 | // is that it is indeed supported, we need to check if the link has |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/nvidia/src/kernel/gpu/nvlink/kernel_nvlink.c | 3025 | // For the transfer direction pLocalGpu->pRemoteGpu, update the new key for Tx or Rx as requested |
| HIGH | src/nvidia/src/kernel/gpu/nvlink/kernel_nvlink.c | 3030 | // For the transfer direction pRemoteGpu->pLocalGpu, update the new key for Tx or Rx as requested |
| HIGH | src/nvidia/src/kernel/gpu/mig_mgr/kernel_mig_manager.c | 5971 | // set GPCs as requested |
| HIGH | src/nvidia-modeset/src/nvkms-evo.c | 9163 | // as requested. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | kernel-open/conftest.sh | 180 | # Check if gcc supports asm goto and set CC_HAVE_ASM_GOTO if it does. |
| LOW | kernel-open/conftest.sh | 351 | # Check if any of the linuxkpi or drm kernel module files contain |
| LOW | kernel-open/conftest.sh | 416 | # Print the value of given configuration option, if defined |
| LOW | kernel-open/conftest.sh | 709 | # Check if vfio_info_add_capability() has cap_type_id parameter. |
| LOW | kernel-open/conftest.sh | 3346 | # Check if add_memory_driver_managed() has mhp_flags arg. |
| LOW | kernel-open/conftest.sh | 3364 | # Check if remove_memory() has nid parameter. |
| LOW | kernel-open/conftest.sh | 4110 | # Check if iommu_sva_bind_device() has drvdata parameter. |
| LOW | kernel-open/conftest.sh | 4188 | # Check if memory_failure_queue() has trapno parameter. |
| LOW | kernel-open/conftest.sh | 4206 | # Check if memory_failure() flag MF_SW_SIMULATED is defined. |
| LOW | kernel-open/conftest.sh | 5238 | # Check if the selected compiler can create object files |
| LOW | kernel-open/conftest.sh | 5384 | # Check if the target kernel is a Xen kernel. If so, exit, since |
| LOW | kernel-open/conftest.sh | 5416 | # Check if the target kernel has the PREEMPT_RT patch set applied. If |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nouveau/extract-firmware-nouveau.py | 429 | # Create a 32-bit generic ELF header with no program header, and 'shnum' |
| MEDIUM | nouveau/extract-firmware-nouveau.py | 445 | # Create a 32-bit ELF section header, where 'sh_name' is the offset of the |
| MEDIUM | nouveau/extract-firmware-nouveau.py | 467 | # Create a 64-bit .shstrtab ELF section header. |
| MEDIUM | nouveau/extract-firmware-nouveau.py | 558 | # Create the ELF header |
| MEDIUM | nouveau/extract-firmware-nouveau.py | 666 | # Create a symlink, deleting the existing file/link if necessary |
| MEDIUM | nouveau/extract-firmware-nouveau.py | 727 | # Create a text file that can be inserted as-is to the WHENCE file of the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | kernel-open/pahole.sh | 42 | # make sure to exclude c++ when generating encoding BTF. |
| LOW | kernel-open/common/inc/rs_access.h | 54 | // When adding a new access right, don't forget to update |
| LOW | src/common/sdk/nvidia/inc/rs_access.h | 51 | // When adding a new access right, don't forget to update |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | nouveau/extract-firmware-nouveau.py | 473 | def elf_section_header_shstrtab(sh_name, shnum, sh_size): |
| LOW | src/nvidia/arch/nvalloc/unix/src/rmobjexportimport.c | 65 | // generated by function RmGenerateObjExportHandle(). |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/nvidia/inc/kernel/core/bin_data.h | 158 | // Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nouveau/extract-firmware-nouveau.py | 1006 | print(f"Error: {e}", file=sys.stderr) |