From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qqZ0V19RczDq68 for ; Wed, 20 Apr 2016 17:54:34 +1000 (AEST) Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Apr 2016 17:54:32 +1000 Received: from d23relay06.au.ibm.com (d23relay06.au.ibm.com [9.185.63.219]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id D52012BB0066 for ; Wed, 20 Apr 2016 17:54:24 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u3K7sAVR4981162 for ; Wed, 20 Apr 2016 17:54:24 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u3K7rhhV004585 for ; Wed, 20 Apr 2016 17:53:43 +1000 From: "Aneesh Kumar K.V" To: Michael Ellerman , benh@kernel.crashing.org, paulus@samba.org Cc: linuxppc-dev@lists.ozlabs.org, Frederic Barrat , Andrew Donnellan Subject: Re: [PATCH V2 01/68] powerpc/cxl: Use REGION_ID instead of opencoding In-Reply-To: <1461121434.13404.1.camel@ellerman.id.au> References: <1460182444-2468-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1460182444-2468-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <87mvoy9ql8.fsf@skywalker.in.ibm.com> <1461121434.13404.1.camel@ellerman.id.au> Date: Wed, 20 Apr 2016 03:53:21 -0400 Message-ID: <87shyg3edq.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Michael Ellerman writes: > On Wed, 2016-04-13 at 08:12 +0530, Aneesh Kumar K.V wrote: >> "Aneesh Kumar K.V" writes: >> > Also note that the `~` operation is wrong. >> > >> > Cc: Frederic Barrat >> > Cc: Andrew Donnellan >> > Acked-by: Ian Munsie >> > Signed-off-by: Aneesh Kumar K.V >> > --- >> > drivers/misc/cxl/fault.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/drivers/misc/cxl/fault.c b/drivers/misc/cxl/fault.c >> > index 9a8650bcb042..9a236543da23 100644 >> > --- a/drivers/misc/cxl/fault.c >> > +++ b/drivers/misc/cxl/fault.c >> > @@ -152,7 +152,7 @@ static void cxl_handle_page_fault(struct cxl_context *ctx, >> > access = _PAGE_PRESENT; >> > if (dsisr & CXL_PSL_DSISR_An_S) >> > access |= _PAGE_RW; >> > - if ((!ctx->kernel) || ~(dar & (1ULL << 63))) >> > + if ((!ctx->kernel) || (REGION_ID(dar) == USER_REGION_ID)) >> > access |= _PAGE_USER; >> > >> > if (dsisr & DSISR_NOHPTE) >> >> Posted an updated version of this patch alone with improved commit >> message here >> >> http://mid.gmane.org/1460482475-20782-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com > > I never saw it. And that link is empty? > Interesting . I will send this again. -aneesh