forked from tianocore/edk2-platforms
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AmpereAltraPkg/CpuConfigDxe: Add SLC as L3$ option to CPU screen
This adds an option for treating SLC as L3$ in the PPTT ACPI table. This option is only active and enabled by default for 1P monolithic mode. And, the SubNUMA mode is not changeable when the SLC as L3$ option is enabled. Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
1 parent
4f7fff1
commit 9d5203b
Showing
10 changed files
with
274 additions
and
57 deletions.
There are no files selected for viewing
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
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
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
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
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
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
19 changes: 0 additions & 19 deletions
19
Silicon/Ampere/AmpereAltraPkg/Drivers/CpuConfigDxe/CpuConfigNVDataStruc.h
This file was deleted.
Oops, something went wrong.
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
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
33 changes: 33 additions & 0 deletions
33
Silicon/Ampere/AmpereAltraPkg/Include/CpuConfigNVDataStruc.h
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @file | ||
Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.<BR> | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#ifndef CPU_CONFIG_NV_DATA_STRUC_H_ | ||
#define CPU_CONFIG_NV_DATA_STRUC_H_ | ||
|
||
#define CPU_SUBNUMA_MODE_MONO 0x00 | ||
#define CPU_SUBNUMA_MODE_HEMI 0x01 | ||
#define CPU_SUBNUMA_MODE_QUAD 0x02 | ||
|
||
#define CPU_SLC_AS_L3_ENABLE 0x00 | ||
#define CPU_SLC_AS_L3_DISABLE 0x01 | ||
|
||
#define CPU_SLC_AS_L3_PERMITTED_YES 0x00 | ||
#define CPU_SLC_AS_L3_PERMITTED_NO 0x01 | ||
|
||
#pragma pack(1) | ||
typedef struct { | ||
UINT32 CpuSubNumaMode; | ||
UINT32 CpuSlcAsL3Permitted; | ||
UINT32 CpuSlcAsL3; | ||
} CPU_VARSTORE_DATA; | ||
|
||
#pragma pack() | ||
|
||
#define CPU_CONFIG_VARIABLE_NAME L"CpuConfigNVData" | ||
|
||
#endif /* CPU_CONFIG_NV_DATA_STRUC_H_ */ |