Skip to content

Commit

Permalink
MdeModulePkg/PciHostBridge: Don't assert when setting UC to MMIO fails
Browse files Browse the repository at this point in the history
Failing to set EFI_MEMORY_UC to MMIO aperture is not a fatal error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
  • Loading branch information
niruiyu authored and lersek committed Mar 4, 2016
1 parent ed2992b commit 13be90f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ InitializePciHostBridge (
MemApertures[MemApertureIndex]->Limit - MemApertures[MemApertureIndex]->Base + 1,
EFI_MEMORY_UC
);
ASSERT_EFI_ERROR (Status);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_WARN, "PciHostBridge driver failed to set EFI_MEMORY_UC to MMIO aperture - %r.\n", Status));
}
}
}
//
Expand Down

0 comments on commit 13be90f

Please sign in to comment.