Skip to content

[Feature]: Stop Using Resource Descriptor HOB v1 #519

Description

@os-d

Feature Overview

Once issue #518 has been resolved (or at least platforms have moved to resource descriptor HOB v2s entirely), Patina should ignore resource descriptor HOB v1s.

Solution Overview

Ignore the v1 HOBs and exclusively use the v2 HOBs.

Alternatives Considered

No response

Urgency

Low

Are you going to implement the feature request?

Someone else needs to implement the feature

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Activity

  1. moved this to Committed in Patinaon Jul 31, 2025
  2. added this to the First Major Release milestone on Jul 31, 2025
  3. added
    urgency:highSignificant with a critical impact
    and removed on Aug 1, 2025
  4. os-d commented on Aug 1, 2025

    @os-d
    ContributorAuthor

    This is currently blocked on Intel platforms not using resc desc HOB v2.

    @makubacki @berlin-with0ut-return @vineelko can one of you help drive converting the Intel platforms to use resc desc HOB v2s? I believe there may already be ongoing work there. That will unblock this task.

  5. makubacki commented on Aug 1, 2025

    @makubacki
    Collaborator

    Yes. But all three of us are working on time sensitive and program critical work on Intel platforms. This is important, but it will have to come after that work is complete. I've left this unassigned for now so when those tasks are done, the next available person can pick it up.

  6. added
    urgency:mediumImportant with a moderate impact
    and removed
    urgency:highSignificant with a critical impact
    on Aug 1, 2025
  7. HappyCoding-2025 commented on Oct 1, 2025

    @HappyCoding-2025
    Contributor

    @os-d @makubacki @joschock @Javagedes @singweeMsftGitHub - I am working on this based on discussion in today's meeting.

    Here is Scope of Changes

    1. Analyse where all Where Resource Descriptor v1 HOBs Are Currently Used?
    2. Stop processing Resource Descriptor v1 HOBs entirely - Remove the conversion logic from v1 to v2
    3. Only accept Resource Descriptor v2 HOBs - Platforms must provide Resource Descriptor HOB v2s
    4. Remove v1 compatibility code - Eliminate the ResourceDescriptorV2::from() conversion
    5. Update test/example code - Change all test HOB creation to use v2 format

    What improvement does this bring in ?

    1. Cache Management: Patina needs explicit cache attributes to properly manage memory protection and cache hierarchies
    2. Security: Without proper cache attributes, Patina can't implement secure memory management
    3. Simplification: Removes complexity of handling two different HOB formats
    4. Future-proofing: Aligns with Patina's architectural requirements and upcoming PI spec changes
    5. The change would essentially remove the backwards compatibility with traditional UEFI platforms that only provide v1 HOBs, requiring all platforms to be updated to provide the enhanced v2 HOBs with cache attribute information.
  8. HappyCoding-2025 commented on Oct 10, 2025

    @HappyCoding-2025
    Contributor

    @os-d @HappyCoding-2025 @Javagedes @joschock @singweeMsftGitHub - Have implemented this feature- #855
    Tested in Code coverage, cargo make test, QEMU emulator and changes look good.
    Adding PR link here for tracking. As discussed, this PR needs to wait till Surface platforms stop using V1 Resource hobs.

  9. HappyCoding-2025 commented on Oct 27, 2025

    @HappyCoding-2025
    Contributor

    FIxed and pushed the changes.

  10. moved this from Committed to Done in Patinaon Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions