From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3x6qH15TPpzDqgR for ; Wed, 12 Jul 2017 16:46:21 +1000 (AEST) Message-ID: <1499841964.2865.37.camel@kernel.crashing.org> Subject: Re: [PATCH] powerpc: Hande page faults for bad paste and bad AMO From: Benjamin Herrenschmidt To: "Aneesh Kumar K.V" , linuxppc-dev@lists.ozlabs.org Cc: Michael Neuling Date: Wed, 12 Jul 2017 16:46:04 +1000 In-Reply-To: <8760eyqjb8.fsf@skywalker.in.ibm.com> References: <1499830007.2865.36.camel@kernel.crashing.org> <8760eyqjb8.fsf@skywalker.in.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2017-07-12 at 11:37 +0530, Aneesh Kumar K.V wrote: > > So we need to test those errors early in do_page_fault(), > > I chose to generate a SIGBUS which is more correct than a SIGSEGV. > > This is true even for hash right ? If so do we want to update > do_hash_page: > #ifdef CONFIG_PPC_STD_MMU_64 >         andis.  r0,r4,0xa450            /* weird error? */ >         bne-    handle_page_fault       /* if not, try to insert a HPTE */ > > that 0xa450 such that we add these errors and call hand_page_fault in > case of these DSISR values ? Correct, I forgot about that one. I'll respin. Cheers, Ben.