From: Nicholas Piggin Date: Sun, 23 Jun 2019 13:42:59 +0000 Subject: Re: [PATCH 1/2] powerpc/64s: Rename PPC_INVALIDATE_ERAT to PPC_ARCH_300_INVALIDATE_ERAT Message-Id: <1561297021.pyb7y0yjt7.astroid@bobo.none> List-Id: References: <20190623104152.13173-1-npiggin@gmail.com> <20190623120332.GA7313@gate.crashing.org> In-Reply-To: <20190623120332.GA7313@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Segher Boessenkool Cc: linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org Segher Boessenkool's on June 23, 2019 10:03 pm: > On Sun, Jun 23, 2019 at 08:41:51PM +1000, Nicholas Piggin wrote: >> This makes it clear to the caller that it can only be used on POWER9 >> and later CPUs. > >> -#define PPC_INVALIDATE_ERAT PPC_SLBIA(7) >> +#define PPC_ARCH_300_INVALIDATE_ERAT PPC_SLBIA(7) > > The architecture version is 3.0 (or 3.0B), not "300". This will work on > implementations of later architecture versions as well, so maybe the name > isn't so great anyway? Yeah... this is kernel convention for better or worse. ISA v3.0B feature support is called CPU_FTR_ARCH_300, and later architectures will advertise that support. For the most part we can use architected features (incompatible changes would require additional code). Thanks, Nick