From patchwork Mon Nov 9 21:30:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 11892611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6CF5C55ABD for ; Mon, 9 Nov 2020 21:31:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 20DA8206ED for ; Mon, 9 Nov 2020 21:31:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nQZpd/bS"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="nZP+fmAo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20DA8206ED 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=aRKHYeeEJ1K287t5D1DPBgHt9zwcutSN7WyPoyKvoEo=; b=nQZpd/bSKBQV2pWZwzS8WSVnOX igpflwD8AGcOTlGS6q4QA79dITSjjy5hYQyTiywcV8+JaemvmA/MJAkA93Cu4jvzV8DaY1MUiYdLF +Q4bo+LN3/upE4wCnIxKk9mMCvA5jgrJxZdwvNqdOC7Dvf9LP7DJfhk6M2/UXZjeMNI8vVLwtzfSm dLgtuTQbWOXFmX0GFPUZH6blZ2vAaJUdulvzlz2JrrH3IL8F4flDsJYiOYqawgYFq/v+a5qso75oy VzexWI32H+dja7mPQDPGwSKCCb2dSe+1cdnUKoD/Fpq9rJX6V2DfPo51VmaNTraxvavy/Ox9zXrBf RDuU4jag==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcEkH-0000uf-SZ; Mon, 09 Nov 2020 21:30:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcEkF-0000tq-Mn for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 21:30:36 +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 1D11C206CB; Mon, 9 Nov 2020 21:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604957434; bh=njkWig57pWdajBWQKR4g8a47U32Y6t6JMAc4X5iWvMI=; h=From:To:Cc:Subject:Date:From; b=nZP+fmAowUfoPc+2sW5T5lTJ71YBKR923XOWqlnGYwNCK07gtlO1+D5/MEiXhiSAf sC0YPvwGzazCKsscLr39l2AEz3ylFx5h0wn/zmXaAGHlGDVZC7at3KpZUdivuTJc2/ WQcMH9Bt32AlVwCoGWyPBJ4h49LZ4Sj6wmNQGEZU= From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/6] An alternative series for asymmetric AArch32 systems Date: Mon, 9 Nov 2020 21:30:16 +0000 Message-Id: <20201109213023.15092-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-20201109_163035_890017_B6E246FD X-CRM114-Status: GOOD ( 15.69 ) 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: linux-arch@vger.kernel.org, Marc Zyngier , kernel-team@android.com, Quentin Perret , Peter Zijlstra , Catalin Marinas , Qais Yousef , Suren Baghdasaryan , Greg Kroah-Hartman , Will Deacon , Morten Rasmussen Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello again, This is version two of the ravingly popular series I previously posted here: https://lore.kernel.org/r/20201021104611.2744565-1-qais.yousef@arm.com Changes since v1 include: * Fix setting of compat hwcaps * Simplify sysfs code to use DEVICE_ATTR_RO() * Allow onlining of late CPUs in face of mismatch * Use a static key in the context-switch path * Avoid printing that we detected 32-bit EL0 support when we didn't This has unfortunately introduced more complexity than I would've liked, but it also seems to be free of any rough edges. I haven't yet tackled the execve() problem raised by Suren. I've got some local hacks, but nothing I'm happy with yet. They will come as follow-up patches in any case. As before, I don't think we should merge this stuff until we've figured out what's going on in Android, but hopefully we can reach some agreement on the basics before then. Cheers, Will Cc: Catalin Marinas Cc: Marc Zyngier Cc: Greg Kroah-Hartman Cc: Peter Zijlstra Cc: Morten Rasmussen Cc: Qais Yousef Cc: Suren Baghdasaryan Cc: Quentin Perret Cc: kernel-team@android.com --->8 Will Deacon (6): arm64: cpuinfo: Split AArch32 registers out into a separate struct arm64: Allow mismatched 32-bit EL0 support KVM: arm64: Kill 32-bit vCPUs on systems with mismatched EL0 support arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs arm64: Advertise CPUs capable of running 32-bit applications in sysfs arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0 .../ABI/testing/sysfs-devices-system-cpu | 9 + .../admin-guide/kernel-parameters.txt | 7 + arch/arm64/include/asm/cpu.h | 44 ++-- arch/arm64/include/asm/cpucaps.h | 2 +- arch/arm64/include/asm/cpufeature.h | 8 +- arch/arm64/kernel/cpufeature.c | 198 ++++++++++++++---- arch/arm64/kernel/cpuinfo.c | 53 ++--- arch/arm64/kernel/process.c | 19 +- arch/arm64/kernel/signal.c | 26 +++ arch/arm64/kvm/arm.c | 11 +- 10 files changed, 288 insertions(+), 89 deletions(-)