Bug 238030 - graphics/drm-fbsd12.0-kmod System panic on suspend/resume with drm hang (Sandy Bridge)
Summary: graphics/drm-fbsd12.0-kmod System panic on suspend/resume with drm hang (Sand...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Johannes M Dieterich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-21 18:16 UTC by rkoberman
Modified: 2019-05-24 06:50 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jmd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rkoberman 2019-05-21 18:16:10 UTC
When attempting to suspend, the display swithe from X to vt, but did not turn off. The power light was flashing slowly, as it does when suspended, but pressing it did not resume the session and after sitting for a few minutes, the system paniced and rebooted.

I have a core dump.

System is ThinkPad 520, Sandy Bridge.
FreeBSD rogue 12.0-STABLE FreeBSD 12.0-STABLE r347635 GENERIC_4BSD  amd64
drm-fbsd12.0-kmod-4.16.g20190430

From dmesg:
vgapci0: child drmn0 requested pci_disable_io
vgapci0: child drmn0 requested pci_disable_io
vgapci0: child drmn0 requested pci_set_powerstate
pci0: failed to set ACPI power state D3 on \134_SB_.PCI0.VID_: AE_BAD_PARAMETER
pcib0: failed to set ACPI power state D2 on \134_SB_.PCI0: AE_BAD_PARAMETER
acpi0: cleared fixed power button status
vgapci0: child drmn0 requested pci_set_powerstate
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
vblank wait timed out on crtc 0
[drm:drm_atomic_helper_wait_for_flip_done] [CRTC:37:pipe A] flip_done timed out
uhub0: 3 ports with 3 removable, self powered
uhub1: 3 ports with 3 removable, self powered
Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer    = 0x20:0xffffffff82abd124
stack pointer          = 0x28:0xfffffe004e13f520
frame pointer          = 0x28:0xfffffe004e13f550
code segment           = base rx0, limit 0xfffff, type 0x1b
                       = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags       = interrupt enabled, resume, IOPL = 0
current process                = 2715 (VirtualBox)
trap number            = 1
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:577
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:577
WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:622
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARNING !drm_modeset_is_locked(&plane->mutex) failed at /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-6a70888/drivers/gpu/drm/drm_atomic_helper.c:821
WARN_ON(!mutex_is_locked(&dev->struct_mutex))
                   
WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
panic: privileged instruction fault
cpuid = 1
time = 1558422039
KDB: stack backtrace:
#0 0xffffffff80c13c67 at kdb_backtrace+0x67
#1 0xffffffff80bca6cd at vpanic+0x19d
#2 0xffffffff80bca523 at panic+0x43
#3 0xffffffff810a37f4 at trap_fatal+0x394
#4 0xffffffff810a2c0c at trap+0x6c
#5 0xffffffff8107db95 at calltrap+0x8
#6 0xffffffff82abca1d at logo_update.ypos+0xcf91
#7 0xffffffff82ad5df4 at logo_update.ypos+0x26368
#8 0xffffffff825e2f3c at supdrvIOCtlFast+0x9c
#9 0xffffffff825f236c at VBoxDrvFreeBSDIOCtl+0x5c
#10 0xffffffff80a80d6d at devfs_ioctl+0xad
#11 0xffffffff81225d2c at VOP_IOCTL_APV+0x7c
#12 0xffffffff80ca65e1 at vn_ioctl+0x161
#13 0xffffffff80a8135f at devfs_ioctl_f+0x1f
#14 0xffffffff80c31a47 at kern_ioctl+0x267
#15 0xffffffff80c3176d at sys_ioctl+0x15d
#16 0xffffffff810a43c4 at amd64_syscall+0x364
#17 0xffffffff8107e47d at fast_syscall_common+0x101
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683