Skip to content

SctPkg/AtaPassThruBBTest: Accept dual GetNextDevice() behavior (Manti… - #352

Open
cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:ata-passthru-getnextdevice-mantis-2359
Open

cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:ata-passthru-getnextdevice-mantis-2359

Conversation

@cgjertsen

Copy link
Copy Markdown
Contributor

…s 2359)

UEFI 2.10A (Mantis 2359) updated EFI_ATA_PASS_THRU_PROTOCOL to clarify that when a port multiplier is not connected, GetNextDevice() may either return EFI_SUCCESS with PortMultiplierPort set to 0xFFFF, or return EFI_NOT_FOUND (in which case PortMultiplierPort is undefined).

The existing tests only accepted EFI_NOT_FOUND as a valid terminal condition, causing false failures on implementations that return EFI_SUCCESS + 0xFFFF.

Changes:

  • AtaPassThruBBTestFunction.c: Update BBTestGetNextDeviceFunctionAutoTest to accept both EFI_NOT_FOUND and EFI_SUCCESS with PortMultiplierPort == 0xFFFF as passing conditions after device enumeration
  • AtaPassThruBBTestConformance.c: Update BBTestGetNextDeviceConformance checkpoint 1 and 2 to gracefully skip (WARNING) instead of fail when GetNextDevice returns EFI_NOT_FOUND due to no port multiplier connected

Ref: #341

…s 2359)

UEFI 2.10A (Mantis 2359) updated EFI_ATA_PASS_THRU_PROTOCOL to clarify
that when a port multiplier is not connected, GetNextDevice() may either
return EFI_SUCCESS with PortMultiplierPort set to 0xFFFF, or return
EFI_NOT_FOUND (in which case PortMultiplierPort is undefined).

The existing tests only accepted EFI_NOT_FOUND as a valid terminal
condition, causing false failures on implementations that return
EFI_SUCCESS + 0xFFFF.

Changes:
- AtaPassThruBBTestFunction.c: Update BBTestGetNextDeviceFunctionAutoTest
  to accept both EFI_NOT_FOUND and EFI_SUCCESS with PortMultiplierPort
  == 0xFFFF as passing conditions after device enumeration
- AtaPassThruBBTestConformance.c: Update BBTestGetNextDeviceConformance
  checkpoint 1 and 2 to gracefully skip (WARNING) instead of fail when
  GetNextDevice returns EFI_NOT_FOUND due to no port multiplier connected

Ref: tianocore#341

Signed-off-by: Carolyn Gjertsen <cgjertsen@gmail.com>
cgjertsen added a commit to cgjertsen/edk2-test that referenced this pull request May 14, 2026
Add 2025.05 revision history entry covering UEFI 2.8–2.10A test
updates (PRs tianocore#320, tianocore#346–tianocore#352). Register new chapters 33 (REST EX
Protocol) and 34 (Redfish Discover Protocol) in the Sphinx table
of contents.

Cc: PR tianocore#320, PR tianocore#346, PR tianocore#347, PR tianocore#348, PR tianocore#349, PR tianocore#350, PR tianocore#351, PR tianocore#352
Signed-off-by: Carolyn Gjertsen <Carolyn.Gjertsen@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant