Kernel warning on Linux 5.8: drivers/gpu/drm/drm_modeset_lock.c:185 drm_warn_on_modeset_not_all_locked
I'm not sure where to report this, apologies if this isn't the right place.
Starting with Linux 5.8, I'm getting the warning/stack trace below after X starts, with a plain kernel.org kernel. This does not occur with 5.7.18.
I'm using AMDGPU (xorg-server 1.20.8, xf86-video-amdgpu 19.1.0) on GIGABYTE Radeon R7 260X GV-R726XOC-2GD REV3.
Please let me know if there's any additional info I can provide.
[ 4.276701] ------------[ cut here ]------------
[ 4.276711] WARNING: CPU: 3 PID: 511 at drivers/gpu/drm/drm_modeset_lock.c:185 drm_warn_on_modeset_not_all_locked.part.0+0x69/0x70
[ 4.276714] CPU: 3 PID: 511 Comm: X Not tainted 5.8.5 #101
[ 4.276715] Hardware name: Gigabyte Technology Co., Ltd. H97-D3H/H97-D3H-CF, BIOS F6 04/21/2015
[ 4.276718] RIP: 0010:drm_warn_on_modeset_not_all_locked.part.0+0x69/0x70
[ 4.276721] Code: 01 00 00 e8 49 f8 ad ff 84 c0 74 1a 49 8d bc 24 98 01 00 00 e8 38 f8 ad ff 84 c0 74 0d 5b 5d 41 5c c3 0f 0b eb c8 0f 0b eb e2 <0f> 0b 5b 5d 41 5c c3 55 48 89 fd 8b 05 16 0d c5 01 85 c0 75 09 48
[ 4.276723] RSP: 0018:ffff9da24100fa28 EFLAGS: 00010246
[ 4.276725] RAX: 0000000000000000 RBX: ffff9ca609de8af8 RCX: ffff9da24100c008
[ 4.276726] RDX: ffff9da24100fa30 RSI: ffff9da24100c000 RDI: ffff9ca609de8998
[ 4.276727] RBP: ffff9ca609de8b08 R08: ffff9ca60a356548 R09: 0000000000000001
[ 4.276729] R10: 0000000000000040 R11: ffff9ca60b192fe8 R12: ffff9ca609de8800
[ 4.276730] R13: ffff9ca609f4f000 R14: ffff9ca609de8800 R15: ffff9ca609de90a0
[ 4.276732] FS: 00007f75799a5dc0(0000) GS:ffff9ca60eac0000(0000) knlGS:0000000000000000
[ 4.276733] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4.276734] CR2: 0000564c27e39008 CR3: 00000007fb3b6002 CR4: 00000000001606e0
[ 4.276736] Call Trace:
[ 4.276740] drm_crtc_helper_set_mode+0x7d/0x4b0
[ 4.276746] amdgpu_connector_set_property+0x2aa/0x630
[ 4.276749] drm_connector_set_obj_prop+0x3c/0x80
[ 4.276752] drm_mode_obj_set_property_ioctl+0x282/0x310
[ 4.276755] drm_connector_property_set_ioctl+0x47/0x70
[ 4.276757] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276762] drm_ioctl_kernel+0xa9/0xf0
[ 4.276764] drm_ioctl+0x1e4/0x370
[ 4.276766] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276770] amdgpu_drm_ioctl+0x44/0x80
[ 4.276773] ksys_ioctl+0x80/0xc0
[ 4.276775] __x64_sys_ioctl+0x15/0x20
[ 4.276780] do_syscall_64+0x42/0x70
[ 4.276784] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 4.276786] RIP: 0033:0x7f7579e0fa37
[ 4.276788] Code: 3c 1c 48 f7 d8 49 39 c4 72 b9 e8 24 ff ff ff 85 c0 78 be 4c 89 e0 5b 5d 41 5c c3 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 01 04 09 00 f7 d8 64 89 01 48
[ 4.276789] RSP: 002b:00007ffcb447a568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 4.276791] RAX: ffffffffffffffda RBX: 00007ffcb447a5a0 RCX: 00007f7579e0fa37
[ 4.276792] RDX: 00007ffcb447a5a0 RSI: 00000000c01064ab RDI: 000000000000000c
[ 4.276793] RBP: 00000000c01064ab R08: 0000564c27871b80 R09: 0000000000000000
[ 4.276795] R10: 0000000000000001 R11: 0000000000000246 R12: 0000564c27e39520
[ 4.276796] R13: 000000000000000c R14: 0000564c27e390e0 R15: 0000000000000007
[ 4.276797] ---[ end trace 36acc29a2ffcd404 ]---
[ 4.276803] ------------[ cut here ]------------
[ 4.276806] WARNING: CPU: 3 PID: 511 at drivers/gpu/drm/drm_crtc_helper.c:148 drm_helper_crtc_in_use+0x8f/0xa0
[ 4.276807] CPU: 3 PID: 511 Comm: X Tainted: G W 5.8.5 #101
[ 4.276808] Hardware name: Gigabyte Technology Co., Ltd. H97-D3H/H97-D3H-CF, BIOS F6 04/21/2015
[ 4.276810] RIP: 0010:drm_helper_crtc_in_use+0x8f/0xa0
[ 4.276812] Code: 75 ed 48 89 df e8 c1 fe ff ff 84 c0 74 e1 5b 5d 41 5c c3 5b 31 c0 5d 41 5c c3 48 8d bd 98 01 00 00 e8 45 95 b0 ff 84 c0 75 ac <0f> 0b eb a8 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 55 48 89
[ 4.276813] RSP: 0018:ffff9da24100fa28 EFLAGS: 00010246
[ 4.276814] RAX: 0000000000000000 RBX: ffff9ca60a863c00 RCX: ffff9da24100c008
[ 4.276815] RDX: ffff9da24100fa30 RSI: ffff9da24100c000 RDI: ffff9ca609de8998
[ 4.276817] RBP: ffff9ca609de8800 R08: ffff9ca60a356548 R09: 0000000000000001
[ 4.276818] R10: 0000000000000040 R11: ffff9ca60b192fe8 R12: ffff9ca609de9000
[ 4.276819] R13: ffff9ca609f4f000 R14: ffff9ca609de8800 R15: ffff9ca609de90a0
[ 4.276820] FS: 00007f75799a5dc0(0000) GS:ffff9ca60eac0000(0000) knlGS:0000000000000000
[ 4.276822] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4.276823] CR2: 0000564c27e39008 CR3: 00000007fb3b6002 CR4: 00000000001606e0
[ 4.276824] Call Trace:
[ 4.276826] drm_crtc_helper_set_mode+0x90/0x4b0
[ 4.276829] amdgpu_connector_set_property+0x2aa/0x630
[ 4.276831] drm_connector_set_obj_prop+0x3c/0x80
[ 4.276834] drm_mode_obj_set_property_ioctl+0x282/0x310
[ 4.276836] drm_connector_property_set_ioctl+0x47/0x70
[ 4.276838] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276841] drm_ioctl_kernel+0xa9/0xf0
[ 4.276843] drm_ioctl+0x1e4/0x370
[ 4.276845] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276848] amdgpu_drm_ioctl+0x44/0x80
[ 4.276849] ksys_ioctl+0x80/0xc0
[ 4.276851] __x64_sys_ioctl+0x15/0x20
[ 4.276854] do_syscall_64+0x42/0x70
[ 4.276856] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 4.276857] RIP: 0033:0x7f7579e0fa37
[ 4.276859] Code: 3c 1c 48 f7 d8 49 39 c4 72 b9 e8 24 ff ff ff 85 c0 78 be 4c 89 e0 5b 5d 41 5c c3 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 01 04 09 00 f7 d8 64 89 01 48
[ 4.276860] RSP: 002b:00007ffcb447a568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 4.276862] RAX: ffffffffffffffda RBX: 00007ffcb447a5a0 RCX: 00007f7579e0fa37
[ 4.276863] RDX: 00007ffcb447a5a0 RSI: 00000000c01064ab RDI: 000000000000000c
[ 4.276864] RBP: 00000000c01064ab R08: 0000564c27871b80 R09: 0000000000000000
[ 4.276865] R10: 0000000000000001 R11: 0000000000000246 R12: 0000564c27e39520
[ 4.276866] R13: 000000000000000c R14: 0000564c27e390e0 R15: 0000000000000007
[ 4.276867] ---[ end trace 36acc29a2ffcd405 ]---
[ 4.276873] ------------[ cut here ]------------
[ 4.276875] WARNING: CPU: 3 PID: 511 at drivers/gpu/drm/drm_crtc_helper.c:108 drm_helper_encoder_in_use+0xc3/0xd0
[ 4.276877] CPU: 3 PID: 511 Comm: X Tainted: G W 5.8.5 #101
[ 4.276878] Hardware name: Gigabyte Technology Co., Ltd. H97-D3H/H97-D3H-CF, BIOS F6 04/21/2015
[ 4.276879] RIP: 0010:drm_helper_encoder_in_use+0xc3/0xd0
[ 4.276881] Code: 01 00 00 00 eb da 48 8d bd 98 01 00 00 e8 f5 95 b0 ff 84 c0 74 14 48 8d bd b8 01 00 00 e8 e5 95 b0 ff 84 c0 75 8d 0f 0b eb 89 <0f> 0b eb e8 e8 d4 6a 89 00 0f 1f 40 00 41 54 49 89 fc 55 53 49 8b
[ 4.276882] RSP: 0018:ffff9da24100f9f8 EFLAGS: 00010246
[ 4.276883] RAX: 0000000000000000 RBX: ffff9ca609d81600 RCX: ffff9da24100c008
[ 4.276884] RDX: ffff9da24100fa30 RSI: ffff9da24100c000 RDI: ffff9ca609de8998
[ 4.276885] RBP: ffff9ca609de8800 R08: ffff9ca60a356548 R09: 0000000000000001
[ 4.276887] R10: 0000000000000040 R11: ffff9ca60b192fe8 R12: ffff9ca609de9000
[ 4.276888] R13: ffff9ca609f4f000 R14: ffff9ca609de8800 R15: ffff9ca609de90a0
[ 4.276889] FS: 00007f75799a5dc0(0000) GS:ffff9ca60eac0000(0000) knlGS:0000000000000000
[ 4.276890] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4.276891] CR2: 0000564c27e39008 CR3: 00000007fb3b6002 CR4: 00000000001606e0
[ 4.276892] Call Trace:
[ 4.276894] ? drm_helper_crtc_in_use+0x91/0xa0
[ 4.276896] drm_helper_crtc_in_use+0x6f/0xa0
[ 4.276897] drm_crtc_helper_set_mode+0x90/0x4b0
[ 4.276900] amdgpu_connector_set_property+0x2aa/0x630
[ 4.276903] drm_connector_set_obj_prop+0x3c/0x80
[ 4.276905] drm_mode_obj_set_property_ioctl+0x282/0x310
[ 4.276907] drm_connector_property_set_ioctl+0x47/0x70
[ 4.276909] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276912] drm_ioctl_kernel+0xa9/0xf0
[ 4.276914] drm_ioctl+0x1e4/0x370
[ 4.276916] ? drm_connector_set_obj_prop+0x80/0x80
[ 4.276919] amdgpu_drm_ioctl+0x44/0x80
[ 4.276920] ksys_ioctl+0x80/0xc0
[ 4.276922] __x64_sys_ioctl+0x15/0x20
[ 4.276924] do_syscall_64+0x42/0x70
[ 4.276927] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 4.276928] RIP: 0033:0x7f7579e0fa37
[ 4.276930] Code: 3c 1c 48 f7 d8 49 39 c4 72 b9 e8 24 ff ff ff 85 c0 78 be 4c 89 e0 5b 5d 41 5c c3 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 01 04 09 00 f7 d8 64 89 01 48
[ 4.276931] RSP: 002b:00007ffcb447a568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 4.276932] RAX: ffffffffffffffda RBX: 00007ffcb447a5a0 RCX: 00007f7579e0fa37
[ 4.276933] RDX: 00007ffcb447a5a0 RSI: 00000000c01064ab RDI: 000000000000000c
[ 4.276935] RBP: 00000000c01064ab R08: 0000564c27871b80 R09: 0000000000000000
[ 4.276936] R10: 0000000000000001 R11: 0000000000000246 R12: 0000564c27e39520
[ 4.276937] R13: 000000000000000c R14: 0000564c27e390e0 R15: 0000000000000007
[ 4.276938] ---[ end trace 36acc29a2ffcd406 ]---
# lspci -vvs 01:00.0
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Bonaire XTX [Radeon R7 260X/360] (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Bonaire XTX [Radeon R7 260X/360]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 30
Region 0: Memory at e0000000 (64-bit, prefetchable) [size=256M]
Region 2: Memory at f0000000 (64-bit, prefetchable) [size=8M]
Region 4: I/O ports at e000 [size=256]
Region 5: Memory at f7d00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 8GT/s (ok), Width x16 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis- NROPrPrP- LTR-
10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled,
AtomicOpsCtl: ReqEn-
LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1+
EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
Retimer- 2Retimers- CrosslinkRes: unsupported
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee002b8 Data: 0000
Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150 v2] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 00000000 00000000 00000000 00000000
Capabilities: [200 v1] Physical Resizable BAR
BAR 0: current size: 256MB, supported: 256MB 512MB 1GB 2GB 4GB
Capabilities: [270 v1] Secondary PCI Express
LnkCtl3: LnkEquIntrruptEn- PerformEqu-
LaneErrStat: 0
Capabilities: [2b0 v1] Address Translation Service (ATS)
ATSCap: Invalidate Queue Depth: 00
ATSCtl: Enable-, Smallest Translation Unit: 00
Capabilities: [2c0 v1] Page Request Interface (PRI)
PRICtl: Enable- Reset-
PRISta: RF- UPRGI- Stopped+
Page Request Capacity: 00000020, Page Request Allocation: 00000000
Capabilities: [2d0 v1] Process Address Space ID (PASID)
PASIDCap: Exec+ Priv+, Max PASID Width: 10
PASIDCtl: Enable- Exec- Priv-
Kernel driver in use: amdgpu
lspci: Unable to load libkmod resources: error -12