Some Older AMD Systems Can Boot Faster On Linux 5.17+
Merged this morning were the ATA subsystem updates for Linux 5.17. Usually the ATA changes don't amount to many noteworthy changes but "Add support for AMD A85 FCH (Hudson D4) AHCI adapters" got my attention... Yeah, the chipset from the early AMD "Fusion" APU days.
What that support change is about is adding the AMD A85 Hudson D4 chipset to the AHCI driver code so it can apply a quirk/workaround.
Within the libata SATA driver code there is a forced 200ms delay with an accompanying code comment, "Some PHYs react badly if SStatus is pounded immediately after resuming. Delay 200ms before debouncing." But the 200 ms delay can be noticeable if the system is otherwise fast at booting. For those still using an AMD A85 FCH (Hudson D4) it's been deemed safe to skip this 200 ms debounce delay in the SATA link resume code.
For now the AMD A85 Hudson D4 is the only chipset listed while hopefully other hardware can be added when deemed safe and now that this "board_ahci_no_debounce_delay" has been added to the AHCI code.
The commit mentions the difference for the developer who tracked down the boot time slowdown, "On the ASUS F2A85-M PRO it reduces the Linux kernel boot time by the expected 200 ms from 787 ms to 585 ms." This is far from the first time we have seen Linux kernel boot time optimizations come by avoiding arbitrary delays catering to select hardware.