Re: HWPMC panic

2015-09-22 Thread Larry Rosenman

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
r...@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
0xfe0238744770 vpanic() at vpanic+0x189/frame
0xfe02387447f0 kassert_panic() at kassert_panic+0x132/frame
0xfe0238744860 p4_read_pmc() at p4_read_pmc+0x185/frame
0xfe02387448b0 pmc_stop() at pmc_stop+0x132/frame
0xfe02387448f0 pmc_syscall_handler() at
pmc_syscall_handler+0x1752/frame 0xfe0238744ae0 amd64_syscall()
at amd64_syscall+0x25d/frame 0xfe0238744bf0 Xfast_syscall() at
Xfast_syscall+0xfb/frame 0xfe0238744bf0 --- syscall (0, FreeBSD
ELF64, nosys), rip = 0x801407ffa, rsp = 0x7fffe588, rbp =
0x7fffe5a0 --- 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  0x80b34ca5 in
kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:329 #2
0x80b35298 in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:626 #3
0x80b350c2 in kassert_panic (fmt=) at
/usr/src/sys/kern/kern_shutdown.c:516 #4  0x8242ee25 in
p4_read_pmc (cpu=1, ri=12, v=0xf8012b206aa0) at
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_piv.c:699 #5
0x82425102 in pmc_stop (pm=0xf8012b206a80) at
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:2741 #6
0x82423a12 in pmc_syscall_handler (td=, syscall_args=) at
/usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:3923 #7
0x80f7c38d in amd64_syscall (td=0xf801060759a0,
traced=0) at subr_syscall.c:133 #8  0x80f5b26b in
Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:395 #9
0x000801407ffa 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

Features2=0x29ee3ff
  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

iQF8BAEBCgBmBQJWAb1iXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
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-unsubscr...@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: l...@lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, T

Re: HWPMC panic

2015-09-22 Thread Sean Bruno
-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
> r...@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
> 0xfe0238744770 vpanic() at vpanic+0x189/frame
> 0xfe02387447f0 kassert_panic() at kassert_panic+0x132/frame
> 0xfe0238744860 p4_read_pmc() at p4_read_pmc+0x185/frame
> 0xfe02387448b0 pmc_stop() at pmc_stop+0x132/frame
> 0xfe02387448f0 pmc_syscall_handler() at
> pmc_syscall_handler+0x1752/frame 0xfe0238744ae0 amd64_syscall()
> at amd64_syscall+0x25d/frame 0xfe0238744bf0 Xfast_syscall() at
> Xfast_syscall+0xfb/frame 0xfe0238744bf0 --- syscall (0, FreeBSD
> ELF64, nosys), rip = 0x801407ffa, rsp = 0x7fffe588, rbp =
> 0x7fffe5a0 --- 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 221pcpu.h: No such file or directory. in pcpu.h (kgdb)
> #0  doadump (textdump=1) at pcpu.h:221 #1  0x80b34ca5 in
> kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:329 #2
> 0x80b35298 in vpanic (fmt=, ap= optimized out>) at /usr/src/sys/kern/kern_shutdown.c:626 #3
> 0x80b350c2 in kassert_panic (fmt=) at
> /usr/src/sys/kern/kern_shutdown.c:516 #4  0x8242ee25 in
> p4_read_pmc (cpu=1, ri=12, v=0xf8012b206aa0) at
> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_piv.c:699 #5
> 0x82425102 in pmc_stop (pm=0xf8012b206a80) at
> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:2741 #6
> 0x82423a12 in pmc_syscall_handler (td= out>, syscall_args=) at
> /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:3923 #7
> 0x80f7c38d in amd64_syscall (td=0xf801060759a0,
> traced=0) at subr_syscall.c:133 #8  0x80f5b26b in
> Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:395 #9
> 0x000801407ffa 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

Features2=0x29ee3ff
  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

iQF8BAEBCgBmBQJWAb1iXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
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-unsubscr...@freebsd.org"


HWPMC panic

2015-08-26 Thread Larry Rosenman
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 r...@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 0xfe0238744770
vpanic() at vpanic+0x189/frame 0xfe02387447f0
kassert_panic() at kassert_panic+0x132/frame 0xfe0238744860
p4_read_pmc() at p4_read_pmc+0x185/frame 0xfe02387448b0
pmc_stop() at pmc_stop+0x132/frame 0xfe02387448f0
pmc_syscall_handler() at pmc_syscall_handler+0x1752/frame 0xfe0238744ae0
amd64_syscall() at amd64_syscall+0x25d/frame 0xfe0238744bf0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfe0238744bf0
--- syscall (0, FreeBSD ELF64, nosys), rip = 0x801407ffa, rsp = 0x7fffe588, 
rbp = 0x7fffe5a0 ---
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  0x80b34ca5 in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:329
#2  0x80b35298 in vpanic (fmt=, 
ap=) at /usr/src/sys/kern/kern_shutdown.c:626
#3  0x80b350c2 in kassert_panic (fmt=)
at /usr/src/sys/kern/kern_shutdown.c:516
#4  0x8242ee25 in p4_read_pmc (cpu=1, ri=12, v=0xf8012b206aa0)
at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_piv.c:699
#5  0x82425102 in pmc_stop (pm=0xf8012b206a80)
at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:2741
#6  0x82423a12 in pmc_syscall_handler (td=, 
syscall_args=)
at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:3923
#7  0x80f7c38d in amd64_syscall (td=0xf801060759a0, traced=0)
at subr_syscall.c:133
#8  0x80f5b26b in Xfast_syscall ()
at /usr/src/sys/amd64/amd64/exception.S:395
#9  0x000801407ffa in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb) 


vmcore IS available, and I *CAN* give ssh access.

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"