Bug 2072827 - TPM disabled due to incorrect build flags
Summary: TPM disabled due to incorrect build flags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: edk2
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paolo Bonzini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-07 03:55 UTC by Justin Gatzen
Modified: 2022-05-07 04:18 UTC (History)
6 users (show)

Fixed In Version: edk2-20220221gitb24306f15daa-3.fc37 edk2-20220221gitb24306f15daa-3.fc36
Clone Of:
Environment:
Last Closed: 2022-04-07 07:07:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
edk2.spec patch (443 bytes, patch)
2022-04-07 03:55 UTC, Justin Gatzen
no flags Details | Diff

Description Justin Gatzen 2022-04-07 03:55:36 UTC
Created attachment 1871190 [details]
edk2.spec patch

Description of problem:

TPM 2.0 with SWTPM is nonfunctional. Tested in a Windows guest using:

<tpm model='tpm-crb'>
  <backend type='emulator' version='2.0'/>
</tpm>


Working version: edk2-20211126gitbb1bba3d7767-1.fc35
Broken version: edk2-20220221gitb24306f15daa-2.fc36

More info:

I bisected the issue in upstream edk2 to: https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5. 

TPM_ENABLE was split into TPM1_ENABLE and TPM2_ENABLE upstream. Updating these build flags in the edk2.spec fixes the issue, see attached patch.

Comment 1 Fedora Update System 2022-04-07 07:04:51 UTC
FEDORA-2022-ea6020fa8b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ea6020fa8b

Comment 2 Fedora Update System 2022-04-07 07:07:31 UTC
FEDORA-2022-ea6020fa8b has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2022-04-07 08:16:55 UTC
FEDORA-2022-fe471a8da8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe471a8da8

Comment 4 Fedora Update System 2022-04-07 18:01:24 UTC
FEDORA-2022-fe471a8da8 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-fe471a8da8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe471a8da8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-05-07 04:18:40 UTC
FEDORA-2022-fe471a8da8 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.