Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp104629lqb; Tue, 4 Jun 2024 06:29:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0vnuiN4SmmHZ/ikJ8Su8tKjsuUAmEMiZCo83op6ygxGQA54cumQMQH6q8OrQGkMywvAU6mS9fQR5Rl58iy6ZqiHgqQndGxgIhOkYMuQ== X-Google-Smtp-Source: AGHT+IELtIc0GP5avI0+9WqWKBq/X9TWdUhV/aF9XtEsfPnSAL/zdRjcMshP1neG/Gr3yJF4Id6f X-Received: by 2002:a05:622a:cb:b0:43e:2639:a987 with SMTP id d75a77b69052e-43ff54cc00dmr107649531cf.59.1717507796590; Tue, 04 Jun 2024 06:29:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717507796; cv=pass; d=google.com; s=arc-20160816; b=O6724xpQudJUTuamatCH7yuYkig+Y2YZ7bslMj8A/f95LiQMTwUkt2l569UjENaO+g nZpLpJ88lYtGc3aNFwxrHpDp/p3/ytmJvHcOdF/T6giOrcFWTaVhy81lHxZ4mcf9p7Em Xsyoh9fdgkCHGH45SC7QTRaPrOoXowZQdV2lIQI1A+L1nGAvc79sCbxk9mY73QSAYgxT tWAx0WzHTzXNdffjgd8GuGa6Aq5B8wTtfAinPPw7KF0bUvXJa5dK/UTYDPAUIhKFodsU SWiSCZCGqw3LLkpZU5jd071hR5m/LlXpEdgNyarTangO3kfIHJiW5Sx8Fx9YpIbJ3uFy v7nA== 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=kuNpMoHaU52JUya8xREkZ9f0BodEBFoqQg6o0Or3Y6g=; fh=nHfJxgN3S/zlwy4WQwg+e7/tqHMZpSLO77xe7C2R6mU=; b=Z97QjQZbjBEJtg3Nj0kFWRQs1sk0m3Edv4WeIjVLsm3+GgvA62CGO/WPiyxquGFW5p GZGxykEckBIPQJio3Wjxu3imQ910RvFevvxpKb19CP5GosOahL9fDBLQ9wq/+2lEx/Ih y+9H64dSDAP+CT49MUBqQJIw6jQNu2rMggv4XY+k9LIf6Qn/PauVA6ZgSTgHrQ1d70+o 4TOdsNxcHUFvu/hKv2g5mrH6bj8HFt+yQ36Tr7prYzYn8pN02MI/A7RF2MAI+LwevTcd 7u9nLTXVzXzjcGINy6Vk+EJa+P5D4dvXlmoqQXu8Dgl5KRD8LtLhvqiTvBFe7lUIriQO MzbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nagjyk6R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff259e252si104452331cf.655.2024.06.04.06.29.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nagjyk6R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200708-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 437C51C20E9A for ; Tue, 4 Jun 2024 13:29:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 873B4146D4C; Tue, 4 Jun 2024 13:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Nagjyk6R" 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 AB9AD146A7B; Tue, 4 Jun 2024 13:29:52 +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=1717507792; cv=none; b=I6BQHs3/f7bekMoZCCbcy5GN0/VqNf0zXK0jJdD0TijMDjVpfq4mQgi7xX5NqBMf+FcKG/F3V7oAjh0zKKex3FrWzeDv+9KgwJEmYshBcR/m0OxuSv9zx1VfZa17NDEUgptNHgTTEmphyfX3QuZguhs4zXsa4i957XKZTvYa8zE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717507792; c=relaxed/simple; bh=kWuUiBdpKjrsYecHnVEphiWORJ/qDun3q6DFFXNPjd0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TRPIQKQGjy/f8vCimU2VZ7RejCuowRZRKp+iF/5guxp8mE6zceectjwBvDSPNw5yiwPnV1uDLYF52iMMJEQO8i1kRw3kuarITfZnGL52zzzvLwx6CoYjIBUjp4TNQoLY+2d238v4vqrTv0tPQEYz+INK/FgZQ/HUmBH41gCXJOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nagjyk6R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE0D6C2BBFC; Tue, 4 Jun 2024 13:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717507792; bh=kWuUiBdpKjrsYecHnVEphiWORJ/qDun3q6DFFXNPjd0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nagjyk6Rht8Nm8CXtzbcn9K3Bg8znS5b2z5cHpwGFaOPtrmHPT98FDQxVhbDyLaCi uhUQXoEoJ6qGRWcWikbSr/bMCUtzhvuLW1JOYnIJv9TubetjRujzFfoa30XT9VsyIt fHA2R6YYiWvOLAQviiapfSkhY2MBEBPpUU3J1JfQiWKdckYoEQQoqNcc71j1a+Embz xHf8jmpJbqg9VWkX/WoY/wrg05/7T+T9gj9/jmdUkRgyCSHKWAOFAQEkZXrzLUTZDw IWi0PeH9KDF5Y6egJsYcKU4+yGnjzobrOn9MVbv4Iv7xTJ5RAvTtab/X9VGUvXiQQy 8aUUjqqWRYcZw== Date: Tue, 4 Jun 2024 14:29:41 +0100 From: Mark Brown To: "Liao, Chang" Cc: Mark Rutland , 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: <9868a5ac-ae23-4481-afe6-ba3cd8dbfa47@sirena.org.uk> 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="kZyx21bZX9W6NfCv" Content-Disposition: inline In-Reply-To: X-Cookie: Is it clean in other dimensions? --kZyx21bZX9W6NfCv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 03, 2024 at 11:26:39AM +0800, Liao, Chang wrote: > Mark, Is your concern is that the series of pstate related macro name in > sysregs.h are lack of self-explanatory nature, which make it diffuclt to > understand their functionality and purpose? If so, I daft some alternative > macro names in the code below, looking forward to your feedback, or if you > have any proposal for making these helpers discoverable. ... > -#define SET_PSTATE(x, r) __emit_inst(0xd500401f | PSTATE_ ## r | ((!!x) << PSTATE_Imm_shift)) > +#define MSR_PSTATE_ENCODE(x, r) __emit_inst(0xd500401f | PSTATE_ ## r | ((!!x) << PSTATE_Imm_shift)) Possibly, yes? TBH I was thinking of a comment but that does have "MSR" in it so might come up in greps. Not sure what others would prefer. --kZyx21bZX9W6NfCv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZfFsUACgkQJNaLcl1U h9DBTAf/QbAdz0gZPoB6cZv3uCTSDvYO1cYiTX9u5Ejd4CgUJCcfU6JhTZi9lL01 Vrn3Nd5SlPmKVrPWMb6HMbvC/GNW6Nc0gE196nDRdaMz6o29RD0B5j+BPWiQ99Ia MEXAs+lQD/nbf9JhLqto1ANTrc0Mf8gfWmFTt/MzoKJ7Ourujm6X//Tc8VxH3sdU nNEPqG9/rA0b+pjIrmAFmdglZyrsr6z79A7gYvBsaf525R95FiFOv8xh3uAHNpKj 37MUhZ7YmJXCe/Ljy+MEUcrO/8+uljx7PWtBuROurQLnitvVF5eTLzunON9mkhmx IEOifj6i0UEzDv2QKT948bHcgn+kNA== =aRgu -----END PGP SIGNATURE----- --kZyx21bZX9W6NfCv--