Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2011 04:13:44 GMT
From:      Arnaud Lacombe <lacombar@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/156540: hwpmc(4) crash when loaded on unknown AMD cpu
Message-ID:  <201104210413.p3L4DiqN086532@red.freebsd.org>
Resent-Message-ID: <201104210420.p3L4K6ZO010466@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156540
>Category:       i386
>Synopsis:       hwpmc(4) crash when loaded on unknown AMD cpu
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 21 04:20:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Arnaud Lacombe
>Release:        HEAD
>Organization:
n/a
>Environment:
>Description:
Loading hwpmc.ko on a net5501 (AMD Geode LX) trigger the following crash:

# kldload hwpmc
pmc: Unknown AMD CPU.


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc22b9e63
stack pointer           = 0x28:0xc6f9a960
frame pointer           = 0x28:0xc6f9a974
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 1318 (kldload)
[ thread pid 1318 tid 100037 ]
Stopped at      pmc_md_initialize+0x93: movl    0x8(%edx),%edx
db> bt
Tracing pid 1318 tid 100037 td 0xc20c18a0
pmc_md_initialize(c6f9a9b8,246,c07ff47a,c20c1950,c07ff47a,...) at pmc_md_initialize+0x93
pmc_initialize(0,0,c6f9aa00,c05adbcb,c1f0f2c0,...) at pmc_initialize+0xfc
load(c1f0f2c0,0,0,a2,d2,...) at load+0x31
syscall_module_handler(c1f0f2c0,0,c22c03a0,75,30c,...) at syscall_module_handler+0xcb
module_register_init(c22c03d0,0,c07fa9d4,e6,0,...) at module_register_init+0xb1
linker_load_module(0,c2154000,0,0,c6f9ac18,...) at linker_load_module+0xa35
kern_kldload(c20c18a0,c2154000,c6f9ac40,0,c20c5000,...) at kern_kldload+0xd6
kldload(c20c18a0,c6f9acec,0,c0833534,0,...) at kldload+0x79
syscallenter(c20c18a0,c6f9ace4,c07b2fc0,c0892750,0,...) at syscallenter+0x263
syscall(c6f9ad28) at syscall+0x39
Xint0x80_syscall() at Xint0x80_syscall+0x2b
--- syscall (304, FreeBSD ELF32, kldload), eip = 0x280d612b, esp = 0xbfbfe76c, ebp = 0xbfbfec58 ---
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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