[edk2] Query on SCSI controller

2013-12-05 Thread Murali Selvaraj
Hi All, Can you please clarify my doubts as below. 1) My SCSI controller has Four physical scsi Ports,my assumption was those ports called as SCSI channel.Is it correct? 2) If the above assumption is correct,Can we say my SCSI adapter is multi-channel adapter? 3) If my SCSI controller support

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Neeraj Ladkani
HI Shiva, IMHO, typically PHY init functions depends on the firmware running on adapter card and the Option Rom running from adapter card drives the firmware. Since you are running on ARM platform, adapter option rom might not be supported ( check EBC). it might be a reason for your PHY init fai

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Shivamurthy Shastri
Yes, the board is PCIe based. I don't have any X64 platform to test it. ARM board has PCIe slot. I want know the build configuration, if any, for the board. The board has 8082574L ethernet chip. The code supports 8082574L chip, but I am not sure if anything I need to disable or enable while compili

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
On 12/05/13 23:53, Andrew Fish wrote: > > On Dec 5, 2013, at 2:38 PM, Laszlo Ersek > wrote: >> >> Does gas support mode switches in one file? I found examples on the >> net (for nasm I think) where people were thunking to real mode and >> back to protected mode in a sing

Re: [edk2] [PATCH] MdeModulePkg/HiiDataBaseDxe: Fixed build error 'Statement is unreachable'

2013-12-05 Thread Dong, Eric
Hi Olivier, Check in patch v14935. Thanks, Eric From: Dong, Eric [mailto:eric.d...@intel.com] Sent: Friday, December 06, 2013 9:55 AM To: edk2-devel@lists.sourceforge.net; Tian, Feng Subject: Re: [edk2] [PATCH] MdeModulePkg/HiiDataBaseDxe: Fixed build error 'Statement is unreachable' Hi O

Re: [edk2] [PATCH] MdeModulePkg/HiiDataBaseDxe: Fixed build error 'Statement is unreachable'

2013-12-05 Thread Dong, Eric
Hi Olivier, The patch looks good. Reviewed-by: Eric Dong Thanks, Eric From: Olivier Martin [mailto:olivier.mar...@arm.com] Sent: Thursday, December 05, 2013 1:54 AM To: Tian, Feng Cc: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH] MdeModulePkg/HiiDataBaseDxe: Fixed build error '

[edk2] Regading EDK2 as a 2nd stage Boot Loader

2013-12-05 Thread Youngmin Nam
Hello. I'm trying to make UEFI image without SEC phase for AArch64. So, Referencing the below link, I modified current "ArmVExpress-RTSM-AEMv8Ax4-foundation.dsc" file in "ArmPlatformPkg/ArmVExpressPkg". "http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg#Case_2:_EDK2_

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Andrew Fish
On Dec 5, 2013, at 2:38 PM, Laszlo Ersek wrote: > > Does gas support mode switches in one file? I found examples on the net (for > nasm I think) where people were thunking to real mode and back to protected > mode in a single assembly file, and they could use native mnemonics for each > part.

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
On 12/05/13 18:42, Paolo Bonzini wrote: > diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > index e59fd04..d1cac9d 100644 > --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > +++ b/MdeM

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-05 Thread Laszlo Ersek
On 12/05/13 23:09, Jordan Justen wrote: > On Wed, Dec 4, 2013 at 10:29 PM, Laszlo Ersek wrote: >> On 12/05/13 00:21, Yao, Jiewen wrote: >>> Hi Laszlo >>> Thanks for the investigation. >>> >>> Maybe I am wrong, but I would like to point out this piece of code works >>> fine on IA real platform. >>

Re: [edk2] please clarify "PcdDxeIplSwitchToLongMode"

2013-12-05 Thread Jordan Justen
On Wed, Dec 4, 2013 at 10:29 PM, Laszlo Ersek wrote: > On 12/05/13 00:21, Yao, Jiewen wrote: >> Hi Laszlo >> Thanks for the investigation. >> >> Maybe I am wrong, but I would like to point out this piece of code works >> fine on IA real platform. > > Thanks for confirming that! I was wondering if

Re: [edk2] Socket connection non-blocking

2013-12-05 Thread Daniel Moura
Here is a simple application that demonstrates the issue. -C file- #include #include #include #include #include #include #include #include #include #include int main() { int s; int opts; struct sockaddr_in addr

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
On 12/05/13 18:42, Paolo Bonzini wrote: > Il 05/12/2013 17:12, Laszlo Ersek ha scritto: >> Hi, >> >> I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an >> unexpected guest reboot for code (LRET) that works on physical hardware. I >> tried to trace the problem with ftrace,

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Pant, Alok
Hi Tim & Eugene, Thanks for the response. I agree current SMM foundation code gas some IA specific and there are various gotchas around SMM entry/exit (sync core , save restore etc, base protocol), however most of SMM foundation is generic and it provides a nice framework of independent driver

Re: [edk2] [Xen-devel] [PATCH v4 0/7] Make OVMF fully working with Xen

2013-12-05 Thread Wei Liu
On Thu, Dec 05, 2013 at 10:17:32AM -0800, Jordan Justen wrote: > On Thu, 2013-12-05 at 11:52 +, Wei Liu wrote: > > On Sat, Nov 30, 2013 at 03:58:18PM -0800, Jordan Justen wrote: > > > Series Reviewed-by: Jordan Justen > > > > > > Some minor issues mentioned in a reply to patch 1. > > > > >

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Zimmer, Vincent
Tim: Good point. Yielding and other infrastructure has to be built on top of the basic PI-conformant code. No integral PI spec primitives, I agree. And I am definitely not advocating things that precipitate back-to-the-future usages like ACPI Global Lock which hasn't, err, proven to be most use

