[edk2] question about x2apic support

2015-08-10 Thread TigerLiu
Hello, experts: I have a question about x2apic support in UEFI BIOS. Could UEFI BIOS determine switching to xapic or x2apic when handing off to OS loader? Some webpages said: If CPU number < 255, BIOS should set to xapic mode. Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的

[edk2] OVMF for Xeon

2015-07-08 Thread TigerLiu
Hi, Laszlo: I have a question about OVMF package. 1. Qemu could emulate Xeon CPU, so OVMF firmware could run with Xeon in Qemu? Thanks a lot! Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢! The information transmitted in this e-mail is inten

[edk2] BOOTX64.EFI is what?

2015-06-04 Thread TigerLiu
Hello, experts: I found : Mdepkg\include\uefi\UefiSpec.h has some definitions: // // EFI File location to boot from on removable media devices // #define EFI_REMOVABLE_MEDIA_FILE_NAME_IA32 L"\\EFI\\BOOT\\BOOTIA32.EFI" #define EFI_REMOVABLE_MEDIA_FILE_NAME_IA64 L"\\EFI\\BOOT\\BOOTIA64.EFI" #

[edk2] could PPB's oprom be run?

2015-05-21 Thread TigerLiu
Hi, experts: Could EDK2’s PCI BUS driver find PPB’s OpROM and load it into DRAM? PPB : Pci-to-Pci Bridge. Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢! The information transmitted in this e-mail is intended only for the addressee and may

Re: [edk2] how to produce COD file for library files?

2015-04-29 Thread TigerLiu
Hi, Jie: You are right! Thanks a lot! Best wishes, 发件人: Lin, Jie [mailto:jie@intel.com] 发送时间: 2015年4月29日 20:09 收件人: edk2-devel@lists.sourceforge.net 主题: Re: [edk2] how to produce COD file for library files? You looked at a wrong location. The cod file for library locates in the output dire

[edk2] how to produce COD file for library files?

2015-04-29 Thread TigerLiu
Hi, experts: I revised Conf/tools.def.txt : DEBUG_VS2008x86_X64_CC_FLAGS = /nologo /c /WX /GS- /X /W4 /Gs32768 /D UNICODE /O1ib2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Zi /Gm /FAcs Added /FAcs options. So, drivers could produce *.COD file . But library could not produce corresponding *.COD

[edk2] Python script could call LocateHandle function?

2015-04-16 Thread TigerLiu
Hi, experts: I have a question about Python script. Could I call Boot Service function in Python script? Such as: Call BootServices->LocateHandle() in python script! Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢! The information transmitte

[edk2] EFI_SHELL_PROTOCOL installed on every App's imagehandle?

2015-04-08 Thread TigerLiu
Hi, experts: I have a question about UEFI Shell App: 1. UEFI App’s EntryPoint usually is as below: UefiMain ( IN EFI_HANDLEImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) When launches App at Shell command prompt: EFI_LOADED_IMAGE_PROTOCOL / EFI_SHELL_PARAMETERS_PROTOCO

Re: [edk2] UDK2014.IHV question

2015-04-02 Thread TigerLiu
Hi, Brian: Thanks for your reply! So: Is UDK2014.IHV only a reference package which demonstrates UEFI Driver should only use packages found in the IHV distribution? Is UDK2014.IHV not a compile environment? Best wishes, 发件人: Richardson, Brian [mailto:brian.richard...@intel.com] 发送时间: 2015年4月2日 2

[edk2] UDK2014.IHV question

2015-04-02 Thread TigerLiu
Hi, experts: I have a question about UDK2014.IHV package. I downloaded UDK2014.IHV package. After unzip it, and using UEFI Driver wizard to produce a sample PCI driver: MdeModulePkg\Universal\ChinaTest Following UDK2014.IHV-ReleaseNotes.txt, it needs a PlatformPkg, such as Nt32. So I copied a Nt3

[edk2] WinPcap question

2015-03-31 Thread TigerLiu
Hi, experts: I want to test some network apps with Nt32 Package. I have some questions : 1. WinPcap could be installed on Win7 x64 OS? (or need XP Compatible Mode) 2. SnpNt32Io could run in Win7 x64 OS? Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立

[edk2] APEI code in EDKII

2015-03-05 Thread TigerLiu
Hi, experts: I found a white paper: A Tour beyond BIOS Implementing the ACPI Platform Error Interface with the UEFI. So: Are there any platform agnostic APEI modules code in EDKII source code package? Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立即告知发件人并删除本邮

