Re: [v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-22 Thread Michael Ellerman
On Tue, 2018-12-11 at 22:40:53 UTC, Christophe Leroy wrote: > This patch implements CONFIG_DEBUG_VIRTUAL to warn about > incorrect use of virt_to_phys() and page_to_phys() > > Below is the result of test_debug_virtual: > > [1.438746] WARNING: CPU: 0 PID: 1 at ./arch/powerpc/include/asm/io.h:8

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-19 Thread Michael Ellerman
Christophe Leroy writes: > On 12/19/2018 06:57 AM, Christophe Leroy wrote: ... > > In fact the solution is the following: > > diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c > index 4fc77a99c9bf..60401af2bc8f 100644 > --- a/arch/powerpc/mm/pgtable_32.c > +++ b/arch/powerpc

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Christophe Leroy
On 12/19/2018 06:57 AM, Christophe Leroy wrote: Le 19/12/2018 à 01:26, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() This commit is breaking my p

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Christophe Leroy
Le 19/12/2018 à 01:26, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() This commit is breaking my p5020ds booting a 32-bit kernel with: smp: Bring

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Michael Ellerman
Michael Ellerman writes: > Christophe Leroy writes: > >> This patch implements CONFIG_DEBUG_VIRTUAL to warn about >> incorrect use of virt_to_phys() and page_to_phys() > > This commit is breaking my p5020ds booting a 32-bit kernel with: > > smp: Bringing up secondary CPUs ... > __ioremap(): p

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-18 Thread Michael Ellerman
Christophe Leroy writes: > This patch implements CONFIG_DEBUG_VIRTUAL to warn about > incorrect use of virt_to_phys() and page_to_phys() This commit is breaking my p5020ds booting a 32-bit kernel with: smp: Bringing up secondary CPUs ... __ioremap(): phys addr 0x7fef5000 is RAM lr ioremap_c

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-12 Thread Michael Ellerman
Christophe Leroy writes: > Le 12/12/2018 à 01:23, Michael Ellerman a écrit : >> Christophe Leroy writes: >> >>> This patch implements CONFIG_DEBUG_VIRTUAL to warn about >>> incorrect use of virt_to_phys() and page_to_phys() >>> >>> Below is the result of test_debug_virtual: >>> >>> [1.438746

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-11 Thread Christophe Leroy
Le 12/12/2018 à 01:23, Michael Ellerman a écrit : Christophe Leroy writes: This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() Below is the result of test_debug_virtual: [1.438746] WARNING: CPU: 0 PID: 1 at ./arch/powerpc/include

Re: [PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-11 Thread Michael Ellerman
Christophe Leroy writes: > This patch implements CONFIG_DEBUG_VIRTUAL to warn about > incorrect use of virt_to_phys() and page_to_phys() > > Below is the result of test_debug_virtual: > > [1.438746] WARNING: CPU: 0 PID: 1 at ./arch/powerpc/include/asm/io.h:808 > test_debug_virtual_init+0x3c/

[PATCH v3] powerpc: implement CONFIG_DEBUG_VIRTUAL

2018-12-11 Thread Christophe Leroy
This patch implements CONFIG_DEBUG_VIRTUAL to warn about incorrect use of virt_to_phys() and page_to_phys() Below is the result of test_debug_virtual: [1.438746] WARNING: CPU: 0 PID: 1 at ./arch/powerpc/include/asm/io.h:808 test_debug_virtual_init+0x3c/0xd4 [1.448156] CPU: 0 PID: 1 Comm: