linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
	linuxppc-dev@lists.ozlabs.org
Cc: Michael Neuling <michael.neuling@au1.ibm.com>
Subject: Re: [PATCH] powerpc: Hande page faults for bad paste and bad AMO
Date: Wed, 12 Jul 2017 16:46:04 +1000	[thread overview]
Message-ID: <1499841964.2865.37.camel@kernel.crashing.org> (raw)
In-Reply-To: <8760eyqjb8.fsf@skywalker.in.ibm.com>

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.

      reply	other threads:[~2017-07-12  6:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12  3:26 [PATCH] powerpc: Hande page faults for bad paste and bad AMO Benjamin Herrenschmidt
2017-07-12  6:07 ` Aneesh Kumar K.V
2017-07-12  6:46   ` Benjamin Herrenschmidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499841964.2865.37.camel@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=michael.neuling@au1.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).