Skip to content

Instantly share code, notes, and snippets.

View nomadlogic's full-sized avatar

Pete Wright nomadlogic

View GitHub Profile
@nomadlogic
nomadlogic / gist:bfc54315b97d374a7818d29bfc93223e
Created September 10, 2018 19:48
kabylake microcode update
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-ALPHA5 #17 a9dd919a3fb(master): Fri Sep 7 12:47:50 PDT 2018
pete@duke:/usr/obj/usr/home/pete/git/freebsd/amd64.amd64/sys/GENERIC-EVDEV amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
WARNING: WITNESS option enabled, expect reduced performance.
VT(vga): resolution 640x480
$ sudo pkg upgrade collectd5
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 6.1MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 26967 packages processed.
Updating tribdev-prod repository catalogue...
Fetching meta.txz: 100% 264 B 0.3kB/s 00:01
Fetching packagesite.txz: 100% 5 KiB 5.2kB/s 00:01
Processing entries: 100%
===> lib/libufs (all)
/usr/local/libexec/ccache/world/cc -O2 -pipe -D_LIBUFS -I/usr/home/pwright/git/freebsd/lib/libufs -g -MD -MF.depend.block.o -MTblock.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -c /usr/home/pwright/git/freebsd/lib/libufs/block.c -o block.o
/usr/local/libexec/ccache/world/cc -O2 -pipe -D_LIBUFS -I/usr/home/pwright/git/freebsd/lib/libufs -g -MD -MF.depend.cgroup.o -MTcgroup.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -
@nomadlogic
nomadlogic / gist:74fb057f81a8c976e2f038184d99e3fc
Last active September 4, 2017 00:22
drm-next kmod panic on load
Unread portion of the kernel message buffer:
Fatal trap 9: general protection fault while in kernel mode
cpuid = 4; apic id = 04
instruction pointer = 0x20:0xffffffff82c00dba
stack pointer = 0x28:0xfffffe045af607e0
frame pointer = 0x28:0xfffffe045af60840
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
@nomadlogic
nomadlogic / gist:1ac61eece86fe55721d0c250e6bb8582
Created August 25, 2017 17:07
drm-next-4.10 4hour uptime
Fri Aug 25 10:00:01 PDT 2017
FreeBSD runner 12.0-CURRENT FreeBSD 12.0-CURRENT #28 d49e65047528(drm-next-4.10): Thu Aug 24 09:32:18 PDT 2017 pwright@runner:/usr/obj/usr/home/pwright/
git/freebsd-base-graphics/sys/GENERIC amd64
panic: sx lock still held
<snip>
Unread portion of the kernel message buffer:
vt_kms_postswitch() at vt_kms_postswitch+0x52/frame 0xfffffe045a60d680
vt_window_switch() at vt_window_switch+0xdb/frame 0xfffffe045a60d6c0
@nomadlogic
nomadlogic / gist:41e622615a679c97186538d81b47ad5f
Created August 23, 2017 21:10
drm-next-4.10 screen blank and panic
runner dumped core - see /var/crash/vmcore.1
Wed Aug 23 14:06:26 PDT 2017
FreeBSD runner 12.0-CURRENT FreeBSD 12.0-CURRENT #27 cf2d7cc285b7(drm-next-4.10): Wed Aug 23 12:54:07 PDT 2017 pwright@runner:/usr/obj/usr/home/pwright/git/freebsd-base-graphics/sys/GENERIC amd64
panic: sx lock still held
<snip>
Unread portion of the kernel message buffer:
vt_kms_postswitch() at vt_kms_postswitch+0x52/frame 0xfffffe045ad95240
$ sudo clpeak
Platform: Intel Gen OCL Driver
Device: Intel(R) HD Graphics Kabylake ULT GT2
Driver version : 1.3 (FreeBSD)
Compute units : 24
Clock frequency : 1000 MHz
Global memory bandwidth (GBPS)
float : 14.94
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/misc/"
$ cat /var/log/Xorg.0.log
[ 1433.542]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 1433.542] X Protocol Version 11, Revision 0
[ 1433.542] Build Operating System: FreeBSD 12.0-CURRENT amd64
[ 1433.542] Current Operating System: FreeBSD boomers 12.0-CURRENT FreeBSD 12.0-CURRENT #12 e9259a8da42(drm-next): Tue Feb 14 09:20:57 PST 2017 pwright@boomers:/usr/obj/usr/home/pwright/git/freebsd-base-graphics/sys/GENERIC amd64
[ 1433.542] Build Date: 12 February 2017 12:58:28PM
[ 1433.542]
[ 1433.542] Current version of pixman: 0.34.0
[ 1032.300] (II) Loading sub module "fb"
[ 1032.300] (II) LoadModule: "fb"
[ 1032.300] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 1032.301] (II) Module fb: vendor="X.Org Foundation"
[ 1032.301] compiled for 1.18.4, module version = 1.0.0
[ 1032.301] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1032.301] (II) Loading sub module "shadow"
[ 1032.301] (II) LoadModule: "shadow"
[ 1032.301] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[ 1032.301] (II) Module shadow: vendor="X.Org Foundation"