From flz@xbsd.org  Tue Apr 19 17:50:33 2005
Return-Path: <flz@xbsd.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2BAD216A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Apr 2005 17:50:33 +0000 (GMT)
Received: from smtp.xbsd.org (xbsd.org [82.233.2.192])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 608C743D5F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Apr 2005 17:50:32 +0000 (GMT)
	(envelope-from flz@xbsd.org)
Received: from localhost (localhost.xbsd.org [127.0.0.1])
	by smtp.xbsd.org (Postfix) with ESMTP id 3D1EE11925
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Apr 2005 19:56:11 +0200 (CEST)
Received: from smtp.xbsd.org ([127.0.0.1])
 by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 94376-02 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue, 19 Apr 2005 19:55:56 +0200 (CEST)
Received: by smtp.xbsd.org (Postfix, from userid 2001)
	id BF45711A7B; Tue, 19 Apr 2005 19:55:56 +0200 (CEST)
Message-Id: <20050419175556.BF45711A7B@smtp.xbsd.org>
Date: Tue, 19 Apr 2005 19:55:56 +0200 (CEST)
From: Florent Thoumie <flz@xbsd.org>
Reply-To: Florent Thoumie <flz@xbsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kldload snd_ich causes interrupt storm when ACPI is enabled
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80114
>Category:       amd64
>Synopsis:       [irq] kldload snd_ich causes interrupt storm when ACPI is enabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 18:00:36 GMT 2005
>Closed-Date:    Mon Jul 23 03:49:01 GMT 2007
>Last-Modified:  Mon Jul 23 03:49:01 GMT 2007
>Originator:     Florent Thoumie
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
Xbsd.org
>Environment:
System: FreeBSD srv1.xbsd.org 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Wed Nov 24 16:35:34 CET 2004 root@gate.xbsd.org:/usr/src/sys/i386/compile/GATE i386

>Description:

Here is the trace I got :

flz cream> kgdb -c /usr/tmp/vmcore.6 /usr/src/sys/amd64/compile/CREAM/kernel.deb
ug
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Unde
fined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".
#0  doadump () at pcpu.h:167
167     pcpu.h: No such file or directory.
        in pcpu.h
(gdb) bt
#0  doadump () at pcpu.h:167
#1  0x0000000000000000 in ?? ()
#2  0xffffffff8031ffb7 in boot (howto=260)
    at ../../../kern/kern_shutdown.c:410
#3  0xffffffff80320696 in panic (fmt=0xffffff0015e02a00 "e\026")
    at ../../../kern/kern_shutdown.c:566
#4  0xffffffff80484e42 in trap_fatal (frame=0xffffff0015e02a00,
    eva=18446742974580549072) at ../../../amd64/amd64/trap.c:631
#5  0xffffffff8048515f in trap_pfault (frame=0xffffffff96a1c3c0, usermode=0)
    at ../../../amd64/amd64/trap.c:554
#6  0xffffffff80485403 in trap (frame=
      {tf_rdi = -1099500558560, tf_rsi = 4, tf_rdx = 20, tf_rcx = -1099123103672
, tf_r8 = 0, tf_r9 = -1, tf_rax = 3524276224, tf_rbx = -1099500558560, tf_rbp =
0, tf_r10 = 8194, tf_r11 = -2145800080, tf_r12 = 0, tf_r13 = -1, tf_r14 = 4, tf_
r15 = 256, tf_trapno = 12, tf_addr = 3524276232, tf_flags = -2140179872, tf_err
= 0, tf_rip = -2144108211, tf_cs = 8, tf_rflags = 66054, tf_rsp = -1767783288, t
f_ss = 16}) at ../../../amd64/amd64/trap.c:333
#7  0xffffffff80474d1b in calltrap () at ../../../amd64/amd64/exception.S:171
#8  0xffffff0000a8e720 in ?? ()
#9  0x0000000000000004 in ?? ()
#10 0x0000000000000014 in ?? ()
#11 0xffffff0017286848 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0xffffffffffffffff in ?? ()
#14 0x00000000d2103000 in ?? ()
#15 0xffffff0000a8e720 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x0000000000002002 in ?? ()
#18 0xffffffff8019b070 in acpi_sysres_find ()
    at ../../../dev/acpica/acpi.c:960
