From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CB6114A8B for ; Thu, 12 Jun 2025 06:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749710029; cv=none; b=Rgv8zUsywcgkYwxGqKhHyffE+q5Uk1Ivmu/glXXTGb0QS9Xa2adT8AogJS+TWxvGuTwdGSczi6EQIZR8exulVYfq9i2zlVmaFKlOHqtlqiq0YzJrM5eP2KYrrMX0a3jg0jZhX+u7i23fHQjsnXTYD8dS37NLvF+U0AoVjceqjWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749710029; c=relaxed/simple; bh=efaVr7x4DyfPYiYGhfU7gIrNkZWvEaUcvLN7XhkIyA4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=qba/Bf5WJtlA1VejZEAYzKPUJS0wtxcuM3CRY0BG9evRkCw3p/QgYjXalplFgEwiIC7RwV8tkD9/To5V1FBSvR78B4fygqXacRqfhO51skTz9qJPaSrKNuKcbBaeXAw7zuNmL96O+vuGEIvveiY+UeaI6gGTVmUR2PnAe34XttU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IkQX2ljS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IkQX2ljS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE244C4CEEA; Thu, 12 Jun 2025 06:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749710028; bh=efaVr7x4DyfPYiYGhfU7gIrNkZWvEaUcvLN7XhkIyA4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IkQX2ljSLK7qpNmxvKCm2f3cCS4vshkU+IKzyIJAxjA5bZgIlZssxZR43mje9/kKX cy1KCc3w5JiMRgWDJ/BLC+l6dC8eHsHwjslwXLr75+W0u5sRcp/LNp/w7awEFcy2U+ PfAeLQ2GgZOlFulpuBJqfHrZr0y7926RhJ21BqoETwJpaVKFI5JdKvF5qljSHl90t0 wlDSxcLsAOyRmMWNquJ8Gk94VzD7pCyTZbJk75nSrrUj9dE05IG+/DbdSfKIBk3lT9 MUrGCi2rjOXNCVidMHEodkkM4RiufSFT8IVOG58fTduTTZYD4X1PEEBRGYGDtTrn7S pLhYwY+h9qDDw== Received: from 91-161-240-24.subs.proxad.net ([91.161.240.24] helo=lobster-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 1uPbVS-0068PW-Bv; Thu, 12 Jun 2025 07:33:46 +0100 Date: Thu, 12 Jun 2025 07:33:46 +0100 Message-ID: <87ikl1foz9.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: References: <20250611104916.10636-1-yeoreum.yun@arm.com> <20250611104916.10636-3-yeoreum.yun@arm.com> <86zfeecnog.wl-maz@kernel.org> 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 91.161.240.24 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 On Wed, 11 Jun 2025 18:54:50 +0100, Yeoreum Yun wrote: > > Hi Marc, > > > 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, > > Okay. But here with comment or Is any other suggested place for > this? The help section in the Kconfig option you are introducing would be a good start. Thanks, M. -- Jazz isn't dead. It just smells funny.