From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10 To: devel@edk2.groups.io From: "Daniele Crudo" X-Originating-Location: Cossato, Piedmont, IT (77.242.185.222) X-Originating-Platform: Windows Chrome 96 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 28 Dec 2021 01:03:48 -0800 Message-ID: Content-Type: multipart/alternative; boundary="PPsTSo79zYRhm0uHm43M" --PPsTSo79zYRhm0uHm43M Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I just compiled ovmf, updated to commit 6612ff8 (24/12/2021): https://github.com/tianocore/edk2/commit/6612ff85611bc2be16dc0fd5de0e1413df= 88941a The build command: build -a X64 -b RELEASE -D SECURE_BOOT_ENABLE -D TPM_ENABLE -D FD_SIZE_4MB = -p OvmfPkg/OvmfPkgX64.dsc -t GCC5 And used OVMF_CODE.fd and OVMF_VARS.fd for my windows 11 vm in qemu. Looking at system devices, Windows 11 now can't start TPM 2.0 device (Error= code 10). I also tried to uninstall tpm and reinstall, same issue. Switching back to 202108 stable version and no issue. I can try to bisect to find the commit causing the issue, but maybe you are= faster in finding what broke it. --PPsTSo79zYRhm0uHm43M Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,
I just compiled ovmf, updated to commit 6612ff8 (24/12/2021):
https://github.com/t= ianocore/edk2/commit/6612ff85611bc2be16dc0fd5de0e1413df88941a

The build command:
build -a X64 -b RELEASE -D SECURE_BOOT_ENABLE -D = TPM_ENABLE -D FD_SIZE_4MB -p OvmfPkg/OvmfPkgX64.dsc -t GCC5

And = used OVMF_CODE.fd and OVMF_VARS.fd for my windows 11 vm in qemu.
Looki= ng at system devices, Windows 11 now can't start TPM 2.0 device (Error code= 10).
I also tried to uninstall tpm and reinstall, same issue.
Switching back to 202108 stable version and no issue.
I can try to= bisect to find the commit causing the issue, but maybe you are faster in f= inding what broke it. --PPsTSo79zYRhm0uHm43M-- From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10 To: Daniele Crudo ,devel@edk2.groups.io From: "Daniele Crudo" X-Originating-Location: Cossato, Piedmont, IT (77.242.185.222) X-Originating-Platform: Windows Chrome 96 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 28 Dec 2021 02:39:27 -0800 References: In-Reply-To: Message-ID: <12029.1640687967011274891@groups.io> Content-Type: multipart/alternative; boundary="Nz0i2pOUyNcroawuUGJw" --Nz0i2pOUyNcroawuUGJw Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I found the offending commit: OvmfPkg: rework TPM configuration https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58= adf9c5 With this commit applied windows 11 reports error code 10 with emulated qem= u/libvirt tpm 2.0 --Nz0i2pOUyNcroawuUGJw Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable I found the offending commit:
OvmfPkg: rework TPM configuration
<= a href=3D"https://github.com/tianocore/edk2/commit/4de8d61bcec02a13ceed84f9= 2b0cf3ea58adf9c5" target=3D"_blank" rel=3D"noopener">https://github.com/tia= nocore/edk2/commit/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5

= With this commit applied windows 11 reports error code 10 with emulated qem= u/libvirt tpm 2.0 --Nz0i2pOUyNcroawuUGJw-- From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] OVMF commit 6612ff8 24/12/2021 - Windows 11 vm - TPM 2.0 error code 10 To: Daniele Crudo ,devel@edk2.groups.io From: "Daniele Crudo" X-Originating-Location: Cossato, Piedmont, IT (77.242.185.222) X-Originating-Platform: Windows Chrome 96 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 28 Dec 2021 03:14:31 -0800 References: <12029.1640687967011274891@groups.io> In-Reply-To: <12029.1640687967011274891@groups.io> Message-ID: <12029.1640690071688962653@groups.io> Content-Type: multipart/alternative; boundary="80rKXMlEHze3HJbGuhmG" --80rKXMlEHze3HJbGuhmG Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable My bad, my build argument was wrong, and it was also written in the descrip= tion of the commit. -D TPM_ENABLE doesn't exist anymore, and it must be replaced with=C2=A0=C2= =A0-D TPM1_ENABLE (tpm 1.2) or with=C2=A0=C2=A0-D TPM2_ENABLE (tpm 2.0) Sorry! --80rKXMlEHze3HJbGuhmG Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable My bad, my build argument was wrong, and it was also written in the descrip= tion of the commit.
-D TPM_ENABLE doesn't exist anymore, and it must b= e replaced with  -D TPM1_ENABLE (tpm 1.2) or with  -D T= PM2_ENABLE (tpm 2.0)

Sorry! --80rKXMlEHze3HJbGuhmG--