[PATCH 0/3] arm64: Add EFI stub and runtime services support

2013-11-29 Thread Mark Salter
prerequisite patches is at: git://github.com/mosalter/linux.git (arm64-efi-patches branch) Mark Salter (3): arm64: add EFI stub doc: arm64: add description of EFI stub support arm64: add EFI runtime services Documentation/arm64/booting.txt | 4 + Documentation/efi-stub.txt | 10

[PATCH 1/3] arm64: add EFI stub

2013-11-29 Thread Mark Salter
. Support in the COFF header for signed images was provided by Ard Biesheuvel. Signed-off-by: Mark Salter Signed-off-by: Ard Biesheuvel CC: Catalin Marinas CC: Will Deacon CC: linux-arm-ker...@lists.infradead.org CC: matt.flem...@intel.com CC: linux-...@vger.kernel.org CC: Leif Lindholm CC

Re: [PATCH 1/6] efi: create memory map iteration helper

2014-01-13 Thread Mark Salter
On Mon, 2014-01-13 at 15:17 +, Matt Fleming wrote: > On Fri, 10 Jan, at 05:29:05PM, Mark Salter wrote: > > There are a lot of places in the kernel which iterate through an > > EFI memory map. Most of these places use essentially the same > > for-loop co

Re: [PATCH 4/6] arm64: add EFI stub

2014-01-14 Thread Mark Salter
On Mon, 2014-01-13 at 19:49 +0100, Arnd Bergmann wrote: > On Friday 10 January 2014, Mark Salter wrote: > > This patch adds PE/COFF header fields to the start of the Image > > so that it appears as an EFI application to EFI firmware. An EFI > > stub is included to allow

linux-next build failure

2013-11-08 Thread Mark Salter
I'm seeing a build failure for a no-MMU system: mm/built-in.o: In function `__vm_enough_memory': (.text+0x1ce70): undefined reference to `vm_commit_limit' fs/built-in.o: In function `meminfo_proc_show': meminfo.c:(.text+0x6852c): undefined reference to `vm_commit_limit' This patch added

[PATCH 11/11] um: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Jeff Dike CC: Richard Weinberger CC: user-mode-linux-de...@lists.sourceforge.net --- arch/um/include/asm/fixmap.h | 40 +--- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/arch/um/include/asm/fixmap.h b/arch/um

[PATCH 01/11] Add generic fixmap.h

2013-11-12 Thread Mark Salter
nsolidates all of the common bits into asm-generic/fixmap.h which is intended to be included from arch/*/include/asm/fixmap.h. Signed-off-by: Mark Salter CC: Arnd Bergmann CC: linux-a...@vger.kernel.org CC: Russell King CC: linux-arm-ker...@lists.infradead.org CC: Richard Kuo CC:

[PATCH 08/11] powerpc: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/include/asm/fixmap.h | 44 ++- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/arch/powerpc/include/asm/fixmap.h b

[PATCH 00/11] Consolidate asm/fixmap.h files

2013-11-12 Thread Mark Salter
nsolidates all of the common bits into asm-generic/fixmap.h which is intended to be included from arch/*/include/asm/fixmap.h. This has been compiled on x86, arm, powerpc, and sh, but tested on x86 only. Mark Salter (11): Add generic fixmap.h x86: use generic fixmap.h arm: use generic fixmap.h

[PATCH 05/11] metag: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: James Hogan CC: linux-me...@vger.kernel.org --- arch/metag/include/asm/fixmap.h | 32 +--- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/arch/metag/include/asm/fixmap.h b/arch/metag/include/asm/fixmap.h index 3331275

[PATCH 09/11] sh: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Paul Mundt CC: linux...@vger.kernel.org --- arch/sh/include/asm/fixmap.h | 39 ++- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index cbe0186..4daf91c

[PATCH 03/11] arm: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Russell King CC: linux-arm-ker...@lists.infradead.org --- arch/arm/include/asm/fixmap.h | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/arch/arm/include/asm/fixmap.h b/arch/arm/include/asm/fixmap.h index bbae919

[PATCH 07/11] mips: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Ralf Baechle CC: linux-m...@linux-mips.org --- arch/mips/include/asm/fixmap.h | 33 + 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/arch/mips/include/asm/fixmap.h b/arch/mips/include/asm/fixmap.h index dfaaf49

[PATCH 04/11] hexagon: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Richard Kuo CC: linux-hexa...@vger.kernel.org --- arch/hexagon/include/asm/fixmap.h | 40 +-- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/arch/hexagon/include/asm/fixmap.h b/arch/hexagon/include/asm/fixmap.h

[PATCH 10/11] tile: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Chris Metcalf --- arch/tile/include/asm/fixmap.h | 33 + 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/arch/tile/include/asm/fixmap.h b/arch/tile/include/asm/fixmap.h index c6b9c1b..ffe2637 100644 --- a/arch/tile

[PATCH 06/11] microblaze: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Michal Simek CC: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/include/asm/fixmap.h | 44 ++-- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/arch/microblaze/include/asm/fixmap.h b/arch/microblaze/include

[PATCH 02/11] x86: use generic fixmap.h

2013-11-12 Thread Mark Salter
Signed-off-by: Mark Salter CC: Thomas Gleixner CC: Ingo Molnar CC: "H. Peter Anvin" CC: x...@kernel.org --- arch/x86/include/asm/fixmap.h | 59 +-- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/arch/x86/include/asm/fixmap.h

Re: [PATCH 03/11] arm: use generic fixmap.h

2013-11-12 Thread Mark Salter
On Tue, 2013-11-12 at 08:22 -0500, Mark Salter wrote: > Signed-off-by: Mark Salter > CC: Russell King > CC: linux-arm-ker...@lists.infradead.org > --- > arch/arm/include/asm/fixmap.h | 25 ++--- > 1 file changed, 6 insertions(+), 19 deletions(-) Okay, th

Re: [PATCH 00/11] Consolidate asm/fixmap.h files

2013-11-12 Thread Mark Salter
On Tue, 2013-11-12 at 16:39 +0100, Michal Simek wrote: > On 11/12/2013 02:22 PM, Mark Salter wrote: > > > > arch/arm/include/asm/fixmap.h| 25 ++-- > > arch/hexagon/include/asm/fixmap.h| 40 + > > arch/metag/include/asm/fixmap.h

Re: [PATCH RFC 16/17] c6x: Convert from _fdt_start to __dtb_start

2013-11-12 Thread Mark Salter
quiot > Cc: Rob Herring > Cc: linux-c6x-...@linux-c6x.org > Cc: devicet...@vger.kernel.org > --- > Untested due to lack of cross-compiler, but the changes are similar to > microblaze. > > QUESTION: The padding of the DTB is gone, is this OK? Yes, that's fine. Acke

Re: [PATCH v2 2/3] arm: Add [U]EFI runtime services support

2013-10-17 Thread Mark Salter
On Thu, 2013-10-17 at 16:31 +0200, Leif Lindholm wrote: > On Thu, Oct 17, 2013 at 03:07:39PM +0100, Matt Fleming wrote: > > > +/* > > > + * If you need to (temporarily) support buggy firmware. > > > + */ > > > +#define KEEP_BOOT_SERVICES_REGIONS > > > > Have you seen firmware that requires this? I

[PATCH v2 08/11] powerpc: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/include/asm/fixmap.h | 44 ++- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/arch/powerpc/include/asm/fixmap.h b

[PATCH v2 06/11] microblaze: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Tested-by: Michal Simek CC: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/include/asm/fixmap.h | 44 ++-- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/arch/microblaze/include/asm/fixmap.h b/arch/microblaze

[PATCH v2 00/11] Consolidate asm/fixmap.h files

2013-11-25 Thread Mark Salter
rsion 1 is here: git://github.com/mosalter/linux.git#fixmap Changes from v1: * Added acks from feedback. * Use BUILD_BUG_ON in fix_to_virt() * Fixed ARM patch to make FIXMAP_TOP inclusive of fixmap range as is the case in the other architectures. Mark Salter (11): Add generic fixm

[PATCH v2 11/11] um: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Acked-by: Richard Weinberger CC: Jeff Dike CC: user-mode-linux-de...@lists.sourceforge.net --- arch/um/include/asm/fixmap.h | 40 +--- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/arch/um/include/asm/fixmap.h b

[PATCH v2 01/11] Add generic fixmap.h

2013-11-25 Thread Mark Salter
nsolidates all of the common bits into asm-generic/fixmap.h which is intended to be included from arch/*/include/asm/fixmap.h. Signed-off-by: Mark Salter Acked-by: Arnd Bergmann Acked-by: Ralf Baechle CC: linux-a...@vger.kernel.org CC: Russell King CC: linux-arm-ker...@lists.infradead.org CC: R

[PATCH v2 10/11] tile: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Acked-by: Chris Metcalf --- arch/tile/include/asm/fixmap.h | 33 + 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/arch/tile/include/asm/fixmap.h b/arch/tile/include/asm/fixmap.h index c6b9c1b..ffe2637 100644 --- a/arch

[PATCH v2 09/11] sh: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter CC: Paul Mundt CC: linux...@vger.kernel.org --- arch/sh/include/asm/fixmap.h | 39 ++- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index cbe0186..4daf91c

[PATCH v2 02/11] x86: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter CC: Thomas Gleixner CC: Ingo Molnar CC: "H. Peter Anvin" CC: x...@kernel.org --- arch/x86/include/asm/fixmap.h | 59 +-- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/arch/x86/include/asm/fixmap.h

[PATCH v2 03/11] arm: use generic fixmap.h

2013-11-25 Thread Mark Salter
range. That is, FIXADDR_TOP is the virtual address of the topmost fixed page. The newly defined FIXADDR_END is the first virtual address past the fixed mappings. Signed-off-by: Mark Salter CC: Russell King CC: linux-arm-ker...@lists.infradead.org --- arch/arm/include/asm/fixmap.h | 29

[PATCH v2 04/11] hexagon: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Acked-by: Richard Kuo CC: linux-hexa...@vger.kernel.org --- arch/hexagon/include/asm/fixmap.h | 40 +-- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/arch/hexagon/include/asm/fixmap.h b/arch/hexagon/include/asm

[PATCH v2 05/11] metag: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Acked-by: James Hogan CC: linux-me...@vger.kernel.org --- arch/metag/include/asm/fixmap.h | 32 +--- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/arch/metag/include/asm/fixmap.h b/arch/metag/include/asm/fixmap.h index

[PATCH v2 07/11] mips: use generic fixmap.h

2013-11-25 Thread Mark Salter
Signed-off-by: Mark Salter Acked-by: Ralf Baechle CC: linux-m...@linux-mips.org --- arch/mips/include/asm/fixmap.h | 33 + 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/arch/mips/include/asm/fixmap.h b/arch/mips/include/asm/fixmap.h index dfaaf49

Re: [PATCH] arm64: add PAGE_ALIGNED_DATA to linker script

2013-10-11 Thread Mark Salter
On Wed, 2013-10-09 at 11:14 +0100, Will Deacon wrote: > > @@ -110,6 +110,7 @@ SECTIONS > >*/ > > INIT_TASK_DATA(THREAD_SIZE) > > NOSAVE_DATA > > + PAGE_ALIGNED_DATA(PAGE_SIZE) > > CACHELINE_ALIGNED_DATA(64) > > READ

Re: [PATCH] c6x: remove unused COMMON_CLKDEV Kconfig parameter

2013-10-29 Thread Mark Salter
On Sun, 2013-10-27 at 13:43 +0100, Michael Opdenacker wrote: > This removes the COMMON_CLKDEV kernel configuration > parameter defined in arch/c6x/Kconfig, but used nowhere > in the makefiles and source code. > > Signed-off-by: Michael Opdenacker > --- Thanks. I'll add this to the c6x tree. --

linux-next build failure

