Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SbsaQemu: fix FWTS errors #222

Merged
merged 3 commits into from
Oct 9, 2024
Merged

Conversation

hrw
Copy link
Contributor

@hrw hrw commented Oct 9, 2024

I ran FirmWare Test Suite and it gave me two errors:

  • IORT
FAILED [HIGH] IORTMemAttrInvalid: Test 1, IORT PCI Root Complex Node Memory
Attributes are illegal, CCA cannot be 1 if CPM is 0.
  • SMBIOS
FAILED [HIGH] DMIBadTableLength: Test 3, Type 17 expects length of 0x5c, has
incorrect length of 0x64

This branch fixes both of them. Also updates IORT to E.f version of specification.

Change MemoryAccessFlags field to indicate IO coherency is supported.

FWTS 'iort' test said:

FAILED [HIGH] IORTMemAttrInvalid: Test 1, IORT PCI Root Complex Node Memory
Attributes are illegal, CCA cannot be 1 if CPM is 0.

We have memory coherency with the CPU cache hierarchy.

Signed-off-by: Marcin Juszkiewicz <[email protected]>
Our table was done for old version of specification.

Signed-off-by: Marcin Juszkiewicz <[email protected]>
We were saying "SMBIOS 3.4" but structure sizes were from 3.7 one so
FWTS complained:

FAILED [HIGH] DMIBadTableLength: Test 3, Type 17 expects length of 0x5c, has
incorrect length of 0x64

Added all missing fields as well.

Signed-off-by: Marcin Juszkiewicz <[email protected]>
@leiflindholm leiflindholm merged commit 461d42a into tianocore:master Oct 9, 2024
1 check passed
@hrw hrw deleted the fix-fwts-errors branch October 9, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants