Skip to content

Instantly share code, notes, and snippets.

View nonakap's full-sized avatar

Kimihiro Nonaka nonakap

View GitHub Profile
@nonakap
nonakap / pciinfo-fitlet-X.txt
Last active November 6, 2015 12:01
dmesg & pcictl dump: fit-PC fitlet-X
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.21 (GENERIC) #24: Fri Nov 6 19:35:38 JST 2015
nonaka@netbsd.work.local.nonakap.org:/home/snapshot/NetBSD/HEAD.20150827/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/GENERIC
total memory = 7864 MB
avail memory = 7617 MB
@nonakap
nonakap / pcictl-dump-Compex-WLE900VX-Atheros QCA9880.txt
Created December 8, 2015 03:09
pcictl dump: Compex WLE900VX Atheros QCA9880
##### PCI configuration Space: 001:00:0 Atheros Communications QCA986x/988x Wireless LAN (miscellaneous network)
PCI configuration registers:
Common header:
0x00: 0x003c168c 0x00100007 0x02800000 0x00000010
Vendor Name: Atheros Communications (0x168c)
Device Name: QCA986x/988x Wireless LAN (0x003c)
Command register: 0x0007
I/O space accesses: on
Memory space accesses: on
@nonakap
nonakap / rtwn-nb7.diff
Created March 26, 2016 13:40
rtwn(4) for netbsd-7
diff --git a/distrib/sets/lists/base/mi b/distrib/sets/lists/base/mi
index 969a388..7a51617 100644
--- a/distrib/sets/lists/base/mi
+++ b/distrib/sets/lists/base/mi
@@ -191,6 +191,11 @@
./libdata/firmware/if_otus/otus-init base-firmware-root
./libdata/firmware/if_otus/otus-license base-firmware-root
./libdata/firmware/if_otus/otus-main base-firmware-root
+./libdata/firmware/if_rtwn base-firmware-root
+./libdata/firmware/if_rtwn/Realtek-Firmware-License.txt base-firmware-root
From cdb327e33f60d3f230e6a2dec3012afc1d1a6c5e Mon Sep 17 00:00:00 2001
From: NONAKA Kimihiro <nonakap@gmail.com>
Date: Tue, 2 Feb 2016 20:45:31 +0900
Subject: [PATCH 1/1] PR/50453: Check overlaid MCHBAR region on PCIEXBAR
region.
---
sys/arch/x86/acpi/acpi_machdep.c | 72 ++++++++++++++++++++++++++++++++++++++++
sys/dev/acpi/acpi_mcfg.c | 19 +++++++++++
sys/dev/acpi/acpi_mcfg.h | 7 +++-
@nonakap
nonakap / obsd-nvme.diff
Created April 21, 2016 05:33
OpenBSD nvme(4): check complete queue dma memory pointer, not submission queue.
Index: nvme.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/nvme.c,v
retrieving revision 1.49
diff -u -p -r1.49 nvme.c
--- nvme.c 18 Apr 2016 05:59:50 -0000 1.49
+++ nvme.c 21 Apr 2016 03:38:08 -0000
@@ -1224,7 +1224,7 @@ nvme_q_alloc(struct nvme_softc *sc, u_in
q->q_cq_dmamem = nvme_dmamem_alloc(sc,
Index: sysutils/grub2/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/grub2/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- sysutils/grub2/Makefile 3 May 2016 10:54:56 -0000 1.8
+++ sysutils/grub2/Makefile 3 May 2016 15:59:21 -0000
@@ -2,7 +2,7 @@
DISTNAME= grub-2.00
@nonakap
nonakap / nbsd-usr.bin-head-opt-n-negative-number.diff
Created May 12, 2016 12:34
NetBSD head(1): implement -n <negative number>
diff --git a/usr.bin/head/head.1 b/usr.bin/head/head.1
index 545f7a8..24dcec1 100644
--- a/usr.bin/head/head.1
+++ b/usr.bin/head/head.1
@@ -50,6 +50,11 @@ If
.Ar count
is omitted it defaults to 10.
If
+.Ar count
+is negative value, display all but the last
@nonakap
nonakap / nbsd-smartmontools-smartctl-SM951-128GB.txt
Created May 18, 2016 05:26
pkgsrc/systutils/smartmontools: Add NetBSD nvme(4) support
smartctl 6.5 2016-05-07 r4318 [NetBSD 7.99.29 amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: SAMSUNG MZVPV128HDGM-00000
Serial Number: XXXXXXXXXXXXXX
Firmware Version: BXW7300Q
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Controller ID: 1
@nonakap
nonakap / pkgsrc-systutils-smartmontools.diff
Last active September 10, 2016 02:09
pkgsrc/sysutils/smartmontools: rewrite os_netbsd.cpp for new world order.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/smartmontools/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile 8 May 2016 11:23:15 -0000 1.29
+++ Makefile 10 Sep 2016 02:08:00 -0000
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.29 2016/05/08 11:23:15 nonaka Exp $
@nonakap
nonakap / pkgsrc-wip-fio-2.9.diff
Created May 18, 2016 11:30
Update pkgsrc-wip/fio to 2.9
diff -uNrp fio.orig/Makefile fio/Makefile
--- fio.orig/Makefile 2016-05-17 07:26:01.000000000 +0900
+++ fio/Makefile
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.3 2015/08/16 21:18:25 leot1990 Exp $
-DISTNAME= fio-2.2.9
-PKGREVISION= 2
+DISTNAME= fio-2.9
CATEGORIES= benchmarks