[edk2] Accessing memory above 0xFFFFFFFF limit.

2017-11-27 Thread Amit kumar
AllocateBuffer ( mIoMmuProtocol, MaxAllocateType, EfiBootServicesData, 1, HostAddress, EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE ); Best Regards Amit Kumar

[edk2] Unable to Loacte EdkiiIoMmuProtocol.

2017-11-27 Thread Amit kumar
mIoMmuProtocol, MaxAllocateType, EfiBootServicesData, 1, HostAddress, EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE ); can somebody tell me the right way to do it. ? Best Rega

[edk2] SCT forum help

2017-11-23 Thread Amit kumar
HI Can somebody tell me the mail chain where i can discuss sct spec and test cases related issue ? Best Regards Amit Kumar ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [NVMe SCT] Mistakes in nvmepassthru sct test case.

2017-11-23 Thread Amit kumar
Forgot to mention. UEFI SCT II Case Spec 2.5 page 910 and UEFI SCT II Case Spec 2.6 A page 855. > On Nov 23, 2017, at 9:36 PM, Amit kumar wrote: > > Hi , > I think there is something wrong with SCT nvmepassthru test case mentioned on > page 910 UEFI SCT II Case Spec. f

[edk2] [NVMe SCT] Mistakes in nvmepassthru sct test case.

2017-11-23 Thread Amit kumar
Hi , I think there is something wrong with SCT nvmepassthru test case mentioned on page 910 UEFI SCT II Case Spec. for which i have attached the screen shot. The assertion and test description looks contradictory. Also it fails if passthru doesnt support NON-BLOCKING mode. Best Regards Amit

[edk2] How do i generate a SHA256 hash in UEFI

2017-09-25 Thread Amit kumar
Hi , I am trying to write a uefi standalone application ( not a uefi shell app), which generates a sh256 hash, can some body tell me the right way to do it. Do i really need to use hash protocol. Is there any other way to do it without using this protocol ? Best Regards Amit Kumar

Re: [edk2] How to add images to HiiDatabase.

2017-08-08 Thread Amit kumar
nghong -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Amit kumar Sent: Tuesday, August 08, 2017 8:31 PM To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Subject: [edk2] How to add images to HiiDatabase. Hi , Can somebody tell m

[edk2] How to add images to HiiDatabase.

2017-08-08 Thread Amit kumar
Hi , Can somebody tell me how to add images to hiidatabase . I have image.png file and a image.idf file. Is there something than has to be done during compilation ? like Vfr ? can i use HiiAddPackages ? Thanks And Regards Amit Kumar ___ edk2-devel

[edk2] Unable to locate EFI_HII_POPUP_PROTOCOL in latest edk2

2017-08-04 Thread Amit kumar
Hi , I downloaded a fresh copy of ekd2 from git but i am unable to find HII Popup Protocol described in UEFI 2.7 34.7 HII Popup Protocol. Can somebody point me the location of this protocol ? Thanks And Regards Amit Kumar ___ edk2-devel mailing

Re: [edk2] writing EDK compatible application.

2017-07-05 Thread Amit kumar
Laszlo, Andrew, Marvin Thank you very much for your suggestions and for sharing information. It really did help a lot. Thanks and Regards Amit From: Laszlo Ersek Sent: Wednesday, July 5, 2017 1:40:49 AM To: Amit kumar; edk2-devel@lists.01.org Subject: Re

Re: [edk2] writing EDK compatible application.

2017-07-04 Thread Amit kumar
Hey, I just can find any spec on ConsoleControl protocol, can you tell what/where to refer ? Amit On Jul 4, 2017, at 11:25 PM, Amit kumar mailto:akami...@hotmail.com>> wrote: Thanks for the suggestion Marvin, I will try switching to text mode. Amit On Jul 4, 2017, at 11:21 PM, Marvin

Re: [edk2] writing EDK compatible application.

2017-07-04 Thread Amit kumar
> That might be the reason your text outputs don't show, because graphics is > the default mode on Mac EFI, > though I could never test this myself as I lack the hardware. > > Regards, > Marvin. > >> -Original Message- >> From: Amit kumar [mailto:akam

