Skip to content

Commit

Permalink
SecurityPkg: Tcg2Acpi: Remove Unused Functionality
Browse files Browse the repository at this point in the history
This patch removes the _DSM Memory Clear and MOR
auto-detect functionality which is unused.
  • Loading branch information
johnstra authored and os-d committed Jul 4, 2024
1 parent 14a359e commit 9da2187
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SecurityPkg/Tcg/Tcg2Acpi/Tpm.asl
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ DefinitionBlock (

Method (PTS, 1, Serialized)
{
#if 0 // MU_CHANGE Begin - Remove MOR auto-detect from TPM.PTS
//
// Detect Sx state for MOR, only S4, S5 need to handle
//
Expand All @@ -261,6 +262,7 @@ DefinitionBlock (
Store (MCIN, IOPN)
}
}
#endif // MU_CHANGE End
Return (0)
}

Expand Down Expand Up @@ -446,6 +448,7 @@ DefinitionBlock (
Return (1)
}

#if 0 // MU_CHANGE Begin - Remove support for _DSM Memory Clear
Method (TMCI, 2, Serialized, 0, IntObj, {UnknownObj, UnknownObj}) // IntObj, PkgObj
{
//
Expand Down Expand Up @@ -482,6 +485,7 @@ DefinitionBlock (
}
Return (1)
}
#endif // MU_CHANGE End

Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})
{
Expand All @@ -502,13 +506,17 @@ DefinitionBlock (
Return (TPPI (Arg2, Arg3))
}

// MU_CHANGE Begin - Remove support for _DSM memory clear
/*
//
// TCG Memory Clear Interface
//
If(LEqual(Arg0, ToUUID ("376054ed-cc13-4675-901c-4756d7f2d45d")))
{
Return (TMCI (Arg2, Arg3))
}
*/
// MU_CHANGE End

Return (Buffer () {0})
}
Expand Down

0 comments on commit 9da2187

Please sign in to comment.