Re: [PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Benjamin Herrenschmidt
On Tue, 2009-09-22 at 20:07 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2009-09-22 at 11:29 +0200, Weirich, Bernhard wrote: > > Hello, > > > > I found the cause of the problem. > > My architecture does not define the _PAGE_SPECIAL macro, thus in > > pte-common.h line 32, it is defined as 0 > >

Re: [PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Benjamin Herrenschmidt
On Tue, 2009-09-22 at 11:29 +0200, Weirich, Bernhard wrote: > Hello, > > I found the cause of the problem. > My architecture does not define the _PAGE_SPECIAL macro, thus in pte-common.h > line 32, it is defined as 0 > And then in line 180, since _PAGE_SPECIAL is defined, the macro > __HAVE_ARCH

[405EX] Bad page map in process ...

2009-09-22 Thread Weirich, Bernhard
Hello, I use mmap to map an IO address space to user space on a PPC405EX processor. till kernel 2.6.29 this worked without problems, since 2.6.30. I get intimidating error messages when I do the unmap, mmap works fine, though. BUG: Bad page map in process deviceDaemon pte:ffe3b45e pmd:0f11a400

[PATCH] Re: [405EX] Bad page map in process ...

2009-09-22 Thread Weirich, Bernhard
Hello, I found the cause of the problem. My architecture does not define the _PAGE_SPECIAL macro, thus in pte-common.h line 32, it is defined as 0 And then in line 180, since _PAGE_SPECIAL is defined, the macro __HAVE_ARCH_PTE_SPECIAL is erroneously defined. This makes any ppc architecture to ac