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

TPM software stack unification for coreboot #113

Closed
miczyg1 opened this issue Jun 8, 2022 · 10 comments
Closed

TPM software stack unification for coreboot #113

miczyg1 opened this issue Jun 8, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@miczyg1
Copy link
Contributor

miczyg1 commented Jun 8, 2022

The problem you're addressing (if any)
coreboot has a compile time option not choose one of the TPMs: TPM1.2, TPM 2.0 SPI/LPC memory mapped, TPM 2.0 CRB memory mapped. Using fTPM or dTPM dynamically is not possible.

Describe the solution you'd like
Unify TPM drivers in coreboot. TPM 2.0 is first priority then TPM 1.2 eventually. TPM 1.2 support is being neglected by modern platforms.

Where is the value to a user, and who might that user be?
User will be able to dynamically switch between dTPM/fTPM with #112
Also, this will prevent bricks when vboot is enabled and secdata is not mocked for fTPM.

Describe alternatives you've considered
None

Additional context
None

@miczyg1 miczyg1 added the enhancement New feature or request label Jun 9, 2022
@macpijan
Copy link
Contributor

Is there a coreboot ticket for this feature? If not, please create one.

@macpijan macpijan added this to To Do in Nlnet October 2022 Oct 14, 2022
@macpijan
Copy link
Contributor

@miczyg1 Could you please create ticket for that?

IIUC, this one is a prerequisite for: #112 ?

@miczyg1
Copy link
Contributor Author

miczyg1 commented Oct 24, 2022

https://ticket.coreboot.org/issues/433

@rafkoch
Copy link

rafkoch commented Nov 29, 2022

@miczyg1 last comment in this issue is from a month ago. What are the next steps you plan to take in this task?

@rafkoch
Copy link

rafkoch commented Dec 6, 2022

@miczyg1 this your comment I understand as this issue is done. So why it is still open?

@miczyg1
Copy link
Contributor Author

miczyg1 commented Dec 6, 2022

@rafkoch the work is being done by @SergiiDmytruk on upstream coreboot gerrit.

I think we may consider it done as the development is complete, but not yet merged. However we did not test the code developed in this requirement on any hardware with various TPMs connected? So before we consider it done, let's verify the code at least on few devices in 3mdeb lab with dTPM 1.2, dTPM 2.0 and fTPM 2.0

@SergiiDmytruk
Copy link
Member

Yes, more testing is necessary. Submitted reverts for 2 out of 4 commits merged yesterday as people report master being broken:

The other 2 commits seem like they shouldn't cause trouble.

@desowin
Copy link

desowin commented Feb 20, 2024

Is it possible to disable fTPM with some config Kconfig (with the hope that this will enable use of dTPM)? I didn't find anything related when I was looking for it in make nconfig

@SergiiDmytruk
Copy link
Member

Is it possible to disable fTPM with some config Kconfig (with the hope that this will enable use of dTPM)? I didn't find anything related when I was looking for it in make nconfig

I don't think so, at least https://review.coreboot.org/c/coreboot/+/80456 is needed and probably some more to disable HAVE_INTEL_PTT.

@BeataZdunczyk
Copy link
Member

We have added TPM software stack unification to our newest Dasharo (coreboot+Heads) v0.9.0 release for MSI Z690-A and Z790-P boards, available here. Release notes can be found here: Z690-A, Z790-P.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

6 participants