Re: [PATCH v2] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-03-26 Thread Thomas Bogendoerfer
On Fri, Mar 26, 2021 at 10:45:39AM -0700, Florian Fainelli wrote: > > > On 3/25/2021 2:57 AM, Thomas Bogendoerfer wrote: > > On Tue, Mar 23, 2021 at 03:20:43PM -0700, Florian Fainelli wrote: > >> Provide hooks to intercept bad usages of virt_to_phys() and > >> __pa_symbol() throughout the kernel.

Re: [PATCH v2] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-03-26 Thread Florian Fainelli
On 3/25/2021 2:57 AM, Thomas Bogendoerfer wrote: > On Tue, Mar 23, 2021 at 03:20:43PM -0700, Florian Fainelli wrote: >> Provide hooks to intercept bad usages of virt_to_phys() and >> __pa_symbol() throughout the kernel. To make this possible, we need to >> rename the current implement of virt_to

Re: [PATCH v2] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-03-25 Thread Thomas Bogendoerfer
On Tue, Mar 23, 2021 at 03:20:43PM -0700, Florian Fainelli wrote: > Provide hooks to intercept bad usages of virt_to_phys() and > __pa_symbol() throughout the kernel. To make this possible, we need to > rename the current implement of virt_to_phys() into > __virt_to_phys_nodebug() and wrap it aroun

[PATCH v2] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-03-23 Thread Florian Fainelli
Provide hooks to intercept bad usages of virt_to_phys() and __pa_symbol() throughout the kernel. To make this possible, we need to rename the current implement of virt_to_phys() into __virt_to_phys_nodebug() and wrap it around depending on CONFIG_DEBUG_VIRTUAL. A similar thing is needed for __pa_s