From patchwork Tue Apr 21 14:29:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 11501699 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3EAAD6CA for ; Tue, 21 Apr 2020 14:34:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 189F220656 for ; Tue, 21 Apr 2020 14:34:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Gc76QjYc"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="lzpP1FSG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 189F220656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ttgyQE8zKFIBmPhP0TzYGMV7z77bKCYYnoa/IfyNuGs=; b=Gc76QjYciTzjAF I9q1+zRFM3tcPt38Y98v1g+A27wWO4QiT8tsvDOEM0cfGvK8HthGkeLj5j2w2QzO404JSLqIxpSth //ndDu4HAYEsOUZUjzmUdZc5X8F4DC2P7ayVXI0XMw42qEK0K4UrYgOheXKSJPtMMtfuY8HQ1cJ64 ETdB9a5Y2raMmNFyDWQBDAvLZyGg29tdvjAJH7JrE4QA6VIQtbTgqmJc8s0SXH1HIqC+ANw1Y2+uN L1u2CmDuET1BYw/YCRenWKocnALd944Vu8g8yw1rm9OAbvAMRV3VUIhmxmUMXBciYtY8xKOHFx/QY ZL2c3QjT5yOvpryf8ihQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQtyw-00012Z-EP; Tue, 21 Apr 2020 14:34:38 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQtty-0002X4-Us for linux-arm-kernel@lists.infradead.org; Tue, 21 Apr 2020 14:29:35 +0000 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03F4F206B8; Tue, 21 Apr 2020 14:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587479368; bh=s5Sab4jJiJDHJIpjD4RvCm2z34zP3dXNvjG8qk3JShE=; h=From:To:Cc:Subject:Date:From; b=lzpP1FSGfbR/3p7IVdtgVFBf7t6Kgb/fybDrn+J9ySJZy9hpI+kFaRHIz2yOU8hg2 iFs6Ze2Hxjz3yyrg2ROMU9YOm0b6kqPKS5d1zkqvyTFq9vAZ4aCtJC4y4oFavDrM7G n64/U9FpYOqS9ta9AX9SxGMl0ruF1YCwnqJsD1i8= From: Will Deacon To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 0/8] Relax sanity checking for mismatched AArch32 EL1 Date: Tue, 21 Apr 2020 15:29:14 +0100 Message-Id: <20200421142922.18950-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200421_072931_025357_9BF16E63 X-CRM114-Status: GOOD ( 10.05 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Sai Prakash Ranjan , kernel-team@android.com, Anshuman Khandual , Marc Zyngier , Suzuki K Poulose , linux-kernel@vger.kernel.org, Doug Anderson , Catalin Marinas , Will Deacon Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi folks, This is version two of the patches I previously posted here: https://lore.kernel.org/lkml/20200414213114.2378-1-will@kernel.org/ Changes since v1 include: * Typo fixes * Added comment to update_32bit_cpu_features() callsite regarding sanitisation * Extended comment in final patch to mention KVM * Add acks/tested-bys Cheers, Will Cc: Suzuki K Poulose Cc: Mark Rutland Cc: Marc Zyngier Cc: Anshuman Khandual Cc: Catalin Marinas Cc: Sai Prakash Ranjan Cc: Doug Anderson Cc: kernel-team@android.com --->8 Sai Prakash Ranjan (1): arm64: cpufeature: Relax check for IESB support Will Deacon (7): arm64: cpufeature: Spell out register fields for ID_ISAR4 and ID_PFR1 arm64: cpufeature: Add CPU capability for AArch32 EL1 support arm64: cpufeature: Remove redundant call to id_aa64pfr0_32bit_el0() arm64: cpufeature: Factor out checking of AArch32 features arm64: cpufeature: Relax AArch32 system checks if EL1 is 64-bit only arm64: cpufeature: Relax checks for AArch32 support at EL[0-2] arm64: cpufeature: Add an overview comment for the cpufeature framework arch/arm64/include/asm/cpucaps.h | 3 +- arch/arm64/include/asm/cpufeature.h | 7 + arch/arm64/include/asm/sysreg.h | 18 ++ arch/arm64/kernel/cpufeature.c | 247 +++++++++++++++++++++------- arch/arm64/kvm/reset.c | 12 +- 5 files changed, 217 insertions(+), 70 deletions(-)