igt@kms_atomic@plane_invalid_params_fence|igt@kms_vblank@crtc-id - fail/incomplete - BUG: sleeping function called from invalid context at drivers/gpu/drm/drm_mm.c
<6> [163.129134] Console: switching to colour dummy device 80x25
<6> [163.129175] [IGT] kms_atomic: executing
<7> [163.132142] [drm:amdgpu_vm_init [amdgpu]] VM update mode is SDMA
<7> [163.134602] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:59:DP-1]
<7> [163.134609] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:59:DP-1] disconnected
<7> [163.134958] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:63:DP-2]
<7> [163.134962] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:63:DP-2] disconnected
<7> [163.135233] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:67:DP-3]
<7> [163.135236] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:67:DP-3] disconnected
<7> [163.135605] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:76:HDMI-A-1]
<7> [163.135608] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:76:HDMI-A-1] disconnected
<7> [163.135952] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:80:HDMI-A-2]
<7> [163.135956] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:80:HDMI-A-2] disconnected
<7> [163.136114] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:59:DP-1]
<7> [163.136118] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:59:DP-1] disconnected
<7> [163.136135] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:63:DP-2]
<7> [163.136139] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:63:DP-2] disconnected
<7> [163.136155] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:67:DP-3]
<7> [163.136158] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:67:DP-3] disconnected
<7> [163.136168] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:71:DP-4]
<7> [163.136172] [drm:drm_add_edid_modes] ELD: no CEA Extension found
<7> [163.136174] [drm:drm_add_display_info] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
<7> [163.136176] [drm:drm_add_display_info] non_desktop set to 0
<7> [163.136356] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1920 height:1200
<7> [163.136425] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1920 height:1080
<7> [163.136488] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1600 height:1200
<7> [163.136551] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1680 height:1050
<7> [163.136615] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1280 height:1024
<7> [163.136677] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1440 height:900
<7> [163.136780] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1280 height:960
<7> [163.136846] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1280 height:800
<7> [163.136910] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1280 height:720
<7> [163.137018] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:1024 height:768
<7> [163.137100] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:800 height:600
<7> [163.137165] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:640 height:480
<7> [163.137238] [drm:create_stream_for_sink [amdgpu]] Destination Rectangle x:0 y:0 width:720 height:400
<7> [163.137258] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:71:DP-4] probed modes :
<7> [163.137266] [drm:drm_mode_debug_printmodeline] Modeline "1920x1200": 60 154000 1920 1968 2000 2080 1200 1203 1209 1235 0x48 0x9
<7> [163.137269] [drm:drm_mode_debug_printmodeline] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0xa
<7> [163.137272] [drm:drm_mode_debug_printmodeline] Modeline "1600x1200": 60 162000 1600 1664 1856 2160 1200 1201 1204 1250 0x40 0x5
<7> [163.137275] [drm:drm_mode_debug_printmodeline] Modeline "1680x1050": 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
<7> [163.137278] [drm:drm_mode_debug_printmodeline] Modeline "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
<7> [163.137280] [drm:drm_mode_debug_printmodeline] Modeline "1440x900": 60 154000 1440 1968 2000 2080 900 1203 1209 1235 0x40 0x9
<7> [163.137283] [drm:drm_mode_debug_printmodeline] Modeline "1280x960": 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
<7> [163.137286] [drm:drm_mode_debug_printmodeline] Modeline "1280x800": 60 154000 1280 1968 2000 2080 800 1203 1209 1235 0x40 0x9
<7> [163.137288] [drm:drm_mode_debug_printmodeline] Modeline "1280x720": 60 154000 1280 1968 2000 2080 720 1203 1209 1235 0x40 0x9
<7> [163.137291] [drm:drm_mode_debug_printmodeline] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
<7> [163.137294] [drm:drm_mode_debug_printmodeline] Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
<7> [163.137297] [drm:drm_mode_debug_printmodeline] Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
<7> [163.137300] [drm:drm_mode_debug_printmodeline] Modeline "720x400": 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
<7> [163.137327] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:76:HDMI-A-1]
<7> [163.137331] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:76:HDMI-A-1] disconnected
<7> [163.137348] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:80:HDMI-A-2]
<7> [163.137351] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:80:HDMI-A-2] disconnected
<3> [163.137445] BUG: sleeping function called from invalid context at drivers/gpu/drm/drm_mm.c:371
<3> [163.137490] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3408, name: kms_atomic
<4> [163.137494] 2 locks held by kms_atomic/3408:
<4> [163.137496] #0: ffff996dce3909e0 (reservation_ww_class_mutex){+.+.}, at: ttm_bo_init_reserved+0x34c/0x420 [ttm]
<4> [163.137504] #1: ffff996e29ec8908 (&(&mgr->lock)->rlock){+.+.}, at: amdgpu_vram_mgr_new+0xd8/0x3e0 [amdgpu]
<3> [163.137540] Preemption disabled at:
<4> [163.137541] [<0000000000000000>] 0x0
<4> [163.137546] CPU: 1 PID: 3408 Comm: kms_atomic Tainted: G U 5.6.0-rc6-gf8f703bc3068-drmtip_457+ #1
<4> [163.137548] Hardware name: Intel Corporation NUC8i7HVK/NUC8i7HVB, BIOS HNKBLi70.86A.0047.2018.0718.1706 07/18/2018
<4> [163.137550] Call Trace:
<4> [163.137554] dump_stack+0x71/0x9b
<4> [163.137559] ___might_sleep+0x178/0x260
<4> [163.137564] drm_mm_insert_node_in_range+0x384/0x550
<4> [163.137603] amdgpu_vram_mgr_new+0x1ba/0x3e0 [amdgpu]
<4> [163.137615] ttm_bo_mem_space+0xcd/0x2f0 [ttm]
<4> [163.137655] ? amdgpu_bo_subtract_pin_size+0x60/0x60 [amdgpu]
<4> [163.137659] ttm_bo_validate+0x135/0x1e0 [ttm]
<4> [163.137664] ? ttm_bo_init_reserved+0x34c/0x420 [ttm]
<4> [163.137724] ? amdgpu_bo_subtract_pin_size+0x60/0x60 [amdgpu]
<4> [163.137726] ? mutex_trylock+0x114/0x130
<4> [163.137731] ttm_bo_init_reserved+0x2f4/0x420 [ttm]
<4> [163.137821] amdgpu_bo_do_create+0x1fb/0x660 [amdgpu]
<4> [163.137845] ? amdgpu_bo_subtract_pin_size+0x60/0x60 [amdgpu]
<4> [163.137871] amdgpu_bo_create+0x3b/0x310 [amdgpu]
<4> [163.137875] ? __lock_acquire+0x460/0x15d0
<4> [163.137900] amdgpu_gem_object_create+0x89/0x110 [amdgpu]
<4> [163.137926] amdgpu_mode_dumb_create+0xa2/0x100 [amdgpu]
<4> [163.137931] ? drm_mode_create_dumb+0x90/0x90
<4> [163.137933] drm_ioctl_kernel+0xad/0xf0
<4> [163.137936] drm_ioctl+0x2e1/0x390
<4> [163.137939] ? drm_mode_create_dumb+0x90/0x90
<4> [163.137943] ? __pm_runtime_resume+0x4f/0x80
<4> [163.137946] ? _raw_spin_unlock_irqrestore+0x47/0x60
<4> [163.137948] ? lockdep_hardirqs_on+0xe3/0x1c0
<4> [163.137951] ? _raw_spin_unlock_irqrestore+0x34/0x60
<4> [163.137973] amdgpu_drm_ioctl+0x44/0x80 [amdgpu]
<4> [163.137977] ksys_ioctl+0x7b/0x90
<4> [163.137980] __x64_sys_ioctl+0x11/0x20
<4> [163.137982] do_syscall_64+0x4f/0x240
<4> [163.137984] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [163.137986] RIP: 0033:0x7fb450d7f5d7
<4> [163.137988] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
<4> [163.137989] RSP: 002b:00007fff2c13bb08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [163.137991] RAX: ffffffffffffffda RBX: 00000000000004b0 RCX: 00007fb450d7f5d7
<4> [163.137992] RDX: 00007fff2c13bb40 RSI: 00000000c02064b2 RDI: 0000000000000005
<4> [163.137993] RBP: 00007fff2c13bb40 R08: 00007fff2c13beb8 R09: 00007fff2c13bea0
<4> [163.137994] R10: 0000000000000056 R11: 0000000000000246 R12: 00000000c02064b2
<4> [163.137995] R13: 0000000000000005 R14: 0000000000000020 R15: 00007fff2c13be70
<7> [163.138326] [drm:drm_mode_addfb2] [FB:85]
<6> [163.148471] Console: switching to colour frame buffer device 240x75
<7> [163.159143] [drm:dm_update_plane_state [amdgpu]] Enabling DRM plane: 45 on DRM crtc 47
<7> [163.159393] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159432] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159470] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159507] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159544] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159589] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159626] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159662] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159743] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159858] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159897] [drm:dm_plane_helper_prepare_fb [amdgpu]] No FB bound
<7> [163.159994] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:0 crtc_state_flags: enable:1, active:1, planes_changed:1, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160045] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:1 crtc_state_flags: enable:0, active:0, planes_changed:0, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160084] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:2 crtc_state_flags: enable:0, active:0, planes_changed:0, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160123] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:3 crtc_state_flags: enable:0, active:0, planes_changed:0, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160161] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:4 crtc_state_flags: enable:0, active:0, planes_changed:0, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160199] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:5 crtc_state_flags: enable:0, active:0, planes_changed:0, mode_changed:0,active_changed:0,connectors_changed:0
<7> [163.160247] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_dm_commit_planes Flipping to hi: 0xf4, low: 0xdfa000
<7> [163.160293] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] crtc:0, pflip_stat:AMDGPU_FLIP_SUBMITTED
<7> [163.165224] [drm:dm_pflip_high_irq [amdgpu]] crtc:0[000000005d8001f6], pflip_stat:AMDGPU_FLIP_NONE, vrr[0]-fp 0
Edited by LAKSHMINARAYANA VUDUM