Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wJQSR6nbDzDqBJ for ; Thu, 4 May 2017 16:42:31 +1000 (AEST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v446ctg6071478 for ; Thu, 4 May 2017 02:42:23 -0400 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 2a7vsq5m8v-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 04 May 2017 02:42:23 -0400 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 May 2017 16:42:20 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v446g7NV65273980 for ; Thu, 4 May 2017 16:42:15 +1000 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v446ff79026679 for ; Thu, 4 May 2017 16:41:42 +1000 From: "Aneesh Kumar K.V" To: Frederic Barrat , alistair@popple.id.au, bsingharora@gmail.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Subject: Re: [RFC 1/2] powerpc/mm: Add marker for contexts requiring global TLB invalidations In-Reply-To: <20170503142906.29220-2-fbarrat@linux.vnet.ibm.com> References: <20170503142906.29220-1-fbarrat@linux.vnet.ibm.com> <20170503142906.29220-2-fbarrat@linux.vnet.ibm.com> Date: Thu, 04 May 2017 12:11:17 +0530 MIME-Version: 1.0 Content-Type: text/plain Message-Id: <87inlhp1iq.fsf@skywalker.in.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Frederic Barrat writes: > Introduce a new 'flags' attribute per context and define its first bit > to be a marker requiring all TLBIs for that context to be broadcasted > globally. Once that marker is set on a context, it cannot be removed. > > Such a marker is useful for memory contexts used by devices behind the > NPU and CAPP/PSL. The NPU and the PSL keep their own > translation cache so they need to see all the TLBIs for those > contexts. Can we also switch existing cxl_ctx_in_use() to this ? -aneesh