Re: [PATCH -next 0/3] Add support for fast mremap

2018-11-05 Thread Joel Fernandes
On Sun, Nov 04, 2018 at 12:56:48AM -0600, William Kucharski wrote: > > > > On Nov 3, 2018, at 12:32 PM, Joel Fernandes wrote: > > > > Looks like more architectures don't define set_pmd_at. I am thinking the > > easiest way forward is to just do the following, instead of defining > > set_pmd_at

Re: [PATCH RFC] mm: arc: fix potential double realease of mmap_sem

2018-11-05 Thread Peter Xu
On Tue, Nov 06, 2018 at 12:48:31AM +, Vineet Gupta wrote: > On 10/31/18 8:24 PM, Peter Xu wrote: > > In do_page_fault() of ARC we have: > > > > ... > > fault = handle_mm_fault(vma, address, flags); > > > > /* If Pagefault was interrupted by SIGKILL, exit page fault "early"

Re: [PATCH RFC] mm: arc: fix potential double realease of mmap_sem

2018-11-05 Thread Vineet Gupta
On 10/31/18 8:24 PM, Peter Xu wrote: > In do_page_fault() of ARC we have: > > ... > fault = handle_mm_fault(vma, address, flags); > > /* If Pagefault was interrupted by SIGKILL, exit page fault "early" */ > if (unlikely(fatal_signal_pending(current))) { >

[PATCH v4 6/6] arch: Move initrd= parsing into do_mounts_initrd.c

2018-11-05 Thread Florian Fainelli
ARC, ARM, ARM64 and Unicore32 are all capable of parsing the "initrd=" command line parameter to allow specifying the physical address and size of an initrd. Move that parsing into init/do_mounts_initrd.c such that we no longer duplicate that logic. Signed-off-by: Florian Fainelli ---

[PATCH v4 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Florian Fainelli
ARM64 is the only architecture that re-defines __early_init_dt_declare_initrd() in order for that function to populate initrd_start/initrd_end with physical addresses instead of virtual addresses. Instead of having an override we can leverage drivers/of/fdt.c populating

[PATCH v4 1/6] nds32: Remove phys_initrd_start and phys_initrd_size

2018-11-05 Thread Florian Fainelli
This will conflict with a subsequent change making phys_initrd_start and phys_initrd_size global variables. nds32 does not make use of those nor provides a suitable declarations so just get rid of them. Signed-off-by: Florian Fainelli --- arch/nds32/mm/init.c | 2 -- 1 file changed, 2

[PATCH v4 5/6] of/fdt: Remove custom __early_init_dt_declare_initrd() implementation

2018-11-05 Thread Florian Fainelli
Now that ARM64 uses phys_initrd_start/phys_initrd_size, we can get rid of its custom __early_init_dt_declare_initrd() which causes a fair amount of objects rebuild when changing CONFIG_BLK_DEV_INITRD. In order to make sure ARM64 does not produce a BUG() when VM debugging is turned on though, we

[PATCH v4 3/6] of/fdt: Populate phys_initrd_start/phys_initrd_size from FDT

2018-11-05 Thread Florian Fainelli
Now that we have central and global variables holding the physical address and size of the initrd, we can have early_init_dt_check_for_initrd() populate phys_initrd_start/phys_initrd_size for us. This allows us to remove a chunk of code from arch/arm/mm/init.c introduced with commit 65939301acdb

[PATCH v4 0/6] arm64: Get rid of __early_init_dt_declare_initrd()

2018-11-05 Thread Florian Fainelli
Hi all, Changes in v4: - dropped initrd_below_start_ok assignment in ARM64, not necessary at all (Ard) - replace #ifdef CONFIG_BLK_DEV_INITRD with if (IS_ENABLED(CONFIG_BLK_DEV_INITRD) for consistency with other parts of arm64_memblock_init() (Rob) Changes in v3: - use C conditionals in

[PATCH v4 2/6] arch: Make phys_initrd_start and phys_initrd_size global variables

2018-11-05 Thread Florian Fainelli
Make phys_initrd_start and phys_initrd_size global variables declared in init/do_mounts_initrd.c such that we can later have generic code in drivers/of/fdt.c populate those variables for us. This requires both the ARM and unicore32 implementations to be properly guarded against

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Ard Biesheuvel
On 5 November 2018 at 22:05, Florian Fainelli wrote: > On 11/5/18 1:00 PM, Ard Biesheuvel wrote: >> On 5 November 2018 at 21:51, Florian Fainelli wrote: >>> On 11/5/18 12:44 PM, Ard Biesheuvel wrote: On 5 November 2018 at 21:41, Florian Fainelli wrote: > On 11/5/18 12:39 PM, Ard

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Florian Fainelli
On 11/5/18 1:00 PM, Ard Biesheuvel wrote: > On 5 November 2018 at 21:51, Florian Fainelli wrote: >> On 11/5/18 12:44 PM, Ard Biesheuvel wrote: >>> On 5 November 2018 at 21:41, Florian Fainelli wrote: On 11/5/18 12:39 PM, Ard Biesheuvel wrote: > Hi Florian, > > On 31 October 2018

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Ard Biesheuvel
On 5 November 2018 at 21:51, Florian Fainelli wrote: > On 11/5/18 12:44 PM, Ard Biesheuvel wrote: >> On 5 November 2018 at 21:41, Florian Fainelli wrote: >>> On 11/5/18 12:39 PM, Ard Biesheuvel wrote: Hi Florian, On 31 October 2018 at 20:28, Florian Fainelli wrote: > ARM64 is

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Florian Fainelli
On 11/5/18 12:44 PM, Ard Biesheuvel wrote: > On 5 November 2018 at 21:41, Florian Fainelli wrote: >> On 11/5/18 12:39 PM, Ard Biesheuvel wrote: >>> Hi Florian, >>> >>> On 31 October 2018 at 20:28, Florian Fainelli wrote: ARM64 is the only architecture that re-defines

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Ard Biesheuvel
On 5 November 2018 at 21:41, Florian Fainelli wrote: > On 11/5/18 12:39 PM, Ard Biesheuvel wrote: >> Hi Florian, >> >> On 31 October 2018 at 20:28, Florian Fainelli wrote: >>> ARM64 is the only architecture that re-defines >>> __early_init_dt_declare_initrd() in order for that function to

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Florian Fainelli
On 11/5/18 12:39 PM, Ard Biesheuvel wrote: > Hi Florian, > > On 31 October 2018 at 20:28, Florian Fainelli wrote: >> ARM64 is the only architecture that re-defines >> __early_init_dt_declare_initrd() in order for that function to populate >> initrd_start/initrd_end with physical addresses

Re: [PATCH v3 4/6] arm64: Utilize phys_initrd_start/phys_initrd_size

2018-11-05 Thread Ard Biesheuvel
Hi Florian, On 31 October 2018 at 20:28, Florian Fainelli wrote: > ARM64 is the only architecture that re-defines > __early_init_dt_declare_initrd() in order for that function to populate > initrd_start/initrd_end with physical addresses instead of virtual > addresses. Instead of having an

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-05 Thread Daniel Lezcano
On 24/10/2018 00:33, Vineet Gupta wrote: > On 10/17/2018 04:30 AM, Alexey Brodkin wrote: >> It turned out we used to use default implementation of sched_clock() >> from kernel/sched/clock.c which was as precise as 1/HZ, i.e. >> by default we had 10 msec granularity of time measurement. >> >> Now

Re: [PATCH v2] clocksource/drivers/arc_timer: Utilize generic sched_clock

2018-11-05 Thread Daniel Lezcano
On 24/10/2018 00:33, Vineet Gupta wrote: > On 10/17/2018 04:30 AM, Alexey Brodkin wrote: >> It turned out we used to use default implementation of sched_clock() >> from kernel/sched/clock.c which was as precise as 1/HZ, i.e. >> by default we had 10 msec granularity of time measurement. >> >> Now