#!/bin/sh
# DF-4256 — observe stolen accounting on any 915-class machine.
# The underflow itself executes only at agp attach time with GMS < GTT size.
echo "--- dmesg stolen/aperture lines ---"
dmesg | grep -iE "stolen|aperture size"
echo "--- sysctl ---"
sysctl dev.agp 2>/dev/null | head -20
echo "(expected on a healthy BIOS: 'aperture size is ...M, detected Nk stolen memory')"
echo "(expected on GMS<PGTBL: no binding possible; every GEM bind fails EINVAL;"
echo " sc->stolen wrapped to ~0x3fffffff entries = 4TB 'stolen' prefix)"
