Skip to content

Instantly share code, notes, and snippets.

View pdp7's full-sized avatar
💭
Linux on RISC-V

Drew Fustini pdp7

💭
Linux on RISC-V
View GitHub Profile
@pdp7
pdp7 / opensbi-2026-jan-may-digest.md
Created May 9, 2026 18:21
opensbi-2026-jan-may-digest.md

OpenSBI Mailing List Digest, 2026-Jan through 2026-May

Source: ~/opensbi-mail-archive/2026-{January,February,March,April,May}.txt. Approximately 526 messages across five months, with ~76 from Anup Patel (de-facto maintainer) leading review, and substantial new platform/feature work landing or in flight.

The digest is organized by topic. The first section is a deep dive on Tenstorrent contributors, since the reader is at Tenstorrent and asked for detail there. Subsequent sections cover the broader upstream picture so a NotebookLM "deep dive" episode has enough scaffolding to draw connections, debates, and architectural threads.


1. Tenstorrent contributors

@pdp7
pdp7 / update-semcode.sh
Created May 6, 2026 14:52
update-semcode.sh
#!/usr/bin/env bash
# Refresh a semcode database: source code (current HEAD or branches),
# lore archives + new shards, then regenerate vector embeddings.
#
# Usage: update-semcode.sh [options]
#
# Options:
# -s, --source <dir> source tree to index (default: cwd)
# -d, --database <dir> db dir or its parent (default: same as --source)
# --branches <list> comma-separated branches to update (uses --update-branches)
@pdp7
pdp7 / review.txt
Last active May 2, 2026 13:14
review.md
Patch sizes vs resctrl norms
┌───────────────────────────────────────────────┬──────────────────────┬───────────────────┬──────────────────┐
│ Series │ Patches │ Median │ Max lines/patch │
│ │ │ lines/patch │ │
├───────────────────────────────────────────────┼──────────────────────┼───────────────────┼──────────────────┤
│ Recent fs/resctrl (last 30) │ small │ ~30 │ ~50 │
│ │ fixes/refactors │ │ │
├───────────────────────────────────────────────┼──────────────────────┼──────────────────
@pdp7
pdp7 / user_drew_writing_style.md
Created May 1, 2026 21:51
user_drew_writing_style.md
name Drew Fustini - writing style and voice
description How Drew writes on lkml/linux-riscv (cover letters, replies, sign-offs); use to match his tone in drafts of emails, commit messages, and cover letters
type user
originSessionId 49cba08f-3549-46fe-86fe-0fe3c60829bb

Studied from a sample of Drew's lore.kernel.org emails. Index covers 447 emails from fustini April 2020 - July 2025; ~75-80% are replies, the rest cover letters / standalone patches / pull requests. Style is remarkably stable across the 5-year span and across employer changes (gmail -> beagleboard -> baylibre -> tenstorrent -> pdp7.com / fustini@kernel.org).

Tone and persona

@pdp7
pdp7 / mpam-qos.md
Created April 28, 2026 01:00
MPAM QoS features and MPAM support in Linux resctrl

MPAM QoS features and MPAM support in Linux resctrl

A technical survey of Arm's Memory Partitioning and Monitoring (MPAM) extension and the multi-year effort to expose it through the Linux resctrl filesystem. Written against this tree (Linux v7.0-base, RISC-V CBQRI development branch); file paths and message-IDs cite primary sources where possible.


1. Executive summary

@pdp7
pdp7 / lpi4a 7.0.0-rc3-next-20260313.txt
Created March 15, 2026 18:54
lpi4a 7.0.0-rc3-next-20260313
ptybb ptyq5 ptyuf ptyz9 tty63 ttye2 ttysc ttyx6
debian@lpi4amain:~$ ls /dev/^C
debian@lpi4amain:~$ dmesg
[ 0.000000] Booting Linux on hartid 3
[ 0.000000] Linux version 7.0.0-rc3-next-20260313 (pdp7@thelio) (Ubuntu clang version 18.1.3 (1ubuntu1), Ubuntu LLD 18.1.3) #1554 SMP PREEMPT Sun Mar 15 11:40:21 PDT 2026
[ 0.000000] random: crng init done
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
@pdp7
pdp7 / blackhole-linux-boot-log.txt
Created December 3, 2025 01:40
Blackhole Linux boot log
/home/dfustini/.tenstorrent-venv/bin/python boot.py --boot --l2cpu 0 --opensbi_bin fw_jump.bin --opensbi_dst 0x400030000000 --rootfs_dst 0x4000e5000000 --kernel_bin Image --kernel_dst 0x400030200000 --dtb_bin blackhole-card.dtb --dtb_dst 0x400030100000
Starting PCI link reset on BH devices at PCI indices: 0
Waiting for up to 2 seconds for asic to come back after reset
Config space reset completed for device 0
Finishing PCI link reset on BH devices at PCI indices: 0
Writing OpenSBI to 0x400030000000
Writing Kernel to 0x400030200000
Writing dtb to 0x400030100000
Setting clock to 200
Setting clock to 1750
@pdp7
pdp7 / kernel-config-202512010-r1.txt
Created December 1, 2025 17:55
kernel config for "riscv: dts: thead: Add CPU clock and OPP table for TH1520"
#
# Automatically generated file; DO NOT EDIT.
# Linux/riscv 6.18.0-rc6 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="Ubuntu clang version 18.1.3 (1ubuntu1)"
CONFIG_GCC_VERSION=0
CONFIG_CC_IS_CLANG=y
CONFIG_CLANG_VERSION=180103
CONFIG_AS_IS_LLVM=y
CONFIG_AS_VERSION=180103
@pdp7
pdp7 / bmw.c
Created November 22, 2025 16:40
cbqri bitmask width bmw
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
long int_value;
char *endptr;
int x;
if (argc < 2) {
printf("Usage: %s <integer_argument>\n", argv[0]);
@pdp7
pdp7 / resctrl Intel GOLD 5315Y.txt
Created November 17, 2025 07:19
resctrl Intel GOLD 5315Y
vendor_id : GenuineIntel
cpu family : 6
model : 106
model name : Intel(R) Xeon(R) Gold 5315Y CPU @ 3.20GHz
stepping : 6
microcode : 0xd000410
cpu MHz : 800.000
cache size : 12288 KB
physical id : 0
siblings : 16