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 9B867C71134 for ; Wed, 11 Jun 2025 19:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Jrd9QXSZWCyQwXv9zSmqc2wgV05Rvz5Za4jhvzdLVWE=; b=CVL3cbd1YdmJDKjSQCcf+depAE 9zJ01U917E3OIzFxMBzXubSwWggMuQcv326ONHd1Plx6ynZQMf86RZqRXahY45vHEbmOZB9dFm+Fo LHGKG5RRon0bbWS2ZnAo2OcgVXmTX7Ml2PjOsZd0zN/cuKmqp6t8k/a+LW+IoFFDHX6fArOOkFw8J jiBkPhNg5ko6jms4tcF24JxDf6OwlSwYhwl84DVV9KNOAwmEKhoMaXKw48AwUW+ZUwdJ/fQRYGfVz Z/eMGb9BNgA/lH0eCMzUJJFvOBNjcAH/BKE4EXLOUXkwD9mCCGRB4yJwuXS/FLDvRsLivPg8V5njW GNajtYIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPRX2-0000000B2AN-1f16; Wed, 11 Jun 2025 19:54:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPNDE-0000000AMQl-2hib for linux-arm-kernel@bombadil.infradead.org; Wed, 11 Jun 2025 15:18:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Jrd9QXSZWCyQwXv9zSmqc2wgV05Rvz5Za4jhvzdLVWE=; b=cAWmeiC/GjINdkRX4rhshqgPS6 ZQTW3FKkz2KVO0q7rMYQd5Cbh2yx7De3lwuoZ273EGGOOeGD4MJgIJLJEp5nDsDz/ZVARPUBt83fE ictqW30m2xSYL15XJ7oGfGyw+FPX3H0yRQ+XSwnex5GJC/cRoxYnEfGMMYuDpZ65so6IsxDZyzqic z+gZdGqZsz8YxQ5T5/8Sv1+dBoRcc+XAmaVRTXrKjcJX+q1e3Dt0kzrlBO+IAu+2iJDvbI/8jOsEF /Sjzw9fp/086FNR4u+XHs+eFja6m9a0chuMxrafkyp7cU1MLyJ+AL7t7RG+YE5L4yqpQB0va3Xd0u F8k/2EnA==; Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPNDC-00000002QHe-1LCb for linux-arm-kernel@lists.infradead.org; Wed, 11 Jun 2025 15:18:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9D2BDA518E8; Wed, 11 Jun 2025 15:17:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 439ACC4CEE3; Wed, 11 Jun 2025 15:17:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749655074; bh=pISuPZ/rLeO+ucFOnpV+865WIgZW7FO2QJjKNsuPTpw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cJ00GAqdTybtpxiodt7b5cCHV/9IOOSav4xq9+UClyaszbGGPQgzJ7Fw0h3SeDvVN N1ty/zQ5g2l4Do0DvX6a1j+sV+eujAdc5yz3TX3oLMGuTIrFFsS1sL5ncO6ffHEGgD 5EBZTHIeviD+mJP5xyDQV3rwpUYgsTy6NpQ0soiR/BBbqxMDz4i+jfd5zI/Dw5bTxq 8fsLn9Xu/g7mwhr4Jg1sPpQJrDlSQnQE7Tu7xFvGRkapsirr7vHl2sKWXK76DXIRbo ZwYEvrNWDGZfYTnIeh8AOsILBuLm2z1AMY08Qq1TRGDe9IKGpcYpmkWSk6G7lHZrPV gq6qNn/CQHb7Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uPND5-005uoG-PL; Wed, 11 Jun 2025 16:17:51 +0100 Date: Wed, 11 Jun 2025 16:17:51 +0100 Message-ID: <86zfeecnog.wl-maz@kernel.org> From: Marc Zyngier To: Yeoreum Yun Cc: catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, oliver.upton@linux.dev, ardb@kernel.org, frederic@kernel.org, james.morse@arm.com, joey.gouly@arm.com, scott@os.amperecomputing.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] arm64/Kconfig: add LSUI Kconfig In-Reply-To: <20250611104916.10636-3-yeoreum.yun@arm.com> References: <20250611104916.10636-1-yeoreum.yun@arm.com> <20250611104916.10636-3-yeoreum.yun@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: yeoreum.yun@arm.com, catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, oliver.upton@linux.dev, ardb@kernel.org, frederic@kernel.org, james.morse@arm.com, joey.gouly@arm.com, scott@os.amperecomputing.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250611_161758_489108_C7E00D83 X-CRM114-Status: GOOD ( 19.53 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 11 Jun 2025 11:49:12 +0100, Yeoreum Yun wrote: > > Since Armv9.6, FEAT_LSUI supplies the load/store instructions for > previleged level to access to access user memory without clearing > PSTATE.PAN bit. > It's enough to add CONFIG_AS_HAS_LSUI only because the code for LUSI uses > indiviual `.arch_extension` entries. > > Signed-off-by: Yeoreum Yun > --- > arch/arm64/Kconfig | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 55fc331af337..20f360eef2ac 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -2237,6 +2237,13 @@ config ARM64_GCS > > endmenu # "v9.4 architectural features" > > +menu "v9.6 architectural features" > + > +config AS_HAS_LSUI > + def_bool $(as-instr,.arch_extension lsui) > + > +endmenu # "v9.6 architectural features" > + > config ARM64_SVE > bool "ARM Scalable Vector Extension support" > default y > @@ -2498,4 +2505,3 @@ endmenu # "CPU Power Management" > source "drivers/acpi/Kconfig" > > source "arch/arm64/kvm/Kconfig" > - Can you please document what toolchain versions have support for this? Thanks, M. -- Without deviation from the norm, progress is not possible.