Reporting Issues
Bug 2994 - Add NvUndefineSpaceSpecial to the Tpm2CommandLib
Summary: Add NvUndefineSpaceSpecial to the Tpm2CommandLib
Status: CONFIRMED
Alias: None
Product: Tianocore Feature Requests
Classification: Unclassified
Component: Code (show other bugs)
Version: Current
Hardware: All All
: Lowest normal
Assignee: Bret Barkelew
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-02 20:31 UTC by Bret Barkelew
Modified: 2022-04-13 02:13 UTC (History)
2 users (show)

See Also:
EDK II Code First industry standard specifications: ---
Branch URL:
Release(s) the issue is observed: EDK II Master
The OS the target platform is running: ---
Package: SecurityPkg
Release(s) the issues must be fixed: EDK II Master
Tianocore documents:


Attachments
P1 (7.63 KB, application/octet-stream)
2020-10-02 20:31 UTC, Bret Barkelew
Details
0001-SecurityPkg-Library-Add-Tpm2NvUndefineSpaceSpecial-to-Tpm2CommandLib.patch (7.99 KB, application/octet-stream)
2022-04-13 02:13 UTC, jiewen.yao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bret Barkelew 2020-10-02 20:31:04 UTC
Created attachment 569 [details]
P1

Will attach a suggested patch.
Comment 1 Laszlo Ersek 2020-10-06 06:54:59 UTC
Hi Bret,

can you please write up the use case in this BZ ticket? (I've also checked the commit message on the attachment in comment#0, and it doesn't help.)

Thanks!
Comment 2 Bret Barkelew 2020-10-06 14:16:01 UTC
Sure. At it's heart, this is a command defined in the TCG spec, supported on all TPM 2.0 modules, and of use to platforms.

More specifically, it is required for certain DRTM implementations to facilitate servicing by the FW.
Comment 3 Laszlo Ersek 2020-10-07 07:50:49 UTC
Ah, I see. So it looks like a feature addition -- implement a new command (NvUndefineSpaceSpecial, per spec) that Tpm2CommandLib currently lacks. I'll go ahead and change the BZ classification now. Also, since you are proposing a patch at once, I'll take the liberty of assigning this ticket to you. Hope that's OK. Thanks!
Comment 4 Bret Barkelew 2020-10-07 13:52:34 UTC
That works perfectly. Thanks!
Comment 5 jiewen.yao 2022-04-13 02:13:50 UTC
Created attachment 979 [details]
0001-SecurityPkg-Library-Add-Tpm2NvUndefineSpaceSpecial-to-Tpm2CommandLib.patch