From patchwork Wed Dec 8 23:11:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 522227 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp152453imb; Wed, 8 Dec 2021 15:13:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqFgI4YvSWp9F7WWCx2xC54tfPAstZUkQK6Mizc6c3/2B0mohy+D6k03cnrtP4SDMnNfGa X-Received: by 2002:ac8:7fca:: with SMTP id b10mr12192037qtk.500.1639005180805; Wed, 08 Dec 2021 15:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639005180; cv=none; d=google.com; s=arc-20160816; b=JY5zhiZhaRttJbyxUD6JXFxTFPMzJi6WRWJHFftA5jlFPexflrM7Gtymp0LC/dZomD kMrX+VMJijQ4ulDbeIlg5zgS/yIkoMTx23cvpPxAQErg70YF+6ha5AfakQcXSc2QHFAg J1VXN6lTrNBfm8U+O+pkVyjK+dq7Yo4oBLyGYnsnmFEG6/BUu3/HNTPembOAP0WZVs3j UduDTn1wm9H9VBMeoePfbW0zTiR/5e3cHSeaHktO/MqP+J2Jlbxj6YSkIqJMRh6EbTIq rD7yvX6yvIQ1VHD48nEJ9DZvwXrhcJXzgYOV6FNhzZqCvFGaXckPRqA8Q9m0IOjF+bYj iivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from:dkim-signature; bh=3hX/+5BRd2SnWuJl3tr+kAwTDbd9YV56sDgFzlRQkRU=; b=QJWnwHDLPr8DFSO8n5jApT8Xyd9s0otyNrHpnthazzlZZyX4c+z+DN49TTkDjP6J5i GUHFcBHfjAwm4O51EOjAN/trkuCX3YuquI2YrsiFg2TfW3zzq6z6sbW8BuyVjbXIiwzu 0C0U1IKIB9NBldO6lv2d3J1lIfPHohGaBRsnKFDIyp0CqjZNnd3y18ePKYY0YbD9iupz +L507AtdXN8Yxr/cvoh8hllG28hDobo+XOHFG4jxCvTW9ZWuolGYgek6Pd1I861wLFb2 Iyyejl5P/Vmr5KocraAWcnMiRZ1pyilluksY0mNIPynFRvRBPeZmB0Mi4JsRfD2Cdibw XgIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLaRDobn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i3si6016561vsj.324.2021.12.08.15.13.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Dec 2021 15:13:00 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLaRDobn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv67P-0005Bn-8C for patch@linaro.org; Wed, 08 Dec 2021 18:12:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv66R-00056k-IK for qemu-devel@nongnu.org; Wed, 08 Dec 2021 18:12:00 -0500 Received: from [2607:f8b0:4864:20::1034] (port=46725 helo=mail-pj1-x1034.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv66P-0004mR-Eb for qemu-devel@nongnu.org; Wed, 08 Dec 2021 18:11:59 -0500 Received: by mail-pj1-x1034.google.com with SMTP id np6-20020a17090b4c4600b001a90b011e06so3344583pjb.5 for ; Wed, 08 Dec 2021 15:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=3hX/+5BRd2SnWuJl3tr+kAwTDbd9YV56sDgFzlRQkRU=; b=TLaRDobnZTMuNxm3v5It9FP0xwXjwuYLizvFi1SVnXEa914sVh3DDgDIoCproGV4eh GsDmI9MStV2p1T/5pN+QOORjqYDfkvXkBE9r5+ODY3oeW3HT+pcizzWT2gtfUiope57U vmJfyPMAhkm+lqKAZjduRUfLSl1AdDXGGgIGsX4hPv5NxKie2W9kHteeDcdjxj6JiIAt X4rJG5o9WY2gaSzmg0bMvb1XvPCjheY8Ddy31cIalCYwVvoyyA84QPzkh7yI4IhbGbBn 3qlg7egXreILE0+z4MoE9Ao+9hBiSPj2il7XThgzTlBehK+/5OjTtaV81n/1CZkRZmWE jGRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=3hX/+5BRd2SnWuJl3tr+kAwTDbd9YV56sDgFzlRQkRU=; b=mxl6BMn7f2gK+q+pSbDYYu3jyynctPNPLQzS9U9Ih7EEjku6d2W+pa9cDv+OLAJAOW d39gOewb3p3nAgjU3ZGGaUYCRigy1PTGp0V5x703HmfPKJh0ulokTJUvS3kkZ2uzh32h a+M8JEw+0VGclFHWcghn9uxijnLbaPX96E8G/ONGLNUoGDDgYIZkO8KhooTOhCxRk6Yd ORiF1XyTGMAkKfHzoCdtrSvBVsbyS6W+FNnBaUv7M2uryFrGB9k4hjDvHMSEvqzs2z2z N0zWRLAlGHwqepcM5lO90l7KymSwuEaZi3yX3Q5j3GCR3pqOLYlbERAb10blXEDqYVvS v4sw== X-Gm-Message-State: AOAM532QsHUNFk2fX1qaDMJ3dlnTdJCf3h6OkdpuX6W4dwUd0OjZ2QbQ m9DLigCRKnJ6q4gzng9za3liCT5qULutCw== X-Received: by 2002:a17:903:32c7:b0:141:eb39:30b7 with SMTP id i7-20020a17090332c700b00141eb3930b7mr62323487plr.41.1639005115629; Wed, 08 Dec 2021 15:11:55 -0800 (PST) Received: from localhost.localdomain (45-19-222-18.lightspeed.sntcca.sbcglobal.net. [45.19.222.18]) by smtp.gmail.com with ESMTPSA id k15sm3301062pgn.91.2021.12.08.15.11.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Dec 2021 15:11:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-7.0 0/6] target/arm: Implement LVA, LPA, LPA2 features Date: Wed, 8 Dec 2021 15:11:48 -0800 Message-Id: <20211208231154.392029-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1034 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These features are all related and relatively small. Testing so far has been limited to booting a kernel with 64k pages and VA and PA set to 52 bits, which excercises LVA and LPA. There is not yet upstream support for LPA2, probably because it's an ARMv8.7 addition. r~ Richard Henderson (6): target/arm: Fault on invalid TCR_ELx.TxSZ target/arm: Move arm_pamax out of line target/arm: Honor TCR_ELx.{I}PS target/arm: Implement FEAT_LVA target/arm: Implement FEAT_LPA target/arm: Implement FEAT_LPA2 target/arm/cpu-param.h | 4 +- target/arm/cpu.h | 17 ++++ target/arm/internals.h | 22 +---- target/arm/cpu64.c | 5 +- target/arm/helper.c | 211 ++++++++++++++++++++++++++++++++++------- 5 files changed, 204 insertions(+), 55 deletions(-)