Skip to content

[Bug]: On certain platforms PageGuard is causing resume from Hibernate to take longer than expected #1303

@Flickdm

Description

@Flickdm

Is there an existing issue for this?

  • I have searched existing issues

Current Behavior

On certain platforms, PageGuard is causing Resume from Hibernate to take longer than expected.
Specifically, on my test platform resume took 17s with page guard on and 4s with it disabled.

There are a few factors at play here.

  1. Appears to be reentrant behavior on CpuDxe->SetMemoryAttributes (..) when Page Guard is used
  2. Code is diving into silicon provided code so the fault is not yet clear.

Expected Behavior

Page Guard should not be having a significant impact on resume from hibernate

Steps To Reproduce

  1. Resume from hibernate on a test platform with windows.
  2. Inspect eventlog Event ID 1, source "Power-TroubleShooter" and specifically under "Details" Look for HiberReadDuration
  3. Take note of the HiberReadDuration
  4. Disable PageGuard and reboot
  5. Resume from hibernate
  6. . Inspect eventlog Event ID 1, source "Power-TroubleShooter" and specifically under "Details" Look for HiberReadDuration
  7. Take note of the HiberReadDuration
  8. A significant difference indicates a problem

Build Environment

- OS(s): Windows
- Tool Chain(s): Clang
- Targets Impacted:
  - RELEASE / DEBUG

Version Information

release/202311
release/202405

Urgency

High

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

Labels

state:needs-triageNeeds to triaged to determine next stepsstate:staleHas not been updated in a long timetype:bugSomething isn't workingurgency:mediumImportant with a moderate impact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions