Skip to content

Conversation

@lxe
Copy link

@lxe lxe commented Oct 21, 2025

The get_dev_pagemap() function signature changed in Linux kernel 6.18 to take only a single pfn parameter, removing the lock parameter.

This commit adds a conftest check to detect the API version and conditionally calls get_dev_pagemap() with the appropriate number of arguments.

The get_dev_pagemap() function signature changed in Linux kernel 6.18
to take only a single pfn parameter, removing the lock parameter.

This commit adds a conftest check to detect the API version and
conditionally calls get_dev_pagemap() with the appropriate number
of arguments.
@aritger
Copy link
Collaborator

aritger commented Oct 21, 2025

Thanks for pull request. We have an equivalent change that will be included in an upcoming release.

@lxe
Copy link
Author

lxe commented Oct 21, 2025

Aww ok :(

@Qubitium
Copy link

Qubitium commented Oct 23, 2025

Aww ok :(

Yeah. I feel your pain. Nvidia almost never merge public PRs. this repo is like their public commit squash dump.

It's only open as you can see it but good luck getting changes upstreamed.

@sergiomb2
Copy link

Thanks for pull request. We have an equivalent change that will be included in an upcoming release.

Yeah, can we have the official version? Usually, we also need to update the other old drivers with similar fixes.

@sergiomb2
Copy link

I just checked that nvidia-470xx does not need any backport to build with kernel 6.18.0-0.rc5, but when it does, we prefer to use a solution inspired by the code here. It is relatively easy to adapt to older drivers.
That said, if we could have just the kernel fixes in an independent commit, that would be fantastic.

Best regards

@Qubitium
Copy link

Qubitium commented Dec 7, 2025

@aritger Any progress on the official 6.18 support? It's almost 1 1/2+ months since this PR and I really want something official to pair with intel granite rapids cpu as the intel cpu requires 6.18 for optimal scheduling. Right now all the official releases are only compat up to 6.14.

@ptr1337
Copy link

ptr1337 commented Dec 7, 2025

@aritger Any progress on the official 6.18 support? It's almost 1 1/2+ months since this PR and I really want something official to pair with intel granite rapids cpu as the intel cpu requires 6.18 for optimal scheduling. Right now all the official releases are only compat up to 6.14.

590 does support it and does not require any patches.

The last 580 release is also compatible with 6.17 btw

@Qubitium
Copy link

Qubitium commented Dec 7, 2025

@ptr1337

I tried (not from this repo) but just instaling nvidia-580-open (580.105.08) from nvidia repo on Ubuntu main (6.17.11-061711-generic) kernel and it failed dkms compile for ubuntu 24.04. I assme nvidia-dkms-open-580.105.08 is same as the tagged code from this repo:

Considering Nvidia considers Ubuntu 24.04 official supported distro, this is frustating. I have no clue why there appears to be gcc ompiler compat errors as it if the open kernel on latest kernels expect something version of gcc not available on 24.04

server:~$ cat /var/lib/dkms/nvidia/580.105.08/build/make.log
DKMS (dkms-3.3.0) make.log for nvidia/580.105.08 for kernel 6.17.11-061711-generic (x86_64)
2025年 12月 07日 星期日
 CONFTEST: dma_buf_ops_has_map
 CONFTEST: dma_buf_ops_has_map_atomic
 CONFTEST: dma_buf_attachment_has_peer2peer
 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: assign_str
 CONFTEST: ioasid_get
 CONFTEST: mm_pasid_drop
 CONFTEST: iommu_sva_bind_device_has_drvdata_arg
 CONFTEST: iommu_is_dma_domain
 CONFTEST: for_each_sgtable_dma_page
 CONFTEST: folio_test_swapcache
 CONFTEST: page_pgmap
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: acpi_video_register_backlight
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: pin_user_pages_remote
 CONFTEST: pin_user_pages
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_connector_has_vrr_capable_property
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: drm_aperture_remove_conflicting_framebuffers
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers
 CONFTEST: aperture_remove_conflicting_devices
 CONFTEST: aperture_remove_conflicting_pci_devices
 CONFTEST: drm_fbdev_generic_setup
 CONFTEST: drm_fbdev_ttm_setup
 CONFTEST: drm_client_setup
 CONFTEST: drm_connector_attach_hdr_output_metadata_property
 CONFTEST: drm_plane_create_color_properties
 CONFTEST: drm_atomic_helper_legacy_gamma_set
 CONFTEST: vmf_insert_mixed
 CONFTEST: drm_gem_prime_mmap
 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_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_expo
 CONFTEST: memory_failure_queue_has_trapno_arg
 CONFTEST: foll_longterm_present
 CONFTEST: bus_type_has_iommu_ops
 CONFTEST: of_property_for_each_u32_has_internal_args
 CONFTEST: platform_driver_struct_remove_returns_void
 CONFTEST: class_create_has_no_owner_arg
 CONFTEST: class_devnode_has_const_arg
 CONFTEST: devfreq_has_freq_table
 CONFTEST: has_enum_pidtype_tgid
 CONFTEST: mmu_notifier_ops_arch_invalidate_secondary_tlbs
 CONFTEST: migrate_vma_added_flags
 CONFTEST: migrate_device_range
 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: sg_dma_page_iter
 CONFTEST: struct_page_has_zone_device_data
 CONFTEST: memory_device_coherent_present
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: vm_ops_fault_removed_vma_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_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_file_get_master
 CONFTEST: drm_modeset_lock_all_end
 CONFTEST: drm_driver_has_dumb_destroy
 CONFTEST: fence_ops_use_64bit_seqno
 CONFTEST: drm_aperture_remove_conflicting_framebuffers_has_driver_arg
 CONFTEST: drm_aperture_remove_conflicting_framebuffers_has_no_primary_arg
 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_color_ctm_3x4_present
 CONFTEST: drm_format_info_has_is_yuv
 CONFTEST: drm_driver_has_gem_prime_mmap
 CONFTEST: drm_output_poll_changed
 CONFTEST: drm_driver_has_date
 CONFTEST: drm_connector_helper_funcs_mode_valid_has_const_mode_arg
 CONFTEST: drm_fb_create_takes_format_info
 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: cmd_uphy_display_port_init
 CONFTEST: cmd_uphy_display_port_off
 CONFTEST: memory_failure_mf_sw_simulated_defined
 CONFTEST: device_vm_build
 CONFTEST: pcie_reset_flr
 CONFTEST: module_import_ns_takes_constant
 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-dsi-parse-panel-props.o
  CC [M]  nvidia/nv-platform.o
  CC [M]  nvidia/nv-bpmp.o
  CC [M]  nvidia/nv-gpio.o
  CC [M]  nvidia/nv-backlight.o
  CC [M]  nvidia/nv-imp.o
  CC [M]  nvidia/nv-platform-pm.o
  CC [M]  nvidia/nv-ipc-soc.o
  CC [M]  nvidia/nv.o
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-dsi-parse-panel-props.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC [M]  nvidia/nv-pci.o
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-backlight.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-gpio.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-platform.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-bpmp.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-imp.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-platform-pm.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-ipc-soc.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-pci.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.17.11-061711-generic/Makefile:2018: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.11-061711-generic/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/nvidia/580.105.08/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.17.11-061711-generic'
make: *** [Makefile:138: modules] Error 2

# exit code: 2
# elapsed time: 00:00:27

@ptr1337
Copy link

ptr1337 commented Dec 7, 2025

@ptr1337

I tried (not from this repo) but just instaling nvidia-580-open (580.105.08) from nvidia repo on Ubuntu main (6.17.11-061711-generic) kernel and it failed dkms compile for ubuntu 24.04. I assme nvidia-dkms-open-580.105.08 is same as the tagged code from this repo:

Considering Nvidia considers Ubuntu 24.04 official supported distro, this is frustating. I have no clue why there appears to be gcc ompiler compat errors as it if the open kernel on latest kernels expect something version of gcc not available on 24.04

server:~$ cat /var/lib/dkms/nvidia/580.105.08/build/make.log
DKMS (dkms-3.3.0) make.log for nvidia/580.105.08 for kernel 6.17.11-061711-generic (x86_64)
2025年 12月 07日 星期日
 CONFTEST: dma_buf_ops_has_map
 CONFTEST: dma_buf_ops_has_map_atomic
 CONFTEST: dma_buf_attachment_has_peer2peer
 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: assign_str
 CONFTEST: ioasid_get
 CONFTEST: mm_pasid_drop
 CONFTEST: iommu_sva_bind_device_has_drvdata_arg
 CONFTEST: iommu_is_dma_domain
 CONFTEST: for_each_sgtable_dma_page
 CONFTEST: folio_test_swapcache
 CONFTEST: page_pgmap
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: acpi_video_register_backlight
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: pin_user_pages_remote
 CONFTEST: pin_user_pages
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_connector_has_vrr_capable_property
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: drm_aperture_remove_conflicting_framebuffers
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers
 CONFTEST: aperture_remove_conflicting_devices
 CONFTEST: aperture_remove_conflicting_pci_devices
 CONFTEST: drm_fbdev_generic_setup
 CONFTEST: drm_fbdev_ttm_setup
 CONFTEST: drm_client_setup
 CONFTEST: drm_connector_attach_hdr_output_metadata_property
 CONFTEST: drm_plane_create_color_properties
 CONFTEST: drm_atomic_helper_legacy_gamma_set
 CONFTEST: vmf_insert_mixed
 CONFTEST: drm_gem_prime_mmap
 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_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_expo
 CONFTEST: memory_failure_queue_has_trapno_arg
 CONFTEST: foll_longterm_present
 CONFTEST: bus_type_has_iommu_ops
 CONFTEST: of_property_for_each_u32_has_internal_args
 CONFTEST: platform_driver_struct_remove_returns_void
 CONFTEST: class_create_has_no_owner_arg
 CONFTEST: class_devnode_has_const_arg
 CONFTEST: devfreq_has_freq_table
 CONFTEST: has_enum_pidtype_tgid
 CONFTEST: mmu_notifier_ops_arch_invalidate_secondary_tlbs
 CONFTEST: migrate_vma_added_flags
 CONFTEST: migrate_device_range
 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: sg_dma_page_iter
 CONFTEST: struct_page_has_zone_device_data
 CONFTEST: memory_device_coherent_present
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: vm_ops_fault_removed_vma_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_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_file_get_master
 CONFTEST: drm_modeset_lock_all_end
 CONFTEST: drm_driver_has_dumb_destroy
 CONFTEST: fence_ops_use_64bit_seqno
 CONFTEST: drm_aperture_remove_conflicting_framebuffers_has_driver_arg
 CONFTEST: drm_aperture_remove_conflicting_framebuffers_has_no_primary_arg
 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_color_ctm_3x4_present
 CONFTEST: drm_format_info_has_is_yuv
 CONFTEST: drm_driver_has_gem_prime_mmap
 CONFTEST: drm_output_poll_changed
 CONFTEST: drm_driver_has_date
 CONFTEST: drm_connector_helper_funcs_mode_valid_has_const_mode_arg
 CONFTEST: drm_fb_create_takes_format_info
 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: cmd_uphy_display_port_init
 CONFTEST: cmd_uphy_display_port_off
 CONFTEST: memory_failure_mf_sw_simulated_defined
 CONFTEST: device_vm_build
 CONFTEST: pcie_reset_flr
 CONFTEST: module_import_ns_takes_constant
 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-dsi-parse-panel-props.o
  CC [M]  nvidia/nv-platform.o
  CC [M]  nvidia/nv-bpmp.o
  CC [M]  nvidia/nv-gpio.o
  CC [M]  nvidia/nv-backlight.o
  CC [M]  nvidia/nv-imp.o
  CC [M]  nvidia/nv-platform-pm.o
  CC [M]  nvidia/nv-ipc-soc.o
  CC [M]  nvidia/nv.o
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-dsi-parse-panel-props.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC [M]  nvidia/nv-pci.o
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-backlight.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-gpio.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-platform.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-bpmp.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-imp.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-platform-pm.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-ipc-soc.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv.o] Error 1
cc: error: unrecognized command-line option ‘-fmin-function-alignment=16’; did you mean ‘-flimit-function-alignment’?
make[4]: *** [/usr/src/linux-headers-6.17.11-061711-generic/scripts/Makefile.build:287: nvidia/nv-pci.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.17.11-061711-generic/Makefile:2018: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.11-061711-generic/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/nvidia/580.105.08/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.17.11-061711-generic'
make: *** [Makefile:138: modules] Error 2

# exit code: 2
# elapsed time: 00:00:27

Oh, thats sad. Yes, if need to be utilized NVIDIA's official repo then this is a blocker.

@Qubitium
Copy link

Qubitium commented Dec 7, 2025

@ptr1337 But the good new is cuda driver 590-open is comptbile with 6.17 and 6.18. dkms compile worked. I just think their 580 released dkms config files were never updated to auto check/correct for the 6.17 supported kernels in their (nvidia's offical deb repos). It may work if compiled from src in this repo but most users would rather skip the hassle and get it from nvidia's deb repo if possible.

Building initial module nvidia/590.44.01 for 6.17.11-061711-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module(s)................ done.
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-modeset.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-drm.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-uvm.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-peermem.ko
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-modeset.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-drm.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-uvm.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-peermem.ko.zst
Running depmod... done.

Building initial module nvidia/590.44.01 for 6.18.0-061800-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

@ptr1337
Copy link

ptr1337 commented Dec 7, 2025

@ptr1337 But the good new is is cuda driver 590-open is comptbile with 6.17 and 6.18. dkms compile worked. I just think their 580 released dkms config files were never updated to auto check/correct for the 6.17 supported kernels in their (nvidia's offical deb repos). It make work here from src but installing from src is just so much pain.

Building initial module nvidia/590.44.01 for 6.17.11-061711-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module(s)................ done.
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-modeset.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-drm.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-uvm.ko
Signing module /var/lib/dkms/nvidia/590.44.01/build/nvidia-peermem.ko
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-modeset.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-drm.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-uvm.ko.zst
Installing /lib/modules/6.17.11-061711-generic/updates/dkms/nvidia-peermem.ko.zst
Running depmod... done.

Building initial module nvidia/590.44.01 for 6.18.0-061800-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

I think generally on ubuntu you could also use their included installer in the .run file :) But I do not know how good it is and the files are not tracked by the package manager.

Also, take a look here:
https://forums.developer.nvidia.com/t/ubuntu-packaging-changes-for-590-branch-and-version-locking-for-debian-ubuntu/352043

@Qubitium
Copy link

Qubitium commented Dec 7, 2025

I think generally on ubuntu you could also use their included installer in the .run file :) But I do not know how good it is and the files are not tracked by the package manager.

I am not going to touch binary cli installers unless I am totally out of options. =)

Also, take a look here: https://forums.developer.nvidia.com/t/ubuntu-packaging-changes-for-590-branch-and-version-locking-for-debian-ubuntu/352043

Thanks. It really helped. Btw, nvidia-utils no longer exists for 590 driver and...they forgot to mention this. lol. It's now part of libnvidia-compute. People going to be flodding support looking for non-existing nvidia-utils packages.

@scaronni
Copy link
Member

scaronni commented Dec 9, 2025

Thanks. It really helped. Btw, nvidia-utils no longer exists for 590 driver and...they forgot to mention this. lol. It's now part of libnvidia-compute. People going to be flodding support looking for non-existing nvidia-utils packages.

nvidia-utils-580, nvidia-utils-570, nvidia-compute-utils-580 and nvidia-compute-utils-570 have been already transitional packages for many releases, due to the 590 rename there was no point in creating new but already transitional packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants