Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411883pxu; Tue, 1 Dec 2020 14:38:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUrullggIbFGAwpfntHExJtrqLrvprz+sR3gjNdl4x5yfhaSU5hjGC/yr/CD9yUlmx0EB0 X-Received: by 2002:a17:906:2a19:: with SMTP id j25mr5061273eje.506.1606862284737; Tue, 01 Dec 2020 14:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862284; cv=none; d=google.com; s=arc-20160816; b=SeZCfuhty6fCK5hfPQv9wW+hTiYTEmOTADyfxADuIFUserJHliuwp6+d5yDFlvmUKY MHHKEi6RqFvdvKf7uhfPBfSRLpmuQFfp1OwZxq8+w5dLTQaJHtbE8q2pOpQ/urN6t32d UmV9a3i/uPR+PugOogFPBMiG6DGmlo10Inq/U8TMpLA2JFuXgXPWAVmHSYFUTKMSSmfi CREzuNTuUAz3/l8poJnSR05Wbi2KMZCkworv8UW4/zRuKbSzwHR9uoTZ5+3GKonm4lgm gAIZWnyseuW+nh9h7MDOo6njsj7Ux2mLVULXwCO56u9WnX5lgMXcOpE/E99kk8dSJsqZ vbqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2x3J8P6hvXyFRZ8eFjnPX8te34Eed15xPjQGSeudXns=; b=EP8tbnj/2o/F0lYAdZQn1YuO6ERywGmmmGTs4mwWKzYN8tEZJL4B0I6c6SD2mXflsS NomEwcd/LgT4H9bULvD5VL1mqWkwmk4UnO6PCeq3MuHhI6AUNB1GR5Uc157XIAUTivUI WsipheLAr1zNyXhykfozuypymM+lLgItR764oltChyHnNoBlEnP5l0oYKZWyfMBxLnJU 0IPEuH2BlDVZOyYBMN10FGP0h8ReMhWaPrdAB8XL1ko5IDT6Zfz8P++lbXUn0Llhbfoh xJWQKmcFUm3b5hnd4gEt41RFzlEcF3UNbcUtOHHL1JLOkLGGrGgu94xiD8gx8njF2bJl etDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Chlj77m4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si824732eje.0.2020.12.01.14.37.42; Tue, 01 Dec 2020 14:38:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Chlj77m4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392215AbgLAQ5c (ORCPT + 99 others); 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