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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA899CE7A94 for ; Mon, 25 Sep 2023 13:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aMIjFKMjuCqd9cOKG+v/SnFUitug3/p1VEbeBhxEJSU=; b=0tEF1AsQl1f1nR ICZ/hc15rE6e9rL/Iupp0MqyNKNBtmdI+prLDprCr/vckDSkdpFFuBEQsQfC8mmNQ1aYdeep4cuUR I7z/mk7ldGwBWHgoUkGJwAJFHn4mPgdkAvBt0o9aEcBxRNocDjpl9ZKvcEDXsodBZHo6xENz63xqH ngQ7bdys3DzJMb/cgymTQNevXCVO9Txx04T1GV1Y011/PI8DJiWEgGTuf7ivA85MsVrEkidRWXLCS WbbVIgZFBcfzv3t6lotjjkgBgwL2tbIyCes8THHkfWFSOxQtpjw3Ixr08x8s16vOjB5eYSMiVx3+2 iJV/UJZ9o4TcnX3PpIzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qklH8-00EIG7-1t; Mon, 25 Sep 2023 13:05:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qklH4-00EIE5-2M for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 13:05:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5753CDA7; Mon, 25 Sep 2023 06:05:45 -0700 (PDT) Received: from [192.168.4.86] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0CDE43F5A1; Mon, 25 Sep 2023 06:05:04 -0700 (PDT) Message-ID: <349a81f2-c439-e115-45b0-3b73e388961d@arm.com> Date: Mon, 25 Sep 2023 14:04:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 06/37] arm64: Rework setup_cpu_features() To: Mark Rutland , linux-arm-kernel@lists.infradead.org Cc: ardb@kernel.org, bertrand.marquis@arm.com, boris.ostrovsky@oracle.com, broonie@kernel.org, catalin.marinas@arm.com, daniel.lezcano@linaro.org, james.morse@arm.com, jgross@suse.com, maz@kernel.org, oliver.upton@linux.dev, pcc@google.com, sstabellini@kernel.org, tglx@linutronix.de, vladimir.murzin@arm.com, will@kernel.org References: <20230919092850.1940729-1-mark.rutland@arm.com> <20230919092850.1940729-7-mark.rutland@arm.com> From: Suzuki K Poulose In-Reply-To: <20230919092850.1940729-7-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_060518_833479_B3BB7264 X-CRM114-Status: GOOD ( 17.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 19/09/2023 10:28, Mark Rutland wrote: > Currently setup_cpu_features() handles a mixture of one-time kernel > feature setup (e.g. cpucaps) and one-time user feature setup (e.g. ELF > hwcaps). Subsequent patches will rework other one-time setup and expand > the logic currently in setup_cpu_features(), and in preparation for this > it would be helpful to split the kernel and user setup into separate > functions. > > This patch splits setup_user_features() out of setup_cpu_features(), > with a few additional cleanups of note: > > * setup_cpu_features() is renamed to setup_system_features() to make it > clear that it handles system-wide feature setup rather than cpu-local > feature setup. > > * setup_system_capabilities() is folded into setup_system_features(). > > * Presence of TTBR0 pan is logged immediately after > update_cpu_capabilities(), so that this is guaranteed to appear > alongside all the other detected system cpucaps. > > * The 'cwg' variable is removed as its value is only consumed once and > it's simpler to use cache_type_cwg() directly without assigning its > return value to a variable. > > * The call to setup_user_features() is moved after alternatives are > patched, which will allow user feature setup code to depend on > alternative branches and allow for simplifications in subsequent > patches. > > Signed-off-by: Mark Rutland > Cc: Catalin Marinas > Cc: Marc Zyngier > Cc: Mark Brown > Cc: Suzuki K Poulose > Cc: Will Deacon > --- Reviewed-by: Suzuki K Poulose _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel