Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbdev parameter is not available on Linux 6.13-rc1 #749

Open
2 tasks
xtexChooser opened this issue Dec 7, 2024 · 3 comments
Open
2 tasks

fbdev parameter is not available on Linux 6.13-rc1 #749

xtexChooser opened this issue Dec 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@xtexChooser
Copy link

NVIDIA Open GPU Kernel Modules Version

565.77

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

AOSC OS

Kernel Release

Linux xtex1 6.13.0-aosc-main #1 SMP PREEMPT_DYNAMIC Wed Dec 4 20:00:43 UTC 2024 x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

GPU 0: NVIDIA GeForce GTX 750 Ti

Describe the bug

drm_aperture_remove_conflicting_pci_framebuffers is removed in Linux 6.13-rc1 (torvalds/linux@689274a), and NV_DRM_FBDEV_AVAILABLE is not defined:

#if defined(NV_DRM_FBDEV_GENERIC_SETUP_PRESENT) && defined(NV_DRM_APERTURE_REMOVE_CONFLICTING_PCI_FRAMEBUFFERS_PRESENT)
#define NV_DRM_FBDEV_AVAILABLE
#define NV_DRM_FBDEV_GENERIC_AVAILABLE
#endif
#if defined(NV_DRM_FBDEV_TTM_SETUP_PRESENT) && defined(NV_DRM_APERTURE_REMOVE_CONFLICTING_PCI_FRAMEBUFFERS_PRESENT)
#define NV_DRM_FBDEV_AVAILABLE
#define NV_DRM_FBDEV_TTM_AVAILABLE
#endif

To Reproduce

Build on Linux kernel 6.13.0-rc1 and set fbdev=1 parameter for nvidia_drm module.

Bug Incidence

Always

nvidia-bug-report.log.gz

DKMS make.log for nvidia-565.77 for kernel 6.13.0-aosc-main (x86_64)
Sat Dec  7 09:25:49 PM CST 2024
make[1]: Entering directory '/usr/src/linux-headers-6.13.0-aosc-main'
make[2]: Entering directory '/var/lib/dkms/nvidia/565.77/build'
  SYMLINK nvidia/nv-kernel.o
  SYMLINK nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: ioremap_driver_hardened
 CONFTEST: ioremap_driver_hardened_wc
 CONFTEST: ioremap_cache_shared
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: pde_data
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: dma_attr_macros
 CONFTEST: dma_map_page_attrs
 CONFTEST: write_cr4
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: of_get_ibm_chip_id
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_rebar_get_possible_sizes
 CONFTEST: wait_for_random_bytes
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: get_backlight_device_by_name
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: kernel_read_has_pointer_pos_arg
 CONFTEST: kernel_write_has_pointer_pos_arg
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: tegra_bpmp_send_receive
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: full_name_hash
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: cc_platform_has
 CONFTEST: cc_attr_guest_sev_snp
 CONFTEST: hv_get_isolation_type
 CONFTEST: seq_read_iter
 CONFTEST: follow_pfn
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: add_memory_driver_managed
 CONFTEST: device_property_read_u64
 CONFTEST: devm_of_platform_populate
 CONFTEST: of_dma_configure
 CONFTEST: of_property_count_elems_of_size
 CONFTEST: of_property_read_variable_u8_array
 CONFTEST: of_property_read_variable_u32_array
 CONFTEST: i2c_new_client_device
 CONFTEST: i2c_unregister_device
 CONFTEST: of_get_named_gpio
 CONFTEST: devm_gpio_request_one
 CONFTEST: gpio_direction_input
 CONFTEST: gpio_direction_output
 CONFTEST: gpio_get_value
 CONFTEST: gpio_set_value
 CONFTEST: gpio_to_irq
 CONFTEST: icc_get
 CONFTEST: icc_put
 CONFTEST: icc_set_bw
 CONFTEST: dma_buf_export_args
 CONFTEST: dma_buf_ops_has_kmap
 CONFTEST: dma_buf_ops_has_kmap_atomic
 CONFTEST: dma_buf_ops_has_map
 CONFTEST: dma_buf_ops_has_map_atomic
 CONFTEST: dma_buf_has_dynamic_attachment
 CONFTEST: dma_buf_attachment_has_peer2peer
 CONFTEST: dma_set_mask_and_coherent
 CONFTEST: devm_clk_bulk_get_all
 CONFTEST: get_task_ioprio
 CONFTEST: mdev_set_iommu_device
 CONFTEST: offline_and_remove_memory
 CONFTEST: stack_trace
 CONFTEST: crypto_tfm_ctx_aligned
 CONFTEST: radix_tree_empty
 CONFTEST: radix_tree_replace_slot
 CONFTEST: pnv_npu2_init_context
 CONFTEST: cpumask_of_node
 CONFTEST: ioasid_get
 CONFTEST: mm_pasid_drop
 CONFTEST: mmget_not_zero
 CONFTEST: mmgrab
 CONFTEST: iommu_sva_bind_device_has_drvdata_arg
 CONFTEST: vm_fault_to_errno
 CONFTEST: find_next_bit_wrap
 CONFTEST: iommu_is_dma_domain
 CONFTEST: folio_test_swapcache
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: pin_user_pages_remote
 CONFTEST: pin_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_connector_has_vrr_capable_property
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_format_num_planes
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_rotation_available
 CONFTEST: drm_vma_offset_exact_lookup_locked
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: dma_fence_set_error
 CONFTEST: fence_set_error
 CONFTEST: sync_file_get_fence
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers
 CONFTEST: drm_fbdev_generic_setup
 CONFTEST: drm_fbdev_ttm_setup
 CONFTEST: drm_connector_attach_hdr_output_metadata_property
 CONFTEST: drm_helper_crtc_enable_color_mgmt
 CONFTEST: drm_crtc_enable_color_mgmt
 CONFTEST: drm_atomic_helper_legacy_gamma_set
 CONFTEST: vmf_insert_mixed
 CONFTEST: pfn_to_pfn_t
 CONFTEST: drm_gem_prime_mmap
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_gpl_sme_active
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present___close_fd
 CONFTEST: is_export_symbol_present_close_fd
 CONFTEST: is_export_symbol_present_get_unused_fd
 CONFTEST: is_export_symbol_present_get_unused_fd_flags
 CONFTEST: is_export_symbol_present_nvhost_get_default_device
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
 CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
 CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
 CONFTEST: is_export_symbol_present_get_dram_num_channels
 CONFTEST: is_export_symbol_present_tegra_dram_types
 CONFTEST: is_export_symbol_present_pxm_to_node
 CONFTEST: is_export_symbol_present_screen_info
 CONFTEST: is_export_symbol_gpl_screen_info
 CONFTEST: is_export_symbol_present_i2c_bus_status
 CONFTEST: is_export_symbol_present_tegra_fuse_control_read
 CONFTEST: is_export_symbol_present_tegra_get_platform
 CONFTEST: is_export_symbol_present_pci_find_host_bridge
 CONFTEST: is_export_symbol_present_tsec_comms_send_cmd
 CONFTEST: is_export_symbol_present_tsec_comms_set_init_cb
 CONFTEST: is_export_symbol_present_tsec_comms_clear_init_cb
 CONFTEST: is_export_symbol_present_tsec_comms_alloc_mem_from_gscco
 CONFTEST: is_export_symbol_present_tsec_comms_free_gscco_mem
 CONFTEST: is_export_symbol_present_memory_block_size_bytes
 CONFTEST: crypto
 CONFTEST: is_export_symbol_present_follow_pte
 CONFTEST: is_export_symbol_gpl_pci_ats_supported
 CONFTEST: is_export_symbol_present_int_active_memcg
 CONFTEST: is_export_symbol_present_migrate_vma_setup
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: proc_ops
 CONFTEST: timespec64
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: mm_has_mmap_lock
 CONFTEST: pci_channel_state
 CONFTEST: pci_dev_has_ats_enabled
 CONFTEST: remove_memory_has_nid_arg
 CONFTEST: add_memory_driver_managed_has_mhp_flags_arg
 CONFTEST: num_registered_fb
 CONFTEST: pci_driver_has_driver_managed_dma
 CONFTEST: vm_area_struct_has_const_vm_flags
 CONFTEST: memory_failure_has_trapno_arg
 CONFTEST: foll_longterm_present
 CONFTEST: bus_type_has_iommu_ops
 CONFTEST: mmu_notifier_ops_invalidate_range
 CONFTEST: mmu_notifier_ops_arch_invalidate_secondary_tlbs
 CONFTEST: migrate_vma_added_flags
 CONFTEST: migrate_device_range
 CONFTEST: handle_mm_fault_has_mm_arg
 CONFTEST: handle_mm_fault_has_pt_regs_arg
 CONFTEST: mempolicy_has_unified_nodes
 CONFTEST: mempolicy_has_home_node
 CONFTEST: mpol_preferred_many_present
 CONFTEST: mmu_interval_notifier
 CONFTEST: fault_flag_remote_present
 CONFTEST: struct_page_has_zone_device_data
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_device_list
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_init_function_args
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_atomic_helper_plane_destroy_state_has_plane_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: vm_fault_t
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_crtc_state_has_async_flip
 CONFTEST: drm_crtc_state_has_pageflip_flags
 CONFTEST: drm_crtc_state_has_vrr_enabled
 CONFTEST: drm_format_modifiers_present
 CONFTEST: drm_vma_node_is_allowed_has_tag_arg
 CONFTEST: drm_vma_offset_node_has_readonly
 CONFTEST: drm_display_mode_has_vrefresh
 CONFTEST: drm_driver_master_set_has_int_return_type
 CONFTEST: drm_driver_has_gem_free_object
 CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
 CONFTEST: drm_driver_has_gem_prime_callbacks
 CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
 CONFTEST: drm_gem_object_vmap_has_map_arg
 CONFTEST: drm_plane_atomic_check_has_atomic_state_arg
 CONFTEST: drm_device_has_pdev
 CONFTEST: drm_crtc_state_has_no_vblank
 CONFTEST: drm_mode_config_has_allow_fb_modifiers
 CONFTEST: drm_has_hdr_output_metadata
 CONFTEST: dma_resv_add_fence
 CONFTEST: dma_resv_reserve_fences
 CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
 CONFTEST: drm_connector_has_override_edid
 CONFTEST: drm_master_has_leases
 CONFTEST: drm_file_get_master
 CONFTEST: drm_modeset_lock_all_end
 CONFTEST: drm_connector_lookup
 CONFTEST: drm_connector_put
 CONFTEST: drm_driver_has_dumb_destroy
 CONFTEST: fence_ops_use_64bit_seqno
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers_has_driver_arg
 CONFTEST: drm_mode_create_dp_colorspace_property_has_supported_colorspaces_arg
 CONFTEST: drm_syncobj_features_present
 CONFTEST: drm_unlocked_ioctl_flag_present
 CONFTEST: drm_framebuffer_obj_present
 CONFTEST: drm_color_ctm_3x4_present
 CONFTEST: drm_color_lut
 CONFTEST: drm_property_blob_put
 CONFTEST: drm_driver_has_gem_prime_mmap
 CONFTEST: drm_output_poll_changed
 CONFTEST: file_operations_fop_unsigned_offset_present
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: pci_class_multimedia_hd_audio
 CONFTEST: drm_available
 CONFTEST: vfio_pci_core_available
 CONFTEST: mdev_available
 CONFTEST: cmd_uphy_display_port_init
 CONFTEST: cmd_uphy_display_port_off
 CONFTEST: memory_failure_mf_sw_simulated_defined
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
 CONFTEST: is_export_symbol_present_drm_gem_prime_fd_to_handle
 CONFTEST: is_export_symbol_present_drm_gem_prime_handle_to_fd
 CONFTEST: ib_peer_memory_symbols
  CC [M]  nvidia/nv.o
  CC [M]  nvidia/nv-pci.o
  CC [M]  nvidia/nv-dmabuf.o
  CC [M]  nvidia/nv-nano-timer.o
  CC [M]  nvidia/nv-acpi.o
  CC [M]  nvidia/nv-cray.o
