Without this patch, the symptoms described in 6.12: drm_open_helper RIP · Issue #712 · NVIDIA/open-gpu-kernel-modules · GitHub will be
observed. This is needed as a follow-up to commit 641bb4394f40 (“fs:
move FMODE_UNSIGNED_OFFSET to fop_flags”) in the Linux kernel. No other
patching should be required for 565.57.01 compatibility with Linux
kernel 6.12.
Did not work for me. And please, NVidia fix finally your garbage clean up! You must DELETE all left overs of your driver, not to flood system with dkms, /lib/modules/ etc garbage you left behind yourself.
Please roll out newer patched version of driver for 6.12.
Thanks in advance
Ok I got to know why it doesn’t work. My GPU uses closed driver, not so new to use open driver and patch NVidia author posted here is for open driver. NVidia, please patch for closed version of driver precisely 565 beta. Thanks in advance
I want at least 560 or better 565 patched. Because seriously 550 is much worse, it has broken Wayland. You know I was very impressed that NVidia started fixing Wayland support fast this year. According to previous experience with Optimus, expected them to do anything by the end of this year only. So that was huge thumbs up.
And now not willing to make a tiny patch for people with closed driver is really disappointing. It shouldn’t take NVidia more then maybe 2 hours in most worst case and would make many users happy. They released updated 550 with kernel 6.12 supports, which means they already know how and what to patch there for closed driver. This beta is much more stable and functional then “stable” 550 series.
That’s not that much I kindly ask from NVidia. And I am loyal customer for over 15 years, even counting Optimus fiasco back then.
@phoenix91140 Nvidia clearly stated already that they won’t update 560 drivers anymore. Adding new kernel support to some drivers take longer these days. 565 is the current beta driver and also doesn’t ship all needed patches for supporting 6.12. Arch already updated to 565 series and tries to apply needed patches provided by Nvidia to their releases. Similar things are done at Manjaro. However, users report issues with the drivers and 6.12 kernel, even they are patched. Having updated drivers for current and legacy series would be good for distributions who want to ship the 6.12 on their installation medias.
@phoenix91140 it is simple. you take the open patches and patch them to the nvidia instead of the nvidia-open folder. The part for the kernel needs to have the public source, else it wouldn’t compile. Code might slightly differ for some functions.
[NVIDIA GeForce RTX 4070 Laptop GPU / 565.57.01]
This patch and the patch published at NixOS (Fix nvidia driver for 6.12 · Issue #353636 · NixOS/nixpkgs · GitHub) do not resolve the issue; there is still no display on the laptop’s screen. The HDMI port provides a display, and USB-C/HDMI also works, but the primary eDP display remains off.
The boot log shows the same error:
dec 02 19:51:14 build-pc kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
dec 02 19:51:14 build-pc kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
dec 02 19:51:14 build-pc kernel: ------------[ cut here ]------------
dec 02 19:51:14 build-pc kernel: WARNING: CPU: 6 PID: 684 at drivers/gpu/drm/drm_file.c:312 drm_open_helper+0x110/0x130 [drm]
dec 02 19:51:14 build-pc kernel: Modules linked in: nvidia_drm(PO) snd_ctl_led snd_soc_skl_hda_dsp snd_soc_intel_sof_board_helpers snd_sof_probes snd_soc_intel_hda_dsp_common snd_soc_dmic spi_nor mtd mei_hdc>
dec 02 19:51:14 build-pc kernel: soundwire_generic_allocation snd_soc_acpi snd_soc_avs snd_soc_hda_codec snd_hda_ext_core snd_soc_core snd_hda_codec_hdmi snd_compress ac97_bus snd_pcm_dmaengine uvcvideo uvc>
dec 02 19:51:14 build-pc kernel: usb_storage xe drm_gpuvm drm_exec gpu_sched drm_suballoc_helper drm_ttm_helper nvidia(PO) i915 cec rc_core drm_buddy i2c_algo_bit drm_display_helper hid_multitouch ttm 8250_>
dec 02 19:51:14 build-pc kernel: CPU: 6 UID: 0 PID: 684 Comm: plymouthd Tainted: P O 6.12.1-power-3bP #1
dec 02 19:51:14 build-pc kernel: Tainted: [P]=PROPRIETARY_MODULE, [O]=OOT_MODULE
dec 02 19:51:14 build-pc kernel: Hardware name: Acer Predator PHN18-71/IPACE_RTX, BIOS V1.11 04/23/2024
dec 02 19:51:14 build-pc kernel: RIP: 0010:drm_open_helper+0x110/0x130 [drm]
dec 02 19:51:14 build-pc kernel: Code: 83 c4 08 5b 5d 41 5c c3 cc cc cc cc 48 89 df e8 96 9f fe ff 85 c0 74 9a 48 89 df 89 44 24 04 e8 76 fa ff ff 8b 44 24 04 eb d5 <0f> 0b b8 ea ff ff ff eb cc b8 ea ff ff f>
dec 02 19:51:14 build-pc kernel: RSP: 0018:ffffa8bb012ef860 EFLAGS: 00010246
dec 02 19:51:14 build-pc kernel: RAX: ffffffffc64862a0 RBX: ffff8be39baf0a48 RCX: 0000000000000000
dec 02 19:51:14 build-pc kernel: RDX: ffff8be3a3d20000 RSI: ffff8be39baf0a48 RDI: ffff8be3bd47f740
dec 02 19:51:14 build-pc kernel: RBP: ffff8be3bd47f740 R08: 0000000000000006 R09: ffff8be3802147d0
dec 02 19:51:14 build-pc kernel: R10: 00000000000000e2 R11: 0000000000000002 R12: ffff8be3abf43000
dec 02 19:51:14 build-pc kernel: R13: ffffffffc64862a0 R14: 00000000ffffffed R15: ffffa8bb012efb4c
dec 02 19:51:14 build-pc kernel: FS: 00007ff90fc22740(0000) GS:ffff8beaf7180000(0000) knlGS:0000000000000000
dec 02 19:51:14 build-pc kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
dec 02 19:51:14 build-pc kernel: CR2: 00000000017b3938 CR3: 00000001020d2000 CR4: 0000000000752ef0
dec 02 19:51:14 build-pc kernel: PKRU: 55555554
dec 02 19:51:14 build-pc kernel: Call Trace:
dec 02 19:51:14 build-pc kernel: <TASK>
dec 02 19:51:14 build-pc kernel: ? drm_open_helper+0x110/0x130 [drm]
dec 02 19:51:14 build-pc kernel: ? __warn.cold+0x93/0xf7
dec 02 19:51:14 build-pc kernel: ? drm_open_helper+0x110/0x130 [drm]
dec 02 19:51:14 build-pc kernel: ? report_bug+0xfb/0x140
dec 02 19:51:14 build-pc kernel: ? handle_bug+0x58/0x90
dec 02 19:51:14 build-pc kernel: ? exc_invalid_op+0x13/0x60
dec 02 19:51:14 build-pc kernel: ? asm_exc_invalid_op+0x16/0x20
dec 02 19:51:14 build-pc kernel: ? drm_open_helper+0x110/0x130 [drm]
dec 02 19:51:14 build-pc kernel: drm_open+0x6f/0x100 [drm]
dec 02 19:51:14 build-pc kernel: drm_stub_open+0x97/0xd0 [drm]
dec 02 19:51:14 build-pc kernel: chrdev_open+0xac/0x210
dec 02 19:51:14 build-pc kernel: ? __pfx_chrdev_open+0x10/0x10
dec 02 19:51:14 build-pc kernel: do_dentry_open+0x14c/0x440
dec 02 19:51:14 build-pc kernel: vfs_open+0x2a/0xe0
dec 02 19:51:14 build-pc kernel: path_openat+0x82d/0x12c0
dec 02 19:51:14 build-pc kernel: ? chacha_block_generic+0x74/0xd0
dec 02 19:51:14 build-pc kernel: do_filp_open+0xaf/0x150
dec 02 19:51:14 build-pc kernel: do_sys_openat2+0x94/0xc0
dec 02 19:51:14 build-pc kernel: __x64_sys_openat+0x51/0xa0
dec 02 19:51:14 build-pc kernel: do_syscall_64+0x7e/0x160
dec 02 19:51:14 build-pc kernel: ? do_syscall_64+0x8a/0x160
dec 02 19:51:14 build-pc kernel: ? syscall_exit_to_user_mode+0x49/0x200
dec 02 19:51:14 build-pc kernel: ? do_syscall_64+0x8a/0x160
dec 02 19:51:14 build-pc kernel: ? __sys_recvmsg+0x52/0xa0
dec 02 19:51:14 build-pc kernel: ? syscall_exit_to_user_mode+0x49/0x200
dec 02 19:51:14 build-pc kernel: ? do_syscall_64+0x8a/0x160
dec 02 19:51:14 build-pc kernel: ? task_tick_fair+0x3c/0x420
dec 02 19:51:14 build-pc kernel: ? timekeeping_update+0xe0/0x130
dec 02 19:51:14 build-pc kernel: ? sched_use_asym_prio+0x66/0x90
dec 02 19:51:14 build-pc kernel: ? sched_balance_trigger+0x139/0x370
dec 02 19:51:14 build-pc kernel: ? __smp_call_single_queue+0xa7/0x110
dec 02 19:51:14 build-pc kernel: ? generic_exec_single+0x33/0x130
dec 02 19:51:14 build-pc kernel: ? smp_call_function_single_async+0x1e/0x40
dec 02 19:51:14 build-pc kernel: ? update_process_times+0x8c/0xa0
dec 02 19:51:14 build-pc kernel: ? timerqueue_add+0xa3/0xc0
dec 02 19:51:14 build-pc kernel: ? enqueue_hrtimer+0x35/0x90
dec 02 19:51:14 build-pc kernel: ? __hrtimer_run_queues+0x161/0x2a0
dec 02 19:51:14 build-pc kernel: ? ktime_get+0x34/0xd0
dec 02 19:51:14 build-pc kernel: ? lapic_next_deadline+0x28/0x30
dec 02 19:51:14 build-pc kernel: ? clockevents_program_event+0x85/0xf0
dec 02 19:51:14 build-pc kernel: ? hrtimer_interrupt+0x11f/0x210
dec 02 19:51:14 build-pc kernel: ? __sysvec_apic_timer_interrupt+0x4e/0xf0
dec 02 19:51:14 build-pc kernel: ? __irq_exit_rcu+0x37/0xa0
dec 02 19:51:14 build-pc kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
dec 02 19:51:14 build-pc kernel: RIP: 0033:0x7ff90fe58a90
dec 02 19:51:14 build-pc kernel: Code: 48 89 44 24 20 75 92 44 89 54 24 0c e8 c9 be f8 ff 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 2>
dec 02 19:51:14 build-pc kernel: RSP: 002b:00007ffcd74a3490 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
dec 02 19:51:14 build-pc kernel: RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007ff90fe58a90
dec 02 19:51:14 build-pc kernel: RDX: 0000000000000002 RSI: 000000002c3383e0 RDI: 00000000ffffff9c
dec 02 19:51:14 build-pc kernel: RBP: 000000002c3383e0 R08: 0000000000000000 R09: 000000002c237010
dec 02 19:51:14 build-pc kernel: R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000000b
dec 02 19:51:14 build-pc kernel: R13: 00007ff90ff647e8 R14: 000000000000000b R15: 000000002c2ba080
dec 02 19:51:14 build-pc kernel: </TASK>
dec 02 19:51:14 build-pc kernel: ---[ end trace 0000000000000000 ]---