Commit graph

873 commits

Author SHA1 Message Date
vanjeff
31d95c506f Sync patches r13953, r13956, r13991, r13992, r14073, r14075, r14205 and r14225 from main trunk.
1. If IDE controller is not in IDE mode, we should not clear IO bar.
2. Remove hard code value and create new PCDs for OpROM reserved range in CSM module.
3. Parse full EDID data to get all video resolutions supported by monitors.
4. Take the highest horizontal resolution as highest video resolution.
5. Call LegacyBiosInstallVgaRom to shadow Legacy VBIOS instead of LegacyBiosInstallPciRom during legacy boot.
6. When EDID comes from hardware INT10 and does not include 800x600, 640x480 and 1024x768, but INT10 supports these modes, add them into GOP mode.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14246 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-04 04:27:39 +00:00
vanjeff
713d8dda0b Sync patches r13935, r13948, r13952, r13980, r13981 and r14062 from main trunk.
1. Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which is not required to be restored by OS.
2. Use IA32_IDT_GATE_DESCRIPTOR defined in BaseLib instead of local struct INTERRUPT_GATE_DESCRIPTOR.
3. Just reserve memory space for page table, but not create it, and allocate the memory with ReservedMemory instead of ACPIMemoryNVS.
4. ACPI4.0/5.0 have clear description:
FIRMWARE_CTRL: If the X_FIRMWARE_CTRL field contains a non zero value then this field must be zero.
X_FIRMWARE_CTRL: This field is used when the physical address of the FACS is above 4GB. If the FIRMWARE_CTRL field contains a non zero value then this field must be zero.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14231 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-01 06:48:54 +00:00
vanjeff
a854a26693 Sync patches r13538 and r13934 from main trunk.
1. To follow UEFI spec, update the code to make correct check to support multiple _ADR fields.
2. BiosVideo allocate wrong size of buffer for EDID override data. Fix this issue to allocate correct buffer size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14070 6f19259b-4bc3-4df7-8a09-765794883524
2013-01-18 03:39:29 +00:00
vanjeff
e34097de52 Sync patches r13959 and r13960 from main trunk.
Update FrameBufferSize aligned with UEFI spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14066 6f19259b-4bc3-4df7-8a09-765794883524
2013-01-18 02:21:33 +00:00
vanjeff
ae357ee1b1 Sync patch r13944 from main trunk.
Remove 0xc8000 check when searching PNP header. Remove the check about the size of Init code when validating if PCI 3.0 OPROM is successfully started.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13950 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-17 06:44:50 +00:00
vanjeff
245498de2a Sync patches r13889, r13890, r13891, r13892, r13896 and r13897 from main trunk.
Add missing status code in several modules.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13917 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-02 03:08:23 +00:00
vanjeff
e2c3fbef89 Sync patch r13879 from main trunk.
Use ReadUnaligned16 function to access the buffer which is pointed by a possible unaligned pointer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13910 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-01 07:57:24 +00:00
vanjeff
49e46fe812 Sync patches r13861, r13869 and r13870 from main trunk.
Remove the KeyOrder variable dependency from BDS.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13906 6f19259b-4bc3-4df7-8a09-765794883524
2012-11-01 03:02:00 +00:00
vanjeff
f2adfd989b Sync patch r13855 from main trunk.
Fix ECC issue.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13871 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-19 03:25:08 +00:00
vanjeff
627e99c56d Sync patches r13599, r13698, r13732, r13787, r13818 and r13819 from main trunk.
1. Removed SetMode in GraphicsConsole Start() in release BIOS to improve performance. Initialize current text mode number to 0xFF as invalid text mode per UEFI spec. Add current mode check in text out protocol interface to avoid invalid text mode.
2. Set mode 0 (80x25) when Consplitter does not exist. 
3. Fix the issue that FTW driver fail to reclaim WorkSpace.
4. Move GOP and UGA draw from Consplitter entrypoint to start(). When there is one real physical graphics device in system, Consplitter will expose GOP/UGA protocol on the virtual handle. In addition, fix a obvious logic issue in GraphicsConsole.
5. Update license statement and function header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13829 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-12 03:18:50 +00:00
vanjeff
df43e6826d Sync patch r13820 from main trunk.
Add PcdFastPS2Detection to improve PS2 keyboard driver start performance.




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13828 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-12 03:11:54 +00:00
vanjeff
3eb18248cd Sync r13507, r13508, r13577, r13748 and r13814 from main trunk.
1. Update the logic to force user to reset when change configuration which need to reset.
2. Move PcdConInConnectOnDemand initlization to PlatformBds constructor so that hotkey service can act accordingly.
3. Reset system only when the pre-allocated memory is more than 1.5 of needed memory and boot mode is BOOT_WITH_DEFAULT_SETTING, or less than the needed memory.
4. Fix some corner case for LazyConIn feature.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13822 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-11 08:13:20 +00:00
vanjeff
1f62484a60 Sync patches r13480, r13566, r13567, r13568, r13607, r13608, r13644, r13645 and r13653 from main trunk.
1. In PcdBootlogoOnlyEnable case, Clear cursor & screen when key rather than Hotkey or Enter is pressed to goto front page.
2. Add 2 new Bds features
 a. Lazy ConIn
 b  OsIndicationsSupported & OsIndications





git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13821 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-11 07:01:47 +00:00
vanjeff
bd40d1e5e7 Sync patches r13659, r13678 and r13681 from main trunk.
1. Change the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields.
2. Change the BDS module in IntelFrameworkModulePkg to use the new EFI_BOOT_KEY_DATA definition.
3. Change Bcfg.c to use the new definition of EFI_KEY_OPTION.




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13816 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-10 08:18:03 +00:00
vanjeff
615a7f5c4c Sync patches r13593 and r13731 from main trunk.
1. LastVariableOffset is wrongly set to 0 when FtwVariableSpace() fails. Recalculate the HwErrVariableTotalSize, HwErrVariableTotalSize and LastVariableOffset when FtwVariableSpace() fails.
2. Fix a bug when comparing two timestamp in auth-variable driver.
   Remove the TimeCompare function in Bds since it's not used anymore.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13813 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-10 06:22:34 +00:00
vanjeff
609d2cf512 Sync patches r13537, r13609 and r13736 from main trunk.
1. Added secure boot in CSM module entrypoint, if UEFI secure boot is enabled,
   CSM module cannot be started.
2. Check if active video mode is changed after OpROM starts, if active video 
   mode is not changed, skip INT10 calls to improve performance.
3. Handle the case when OpROM wants to completely remove itself.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13797 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-08 07:28:53 +00:00
vanjeff
005c2f46c2 Sync patch r13461 from main trunk.
Align the perf data between FPDT and DP.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13794 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-08 06:54:18 +00:00
vanjeff
45a62f65ed Sync patch r13742 from main trunk.
Remove local function IsValidDevicePath and use new interface provided by UefiDevicePathlib.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13789 6f19259b-4bc3-4df7-8a09-765794883524
2012-10-08 03:27:50 +00:00
vanjeff
ba74deee9d Sync patch r13441 from main trunk.
Update PeiDxeDebugDebugLibReportStatusCode to use CopyMem() in place of AsciiStrnCpy() to copy ASCII string to save size.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13442 6f19259b-4bc3-4df7-8a09-765794883524
2012-06-12 02:45:43 +00:00
vanjeff
e7fa72eb43 Sync patch r13406 from main trunk.
Fixed build failed.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13420 6f19259b-4bc3-4df7-8a09-765794883524
2012-06-01 05:54:15 +00:00
vanjeff
6c13949e9c Sync patch r13375 from main trunk.
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also replace old interface with new one.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13405 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 08:31:35 +00:00
vanjeff
074d81db19 Sync patches r13368, r13377 and r13379 from main trunk.
1. Update DxeCore and FwVolDxe drivers to inherit authentication status for the FV image, if the image came from an FV image file and section in another firmware volume.
2. Record LoadImage perf log for LoadImageEx() and use NULL as Handle to record StartImage perf log when StartImage() fails.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13404 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 08:13:57 +00:00
vanjeff
34356a9f86 Sync patches r13356 and r13358 from main trunk.
1. Enhance the ConPlatform driver's matching algorithm to manage the console controller when it shares the same parent with a certain instance in the "ConOut".
2. Remove the check of signature because the code which looks for the input NotifyHandle in the internal linked list is enough.
3. Enhance ConSplitter to register hot keys for new connected consoles.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13398 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:40:37 +00:00
vanjeff
eeecee2beb Sync patch r13352 from main trunk.
Update the way to allocate high PMM, firstly try to allocate high PMM below 16MB, if it fails, allocate high PMM below 4GB.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13397 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:35:40 +00:00
vanjeff
2eb852269c Sync patch r13339 from main trunk.
Update PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT message if ASSERT message is too big. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13396 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:30:26 +00:00
vanjeff
1778a0a4c7 Sync patches r13324 r13362, r13363 and r13366 from main trunk.
1. Clean ParentHandle field when image is loaded directly from the firmware's boot manager.
2. Refine logic about validate boot option and coding style.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13395 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:10:04 +00:00
vanjeff
1b5947fceb Sync patch r13322 from mail trunk.
Add logic to validate console variables when enter BDS.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13344 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-22 05:53:04 +00:00
vanjeff
7418cc4f60 Sync patch r13288 from mail trunk.
Fix memory leak issues.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13320 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-17 08:00:02 +00:00
vanjeff
4eb07d819f Sync patch r13275 from mail trunk.
Currently restoring PCI attributes are put in child uninstall logic, if one child is uninstalled, PCI attributes are restored, it will bring problem for stopping the next child. we do not restore the PCI attributes until all child handles are uninstalled.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13319 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-17 07:55:55 +00:00
vanjeff
fabb21c63b Sync patches r13159, r13185 and r13203 from mail trunk.
1. When transfer from Unicode to hex number, current code only consider the 0-9 case, not include the A-F case, now update code to consider all.
2. Add more check for the bmp file to avoid access violation.
3. Add code to check boot option variable before use it.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13272 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-04 05:08:19 +00:00
vanjeff
6bfa5e1ee9 Sync patch r13143 from mail trunk.
Searching for files starts on an 8 byte aligned boundary after the end of the Extended Header if it exists.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13271 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-03 07:23:35 +00:00
vanjeff
124937d6ca Sync patch r13095 from mail trunk.
Improve robustness when scanning PCI Option ROM.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13174 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 05:19:54 +00:00
vanjeff
de98daa94e Sync patch r13154 from mail trunk.
Update code to follow coding style.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13173 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 03:23:44 +00:00
vanjeff
6e4f3ef602 Sync patch r13074 from mail trunk.
When CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, offset + 0xabcd could exceed 0xFFFF which is invalid in real mode. So added NORMALIZE_EFI_SEGMENT and  NORMALIZE_EFI_OFFSET to keep offset as small as possible to avoid this issue during CSM16 function call.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13171 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 01:54:25 +00:00
vanjeff
ff8ee594e1 Sync patch r12927 and r12928 from mail trunk.
Add check when get boot option variable to avoid system hang.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13169 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-06 08:33:22 +00:00
vanjeff
06418a907d Sync patch r13116 from mail trunk.
Add BootlogoOnly feature in BDS for BGRT.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13151 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-29 03:50:04 +00:00
vanjeff
36cef654a5 Sync patch r13094 and r13096 from mail trunk.
Enhance the error handling.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13149 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-29 03:38:08 +00:00
vanjeff
28fb1f65bc Sync patches r12979 and r13025 from mail trunk.
1. Add Missing invocations to VA_END() for VA_START().
2. Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiLib instance that there is a non portable assumption that Marker is copied when passed to a function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13118 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-23 05:54:41 +00:00
ydong10
98ba35a40c Patch includes:
1.Update question value after BDS change code to avoid save invalid data.
2.Fix a corner case bug that may cause unexpected popup when changing the legacy device order.
Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12892 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-22 06:31:40 +00:00
jyao1
71824dd8db InstallAcpiTable() - Do not update the checksum in the passed in buffer – the buffer is an IN buffer and should be treated as such.
signed-off-by: jyao1
reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12869 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-15 05:34:57 +00:00
ydong10
8472407740 Update for IntelFrameworkModulePkg.
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used. 
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING. 
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12866 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-15 02:56:46 +00:00
vanjeff
660b39c75c Update IntelFrameworkModulePkg version: 0.91->0.92
Signed-off-by: vanjeff
Reviewed-by: hhtian

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12853 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-14 02:13:01 +00:00
vanjeff
20f6ac147c Update the check condition to allows 64-bit operation's data buffer not to be 64-bit aligned on IA32 system.
Signed-off-by: vanjeff
Reviewed-by: mdkinney




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12809 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-01 06:12:28 +00:00
lgao4
a661e27f7a Update code to pass build on VS2008 with /Od compiler option.
Signed-off-by: lgao4
Reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12791 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-28 06:14:31 +00:00
lzeng14
5eddabfc66 1. According to PI errata 0000840 and PI 1.2c Vol 3 3.2.3, remove description rows that start with a Required Alignment (bytes) of 2, 4, and 8.
2. In PeiFfsFvPpiGetFileInfo(), FileHeader->Attributes needs to be converted to EFI_FV_FILE_ATTRIBUTES from EFI_FFS_FILE_ATTRIBUTES before it is assigned to FileInfo->FileAttributes.
3. Set EFI_FV_FILE_ATTRIB_FIXED and EFI_FV_FILE_ATTRIB_MEMORY_MAPPED bits for EFI_FV_FILE_ATTRIBUTES based on the FFS file and FV image.

Signed-off-by: lzeng14
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12776 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-25 01:56:58 +00:00
li-elvin
32bc1227a5 Update console mode setup to use PcdSetupConOutColumn and PcdSetupConOutRow which are specially for BIOS setup.
Signed-off-by: li-elvin
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12770 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-24 01:01:48 +00:00
ydong10
eb5e7d3e7a Update code to follow coding style. Mainly change about:
1. Remove duplicate lib
2. Refine the name for enum member.
Signed-off-by: ydong10
Reviewed-by: lgao4
Reviewed-by: gdong1
Reviewed-by: vanjeff


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12767 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-23 09:20:57 +00:00
li-elvin
ace74c67ba Use PCD to customize if ps2 mouse and mouse pointer device do full reset.
Signed-off-by: li-elvin
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12755 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21 11:16:39 +00:00
lzeng14
49975acb39 According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record.
Signed-off-by: lzeng14
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12750 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21 08:53:54 +00:00
li-elvin
3512efa9b2 CSM is updated to remove RaiseTPL (TPL_HIGH_LEVEL) and disable 2 known UEFI interrupts instead. This is needed to process HPET timer interrupt before going into real mode.
Signed-off-by: li-elvin
Reviewed-by: vanjeff

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12701 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-15 07:59:21 +00:00