From owner-freebsd-current@freebsd.org Tue Sep 22 20:45:37 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D7C0A02E22; Tue, 22 Sep 2015 20:45:37 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 07ED310BD; Tue, 22 Sep 2015 20:45:37 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version; bh=kz2CxWCd0GIhmUVXkz/z7qcs7dHYeYj6wBWlte7259I=; b=rlRid6Jolzs+6AIlLbmlMgB1bC mB1Pmb4/MKZXUyFJWaM3aN4iqCsQvPMSbrwZcxQdOfrbtk3z9Fkh3kpwBRvn1KH+Z4j7zG29NOiPL hPdd6djmCsA4Y7gLgzlW2GnSxOvesE9stsmoWYgDD8R8KwWblXlDMtBOLc87nGjKJjls=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:51283 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1:ECDHE-RSA-AES128-SHA:128) (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ZeURT-000E1C-Vk; Tue, 22 Sep 2015 15:45:36 -0500 Received: from cpe-70-113-56-244.austin.res.rr.com ([70.113.56.244]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Tue, 22 Sep 2015 15:45:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Sep 2015 15:45:35 -0500 From: Larry Rosenman To: Sean Bruno Cc: freebsd-current@freebsd.org, owner-freebsd-current@freebsd.org Subject: Re: HWPMC panic In-Reply-To: <5601BD65.3090200@freebsd.org> References: <20150826211242.GA901@oldtbh.lerctr.org> <5601BD65.3090200@freebsd.org> Message-ID: <1a15ea292c9dc9f560c4e176e3db000d@thebighonker.lerctr.org> X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/1.1.2 X-Spam-Score: -1.0 (-) X-LERCTR-Spam-Score: -1.0 (-) X-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 X-LERCTR-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 20:45:37 -0000 On 2015-09-22 15:43, Sean Bruno wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > > > On 08/26/15 14:12, Larry Rosenman wrote: >> Was playing with pmcstats -S instructions -T, and got the following >> when I tried to ctrl/c out. >> >> >> oldtbh.lerctr.org dumped core - see /var/crash/vmcore.3 >> >> Wed Aug 26 16:05:16 CDT 2015 >> >> FreeBSD oldtbh.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #18 >> r287033: Sun Aug 23 18:08:24 CDT 2015 >> root@oldtbh.lerctr.org:/usr/obj/usr/src/sys/VT-LER amd64 >> >> panic: [p4,700] class mismatch pd 260 != id class 4 >> >> 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"... >> >> Unread portion of the kernel message buffer: panic: [p4,700] class >> mismatch pd 260 != id class 4 cpuid = 1 KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >> 0xfffffe0238744770 vpanic() at vpanic+0x189/frame >> 0xfffffe02387447f0 kassert_panic() at kassert_panic+0x132/frame >> 0xfffffe0238744860 p4_read_pmc() at p4_read_pmc+0x185/frame >> 0xfffffe02387448b0 pmc_stop() at pmc_stop+0x132/frame >> 0xfffffe02387448f0 pmc_syscall_handler() at >> pmc_syscall_handler+0x1752/frame 0xfffffe0238744ae0 amd64_syscall() >> at amd64_syscall+0x25d/frame 0xfffffe0238744bf0 Xfast_syscall() at >> Xfast_syscall+0xfb/frame 0xfffffe0238744bf0 --- syscall (0, FreeBSD >> ELF64, nosys), rip = 0x801407ffa, rsp = 0x7fffffffe588, rbp = >> 0x7fffffffe5a0 --- Uptime: 2d8h36m19s Dumping 3475 out of 8158 >> MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% >> >> Reading symbols from /boot/kernel/if_lagg.ko.symbols...done. Loaded >> symbols for /boot/kernel/if_lagg.ko.symbols Reading symbols from >> /boot/kernel/hwpmc.ko.symbols...done. Loaded symbols for >> /boot/kernel/hwpmc.ko.symbols #0 doadump (textdump=1) at >> pcpu.h:221 221 pcpu.h: No such file or directory. in pcpu.h (kgdb) >> #0 doadump (textdump=1) at pcpu.h:221 #1 0xffffffff80b34ca5 in >> kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:329 #2 >> 0xffffffff80b35298 in vpanic (fmt=, ap=> optimized out>) at /usr/src/sys/kern/kern_shutdown.c:626 #3 >> 0xffffffff80b350c2 in kassert_panic (fmt=) at >> /usr/src/sys/kern/kern_shutdown.c:516 #4 0xffffffff8242ee25 in >> p4_read_pmc (cpu=1, ri=12, v=0xfffff8012b206aa0) at >> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_piv.c:699 #5 >> 0xffffffff82425102 in pmc_stop (pm=0xfffff8012b206a80) at >> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:2741 #6 >> 0xffffffff82423a12 in pmc_syscall_handler (td=> out>, syscall_args=) at >> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:3923 #7 >> 0xffffffff80f7c38d in amd64_syscall (td=0xfffff801060759a0, >> traced=0) at subr_syscall.c:133 #8 0xffffffff80f5b26b in >> Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:395 #9 >> 0x0000000801407ffa in ?? () Previous frame inner to this frame >> (corrupt stack?) Current language: auto; currently minimal (kgdb) >> >> >> >> vmcore IS available, and I *CAN* give ssh access. >> > > > Odd, can you post what CPU type you have? e.g. from my dmesg: > > CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2400.13-MHz > K8-class CPU) > Origin="GenuineIntel" Id=0x206c2 Family=0x6 Model=0x2c Stepping=2 > > Features=0xbfebfbff ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > Features2=0x29ee3ff E3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AESNI> > AMD Features=0x2c100800 > AMD Features2=0x1 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQF8BAEBCgBmBQJWAb1iXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kcewIAISYfYFC/9rpqZ3vb+ZwIdlc > Jhlt15YNhNn10NjtEEi5VE90+gSHXW5I96qTmBaplCNOYRBc86D8KgNUMJT48H2e > VTL0J2nBLn6jsqflq+08ps4/z0yFd7L8f+1EayP9RpkXsD6ZpdqMQsX26fT6UZDK > q1lTJI9eEngN7EsbIcCmSYYm2geieePxOQgJIOXCO2k8MnB6yfiTHIowTe2klLvT > aHzcr6YOCIVG42KFdNFg8ECjBF2VAzov08u5axVuzC447OI9dsItE2f7xum7Cwq6 > Tq7kVMI+0+XXxXHCq/ju7gjvp0E5hRqsi3TiO7eEz6WmIYyTnnD8A+ffgC/9v/A= > =C+xz > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" CPU: Intel(R) Xeon(TM) CPU 3.00GHz (2992.57-MHz K8-class CPU) Origin="GenuineIntel" Id=0xf43 Family=0xf Model=0x4 Stepping=3 Features=0xbfebfbff Features2=0x641d AMD Features=0x20100800 TSC: P-state invariant real memory = 9395240960 (8960 MB) avail memory = 8257761280 (7875 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 2 package(s) x 1 core(s) x 2 HTT threads -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961