Hi, im using a new Lenovo Thinkpad P51 that uses Nvidia Optimus. It has a integrated Intel graphic (Intel® HD Graphics 630) and a descrete Nvidia graphic (Nvidia Quadro M1200). The Thinkpad is used in combination with a Lenovo ThinkPad Workstation Dock (Docking Station). My OS is Debian Stretch (9). When using the proprietary Nvidia driver from the debian stretch repos, I can use two monitors on the docking station and the internal display. However, i can't rearrange them using xrandr. This only works when the integrated Intel GPU is deactivated in Bios. When using Nouveau however, I can only use one monitor connected to the docking station and the internal display. If the Bios is configured to use both graphic cards or only the discrete does not change anything. It seems that Nouveau only recognizes three monitors: One for the internal, one for all external connected the Thinkpad itself, one for all monitors connected to the dock. As a result, all monitors connected to the dock show the same (cloned), which is not changeable. The following commands were used to pass the external monitors to the discrete GPU: sudo xrandr --setprovideroffloadsink 1 0 sudo xrandr --setprovideroutputsource 1 0 Otherwise only the internal display works with Nouveau. It is not possibly to set the GPU to only use the internal intel GPU in BIOS. To summarize this up, more than one external monitor using a Lenovo Thinkpad P51 with a Dockingstation is only possible by using the proprietary nvidia driver.
This is related to DP-MST. Support for DP-MST was added in kernel 4.10. Please update. If you have additional issues, please file them in the freedesktop.org bugtracker as specified by https://nouveau.freedesktop.org/wiki/Bugs/ .
I updated to Debian Buster which uses kernel 4.11.0-1-amd64 #1 SMP Debian 4.11.6-1 (2017-06-19) x86_64 GNU/Linux. When setting the graphic card to the disrecete nvidia card everything works fine :) However, if I set it to hybrid graphics, I get a kernel error: ---[ end trace 0f5b1e9bbdb82fb3 ]--- ? system_call_fast_compare_end+0xc/0x9b ? SyS_ioctl+0x74/0x80 ? do_munmap+0x353/0x430 ? do_vfs_ioctl+0x9f/0x600 ? nouveau_drm_ioctl+0x66/0xc0 [nouveau] ? signal_setup_done+0x67/0xb0 ? drm_gem_handle_create+0x40/0x40 [drm] ? drm_ioctl+0x1ef/0x440 [drm] ? drm_gem_handle_delete+0x57/0x80 [drm] ? drm_gem_object_release_handle+0x50/0x90 [drm] ? nouveau_gem_object_del+0x8d/0xe0 [nouveau] ? ttm_bo_release_list+0xc8/0x1f0 [ttm] ? nouveau_bo_del_ttm+0x77/0x80 [nouveau] ? __warn+0xbe/0xe0 ? dump_stack+0x5c/0x78 Call Trace: Hardware name: LENOVO 20HH0014GE/20HH0014GE, BIOS N1UET31W (1.05 ) 02/13/2017 CPU: 7 PID: 3782 Comm: Xorg Tainted: P O 4.11.0-1-amd64 #1 Debian 4.11.6-1 ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd ahci libahci psmouse e1000e libata xhci_pci ptp i2c_i801 pps_core xhci_hcd rtsx_pci nvme mfd_core nvme_core scsi_mod usbcore usb_common thermal i2c_hid hid mxm_wmi snd_hda_codec_realtek rtsx_pci_ms ttm kvm_intel snd_hda_codec_generic drm_kms_helper memstick kvm joydev cfg80211 snd_hda_intel drm snd_hda_codec irqbypass i2c_algo_bit efi_pstore intel_cstate evdev snd_hda_core snd_hwdep mei_me idma64 intel_ Modules linked in: ctr ccm acpi_call(O) veth xt_nat ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype br_netfilter bridge stp llc overlay ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ip WARNING: CPU: 7 PID: 3782 at /build/linux-C5oXKu/linux-4.11.6/drivers/gpu/drm/nouveau/nouveau_bo.c:137 nouveau_bo_del_ttm+0x77/0x80 [nouveau] ------------[ cut here ]------------ [ 28.615917] Oops: 0000 [#1] SMP [ 28.615924] Modules linked in: cmac ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_n$ [ 28.616065] memstick ttm efi_pstore drm_kms_helper snd_hda_codec joydev evdev snd_hda_core mei_me snd_hwdep drm snd_pcm idma64 iTCO_wdt pcspkr serio_raw efivars iTCO_vendor_support snd_timer sg i2c_algo_bit mei shpchp intel_pch_thermal intel_lpss_$ [ 28.616210] nvme rtsx_pci mfd_core nvme_core usbcore scsi_mod usb_common thermal i2c_hid hid [ 28.616230] CPU: 0 PID: 57 Comm: kworker/0:1 Tainted: P O 4.11.0-1-amd64 #1 Debian 4.11.6-1 [ 28.616248] Hardware name: LENOVO 20HH0014GE/20HH0014GE, BIOS N1UET31W (1.05 ) 02/13/2017 [ 28.616266] Workqueue: events_long drm_dp_mst_link_probe_work [drm_kms_helper] [ 28.616280] task: ffff9e947fd92100 task.stack: ffffb20306494000 [ 28.616294] RIP: 0010:drm_fb_helper_add_one_connector+0x17/0xd0 [drm_kms_helper] [ 28.616308] RSP: 0018:ffffb20306497c60 EFLAGS: 00010202 [ 28.616319] RAX: 0000000000000000 RBX: ffff9e946c19c010 RCX: 0000000000000000 [ 28.616333] RDX: ffff9e947cfe8c58 RSI: ffff9e946c19c010 RDI: 0000000000000000 [ 28.616347] RBP: ffff9e946c19c010 R08: ffff9e946c1050e0 R09: 0000000000000000 [ 28.616360] R10: ffffb20306497c68 R11: 0000000000000001 R12: ffff9e947dc7c010 [ 28.616374] R13: 0000000000000001 R14: ffff9e947a81a780 R15: ffff9e947dc7c000 [ 28.616390] FS: 0000000000000000(0000) GS:ffff9e94af400000(0000) knlGS:0000000000000000 [ 28.616412] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 28.616424] CR2: 0000000000000008 CR3: 0000000400209000 CR4: 00000000003406f0 [ 28.616438] Call Trace: [ 28.616463] ? nv50_mstm_register_connector+0x2c/0x50 [nouveau] [ 28.616477] ? drm_dp_add_port+0x32d/0x460 [drm_kms_helper] [ 28.616501] ? g94_i2c_aux_fini.isra.0+0x27/0x40 [nouveau] [ 28.616523] ? g94_i2c_aux_xfer+0x6a2/0x7d0 [nouveau] [ 28.616544] ? nvkm_i2c_aux_release+0x42/0x50 [nouveau] [ 28.616569] ? nouveau_connector_aux_xfer+0x7f/0xc0 [nouveau] [ 28.616582] ? drm_dp_dpcd_access+0xee/0x120 [drm_kms_helper] [ 28.616595] ? drm_dp_send_link_address+0x16b/0x1f0 [drm_kms_helper] [ 28.616610] ? drm_dp_check_and_send_link_address+0xab/0xb0 [drm_kms_helper] [ 28.616625] ? drm_dp_mst_link_probe_work+0x4a/0x80 [drm_kms_helper] [ 28.616638] ? process_one_work+0x197/0x430 [ 28.616647] ? worker_thread+0x4d/0x490 [ 28.616656] ? kthread+0xfc/0x130 [ 28.616664] ? process_one_work+0x430/0x430 [ 28.616673] ? kthread_create_on_node+0x70/0x70 [ 28.616683] ? ret_from_fork+0x26/0x40 [ 28.616691] Code: bf f4 ff ff ff e9 7b ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 31 c0 80 3d 72 76 00 00 00 74 6b 41 54 55 48 89 f5 53 <48> 8b 47 08 48 89 fb 48 8b 80 08 02 00 00 48 a9 f8 ff ff ff 74 [ 28.616741] RIP: drm_fb_helper_add_one_connector+0x17/0xd0 [drm_kms_helper] RSP: ffffb20306497c60 [ 28.616757] CR2: 0000000000000008 [ 28.621441] ---[ end trace f1588c8aea537ee6 ]---
See https://bugs.freedesktop.org/show_bug.cgi?id=101778