swmbx: Introduce mailbox target driver#37
Open
stevenlee7189 wants to merge 3 commits intoOpenPRoT:mainfrom
Open
swmbx: Introduce mailbox target driver#37stevenlee7189 wants to merge 3 commits intoOpenPRoT:mainfrom
stevenlee7189 wants to merge 3 commits intoOpenPRoT:mainfrom
Conversation
Introduce software mailbox driver, which enables the BMC to communicate with the Root of Trust (RoT) over an I2C target interface. Execute the following command at the BMC prompt to verify SWMBX functionality: - Verify the SWMBX address: aspeed-pfr-tool -w 0x13 0x8 aspeed-pfr-tool -r 0x13 [Expected output: 0x8] - Verify the protected SWMBX address: aspeed-pfr-tool -w 0x12 0x8 aspeed-pfr-tool -r 0x12 [Expected output: 0x0] - Verify the notify functionality: aspeed-pfr-tool -w 0x13 0x8 On Ast1060 console, you should see [NOTIFY] SWMBX: notify triggered on port 0 addr 0x13 - Verify the FIFO functionality: aspeed-pfr-tool -w 0xd 0x1f aspeed-pfr-tool -w 0xd 0x2f aspeed-pfr-tool -w 0xd 0x3f aspeed-pfr-tool -r 0xd aspeed-pfr-tool -r 0xd aspeed-pfr-tool -r 0xd aspeed-pfr-tool -r 0xd [Expected output: 0x1f, 0x2f, 0x3f, 0x0] Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Collaborator
Author
|
The PR should be reviewed after the i2c driver is merged. |
Originally, the mailbox functional test cases were designed for the DCSCM card. This update adjust them to work with the ast1060_prot EVB. Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Collaborator
Author
|
Test Step on ast1060_prot evb: First PROT module: running the PFR firmware: When the second PROT module starts, it shows the following log: After the second PROT module boots up, you should see a device with address 0x38 appear on I²C bus 1 of the first PROT module. Then, run the following mailbox test commands from the first PROT module:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce software mailbox driver, which enables the BMC to
communicate with the Root of Trust (RoT) over an I2C target interface.
Execute the following command at the BMC prompt to verify SWMBX functionality:
Verify the SWMBX address:
aspeed-pfr-tool -w 0x13 0x8
aspeed-pfr-tool -r 0x13
[Expected output: 0x8]
Verify the protected SWMBX address:
aspeed-pfr-tool -w 0x12 0x8
aspeed-pfr-tool -r 0x12
[Expected output: 0x0]
Verify the notify functionality:
aspeed-pfr-tool -w 0x13 0x8
On Ast1060 console, you should see [NOTIFY] SWMBX: notify triggered on port 0 addr 0x13
Verify the FIFO functionality:
aspeed-pfr-tool -w 0xd 0x1f
aspeed-pfr-tool -w 0xd 0x2f
aspeed-pfr-tool -w 0xd 0x3f
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
[Expected output: 0x1f, 0x2f, 0x3f, 0x0]