#19 0x0000000000000000 in ?? ()
#20 0xffffffffffffffff in ?? ()
#21 0x0000000000000004 in ?? ()
#22 0x0000000000000100 in ?? ()
#23 0x000000000000000c in ?? ()
#24 0x00000000d2103008 in ?? ()
#25 0xffffffff806f7260 in kernel_console_ts ()
#26 0x0000000000000000 in ?? ()
#27 0xffffffff8033814d in resource_list_find (rl=0x0, type=0, rid=0)
    at ../../../kern/subr_bus.c:2480
#28 0x0000000000000008 in ?? ()
#29 0x0000000000010206 in ?? ()
#30 0xffffffff96a1c488 in ?? ()
#31 0x0000000000000010 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0xffffffff8019b10b in acpi_alloc_resource (bus=0xffffff0000994c00,
    child=0xffffff0000a8e600, type=4, rid=0xffffff0017286848, start=0,
    end=18446744073709551615, count=256, flags=8194)
    at ../../../dev/acpica/acpi.c:982
#34 0xffffffff802746be in pci_alloc_resource (dev=0x1e,
    child=0xffffff0000a8e600, type=4, rid=0xffffff0017286848, start=0,
    end=18446744073709551615, count=0, flags=2) at bus_if.h:262
#35 0xffffffff80335714 in bus_alloc_resource (dev=0xffffff0000a8e600, type=4,
    rid=0xffffff0017286848, start=0, end=18446744073709551615, count=1,
    flags=0) at bus_if.h:262
#36 0xffffffff96a9b350 in ?? ()
#37 0xffffff0000000002 in ?? ()
#38 0xffffff001ffe5000 in ?? ()
#39 0x0000000000000001 in ?? ()
#40 0xffffff0000ad5300 in ?? ()
#41 0xffffff001ffe5000 in ?? ()
#42 0xffffffff803148f9 in malloc (size=0, type=0xffffff0000a8e600,
    flags=-1767259808) at ../../../kern/kern_malloc.c:292
#43 0x00000000005910de in ?? ()
#44 0x0000000000000043 in ?? ()
#45 0xffffffff802741fb in pci_read_ivar (dev=0x0, child=0x0, which=11069064,
    result=0xffffffff803283bc) at ../../../dev/pci/pci.c:1464
#46 0xffffffff80273b00 in pci_print_child (dev=0x5910de, child=0x5910de)
    at ../../../dev/pci/pci.c:1197
#47 0xffffffff80337a28 in device_attach (dev=0xffffff0000a8e600)
    at device_if.h:177
#48 0xffffffff80273958 in pci_driver_added (dev=0xffffff0000a8e600,
    driver=0x5) at ../../../dev/pci/pci.c:1170
#49 0xffffffff8033653c in devclass_add_driver (dc=0xffffff00009b6800,
    driver=0xffffffff96a9c160) at bus_if.h:183
#50 0xffffffff80339e89 in driver_module_handler (mod=0xffffff0015adb480,
    what=-1767259808, arg=0x0) at ../../../kern/subr_bus.c:3535
#51 0xffffffff80315fa6 in module_register_init (arg=0x0)
    at ../../../kern/kern_module.c:121
#52 0xffffffff803124d8 in linker_load_module (
    kldname=0xffffff00009e5420 "/boot/kernel/snd_ich.ko",
    modname=0xffffff0000aaf400 "snd_ich", parent=0x0, verinfo=0x0,
    lfpp=0xffffffff96a1cb70) at ../../../kern/kern_linker.c:193
#53 0xffffffff80312709 in kldload (td=0xffffff0015e02a00,
    uap=0xffffffff96a1cbc0) at ../../../kern/kern_linker.c:776
