Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Laura Abbott
On 02/05/2016 06:20 AM, Mark Rutland wrote: On Thu, Feb 04, 2016 at 11:43:36AM -0800, Laura Abbott wrote: ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings at ru

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Mark Rutland
On Thu, Feb 04, 2016 at 11:43:36AM -0800, Laura Abbott wrote: > > ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap > pages for debugging purposes. This requires memory be mapped > with PAGE_SIZE mappings since breaking down larger mappings > at runtime will lead to TLB conflicts. Che

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Ard Biesheuvel
Hi Laura, On 4 February 2016 at 20:43, Laura Abbott wrote: > > ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap > pages for debugging purposes. This requires memory be mapped > with PAGE_SIZE mappings since breaking down larger mappings > at runtime will lead to TLB conflicts. Check

[PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-04 Thread Laura Abbott
ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings at runtime will lead to TLB conflicts. Check if debug_pagealloc is enabled at runtime and if so, map everyting wit

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-02 Thread Laura Abbott
On 02/02/2016 04:31 AM, Mark Rutland wrote: On Tue, Feb 02, 2016 at 12:23:18PM +, Mark Rutland wrote: Is there anything else in mm/ that I've potentially missed? I'm seeing a hang on Juno just after reaching userspace (splat below) with debug_pagealloc=on. It looks like something's gone w

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-02 Thread Mark Rutland
On Tue, Feb 02, 2016 at 12:23:18PM +, Mark Rutland wrote: Is there anything else in mm/ that I've potentially missed? > I'm seeing a hang on Juno just after reaching userspace (splat below) > with debug_pagealloc=on. > > It looks like something's gone wrong around find_vmap_area -- at least >

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-02 Thread Mark Rutland
On Mon, Feb 01, 2016 at 01:24:25PM -0800, Laura Abbott wrote: > On 02/01/2016 04:29 AM, Mark Rutland wrote: > >Hi, > > > >On Fri, Jan 29, 2016 at 03:46:57PM -0800, Laura Abbott wrote: > >> > >>ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap > >>pages for debugging purposes. This requ

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-02 Thread Ard Biesheuvel
On 1 February 2016 at 22:24, Laura Abbott wrote: > On 02/01/2016 04:29 AM, Mark Rutland wrote: >> >> Hi, >> >> On Fri, Jan 29, 2016 at 03:46:57PM -0800, Laura Abbott wrote: >>> >>> >>> ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap >>> pages for debugging purposes. This requires me

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-01 Thread Laura Abbott
On 02/01/2016 04:29 AM, Mark Rutland wrote: Hi, On Fri, Jan 29, 2016 at 03:46:57PM -0800, Laura Abbott wrote: ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-01 Thread Mark Rutland
Hi, On Fri, Jan 29, 2016 at 03:46:57PM -0800, Laura Abbott wrote: > > ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap > pages for debugging purposes. This requires memory be mapped > with PAGE_SIZE mappings since breaking down larger mappings > at runtime will lead to TLB conflicts

[PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-01-29 Thread Laura Abbott
ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings at runtime will lead to TLB conflicts. Check if debug_pagealloc is enabled at runtime and if so, map everyting wit