2013-10-30 Thread Mark Salter
This patch causes a build failure for no-MMU builds: commit 41df2957cb010edfa2f9d394d3617da6beeeb660 Author: Colin Cross Date: Wed Oct 30 11:45:39 2013 +1100 mm: add a field to store names for private anonymous memory The problem is: kernel/built-in.o: In function `sys_prct

Re: [PATCH] arm64: add PAGE_ALIGNED_DATA to linker script

2013-11-01 Thread Mark Salter
On Fri, 2013-10-11 at 08:18 -0400, Mark Salter wrote: > On Wed, 2013-10-09 at 11:14 +0100, Will Deacon wrote: > > > @@ -110,6 +110,7 @@ SECTIONS > > >*/ > > > INIT_TASK_DATA(THREAD_SIZE) > > > NOSAVE_DATA > >

Re: [PATCH V5 2/6] Add shared update_fdt() function for ARM/ARM64

2013-12-02 Thread Mark Salter
On Fri, 2013-11-29 at 11:30 +, Matt Fleming wrote: > > /* > >* Add an additional efi_memory_desc_t because we're doing an > >* allocation which may be in a new descriptor region. > > + * We allocate as EFI_RUNTIME_SERVICES_DATA since this is what > > + * we want

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Mark Salter
On Tue, 2013-12-03 at 18:38 +, Will Deacon wrote: > Hi Mark, Roy, > > On Fri, Nov 29, 2013 at 10:05:10PM +0000, Mark Salter wrote: > > This patch adds PE/COFF header fields to the start of the Image > > so that it appears as an EFI application to EFI firmware. An EFI &g

[PATCH 02/10] arm: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Russell King CC: linux-arm-ker...@lists.infradead.org --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b

[PATCH 00/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-14 Thread Mark Salter
f383e ]--- [ 27.426875] Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b A tree with these patches is at: git://github.com/mosalter/linux.git (serio-i8042 branch) Mark Salter (10): alpha: select ARCH_MIGHT_HAVE_PC_SERIO arm: select ARCH_MIGHT_HAVE_PC_SERIO ia64: s

[PATCH 09/10] x86: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Ingo Molnar CC: Thomas Gleixner CC: "H. Peter Anvin" CC: x...@kernel.org --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)

[PATCH 08/10] unicore32: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Guan Xuetao --- arch/unicore32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index

[PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-14 Thread Mark Salter
of architectures to exclude. Signed-off-by: Mark Salter CC: Dmitry Torokhov CC: Richard Henderson CC: linux-al...@vger.kernel.org CC: Russell King CC: linux-arm-ker...@lists.infradead.org CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org CC: Ralf Baechle CC: linux-m...@linux

[PATCH 01/10] alpha: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Richard Henderson CC: linux-al...@vger.kernel.org --- arch/alpha/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/alpha/Kconfig b

[PATCH 03/10] ia64: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org --- arch/ia64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64

[PATCH 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 06/10] sh: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Paul Mundt CC: linux...@vger.kernel.org --- arch/sh/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig

[PATCH 07/10] sparc: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: "David S. Miller" CC: sparcli...@vger.kernel.org --- arch/sparc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc

[PATCH 04/10] mips: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-14 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter CC: Ralf Baechle CC: linux-m...@linux-mips.org --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips

Re: [PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-15 Thread Mark Salter
On Sun, 2013-12-15 at 02:36 -0800, Dmitry Torokhov wrote: > On Sat, Dec 14, 2013 at 10:32:31AM -0800, H. Peter Anvin wrote: > > On 12/14/2013 08:59 AM, Mark Salter wrote: > > > Remove messy dependencies from SERIO_I8042 by having it depend on one > > > Kconfig symbol (AR

[PATCH v2 06/10] sh: select ARCH_MIGHT_HAVE_PC_SERIO for SH_CAYMAN

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Cayman board is only sh board which needs this. Signed-off-by: Mark Salter --- arch/sh/boards/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/boards/Kconfig b

[PATCH v2 10/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-17 Thread Mark Salter
of architectures to exclude. Signed-off-by: Mark Salter Acked-by: "H. Peter Anvin" Acked-by: Ralf Baechle Acked-by: Benjamin Herrenschmidt CC: Dmitry Torokhov CC: Richard Henderson CC: linux-al...@vger.kernel.org CC: Russell King CC: linux-arm-ker...@lists.infradead.org CC: Ton

[PATCH v2 04/10] mips: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter Acked-by: Ralf Baechle CC: linux-m...@linux-mips.org --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b

[PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter Acked-by: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion

[PATCH v2 09/10] x86: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter Acked-by: "H. Peter Anvin" CC: Ingo Molnar CC: Thomas Gleixner CC: x...@kernel.org --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertio

[PATCH v2 08/10] unicore32: select ARCH_MIGHT_HAVE_PC_SERIO

2013-12-17 Thread Mark Salter
Architectures which might use an i8042 for serial IO to keyboard, mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO. Signed-off-by: Mark Salter Acked-by: Guan Xuetao --- arch/unicore32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig

Re: [PATCH] arm64: make CONFIG_ZONE_DMA user settable

2014-07-21 Thread Mark Salter
On Fri, 2014-07-18 at 12:07 +0100, Catalin Marinas wrote: > On Tue, Jun 24, 2014 at 03:38:34PM +0100, Mark Salter wrote: > > On Tue, 2014-06-24 at 15:14 +0100, Catalin Marinas wrote: > > > On Mon, Jun 23, 2014 at 02:17:03PM +0100, Mark Salter wrote: > > > > On

Re: [PATCH v2 06/21] c6x: convert fdt pointers to opaque pointers

2014-04-24 Thread Mark Salter
On Tue, 2014-04-22 at 20:18 -0500, Rob Herring wrote: > From: Rob Herring > > The architecture code does not need to access the internals of the FDT > blob, so make the pointer to it void *. > > Signed-off-by: Rob Herring > Cc: Mark Salter > Cc: Aurelien Jacquiot &

Re: linux-next: manual merge of the akpm-current tree with the arm tree

2014-04-24 Thread Mark Salter
On Thu, 2014-04-24 at 15:25 +1000, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in > arch/arm/include/asm/fixmap.h between commits 4221e2e6b316 ("ARM: 8031/1: > fixmap: remove FIX_KMAP_BEGIN and FIX_KMAP_END") and a05e54c103b0 ("ARM: > 8

[PATCH] arm64/pci: fix dma coherency inheritance for PCI devices

2014-09-19 Thread Mark Salter
; property will exist on the corresponding Device Tree node for the bridge device, or one of its ancestors. This patch adds support for applying a DMA coherent dma_ops for PCI devices in the case of such a property. Signed-off-by: Jon Masters [added search for device with of_node] Signed-off-by: M

Re: [PATCH] arm64/pci: fix dma coherency inheritance for PCI devices

2014-09-19 Thread Mark Salter
On Fri, 2014-09-19 at 17:28 +0100, Will Deacon wrote: > On Fri, Sep 19, 2014 at 04:51:26PM +0100, Mark Salter wrote: > > The default dma_ops for devices on arm64 systems are noncoherent in > > nature and rely upon special operations and bounce buffers to > > perform a device

[PATCH] iommu/core: fix bus notifier breakage

2014-09-21 Thread Mark Salter
the notifier_block at runtime. Some error checking is also added to catch any allocation failure or notifier registration error. Signed-off-by: Mark Salter --- drivers/iommu/iommu.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/iommu

Re: [PATCH v3 4/6] arm: add early_ioremap support

2014-01-15 Thread Mark Salter
On Wed, 2014-01-15 at 16:32 -0800, Laura Abbott wrote: > On 1/9/2014 7:50 PM, Mark Salter wrote: > > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > > index 987a7f5..038fb75 100644 > > --- a/arch/arm/kernel/setup.c > > +++ b/arch/arm/ker

Re: [PATCH] arm64/pci: fix dma coherency inheritance for PCI devices

2014-09-22 Thread Mark Salter
On Mon, 2014-09-22 at 11:23 +0100, Catalin Marinas wrote: > > static int __init swiotlb_late_init(void) > > @@ -341,6 +357,7 @@ static int __init swiotlb_late_init(void) > >*/ > > bus_register_notifier(&platform_bus_type, &platform_bus_nb); > > bus_register_notifier(&amba_busty

Re: [PATCH 7/7] efi_rtc: probe function error out in case no efi runtime enabled

2014-09-22 Thread Mark Salter
On Thu, 2014-08-14 at 17:19 +0800, Dave Young wrote: > efi rtc depends on efi runtime services, so if efi runtime services are not > usable it should error out. > > Without this patch rtc-efi will panic with 'noefi' boot Is this still needed after commit da167ad7638759: rtc: ia64: allow other

Re: [PATCH] iommu/core: fix bus notifier breakage

2014-09-25 Thread Mark Salter
On Thu, 2014-09-25 at 16:47 +0200, Joerg Roedel wrote: > On Sun, Sep 21, 2014 at 01:58:24PM -0400, Mark Salter wrote: > > iommu_bus_init() registers a bus notifier on the given bus by using > > a statically defined notifier block: > > > > static struct

Re: [PATCH 7/7] efi_rtc: probe function error out in case no efi runtime enabled

2014-09-25 Thread Mark Salter
On Thu, 2014-09-25 at 22:18 +0100, Matt Fleming wrote: > On Mon, 22 Sep, at 12:33:29PM, Mark Salter wrote: > > > > Is this still needed after commit da167ad7638759: > > > > rtc: ia64: allow other architectures to use EFI RTC > > Umm... we should really look

[PATCH v6 1/6] x86/mm: sparse warning fix for early_memremap

2014-03-09 Thread Mark Salter
; FWIW, all callers of early_memremap use the memory they get remapped as > normal memory so we should be safe. Signed-off-by: Dave Young Signed-off-by: Mark Salter Acked-by: H. Peter Anvin --- arch/x86/include/asm/io.h | 3 ++- arch/x86/mm/ioremap.c | 10 +++--- 2 files chang

[PATCH v6 0/6] mm: generic early_ioremap support

2014-03-09 Thread Mark Salter
patch to call init_mem_pgprot() earlier so that the pgprot macros are valid in time for early_ioremap use * Added validity checking for early_ioremap pgd, pud, and pmd in arm64 Dave Young (1): x86/mm: sparse warning fix for early_memremap Mark Salter (5): mm: create generic

[PATCH v6 2/6] mm: create generic early_ioremap() support

2014-03-09 Thread Mark Salter
have optional MMU. In the no-MMU case, the remap functions simply return the passed in physical address and the unmap functions do nothing. Signed-off-by: Mark Salter Acked-by: Catalin Marinas Acked-by: H. Peter Anvin --- include/asm-generic/early_ioremap.h | 42 +++ mm/Kconfig

[PATCH v6 3/6] x86: use generic early_ioremap

2014-03-09 Thread Mark Salter
Move x86 over to the generic early ioremap implementation. Signed-off-by: Mark Salter Acked-by: H. Peter Anvin --- arch/x86/Kconfig | 1 + arch/x86/include/asm/Kbuild | 1 + arch/x86/include/asm/fixmap.h | 6 ++ arch/x86/include/asm/io.h | 15 +-- arch/x86/mm

[PATCH v6 5/6] arm64: add early_ioremap support

2014-03-09 Thread Mark Salter
Add support for early IO or memory mappings which are needed before the normal ioremap() is usable. This also adds fixmap support for permanent fixed mappings such as that used by the earlyprintk device register region. Signed-off-by: Mark Salter Acked-by: Catalin Marinas --- Documentation

[PATCH v6 4/6] arm64: initialize pgprot info earlier in boot

2014-03-09 Thread Mark Salter
paging_init() and into setup_arch() so that pgprot_default gets initialized in time for fixmap and early_ioremap. Signed-off-by: Mark Salter Acked-by: Catalin Marinas --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/kernel/setup.c| 2 ++ arch/arm64/mm/mmu.c | 3 +-- 3 files changed, 4

[PATCH v6 6/6] doc/kernel-parameters.txt: add early_ioremap_debug

2014-03-09 Thread Mark Salter
Add description of early_ioremap_debug kernel parameter. Signed-off-by: Mark Salter --- Documentation/kernel-parameters.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 7116fda..de1d10e 100644 --- a

Re: [PATCH v6 0/6] mm: generic early_ioremap support

2014-03-11 Thread Mark Salter
On Tue, 2014-03-11 at 12:08 +, Catalin Marinas wrote: > Mark, > > On Sun, Mar 09, 2014 at 05:00:38PM +0000, Mark Salter wrote: > > This patch series takes the common bits from the x86 early ioremap > > implementation and creates a generic implementation which may

Re: [PATCH v3 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-04-25 Thread Mark Salter
On Wed, 2014-04-16 at 19:39 -0700, Iyappan Subramanian wrote: > +static int xgene_enet_refill_bufpool(struct xgene_enet_desc_ring *buf_pool, > +u32 nbuf) > +{ > + struct sk_buff *skb; > + struct xgene_enet_desc16 *desc; > + struct net_device *nd

Re: [PATCH] arm: KVM: fix possible misalignment of PGDs and bounce page

2014-04-25 Thread Mark Salter
Ping. Can we get this into 3.15rc as a bug fix? Anything I can help with? --Mark On Sat, 2014-03-29 at 14:01 +, Marc Zyngier wrote: > On 2014-03-28 19:37, Christoffer Dall wrote: > > On Fri, Mar 28, 2014 at 10:25:19AM -0400, Mark Salter wrote: > >> The kvm/mmu code share

Re: [PATCH] arm64: fixmap: fix missing sub-page offset for earlyprintk

2014-04-28 Thread Mark Salter
t_io that > uses the latter, and to remove the superflous call to fix_to_virt > (which only returns the value that set_fixmap_io has already given us). > > With this applied, my VMs are back in business. Tested on a Cortex-A57 > platform with kvmtool as platform emulation. > &g

Re: [PATCH] arm64: fix pud_huge() for 2-level pagetables

2014-05-16 Thread Mark Salter
On Fri, 2014-05-16 at 11:04 +0100, Catalin Marinas wrote: > On Thu, May 15, 2014 at 03:19:22PM +0100, Mark Salter wrote: > > diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c > > index 5e9aec3..9bed38f 100644 > > --- a/arch/arm64/mm/hugetlbpage.c &g

Re: [PATCH v4 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-05-16 Thread Mark Salter
On Mon, 2014-05-05 at 14:47 -0700, Iyappan Subramanian wrote: > +static int xgene_enet_probe(struct platform_device *pdev) > +{ > + struct net_device *ndev; > + struct xgene_enet_pdata *pdata; > + struct device *dev = &pdev->dev; > + struct napi_struct *napi; > + int r

Re: [PATCH] c6x: Include init.h in asm/cache.h

2014-02-15 Thread Mark Salter
On Sat, 2014-02-15 at 09:57 -0800, Guenter Roeck wrote: > On 02/07/2014 06:02 AM, Guenter Roeck wrote: > > arch/c6x/include/asm/cache.h uses __init and thus needs to include init.h. > > This fixes the following c6x build error. > > > > arch/c6x/include/asm/cache.h:63:20: error: expected '=', ',', '

Re: [PATCH 16/22] arm64: Add function to create identity mappings

2014-02-17 Thread Mark Salter
On Fri, 2014-02-14 at 17:42 +, Catalin Marinas wrote: > On Wed, Feb 05, 2014 at 05:04:07PM +, Leif Lindholm wrote: > > +void __init create_id_mapping(phys_addr_t addr, phys_addr_t size, int > > map_io) > > +{ > > + pgd_t *pgd = &idmap_pg_dir[pgd_index(addr)]; > > + > > + if (pgd >= &id

[PATCH 0/2] arm64: TLB flush issues

2014-05-02 Thread Mark Salter
larger than 4k. This is corrected in the first patch. The second patch limits the loop size for the flush_tlb_[kernel_]range functions. It uses an arbitrary constant to limit the loop, but it would be better if it were based on actual tlb size or some other heuristic. Mark Salter (2): arm64: fix

[PATCH 1/2] arm64: fix unnecessary tlb flushes

2014-05-02 Thread Mark Salter
page rather than once. This patch uses the PAGE_SHIFT definition to ensure one tlb flush for any given page in the range. Signed-off-by: Mark Salter --- arch/arm64/mm/tlb.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/tlb.S b/arch/arm64/mm/tlb.S index

[PATCH 2/2] arm64: fix soft lockup due to large tlb flush range

2014-05-02 Thread Mark Salter
al pages. The limit chosen is arbitrary and would be better if based on the actual size of the tlb. I looked through the ARM ARM but didn't see any easy way to get the actual tlb size, so for now the arbitrary limit is better than the soft lockup. Signed-off-by: Mark Salter --- arch/arm

Re: [PATCH 0/2] arm64: TLB flush issues

2014-05-02 Thread Mark Salter
On Fri, 2014-05-02 at 16:30 +0100, Steve Capper wrote: > On Fri, May 02, 2014 at 11:20:33AM -0400, Mark Salter wrote: > > As explained in more detail in the second patch, I have observed a soft > > lockup under some loads. These lockups were in flush_tlb_kernel_range() > &

Re: [PATCH 08/27] c6x: Use generic tlb.h

2014-05-14 Thread Mark Salter
On Wed, 2014-05-14 at 20:59 +0200, Richard Weinberger wrote: > As everything we need is now in generic tlb.h > we can drop our own one. > > Cc: Mark Salter > Cc: Aurelien Jacquiot > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Tim Chen > Cc: "David S. Miller&

[PATCH] arm64: fix pud_huge() for 2-level pagetables

2014-05-15 Thread Mark Salter
ppens because a pud_huge() test in unmap_range() returns true when it should always be false with 2-level pages tables used by 64k pages. This patch removes support for huge puds if 2-level pagetables are being used. Signed-off-by: Mark Salter --- arch/arm64/mm/hugetlbpage.c | 6 ++ 1 file ch

Re: [PATCH] arm64: fix pud_huge() for 2-level pagetables

2014-05-15 Thread Mark Salter
On Thu, 2014-05-15 at 15:44 +0100, Steve Capper wrote: > On Thu, May 15, 2014 at 10:19:22AM -0400, Mark Salter wrote: > > The following happens when trying to run a kvm guest on a kernel > > configured for 64k pages. This doesn't happen with 4k pages: > > > > BU

Re: [PATCH] arm64: fix pud_huge() for 2-level pagetables

2014-05-15 Thread Mark Salter
On Thu, 2014-05-15 at 18:55 +0100, Steve Capper wrote: > On 15 May 2014 17:27, Mark Salter wrote: > > On Thu, 2014-05-15 at 15:44 +0100, Steve Capper wrote: > >> On Thu, May 15, 2014 at 10:19:22AM -0400, Mark Salter wrote: > >> > The following happens when trying

Re: [PATCH 10/31] arch,c6x: Convert smp_mb__*

2014-04-09 Thread Mark Salter
On Wed, 2014-03-19 at 07:47 +0100, Peter Zijlstra wrote: > c6x doesn't have a barrier.h and completely relies on > asm-generic/barrier.h. Therefore its smp_mb() is barrier() and we can > use the default versions that are smp_mb(). > > Signed-off-by: Peter Zijlstra > ---

Re: [PATCH v3 06/10] arm64: efi: add EFI stub

2014-04-10 Thread Mark Salter
On Wed, 2014-04-09 at 15:20 +0100, Mark Rutland wrote: > > > > +config EFI > > + bool "UEFI firmware support" > > + depends on OF > > I note we're not depending on !CPU_BIG_ENDIAN here, and it looks like > the implementation is not endian-clean (I've pointed out a few issues > below).

Re: [PATCH] arm64: support reboot and power off via EFI runtime

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 14:26 +0100, Mark Rutland wrote: > Hi Mark, > > On Tue, Jun 17, 2014 at 05:45:14PM +0100, Mark Salter wrote: > > Add handlers for arm_pm_resestart and pm_power_off which use EFI > > runtime services ResetSystem call to perform the functions. These

Re: [PATCH] arm64: export __cpu_{clear,copy}_user_page functions

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 11:39 +0100, Catalin Marinas wrote: > On Tue, Jun 17, 2014 at 06:14:26PM +0100, Mark Salter wrote: > > The __cpu_clear_user_page() and __cpu_copy_user_page() functions > > are not currently exported. This prevents modules from using > > clear_user_pag

Re: [PATCH v5 1/7] efi: Use early_mem*() instead of early_io*()

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 13:17 +0100, Matt Fleming wrote: > Now, the only difference between early_memremap() and early_ioremap(), > at least on x86, is PAGE_KERNEL vs. PAGE_KERNEL_IO, where PAGE_KERNEL_IO > has the additional _PAGE_BIT_IOMAP bit set in the pte. But that's a > software bit for x86. I

Re: [PATCH] arm64: support reboot and power off via EFI runtime

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 09:09 -0500, Rob Herring wrote: > On Tue, Jun 17, 2014 at 11:45 AM, Mark Salter wrote: > > Add handlers for arm_pm_resestart and pm_power_off which use EFI > > typo. > > > runtime services ResetSystem call to perform the functions. These > >

Re: [PATCH] arm64: fix MAX_ORDER for 64K pagesize

2014-06-19 Thread Mark Salter
On Tue, 2014-06-17 at 20:32 +0200, Michal Nazarewicz wrote: > On Wed, Jun 11 2014, David Rientjes wrote: > > On Wed, 11 Jun 2014, Mark Salter wrote: > > > >> With a kernel configured with ARM64_64K_PAGES && !TRANSPARENT_HUGEPAGE > >> I get this at

Re: [PATCHv2] mm: page_alloc: fix CMA area initialisation when pageblock > MAX_ORDER

2014-06-20 Thread Mark Salter
; both sides of the operator are constants. In cases where pageblock > size is variable, the performance degradation should not be > significant anyway since init_cma_reserved_pageblock() is called > only at boot time at most MAX_CMA_AREAS times which by default is > eight. > > Sign

Re: [PATCH] arm64: fix MAX_ORDER for 64K pagesize

2014-06-20 Thread Mark Salter
On Thu, 2014-06-19 at 21:24 +0200, Michal Nazarewicz wrote: > On Thu, Jun 19 2014, Mark Salter wrote: > > On Tue, 2014-06-17 at 20:32 +0200, Michal Nazarewicz wrote: > >> diff --git a/mm/page_alloc.c b/mm/page_alloc.c > >> index 5dba293..6e657ce 100644 > >>

<    1   2   3   4   5   >