From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Subject: Re: [PATCH 02/13] powerpc/64: Provide functions for accessing POWER9 partition table Date: Fri, 18 Nov 2016 19:57:30 +0530 Message-ID: <878tsgoobx.fsf@linux.vnet.ibm.com> References: <1479454122-26994-1-git-send-email-paulus@ozlabs.org> <1479454122-26994-3-git-send-email-paulus@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain To: Paul Mackerras , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@ozlabs.org Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56045 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753173AbcKROve (ORCPT ); Fri, 18 Nov 2016 09:51:34 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAIEmnjX091585 for ; Fri, 18 Nov 2016 09:51:33 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 26t2tuu0rr-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Nov 2016 09:51:33 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Nov 2016 09:51:32 -0500 In-Reply-To: <1479454122-26994-3-git-send-email-paulus@ozlabs.org> Sender: kvm-owner@vger.kernel.org List-ID: 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 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