Re: [edk2] writing EDK compatible application.

2017-07-04 Thread Amit kumar
gt; >> -Original Message----- >> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> Amit kumar >> Sent: Tuesday, July 4, 2017 7:21 PM >> To: edk2-devel@lists.01.org >> Subject: [edk2] writing EDK compatible application. >> >>

[edk2] writing EDK compatible application.

2017-07-04 Thread Amit kumar
HI, I have written a code (say helloworld program ) using edk2 framework, named the output efi file as BOOTx64.efi and placed it on a removable media in EFI/BOOT/ directory so that the application is listed in one time boot menu. When selected from boot menu it prints "Hello World". Which work

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
19E798 printed out as the handle value. Thanks, Andrew Fish Thanks On Wed, Jun 28, 2017 at 1:23 PM, Amit kumar mailto:akami...@hotmail.com>> wrote: EFI_STATUS EFIAPI UefiMain ( IN EFI_HANDLEImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { EFI_STATUS Status;

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
tus); } From: edk2-devel on behalf of Amit kumar Sent: Wednesday, June 28, 2017 11:41:53 PM To: TVKR Cc: edk2-devel@lists.01.org Subject: Re: [edk2] DisconnectController API not working. Try this; just a quick thing EFI_STATUS EFIAPI UefiMain ( IN EFI_HAN

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
ULL); return (Status); } From: TVKR Sent: Wednesday, June 28, 2017 11:31:46 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] DisconnectController API not working. Yes, the shell's in-built command disconnect (disconnect 175 176) wo

Re: [edk2] [PATCH V5] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-28 Thread Amit kumar
Interface returned by CoreOpenProtocol From: Amit Kumar Change since v4: Revise the patch based on V4 sent by Amit Kumar 1) Only return the corresponding protocol interface in *Interface if the return status is EFI_SUCCESS or EFI_ALREADY_STARTED. 2) Interface is returned unmodified for all error

Re: [edk2] [PATCH V5] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-28 Thread Amit kumar
TCH V5] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol On 06/28/17 15:22, Star Zeng wrote: > From: Amit Kumar > > Change since v4: Revise the patch based on V4 sent by Amit Kumar > 1) Only return the corresponding protocol interface in *Interface > if th

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
okay, os tell me , did you try "disconnect 175 176" in UEFI shell ? From: TVKR Sent: Wednesday, June 28, 2017 11:21:34 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] DisconnectController API not working. Sorry, I wasn't clear i

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
Did it hang ? From: TVKR Sent: Wednesday, June 28, 2017 10:45:13 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] DisconnectController API not working. Thanks for the suggestion Amit. I tried the reconnect -r but it doesn't seem to help

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
PciRoot(0x0) Child Controllers : Child[219]: Intel Ethernet Server Adapter I350-T2 Thanks On Wed, Jun 28, 2017 at 9:07 AM, Amit kumar mailto:akami...@hotmail.com>> wrote: Hi Tresko, >Hi Amit, >I am seeing the exact same issue on my system with DisconnectControlle

Re: [edk2] DisconnectController API not working.

2017-06-28 Thread Amit kumar
managed by driver. I even checked the ControllerHandle passed and it looks correct. Were you able to resolve this eventually? Thanks -Original Message- From: edk2-devel [mailto:edk2-devel-bounces at lists.01.org<https://lists.01.org/mailman/listinfo/edk2-devel>] On Behalf Of Amit

Re: [edk2] [PATCH V5] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-28 Thread Amit Kumar
 Spec + Pach Looks fine to me.   - Original Message - Sender : Star Zeng  Date : 2017-06-28 18:52 (GMT+5:30) Title : [PATCH V5] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol To : edk2-devel@lists.01.org CC : Amit Kumar, null, null, null, null, null   From

[edk2] [PATCH V4] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-23 Thread Amit Kumar
: Amit Kumar --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Hand/Handle.c b/MdeModulePkg/Core/Dxe/Hand/Handle.c index 59b8914..fe58b6c 100644 --- a/MdeModulePkg/Core/Dxe/Hand/Handle.c

[edk2] [PATCH V3] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-19 Thread Amit Kumar
, interface should not be modified. 3) In case of Test Protocol, interface is optional. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Amit Kumar --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[edk2] [PATCH V2] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-15 Thread Amit Kumar
, interface is optional. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Amit Kumar --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Hand/Handle.c b/MdeModulePkg/Core/Dxe

[edk2] [PATCH] MdeModulePkg/DxeCore: Fixed Interface returned by CoreOpenProtocol

2017-06-13 Thread Amit Kumar
Signed-off-by: Amit Kumar --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Hand/Handle.c b/MdeModulePkg/Core/Dxe/Hand/Handle.c index 1c25521..0afa86b 100644 --- a/MdeModulePkg/Core/Dxe

[edk2] ThundeBolt 3/ USB C UEFI drivers

2017-06-09 Thread Amit kumar
Hi, I have some queries. 1. Does ThundeBolt 3 and USB C shave the same uefi drivers ? 2. Is there any driver in UEFI for them ? 3. Do they use USB Mass Storage Driver ? 4. Do they support booting like USB 3.1 /3.0 / 2 ? Thanks And Regards Amit ___ edk2-d

[edk2] How to make my application automatically launch like uefi shell ?

2017-06-05 Thread Amit kumar
Hi, I have created a uefi application and i want to directly launch from the Pen Drive, just like uefi shell. I made a EFI/BOOT directory in USB and copied my application in this director and name it BOOTX64.efi it seems to works in some PCs, But there are some PCs where it doesn't work even in

Re: [edk2] Problem in EFI_BOOT_SERVICES.OpenProtocol()

2017-06-01 Thread Amit kumar
Certainly i will do that. Meanwhile can i submit the patch too ? Amit From: af...@apple.com on behalf of Andrew Fish Sent: Thursday, June 1, 2017 11:08:59 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] Problem in

Re: [edk2] Problem in EFI_BOOT_SERVICES.OpenProtocol()

2017-06-01 Thread Amit kumar
Hello Andrew, Thanks for quick reply and acknowledging my query. Amit From: af...@apple.com on behalf of Andrew Fish Sent: Thursday, June 1, 2017 10:59:03 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] Problem in

Re: [edk2] Problem in EFI_BOOT_SERVICES.OpenProtocol()

2017-06-01 Thread Amit kumar
OCOL_BY_DRIVER ); From: af...@apple.com on behalf of Andrew Fish Sent: Thursday, June 1, 2017 10:28:16 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] Problem in EFI_BOOT_SERVICES.OpenProtocol() > On Jun 1, 2017, at 9:46 AM, Amit kumar wrot

[edk2] Problem in EFI_BOOT_SERVICES.OpenProtocol()

