NetBSD Problem Report #49252

From  Thu Oct  2 10:48:45 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id E2235A650D
	for <>; Thu,  2 Oct 2014 10:48:44 +0000 (UTC)
Message-Id: <>
Date: Thu,  2 Oct 2014 12:48:40 +0200 (SAST)
Subject: drm2 panic
X-Send-Pr-Version: 3.95

>Number:         49252
>Category:       kern
>Synopsis:       drm2 panic "cpu_switchto: switching above IPL_SCHED" -- DRMKMS
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    riastradh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 02 10:50:00 +0000 2014
>Closed-Date:    Sun May 29 23:36:17 +0000 2016
>Last-Modified:  Sun May 29 23:36:17 +0000 2016
>Originator:     Alan Barrett
>Release:        NetBSD 7.99.1
Not much
NetBSD 7.99.1 i386
Sources checked out from CVS with -D '2014-09-26 00:00 UTC'.
	Yet another drm2 panic.
	The panic message is "cpu_switchto: switching above IPL_SCHED (8)"

	The backtrace from gdb is:

#10 0xc08b9f40 in vpanic (
    fmt=fmt@entry=0xc01003d1 <cpu_switchto+33> "cpu_switchto: switching above IPL_SCHED (%d)", ap=ap@entry=0xdea26cc0 "\b")
    at src/sys/kern/subr_prf.c:338
#11 0xc08b9fda in panic (
    fmt=0xc01003d1 <cpu_switchto+33> "cpu_switchto: switching above IPL_SCHED (%d)") at src/sys/kern/subr_prf.c:256
#12 0xc01003ce in cpu_switchto ()
#13 0xc4ea8040 in ?? ()
#14 0xc0659c24 in sleepq_block (timo=timo@entry=0, catch_p=catch_p@entry=true)
    at src/sys/kern/kern_sleepq.c:264
#15 0xc062a53a in cv_wait_sig (cv=cv@entry=0xc49ad634,
    at src/sys/kern/kern_condvar.c:239
#16 0xc03a6e3c in __wait_seqno (ring=ring@entry=0xc49ad574,
    seqno=seqno@entry=2169, reset_counter=reset_counter@entry=0,
    interruptible=interruptible@entry=true, timeout=timeout@entry=0x0,
    at src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1429
#17 0xc03a8dd5 in i915_gem_object_wait_rendering__nonblocking (
    obj=obj@entry=0xc4f27200, file_priv=0xc6641cdc, readonly=<optimized out>)
    at src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1651
#18 0xc03ad3a9 in i915_gem_set_domain_ioctl (dev=0xc4ece64c, data=0xdea26eb0,
    at src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1702
#19 0xc02bfb9c in drm_ioctl (fp=0xc77e6e00, cmd=2148295775, data=0xdea26eb0)
    at src/sys/external/bsd/drm2/drm/drm_drv.c:664
#20 0xc08d1080 in sys_ioctl (l=0xc7758aa0, uap=0xdea26f68, retval=0xdea26f60)
    at src/sys/kern/sys_generic.c:681
#21 0xc08dc743 in sy_call (rval=0xdea26f60, uap=0xdea26f68, l=0xc7758aa0,
    sy=<optimized out>) at src/sys/sys/syscallvar.h:61
#22 sy_invoke (code=54, rval=0xdea26f60, uap=0xdea26f68, l=0xc7758aa0,
    sy=<optimized out>) at src/sys/sys/syscallvar.h:85
#23 syscall (frame=0xdea26fa8)
    at src/sys/arch/x86/x86/syscall.c:156
#24 0xc01005c6 in Xsyscall ()
#25 0xdea26fa8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) p panicstr
$1 = 0xc104f880 <scratchstr> "cpu_switchto: switching above IPL_SCHED (8)"

	Nothing special.  Just trying to use my laptop with a drm2 kernel.
	DRM-related panics usually occur when I am moving or clicking the
	mouse while X11 is active.

$ egrep -i 'vga|drm|kms' /var/run/dmesg.boot
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0400): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0300): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0301): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0302): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0303): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0304): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0305): ACPI Display Output Device
acpivga0: ERROR: unknown output device acpiout0
acpivga0: ERROR: unknown output device acpiout2
acpivga0: ERROR: unknown output device acpiout3
acpivga0: ERROR: unknown output device acpiout4
acpivga0: ERROR: unknown output device acpiout5
acpivga0: ERROR: unknown output device acpiout6
acpivga0: ERROR: unknown output device acpiout7
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout1): Unknown Output Device, head 0
vendor 10de product 1054 (VGA display, revision 0xa1) at pci1 dev 0 function 0 not configured
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0116 (rev. 0x09)
drm: Memory usable by graphics device = 2048M
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
drm: Wrong MCH_SSKPD value: 0x16040307
drm: This can cause pipe underruns and display issues.
drm: Please upgrade your BIOS to fix this.
intelfb0 at i915drmkms0
i915drmkms0: info: registered panic notifier
drm: Enabling RC6 states: RC6 on, RC6p off, RC6pp off




Responsible-Changed-From-To: kern-bug-people->riastradh
Responsible-Changed-When: Sat, 04 Oct 2014 15:45:18 +0000

State-Changed-From-To: open->feedback
State-Changed-When: Wed, 13 May 2015 23:59:00 +0000
Can you please try again from HEAD and see if this is still a problem?

State-Changed-From-To: feedback->closed
State-Changed-When: Sun, 29 May 2016 23:36:17 +0000
one-year feedback timeout, assume fixed


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.