wolfBoot/tools
Daniele Lacamera 0da41145ea F-12066: pci: restore original COMMAND and clear windows on bridge error
pci_program_bridge() used orig_cmd both as the saved COMMAND
register value and as the accumulator for the decode bits enabled
while programming. Error paths after a window was programmed
(post-enum MMIO or IO alignment failures) restored that mutated
value and left the programmed bridge windows active, so the bridge
kept decoding address ranges the allocator rollback had just
returned.

Keep the two values separate: saved_cmd holds the original
register content for the error path, new_cmd accumulates the
decode bits and is written on success (seeded from saved_cmd, so
the success path preserves the bits it did not manage, exactly as
before). The error path now disables every bridge window
(prefetch, MMIO, IO) before restoring saved_cmd.

Test: test_program_bridge_oom_late_restore programs a prefetch
window behind the bridge, then exhausts the MMIO pool so the
post-enum MMIO alignment fails. Pre-fix the restored COMMAND was
0x0006 (original 0x0004 plus the MEM_SPACE bit for the discarded
window) and the prefetch window stayed programmed
(0x9000-0x900F); post-fix the original COMMAND is restored and
all windows are disabled.
2026-09-02 12:15:51 +02:00
..
armclang
…
bin-assemble
…
check_config
…
ci ci: add pic32cz stub build 2026-08-28 13:11:26 +02:00
delta
…
efi
…
elf-parser
…
fdt-parser fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
fs-test update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
keytools fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
lms
…
openocd
…
renode
…
sbom
…
scripts update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
squashelf
…
test-expect-version
…
test-update-server
…
tpm
…
uart-flash-server
…
unit-tests F-12066: pci: restore original COMMAND and clear windows on bridge error 2026-09-02 12:15:51 +02:00
xmss
…
config.mk
…
test-delta.mk
…
test-enc.mk
…
test-renode.mk
…
test.mk lib/wolfssl: bump to ti_c25 merge (e71b086fc) for CHAR_BIT!=8 wide-byte support 2026-08-25 00:01:33 +02:00
wolfboot-rpi-devicetree.diff
…