Project

General

Profile

Actions

Bug #401

open

edk2 hangs indefiniately

Added by Sean Rhodes 3 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Category:
board support
Target version:
Start date:
07/08/2022
Due date:
% Done:

0%

Estimated time:
10000.00 h
Affected versions:
Needs backport to:
Affected hardware:
Everything
Affected OS:
Doesn't matter

Description

Since CB:63555, edk2 will no longer boot and hangs indefiniately

Various forks disable MTRR programming in edk2 (such as https://github.com/MrChromebox/edk2/commit/d641ea6920737fd9b9a94210e9a2e7636bfb3cdc) but this shouldn't be done as it breaks spec.

Workarounds are to revert CB:64804, CB:63550, CB:64803 and CB:63555.


Files

with_avph_patch.txt (65.8 KB) with_avph_patch.txt Sean Rhodes, 07/08/2022 02:33 PM
with_avph_patch_reverted.txt (64.6 KB) with_avph_patch_reverted.txt Sean Rhodes, 07/08/2022 02:33 PM
master.txt (91.9 KB) master.txt Sean Rhodes, 07/13/2022 08:34 AM
master_w_revert.txt (197 KB) master_w_revert.txt Sean Rhodes, 07/13/2022 08:34 AM
edk2.txt (251 KB) edk2.txt Disabled MTRR in edk2 Sean Rhodes, 07/20/2022 03:08 PM
Actions #1

Updated by Patrick Rudolph 3 months ago

Do you have an EDK2 log with DEBUG_CACHE logging enabled?

Actions #4

Updated by Christian Walter 2 months ago

Is this a problem within coreboot - or do we rather need to fix up EDKII ?

Actions #5

Updated by Arthur Heymans 2 months ago

Christian Walter wrote in #note-4:

Is this a problem within coreboot - or do we rather need to fix up EDKII ?

The problem is inside EDKII. Those reverts would create problems for other payloads and Linux would even complain about incoherent MTRR settings I think.

Actions #6

Updated by Sean Rhodes 2 months ago

Disabling MTRR in edk2 seems to cause other issues - the most obvious being the USB drivers constantly resetting.

Universal Payload doesn't seem subject to the same issue

Actions #7

Updated by Matt DeVillier 2 months ago

Sean Rhodes wrote in #note-6:

Disabling MTRR in edk2 seems to cause other issues - the most obvious being the USB drivers constantly resetting.

on what platform(s) are you seeing that? I don't recall seeing here on my 202107 and 202111 branches

Actions

Also available in: Atom PDF