Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: eb6a74827200eedc81b8f45f332d6e9f3b3d2906
      
https://github.com/tianocore/edk2/commit/eb6a74827200eedc81b8f45f332d6e9f3b3d2906
  Author: Albecki, Mateusz <mateusz.albe...@intel.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.h

  Log Message:
  -----------
  MdeModulePkg/Ahci: Skip retry for non-transient errors

bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4011

Currently AHCI driver will try to retry all failed packets
regardless of the failure cause. This is a problem in password
unlock flow where number of password retries is tracked by the
device. If user passes a wrong password Ahci driver will try
to send the wrong password multiple times which will exhaust
number of password retries and force the user to restart the
machine. This commit introduces a logic to check for the cause
of packet failure and only retry packets which failed due to
transient conditions on the link. With this patch only packets for
which CRC error is flagged are retried.

Cc: Hao A Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Cc: Hunter Chang <hunter.ch...@intel.com>
Cc: Baraneedharan Anbazhagan <anbazha...@hp.com>
Signed-off-by: Mateusz Albecki <mateusz.albe...@intel.com>
Reviewed-by: Hao A Wu <hao.a...@intel.com>
Reviewed-by: Baraneedharan Anbazhagan <anbazha...@hp.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to