-
Notifications
You must be signed in to change notification settings - Fork 494
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
Enable mm #159
Draft
jiaxinwu
wants to merge
8
commits into
tianocore:master
Choose a base branch
from
jiaxinwu:Enable_MM
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Enable mm #159
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jiaxinwu
force-pushed
the
Enable_MM
branch
5 times, most recently
from
June 26, 2024 09:10
d28c888
to
42e51e9
Compare
jiaxinwu
commented
Jul 3, 2024
Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc
Outdated
Show resolved
Hide resolved
Force PE/COFF sections to be aligned at 4KB boundaries to support MemoryAttribute table. Signed-off-by: Jiaxin Wu <[email protected]>
This patch changes below dynamic PCD to fixed PCD for MM_STANDALONE: gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0 Signed-off-by: Jiaxin Wu <[email protected]>
Enable PcdRestartMmDispatcherOnceMmEntryRegistered PCD Signed-off-by: Jiaxin Wu <[email protected]>
Add PcdStandaloneMmEnable feature PCD, default set to FALSE. Signed-off-by: Jiaxin Wu <[email protected]>
Include required StandaloneMm drivers under PcdStandaloneMmEnable PCD. Signed-off-by: Jiaxin Wu <[email protected]>
Include required StandaloneMm Drivers and Libs under PcdStandaloneMmEnable PCD. Change the PcdStandaloneMmEnable to TRUE to enable the MM on QSP. Signed-off-by: Jiaxin Wu <[email protected]>
jiaxinwu
force-pushed
the
Enable_MM
branch
2 times, most recently
from
August 7, 2024 02:11
98818c3
to
ebd866e
Compare
Add PcdCpuSmmProfileEnable & PcdCpuSmmRestrictedMemoryAccess for the SmmProfile enable/disable control for QSP. Signed-off-by: Jiaxin Wu <[email protected]>
The instructions in BaseMemoryLibRepStr could potentially trigger multiple #PF (Page Faults) before the Debug Trap handler is invoked if the size of the memory being copied exceeds 8KB. This would result in the number of recorded old entries bigger than the MAX_PF_ENTRY_COUNT limit of 10. The relevant instructions are: mov rcx, r8 and r8, 7 shr rcx, 3 rep movsq To prevent this issue, override the BaseMemoryLib with BaseMemoryLibSse2 when the SMM profile is enabled. This change avoids the use of the "rep movsq" instruction, which is the source of the problem. Signed-off-by: Jiaxin Wu <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.