public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] Alignment fault booting SbsaQemu with Qemu 9.0.50
@ 2024-06-16 22:54 Rebecca Cran
  0 siblings, 0 replies; only message in thread
From: Rebecca Cran @ 2024-06-16 22:54 UTC (permalink / raw)
  To: devel, Taylor Beebe, Marcin Juszkiewicz, Pedro Falcato, Theo Jehl

I haven't run sbsa-ref for quite a while, but when I tried to today I 
got an alignment fault in BootLogoLib.

Don't we disable alignment checking in EDK2 so we should never get 
alignment faults?


I'm using edk2 commit aa99d36be9ad68d8d0a99896332a9b5da10cf343, with 
commit 05ad1440b8428b0ade9b8e5c01469adb8fbf83e3 and booting

qemu with:

qemu-system-aarch64 -M sbsa-ref -cpu neoverse-n1 -m 8g -pflash 
../Build/SbsaQemu/NOOPT_GCC/FV/SBSA_FLASH0.fd -pflash 
../Build/SbsaQemu/NOOPT_GCC/FV/SBSA_FLASH1.fd -nographic -serial 
mon:stdio -s


The crash happens when it tried to call GraphicsOutput->Blt.

  |      208      if ((DestX >= 0) && (DestY >= 0)) { │
│      209        if (GraphicsOutput != NULL) { │
│  >   210          Status = GraphicsOutput->Blt ( │
│      211 GraphicsOutput, │
│      212 Blt, │
│      213 EfiBltBufferToVideo, │
│      214 0, │
│      215 0, │
│      216 (UINTN)DestX, │
│      217 (UINTN)DestY, │
│      218 Image.Width, │
│      219 Image.Height, │
│      220                                     Image.Width * sizeof 
(EFI_GRAPHICS_OUTPUT_BLT_PIXEL) │
│      221                                     );


[0] from 0x00000101fb9a5484 in BootLogoEnableLogo+1344 at 
/home/bcran/src/tiano/edk2/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:210
[1] from 0x00000101fb9a226c in PlatformBootManagerAfterConsole+32 at 
/home/bcran/src/tiano/edk2/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c:1011
[2] from 0x00000101fb98ad6c in BdsEntry+2156 at 
/home/bcran/src/tiano/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c:931
[3] from 0x00000101ff3aa47c in DxeMain+4116 at 
/home/bcran/src/tiano/edk2/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c:580
[4] from 0x00000101ff3a945c in ProcessModuleEntryPointList+20 at 
/home/bcran/src/tiano/Build/SbsaQemu/NOOPT_GCC/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/AutoGen.c:564
[5] from 0x00000101ff3a9024 in _ModuleEntryPoint+36 at 
/home/bcran/src/tiano/edk2/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c:46
[6] from 0x00000101ff3a9000


Synchronous Exception at 0x00000101FB74FA18
PC 0x0101FB74FA18 (0x0101FB74B000+0x00004A18) [ 0] QemuVideoDxe.dll
PC 0x0101FB74F718 (0x0101FB74B000+0x00004718) [ 0] QemuVideoDxe.dll
PC 0x0101FB751460 (0x0101FB74B000+0x00006460) [ 0] QemuVideoDxe.dll
PC 0x0101FB75182C (0x0101FB74B000+0x0000682C) [ 0] QemuVideoDxe.dll
PC 0x0101FB74E6B4 (0x0101FB74B000+0x000036B4) [ 0] QemuVideoDxe.dll
PC 0x0101FB7347FC (0x0101FB72C000+0x000087FC) [ 1] ConSplitterDxe.dll
PC 0x0101FB9A54B0 (0x0101FB988000+0x0001D4B0) [ 2] BdsDxe.dll
PC 0x0101FB9A226C (0x0101FB988000+0x0001A26C) [ 2] BdsDxe.dll
PC 0x0101FB98AD6C (0x0101FB988000+0x00002D6C) [ 2] BdsDxe.dll
PC 0x0101FF3AA47C (0x0101FF3A8000+0x0000247C) [ 3] DxeCore.dll
PC 0x0101FF3A945C (0x0101FF3A8000+0x0000145C) [ 3] DxeCore.dll
PC 0x0101FF3A9024 (0x0101FF3A8000+0x00001024) [ 3] DxeCore.dll

[ 0] 
/home/bcran/src/tiano/Build/SbsaQemu/NOOPT_GCC/AARCH64/OvmfPkg/QemuVideoDxe/QemuVideoDxe/DEBUG/QemuVideoDxe.dll
[ 1] 
/home/bcran/src/tiano/Build/SbsaQemu/NOOPT_GCC/AARCH64/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe/DEBUG/ConSplitterDxe.dll
[ 2] 
/home/bcran/src/tiano/Build/SbsaQemu/NOOPT_GCC/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll
[ 3] 
/home/bcran/src/tiano/Build/SbsaQemu/NOOPT_GCC/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll

   X0 0x00000000801D047C   X1 0x00000101FA7BA00C   X2 
0x0000000000000310   X3 0x00000000801D0470
   X4 0x00000101FA7BA31C   X5 0x00000000801D0780   X6 
0x00FFFFFF00FFFFFF   X7 0x00FFFFFF00FFFFFF
   X8 0x00000101FA81E018   X9 0x000000000000000C  X10 
0x0000000000000000  X11 0x0000000000000000
  X12 0x00FFFFFF00FFFFFF  X13 0x00FFFFFF00FFFFFF  X14 
0x0000000000000000  X15 0x0000000000000000
  X16 0x00000101FF3A7DF0  X17 0x0000000000000000  X18 
0x0000000000000000  X19 0x0000000000000013
  X20 0x0000000000000000  X21 0x0000000000000000  X22 
0x0000000000000000  X23 0x0000000000000000
  X24 0x0000000000000000  X25 0x0000000000000000  X26 
0x0000000000000000  X27 0x0000000000000000
  X28 0x0000000000000000   FP 0x00000101FF3A7950   LR 0x00000101FB74F718

   V0 0xAFAFAFAFAFAFAFAF AFAFAFAFAFAFAFAF   V1 0xFFFFFF80FFFFFFD0 
00000101FF3A77B0
   V2 0x0000000000000000 0000000000000000   V3 0x0000000000000000 
0000000000000000
   V4 0x0000000000000000 0000000000000000   V5 0x0000000000000000 
0000000000000000
   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 0x00000101FF3A7950  ELR 0x00000101FB74FA18  SPSR 0x20000209 FPSR 
0x00000000
  ESR 0x96000061          FAR 0x00000000801D047C

  ESR : EC 0x25  IL 0x1  ISS 0x00000061

Data abort: Alignment fault

Stack dump:
   00101FF3A7850: 00000101FF3A7860 0000000000000001 00000101FB73D270 
00000101FA7BA018
   00101FF3A7870: 0000000000000002 0000000000000000 0000000000000000 
000000000000021F
   00101FF3A7890: 0000000000000173 00000000000000C1 00000101FB7346D8 
00000101FB73D270
   00101FF3A78B0: 0000000000000000 0000000000000000 0000000000000000 
0000000000000000
   00101FF3A78D0: 0000000000000000 0000000000000000 00000101FF3A7DF0 
0000000000000000
   00101FF3A78F0: 0000000000000000 0000000000000013 0000000000000000 
0000000000000000
   00101FF3A7910: 0000000000000000 0000000000000000 0000000000000000 
0000000000000000
   00101FF3A7930: 0000000000000000 0000000000000000 0000000000000000 
00000101FF3A7BA0
 > 00101FF3A7950: 00000101FF3A7980 00000101FB751460 AFAFAFAFAFAFAFAF 
0000000000000304
   00101FF3A7970: 00000101FA7BA018 00000000801D047C 00000101FF3A7A30 
00000101FB75182C
   00101FF3A7990: 000000000000003A 00000000000000C1 0000000000000173 
000000000000021F
   00101FF3A79B0: 0000000000000000 0000000000000000 00000101FA7BA018 
00000101FA81E018
   00101FF3A79D0: 0000000000000000 0000000000000000 0000000000000000 
00000000801D047C
   00101FF3A79F0: 00000000001D047C 0000000000000304 0000000000000000 
00000101FA7BA018
   00101FF3A7A10: 0000000000000000 0000000000000173 0000000000000304 
0000000000000000
   00101FF3A7A30: 00000101FF3A7A90 00000101FB74E6B4 00000000000000C1 
0000000000000173


Synchronous Exception at 0x00000101FB74FA18
ASSERT [ArmCpuDxe] 
/home/bcran/src/tiano/edk2/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(343): 
((BOOLEAN)(0==1))


-- 
Rebecca Cran



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119591): https://edk2.groups.io/g/devel/message/119591
Mute This Topic: https://groups.io/mt/106711998/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-16 22:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 22:54 [edk2-devel] Alignment fault booting SbsaQemu with Qemu 9.0.50 Rebecca Cran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox