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

2018-10-31 Thread Mike Rapoport
On Tue, Oct 30, 2018 at 04:07:19PM -0700, 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 overrid

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

2018-10-31 Thread Rob Herring
On Tue, Oct 30, 2018 at 6:07 PM Florian Fainelli wrote: > > 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 doe

Re: [PATCH v2 2/2] kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()

2018-10-31 Thread Peter Zijlstra
On Tue, Oct 30, 2018 at 03:18:43PM -0700, Douglas Anderson wrote: > Looking closely at it, it seems like a really bad idea to be calling > local_irq_enable() in kgdb_roundup_cpus(). If nothing else that seems > like it could violate spinlock semantics and cause a deadlock. > > Instead, let's use

[PATCH v4] devres: Align data[] to ARCH_KMALLOC_MINALIGN

2018-10-31 Thread Alexey Brodkin
Initially we bumped into problem with 32-bit aligned atomic64_t on ARC, see [1]. And then during quite lengthly discussion Peter Z. mentioned ARCH_KMALLOC_MINALIGN which IMHO makes perfect sense. If allocation is done by plain kmalloc() obtained buffer will be ARCH_KMALLOC_MINALIGN aligned and then

Re: [PATCH v2 2/2] kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()

2018-10-31 Thread Daniel Thompson
On Wed, Oct 31, 2018 at 02:49:26PM +0100, Peter Zijlstra wrote: > On Tue, Oct 30, 2018 at 03:18:43PM -0700, Douglas Anderson wrote: > > Looking closely at it, it seems like a really bad idea to be calling > > local_irq_enable() in kgdb_roundup_cpus(). If nothing else that seems > > like it could v

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

2018-10-31 Thread Florian Fainelli
On 10/31/18 12:03 AM, Mike Rapoport wrote: > On Tue, Oct 30, 2018 at 04:07:19PM -0700, 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 v

Re: [PATCH v2 2/2] kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()

2018-10-31 Thread Daniel Thompson
On Tue, Oct 30, 2018 at 03:18:43PM -0700, Douglas Anderson wrote: > diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c > index f3cadda45f07..9a3f952de6ed 100644 > --- a/kernel/debug/debug_core.c > +++ b/kernel/debug/debug_core.c > @@ -55,6 +55,7 @@ > #include > #include > #incl

[PATCH] perf: Disable libunwind for ARC & RISCV64

2018-10-31 Thread Alexey Brodkin
libunwind is not yet ported for ARC & RISCV64 and on attempt to build it for those arches we just get an error message. If we explicitly disable libunwind it is gracefully handled by perf build system and it just gets configured to not use it so perf is still usable even on those arches. Signed-o

Re: [PATCH] ARC: [plat-hsdk] Enable DW APB GPIO support

2018-10-31 Thread Alexey Brodkin
Hi Vineet, On Tue, 2018-10-30 at 10:25 -0700, Vineet Gupta wrote: > On 10/23/18 5:09 AM, Eugeniy Paltsev wrote: > > Enable GPIO support on HSDK. HSDK SoC includes Synopsys > > DesignWare DW_apb_gpio IP with 24 GPIOs mapped onto port A. > > > > Signed-off-by: Eugeniy Paltsev > > @Alexey, u happy

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

2018-10-31 Thread Florian Fainelli
Hi all, Changes in v3: - use C conditionals in drivers/of/fdt.c - added check on phys_initrd_size in arch/arm64/mm/init.c to determine whether initrd_start must be populated - fixed a build warning with ARC that was just missing an (unsigned long) cast Changes in v2: - get rid of ARCH_HAS_P

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

2018-10-31 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 v3 1/6] nds32: Remove phys_initrd_start and phys_initrd_size

2018-10-31 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 deletions(

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

2018-10-31 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 phys_initrd_start/phys_initr

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

2018-10-31 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 mus

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

2018-10-31 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 CONFIG_BLK_DEV_INIT

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

2018-10-31 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 --- arch/arc/m

Re: [PATCH v2 2/2] kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()

2018-10-31 Thread Doug Anderson
Hi, On Wed, Oct 31, 2018 at 11:40 AM Daniel Thompson wrote: > > On Tue, Oct 30, 2018 at 03:18:43PM -0700, Douglas Anderson wrote: > > diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c > > index f3cadda45f07..9a3f952de6ed 100644 > > --- a/kernel/debug/debug_core.c > > +++ b/kernel

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

2018-10-31 Thread Peter Xu
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))) { if ((fault & VM_FAULT_ERROR) && !(fault & VM_F

kisskb: OK linus/axs101_defconfig/arcompact Thu Nov 01, 16:08

2018-10-31 Thread noreply
OK linus/axs101_defconfig/arcompact Thu Nov 01, 16:08 http://kisskb.ellerman.id.au/kisskb/buildresult/13570850/ Commit: Merge branch 'akpm' (patches from Andrew) 59fc453b21f767f2fb0ff4dc0a947e9b9c9e6d14 Compiler: arc-buildroot-linux-uclibc-gcc (Buildroot 2015.08.1) 4.8.4 Possible err

kisskb: OK linus/axs103_smp_defconfig/arcv2 Thu Nov 01, 16:07

2018-10-31 Thread noreply
OK linus/axs103_smp_defconfig/arcv2 Thu Nov 01, 16:07 http://kisskb.ellerman.id.au/kisskb/buildresult/13570849/ Commit: Merge branch 'akpm' (patches from Andrew) 59fc453b21f767f2fb0ff4dc0a947e9b9c9e6d14 Compiler: arc-linux-gcc.br_real (Buildroot 2016.11-git-00613-ge98b4dd) 6.2.1 2016