Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2012 10:35:01 +0100
From:      David Demelier <demelier.david@gmail.com>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-acpi@FreeBSD.org
Subject:   Re: Kernel panic when playing games/iourbanterror
Message-ID:  <50DD67C5.60504@gmail.com>
In-Reply-To: <50D879A1.40206@FreeBSD.org>
References:  <50D85E24.7000108@gmail.com> <50D879A1.40206@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24/12/2012 16:49, Andriy Gapon wrote:
> on 24/12/2012 15:52 David Demelier said the following:
>> #6  0xffffffff806e81bf in calltrap ()
>>      at /usr/src/sys/amd64/amd64/exception.S:228
>> #7  0xffffffff802c6f15 in AcpiUtUpdateObjectReference (
>>      Object=0xfffffe0001824a80, Action=0)
>>      at /usr/src/sys/contrib/dev/acpica/utilities/utdelete.c:563
>> #8  0xffffffff802b77a4 in AcpiExResolveNodeToValue (
>>      ObjectPtr=0xfffffe0001a2c2e0, WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/executer/exresnte.c:184
>> #9  0xffffffff802b7ad3 in AcpiExResolveToValue (StackPtr=0xfffffe0001a2c2e0,
>>      WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/executer/exresolv.c:124
>> #10 0xffffffff802ac433 in AcpiDsEvaluateNamePath (WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/dispatcher/dsutils.c:886
>> ---Type <return> to continue, or q <return> to quit---
>> #11 0xffffffff802aceef in AcpiDsExecEndOp (WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/dispatcher/dswexec.c:436
>> #12 0xffffffff802c05ba in AcpiPsParseLoop (WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/parser/psloop.c:1249
>> #13 0xffffffff802c10a8 in AcpiPsParseAml (WalkState=0xfffffe0001a2c000)
>>      at /usr/src/sys/contrib/dev/acpica/parser/psparse.c:525
>> #14 0xffffffff802c1d45 in AcpiPsExecuteMethod (Info=0xfffffe0033df8540)
>>      at /usr/src/sys/contrib/dev/acpica/parser/psxface.c:368
>> #15 0xffffffff802bb784 in AcpiNsEvaluate (Info=0xfffffe0033df8540)
>>      at /usr/src/sys/contrib/dev/acpica/namespace/nseval.c:193
>> #16 0xffffffff802bec91 in AcpiEvaluateObject (Handle=0xfffffe00017f7b80,
>>      Pathname=0xffffffff8078229f "_BST", ExternalParams=0x0,
>>      ReturnBuffer=0xffffff80d89ac960)
>>      at /usr/src/sys/contrib/dev/acpica/namespace/nsxfeval.c:289
>> #17 0xffffffff80309802 in acpi_cmbat_get_bst (arg=Variable "arg" is not available.
>> )
>>      at /usr/src/sys/dev/acpica/acpi_cmbat.c:257
>> #18 0xffffffff80309af8 in acpi_cmbat_bst (dev=0xfffffe0001936400,
>>      bstp=0xfffffe008b319400) at /usr/src/sys/dev/acpica/acpi_cmbat.c:418
>> #19 0xffffffff8045bd22 in devfs_ioctl_f (fp=0xfffffe001ba256e0,
>>      com=3231990289, data=Variable "data" is not available.
>> ) at /usr/src/sys/fs/devfs/devfs_vnops.c:757
>> #20 0xffffffff8053a23d in kern_ioctl (td=0xfffffe00039ae8e0, fd=Variable "fd" is
>> not available.
>> ) at file.h:293
>> #21 0xffffffff8053a4ad in sys_ioctl (td=0xfffffe00039ae8e0,
>>      uap=0xffffff80d89acb70) at /usr/src/sys/kern/sys_generic.c:691
>> ---Type <return> to continue, or q <return> to quit---
>> #22 0xffffffff806fc902 in amd64_syscall (td=0xfffffe00039ae8e0, traced=0)
>>      at subr_syscall.c:135
>> #23 0xffffffff806e84a7 in Xfast_syscall ()
>>      at /usr/src/sys/amd64/amd64/exception.S:387
>> #24 0x0000000801d89c5c in ?? ()
>> Previous frame inner to this frame (corrupt stack?)
>>
>> Before the panic, a lot of ACPI Error appears in dmesg like that :
>>
>> ACPI Error: Method execution failed [\\_SB_.BAT0._UID] (Node 0xfffffe00017f7b00),
>> AE_AML_NO_OPERAND (20110527/uteval-113)
>> ACPI Error: No object attached to node 0xfffffe00017f7b00 (20110527/exresnte-139)
>> ACPI Error: Method execution failed [\\_SB_.BAT0._UID] (Node 0xfffffe00017f7b00),
>> AE_AML_NO_OPERAND (20110527/uteval-113)
>> ACPI Error: No object attached to node 0xfffffe00017f7b00 (20110527/exresnte-139)
>>
>> This happens on 9.1-RELEASE amd64
>
> Could you please try a patch from a parallel thread:
> http://thread.gmane.org/gmane.os.freebsd.devel.acpi/7562/focus=7611
> ?
>

I'm not used to the patch / diff files, how do you apply it? I selected 
all the patch text from the mail and wrote it in a acpi.patch file, but 
when I tried to do patch -p1 < acpi.patch inside /usr/src I got this error:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/sys/dev/acpica/Osd/OsdMemory.c
|+++ b/sys/dev/acpica/Osd/OsdMemory.c
--------------------------
Patching file sys/dev/acpica/Osd/OsdMemory.c using Plan A...
Hunk #1 succeeded at 39 with fuzz 2.
patch: **** malformed patch at line 12: Value, UINT32 Width)





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50DD67C5.60504>