Changes for V4 ============== 1) Move delete of QuarkSocPkg\QuarkNorthCluster\Binary\QuarkMicrocode from QuarkPlatformPkg commit to QuarkSocPkg commit 2) Fix incorrect license header in PlatformSecLibModStrs.uni Changes for V3 ============== 1) Set PcdResetOnMemoryTypeInformationChange FALSE in QuarkMin.dsc This is required because QuarkMin.dsc uses the emulated variable driver that does not preserve any non-volatile UEFI variables across reset. If the condition is met where the memory type information variable needs to be updated, then the system will reset every time the UEFI Shell is run. By setting this PCD to FALSE, then reset action is disabled. 2) Move one binary file to QuarkSocBinPkg 3) Change RMU.bin FILE statements to INF statement in DSC FD region to be compatible with PACKAGES_PATH search for QuarkSocBinPkg Changes for V2 ============== 1) Use new generic PCI serial driver PciSioSerialDxe in MdeModulePkg 2) Configure PcdPciSerialParameters for PCI serial driver for Quark 3) Use new MtrrLib API to reduce time to set MTRRs for all DRAM 4) Convert all UNI files to utf-8 5) Replace tabs with spaces and remove trailing spaces 6) Add License.txt Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Acked-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19287 6f19259b-4bc3-4df7-8a09-765794883524
166 lines
6.1 KiB
Plaintext
166 lines
6.1 KiB
Plaintext
/** @file
|
|
CPU EIST control methods
|
|
|
|
Copyright (c) 2013-2015 Intel Corporation.
|
|
|
|
This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
DefinitionBlock (
|
|
"CPU0IST.aml",
|
|
"SSDT",
|
|
0x01,
|
|
"SsgPmm",
|
|
"Cpu0Ist",
|
|
0x0012
|
|
)
|
|
{
|
|
External (PDC0, IntObj)
|
|
External (CFGD, FieldUnitObj)
|
|
External(\_PR.CPU0, DeviceObj)
|
|
|
|
Scope(\_PR.CPU0)
|
|
{
|
|
Method(_PPC,0)
|
|
{
|
|
Return(ZERO) // Return All States Available.
|
|
}
|
|
|
|
Method(_PCT,0)
|
|
{
|
|
//
|
|
// If GV3 is supported and OSPM is capable of direct access to
|
|
// performance state MSR, we use MSR method
|
|
//
|
|
//
|
|
// PDCx[0] = Indicates whether OSPM is capable of direct access to
|
|
// performance state MSR.
|
|
//
|
|
If(LAnd(And(CFGD,0x0001), And(PDC0,0x0001)))
|
|
{
|
|
Return(Package() // MSR Method
|
|
{
|
|
ResourceTemplate(){Register(FFixedHW, 0, 0, 0)},
|
|
ResourceTemplate(){Register(FFixedHW, 0, 0, 0)}
|
|
})
|
|
|
|
}
|
|
|
|
//
|
|
// Otherwise, we use smi method
|
|
//
|
|
Return(Package() // SMI Method
|
|
{
|
|
ResourceTemplate(){Register(SystemIO,16,0,0xB2)},
|
|
ResourceTemplate(){Register(SystemIO, 8,0,0xB3)}
|
|
})
|
|
}
|
|
|
|
Method(_PSS,0)
|
|
{
|
|
//
|
|
// If OSPM is capable of direct access to performance state MSR,
|
|
// we report NPSS, otherwise, we report SPSS.
|
|
If (And(PDC0,0x0001))
|
|
{
|
|
Return(NPSS)
|
|
}
|
|
|
|
Return(SPSS)
|
|
}
|
|
|
|
Name(SPSS,Package()
|
|
{
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000}
|
|
})
|
|
|
|
Name(NPSS,Package()
|
|
{
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},
|
|
Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000}
|
|
})
|
|
|
|
Method(_PSD,0)
|
|
{
|
|
//
|
|
// If CMP is suppored, we report the dependency with two processors
|
|
//
|
|
If(And(CFGD,0x1000000))
|
|
{
|
|
//
|
|
// If OSPM is capable of hardware coordination of P-states, we report
|
|
// the dependency with hardware coordination.
|
|
//
|
|
// PDCx[11] = Indicates whether OSPM is capable of hardware coordination of P-states
|
|
//
|
|
If(And(PDC0,0x0800))
|
|
{
|
|
Return(Package(){
|
|
Package(){
|
|
5, // # entries.
|
|
0, // Revision.
|
|
0, // Domain #.
|
|
0xFE, // Coord Type- HW_ALL.
|
|
2 // # processors.
|
|
}
|
|
})
|
|
}
|
|
|
|
//
|
|
// Otherwise, the dependency with OSPM coordination
|
|
//
|
|
Return(Package(){
|
|
Package(){
|
|
5, // # entries.
|
|
0, // Revision.
|
|
0, // Domain #.
|
|
0xFC, // Coord Type- SW_ALL.
|
|
2 // # processors.
|
|
}
|
|
})
|
|
}
|
|
|
|
//
|
|
// Otherwise, we report the dependency with one processor
|
|
//
|
|
Return(Package(){
|
|
Package(){
|
|
5, // # entries.
|
|
0, // Revision.
|
|
0, // Domain #.
|
|
0xFC, // Coord Type- SW_ALL.
|
|
1 // # processors.
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|