[edk2] how to declare reserved IO range ?

2015-02-27 Thread TigerLiu
Hi, experts: UEFI BIOS will do pci enumeration, and allocated IO ranges(not MMIO range, just pure IO range) for some PCI devices. So: How to declare these allocated IO ranges as reserved when booting OS. So OS won’t occupy these pre-allocated IO ranges when a PnP device is plugged during OS runti

Re: [edk2] [EDK2] NMI interrupt handler

2015-02-26 Thread TigerLiu
Hi, Andrew&Jeff: Got it! Thanks for your reply! Best wishes, 发件人: Andrew Fish [mailto:af...@apple.com] 发送时间: 2015年2月27日 10:34 收件人: edk2-devel@lists.sourceforge.net 主题: Re: [edk2] [EDK2] NMI interrupt handler On Feb 26, 2015, at 6:16 PM, tiger...@zhaoxin.com wrote:

[edk2] [EDK2] NMI interrupt handler

2015-02-26 Thread TigerLiu
Hi, experts: Does current EDK2 UEFI Source code include NMI interrupt handler? For example: If a NMI occurred during UEFI POST, BIOS could handle it or not? Best wishes, 本邮件仅针对指定的收件人发送并可能含有保密或专有内容。任何非指定收件人所为之查阅、转发或使用本信息是不被允许的。 如果您误收到本邮件,请立即告知发件人并删除本邮件及所有附件。谢谢! The information transmitted in this

[edk2] Local APIC's LINT0 / LINT1 Configuration

2015-01-30 Thread TigerLiu
Hi, experts: I have a question about CPU’s LVT configuration. During BIOS Phase, Cpu driver will configure: LINT0 as ExtINT, used to be compatible with 8259 PIC. LINT1 as NMI interrupt, used to receive NMI. So, my question is: BIOS provides MADT table, OS will use APIC mode. So OS will re-configu

[edk2] RootBridgeIoCheckParameter() function in PciRootBridgeIo.c

2015-01-16 Thread TigerLiu
Hi, experts: I have a question about RootBridgeIoCheckParameter() function in PciRootBridgeIo.c in PcAtChipsetPkg\PciHostBridgeDxe . RootBridgeIoCheckParameter() will check parameter invalid or valid. Take MemOperation as example: It will compare address with PrivateData->MemBase. But I found: P

Re: [edk2] test PXE on MinnowBoard

2015-01-16 Thread TigerLiu
Hi, Bruce: Thanks for your reply! So: Could I study PXE boot procedure with MinnowBoard with EDK2 Code package? I found it had integrated many network drivers in its dsc/fdf file. Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。 严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或分发。 如您非指

[edk2] test PXE on MinnowBoard

2015-01-15 Thread TigerLiu
Hi, experts: I plan to study PXE boot procedure with MinnowBard. So I have a few questions about MinnowBoard: 1. Does MinnowBoard provide a source code EDKII BIOS package? 2. How about UNDI driver? Is it also an open source driver in MinnowBoard EDKII source code package? Or just a bi

[edk2] PcdCpuSmmEnableBspElection's question

2015-01-12 Thread TigerLiu
Hi, What would be advantage/Disadvantage by forcing SMI handler always executed by BSP ( Setting PcdCpuSmmEnableBspElection to TRUE and FALSE)? Best wishes, CONFIDENTIAL NOTE: This email contains confidential or legally privileged information and is for the s

[edk2] e1000 giga byte network undi driver

2014-12-26 Thread TigerLiu
Hi, experts: I found a UNDI driver sample for E100 network card in edkii source code package: OptionRomPkg\UndiRuntimeDxe . Is there any some UEFI UNDI driver for E1000 giga byte network card? Or other third party's giga byte network card's UNDI driver? Best wishes, --

Re: [edk2] CirrusLogic5430 display card

2014-12-21 Thread TigerLiu
Hi, Paolo: >I don't think the driver has been tested ever with a real card. The card is emulated by QEMU and KVM. Got it! Is there any example UEFI GOP drivers' source code for third party display card? Best wishes, --

[edk2] CirrusLogic5430 display card

2014-12-19 Thread TigerLiu
Hi, experts: I found an OptionROM example for CirrusLogic5430 display card in edkii source code package. So where could I buy this product? It seems it is a very old PCI display card. Best wishes, -- Download BIR