In file included from nvidia/nv-nano-timer.c:31:
nvidia/nv-nano-timer.c: In function ‘nv_alloc_nano_timer’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-nano-timer.c:86:5: note: in expansion of macro ‘NV_KMALLOC’
   86 |     NV_KMALLOC(nv_nstimer, sizeof(nv_nano_timer_t));
      |     ^~~~~~~~~~
In file included from ././common/inc/nv-pci.h:28,
                 from nvidia/nv-pci.c:26:
nvidia/nv-pci.c: In function ‘nv_pci_probe’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-pci.c:401:5: note: in expansion of macro ‘NV_KZALLOC’
  401 |     NV_KZALLOC(nvl, sizeof(nv_linux_state_t));
      |     ^~~~~~~~~~
  CC [M]  nvidia/nv-dma.o
In file included from nvidia/nv.c:34:
nvidia/nv.c: In function ‘nvos_create_alloc’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:292:5: note: in expansion of macro ‘NV_KZALLOC’
  292 |     NV_KZALLOC(at, sizeof(nv_alloc_t));
      |     ^~~~~~~~~~
nvidia/nv.c: In function ‘nv_alloc_file_private’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:980:5: note: in expansion of macro ‘NV_KZALLOC’
  980 |     NV_KZALLOC(nvlfp, sizeof(nv_linux_file_private_t));
      |     ^~~~~~~~~~
nvidia/nv.c: In function ‘nvidia_ioctl’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:2393:5: note: in expansion of macro ‘NV_KMALLOC’
 2393 |     NV_KMALLOC(arg_copy, arg_size);
      |     ^~~~~~~~~~
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:2496:13: note: in expansion of macro ‘NV_KMALLOC’
 2496 |             NV_KMALLOC(nvlfp->attached_gpus, arg_size);
      |             ^~~~~~~~~~
nvidia/nv.c: In function ‘nv_map_guest_pages’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:3133:5: note: in expansion of macro ‘NV_KMALLOC’
 3133 |     NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |     ^~~~~~~~~~
