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=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 628C4C2D0A3 for ; Mon, 9 Nov 2020 13:54:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09266206B2 for ; Mon, 9 Nov 2020 13:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604930099; bh=dGEP64QAs0jF31VMA1gle5O8mu3T3WNCs6sCLQqqCOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=aRDGmjb8e5RVs8zO3Bi/Wnp7Mg5hEKfztnKi/Bj57Cj4kZg8fOuY+PynUkzpx0Qhe 77WGbxrhx63GJrXHHw8CoYpYWrZGxHxjHCtUxi3DIPcvbfVv0rtr2j4nSpOrafpQ25 +DLjj/8IgKFmth9N7ZfYMhh29/djVL+RAeYR4HwU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbgKINy6 (ORCPT ); Mon, 9 Nov 2020 08:54:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:42726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388241AbgKINxF (ORCPT ); Mon, 9 Nov 2020 08:53:05 -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 204372068D; Mon, 9 Nov 2020 13:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604929984; bh=dGEP64QAs0jF31VMA1gle5O8mu3T3WNCs6sCLQqqCOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ierO7sc+8bF0DatFyV5a312oSxI3bV9XhDsUjF6zi2oVmK1/pat5AfruqcBd2lIP/ +EgN/kyq0cLJ3rQ3xPOmavc+FChwpYf9cntg95axQvsMpijPOZ0IeplvDMqoB9CEP7 E6KU+x84RPNcSGv+/nuR/kb40hlP15AWDNCVGepc= Date: Mon, 9 Nov 2020 13:52:59 +0000 From: Will Deacon To: Qais Yousef Cc: Catalin Marinas , "linux-arm-kernel@lists.infradead.org" , "linux-arch@vger.kernel.org" , Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Suren Baghdasaryan , "kernel-team@android.com" Subject: Re: [PATCH 2/6] arm64: Allow mismatched 32-bit EL0 support Message-ID: <20201109135259.GA14526@willie-the-truck> References: <20201028124049.GC28091@willie-the-truck> <20201028185620.GK13345@gaia> <20201029222048.GD31375@willie-the-truck> <20201030111846.GC23196@gaia> <20201030161353.GC32582@willie-the-truck> <20201102114444.GC21082@gaia> <20201105213846.GA8600@willie-the-truck> <20201106125425.u6qoswsjfskyxtoo@e107158-lin.cambridge.arm.com> <20201106130007.GA10605@willie-the-truck> <20201106144835.q363ezyse4vc5kdg@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106144835.q363ezyse4vc5kdg@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Fri, Nov 06, 2020 at 02:48:35PM +0000, Qais Yousef wrote: > On 11/06/20 13:00, Will Deacon wrote: > > On Fri, Nov 06, 2020 at 12:54:25PM +0000, Qais Yousef wrote: > > > FWIW I have my v3 over here in case it's of any help. It solves the problem of > > > HWCAP discovery when late AArch32 CPU is booted by populating boot_cpu_date > > > with 32bit features then. > > > > > > git clone https://git.gitlab.arm.com/linux-arm/linux-qy.git -b asym-aarch32-upstream-v3 origin/asym-aarch32-upstream-v3 > > > > Cheers, I've done something similar. I was hoping to post it today, but I've > > been side-tracked with bug fixing this morning. The main headache I ended up > > with was allowing late-onlining of 64-bit-only CPUs if all the boot CPUs > > are 32-bit capable. What do you do in that case? > > Do you mean if CPUs 0-3 were 32bit capable and we boot with maxcpus=4 then > attempt to bring the remaining 64bit-only cpus online later? Right. I think we will refuse to online them. I'll post my attempt at handling that shortly. > Haven't tried that tbh. What symptoms do you expect to see? I can try it out. > I'm off for the remainder of the day, but can spend few mins to run an > experiment for sure. No probs; I've been taking Friday afternoons off to burn holiday anyway, so you didn't miss anything! 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=-5.5 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_SANE_1 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 EA807C2D0A3 for ; Mon, 9 Nov 2020 13:54: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 72B92206B2 for ; Mon, 9 Nov 2020 13:54: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="Iqusfz2M"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ierO7sc+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72B92206B2 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=4zWmuZU0z4zo46n5lpcc4sixADVjqAHzIGt9CMocIjg=; b=Iqusfz2MlpI/69AICc65nrVyK jhfunTFOcNutJX4NcE2Drxc8segYKLxirj89xd+OwRRNnafJibR3CLrOyuZLP1i5uQgz6AGeHmt8i g7BO2vrf2DodFKvrMv0axHzJj2DKpvh6u0XAfmhNWhTfD9cOvxcQG7tRghmhGaZ9RLBWBHWlPm8qv XqoH8vXa4SzMM1L/jGm2iCn/JHo2ZQXBouLQeOJhjUs2InCBgRSpALp+kIOjagO0ssZHJxujKvs0v 4H/UO0Vmd2bbmFnrmszyjAt9f+mneitGrhCfp+VEXjeOQmcyQyQ/63jc+jFYGBIhlHj44wefVL8ms j609cVvLQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc7bZ-0007Sx-9R; Mon, 09 Nov 2020 13:53:09 +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 1kc7bV-0007Rn-NW for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 13:53:06 +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 204372068D; Mon, 9 Nov 2020 13:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604929984; bh=dGEP64QAs0jF31VMA1gle5O8mu3T3WNCs6sCLQqqCOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ierO7sc+8bF0DatFyV5a312oSxI3bV9XhDsUjF6zi2oVmK1/pat5AfruqcBd2lIP/ +EgN/kyq0cLJ3rQ3xPOmavc+FChwpYf9cntg95axQvsMpijPOZ0IeplvDMqoB9CEP7 E6KU+x84RPNcSGv+/nuR/kb40hlP15AWDNCVGepc= Date: Mon, 9 Nov 2020 13:52:59 +0000 From: Will Deacon To: Qais Yousef Subject: Re: [PATCH 2/6] arm64: Allow mismatched 32-bit EL0 support Message-ID: <20201109135259.GA14526@willie-the-truck> References: <20201028124049.GC28091@willie-the-truck> <20201028185620.GK13345@gaia> <20201029222048.GD31375@willie-the-truck> <20201030111846.GC23196@gaia> <20201030161353.GC32582@willie-the-truck> <20201102114444.GC21082@gaia> <20201105213846.GA8600@willie-the-truck> <20201106125425.u6qoswsjfskyxtoo@e107158-lin.cambridge.arm.com> <20201106130007.GA10605@willie-the-truck> <20201106144835.q363ezyse4vc5kdg@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201106144835.q363ezyse4vc5kdg@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-20201109_085306_082345_C99D7950 X-CRM114-Status: GOOD ( 19.25 ) 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" , Peter Zijlstra , Catalin Marinas , Greg Kroah-Hartman , 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 06, 2020 at 02:48:35PM +0000, Qais Yousef wrote: > On 11/06/20 13:00, Will Deacon wrote: > > On Fri, Nov 06, 2020 at 12:54:25PM +0000, Qais Yousef wrote: > > > FWIW I have my v3 over here in case it's of any help. It solves the problem of > > > HWCAP discovery when late AArch32 CPU is booted by populating boot_cpu_date > > > with 32bit features then. > > > > > > git clone https://git.gitlab.arm.com/linux-arm/linux-qy.git -b asym-aarch32-upstream-v3 origin/asym-aarch32-upstream-v3 > > > > Cheers, I've done something similar. I was hoping to post it today, but I've > > been side-tracked with bug fixing this morning. The main headache I ended up > > with was allowing late-onlining of 64-bit-only CPUs if all the boot CPUs > > are 32-bit capable. What do you do in that case? > > Do you mean if CPUs 0-3 were 32bit capable and we boot with maxcpus=4 then > attempt to bring the remaining 64bit-only cpus online later? Right. I think we will refuse to online them. I'll post my attempt at handling that shortly. > Haven't tried that tbh. What symptoms do you expect to see? I can try it out. > I'm off for the remainder of the day, but can spend few mins to run an > experiment for sure. No probs; I've been taking Friday afternoons off to burn holiday anyway, so you didn't miss anything! Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel