Skip to content

[Bug]: non-x86 Option Rom never be reached if multiple Option Rom images are found on non-x86 platform. #11800

@EricGao2015

Description

@EricGao2015

Is there an existing issue for this?

  • I have searched existing issues

Bug Type

  • Firmware
  • Tool
  • Unit Test

What packages are impacted?

MdeModulePkg

Which targets are impacted by this bug?

RELEASE, NOOPT, DEBUG

Current Behavior

X86 rom image is loaded.
If the option rom in a PCIe card have multiple architecture(x86, aarch64, riscv64, loongarch64) images, the native image will never be reached on non-x86 platforms if the emulator is introduced.

Expected Behavior

The native loongarch64 rom image is loaded.
If the option rom in a PCIe card have multiple architecture(x86, aarch64, riscv64,loongarch64) images, the native image can be loaded on non-x86 platforms if the emulator is introduced.

Steps To Reproduce

  1. Use MultiArchUefiPkg as emulator.
  2. Insert a display card on loongarch architecture motherboard. There are x86, aarch64 and loongarch64 three kinds of image in order at the option rom.
  3. Determine which architecture rom image is loaded, x86 or loongarch64?

Build Environment

- OS(s): Centos Linux 8
- Tool Chain(s):https://github.com/loongson/build-tools/releases/download/2024.11.01/x86_64-cross-tools-loongarch64-binutils_2.43.1-gcc_14.2.0-glibc_2.40.tar.xz

Version Information

edk2-stable202511

Urgency

Medium

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions