⬢ DragonFlyBSD Kernel Audit
DF-3706 / trigger_notes.c
← back to finding ↓ download raw
/*
 * DF-3706 trigger documentation (hardware-gated).
 * VBIOS recipe: ATOM_Vega10_PCIE_Table.ucNumEntries = 1 (nonzero, so the :1228 assert passes).
 * Driver load -> vega10_setup_default_dpm_tables :1415 -> vega10_setup_default_pcie_table:
 *   NUM_LINK_LEVELS == 2 (smu9_driver_if.h:44) but bios table has 1 record =>
 *   bios_pcie_table->entries[1].{gen_speed,lane_width,pcie_sclk} read past the kzalloc'd
 *   table (vega10_processpptables.c:772-783 allocates exactly ucNumEntries records).
 * Garbage becomes pcie_gen/lane/lclk[1], count forced to 2 (:1254), uploaded to SMC.
 */
int df3706_trigger_documentation;