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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 255D2C433EF for ; Mon, 25 Oct 2021 00:03:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2E0516054F for ; Mon, 25 Oct 2021 00:02:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2E0516054F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A68FA8169E; Mon, 25 Oct 2021 02:02:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G1LXpNUR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E4DC834B0; Mon, 25 Oct 2021 01:58:23 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 839B782EBB for ; Mon, 25 Oct 2021 01:58:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jim.posen@gmail.com Received: by mail-qk1-x735.google.com with SMTP id y10so10184307qkp.9 for ; Sun, 24 Oct 2021 16:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hL9Qg9PLLk7dMeRh3VpbvRHC5STH34aWTq5h9xKN14w=; b=G1LXpNURq4I0xQ62k6Xxfx9WiZd3iKGNWqkbebq09IIY1DWvLSfhVee3H2EMNpA4P7 vmqdJviM49AHZqureNKRif+7bGVu2jfeghoNO9Z+pcxbKm9VFQLYxTY5c1h1sY2Nbu4S PJxGCzyxCI24V1/2x6DjM9cmbqurW/iIF5QjBIgDqrheryOWK9X5EiRzY2kk8dCfxmAz KL0J2SCWRLthdhjwBEI/jZdfUobBbc19KLeh0KwpABBSm9IaIBl6kGWUW2l8K9yo+cI0 silKHMW4LFS5n8vJuchMwhe2PYbYcLEzJtQl7aSksMK7YDP9NvuTwbT9d2dAI5SuIeZO wH6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hL9Qg9PLLk7dMeRh3VpbvRHC5STH34aWTq5h9xKN14w=; b=GSvXlyK5vzmr48c5GtKazejVVjpt1ScB3v3t+I9AZsSEny6yS/mcyijJBbCJNW6JOM TLBvvVK1VomJDDrwiHsb59vc+tyJXPDuoMnR2RivZ1w45uCU5wkLxeaN9ldHofWtHWme H7WSzQCIED5I7RcGSwyzhRMJ4HSpD9G3V/NzaeUzHDszy2rTis6RRXBmGfg6Jhlq17UY atCqmXciUX7L6bB9TM5rIhIIBp7LQA940jElt1N2okLvgj4DMTRRU3JyGsLS/u0XIqBU 4dBFXC3Vak2rAGQ9iui3+jlm0Fz+bHBPZZHfNpaBUcbr+q9S8EG+WwPgQL3Mg7MCb7qk a3Rg== X-Gm-Message-State: AOAM532hbaWgppdc+gExzqijJniX67SfsGQKW25b6NJtIrpc8VyQGS1P XsrjErj2a02K1s+jBs52nc03hMQmkkk= X-Google-Smtp-Source: ABdhPJxfHRTIx2nWG9vRVEXyYnUftRI2n7/OlSeIw3OW9H48ROocgZlJLd3QNA9MIOtzxRvDv8NojA== X-Received: by 2002:a37:87c7:: with SMTP id j190mr11001691qkd.89.1635119897800; Sun, 24 Oct 2021 16:58:17 -0700 (PDT) Received: from phantom.myfiosgateway.com ([68.237.40.64]) by smtp.gmail.com with ESMTPSA id c9sm6848573qte.43.2021.10.24.16.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 16:58:17 -0700 (PDT) From: Jim Posen To: u-boot@lists.denx.de Cc: trini@konsulko.com, mbrugger@suse.com, Jim Posen , Chia-Wei Wang , Harald Seiler , Minkyu Kang , Simon Glass Subject: [RFC PATCH 0/5] Exception handling in HYP mode on ARMv7-A Date: Sun, 24 Oct 2021 19:58:03 -0400 Message-Id: <20211024235808.1926508-1-jim.posen@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 25 Oct 2021 02:02:55 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean 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". 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). Jim Posen (5): 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 arch/arm/Makefile | 4 + arch/arm/cpu/armv7/start.S | 5 ++ arch/arm/include/asm/u-boot-arm.h | 14 ++-- arch/arm/lib/interrupts.c | 26 +++--- arch/arm/lib/relocate.S | 8 ++ arch/arm/lib/vectors.S | 129 +++++++++++++++++++++++------- arch/arm/mach-bcm283x/Kconfig | 3 + arch/arm/mach-exynos/Kconfig | 1 + 8 files changed, 139 insertions(+), 51 deletions(-) -- 2.25.1