Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E68B7C433EF for ; Wed, 2 Mar 2022 15:39:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9EDCE83C9B; Wed, 2 Mar 2022 16:39:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qn0WUNzU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 01E2883C75; Wed, 2 Mar 2022 16:39:17 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 06BAD83C75 for ; Wed, 2 Mar 2022 16:39:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x736.google.com with SMTP id t21so1555394qkg.6 for ; Wed, 02 Mar 2022 07:39:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=D3+PaxOo0i8u096k5KBaFppNkMR4LTCKgJ9jZEp4XF8=; b=qn0WUNzUV0x+opOk8MeI54duBhp6xkjeZkjzi7M1QB8ZeyGLZ/qqEDpZ3IgwHm5p0r kLvWOmkIsqUlI/NxD3gThgk+VwPFXQQOr3/yLt7D+tPyWL/0mEyrch51hzidGCMtKmgB atHpsp1rqpaRs7JgYPXndQZ0OsvgXnu6BGHCM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=D3+PaxOo0i8u096k5KBaFppNkMR4LTCKgJ9jZEp4XF8=; b=HQI2qUIFDvvDr793rYYE9BWbULSw3KbZvfUt3NxPA7ndqySFm/0efona8SGx/yZy0s r0ZA7JiDE5+CsPSkFBxhDv1+emPDSu7rtDsYE+dVt/rPAU3Fsdat3Ii2+PwiiwAk2yX7 QT/bd4nU/vy2uE/Rm8yVHlE3uFbrqRArDbzffY5CvL+Iz4/Av6FCZG2xIOwoyBfWiy6e VV9Ic5gXOpZsnYOj0Pbg3Tv9QwEZUue8hnytwtSVgZmjzKQempoN3mlghsbqIq/XJ1sK 0iRudaQenMrZx1nQdmL3oJo9QYiNF0xFYZh0xTIjaQo/UKiuxGXWb5sYZQ4XG4JyjDPv 91Nw== X-Gm-Message-State: AOAM531e31T6PWejsBbaTgMtnotRG0sC7DTvbKE+7SkztIIqfq6p2qgx f8VZNutPWXkLjivTF8oqR4IGfg== X-Google-Smtp-Source: ABdhPJzoOK/gT/h/Aoi7qp6P4HawhjekuIEZfFskYgX/JBhA1bintpllwUlUdF4rlOEEudkf2L+mww== X-Received: by 2002:a37:a2c1:0:b0:46d:cca4:ad7d with SMTP id l184-20020a37a2c1000000b0046dcca4ad7dmr16193037qke.74.1646235550489; Wed, 02 Mar 2022 07:39:10 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id t2-20020a05620a0b0200b0060dd6af48d1sm8049822qkg.38.2022.03.02.07.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 07:39:09 -0800 (PST) Date: Wed, 2 Mar 2022 10:39:07 -0500 From: Tom Rini To: Jim Posen Cc: u-boot@lists.denx.de, mbrugger@suse.com, Chia-Wei Wang , Harald Seiler , Minkyu Kang , Simon Glass , Sughosh Ganu Subject: Re: [PATCH v2 0/6] Exception handling in HYP mode on ARMv7-A Message-ID: <20220302153907.GA3383069@bill-the-cat> References: <20211124194001.443232-1-jim.posen@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <20211124194001.443232-1-jim.posen@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 24, 2021 at 02:39:55PM -0500, Jim Posen wrote: > Currently, when U-Boot is running in hypervisor mode on ARMv7-A CPUs > with virtualization extensions, the exception handling does not work. > A couple things need to change which are detailed in my earlier > message to the u-boot mailing list with the subject "Exception > handling in HYP mode on ARMv7-A". >=20 > I have verified that this patch series works on the ODroid XU4 and > the Raspberry Pi 3B in Aarch32 mode when running in hypervisor mode. > One simple way to verify is by running the miscellaneous "exception" > command (CMD_EXCEPTION). >=20 > This can be tested with QEMU now. Configure with qemu_arm_defconfig > and add CMD_EXCEPTION and QEMU_ARM_32BIT_HAS_VIRT. Then run >=20 > qemu-system-arm \ > -machine virt,virtualization \ > -nographic -serial mon:stdio \ > -bios u-boot.bin >=20 > U-Boot 2021.10-... > ... > =3D> exception undefined >=20 > Changes in v2: > - Fix CP15 register written to in start.S > - Check processor mode as HVBAR register is only accessible in HYP > mode > - Add QEMU config option for ARM32 with virtualization extensions >=20 > Jim Posen (6): > Compile for ARMv7-A with virtualization extensions > Hypervisor mode interrupt vector table > Set HVBAR register correctly > Remove dead code > Fix PC adjustment logic in exception handlers > Config to target QEMU virt machine with virtualization Hey, sorry for the delay. Can you please rebase this to current master? It no longer builds on say am335x_evm, thanks! --=20 Tom --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIfj5MACgkQFHw5/5Y0 tyznXQv+NnXe3vH37VR1TgWMP0YJDhPQaBg0SggDwU4KUtKahSrVejeoUeAmbYTH wPcyRcvnalyuhwPgQ1B260+lnxnXd2jcg1/hS5LnMsFHlY5daM1iqGY/FlIrjREV mIZmfCO/bJkEW+h8Fbq3wDPVUCOgmtGWuqfL6q81ioHtY28vhUMa3CA/xT3lFz/f JVQOx18nYN0ymOhuDEviUDSTdNjxm7ppzEJipHtWnexVOPNIlbxX6+Z1IzKBQEK1 X48XFdvZC+CNA5ubwKFmFoOyVo+IvDvsLWSne7qpOihOMo2rzaSRz15ncuqTSXFL 323zS27teH340QXwHIwlLZo2ybRWxzcjpnh531GD3rS7fTwKXeMISgLhHuN0CcVq lOzbp+ZDYJeeW5ZYPF5vFz4ib4fyqjsdag148ydVDDc8cWBoVSe98nrd5fasXBX6 llQ8/tIEsImhlqNLaIdWqBVD5iC0vvhFN3LwvCUwE+2HYG+AyjyYcw0J1aMPv61M XOjiWneX =grvT -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--