On 02/23/17 18:17, Ard Biesheuvel wrote:
> On 23 February 2017 at 17:16, Marcin Wojtas <m...@semihalf.com> wrote:
>> Hi,
>>
>> I use Marvell Armada70x0 from mainline OpenPlatformPkg. After updating
>> baseline to newest tianocore master branch it turned out that the
>> platform fail to boot due to following assert:
>>
>> /home/mw/git/edk2/Build/Armada70x0/DEBUG_GCC48/AARCH64/ArmPlatformPkg/PrePi/PeiMPCore/DEBUG/ArmPlatformPrePiMPCore.dll
>> 0x1800
>> add-symbol-file
>> /home/mw/git/edk2/Build/Armada70x0/DEBUG_GCC48/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
>> 0x3F534800
>> Loading DxeCore at 0x003F534000 EntryPoint=0x003F534800
>>
>> ASSERT_EFI_ERROR (Status = Invalid Parameter)
>> ASSERT [DxeCore]
>> /home/mw/git/edk2/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c(523):
>> !EFI_ERROR (Status)
>>
>> I bisected edk2 master branch and confirmed that the problem appeared
>> with commit dc4c770763d0 ("BaseTools: add error check for Macro usage
>> in the INF file").
>>
>> There are no errors, nor warnings during BaseTool and platform builds.
>> Is it a known problem? Any idea about possible root cause?
>>
> 
> Already fixed in
> 1d8cebf91040 BaseTools: Fix the regression issue caused by commit dc4c77

Yes, it is.

However, I'm seeing another problem (perhaps I should have started a separate 
thread with this):

> [Bds]=============Begin Load Options Dumping ...=============
>   Driver Options:
>   SysPrep Options:
>   Boot Options:
>     Boot0005: Red Hat Enterprise Linux                 0x0001
>     Boot0001: UEFI QEMU QEMU CD-ROM            0x0001
>     Boot0000: UiApp            0x0109
>     Boot0002: UEFI Misc Device                 0x0001
>     Boot0003: UEFI Misc Device 2               0x0001
>     Boot0006: EFI Internal Shell               0x0001
>   PlatformRecovery Options:
>     PlatformRecovery0000: Default PlatformRecovery             0x0001
> [Bds]=============End Load Options Dumping=============
> [Bds]BdsWait ...Zzzzzzzzzzzz...
> [Bds]BdsWait(5)..Zzzz...
> InstallProtocolInterface: 41D94CD2-35B6-455A-8258-D4E51334AADD 139389420
> InstallProtocolInterface: 3AD9DF29-4501-478D-B1F8-7F7FE70E50F3 139389EB8
> InstallProtocolInterface: F4B427BB-BA21-4F16-BC4E-43E416AB619C 139388030
> InstallProtocolInterface: F4B427BB-BA21-4F16-BC4E-43E416AB619C 13939A2B0
> [Bds]BdsWait(4)..Zzzz...
> [Bds]BmHotkeyCallback: 0017:0000
> [Bds]Hotkey for Boot0000 pressed - Success
> [Bds]Exit the waiting!
> [Bds] Booting Boot Manager Menu.
> [Bds]Stop Hotkey Service!
> [Bds]UnregisterKeyNotify: 000C/0000 Success
> [Bds]UnregisterKeyNotify: 0017/0000 Success
> [Bds]UnregisterKeyNotify: 0000/000D Success
> Memory  Previous  Current    Next
>  Type    Pages     Pages     Pages
> ======  ========  ========  ========
>   09    00000000  00000080  000000A0
>   0A    00000000  00000020  00000028
>   00    00000000  00000004  00000005
>   06    00000258  00000410  00000514
>   05    00000190  000002C0  00000370
>   03    000005DC  0000056E  000005DC
>   04    00002EE0  00002CF1  00002EE0
>   01    00000014  00000000  00000014
>   02    00000000  00000000  00000000
> Memory Type Information settings change.
> [Bds]Booting UiApp
> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 1393E05C0
> add-symbol-file 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
>  0x13838D000
> Loading driver at 0x0013838C000 EntryPoint=0x0013838D000 UiApp.efi
> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 138D1B498
> ProtectUefiImageCommon - 0x393E05C0
>   - 0x000000013838C000 - 0x0000000000044000
>   Image - 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
>   Section - '.text   '
>   VirtualSize          - 0x0003D000
>   VirtualAddress       - 0x00001000
>   SizeOfRawData        - 0x0003D000
>   PointerToRawData     - 0x00001000
>   PointerToRelocations - 0x00000000
>   PointerToLinenumbers - 0x00000000
>   NumberOfRelocations  - 0x00000000
>   NumberOfLinenumbers  - 0x00000000
>   Characteristics      - 0x60000020
> ImageCode: 0x000000013838D000 - 0x000000000003D000
>   Section - '.data   '
>   Section - '.reloc  '
> ImageCode SegmentCount - 0x1
> SetUefiImageMemoryAttributes - 0x000000013838C000 - 0x0000000000001000 
> (0x0000000000004008)
> SetUefiImageMemoryAttributes - 0x000000013838D000 - 0x000000000003D000 
> (0x0000000000020008)
> SetUefiImageMemoryAttributes - 0x00000001383CA000 - 0x0000000000006000 
> (0x0000000000004008)
> InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 13A690F98
> InstallProtocolInterface: 330D4706-F2A0-4E4F-A369-B66FA8D54385 1383CB150
> InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 1383CB300
> InstallProtocolInterface: 330D4706-F2A0-4E4F-A369-B66FA8D54385 1383CB2D0
> InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 1383CB498
> InstallProtocolInterface: 330D4706-F2A0-4E4F-A369-B66FA8D54385 1383CB4C8
> InstallProtocolInterface: 09576E91-6D3F-11D2-8E39-00A0C969723B 1383CB598
> InstallProtocolInterface: 330D4706-F2A0-4E4F-A369-B66FA8D54385 1383CB5E8
> 
> 
> Synchronous Exception at 0x000000013838F070
> PC 0x00013838F070 (0x00013838C000+0x00003070) [ 0] UiApp.dll
> PC 0x00013838EFF4 (0x00013838C000+0x00002FF4) [ 0] UiApp.dll
> PC 0x00013838F508 (0x00013838C000+0x00003508) [ 0] UiApp.dll
> PC 0x00013838D980 (0x00013838C000+0x00001980) [ 0] UiApp.dll
> PC 0x00013838D064 (0x00013838C000+0x00001064) [ 0] UiApp.dll
> PC 0x00013EC71E50 (0x00013EC6B000+0x00006E50) [ 1] DxeCore.dll
> PC 0x00013BA5D62C (0x00013BA4A000+0x0001362C) [ 2] BdsDxe.dll
> PC 0x00013BA62D5C (0x00013BA4A000+0x00018D5C) [ 2] BdsDxe.dll
> PC 0x00013BA4D580 (0x00013BA4A000+0x00003580) [ 2] BdsDxe.dll
> PC 0x00013EC6D768 (0x00013EC6B000+0x00002768) [ 3] DxeCore.dll
> PC 0x00013EC6C828 (0x00013EC6B000+0x00001828) [ 3] DxeCore.dll
> PC 0x00013EC6C024 (0x00013EC6B000+0x00001024) [ 3] DxeCore.dll
> 
> [ 0] 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
> [ 1] 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
> [ 2] 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll
> [ 3] 
> .../Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
> 
>   X0 0x00000001383C6E94   X1 0x0000000000000050   X2 0x0000000000000000   X3 
> 0x000000013EC6AAA4
>   X4 0x0000000000000004   X5 0x0000000000000000   X6 0x0000000138396978   X7 
> 0x00000003000001E0
>   X8 0x0000000000000000   X9 0x0000000000000000  X10 0x000001E000000280  X11 
> 0x0000000000000003
>  X12 0x0000000000000000  X13 0x0000028000000000  X14 0x0052004100571400  X15 
> 0x0047004E0049004E
>  X16 0x000000013EC6AC00  X17 0x0000000000000000  X18 0x0000000000000000  X19 
> 0x0000000138D1B698
>  X20 0x000000013B632018  X21 0x0000000000000000  X22 0x0000000000000000  X23 
> 0x0000000000000000
>  X24 0x0000000000000000  X25 0x0000000000000000  X26 0x0000000000000000  X27 
> 0x0000000000000000
>  X28 0x0000000000000000   FP 0x000000013EC6AAD0   LR 0x000000013838EFF4
> 
>   V0 0xAFAFAFAFAFAFAFAF AFAFAFAFAFAFAFAF   V1 0x622D6963702F6666 
> 6666666666666666
>   V2 0x632F304069736373 2F31406567646972   V3 0x0000000000000000 
> 0000000000000000
>   V4 0x0000000000000000 0000000000000000   V5 0x4010040140100401 
> 4010040140100401
>   V6 0x0000000000000000 0000000000000000   V7 0x0000000000000000 
> 0000000000000000
>   V8 0x0000000000000000 0000000000000000   V9 0x0000000000000000 
> 0000000000000000
>  V10 0x0000000000000000 0000000000000000  V11 0x0000000000000000 
> 0000000000000000
>  V12 0x0000000000000000 0000000000000000  V13 0x0000000000000000 
> 0000000000000000
>  V14 0x0000000000000000 0000000000000000  V15 0x0000000000000000 
> 0000000000000000
>  V16 0x0000000000000000 0000000000000000  V17 0x0000000000000000 
> 0000000000000000
>  V18 0x0000000000000000 0000000000000000  V19 0x0000000000000000 
> 0000000000000000
>  V20 0x0000000000000000 0000000000000000  V21 0x0000000000000000 
> 0000000000000000
>  V22 0x0000000000000000 0000000000000000  V23 0x0000000000000000 
> 0000000000000000
>  V24 0x0000000000000000 0000000000000000  V25 0x0000000000000000 
> 0000000000000000
>  V26 0x0000000000000000 0000000000000000  V27 0x0000000000000000 
> 0000000000000000
>  V28 0x0000000000000000 0000000000000000  V29 0x0000000000000000 
> 0000000000000000
>  V30 0x0000000000000000 0000000000000000  V31 0x0000000000000000 
> 0000000000000000
> 
>   SP 0x000000013EC6AAD0  ELR 0x000000013838F070  SPSR 0x60000205  FPSR 
> 0x00000000
>  ESR 0x9600004F          FAR 0x00000001383C6E94
> 
>  ESR : EC 0x25  IL 0x1  ISS 0x0000004F
> 
> Data abort: Permission fault, third level
> 
> Stack dump:
>   000013EC6A9D0: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6A9F0: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6AA10: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6AA30: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6AA50: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6AA70: 0000000000000000 0000000000000000 0000000000000000 
> 0000000000000000
>   000013EC6AA90: 0000000000000000 0000000000000000 000000013838F070 
> 0000000060000205
>   000013EC6AAB0: 0000000000000000 000000009600004F 00000001383C6E94 
> 0000000000000004
> > 000013EC6AAD0: 000000013EC6AB60 000000013838F508 0000000000000000 
> > 0100000000000000
>   000013EC6AAF0: 4010040140100401 4010040140100401 0000000000000000 
> 0000000000000000
>   000013EC6AB10: 000000013936D318 0000000000000024 000000013B94D1C0 
> 000000013B94D250
>   000013EC6AB30: 0000000000000000 0000000000000000 0000001938396978 
> 000001E000000050
>   000013EC6AB50: 0000000000000280 0000002500000003 000000013EC6ABB0 
> 000000013838D980
>   000013EC6AB70: 000000013BFF0018 000000013A690B18 0000000000000019 
> 0000000000000050
>   000013EC6AB90: 000000013B94D1C0 000000013B94D250 000000013937AC98 
> 0000000000000000
>   000013EC6ABB0: 000000013EC6ABD0 000000013838D064 000000013BFF0018 
> 000000013A690B18
> ASSERT [ArmCpuDxe] 
> .../ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(265):
>  ((BOOLEAN)(0==1))

This is with ArmVirtQemu @ c5c9e7e298ed, running on QEMU 
v2.8.0-1290-gc3618551719b, using TCG.

The compiler I used to build ArmVirtQemu is

aarch64-linux-gnu-gcc (GCC) 6.1.1 20160621 (Red Hat Cross 6.1.1-2)

Thanks
Laszlo
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to