[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

[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

Re: [PATCH] powerpc/mm: Fix 40x and 8xx vs. _PAGE_SPECIAL

2009-09-23 Thread Weirich, Bernhard
:12 An: Weirich, Bernhard; Rex Feany Cc: linuxppc-dev list Betreff: [PATCH] powerpc/mm: Fix 40x and 8xx vs. _PAGE_SPECIAL The test to check whether we have _PAGE_SPECIAL defined is broken, since we always define it, just not always to a meaninful value :-) That broke 8xx and 40x under some

Re: enabling USB Host controller on ppc405ex based board

2009-12-20 Thread Weirich, Bernhard
If you enable PCI on 405EX you MUST have valid clock signals on the PCIE ports. If you do not have these on your board your kernel will hang just as you said. I do not know why PCI is required for the USB controller, if it is just for some software interfaces to be present then you can try to

msi / msix on PPC405EX?

2009-12-23 Thread Weirich, Bernhard
Hello, I am wondering whether msi / msix should work on PPC405EX. A call to pci_enable_msi returns: -38 / ENOSYS, function not implemented. Can someone tell me if I am missing out something or if msi is indeed not implemented on this platform? Thanks, Bernhard