Problems when unbind Nvidia GPU from nouveau driver

I have two video outputs, one in motherboard and one in GPU.
When i unbind GPU from nouveau driver, the GPU is detached from the video output, and display CPU freeze.

Output of journalctl

déc. 29 18:24:42 fedora kernel: ------------[ cut here ]------------
déc. 29 18:24:42 fedora kernel: WARNING: CPU: 1 PID: 3230 at drivers/gpu/drm/drm_mode_config.c:538 drm_mode_config_cleanup+0x291/0x2b0 [drm]
déc. 29 18:24:42 fedora kernel: Modules linked in: uinput snd_seq_dummy snd_hrtimer nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip_set nf_tables nfnetlink qrtr ns snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof intel_rapl_msr intel_rapl_common soundwire_bus sunrpc snd_soc_skl intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_soc_hdac_hda snd_hda_ext_core coretemp snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_realtek snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_generic kvm_intel snd_soc_core iTCO_wdt intel_pmc_bxt ee1004 iTCO_vendor_support mei_hdcp snd_compress vfat ledtrig_audio ac97_bus snd_hda_codec_hdmi kvm snd_pcm_dmaengine fat snd_usb_audio snd_hda_intel snd_intel_dspcfg
déc. 29 18:24:42 fedora kernel:  snd_intel_sdw_acpi snd_hda_codec snd_usbmidi_lib rapl snd_rawmidi intel_cstate intel_uncore snd_hda_core mc snd_hwdep snd_seq snd_seq_device i2c_i801 pcspkr gigabyte_wmi intel_wmi_thunderbolt wmi_bmof i2c_smbus uas snd_pcm usb_storage mei_me snd_timer joydev snd mei soundcore intel_pch_thermal acpi_pad acpi_tad zram ip_tables dm_crypt trusted asn1_encoder i915 nouveau drm_ttm_helper mxm_wmi i2c_algo_bit ttm drm_kms_helper crct10dif_pclmul cec crc32_pclmul crc32c_intel nvme drm ghash_clmulni_intel nvme_core r8169 wmi video pinctrl_cannonlake vfio_pci vfio_pci_core irqbypass vfio_virqfd vfio_iommu_type1 vfio ipmi_devintf ipmi_msghandler fuse
déc. 29 18:24:42 fedora kernel: CPU: 1 PID: 3230 Comm: bash Not tainted 5.15.11-200.fc35.x86_64 #1
déc. 29 18:24:42 fedora kernel: Hardware name: Gigabyte Technology Co., Ltd. Z490 UD/Z490 UD, BIOS F3 05/19/2020
déc. 29 18:24:42 fedora kernel: RIP: 0010:drm_mode_config_cleanup+0x291/0x2b0 [drm]
déc. 29 18:24:42 fedora kernel: Code: 48 8b 70 48 48 c7 c7 1f d5 62 c0 e8 99 f9 ff ff 48 89 e7 e8 31 8f ff ff 48 85 c0 75 e3 48 89 e7 e8 d4 8e ff ff e9 0e fe ff ff <0f> 0b e9 02 ff ff ff 0f 0b 48 83 c4 30 5b 5d 41 5c 41 5d c3 66 66
déc. 29 18:24:42 fedora kernel: RSP: 0018:ffffa72d425bfca8 EFLAGS: 00010293
déc. 29 18:24:42 fedora kernel: RAX: ffff8ddd03c7e608 RBX: ffff8ddc8e9d2380 RCX: 000000000020001b
déc. 29 18:24:42 fedora kernel: RDX: 000000000020001c RSI: ffff8ddc9782be00 RDI: ffff8ddc8e9d2380
déc. 29 18:24:42 fedora kernel: RBP: ffff8ddc8e9d2000 R08: ffff8ddc9782b800 R09: 000000000020001b
déc. 29 18:24:42 fedora kernel: R10: 0000000040000000 R11: ffff8ddc8c0ea6c8 R12: ffff8ddc8e9d23a8
déc. 29 18:24:42 fedora kernel: R13: ffff8ddc8e9d2240 R14: dead000000000100 R15: ffff8ddcfc15cb60
déc. 29 18:24:42 fedora kernel: FS:  00007f664d8f7740(0000) GS:ffff8de030440000(0000) knlGS:0000000000000000
déc. 29 18:24:42 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
déc. 29 18:24:42 fedora kernel: CR2: 00007f664d8f80b2 CR3: 000000015b8d6005 CR4: 00000000007706e0
déc. 29 18:24:42 fedora kernel: PKRU: 55555554
déc. 29 18:24:42 fedora kernel: Call Trace:
déc. 29 18:24:42 fedora kernel:  <TASK>
déc. 29 18:24:42 fedora kernel:  ? down_write+0xe/0x40
déc. 29 18:24:42 fedora kernel:  ? blocking_notifier_chain_unregister+0x54/0xb0
déc. 29 18:24:42 fedora kernel:  nouveau_display_destroy+0x31/0x70 [nouveau]
déc. 29 18:24:42 fedora kernel:  nouveau_drm_device_fini+0x7e/0x1f0 [nouveau]
déc. 29 18:24:42 fedora kernel:  ? __cond_resched+0x16/0x40
déc. 29 18:24:42 fedora kernel:  nouveau_drm_remove+0x59/0x80 [nouveau]
déc. 29 18:24:42 fedora kernel:  pci_device_remove+0x38/0xa0
déc. 29 18:24:42 fedora kernel:  __device_release_driver+0x177/0x240
déc. 29 18:24:42 fedora kernel:  device_driver_detach+0x3c/0xa0
déc. 29 18:24:42 fedora kernel:  unbind_store+0x113/0x130
déc. 29 18:24:42 fedora kernel:  kernfs_fop_write_iter+0x119/0x1b0
déc. 29 18:24:42 fedora kernel:  new_sync_write+0x108/0x180
déc. 29 18:24:42 fedora kernel:  vfs_write+0x1ce/0x260
déc. 29 18:24:42 fedora kernel:  ksys_write+0x4f/0xc0
déc. 29 18:24:42 fedora kernel:  do_syscall_64+0x38/0x90
déc. 29 18:24:42 fedora kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
déc. 29 18:24:42 fedora kernel: RIP: 0033:0x7f664d9fb7f7
déc. 29 18:24:42 fedora kernel: Code: 0f 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
déc. 29 18:24:42 fedora kernel: RSP: 002b:00007ffd86ac3de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
déc. 29 18:24:42 fedora kernel: RAX: ffffffffffffffda RBX: 000000000000000d RCX: 00007f664d9fb7f7
déc. 29 18:24:42 fedora kernel: RDX: 000000000000000d RSI: 000055f4dc2ce440 RDI: 0000000000000001
déc. 29 18:24:42 fedora kernel: RBP: 000055f4dc2ce440 R08: 0000000000000000 R09: 00007f664dab04e0
déc. 29 18:24:42 fedora kernel: R10: 00007f664dab03e0 R11: 0000000000000246 R12: 000000000000000d
déc. 29 18:24:42 fedora kernel: R13: 00007f664daf55a0 R14: 000000000000000d R15: 00007f664daf57a0
déc. 29 18:24:42 fedora kernel:  </TASK>
déc. 29 18:24:42 fedora kernel: ---[ end trace 90751f3cf45968c5 ]---
déc. 29 18:24:42 fedora kernel: [leaked fb] framebuffer[118]:
déc. 29 18:24:42 fedora kernel: [leaked fb]         allocated by = gnome-shell
déc. 29 18:24:42 fedora kernel: [leaked fb]         refcount=1
déc. 29 18:24:42 fedora kernel: [leaked fb]         format=XR24 little-endian (0x34325258)
déc. 29 18:24:42 fedora kernel: [leaked fb]         modifier=0x0
déc. 29 18:24:42 fedora kernel: [leaked fb]         size=1920x1080
déc. 29 18:24:42 fedora kernel: [leaked fb]         layers:
déc. 29 18:24:42 fedora kernel: [leaked fb]                 size[0]=1920x1080
déc. 29 18:24:42 fedora kernel: [leaked fb]                 pitch[0]=7680
déc. 29 18:24:42 fedora kernel: [leaked fb]                 offset[0]=0
déc. 29 18:24:42 fedora kernel: [leaked fb]                 obj[0]:
déc. 29 18:24:42 fedora kernel: [leaked fb]                         name=0
déc. 29 18:24:42 fedora kernel: [leaked fb]                         refcount=1
déc. 29 18:24:42 fedora kernel: [leaked fb]                         start=00101014
déc. 29 18:24:42 fedora kernel: [leaked fb]                         size=8388608
déc. 29 18:24:42 fedora kernel: [leaked fb]                         imported=yes
déc. 29 18:24:42 fedora gnome-shell[2204]: drmModeRmFB: Aucun périphérique de ce type
déc. 29 18:24:42 fedora gnome-shell[2204]: Could not release device '/dev/dri/card1' (226,1): GDBus.Error:org.freedesktop.login1.DeviceNotTaken: Device not taken
déc. 29 18:24:42 fedora kernel: ------------[ cut here ]------------
déc. 29 18:24:42 fedora kernel: refcount_t: underflow; use-after-free.
déc. 29 18:24:42 fedora kernel: WARNING: CPU: 7 PID: 2204 at lib/refcount.c:28 refcount_warn_saturate+0xa6/0xf0
déc. 29 18:24:42 fedora kernel: Modules linked in: uinput snd_seq_dummy snd_hrtimer nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip_set nf_tables nfnetlink qrtr ns snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof intel_rapl_msr intel_rapl_common soundwire_bus sunrpc snd_soc_skl intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_soc_hdac_hda snd_hda_ext_core coretemp snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_realtek snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_generic kvm_intel snd_soc_core iTCO_wdt intel_pmc_bxt ee1004 iTCO_vendor_support mei_hdcp snd_compress vfat ledtrig_audio ac97_bus snd_hda_codec_hdmi kvm snd_pcm_dmaengine fat snd_usb_audio snd_hda_intel snd_intel_dspcfg
déc. 29 18:24:42 fedora kernel:  snd_intel_sdw_acpi snd_hda_codec snd_usbmidi_lib rapl snd_rawmidi intel_cstate intel_uncore snd_hda_core mc snd_hwdep snd_seq snd_seq_device i2c_i801 pcspkr gigabyte_wmi intel_wmi_thunderbolt wmi_bmof i2c_smbus uas snd_pcm usb_storage mei_me snd_timer joydev snd mei soundcore intel_pch_thermal acpi_pad acpi_tad zram ip_tables dm_crypt trusted asn1_encoder i915 nouveau drm_ttm_helper mxm_wmi i2c_algo_bit ttm drm_kms_helper crct10dif_pclmul cec crc32_pclmul crc32c_intel nvme drm ghash_clmulni_intel nvme_core r8169 wmi video pinctrl_cannonlake vfio_pci vfio_pci_core irqbypass vfio_virqfd vfio_iommu_type1 vfio ipmi_devintf ipmi_msghandler fuse
déc. 29 18:24:42 fedora kernel: CPU: 7 PID: 2204 Comm: gnome-shell Tainted: G        W         5.15.11-200.fc35.x86_64 #1
déc. 29 18:24:42 fedora kernel: Hardware name: Gigabyte Technology Co., Ltd. Z490 UD/Z490 UD, BIOS F3 05/19/2020
déc. 29 18:24:42 fedora kernel: RIP: 0010:refcount_warn_saturate+0xa6/0xf0
déc. 29 18:24:42 fedora kernel: Code: 05 c0 5c ad 01 01 e8 b9 80 5a 00 0f 0b c3 80 3d ae 5c ad 01 00 75 95 48 c7 c7 b8 e5 63 89 c6 05 9e 5c ad 01 01 e8 9a 80 5a 00 <0f> 0b c3 80 3d 8d 5c ad 01 00 0f 85 72 ff ff ff 48 c7 c7 10 e6 63
déc. 29 18:24:42 fedora kernel: RSP: 0018:ffffa72d4315fdc0 EFLAGS: 00010282
déc. 29 18:24:42 fedora kernel: RAX: 0000000000000026 RBX: 0000000000000000 RCX: 0000000000000027
déc. 29 18:24:42 fedora kernel: RDX: ffff8de0305e0a08 RSI: 0000000000000001 RDI: ffff8de0305e0a00
déc. 29 18:24:42 fedora kernel: RBP: ffff8ddd03c7e600 R08: 0000000000000000 R09: ffffa72d4315fbf8
déc. 29 18:24:42 fedora kernel: R10: ffffa72d4315fbf0 R11: ffffffff89f46028 R12: 00000000ffffffff
déc. 29 18:24:42 fedora kernel: R13: ffff8ddcd81e8e90 R14: ffffa72d4315fe08 R15: dead000000000100
déc. 29 18:24:42 fedora kernel: FS:  00007fb417962d80(0000) GS:ffff8de0305c0000(0000) knlGS:0000000000000000
déc. 29 18:24:42 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
déc. 29 18:24:42 fedora kernel: CR2: 000056477d6c1030 CR3: 0000000106fb6005 CR4: 00000000007706e0
déc. 29 18:24:42 fedora kernel: PKRU: 55555554
déc. 29 18:24:42 fedora kernel: Call Trace:
déc. 29 18:24:42 fedora kernel:  <TASK>
déc. 29 18:24:42 fedora kernel:  drm_gem_fb_destroy+0x60/0x70 [drm_kms_helper]
déc. 29 18:24:42 fedora kernel:  drm_fb_release+0xf8/0x160 [drm]
déc. 29 18:24:42 fedora kernel:  ? eventfd_read+0xd8/0x2b0
déc. 29 18:24:42 fedora kernel:  drm_file_free.part.0+0x1a1/0x250 [drm]
déc. 29 18:24:42 fedora kernel:  drm_release+0x65/0x110 [drm]
déc. 29 18:24:42 fedora kernel:  __fput+0x91/0x250
déc. 29 18:24:42 fedora kernel:  task_work_run+0x62/0xa0
déc. 29 18:24:42 fedora kernel:  exit_to_user_mode_prepare+0x22c/0x240
déc. 29 18:24:42 fedora kernel:  syscall_exit_to_user_mode+0x18/0x40
déc. 29 18:24:42 fedora kernel:  do_syscall_64+0x48/0x90
déc. 29 18:24:42 fedora kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
déc. 29 18:24:42 fedora kernel: RIP: 0033:0x7fb41de0fefb
déc. 29 18:24:42 fedora kernel: Code: 03 00 00 00 0f 05 48 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 c3 81 f8 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 11 82 f8 ff 8b 44
déc. 29 18:24:42 fedora kernel: RSP: 002b:00007ffd95ccc970 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
déc. 29 18:24:42 fedora kernel: RAX: 0000000000000000 RBX: 000056477d5f9070 RCX: 00007fb41de0fefb
déc. 29 18:24:42 fedora kernel: RDX: 0000000000000000 RSI: 000056477d52e010 RDI: 0000000000000009
déc. 29 18:24:42 fedora kernel: RBP: 00007ffd95ccc9d0 R08: 0000000000000000 R09: 00007fb41dec44e0
déc. 29 18:24:42 fedora kernel: R10: 00007fb41dec43e0 R11: 0000000000000293 R12: 000056477d5f9090
déc. 29 18:24:42 fedora kernel: R13: 0000000000000000 R14: 000056477d5fc8b0 R15: 000056477d5fe9c0
déc. 29 18:24:42 fedora kernel:  </TASK>
déc. 29 18:24:42 fedora kernel: ---[ end trace 90751f3cf45968c6 ]---
déc. 29 18:24:42 fedora kernel: list_del corruption, ffff8ddd03c7e608->next is LIST_POISON1 (dead000000000100)
déc. 29 18:24:42 fedora kernel: ------------[ cut here ]------------
déc. 29 18:24:42 fedora kernel: kernel BUG at lib/list_debug.c:45!
déc. 29 18:24:42 fedora kernel: invalid opcode: 0000 [#1] SMP NOPTI
déc. 29 18:24:42 fedora kernel: CPU: 7 PID: 2204 Comm: gnome-shell Tainted: G        W         5.15.11-200.fc35.x86_64 #1
déc. 29 18:24:42 fedora kernel: Hardware name: Gigabyte Technology Co., Ltd. Z490 UD/Z490 UD, BIOS F3 05/19/2020
déc. 29 18:24:42 fedora kernel: RIP: 0010:__list_del_entry_valid.cold+0xf/0x47
déc. 29 18:24:42 fedora kernel: Code: fe ff 0f 0b 48 89 d1 4c 89 c6 4c 89 ca 48 c7 c7 28 f5 63 89 e8 4b 1f fe ff 0f 0b 48 89 fe 48 c7 c7 b8 f5 63 89 e8 3a 1f fe ff <0f> 0b 48 c7 c7 68 f6 63 89 e8 2c 1f fe ff 0f 0b 48 89 f2 48 89 fe
déc. 29 18:24:42 fedora kernel: RSP: 0018:ffffa72d4315fda0 EFLAGS: 00010282
déc. 29 18:24:42 fedora kernel: RAX: 000000000000004e RBX: ffff8ddd03c7e600 RCX: 0000000000000027
déc. 29 18:24:42 fedora kernel: RDX: ffff8de0305e0a08 RSI: 0000000000000001 RDI: ffff8de0305e0a00
déc. 29 18:24:42 fedora kernel: RBP: ffff8ddc8e9d2000 R08: 0000000000000000 R09: ffffa72d4315fbe0
déc. 29 18:24:42 fedora kernel: R10: ffffa72d4315fbd8 R11: ffffffff89f46028 R12: ffff8ddc8e9d2218
déc. 29 18:24:42 fedora kernel: R13: ffff8ddcd81e8e90 R14: ffffa72d4315fe08 R15: dead000000000100
déc. 29 18:24:42 fedora kernel: FS:  00007fb417962d80(0000) GS:ffff8de0305c0000(0000) knlGS:0000000000000000
déc. 29 18:24:42 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
déc. 29 18:24:42 fedora kernel: CR2: 000056477d6c1030 CR3: 0000000106fb6005 CR4: 00000000007706e0
déc. 29 18:24:42 fedora kernel: PKRU: 55555554
déc. 29 18:24:42 fedora kernel: Call Trace:
déc. 29 18:24:42 fedora kernel:  <TASK>
déc. 29 18:24:42 fedora kernel:  drm_framebuffer_cleanup+0x27/0x70 [drm]
déc. 29 18:24:42 fedora kernel:  drm_gem_fb_destroy+0x43/0x70 [drm_kms_helper]
déc. 29 18:24:42 fedora kernel:  drm_fb_release+0xf8/0x160 [drm]
déc. 29 18:24:42 fedora kernel:  ? eventfd_read+0xd8/0x2b0
déc. 29 18:24:42 fedora kernel:  drm_file_free.part.0+0x1a1/0x250 [drm]
déc. 29 18:24:42 fedora kernel:  drm_release+0x65/0x110 [drm]
déc. 29 18:24:42 fedora kernel:  __fput+0x91/0x250
déc. 29 18:24:42 fedora kernel:  task_work_run+0x62/0xa0
déc. 29 18:24:42 fedora kernel:  exit_to_user_mode_prepare+0x22c/0x240
déc. 29 18:24:42 fedora kernel:  syscall_exit_to_user_mode+0x18/0x40
déc. 29 18:24:42 fedora kernel:  do_syscall_64+0x48/0x90
déc. 29 18:24:42 fedora kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
déc. 29 18:24:42 fedora kernel: RIP: 0033:0x7fb41de0fefb
déc. 29 18:24:42 fedora kernel: Code: 03 00 00 00 0f 05 48 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 c3 81 f8 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 11 82 f8 ff 8b 44
déc. 29 18:24:42 fedora kernel: RSP: 002b:00007ffd95ccc970 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
déc. 29 18:24:42 fedora kernel: RAX: 0000000000000000 RBX: 000056477d5f9070 RCX: 00007fb41de0fefb
déc. 29 18:24:42 fedora kernel: RDX: 0000000000000000 RSI: 000056477d52e010 RDI: 0000000000000009
déc. 29 18:24:42 fedora kernel: RBP: 00007ffd95ccc9d0 R08: 0000000000000000 R09: 00007fb41dec44e0
déc. 29 18:24:42 fedora kernel: R10: 00007fb41dec43e0 R11: 0000000000000293 R12: 000056477d5f9090
déc. 29 18:24:42 fedora kernel: R13: 0000000000000000 R14: 000056477d5fc8b0 R15: 000056477d5fe9c0
déc. 29 18:24:42 fedora kernel:  </TASK>
déc. 29 18:24:42 fedora kernel: Modules linked in: uinput snd_seq_dummy snd_hrtimer nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip_set nf_tables nfnetlink qrtr ns snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof intel_rapl_msr intel_rapl_common soundwire_bus sunrpc snd_soc_skl intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_soc_hdac_hda snd_hda_ext_core coretemp snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_realtek snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_generic kvm_intel snd_soc_core iTCO_wdt intel_pmc_bxt ee1004 iTCO_vendor_support mei_hdcp snd_compress vfat ledtrig_audio ac97_bus snd_hda_codec_hdmi kvm snd_pcm_dmaengine fat snd_usb_audio snd_hda_intel snd_intel_dspcfg
déc. 29 18:24:42 fedora kernel:  snd_intel_sdw_acpi snd_hda_codec snd_usbmidi_lib rapl snd_rawmidi intel_cstate intel_uncore snd_hda_core mc snd_hwdep snd_seq snd_seq_device i2c_i801 pcspkr gigabyte_wmi intel_wmi_thunderbolt wmi_bmof i2c_smbus uas snd_pcm usb_storage mei_me snd_timer joydev snd mei soundcore intel_pch_thermal acpi_pad acpi_tad zram ip_tables dm_crypt trusted asn1_encoder i915 nouveau drm_ttm_helper mxm_wmi i2c_algo_bit ttm drm_kms_helper crct10dif_pclmul cec crc32_pclmul crc32c_intel nvme drm ghash_clmulni_intel nvme_core r8169 wmi video pinctrl_cannonlake vfio_pci vfio_pci_core irqbypass vfio_virqfd vfio_iommu_type1 vfio ipmi_devintf ipmi_msghandler fuse
déc. 29 18:24:42 fedora kernel: ---[ end trace 90751f3cf45968c7 ]---
déc. 29 18:24:42 fedora kernel: RIP: 0010:__list_del_entry_valid.cold+0xf/0x47
déc. 29 18:24:42 fedora kernel: Code: fe ff 0f 0b 48 89 d1 4c 89 c6 4c 89 ca 48 c7 c7 28 f5 63 89 e8 4b 1f fe ff 0f 0b 48 89 fe 48 c7 c7 b8 f5 63 89 e8 3a 1f fe ff <0f> 0b 48 c7 c7 68 f6 63 89 e8 2c 1f fe ff 0f 0b 48 89 f2 48 89 fe
déc. 29 18:24:42 fedora kernel: RSP: 0018:ffffa72d4315fda0 EFLAGS: 00010282
déc. 29 18:24:42 fedora kernel: RAX: 000000000000004e RBX: ffff8ddd03c7e600 RCX: 0000000000000027
déc. 29 18:24:42 fedora kernel: RDX: ffff8de0305e0a08 RSI: 0000000000000001 RDI: ffff8de0305e0a00
déc. 29 18:24:42 fedora kernel: RBP: ffff8ddc8e9d2000 R08: 0000000000000000 R09: ffffa72d4315fbe0
déc. 29 18:24:42 fedora kernel: R10: ffffa72d4315fbd8 R11: ffffffff89f46028 R12: ffff8ddc8e9d2218
déc. 29 18:24:42 fedora kernel: R13: ffff8ddcd81e8e90 R14: ffffa72d4315fe08 R15: dead000000000100
déc. 29 18:24:42 fedora kernel: FS:  00007fb417962d80(0000) GS:ffff8de0305c0000(0000) knlGS:0000000000000000
déc. 29 18:24:42 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
déc. 29 18:24:42 fedora kernel: CR2: 000056477d6c1030 CR3: 0000000106fb6005 CR4: 00000000007706e0
déc. 29 18:24:42 fedora kernel: PKRU: 55555554
déc. 29 18:24:43 fedora abrt-dump-journal-oops[1592]: abrt-dump-journal-oops: Found oopses: 3
déc. 29 18:24:43 fedora abrt-dump-journal-oops[1592]: abrt-dump-journal-oops: Creating problem directories
déc. 29 18:24:46 fedora abrt-dump-journal-oops[1592]: Reported 3 kernel oopses to Abrt
déc. 29 18:24:50 fedora abrt-server[4013]: Deleting problem directory oops-2021-12-29-18:24:43-1592-0 (dup of oops-2021-12-28-23:07:35-1634-0)
déc. 29 18:24:50 fedora abrt-notification[4022]: System encountered a non-fatal error in down_write()
déc. 29 18:24:56 fedora abrt-server[4015]: Deleting problem directory oops-2021-12-29-18:24:43-1592-1 (dup of oops-2021-12-28-23:07:35-1634-1)
déc. 29 18:24:56 fedora abrt-notification[4030]: System encountered a non-fatal error in drm_gem_fb_destroy()

For unbind GPU i use :

echo "0000:01:00.0" > /sys/bus/pci/drivers/nouveau/unbind

But if i configure gnome-control-center display in single-screen mode, and i unbind my GPU using the same command, my display is not freeze but i have errors :

déc. 29 19:23:57 fedora gnome-shell[2165]: Failed to reopen '/dev/dri/card1': Could not get device info for path /dev/dri/card1: Aucun fichier ou dossier de ce type
déc. 29 19:23:57 fedora gnome-shell[2165]: Failed to reopen '/dev/dri/card1': Could not get device info for path /dev/dri/card1: Aucun fichier ou dossier de ce type

Then i bind using :

echo "0000:01:00.0" > /sys/bus/pci/drivers/nouveau/bind

journalctl output :

déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: NVIDIA GA106 (b76000a1)
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: bios: version 94.06.14.80.a4
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: fb: 12288 MiB GDDR6
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: VRAM: 12288 MiB
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: BIT table 'A' not found
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: BIT table 'L' not found
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: TMDS table version 2.0
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB version 4.1
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 00: 04800f86 04600020
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 01: 04000f82 00020020
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 02: 04011f72 00020010
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 04: 02822f66 04600020
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 05: 02022f62 00020020
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 07: 02033f52 00020010
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 08: 01844f36 04600010
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB outp 09: 01044f32 00020010
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB conn 00: 02000046
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB conn 01: 01000161
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB conn 02: 00020246
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB conn 03: 00010361
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: DCB conn 04: 00001446
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
déc. 29 19:24:44 fedora kernel: snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
déc. 29 19:24:44 fedora gnome-shell[2165]: Failed to reopen '/dev/dri/card1': Could not get device info for path /dev/dri/card1: Aucun fichier ou dossier de ce type
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: allocated 1920x1080 fb: 0x200000, bo 00000000fbf5a408
déc. 29 19:24:44 fedora kernel: fbcon: Deferring console take-over
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: [drm] fb1: nouveaudrmfb frame buffer device
déc. 29 19:24:44 fedora kernel: [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
déc. 29 19:24:44 fedora kernel: nouveau 0000:01:00.0: DRM: Disabling PCI power management to avoid bug
déc. 29 19:24:44 fedora gnome-shell[2165]: Failed to open atomic modesetting backend: GDBus.Error:System.Error.ENODEV: No such device
déc. 29 19:24:44 fedora gnome-shell[2165]: g_hash_table_destroy: assertion 'hash_table != NULL' failed
déc. 29 19:24:44 fedora gnome-shell[2165]: Failed to open legacy modesetting backend: GDBus.Error:System.Error.ENODEV: No such device
déc. 29 19:24:44 fedora gnome-shell[2165]: Failed to hotplug secondary gpu '/dev/dri/renderD129': No suitable mode setting backend found
déc. 29 19:24:44 fedora gnome-shell[2165]: Failed to hotplug secondary gpu '/dev/dri/card1': device already present

Gnome detects my second display monitor, but it cannot join the screens :

déc. 29 19:25:58 fedora gnome-control-c[4382]: Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No available CRTC for monitor 'ACR QG241Y' not found

My session runs in Wayland.
I don’t know if the real solution of my initial issue is to be in single screen before unbind my GPU, but even if it’s not, why do I have mistakes in both cases ?

Your machine has 2 GPUs. One is the IGP on the motherboard, probably an intel. The second is the discrete (dGPU) which you say is nvidia (the reason for the nouveau driver loading).

I think you must allow the driver to be loaded even though you don’t use the gpu or you will have problems. Also, since the module (driver) is loaded at boot time the only way I know to effectively avoid issues such as you see is to prevent it loading instead of trying to disable it after it is already loaded.

The kernel command line at boot should contain something such as rd.driver.blacklist=nouveau modprobe.blacklist=nouveau which can be tested by pressing ‘e’ when the grub menu is displayed, then on the line which begins with ‘linux’ you can add in the portion above and see if it prevents the driver loading. It should.

If that works for what you want, then let us know and we can assist in making that change permanent.

If I understand, you say me that i can’t unbind dinamically my GPU from Nouveau.
But i got there on fedora 34, then, why in single-screen mode it works ? What are the “problems” ?

Single screen the IGP controls the laptop screen. By default the nvidia dGPU controls the external video.

I have never used the bind or unbind method you use but I know the cleanest method is to prevent the driver module from loading at the very beginning.

I do not understand the reason for not allowing the driver to load anyway since it loads but is unused if you do not explicitly tell the system to use the dGPU for an app.

If i say to the grub to not load nouveau

rd.driver.blacklist=nouveau modprobe.blacklist=nouveau

i will not have a display on my second monitor.
So I will be forced to load driver with modprobe for have display.
And if i unbind, i will have the error described above.
I think that gnome-shell (mutter) uses nouveau for display or they communicate :

déc. 29 18:24:42 fedora gnome-shell[2204]: drmModeRmFB: No such device
déc. 29 18:24:42 fedora gnome-shell[2204]: Could not release device '/dev/dri/card1' (226,1): GDBus.Error:org.freedesktop.login1.DeviceNotTaken: Device not taken

These lines come from the first output of journalctl.

If using both internal and external monitors then you need to load a driver for the dGPU. You thus must allow the nouveau driver to be loaded.

You seem to be wanting to do something that your use case will not allow.

Why exactly are you trying to unbind the nouveau driver. To this point the discussion above makes no sense when you just stated you use the external monitor.

I want to unbind GPU from nouveau and bind it to other drivers, especially for vfio passtrough.

By example :
(Drivers controlling the GPU)
Nouveau --(unbind)–> Nothing --(bind)–> vfio-pci |vm execution|–(unbind)–> Nothing --(bind)–> nouveau

The only problem is in Nouveau --(unbind)–> Nothing