From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Date: Fri, 18 Nov 2016 14:39:30 +0000 Subject: Re: [PATCH 02/13] powerpc/64: Provide functions for accessing POWER9 partition table Message-Id: <878tsgoobx.fsf@linux.vnet.ibm.com> List-Id: References: <1479454122-26994-1-git-send-email-paulus@ozlabs.org> <1479454122-26994-3-git-send-email-paulus@ozlabs.org> In-Reply-To: <1479454122-26994-3-git-send-email-paulus@ozlabs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Paul Mackerras , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@ozlabs.org Paul Mackerras writes: + > + /* Global flush of TLBs and partition table caches for this lpid */ > + asm volatile("ptesync"); > + asm volatile(PPC_TLBIE_5(%0,%1,2,0,0) : : "r"(0x800), "r" (lpid)); > + asm volatile("eieio; tlbsync; ptesync" : : : "memory"); > +} It would be nice to convert that 0x800 to a documented IS value or better use radix__flush_tlb_pid() ? -aneesh