From patchwork Wed Jun 18 06:58:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 897546 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f54:0:b0:3a4:ee3f:8f15 with SMTP id cm20csp153292wrb; Tue, 17 Jun 2025 23:58:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWk7J79nSyEDRFikIqESaSS10QCeKBcNsTxlylb+PDqYH9aJYkz0b2O2DTPe6TStzAELj25YA==@linaro.org X-Google-Smtp-Source: AGHT+IH8vWd590cYuaZAczklrIhUHXn0UVu5OGrEeIZBitr9TGYxWVBzejA+4juN+5knU270DkxI X-Received: by 2002:ac8:5702:0:b0:47a:e482:2eae with SMTP id d75a77b69052e-4a73c5f9427mr264489231cf.31.1750229918835; Tue, 17 Jun 2025 23:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750229918; cv=none; d=google.com; s=arc-20240605; b=Ox2lcu/5dHBqrjIMlmupPhhKJSxa7OhXX0h5kPxoc/TZdpeYVmQXJd8mZMA2361RSm OE/CPEa2fzVLky1+G1AGrEglLUeK5tUxcqzx4oEhLgDWPuKwMFgeRfX6kx3YBJoUmXq0 2muPxg0vmZUyng7VvxOswuPifIbq8qWAvkDoLFqESdGOwf+M/JUpShj0NKZoP19xaU24 VkoqbNIuMysb22N55/iUDrE3fQsDfyhlUQv92mhO4rXKq9ZBejbFBoM7IWAGJNrpXdJw cU1kCTSwe5EK0FwBJVB+2hSAis5mRsDqBxxDj8GRpb5A+tq9B72ATmZWmmrzQeZ8lj0n QZ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=1m4ddvYPVhm6r0uXQ5bFcfykk9LsnQ6Y6xMom5z9k1Q=; fh=0WWv3sSOe2eSiK1tQdDdt9qnWK1FdqSYxGnEF5woyIw=; b=M1XDo5ofzzC/RCuLySxb53rVU6L+V8agkxT9ykNiukFwooZxxWOwOfE/DWpx0YVt/D Rv4/6VD6X3GHjdijeWGAmQdT0OWGfdT7zEdglgnE3wKw9wAGgSb3GytBXEtJhP8H+2iW NR04X1d7zzdh2Wx7XsWLoDxguuqFj2CH+jeN1jmR3rTVxnzzQXTwDMHyy7PkUD75KdkB MCtCFPxbyZYuCLcz1KPQbr7DR+d35XkQFrBKz/edK/l22xMMV06K5PqJqFwPGTgEi0bP 6I8qOSgy9f+286MtmP9OSaRWqoDOeUPq736fpdc/1RRjtqbFD2QjiBy4XvfLskwSoHZN 8OAQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fFUpNiJm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id d75a77b69052e-4a72a47d777si141702471cf.278.2025.06.17.23.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 23:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fFUpNiJm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 092CB82B0F; Wed, 18 Jun 2025 08:58:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="fFUpNiJm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BF32B82B18; Wed, 18 Jun 2025 08:58:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 8CEDB82977 for ; Wed, 18 Jun 2025 08:58:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-ad891bb0957so1185230166b.3 for ; Tue, 17 Jun 2025 23:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750229913; x=1750834713; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1m4ddvYPVhm6r0uXQ5bFcfykk9LsnQ6Y6xMom5z9k1Q=; b=fFUpNiJmP//vbX81J15opGWhmPMXuNyLIpoqp/kNXsx1pXd3wDUqseUA0BYV9NCw4n QuBXm/xHIENdUfgLCGw4Y/wDYdtEIcoK/23Cz6cO00LG6KlPt5PTzBarm2+t1kvS40q9 6ShLkT/1BQoav9v6X1JwB+WVCNIO10ObK8f/2wCRz5Ht4fP2nFZpjlerCL8Wzyd3EIS4 dsWGDDNjU15dmisypqUsxCiMJGZ4wn5a9ZpDo+IM14/MqAA2sshF+QHIqA448En2k9VW Pwq2wLaoS1NgVEiidRVer+PXy8HDKqS4R28BeHZxGDmWnoZ8dtTERmJcQqgVbQgqb3lS 6SbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750229913; x=1750834713; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1m4ddvYPVhm6r0uXQ5bFcfykk9LsnQ6Y6xMom5z9k1Q=; b=hdWsj5XuZC84iQ0y2nblv9sU4dmgv7NZ7QtqW3Au695grtFIy3g32EWOj4V6Hqz5aM 4cuchRyhuenTHshTal/r7LL/KRDiBV2VdvJjTgfrhd3eCny45SQENDynzYTirzD+o3CT cZ2VV6yuY7hP0NpZ+fbxJ3x3o5VMx1LR1X75rwGixBIMnT3aORqc9J2pqQuIR4IQ/1pF 0ZcVg+OYo4jrtlFmEy3/4efAgXfZGyIblnaJW3IF0fllzPCwQ+Jnd8QHf/R7z7JpXfSp P14yIs3HiO7NALu84q70vEnzKwFzDaTwP4mOOuxLrpuyS6TdGfW5ilImrtGQYrSW4xNx YbIQ== X-Forwarded-Encrypted: i=1; AJvYcCVzxmPEWL1+D0rw7AFvYKu+6IvUwfZVbWQa2dGDnMoNe1gmfgWVX0f3W4doAyg8S5j1V4zy+fY=@lists.denx.de X-Gm-Message-State: AOJu0YyNQSQo/FOfASuVabLYOk7JDrpTlw5Bns3/2+R1aoZ1UWrLisZS CFDMsBJDUdAaOPuwq/qZWQH5oY4nGHgvHO6vfCnxETLWsUQC/Lw9S1QqHW87WmGJlNQ= X-Gm-Gg: ASbGncv40xugylZbWH1DZVJhBKwqZfNHEBoMgCE17JsXsBMZxrmrsy0yEG25/SeYkLU JCZrT4Ji1hjnCT6mIFx7n+Mh+19BPCBK2ZBANHMnZ3SBCt1tG4bkO4RNZJi3SUpduWrQKmHgFcT Edq5v16k8lrANZ79oXTr8Rz960GLFtizS6W4KNpEVjWLvqpy16/r7Klss/mDEsXyoy82ksXDYT4 OaFQfxRLZFgObBZHDKHZgwm5b3xTpa0ShrddHfwDaZLCaWy9hdJu5WOS/oYzGgcpIry9NFObm+1 EKFyzDOKMtdZRTWV4Bzw+Vjj9dQ9vUopQIr5I7kuO9dJCvNKeYqUMQy5dqOzLvNc+f2Q87oOkeC 13dr+jdcRFN2yn0/toKOh+r2qIDT/fGR3 X-Received: by 2002:a17:907:1c95:b0:add:deb0:8b64 with SMTP id a640c23a62f3a-adfad34aef0mr1583621566b.24.1750229912975; Tue, 17 Jun 2025 23:58:32 -0700 (PDT) Received: from hades.. (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-adec897bae7sm978322866b.162.2025.06.17.23.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 23:58:32 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: jerome.forissier@linaro.org, mikko.rapeli@linaro.org, Ilias Apalodimas , Rayagonda Kokatanur , Tuomas Tynkkynen , Jagan Teki , Casey Connolly , Tien Fong Chee , Simon Glass , Patrick Rudolph , Liya Huang <1425075683@qq.com>, Boyan Karatotev , Alif Zakuan Yuslaimi , Oliver Gaskell , =?utf-8?q?Duje_Mihanovi=C4=87?= , Heinrich Schuchardt , Raymond Mao , Patrick Delaunay , Ashok Reddy Soma , Venkatesh Yadav Abbarapu , Marek Vasut , u-boot@lists.denx.de Subject: [PATCH v2 0/3] Fix io accessors for KVM Date: Wed, 18 Jun 2025 09:58:11 +0300 Message-ID: <20250618065828.1312146-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Instructions that lead ito an exception in the hypervisor can't modify two CPU registers at once for the ARM ISA. These instructions cannot be emulated by KVM as they do not produce syndrome information data that KVM can use to infer the destination register, the faulting address, whether it was a load or store, or if it's a 32 or 64 bit general-purpose register. As a result an external abort is injected from QEMU, via ext_dabt_pending. Patch #1 prepares some function for the modified macros Patch #2 modifies the macros Patch #3 enables the functionality for armv7/8 QEMU Changes since v1: - Split the function modification in its own patch - Don't limit the changes to v8 only Ilias Apalodimas (3): nxp: Prepare macros for KVM changes arm: io.h: Fix io accessors for KVM qemu: arm: Enable virtualizable IO accesors arch/arm/Kconfig | 12 +++ arch/arm/include/asm/io.h | 152 ++++++++++++++++++++++++++--------- configs/qemu_arm64_defconfig | 1 + configs/qemu_arm_defconfig | 1 + drivers/spi/fsl_dspi.c | 6 +- include/fsl_ifc.h | 24 +++--- 6 files changed, 142 insertions(+), 54 deletions(-) --- 2.43.0