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 / checkpatch-strict.sh
Created May 11, 2026 20:26
checkpatch-strict.sh
#!/bin/bash
# Run checkpatch --strict on commits since HEAD~N
# Usage: ./checkpatch-series.sh <num_commits>
COMMITS=${1:?Usage: $0 <num_commits>}
for i in $(git log --oneline HEAD~"${COMMITS}"..HEAD | cut -f1 -d' '); do
echo "$i"
./scripts/checkpatch.pl --strict -g "$i"
echo "=============================================="
@pdp7
pdp7 / check-series.sh
Created May 11, 2026 20:24
check-series.sh
#!/bin/bash
# Run smatch, sparse, and coccinelle on C files changed in the series
# Usage: ./check-series.sh [num_commits] (default: 6)
COMMITS=${1:-6}
MAKE_ARGS=(W=1 ARCH=riscv LLVM=1 -j"$(nproc)")
mapfile -t CHANGED < <(git diff "HEAD~${COMMITS}..HEAD" --name-only -- '*.c')
@pdp7
pdp7 / build-matrix.sh
Created May 11, 2026 20:17
build-matrix.sh
pdp7@thelio:~/dev/linux$
pdp7@thelio:~/dev/linux$
pdp7@thelio:~/dev/linux$ cat ./build-matrix.sh
#!/bin/bash
# build-matrix.sh - 0day-style strict build matrix for the QoS series
# Runs each configuration sequentially with -j16 (full 16-core machine).
# Logs go to build-matrix/logs/<name>.log so you can tail -f the active build.
set -euo pipefail
@pdp7
pdp7 / tt-report.md
Created May 11, 2026 04:00
tt-report.md

Tenstorrent on upstream lists, 2025-11 through 2026-05

A six-month survey of upstream Linux kernel, QEMU, and OpenSBI development by Tenstorrent contributors, intended as source material for a NotebookLM "deep dive" audio podcast about the team. Drew Fustini's own patch series (CBQRI, Ssqosid, RQSC, kernel-side IOMMU bindings, and his maintainer-hat pull requests) are deliberately excluded: those are the listener's own work and would dilute the focus on coworkers.

The period covered is roughly 2025-11-09 through 2026-05-09, the six

@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