-
Notifications
You must be signed in to change notification settings - Fork 3k
DynamicTablesPkg: Add support for non-serial DBG2 devices #10833
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
DynamicTablesPkg: Add support for non-serial DBG2 devices #10833
Conversation
de93e47 to
ddc4c23
Compare
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
ddc4c23 to
050383a
Compare
91d3453 to
4eeeb14
Compare
|
@pierregondois I think all the review feedback was updated. I also added a host based test for this. |
pierregondois
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Jeff,
Thanks for adding the test file.
@samimujawar as this is new to the package, would it be ok to check it the GoogleTest file if you're ok with it ?
Regards,
Pierre
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/GoogleTest/Dbg2GeneratorGoogleTest.cpp
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
@jbrasen Thanks a lot for introducing these tests. This is indeed a good initiative. |
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/GoogleTest/Dbg2GeneratorGoogleTest.inf
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/Dbg2Generator.c
Outdated
Show resolved
Hide resolved
4eeeb14 to
dd8913e
Compare
pierregondois
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor comment, otherwise lgtm.
The serial port information generated for Juno/kvmtool didn't change. I didn't try to create non-serial ports but the code looked correct.
Just need to check with @samimujawar if this is ok to include GoogleTests
DynamicTablesPkg/Library/Acpi/Common/AcpiDbg2Lib/GoogleTest/Dbg2GeneratorGoogleTest.inf
Show resolved
Hide resolved
I think adding GoogleTests is good. We need to see how GoogleTests can be supported other generators as well. |
I'm adding a DynamicTables generator for CEDT right now and I'm using the same pattern as this PR for gtests. Intercepting the table registration makes implementing the rest of the test mostly straightforward. |
Add support for X64 Build needed for HostBasedTests Signed-off-by: Jeff Brasen <[email protected]>
This commit adds support for building non-serial DBG2 devices 1. Add new common namespace objects: - EArchCommonObjMemoryRangeDescriptor - EArchCommonObjDbg2DeviceInfo 2. Enhance DBG2 table generator: - Add support for non-serial DBG2 devices - Support multiple debug devices - Improve memory handling with proper allocation checks - Add better cleanup in error paths 3. Update configuration manager: - Add parsers for new common namespace objects Signed-off-by: Jeff Brasen <[email protected]>
This commit adds a hostbased test for the Dbg2Generator library. The test is designed to be run on a host machine against a UEFI image that has been built with the DynamicTablesPkg. The test exercises the Dbg2Generator library by building an ACPI DBG2 from a list of devices. Signed-off-by: Jeff Brasen <[email protected]>
ed1db0c to
66b0cf4
Compare
🟠 Waiting for conditions to matchDetails
|
Description
This commit adds support for building non-serial DBG2 devices
Add new common namespace objects:
Enhance DBG2 table generator:
Update configuration manager:
How This Was Tested
Created config manager object for a PCIe NIC and validated the DBG2 node. Added HostBasedTest for this library
Integration Instructions
N/A