Skip to content

Instantly share code, notes, and snippets.

@smartperson
smartperson / L1Techs-X399M-Taichi-IOMMU-Groups.sh
Created July 20, 2018 02:15
Partial X339M Taichi IOMMU grouping firmware "2.35 Beta"
# Partial list based on what I can see in Wendell's video about the ASRock X399M Taichi here: https://youtu.be/JvV3xf2oyMo?t=9m59s
# Wendell thinks he used the beta firmware version 2.35 from ASRock. Latest public BIOS is here: https://www.asrock.com/mb/AMD/X399M%20Taichi/index.asp#BIOS
IOMMU Group 10 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1466]
IOMMU Group 10 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1467]
IOMMU Group 10 00:19.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1460]
IOMMU Group 10 00:19.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1461]
IOMMU Group 10 00:19.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1462]
IOMMU Group 10 00:19.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1463]
IOMMU Group 10 00:19.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1464]
IOMMU Group 10 00:19.5 Host bridge [0600]: Advanced Micro
@smartperson
smartperson / iommu_groups
Created February 21, 2018 04:28
My computer's VFIO setup, successfully doing GPU passthrough and generally excellent performance
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 1 00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
IOMMU Group 2 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 3 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 4 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
IOMMU Group 5 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 6 00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 7 00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
IOMMU Group 8 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 9 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
@smartperson
smartperson / virt_machine.xml
Created February 21, 2018 04:02
My libvirtd xml setup for my computer
<domain type='kvm'>
<name>generic-2</name>
<uuid>f7050b8f-4e77-4eb4-b1bf-f00aaefa6726</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>8</vcpu>
<os>

Billing address

Smart Ass

666

Atlanta, GA 30331

Additional information

@smartperson
smartperson / sensible_character_map.md
Last active September 3, 2017 21:28
LCD character codes read from Logitech Z680 control pod
Letter Code (hex) Code (binary stripped) Code (rev. binary) Code (rev. hex)
D 20 20 0010 0010 0100 0100 44
E A0 20 1010 0010 0100 0101 45
I 90 20 1001 0010 0100 1001 49
N 70 20 0111 0010 0100 1110 4E
O F0 20 1111 0010 0100 1111 4F
a 80 60 1000 0110 0110 0001 61
c C0 60 1100 0110 0110 0011 63
e A0 60 1010 0110 0110 0101 65
@smartperson
smartperson / meter.ps
Created August 28, 2017 11:26
postscript file to generate custom labels for analog meters
%!Postscript File
% This file generates meter faces.
% Copyright (c) 2004, Jennifer Elaan
% Circuit Corner 2004.
% Free for any use so long as this copyright notice
% remains intact.
% ------------------------------------------------------
% These are unit definitions. They define conversion factors for
% common units like mils, inches, millimeters, etc.
@smartperson
smartperson / ttymbot.sh
Created June 15, 2017 03:46
/usr/local/scripts/ttymbot.sh
#!
ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1d10 /dev/tty.mbot
@smartperson
smartperson / com.varunmehta.ttymbot.plist
Created June 15, 2017 03:45
/Library/LaunchDaemons/com.varunmehta.ttymbot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.varunmehta.ttymbot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/scripts/ttymbot.sh</string>
@smartperson
smartperson / mbot_serial.notes
Created June 13, 2017 18:04
mbot_serial.notes
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting
article like yours. {It’s|It is} pretty worth enough for me.
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made
good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting.
{Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold
of|grab|clutch|grasp|seize|snatch} your {rss|rss feed}
as I {can not|can’t} {in finding|find|to find}