When in AHCI mode AtaAtapiPassThru driver should recover any errors the port might signal. Error recovery procedure is covered by AHCI spec in section 6.2.2 of the AHCI spec 1.3.1. It is possible to encounter a fata SATA port error during the boot and in such case it is possible that drive will become unresponsive and needs a SW assistance to make it work again. If we do not recover the port all subsequent commands to the port will fail.
Albecki: please work on it.
V1 patch sent at: https://edk2.groups.io/g/devel/message/66924
V2 patch sent at: https://edk2.groups.io/g/devel/message/67035 V3 patch sent at: https://edk2.groups.io/g/devel/message/67039
Resolved via: PR - https://github.com/tianocore/edk2/pull/1113 Commit - https://github.com/tianocore/edk2/commit/b465a811006eb1663068380dded041d287ace907