Re: [edk2] [Xen-devel] [PATCH v4 0/7] Make OVMF fully working with Xen

2013-12-05 Thread Jordan Justen
On Thu, 2013-12-05 at 11:52 +, Wei Liu wrote: > On Sat, Nov 30, 2013 at 03:58:18PM -0800, Jordan Justen wrote: > > Series Reviewed-by: Jordan Justen > > > > Some minor issues mentioned in a reply to patch 1. > > > > Is there any more concerns regarding this series? All patches have > review

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Tim Lewis
Vincent - But the multiple "in-TZ" cores is problematic currently. There is no concept of multiple stacks, or multiple copies of SMST (consider the CurrentCpu field). Also, there is no concept of mutexes, or yielding for these cores, a problem in high reliability systems. Many ARM configuration

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Zimmer, Vincent
Tim- Not sure if this helps, but recall that in PI1.2.1 we introduced concept of # of CPU's in SMM can be < # of CPU's in platform w/ M731 NumberOfCpus clarification, so PI1.2.1+ can support models of some inside/some outside of this alternate CPU mode. So I think your point on 'in TZ and out of

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Andrew Fish
On Dec 5, 2013, at 8:26 AM, Sergey Isakov wrote: > Is it true that Intel Gigabit CT Desktop Adapter exists on ARM-based gadget? > PCIe slot? > On 05.12.2013, at 18:42, Olivier Martin wrote: > >> You should probably try to build for X64 (and EDK2) and see if the driver >> works to make sure

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Paolo Bonzini
Il 05/12/2013 17:12, Laszlo Ersek ha scritto: > Hi, > > I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an > unexpected guest reboot for code (LRET) that works on physical hardware. I > tried to trace the problem with ftrace, but I didn't get any mentions of > em_ret_far(

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Tim Lewis
Eugene - One of the issues for the SMM specification and TZ is the single-threaded nature. While most of ARM's TrustZone infrastructure can be mapped easily to SMM, the possibility of having cores in TZ and out of TZ simultaneously, or more than one core in TZ at the same time raises some inter

Re: [edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Cohen, Eugene
Alok, I agree -- there is value in the modular nature of the PI component approach extending to the ARM trusted firmware environment. For SMM this is supported in the PI spec's SMM core interface specification and in edk2 by the PiSmmCore module and accompanying libraries. Unlike DXE and PEI,

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
Small addition -- apologies for the self-followup: On 12/05/13 17:12, Laszlo Ersek wrote: > I tried to trace the problem with ftrace, but I didn't get any mentions of > em_ret_far(). (Maybe I was looking in the wrong place.) I applied the following small patch (to the original code): diff --git

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Sergey Isakov
Is it true that Intel Gigabit CT Desktop Adapter exists on ARM-based gadget? On 05.12.2013, at 18:42, Olivier Martin wrote: > You should probably try to build for X64 (and EDK2) and see if the driver > works to make sure you have not broken anything in your port. > > > From: Shivamurthy Shas

[edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
Hi, I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an unexpected guest reboot for code (LRET) that works on physical hardware. I tried to trace the problem with ftrace, but I didn't get any mentions of em_ret_far(). (Maybe I was looking in the wrong place.) Please find

[edk2] ARM UEFI BIOS & Trusted firmware

2013-12-05 Thread Pant, Alok
Changing topic.. Hi Oliver, Thanks. I also I have few separate questions wrt to Trusted firmware & UEFI ARM code and hope you/others can help answer * It seems there are two direction for SecureMonitor implementation. In one implementation the SEC code (ArmPlatformPkg\Sec\Sec.c) install t

Re: [edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Olivier Martin
You should probably try to build for X64 (and EDK2) and see if the driver works to make sure you have not broken anything in your port. From: Shivamurthy Shastri [mailto:shiva.linuxwo...@gmail.com] Sent: 05 December 2013 13:37 To: edk2-devel@lists.sourceforge.net Subject: [edk2] Issue in UN

[edk2] Issue in UNDI driver for INTEL GIGABIT CT DESKTOP ADAPTER

2013-12-05 Thread Shivamurthy Shastri
Hi, I have downloaded UNDI driver for Intel PCIE card from the link http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK file is gig_pcie_src_4109.zip. I compiled this for ARM platform and EDK2. My board is Intel Gigabit CT Desktop Adapter, which has 8082574L ethernet controller.

Re: [edk2] [Xen-devel] [PATCH v4 0/7] Make OVMF fully working with Xen

2013-12-05 Thread Wei Liu
On Sat, Nov 30, 2013 at 03:58:18PM -0800, Jordan Justen wrote: > Series Reviewed-by: Jordan Justen > > Some minor issues mentioned in a reply to patch 1. > Hi Jordan Is there any more concerns regarding this series? All patches have reviewed-by tag now. I was quite clear about Ray's question.

Re: [edk2] Compiling EDK1 driver in EDK2

2013-12-05 Thread Shivamurthy Shastri
Thank you Olivier and Andrew, I am able to compile and testing is in progress. On Tue, Nov 26, 2013 at 4:09 PM, Olivier Martin wrote: > The exercise of porting Undi EDK Intel(R) PRO/1000 Network Driver to ARM > EDK2 was looking interesting. > > > > I had a quick try to get an idea of the effort.