#54 0xffffffff80485b0c in syscall (frame=
      {tf_rdi = 140737488350808, tf_rsi = 140737488350376, tf_rdx = 1, tf_rcx =
140737488350808, tf_r8 = 4294967295, tf_r9 = 140737488350072, tf_rax = 304, tf_r
bx = 0, tf_rbp = 140737488350384, tf_r10 = 4294967295, tf_r11 = 598, tf_r12 = 0,
 tf_r13 = 0, tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 34366580844, tf_f
lags = 0, tf_err = 2, tf_rip = 34366580856, tf_cs = 43, tf_rflags = 514, tf_rsp
= 140737488350264, tf_ss = 35}) at ../../../amd64/amd64/trap.c:763
#55 0xffffffff80474e58 in Xfast_syscall ()
    at ../../../amd64/amd64/exception.S:248
#56 0x00007fffffffee58 in ?? ()
#57 0x00007fffffffeca8 in ?? ()

dmesg is at [1] and kernel configuration is at [2].

Notes: I'm using SCHED_ULE and PREEMPTION.

[1] http://people.freebsd.org/~flz/local/dmesg.cream
[2] http://people.freebsd.org/~flz/local/CREAM

>How-To-Repeat:

Boot my box (Asus A8N-SLI Deluxe Motherboard) with ACPI enabled
# kldload snd_ich
*kaboom*

>Fix:


>Release-Note:
>Audit-Trail:

From: "David O'Brien" <obrien@FreeBSD.org>
To: Florent Thoumie <flz@xbsd.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: amd64/80114: kldload snd_ich causes interrupt storm when ACPI is enabled
Date: Wed, 27 Apr 2005 08:39:12 -0700

 On Tue, Apr 19, 2005 at 07:55:56PM +0200, Florent Thoumie wrote:
 > Notes: I'm using SCHED_ULE and PREEMPTION.
 
 SCHED_ULE has many known problems.  Please try again with the standard
 BSD scheduler.
 
 -- 
 -- David  (obrien@FreeBSD.org)

From: Matthias Apitz <guru@Sisis.de>
To: bug-followup@freebsd.org, flz@xbsd.org
Cc:  
Subject: Re: amd64/80114: kldload snd_ich causes interrupt storm when ACPI is enabled
Date: Sun, 25 Sep 2005 16:04:47 +0200

 Hello,
 
 I can see the same problem on i386 notebook with 5.4-RELEASE,
 GENERIC kernel and the following modules loaded:
 
 # kldstat
 Id Refs Address    Size     Name
  1   15 0xc0400000 5dde24   kernel
  2    1 0xc09de000 47e4     if_tap.ko
  3    1 0xc09e3000 d164     kqemu.ko
  4   14 0xc09f1000 56270    acpi.ko
  5    1 0xc2784000 1c000    ipl.ko
  6    1 0xc2867000 17000    linux.ko
  7    2 0xc2ad2000 18000    sound.ko
  9    1 0xc2b49000 17000    radeon.ko
 10    1 0xc2af1000 5000     snd_ich.ko
 
 # kldunload snd_ich
 Interrupt storm detected on "irq11: cbb1 pcm0+++"; throttling interrupt source
 pcm0: detached
 
 # kldload snd_ich
 pcm0: <SiS 7012> port 0x1800-0x187f,0x1c00-0x1cff irq 11 at device 2.7 on pci0
 pcm0: <Cirrus Logic CS4299 AC97 Codec>
 
 After 'kldunload snd_ich' and 'kldload snd_ich' sound works fine.
 
 	matthias
 -- 
 Matthias Apitz / Sisis Informationssysteme GmbH
 Gruenwalder Weg 28g / D-82041 Oberhaching
 Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
 http://www.sisis.de/
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Jun 2 19:29:59 UTC 2007 
State-Changed-Why:  
Is this still a problem with recent versions of FreeBSD? 


Responsible-Changed-From-To: freebsd-amd64->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 2 19:29:59 UTC 2007 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=80114 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 23 03:48:46 UTC 2007 
State-Changed-Why:  
Feedback timeout (1 month). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80114 
>Unformatted:
