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 74D5C941BB7 for ; Sat, 29 Jun 2024 17:42:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=NIRX1kXHKbTnFXbjo2P+B15xAMEkFpwqa4jKinh2TEs=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To: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=1719682949; v=1; b=mBRmZh4WeLoTg/Y6aZ0nD9eJNyR6bhbwUJEansFz84h29vOpxvh6tBGrjCmRxoonZA+ueWiv zn/KXxmwY/FuFfXtpQBWSuHd1FGSjSRS76niOhFzuOIG9t5wivOWErGYQoX0cm/AkgdxcJtQVB/ XvHlxI6YN4Mbb/snQlw35ybz6vJ5rdGkJ3LiLE2lUYxjGofNHfjapap5Dgtkr6wY9R4McxGKAJ1 I0g/1qEtdqcqYy39cpuQuP8ToI1g+KNQz8Mto4VKlVj1EI8rqQGhdI8TY7DHEpT4Z9vSeSGs0tF HxjWgUWsHETiLcUoIT+1ZJkqudeNr9Qbo/CPMoRVDGWkg== X-Received: by 127.0.0.2 with SMTP id PNo1YY7687511xZ91bMDFQwr; Sat, 29 Jun 2024 10:42:28 -0700 X-Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) by mx.groups.io with SMTP id smtpd.web11.10484.1719682942074733551 for ; Sat, 29 Jun 2024 10:42:22 -0700 X-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 599851380117; Sat, 29 Jun 2024 13:42:21 -0400 (EDT) X-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 29 Jun 2024 13:42:21 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdelgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeftvggs vggttggrucevrhgrnhcuoehrvggsvggttggrsegsshguihhordgtohhmqeenucggtffrrg htthgvrhhnpefhkedvkedvhfdtvdetheeuueelteejhfeiheejuefhtddutddvgedutdek veelhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrvggsvggttggrsegsshguihhordgtohhm X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jun 2024 13:42:20 -0400 (EDT) Message-ID: Date: Sat, 29 Jun 2024 11:42:14 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] Alignment fault in __memcpy when SbsaQemu is built uncompressed To: Ard Biesheuvel , Leif Lindholm Cc: "devel@edk2.groups.io" , Marcin Juszkiewicz References: <428c3293-3899-4794-a51b-7670331e58a2@bsdio.com> From: "Rebecca Cran" In-Reply-To: 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: Sat, 29 Jun 2024 10:42:22 -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: EE2SGeNOJ9F10FDdFHyS84A5x7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=mBRmZh4W; 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 On 6/29/24 9:26 AM, Ard Biesheuvel wrote: > It looks like the FvReadFile() call is doing a memory copy from the > firmware volume (FV), which seems to be mapped with device attributes > rather than normal memory. With a compressed image, the FV will be > decompressed to normal RAM, so this can never happen at this stage in > the boot (BDS phase) > > Looking at Platform/Qemu/SbsaQemu/SbsaQemu.fdf and > Silicon/Qemu/SbsaQemu/Library/SbsaQemuLib/SbsaQemuMem.c, the entire > flash device (FD) which should cover the uncompressed FV is mapped > with cacheable attributes, but the address in question ^^^ is outside > of the predefined window of > > BaseAddress =3D 0x10000000|gArmTokenSpaceGuid.PcdFdBaseAddress > Size =3D 0x003C0000|gArmTokenSpaceGuid.PcdFdSize > > Did you update PcdFdSize to account for the larger footprint of the FV? I updated the .fdf file to set the Size to 0x00EC0000 and updated the=20 NumBlocks, offsets etc. --=20 Rebecca Cran -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119729): https://edk2.groups.io/g/devel/message/119729 Mute This Topic: https://groups.io/mt/106820121/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-