From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web12.9647.1667923209398835379 for ; Tue, 08 Nov 2022 08:00:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X1Wtzs2u; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667923208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kD6tw3YjFncBadvzPyUZBFwrU+5domJxKTGcC57XjYg=; b=X1Wtzs2u4XzrMfCb0Xdw6GLx058g4pVuB8QjRlWRA4ctqoPLZUaifkLuZCkqBeYCtWjdJ5 /jppGMIWq/d8lm1Y3y5hfgtjD1R7Zp4fK06MlmgKFX4O+KQxicSaP+BDkRhMk95eZwBez7 WlNTLYETTL13z5I9lkPuSJh1I4BgMzQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-202-Kv6WM-tAO9ebNXYF8eSdDg-1; Tue, 08 Nov 2022 11:00:00 -0500 X-MC-Unique: Kv6WM-tAO9ebNXYF8eSdDg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7DB798027EB; Tue, 8 Nov 2022 16:00:00 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.192]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 94F3A112C062; Tue, 8 Nov 2022 15:59:59 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 269FF180039D; Tue, 8 Nov 2022 16:59:57 +0100 (CET) Date: Tue, 8 Nov 2022 16:59:57 +0100 From: "Gerd Hoffmann" To: Ard Biesheuvel Cc: devel@edk2.groups.io, Leif Lindholm , Alexander Graf , Sami Mujawar Subject: Re: [PATCH v3 resend 07/11] ArmVirtPkg/ArmVirtQemu: enable initial ID map at early boot Message-ID: <20221108155957.hruutgymgc6bog4r@sirius.home.kraxel.org> References: <20221019092211.465699-1-ardb@kernel.org> <20221019092211.465699-8-ardb@kernel.org> MIME-Version: 1.0 In-Reply-To: <20221019092211.465699-8-ardb@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 19, 2022 at 11:22:07AM +0200, Ard Biesheuvel wrote: > Now that we have all the pieces in place, switch the AArch64 version of > ArmVirtQemu to a mode where the first thing it does out of reset is > enable a preliminary ID map that covers the NOR flash and sufficient > DRAM to create the UEFI page tables as usual. > > The advantage of this is that no manipulation of memory occurs any > longer before the MMU is enabled, which removes the need for explicit > coherency management, which is cumbersome and bad for performance. > > It also means we no longer need to build all components that may execute > with the MMU off (including BASE libraries) with strict alignment. raspberry pi 3 host stopped working with this. No log messages, probably fails before enabling the serial console (not surprising given the nature of the change). raspberry pi 4 host continues to work fine. Possibly related: raspberry pi 3 host (before this commit) waits forever for a key press instead of continuing after 5 seconds timeout. That one is reproducible on raspberry pi 4 host using ... qemu-system-aarch64 -machine virt,kernel-irqchip=off ... which is default on rpi3 due to lack of a gic. Which hints some problem with timer interrupt (possibly a qemu bug not a edk2 armvirt issue). (not that much of a problem in practice given that the rpi3 isn't a great platform with only 1G of ram, but due to supply chain problems it is hard to get your hands on a rpi4 right now so I'm trying to use the rpi3 I have lying around ...). take care, Gerd