From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 35C2D740032 for ; Sun, 16 Jun 2024 22:55:05 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=FFMmKmsNI1o6nGJ6GAM/d+ZzC10rPeZ2X4Pw2tDyPv8=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:To:From:Subject:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1718578504; v=1; b=cK3oPj10gE5hAQ5Gw7BuDXSWCLDWa4omFUv3Lm5RB7q86amhf88/KhPAoxP9HqP90+PYVldH MCoUyR+qdJ220xwE88sTuDPsMFygxxO+CRZ1x8VnoS2JaZ6m6bMFLYVFpyRNXZ+0kvLFsn2XNKX D4nxb2wB2rzjSjCwz63FOm8T4v5R+wPFbjtNWOE8FQl57B4vTL/6HrZex9h1NrkGHnJC22/mz8r c5Z42AAwZN++SquwvOr3YAy1UcDfzpouB5j2vxQ7Cq+/4QX3MhERqcgOkvunIi1XHYwOyrWY09W foqu2hBfRBzZcXtl+L2ha0oxPBp0jQj/oyLqzS7Rae4zw== X-Received: by 127.0.0.2 with SMTP id 7t1vYY7687511xUJd4d2qoVj; Sun, 16 Jun 2024 15:55:03 -0700 X-Received: from wfhigh7-smtp.messagingengine.com (wfhigh7-smtp.messagingengine.com [64.147.123.158]) by mx.groups.io with SMTP id smtpd.web10.44408.1718578502927406314 for ; Sun, 16 Jun 2024 15:55:03 -0700 X-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id E0E3A18000BD; Sun, 16 Jun 2024 18:55:01 -0400 (EDT) X-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 16 Jun 2024 18:55:02 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvgedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfvffhufgtgfesthekredttddvjeenucfhrhhomheptfgvsggvtggt rgcuvehrrghnuceorhgvsggvtggtrgessghsughiohdrtghomheqnecuggftrfgrthhtvg hrnhepvdegtdeiveeifeeluedufeejfeffgeeklefhtdefvdekgeejueeuueejhfdtjedt necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhgvsg gvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Jun 2024 18:55:00 -0400 (EDT) Message-ID: Date: Sun, 16 Jun 2024 16:54:53 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: devel@edk2.groups.io, Taylor Beebe , Marcin Juszkiewicz , Pedro Falcato , Theo Jehl From: "Rebecca Cran" Subject: [edk2-devel] Alignment fault booting SbsaQemu with Qemu 9.0.50 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Sun, 16 Jun 2024 15:55:03 -0700 Resent-From: rebecca@bsdio.com Reply-To: devel@edk2.groups.io,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: aaWn3xNiV5skp97VxHOvPxTjx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=cK3oPj10; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io 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] -=-=-=-=-=-=-=-=-=-=-=-