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

support memory mapped tpms #271

Merged
merged 5 commits into from
Jun 28, 2023
Merged

support memory mapped tpms #271

merged 5 commits into from
Jun 28, 2023

Conversation

rizlik
Copy link
Contributor

@rizlik rizlik commented May 30, 2023

Enabled with --enable-mmio or WOLFTPM_MMIO.

Copy link
Member

@danielinux danielinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • please review README change.
  • Consider shortening the option name to WOLFTPM_MMIO
  • Should we also add a configure.ac option like --enable-mmio that would activate MMIO access?

README.md Outdated Show resolved Hide resolved
src/tpm2_tis.c Outdated Show resolved Hide resolved
danielinux
danielinux previously approved these changes Jun 1, 2023
@danielinux
Copy link
Member

Good to go, tested on Qemu. Off to @dgarske for final review & configuration naming (see open comment)

dgarske
dgarske previously approved these changes Jun 1, 2023
@dgarske dgarske assigned jpbland1 and unassigned dgarske Jun 1, 2023
@dgarske dgarske requested a review from jpbland1 June 1, 2023 15:58
@dgarske
Copy link
Contributor

dgarske commented Jun 1, 2023

I'd like some testing details added. Also some documentation on the new configure option. Assigning to @jpbland1 to work with @rizlik to work on improving tests and docs.

@dgarske dgarske self-requested a review June 28, 2023 17:25
@dgarske dgarske self-assigned this Jun 28, 2023
jpbland1
jpbland1 previously approved these changes Jun 28, 2023
Copy link
Contributor

@jpbland1 jpbland1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested working on my setup

@dgarske dgarske dismissed stale reviews from jpbland1, danielinux, and themself via 21638b0 June 28, 2023 20:40
@dgarske dgarske requested a review from jpbland1 June 28, 2023 20:40
dgarske
dgarske previously approved these changes Jun 28, 2023
@dgarske dgarske removed their assignment Jun 28, 2023
jpbland1
jpbland1 previously approved these changes Jun 28, 2023
Copy link
Contributor

@jpbland1 jpbland1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiled on my setup, looks good

@@ -54,6 +54,11 @@ WOLFTPM_LOCAL int TPM2_TIS_StartupWait(TPM2_CTX* ctx, int timeout);
WOLFTPM_LOCAL int TPM2_TIS_Write(TPM2_CTX* ctx, word32 addr, const byte* value, word32 len);
WOLFTPM_LOCAL int TPM2_TIS_Read(TPM2_CTX* ctx, word32 addr, byte* result, word32 len);

#ifdef WOLFTPM_MMIO_BUILTIN_CB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in the hal file and now has the wrong flag

#endif

#ifndef WOLFTPM_ADV_IO
#error "WOLFTPM_MMIO_BUILTIN_CB requires WOLFTPM_ADV_IO"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to new flag

@dgarske dgarske dismissed stale reviews from jpbland1 and themself via ab9bf29 June 28, 2023 23:01
Copy link
Contributor

@jpbland1 jpbland1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it working with the qemu repo

@dgarske dgarske merged commit 50bf4be into wolfSSL:master Jun 28, 2023
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.

4 participants