Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1461522lqh; Mon, 6 May 2024 08:21:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYMSzR3QopK1l2eSYcy6JmtPdVu4LEOfvRQdBiatJyyB9BTRXDTjZzqQisYVaHNkTeyZBqLw1rSPkpEzEcLpjLg+gs0J6gU7ghgzbRtw== X-Google-Smtp-Source: AGHT+IHA+ZPAm9hF0e4bWHCSieROlrDZnD75QCKhsVLTUHV3S96oGiABggkC+kNZw+77vLNQGVU0 X-Received: by 2002:a05:6a20:3948:b0:1a8:2cd1:e493 with SMTP id r8-20020a056a20394800b001a82cd1e493mr13823713pzg.29.1715008880599; Mon, 06 May 2024 08:21:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715008880; cv=pass; d=google.com; s=arc-20160816; b=fb/t4upsrlSV0GkXZ2F30Dxab7V2gFHaxPlUu9zfRy2L5inZ8QzJ2PGXynlOgRFy3U 4m/9qalPViHunERDdlkxpEHa7uhluwvmwEkXQ5WI6GxSqmJrKPhsd9YeUeq/dhVoITE6 34ZMGBC/6IfyxThVM3Sx/Z4U1sIqEpZ00j3vw1yO3S+0TzQXVkoc9NhP7a3fHlXwE2ez dS/92d9Kq3E827TL04eOUHmwF5y9lUsaaZN/+JkiiFZw2YsJJhIc9ElLFJ3etGxvjko1 z0040SVSWBQhN/RnPOpEtwdrCwjqbPCd9cueHBh/TUabKyNDxmHwLuTFStol2Ano8ZTm jxDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+x5NScStLxD7VCBQ0fLQz037+EYag+ygLt9buphwR/Q=; fh=3R3OTyYcbFRloN2FLRGRQDJrB00irOsf5T1LKke1dlQ=; b=RdsBB4e98/Xr9mkoSYfxY5sH/maDV9wQuV+4xk5DIMo6ibiLkvYtATk9rZtiwB6bWf OVJ2VzizSmOc85FwJGTm2CiCLB/LICNn6xDOqw8mEYBkXyN8/PMmoFj7Jb34FRelkXeS UtgxakzvYeAEN3TpBNc/Qx6dKQd2XN021OJMgK194GH6aiz2yTwAKD77zLLCzDQl62v8 4WNF+6iLBWFxfZrjyo2UsLes1f6AxEnrg6z2I2ye3WJBq50haGsJndG+S0tBN8ojpoM4 6J85AFw3B1kzo3eey0zI7h5giB0BBlZgn2PUO3wGnk1PGDhvCL7wBIf766Lt3R+YCikp 8X7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ufvq1GjI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ca11-20020a056a02068b00b005f7fef696c5si8987517pgb.39.2024.05.06.08.21.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ufvq1GjI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DA8E6285937 for ; Mon, 6 May 2024 15:15:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 908AC15535D; Mon, 6 May 2024 15:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ufvq1GjI" 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 B8B0715359F; Mon, 6 May 2024 15:15:09 +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=1715008510; cv=none; b=BeTor4kjNmR79nTCj1wfM1IS34qeA2egLD1cxh02iieAhZUGZq0qFhPJ98K5aV2mCxedDhtoEc3cFTiyB3XVuarmJ2iGJmglGmRl3Pv0rngtBYs8TvfGZg35gQhQPy8AVG2zgx0Wa39Zzxq9RaJ3e1iPg95Yuz/3GC4neN61FW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715008510; c=relaxed/simple; bh=V20s/rP9kfnfxqn8asOQLUse8pw4bK5bvZGq8XmE+YE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Js1mogdzLZILfz2H//oX1ZPOjX6uEKT6aTUB0EA4F/Z4dWzPQ2cgvsIkQooWKBsQ1u3SI1Tk0EipWvX8u6IwyxncNjlvThHAloFsBMwGcgj84K2f5vVU5WiScODJd5+tOVGKu535vZ8nxmcJHX46KWgDmib1oZcmlZ11EUAhr3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ufvq1GjI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2A3BC116B1; Mon, 6 May 2024 15:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715008509; bh=V20s/rP9kfnfxqn8asOQLUse8pw4bK5bvZGq8XmE+YE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ufvq1GjIm0JtpeREOOUMIhIxkcw/9k0sQTGIfqjN5iXg29RcGDLytn91LLxkXBFzy iepohAi7JG77XjUBMSpVRbS/38XJwhteYmxHVy/TBX22ZhydD1CY5+JrXDCUKYww/M 57s4RqD+wKI2J4Iq/SxpfGSUuJHNOB6ITluWBYWPK7B+OhMpV/exZV5nQnDJfhwrB5 DJhxOmvw/SCV7rECgHYbof6u/6T2TphqPS5IQ+uihHvRbamhZs2tDlArmkKObto2bi iFlo7U8lEnWMAFjfOecnzsZgFbTfRGrvxG3o1q+uiNCfv/fPusLAYQ3bLpS6phE6fO BU6msL19Awk5w== Date: Tue, 7 May 2024 00:15:06 +0900 From: Mark Brown To: Mark Rutland Cc: Liao Chang , catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, tglx@linutronix.de, ardb@kernel.org, anshuman.khandual@arm.com, miguel.luis@oracle.com, joey.gouly@arm.com, ryan.roberts@arm.com, jeremy.linton@arm.com, ericchancf@google.com, kristina.martsenko@arm.com, robh@kernel.org, scott@os.amperecomputing.com, songshuaishuai@tinylab.org, shijie@os.amperecomputing.com, akpm@linux-foundation.org, bhe@redhat.com, horms@kernel.org, mhiramat@kernel.org, rmk+kernel@armlinux.org.uk, shahuang@redhat.com, takakura@valinux.co.jp, dianders@chromium.org, swboyd@chromium.org, sumit.garg@linaro.org, frederic@kernel.org, reijiw@google.com, akihiko.odaki@daynix.com, ruanjinjie@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v3 1/8] arm64/sysreg: Add definitions for immediate versions of MSR ALLINT Message-ID: References: <20240415064758.3250209-1-liaochang1@huawei.com> <20240415064758.3250209-2-liaochang1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AJCRMQbglmQeiqgZ" Content-Disposition: inline In-Reply-To: X-Cookie: lisp, v.: --AJCRMQbglmQeiqgZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 03, 2024 at 05:00:49PM +0100, Mark Rutland wrote: > On Mon, Apr 15, 2024 at 06:47:51AM +0000, Liao Chang wrote: > +#define PSTATE_ALLINT pstate_field(1, 0) > +#define set_pstate_allint(x) asm volatile(SET_PSTATE_ALLINT(x)) Hrm, those helpers are not ideally discoverable, partly due to the system register description for ALLINT not providing any references to this being a general scheme (which is fixable there) and partly due to the use of __emit_inst() with a numeric literal - we should probably add a comment next to the __emit_inst() saying what instruction we are emitting. --AJCRMQbglmQeiqgZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmY48/kACgkQJNaLcl1U h9DFDgf9Fgw5UkzUrclx6ZUwslgWzoPOBx1IoBt1ouEpv32VHyFUSbHDNh0ajstZ 1tKqFwGNCSdXpfE09if2stHiiPfY8yxj9O2j+dibQVxKtxmS0RuoApWX/TzEv7Wy 1ERNBrIbdi3rDAZBRnLmnFw8pSwlDz+asThIgwBPmyW7HfPVZeuU+l7b/V24aTwg 4YGmRsYUG6f/oTl8DUmQwdAIwLfJrleBpli38lHUWAtnsPtv/d8SoyrG39CqoCIj Cx9TXVNB9Vfd6H19q8DF9R3kqadtH5tINEcqLzea3Bh+ccikUa6wow0k5wEgRPVc 40WlPAXdINuZ4vKrXG00G8so0yfCSQ== =4fOc -----END PGP SIGNATURE----- --AJCRMQbglmQeiqgZ--