Re: [edk2] Multi images in OptionROM

2014-12-14 Thread TigerLiu
Hi, Ramesh: Yes, for same device/controller. But these OptionROMs provided different protocols. Best wishes, From: Ramesh R. [mailto:rame...@ami.com] Sent: 2014年12月13日 1:09 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Multi images in OptionROM Is all there 3 option roms a

[edk2] Multi images in OptionROM

2014-12-11 Thread TigerLiu
Hi, experts: I have a question about OptionROM images. For example: There are 3 OptionROM images in a PCI Device's OptionROM. These OptionROM images are UEFI drivers actually, and no relation between 3 images. So, my question is: Will Pci Bus driver Load and Start all these 3 OptionROM ima

[edk2] PCDs in PEI phase

2014-11-12 Thread TigerLiu
Hi, experts: I found PCD_PPI / EFI_PEI_PCD_PPI provided Set functions. So I have 2 questions: 1. Before permanent memory had been initialized, PCD database was created at CAR region. Is there any limitations about Dynamic PCD used in this stage?(has only cache, not permanent memory) 2.

[edk2] FE flag in IA32_MTRR_DEF_TYPE MSR

2014-11-05 Thread TigerLiu
Hi, experts: I am studying IA32/X64 Programmer manual. There is a sentence(Volume-3A, 10.11.5 Section): On a hardware reset, the P6 and more recent processors clear the valid flags in variable-range MTRRs and clear the E flag in the IA32_MTRR_DEF_TYPE MSR to disable all MTRRs. All other bits

[edk2] PCD_PPI / EFI_PEI_PCD_PPI in PCD PEIM

2014-10-30 Thread TigerLiu
hi, experts: I found someone had ever asked this question: PCD peim will install 2 Ppis: 1. PCD_PPI 2. EFI_PEI_PCD_PPI It seems only EFI_PEI_PCD_PPI follows PI 1.2 Vol3's related definition. maybe, we just need to install only EFI_PEI_PCD_PPI. Is it for compatible with previous old edkii

Re: [edk2] question about InitInterruptDescriptorTable()function in CpuDxe.c

2014-10-29 Thread TigerLiu
Hi, Jeff: MdeModulePkg\Core\DxeIplPeim\Ia32\DxeLoadFunc.c will create IDT before handoff to Dxe. The first 32 IDT entries’ interrupt handler is very simple(ref to Ia32\IdtVectorAsm.asm): cli jmp $ So, why not hook a dump register function for these 32 reserved IDT entries? Such as :

Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread TigerLiu
Hi, Andrew: Thanks for your reply! So, I made a conclusion: If OldIdtSize > = 32, even below code not run, it’s aslo ok? // for (Index = OldIdtSize; Index < 32; Index++) { Status = CpuRegisterInterruptHandler (&gCpu, Index, CommonExceptionHandler); ASSERT_EFI_ERROR (Status);

[edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread TigerLiu
Hi, experts: I am confused by some codes in InitInterruptDescriptorTable() function (in UefiCpuPkg/CpuDxe/CpuDxe.c). .. if ((OldIdtPtr.Base != 0) && ((OldIdtPtr.Limit & 7) == 7)) { // Based on my understanding, because DxeIpl has created IDT when switching from P-Mode to Long-Mode. // So

[edk2] question about CPU BIST INFO

2014-10-29 Thread TigerLiu
Hi, experts: Based on PI Spec 1.3, there is EFI_HEALTH_FLAGS struct definition. And it is info about BPS's BIST info. So, my question is: 1. Based on IA-32 Architectures software developer manual, when CPU is powered on, it will run BIST automatically. So, how to retrieve BIST result i

[edk2] does edk2 code support APIC mechanism's interrupt handler?

2014-10-28 Thread TigerLiu
Hi, experts: I found edk2 code still used 8259 interrupt driver to dispatch interrupt to CPU. And configured CPU as LINT0=ExtINT / LINT1=NMI. So, my question is: Does Edk2 source code support Symmetric I/O Mode (APIC) described in MP Spec 1.4 version? Best wishes, ---

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-27 Thread TigerLiu
Hi, Jeff: Got it! Thanks a lot! For creating IDT in SEC/PEI phase, is it just for source level debug purpose? Usually, PEI should turn off interrupt, right? Best wishes, - Original Message - From: Fan, Jeff [mailto:jeff@intel.com] Sent: 2014年10月27日 15:04 To: edk2-devel@lists.sourcefo

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-26 Thread TigerLiu
Hi, Jeff: Thanks for your quick reply! Another question: 1. MdeModulePkg\Core\DxeIplPeim\Ia32\DxeLoadFunc.c will reconstruct IDT before handing off to DXE. if (FeaturePcdGet(PcdDxeIplSwitchToLongMode)) { Why it need to reconstruct IDT when trying to switch to Long-mode? } Else

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-26 Thread TigerLiu
Hi, Jeff: Thanks for your reply! S3ResumeExecuteBootScript() (in UefiCpuPkg\Universal\Acpi\S3Resume2Pei\S3Resume.c) will call AsmReadIdtr (&PeiS3ResumeState->Idtr) to save IDT. And S3ResumeBootOs()(in UefiCpuPkg\Universal\Acpi\S3Resume2Pei\S3Resume.c) will call AsmWriteIdtr (&PeiS3ResumeState->

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-23 Thread TigerLiu
Hi, Jeff: MdeModulePkg\Universal\Acpi\BootScriptExecutorDxe\X64\SetIdtEntry.c will hook page fault handler. So, is there any story about adding this hook function? I want to understand why adding this code. Thanks a lot! Best wishes, --

[edk2] question about setuping IDT in UEFI boot procedure

2014-10-23 Thread TigerLiu
Hi, experts: I am studying EDKII source code. I found IDT would be setup even in SEC phase. I usually know that CPU dxe driver will setup IDT because UEFI needs a timer interrupt handler. So, I want to know how many places to setup IDT in UEFI boot procedure. So, I listed my current study results:

Re: [edk2] [EDK2] Multi-processor Init in UEFI code

2014-10-21 Thread TigerLiu
Hi, Johnson: Thanks for your reply! I reviewed IA32 Manual, same as you said: BSP is hardware selection when powering on a Multi-processor cores, software need do nothing! Best wishes, -邮件原件- 发件人: Brian J. Johnson [mailto:bjohn...@sgi.com] 发送时间: 2014年10月22日 0:36 收件人: edk2-devel@lists.so

[edk2] [EDK2] Multi-processor Init in UEFI code

2014-10-20 Thread TigerLiu
Hi, experts: I am studying Intel 64 and IA-32 Architectures Software Developer's Manual Volume 3A.pdf . I have a few questions about Multi-processor management. 1. 7.5 Multi-processor initialization In Chapter 7 .. The mechanism for carrying out the MP initialization protocol diffe

[edk2] EFI_ISA_IO_PROTOCOL / EFI_SIO_PROTOCOL

2014-10-08 Thread TigerLiu
Hi, experts: I found PI Spec included EFI_SIO_PROTOCOL description. But not find EFI_ISA_IO_PROTOCOL. So, EFI_ISA_IO_Protocol is depreciated? Best wishes, -- Meet PCI DSS 3.0 Compliance Requirements with EventLog

[edk2] Question about disk io protocol

2014-09-01 Thread TigerLiu
Hi, experts: Based on UEFI Spec: This protocol is used to abstract the block accesses of the Block I/O protocol to a more general offset-length protocol. The firmware is responsible for adding this protocol to any Block I/O interface that appears in the system that does not already have a Disk

[edk2] EFI_PEI_LOADED_IMAGE PPI question

2014-08-25 Thread TigerLiu
Hi, experts: I found EFI_PEI_LOADED_IMAGE PPI was defined in PI_1.3 Spec. But not find using it in PEI Phase code. There is just ppi definition. So: Because it's optional ppi, not implement in current EDKII code base? Best wishes

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-20 Thread TigerLiu
Hi, Oliver: Thanks for your reply! I tried : ./Foundation_v8 --cores=2 --no-secure-memory --no-gicv3 --data="./bl1.bin"@0x0 --nsdata=./RTSM_VE_FOUNDATIONV8_EFI.fd@0xA000 But it failed to load and run EFI.fd. Best wishes, -邮件原件- 发件人: Olivier Martin [mailto:olivier.mar...@arm.com] 发送时

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-20 Thread TigerLiu
Hi, Oliver: Based on arm trusted firmware's doc : user-guide.md . I followed these steps to get a dedicated version uefi code: git clone -n https://github.com/tianocore/edk2.git cd edk2 git checkout 75f630347cace34e2d3abed2a5556ba71cfc50a9 After compiled it, I could run it with the fol

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-15 Thread TigerLiu
Hi, Oliver: Thanks for your answer! I have tried to get latest uefi code from https://svn.code.sf.net/p/edk2/code/trunk/edk2, and it compiled successfully. I aslo boot it with FVP model. I have a question about bootstrap code: 1. ArmPlatformPkg\ArmVExpressPkg\Scripts\uefi-aarch64-bootstrap Ha

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-15 Thread TigerLiu
Hi, Oliver: Based on this wiki: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/AArch64#Introduction 1. I got latest edkii code, and tried to patch BaseTools, but has failed patch tip message. . edksetup.sh `pwd`/BaseTools patch -p1 < ArmPlatformPkg/Documentation/pa

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-12 Thread TigerLiu
Hi, sharma: Thank you very much! I got it: Arm-trusted-firmware is the first running code on Foundation model. It runs at aarch64 execution state. Best wishes, -邮件原件- 发件人: bhupesh.sha...@freescale.com [mailto:bhupesh.sha...@freescale.com] 发送时间: 2014年1月13日 12:48 收件人: 'edk2-devel@lists.so

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-12 Thread TigerLiu
Hi, sharma: I used arm-none-linux-gnueabi-gcc-4.5.2 to compile 32bit uefi code. I have a question about foundation model: 1. There is an Open Source implementation of the Trusted/Secure Firmware: https://github.com/ARM-software/arm-trusted-firmware So, what is the relationship between ar

Re: [edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-12 Thread TigerLiu
Hi, sharma: Thanks for your answer! I described my understanding on current ARM UEFI code: 1. Most ARM UEFI code package is based on ARMv7 SOCs. Because of lacking ARMv8 development board, so enthusiast ported uefi code on 32bit SOC. 2. ARMv8 supports aarch32 state. So, if ARMv8 SOC powere

[edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-12 Thread TigerLiu
Hi, Oliver: I have a question abourt ARMv8 CPU's bootloader. ARMv8 supports: AARCH32 / AARCH64 Take an example: An ARMv8 SOC, when power up / reset, its default state is : AARCH32 Then, could i still run an old arm uefi bootloader which written by ARMv7 instruction set? I will switch ARMv8 SOC to A

[edk2] ARMv8 bootloader question

2014-01-09 Thread TigerLiu
Hi, Oliver: I have a question abourt ARMv8 CPU's bootloader. ARMv8 supports: AARCH32 / AARCH64 Take an example: An ARMv8 SOC, when power up / reset, its default state is : AARCH32 Then, could i still run an old arm uefi bootloader which written by ARMv7 instruction set? I will switch ARMv8 SOC to A

[edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-09 Thread TigerLiu
Hi, Oliver: I have a question abourt ARMv8 CPU's bootloader. ARMv8 supports: AARCH32 / AARCH64 Take an example: An ARMv8 SOC, when power up / reset, its default state is : AARCH32 Then, could i still run an old arm uefi bootloader which written by ARMv7 instruction set? I will switch ARMv8 SOC to A

[edk2] [edk2-ARM] ARMv8 bootloader question

2014-01-09 Thread TigerLiu
Hi, Oliver: I have a question abourt ARMv8 CPU's bootloader. ARMv8 supports: AARCH32 / AARCH64 Take an example: An ARMv8 SOC, when power up / reset, its default state is : AARCH32 Then, could i still run an old arm uefi bootloader which written by ARMv7 instruction set? I will switch ARMv8 SOC to A

[edk2] SEC code support big.LITTLE tech?

2013-12-04 Thread TigerLiu
Hi, Oliver: Does current ArmPlatformPackage's sec code support big.LITTLE tech? Such as : An ARM SOC --- with 4 Cores Cortex-A15, 4 Cores Cortex-A7 So, if sec code support big.LITTLE tech, how does it let one core as boot strap cpu, others go into wfe(or other sleeping state)? Best wishes,

[edk2] SEC code support big.LITTLE tech?

2013-12-03 Thread TigerLiu
Hi, Oliver: Does current ArmPlatformPackage's sec code support big.LITTLE tech? Such as : An ARM SOC --- with 4 Cores Cortex-A15, 4 Cores Cortex-A7 So, if sec code support big.LITTLE tech, how does it let one core as boot strap cpu, others go into wfe(or other sleeping state)? Best wishes, -