nvidia/nv.c: In function ‘nv_alloc_kernel_mapping’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:3628:13: note: in expansion of macro ‘NV_KMALLOC’
 3628 |             NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |             ^~~~~~~~~~
  CC [M]  nvidia/nv-i2c.o
nvidia/nv.c: In function ‘nv_post_event’:
././common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv.c:3912:9: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
 3912 |         NV_KMALLOC_ATOMIC(nvet, sizeof(nvidia_event_t));
      |         ^~~~~~~~~~~~~~~~~
  CC [M]  nvidia/nv-mmap.o
  CC [M]  nvidia/nv-p2p.o
  CC [M]  nvidia/nv-pat.o
  CC [M]  nvidia/nv-procfs.o
nvidia/nv-mmap.c:321:5: warning: conflicting types for ‘nv_encode_caching’ due to enum/integer mismatch; have ‘int(pgprot_t *, NvU32,  nv_memory_type_t)’ {aka ‘int(struct pgprot *, unsigned int,  nv_memory_type_t)’} [-Wenum-int-mismatch]
  321 | int nv_encode_caching(
      |     ^~~~~~~~~~~~~~~~~
In file included from ././common/inc/nv-linux.h:1791,
                 from nvidia/nv-mmap.c:27:
././common/inc/nv-proto.h:44:13: note: previous declaration of ‘nv_encode_caching’ with type ‘int(pgprot_t *, NvU32,  NvU32)’ {aka ‘int(struct pgprot *, unsigned int,  unsigned int)’}
   44 | int         nv_encode_caching           (pgprot_t *, NvU32, NvU32);
      |             ^~~~~~~~~~~~~~~~~
  CC [M]  nvidia/nv-usermap.o
  CC [M]  nvidia/nv-vm.o
  CC [M]  nvidia/nv-vtophys.o
  CC [M]  nvidia/os-interface.o
  CC [M]  nvidia/os-mlock.o
In file included from nvidia/nv-procfs.c:27:
nvidia/nv-procfs.c: In function ‘nv_procfs_open_file’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-procfs.c:273:5: note: in expansion of macro ‘NV_KZALLOC’
  273 |     NV_KZALLOC(nvpp, sizeof(nv_procfs_private_t));
      |     ^~~~~~~~~~
  CC [M]  nvidia/os-pci.o
  CC [M]  nvidia/os-registry.o
In file included from nvidia/os-interface.c:27:
nvidia/os-interface.c: In function ‘os_alloc_mem’:
././common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:608:13: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
  608 |             NV_KMALLOC_ATOMIC(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
././common/inc/nv-linux.h:601:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  601 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:614:13: note: in expansion of macro ‘NV_KMALLOC_NO_OOM’
  614 |             NV_KMALLOC_NO_OOM(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
nvidia/os-interface.c: In function ‘os_queue_work_item’:
././common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:1155:5: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
 1155 |     NV_KMALLOC_ATOMIC(oqd, sizeof(os_queue_data_t));
      |     ^~~~~~~~~~~~~~~~~
nvidia/os-interface.c: In function ‘os_alloc_wait_queue’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:2026:5: note: in expansion of macro ‘NV_KMALLOC’
 2026 |     NV_KMALLOC(*wq, sizeof(os_wait_queue));
      |     ^~~~~~~~~~
  CC [M]  nvidia/os-usermap.o
  CC [M]  nvidia/nv-modeset-interface.o
  CC [M]  nvidia/nv-pci-table.o
  CC [M]  nvidia/nv-kthread-q.o
  CC [M]  nvidia/nv-memdbg.o
  CC [M]  nvidia/nv-ibmnpu.o
  CC [M]  nvidia/nv-report-err.o
  CC [M]  nvidia/nv-rsync.o
  CC [M]  nvidia/nv-msi.o
  CC [M]  nvidia/nv-caps.o
  CC [M]  nvidia/nv-caps-imex.o
  CC [M]  nvidia/nv-host1x.o
  CC [M]  nvidia/nv_uvm_interface.o
In file included from ././common/inc/nv-msi.h:27,
                 from nvidia/nv-msi.c:24:
nvidia/nv-msi.c: In function ‘nv_init_msi’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-msi.c:39:9: note: in expansion of macro ‘NV_KZALLOC’
   39 |         NV_KZALLOC(nvl->irq_count, sizeof(nv_irq_count_info_t) * nvl->num_intr);
      |         ^~~~~~~~~~
nvidia/nv-msi.c: In function ‘nv_init_msix’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-msi.c:90:5: note: in expansion of macro ‘NV_KMALLOC’
   90 |     NV_KMALLOC(nvl->msix_entries, sizeof(struct msix_entry) * num_intr);
      |     ^~~~~~~~~~
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-msi.c:102:5: note: in expansion of macro ‘NV_KZALLOC’
  102 |     NV_KZALLOC(nvl->irq_count, sizeof(nv_irq_count_info_t) * num_intr);
      |     ^~~~~~~~~~
  CC [M]  nvidia/libspdm_aead.o
  CC [M]  nvidia/libspdm_ecc.o
  CC [M]  nvidia/libspdm_hkdf.o
nvidia/libspdm_aead.c:41:5: warning: no previous prototype for ‘libspdm_aead_prealloc’ [-Wmissing-prototypes]
   41 | int libspdm_aead_prealloc(void **context, char const *alg)
      |     ^~~~~~~~~~~~~~~~~~~~~
nvidia/libspdm_aead.c:178:5: warning: no previous prototype for ‘libspdm_aead_prealloced’ [-Wmissing-prototypes]
  178 | int libspdm_aead_prealloced(void *context,
      |     ^~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  nvidia/libspdm_rand.o
  CC [M]  nvidia/libspdm_shash.o
  CC [M]  nvidia/libspdm_rsa.o
In file included from nvidia/nv-caps.c:24:
nvidia/nv-caps.c: In function ‘nv_cap_procfs_open’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-caps.c:435:5: note: in expansion of macro ‘NV_KMALLOC’
  435 |     NV_KMALLOC(private, sizeof(nv_cap_file_private_t));
      |     ^~~~~~~~~~
nvidia/nv-caps.c: In function ‘nv_cap_alloc’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-caps.c:635:5: note: in expansion of macro ‘NV_KMALLOC’
  635 |     NV_KMALLOC(cap, sizeof(nv_cap_t));
      |     ^~~~~~~~~~
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-caps.c:642:5: note: in expansion of macro ‘NV_KMALLOC’
  642 |     NV_KMALLOC(cap->path, len);
      |     ^~~~~~~~~~
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-caps.c:654:5: note: in expansion of macro ‘NV_KMALLOC’
  654 |     NV_KMALLOC(cap->name, len);
      |     ^~~~~~~~~~
nvidia/nv-caps.c: In function ‘nv_cap_init’:
././common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/nv-caps.c:759:5: note: in expansion of macro ‘NV_KMALLOC’
  759 |     NV_KMALLOC(name, (strlen(path) + strlen(dir)) + 1);
      |     ^~~~~~~~~~
  CC [M]  nvidia/libspdm_aead_aes_gcm.o
  CC [M]  nvidia/libspdm_sha.o
  CC [M]  nvidia/libspdm_hmac_sha.o
  CC [M]  nvidia/libspdm_internal_crypt_lib.o
  CC [M]  nvidia/libspdm_hkdf_sha.o
  CC [M]  nvidia/libspdm_ec.o
  CC [M]  nvidia/libspdm_x509.o
  CC [M]  nvidia/libspdm_rsa_ext.o
  CC [M]  nvidia/nvlink_linux.o
  CC [M]  nvidia/nvlink_caps.o
  CC [M]  nvidia/linux_nvswitch.o
  CC [M]  nvidia/procfs_nvswitch.o
  CC [M]  nvidia/i2c_nvswitch.o
  CC [M]  nvidia-uvm/uvm_conf_computing.o
  CC [M]  nvidia-uvm/uvm_sec2_test.o
  CC [M]  nvidia-uvm/uvm_maxwell_sec2.o
  CC [M]  nvidia-uvm/uvm_hopper_sec2.o
  CC [M]  nvidia-uvm/uvm_blackwell.o
  CC [M]  nvidia-uvm/uvm_blackwell_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_blackwell_mmu.o
  CC [M]  nvidia-uvm/uvm_blackwell_host.o
  CC [M]  nvidia-uvm/uvm_common.o
  CC [M]  nvidia-uvm/uvm_linux.o
  CC [M]  nvidia-uvm/nvstatus.o
  CC [M]  nvidia-uvm/nvCpuUuid.o
  CC [M]  nvidia-uvm/nv-kthread-q.o
  CC [M]  nvidia-uvm/nv-kthread-q-selftest.o
  CC [M]  nvidia-uvm/uvm.o
  CC [M]  nvidia-uvm/uvm_tools.o
  CC [M]  nvidia-uvm/uvm_global.o
  CC [M]  nvidia-uvm/uvm_gpu.o
  CC [M]  nvidia-uvm/uvm_gpu_isr.o
  CC [M]  nvidia-uvm/uvm_procfs.o
nvidia-uvm/uvm_gpu.c: In function ‘init_procfs_dirs’:
nvidia-uvm/uvm_gpu.c:972:5: warning: ISO C90 forbids variable length array ‘uuid_buffer’ [-Wvla]
  972 |     char uuid_buffer[max(UVM_PARENT_GPU_UUID_STRING_LENGTH, UVM_GPU_UUID_STRING_LENGTH)];
      |     ^~~~
nvidia-uvm/uvm_gpu.c:973:5: warning: ISO C90 forbids variable length array ‘gpu_dir_name’ [-Wvla]
  973 |     char gpu_dir_name[sizeof(symlink_name) + sizeof(uuid_buffer) + 1];
      |     ^~~~
  CC [M]  nvidia-uvm/uvm_va_space.o
  CC [M]  nvidia-uvm/uvm_va_space_mm.o
  CC [M]  nvidia-uvm/uvm_gpu_semaphore.o
  CC [M]  nvidia-uvm/uvm_mem.o
  CC [M]  nvidia-uvm/uvm_rm_mem.o
  CC [M]  nvidia-uvm/uvm_channel.o
  CC [M]  nvidia-uvm/uvm_lock.o
  CC [M]  nvidia-uvm/uvm_hal.o
  CC [M]  nvidia-uvm/uvm_processors.o
  CC [M]  nvidia-uvm/uvm_range_tree.o
  CC [M]  nvidia-uvm/uvm_rb_tree.o
  CC [M]  nvidia-uvm/uvm_range_allocator.o
  CC [M]  nvidia-uvm/uvm_va_range.o
  CC [M]  nvidia-uvm/uvm_va_range_device_p2p.o
  CC [M]  nvidia-uvm/uvm_va_policy.o
  CC [M]  nvidia-uvm/uvm_va_block.o
  CC [M]  nvidia-uvm/uvm_range_group.o
  CC [M]  nvidia-uvm/uvm_gpu_replayable_faults.o
  CC [M]  nvidia-uvm/uvm_gpu_non_replayable_faults.o
  CC [M]  nvidia-uvm/uvm_gpu_access_counters.o
  CC [M]  nvidia-uvm/uvm_perf_events.o
  CC [M]  nvidia-uvm/uvm_perf_module.o
  CC [M]  nvidia-uvm/uvm_mmu.o
  CC [M]  nvidia-uvm/uvm_pte_batch.o
  CC [M]  nvidia-uvm/uvm_tlb_batch.o
  CC [M]  nvidia-uvm/uvm_push.o
  CC [M]  nvidia-uvm/uvm_pushbuffer.o
  CC [M]  nvidia-uvm/uvm_thread_context.o
  CC [M]  nvidia-uvm/uvm_tracker.o
  CC [M]  nvidia-uvm/uvm_maxwell.o
  CC [M]  nvidia-uvm/uvm_maxwell_host.o
  CC [M]  nvidia-uvm/uvm_maxwell_ce.o
  CC [M]  nvidia-uvm/uvm_maxwell_mmu.o
  CC [M]  nvidia-uvm/uvm_maxwell_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_maxwell_access_counter_buffer.o
  CC [M]  nvidia-uvm/uvm_pascal.o
  CC [M]  nvidia-uvm/uvm_pascal_ce.o
  CC [M]  nvidia-uvm/uvm_pascal_host.o
  CC [M]  nvidia-uvm/uvm_pascal_mmu.o
  CC [M]  nvidia-uvm/uvm_pascal_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_volta_ce.o
  CC [M]  nvidia-uvm/uvm_volta_host.o
  CC [M]  nvidia-uvm/uvm_volta_mmu.o
  CC [M]  nvidia-uvm/uvm_volta.o
  CC [M]  nvidia-uvm/uvm_volta_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_volta_access_counter_buffer.o
  CC [M]  nvidia-uvm/uvm_turing.o
  CC [M]  nvidia-uvm/uvm_turing_access_counter_buffer.o
  CC [M]  nvidia-uvm/uvm_turing_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_turing_mmu.o
  CC [M]  nvidia-uvm/uvm_turing_host.o
  CC [M]  nvidia-uvm/uvm_ampere.o
  CC [M]  nvidia-uvm/uvm_ampere_ce.o
  CC [M]  nvidia-uvm/uvm_ampere_host.o
  CC [M]  nvidia-uvm/uvm_ampere_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_ampere_mmu.o
  CC [M]  nvidia-uvm/uvm_hopper.o
  CC [M]  nvidia-uvm/uvm_hopper_fault_buffer.o
  CC [M]  nvidia-uvm/uvm_hopper_ce.o
  CC [M]  nvidia-uvm/uvm_hopper_host.o
  CC [M]  nvidia-uvm/uvm_hopper_mmu.o
  CC [M]  nvidia-uvm/uvm_ada.o
  CC [M]  nvidia-uvm/uvm_policy.o
  CC [M]  nvidia-uvm/uvm_perf_utils.o
  CC [M]  nvidia-uvm/uvm_kvmalloc.o
  CC [M]  nvidia-uvm/uvm_pmm_sysmem.o
  CC [M]  nvidia-uvm/uvm_pmm_gpu.o
  CC [M]  nvidia-uvm/uvm_migrate.o
  CC [M]  nvidia-uvm/uvm_populate_pageable.o
  CC [M]  nvidia-uvm/uvm_migrate_pageable.o
  CC [M]  nvidia-uvm/uvm_map_external.o
  CC [M]  nvidia-uvm/uvm_user_channel.o
  CC [M]  nvidia-uvm/uvm_hmm.o
  CC [M]  nvidia-uvm/uvm_perf_heuristics.o
  CC [M]  nvidia-uvm/uvm_perf_thrashing.o
  CC [M]  nvidia-uvm/uvm_perf_prefetch.o
  CC [M]  nvidia-uvm/uvm_ats.o
  CC [M]  nvidia-uvm/uvm_ats_ibm.o
  CC [M]  nvidia-uvm/uvm_ats_faults.o
  CC [M]  nvidia-uvm/uvm_ats_sva.o
  CC [M]  nvidia-uvm/uvm_test.o
  CC [M]  nvidia-uvm/uvm_test_rng.o
  CC [M]  nvidia-uvm/uvm_range_tree_test.o
  CC [M]  nvidia-uvm/uvm_range_allocator_test.o
  CC [M]  nvidia-uvm/uvm_gpu_semaphore_test.o
  CC [M]  nvidia-uvm/uvm_mem_test.o
  CC [M]  nvidia-uvm/uvm_rm_mem_test.o
  CC [M]  nvidia-uvm/uvm_page_tree_test.o
  CC [M]  nvidia-uvm/uvm_tracker_test.o
  CC [M]  nvidia-uvm/uvm_push_test.o
  CC [M]  nvidia-uvm/uvm_channel_test.o
  CC [M]  nvidia-uvm/uvm_ce_test.o
  CC [M]  nvidia-uvm/uvm_host_test.o
  CC [M]  nvidia-uvm/uvm_lock_test.o
  CC [M]  nvidia-uvm/uvm_perf_utils_test.o
  CC [M]  nvidia-uvm/uvm_kvmalloc_test.o
  CC [M]  nvidia-uvm/uvm_pmm_test.o
  CC [M]  nvidia-uvm/uvm_pmm_sysmem_test.o
  CC [M]  nvidia-uvm/uvm_perf_events_test.o
  CC [M]  nvidia-uvm/uvm_perf_module_test.o
  CC [M]  nvidia-uvm/uvm_get_rm_ptes_test.o
  CC [M]  nvidia-uvm/uvm_fault_buffer_flush_test.o
  CC [M]  nvidia-uvm/uvm_peer_identity_mappings_test.o
  CC [M]  nvidia-uvm/uvm_va_block_test.o
  CC [M]  nvidia-uvm/uvm_range_group_tree_test.o
  CC [M]  nvidia-uvm/uvm_thread_context_test.o
  CC [M]  nvidia-uvm/uvm_rb_tree_test.o
  CC [M]  nvidia-modeset/nvidia-modeset-linux.o
  CC [M]  nvidia-drm/nvidia-drm.o
  CC [M]  nvidia-modeset/nv-kthread-q.o
  CC [M]  nvidia-drm/nvidia-drm-drv.o
  CC [M]  nvidia-drm/nvidia-drm-utils.o
  CC [M]  nvidia-drm/nvidia-drm-crtc.o
  CC [M]  nvidia-drm/nvidia-drm-encoder.o
  CC [M]  nvidia-drm/nvidia-drm-connector.o
  CC [M]  nvidia-drm/nvidia-drm-gem.o
  CC [M]  nvidia-drm/nvidia-drm-fb.o
  CC [M]  nvidia-drm/nvidia-drm-modeset.o
  CC [M]  nvidia-drm/nvidia-drm-fence.o
  CC [M]  nvidia-drm/nvidia-drm-helper.o
  CC [M]  nvidia-drm/nv-kthread-q.o
  CC [M]  nvidia-drm/nv-pci-table.o
  CC [M]  nvidia-drm/nvidia-drm-gem-nvkms-memory.o
  CC [M]  nvidia-drm/nvidia-drm-gem-user-memory.o
  CC [M]  nvidia-drm/nvidia-drm-gem-dma-buf.o
  CC [M]  nvidia-drm/nvidia-drm-format.o
  CC [M]  nvidia-drm/nvidia-drm-os-interface.o
  CC [M]  nvidia-drm/nvidia-drm-linux.o
  CC [M]  nvidia-peermem/nvidia-peermem.o
ld -r -o nvidia/nv-interface.o nvidia/nv.o nvidia/nv-pci.o nvidia/nv-dmabuf.o nvidia/nv-nano-timer.o nvidia/nv-acpi.o nvidia/nv-cray.o nvidia/nv-dma.o nvidia/nv-i2c.o nvidia/nv-mmap.o nvidia/nv-p2p.o nvidia/nv-pat.o nvidia/nv-procfs.o nvidia/nv-usermap.o nvidia/nv-vm.o nvidia/nv-vtophys.o nvidia/os-interface.o nvidia/os-mlock.o nvidia/os-pci.o nvidia/os-registry.o nvidia/os-usermap.o nvidia/nv-modeset-interface.o nvidia/nv-pci-table.o nvidia/nv-kthread-q.o nvidia/nv-memdbg.o nvidia/nv-ibmnpu.o nvidia/nv-report-err.o nvidia/nv-rsync.o nvidia/nv-msi.o nvidia/nv-caps.o nvidia/nv-caps-imex.o nvidia/nv-host1x.o nvidia/nv_uvm_interface.o nvidia/libspdm_aead.o nvidia/libspdm_ecc.o nvidia/libspdm_hkdf.o nvidia/libspdm_rand.o nvidia/libspdm_shash.o nvidia/libspdm_rsa.o nvidia/libspdm_aead_aes_gcm.o nvidia/libspdm_sha.o nvidia/libspdm_hmac_sha.o nvidia/libspdm_internal_crypt_lib.o nvidia/libspdm_hkdf_sha.o nvidia/libspdm_ec.o nvidia/libspdm_x509.o nvidia/libspdm_rsa_ext.o nvidia/nvlink_linux.o nvidia/nvlink_caps.o nvidia/linux_nvswitch.o nvidia/procfs_nvswitch.o nvidia/i2c_nvswitch.o
ld -r -o nvidia-modeset/nv-modeset-interface.o nvidia-modeset/nvidia-modeset-linux.o nvidia-modeset/nv-kthread-q.o
  LD [M]  nvidia.o
  LD [M]  nvidia-uvm.o
  LD [M]  nvidia-modeset.o
  LD [M]  nvidia-drm.o
  LD [M]  nvidia-peermem.o
  MODPOST Module.symvers
  CC [M]  nvidia.mod.o
  CC [M]  .module-common.o
  CC [M]  nvidia-uvm.mod.o
  CC [M]  nvidia-modeset.mod.o
  CC [M]  nvidia-drm.mod.o
  CC [M]  nvidia-peermem.mod.o
  LD [M]  nvidia.ko
  LD [M]  nvidia-uvm.ko
  LD [M]  nvidia-modeset.ko
  LD [M]  nvidia-drm.ko
  LD [M]  nvidia-peermem.ko
  BTF [M] nvidia-peermem.ko
Skipping BTF generation for nvidia-peermem.ko due to unavailability of vmlinux
  BTF [M] nvidia-modeset.ko
Skipping BTF generation for nvidia-modeset.ko due to unavailability of vmlinux
  BTF [M] nvidia-drm.ko
Skipping BTF generation for nvidia-drm.ko due to unavailability of vmlinux
  BTF [M] nvidia-uvm.ko
Skipping BTF generation for nvidia-uvm.ko due to unavailability of vmlinux
  BTF [M] nvidia.ko
Skipping BTF generation for nvidia.ko due to unavailability of vmlinux
make[2]: Leaving directory '/var/lib/dkms/nvidia/565.77/build'
make[1]: Leaving directory '/usr/src/linux-headers-6.13.0-aosc-main'

More Info

No response

@xtexChooser xtexChooser added the bug Something isn't working label Dec 7, 2024
@xtexChooser xtexChooser changed the title fbdev option is not available on Linux 6.13-rc1 fbdev parameter is not available on Linux 6.13-rc1 Dec 7, 2024
@xtexChooser
Copy link
Author

( I made a tentative fix for 565.77: https://gist.github.com/xtexChooser/da92d9df902788b75f746f348552ae80

@SheMelody
Copy link

SheMelody commented Dec 11, 2024

I confirm. Wayland also falls back to software rendering.

@SheMelody
Copy link

( I made a tentative fix for 565.77: https://gist.github.com/xtexChooser/da92d9df902788b75f746f348552ae80

This works.

xtexChooser added a commit to AOSC-Tracking/nvidia-open that referenced this issue Dec 14, 2024
…on Linux 6.13.0-rc1+

Cherry-pick of 8113cd50461f05da52b66934237415dd303ec55c from AOSC-Tracking/nvidia-driver

Link: torvalds/linux@689274a
Link: torvalds/linux@7283f86
Link: NVIDIA#749
xtexChooser added a commit to AOSC-Tracking/nvidia-open that referenced this issue Dec 14, 2024
Cherry-pick of 686f6869c0edfc725e1af2e1e72e30caa7589887

Link: torvalds/linux@1000634
Link: NVIDIA#749
Signed-off-by: xtex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants