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 / virt.md
Last active June 16, 2026 13:27
virt.md

QEMU virt: device-tree emission for a CBQRI capacity controller

Date: 2026-06-15 Repos: ~/dev/qemu (implementation), ~/dev/linux (consumer, branch dfustini/atl-sc-cbqri-dt)

Goal

Let the QEMU virt machine boot in device-tree mode and have the kernel's CBQRI cache capacity-allocation platform driver (drivers/resctrl/cbqri_capacity.c, CONFIG_RISCV_CBQRI_CAPACITY) probe a

@pdp7
pdp7 / update-semcode.sh
Created June 5, 2026 17:43
/home/pdp7/bin/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 / 2026-06-02-cbqri-resctrl-controls-design.md
Last active June 3, 2026 05:18
2026-06-02-cbqri-resctrl-controls-design.md

CBQRI bandwidth allocation on the resctrl multiple-controls framework

Date: 2026-06-02 Branch: dfustini/cbqri-controls-rfc (worktree, based on reinette/resctrl/controls_rfc_v1) Author: Drew Fustini

Status

Approach A approved. The goal is to gauge the cost of re-modeling CBQRI's two bandwidth allocations onto Reinette Chatre's "multiple controls per resource"

@pdp7
pdp7 / linux-p14s.config
Created May 14, 2026 23:11
linux-p14s.config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 7.1.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24200
@pdp7
pdp7 / mutt diff
Created May 14, 2026 22:09
mutt diff
color body red default "^-[^- ].*"
color body red default "^-(\t| +).*"
color body green default "^\\+[^+ ].*"
color body green default "^\\+(\t| +).*"
tt-p14-dfustini
description: Notebook
product: 21QLS0AF00 (LENOVO_MT_21QL_BU_Think_FM_ThinkPad P14s Gen 6 AMD)
vendor: LENOVO
version: ThinkPad P14s Gen 6 AMD
serial: SD00M475
width: 64 bits
capabilities: smbios-3.4.0 dmi-3.4.0 smp vsyscall32
configuration: administrator_password=disabled chassis=notebook family=ThinkPad P14s Gen 6 AMD power-on_password=disabled sku=LENOVO_MT_21QL_BU_Think_FM_ThinkPad P14s Gen 6 AMD uuid=6d27cfcc-256e-11b2-a85c-eeb55d50b212
*-core
@pdp7
pdp7 / sashiko-v4-findings-handoff.md
Last active May 17, 2026 07:06
sashiko-v4-findings-handoff.md

Sashiko v4 review findings: verification and fix plan

Handoff document for working on fixes to v4 of the Ssqosid/CBQRI/RQSC patch series. Self-contained, no external memory required.

Current status (2026-05-14)

Fixes folded into b4/ssqosid-cbqri-rqsc (the v5-prep branch in the main worktree). Cover commit carries the v4-to-v5 changelog; b4 sees revision 5 with base ef5f46b63023. Series stays at 18 patches,

@pdp7
pdp7 / project_sashiko_v4_findings.md
Last active May 14, 2026 21:55
project_sashiko_v4_findings.md
name sashiko-v4-review-findings
description Sashiko-bot findings against v4 of Ssqosid/CBQRI/RQSC sent 2026-05-10; all real-meaningful findings folded into b4/ssqosid-cbqri-rqsc except 3 documented deferrals
metadata
node_type type originSessionId
memory
project
369cbf1c-f4dc-48d1-a4fb-5ef5b2598277

Source

@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')