2017-06-01 Thread Amit kumar
Hi, I am trying to open PciIoProtocol and facing some issue. below is the code EFI_PCI_IO_PROTOCOL *PciIo=NULL; EFI_STATUS Status; Status = gBS->OpenProtocol ( Controller, &gEfiPciIoProtocolGuid, (VOID **) &PciIo,

Re: [edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-05 Thread Amit kumar
Mike, Andrew Thanks for your suggestions, it looks like MMIO is the bottleneck in my application. I have one more query. Does each core have independent YMM registers or is it shared among the cores ? Thanks And Regards Amit Kumar From: Kinney, Michael D

Re: [edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-04 Thread Amit kumar
Here are the compiler flags [BuildOptions] MSFT:DEBUG_*_*_CC_FLAGS = /Od /FAsc /GL- MSFT:RELEASE_*_*_CC_FLAGS = /FAsc /D MDEPKG_NDEBUG MSFT:RELEASE_*_*_DLINK_FLAGS = /BASE:0x1 /ALIGN:4096 /FILEALIGN:4096 From: Amit kumar Sent: Thursday, May 4, 2017 5

Re: [edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-04 Thread Amit kumar
on behalf of Andrew Fish Sent: Thursday, May 4, 2017 5:02:55 PM To: Amit kumar Cc: Mike Kinney; edk2-devel@lists.01.org Subject: Re: [edk2] Accessing AVX/AVX2 instruction in UEFI. > On May 4, 2017, at 4:13 AM, Amit kumar wrote: > > Hi, > > > Even after using AVX2 instru

Re: [edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-04 Thread Amit kumar
From: edk2-devel on behalf of Amit kumar Sent: Wednesday, May 3, 2017 11:18:39 AM To: Kinney, Michael D; Andrew Fish Cc: edk2-devel@lists.01.org Subject: Re: [edk2] Accessing AVX/AVX2 instruction in UEFI. Thank you Michael and Andrew Regards Amit

Re: [edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-02 Thread Amit kumar
Thank you Michael and Andrew Regards Amit From: Kinney, Michael D Sent: Tuesday, May 2, 2017 10:33:45 PM To: Andrew Fish; Amit kumar; Kinney, Michael D Cc: edk2-devel@lists.01.org Subject: RE: [edk2] Accessing AVX/AVX2 instruction in UEFI. Amit, The

[edk2] Accessing AVX/AVX2 instruction in UEFI.

2017-05-02 Thread Amit kumar
somebody help me out here ? Is there a way to enable YMM registers ? Thanks And Regards Amit Kumar  ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [APPLE MACBOOK BUG] Reconnect -r command hangs in MacBook Air (13-inch, Mid 2011) MacBookAir4, 2 MBA41.0077.B12 (2015-001) 1.73f66 (SMC 1.8)

2017-04-27 Thread Amit kumar
?). Thanks And Regards Amit Ku From: Alexei Fedorov Sent: Thursday, April 27, 2017 6:05:42 PM To: Amit kumar; edk2-devel@lists.01.org Subject: Re: [edk2] [APPLE MACBOOK BUG] Reconnect -r command hangs in MacBook Air (13-inch, Mid 2011) MacBookAir4, 2 MBA41.0077.B12

[edk2] [APPLE MACBOOK BUG] Reconnect -r command hangs in MacBook Air (13-inch, Mid 2011) MacBookAir4, 2 MBA41.0077.B12 (2015-001) 1.73f66 (SMC 1.8)

2017-04-27 Thread Amit kumar
, Mid 2011) MacBookAir4,2 MBA41.0077.B12 (2015-001) 1.73f66 (SMC 1.8) Os: Sierra EFI ver command output: EFI Specification Revision : 1.10 EFI Vendor : Apple EFI Revision : 1.10   EFI Shell Version :: 2.31  Thanks And Regards Amit Kumar

Re: [edk2] [MAC HELP] Does Mac has a grubx64.efi ? /

2017-04-25 Thread Amit kumar
Thank you very much. Thanks And Regards Amit Kumar From: af...@apple.com on behalf of Andrew Fish Sent: Monday, April 24, 2017 9:14:19 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] [MAC HELP] Does Mac has a grubx64.efi ? / > On Apr

[edk2] [MAC HELP] Does Mac has a grubx64.efi ?

2017-04-24 Thread Amit kumar
, operable program, or a batch file.  Can some help me booting a mac OS from UEFI shell. P.S :: I have a mac air 13, intel i5, OS X Thanks And Regards Amit Kumar  ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo

[edk2] [HII] Is it possible to get user input from a shell application by throwing a pop up window.

2017-04-07 Thread Amit kumar
Hi, Is there a method/way for a uefi app to get input from an user by throwing a pop up window. Thanks Amit. ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] How to get fs index from controller handle.

2017-04-07 Thread Amit kumar
Thanks for correction. FileDevicePath(devicepath,L"XYZ\\Par\\Chld\\filename.efi "); Amit From: af...@apple.com on behalf of Andrew Fish Sent: Friday, April 7, 2017 8:12:46 PM To: Amit kumar Cc: Carsey, Jaben; edk2-devel@lists.01.org Subject: Re:

Re: [edk2] How to get fs index from controller handle.

2017-04-07 Thread Amit kumar
ectories while generating the devicepath for a file inside a directory. Amit From: Carsey, Jaben Sent: Friday, April 7, 2017 2:22:15 AM To: af...@apple.com Cc: Amit kumar; edk2-devel@lists.01.org Subject: RE: [edk2] How to get fs index from controller handle. A

Re: [edk2] How to get fs index from controller handle.

2017-04-07 Thread Amit kumar
h =FileDevicePath(devicepath,L"filename.efi "); LoadImage succeeds. Can some one tell me how to deal with directories while generating the devicepath for a file inside a directory. Amit From: Carsey, Jaben Sent: Friday, April 7, 2017 2:22:15 AM To: af...@app

Re: [edk2] How to get fs index from controller handle.

2017-04-06 Thread Amit kumar
om: af...@apple.com on behalf of Andrew Fish Sent: Thursday, April 6, 2017 4:39:22 PM To: Amit kumar Cc: edk2-devel@lists.01.org Subject: Re: [edk2] How to get fs index from controller handle. On Apr 6, 2017, at 3:30 AM, Amit kumar mailto:akami...@hotmail.com>> wrote: Hi, I want to get the f

[edk2] How to get fs index from controller handle.

2017-04-06 Thread Amit kumar
Hi, I want to get the fs index from the controller handle. e.g In map command i see my controller is mapped to fs10.  So i there any API i can use in my code to get the fs index( which is 10 as in example) from the controller handle.  Regards  Amit ___

Re: [edk2] DisconnectController API not working.

2017-04-04 Thread Amit kumar
No i am not trying to disconnect USB controller in use. From: Tian, Feng Sent: Wednesday, April 5, 2017 8:21:36 AM To: Andrew Fish; Amit kumar Cc: edk2-devel@lists.01.org; Tian, Feng Subject: RE: [edk2] DisconnectController API not working. Kumar, Do "m

Re: [edk2] DisconnectController API not working.

2017-04-03 Thread Amit kumar
query; i have made a startup.nsh file in which i am issuing load driver.efi , i am getting file not found. i have also tried using load fs0:driver.efi, and again i get file not found. I have been trying to run this script from internal shell as well as usb shell. Regards Amit Kumar

[edk2] DisconnectController API not working.

2017-03-31 Thread Amit kumar
Hi , I am trying to disconnect a controller from the usb mass storage driver, for which i am using   Status = gBS->DisconnectController ( ControllerHandle, NULL, NULL );

[edk2] Reset from post BDS pahse to PEI phase

2017-03-28 Thread Amit kumar
Hi , I have been facing some problem with blockIO reads even after reconnect and update map. when i try to do dblk on some of my blocks it returns with EFI_INVALID_PARAMETER. Is there a way to reinitialize the EFI platform from post bds phase or post dxe phase without putting the board in powe

Re: [edk2] SIMD Instruction supported in UEFI?

2017-03-08 Thread Amit kumar
>From UEFI shell From: Ken Taylor Sent: Thursday, March 9, 2017 4:51 AM To: Amit kumar; edk2-devel@lists.01.org Subject: RE: [edk2] SIMD Instruction supported in UEFI?   Hi Amit, Maybe in UEFI the code in question crosses a cache line boundary when executed in UEFI, with the loop

[edk2] SIMD Instruction supported in UEFI?

2017-03-08 Thread Amit kumar
instructions must be giving me better performance(my expectation); But when i do same experiment in Windows environment SIMD code ( _mm_xor_si128 ) gives me 9 times better performance than normal XOR instruction. Have i missed something?. Regards Amit Kumar

[edk2] SIMD Instruction supported ?

2017-03-07 Thread Amit kumar
Hi, I have been trying to exploit SIMD capabilities in a EFI shell application. I have written a code which calls a procedure with is written in X64 asm. but my application freezes at the following instruction movdqa xmm0, XMMWORD PTR [rax] Is SIMD supported in UEFI ? Platform Details : Proce