From mboxrd@z Thu Jan 1 00:00:00 1970 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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 97BD1C64E90 for ; Tue, 1 Dec 2020 16:57:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B34C20758 for ; Tue, 1 Dec 2020 16:57:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Chlj77m4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392220AbgLAQ5c (ORCPT ); Tue, 1 Dec 2020 11:57:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:41650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389973AbgLAQ5b (ORCPT ); Tue, 1 Dec 2020 11:57:31 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D123020758; Tue, 1 Dec 2020 16:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606841811; bh=47Bn+tKERV4chnDwa7E8zZqamljNfOW477mi08QNoDc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Chlj77m4jFNnf/tW2F7OTYLtTFZouzMMnoyCFjFaGErrmL4m9OkRK4MYs69Glxkiu aGRln1OC9pFrsapyD0w+1455b9BLGIvtBdmmMcNn1hZ83yU5VWeXxyfOrFlkeJidJe YnuIVmKD6lFUMApvHZebKiZJzl8tfWO2sSCWlW+c= Date: Tue, 1 Dec 2020 16:56:44 +0000 From: Will Deacon To: Qais Yousef Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Li Zefan , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , kernel-team@android.com Subject: Re: [PATCH v4 06/14] arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0 Message-ID: <20201201165643.GD27783@willie-the-truck> References: <20201124155039.13804-1-will@kernel.org> <20201124155039.13804-7-will@kernel.org> <20201127131759.5o5qiv2uwtb6qadl@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201127131759.5o5qiv2uwtb6qadl@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 27, 2020 at 01:17:59PM +0000, Qais Yousef wrote: > On 11/24/20 15:50, Will Deacon wrote: > > Allow systems with mismatched 32-bit support at EL0 to run 32-bit > > applications based on a new kernel parameter. > > > > Signed-off-by: Will Deacon > > --- > > Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ > > arch/arm64/kernel/cpufeature.c | 7 +++++++ > > 2 files changed, 14 insertions(+) > > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > > index 526d65d8573a..f20188c44d83 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -289,6 +289,13 @@ > > do not want to use tracing_snapshot_alloc() as it needs > > to be done where GFP_KERNEL allocations are allowed. > > > > + allow_mismatched_32bit_el0 [ARM64] > > + Allow execve() of 32-bit applications and setting of the > > + PER_LINUX32 personality on systems where only a strict > > + subset of the CPUs support 32-bit EL0. When this > > + parameter is present, the set of CPUs supporting 32-bit > > + EL0 is indicated by /sys/devices/system/cpu/aarch32_el0. > > Shouldn't we document that a randomly selected 32-bit CPU will be prevented > from being hotplugged out all the time to act as the last man standing for any > currently running 32-bit application. > > That was a mouthful! I'm sure you can phrase it better :-) Sure, I'll have a go at adding something. Thanks. > If we make this the last patch as it was before adding affinity handling, we > can drop patch 4 more easily I think? I'd still prefer to keep patch 4, but I can certainly try to move this one later in the series. Will From mboxrd@z Thu Jan 1 00:00:00 1970 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 EEB1EC64E7B for ; Tue, 1 Dec 2020 16:57:58 +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 801D820758 for ; Tue, 1 Dec 2020 16:57:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P4zRcNFu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Chlj77m4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 801D820758 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zXRgjeB7w6UlUQVHnSYh3fuM+uCILsJjKZhrwiuuGSo=; b=P4zRcNFucgPYL5/b1bRX5b+M1 RUpDKx71yFssFLZgmXi93HcBiFo5GEAtf9z3gHpNEH0PibrwhxpG5lb3mtWAoi4IDKBNYPnsYTtGd afCHkTCH02fF2VXSo0dAzvZHRk16AzjwWvd+1tjVqBSh03XHevfpoYsBMpitkg3QrrNf4rL8Stg8b LK7Wwawm5NdhcWOuSNjDcXFkXPdvpde4j7SdjmV2nEmql174m+SXARBX0y0yM4kx/XC2vNGosGaw0 rJWxXv5evd4//ALCMg3UB0p/I9hPTK8nMRK8arPY1KStzv0KArivCvHnBKZEE/V2Srng2BhAeOgXm ukrePGe7g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk8xR-0003rB-QE; Tue, 01 Dec 2020 16:56:53 +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 1kk8xP-0003qK-RI for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 16:56:52 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D123020758; Tue, 1 Dec 2020 16:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606841811; bh=47Bn+tKERV4chnDwa7E8zZqamljNfOW477mi08QNoDc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Chlj77m4jFNnf/tW2F7OTYLtTFZouzMMnoyCFjFaGErrmL4m9OkRK4MYs69Glxkiu aGRln1OC9pFrsapyD0w+1455b9BLGIvtBdmmMcNn1hZ83yU5VWeXxyfOrFlkeJidJe YnuIVmKD6lFUMApvHZebKiZJzl8tfWO2sSCWlW+c= Date: Tue, 1 Dec 2020 16:56:44 +0000 From: Will Deacon To: Qais Yousef Subject: Re: [PATCH v4 06/14] arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0 Message-ID: <20201201165643.GD27783@willie-the-truck> References: <20201124155039.13804-1-will@kernel.org> <20201124155039.13804-7-will@kernel.org> <20201127131759.5o5qiv2uwtb6qadl@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201127131759.5o5qiv2uwtb6qadl@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_115651_969194_5BB5FEAE X-CRM114-Status: GOOD ( 22.99 ) 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, Vincent Guittot , Juri Lelli , Quentin Perret , Peter Zijlstra , Catalin Marinas , Johannes Weiner , linux-kernel@vger.kernel.org, Ingo Molnar , Li Zefan , Greg Kroah-Hartman , Tejun Heo , Suren Baghdasaryan , Morten Rasmussen , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 27, 2020 at 01:17:59PM +0000, Qais Yousef wrote: > On 11/24/20 15:50, Will Deacon wrote: > > Allow systems with mismatched 32-bit support at EL0 to run 32-bit > > applications based on a new kernel parameter. > > > > Signed-off-by: Will Deacon > > --- > > Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ > > arch/arm64/kernel/cpufeature.c | 7 +++++++ > > 2 files changed, 14 insertions(+) > > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > > index 526d65d8573a..f20188c44d83 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -289,6 +289,13 @@ > > do not want to use tracing_snapshot_alloc() as it needs > > to be done where GFP_KERNEL allocations are allowed. > > > > + allow_mismatched_32bit_el0 [ARM64] > > + Allow execve() of 32-bit applications and setting of the > > + PER_LINUX32 personality on systems where only a strict > > + subset of the CPUs support 32-bit EL0. When this > > + parameter is present, the set of CPUs supporting 32-bit > > + EL0 is indicated by /sys/devices/system/cpu/aarch32_el0. > > Shouldn't we document that a randomly selected 32-bit CPU will be prevented > from being hotplugged out all the time to act as the last man standing for any > currently running 32-bit application. > > That was a mouthful! I'm sure you can phrase it better :-) Sure, I'll have a go at adding something. Thanks. > If we make this the last patch as it was before adding affinity handling, we > can drop patch 4 more easily I think? I'd still prefer to keep patch 4, but I can certainly try to move this one later in the series. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel