[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1411082804.12154.26.camel@ale.ozlabs.ibm.com>
Date: Fri, 19 Sep 2014 09:26:44 +1000
From: Michael Neuling <mikey@...ling.org>
To: Jeremy Kerr <jk@...abs.org>
Cc: greg@...ah.com, arnd@...db.de, mpe@...erman.id.au,
benh@...nel.crashing.org, anton@...ba.org,
linux-kernel@...r.kernel.org, linuxppc-dev@...abs.org,
imunsie@...ibm.com, cbe-oss-dev@...ts.ozlabs.org
Subject: Re: [PATCH 01/15] powerpc/cell: Move spu_handle_mm_fault() out of
cell platform
> > @@ -58,12 +56,12 @@ int spu_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
> > goto out_unlock;
> > }
> >
> > - is_write = dsisr & MFC_DSISR_ACCESS_PUT;
> > + is_write = dsisr & DSISR_ISSTORE;
> > if (is_write) {
> > if (!(vma->vm_flags & VM_WRITE))
> > goto out_unlock;
> > } else {
> > - if (dsisr & MFC_DSISR_ACCESS_DENIED)
> > + if (dsisr & DSISR_PROTFAULT)
> > goto out_unlock;
> > if (!(vma->vm_flags & (VM_READ | VM_EXEC)))
> > goto out_unlock;
>
> Consistent DSISR encodings? woot! :)
Yep!
arch/powerpc/include/asm/spu.h:605:#define MFC_DSISR_ACCESS_PUT (1 << 25)
arch/powerpc/include/asm/reg.h:255:#define DSISR_ISSTORE 0x02000000 /* access was a store */
and
arch/powerpc/include/asm/spu.h:603:#define MFC_DSISR_ACCESS_DENIED (1 << 27)
arch/powerpc/include/asm/reg.h:254:#define DSISR_PROTFAULT 0x08000000 /* protection fault */
Mikey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists