Skip to content

swmbx: Introduce mailbox target driver #37

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevenlee7189
Copy link
Collaborator

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]

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 <[email protected]>
@stevenlee7189
Copy link
Collaborator Author

The PR should be reviewed after the i2c driver is merged.

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.

1 participant