Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1025470pxj; Fri, 21 May 2021 04:53:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB62Oa5TvSMoWRfsreOmG4j/MXSzZ/UMXvBghQ20Sf77SOE/hgZs5Pa3JkesOn2rhzHqw+ X-Received: by 2002:a17:906:5917:: with SMTP id h23mr9990396ejq.457.1621598019029; Fri, 21 May 2021 04:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621598019; cv=none; d=google.com; s=arc-20160816; b=yEEopUc8JygcTPb0lcZk2fht62FZbLe1mGkIOCohDOmX6Qgj9U1wwvP0fx8Nb1JgTD hF10isS3PNnQhZOC/Tpwn+WiE6N5dF17quNd1dryrUNMf+nwJswHPrZiECOkVGeFTR25 wIOE2XMhB5dzkpzlYKtRtjQi8sjYm0UT+Bfk2GzHQelfkiFCgRxgGy3by4JOZxPDiZE1 KFsjfVcOjSh9iyYSN2IFC979Mx4dybDKR0iiKV3rId7BL6MNbe4adtv+sAEySwtMv2SY NxvpoYwxRpx6FNfRWRzhtIgD4ngn9/BajfcOo1mGdjPrxRf5SDlLDLTDu14lO4yikUMR ms2Q== 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; bh=lovZSN/4R5T6RobN4xb4yh4MpBh+C1rWEKBT1wWgmRg=; b=eP2cJdkXqBrQFw2qaD2ys3CZ7n1jD8c6eOrPqEaqD1eUzyCufWB3+1zvj/HU0DpWwY NBrHQtV7Be7Ywg2fCfHMpIMio1lZO9pfiTZ+jUAkEXse2faKbqBgF6/2p2tXrk7OAiqr tpqW2WKS8DEJDuvDJDyqBSKy04tfqp+oPf+l6vrozHHOID1OKkBN8bQ0frYRUPJ6RpnB U4JkoXqm7ao9NcLtuHZ4lkYfUU1I6FAXuu+jGxyqiVM2mA7GxnGJtjQybocJA+/qHiYa 7tTQ8mjCleSxAalzu5ur1M5rSsbVw5ENyt4CmZsw9Mu0aV0pktD71AARSmuJczYX8W3k 0EDA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si5031348edv.23.2021.05.21.04.53.10; Fri, 21 May 2021 04:53:39 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbhEUK1E (ORCPT + 99 others); Fri, 21 May 2021 06:27:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:60196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233336AbhEUK0v (ORCPT ); Fri, 21 May 2021 06:26:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 427FE613CB; Fri, 21 May 2021 10:25:26 +0000 (UTC) Date: Fri, 21 May 2021 11:25:23 +0100 From: Catalin Marinas To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Qais Yousef , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Li Zefan , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , kernel-team@android.com Subject: Re: [PATCH v6 02/21] arm64: Allow mismatched 32-bit EL0 support Message-ID: <20210521102523.GB6675@arm.com> References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-3-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210518094725.7701-3-will@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 18, 2021 at 10:47:06AM +0100, Will Deacon wrote: > +static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope) > +{ > + if (!has_cpuid_feature(entry, scope)) > + return allow_mismatched_32bit_el0; > + > + if (scope == SCOPE_SYSTEM) > + pr_info("detected: 32-bit EL0 Support\n"); > + > + return true; > +} We may have discussed this before: AFAICT this will print 32-bit EL0 detected even if there's no 32-bit EL0 on any CPU. Should we instead print 32-bit EL0 detected on CPU X when allow_mismatched_32bit_el0 is passed? It would also give us an indication of the system configuration when people start reporting bugs. -- Catalin