[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

[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 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 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 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

Re: [PATCH 2/5] mm: create generic early_ioremap() support

2014-03-06 Thread Mark Salter
On Wed, 2014-03-05 at 14:29 -0800, Andrew Morton wrote: > On Tue, 4 Mar 2014 15:08:55 -0500 Mark Salter wrote: > > > This patch creates a generic implementation of early_ioremap() support > > based on the existing x86 implementation. early_ioremp() is useful for > > ear

Re: [PATCH 5/5] arm64: add early_ioremap support

2014-03-05 Thread Mark Salter
On Tue, 2014-03-04 at 17:31 -0600, Rob Herring wrote: > On Tue, Mar 4, 2014 at 2:08 PM, Mark Salter wrote: > > 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 mappi

[GIT PULL] c6x: fix for build failure

2014-03-05 Thread Mark Salter
The following changes since commit ae72758f1dd93bd367dc7719702f24a9bfb3bad9: c6x: fix build failure caused by cache.h (2014-03-04 17:21:58 -0500) are available in the git repository at: git://linux-c6x.org/git/projects/linux-c6x-upstreaming.git tags/for-linus for you to fetch changes up to

[PATCH 5/5] arm64: add early_ioremap support

2014-03-04 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 1/5] x86/mm: sparse warning fix for early_memremap

2014-03-04 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 2/5] mm: create generic early_ioremap() support

2014-03-04 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 4/5] arm64: initialize pgprot info earlier in boot

2014-03-04 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 3/5] x86: use generic early_ioremap

2014-03-04 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 0/5] mm: generic early_ioremap support

2014-03-04 Thread Mark Salter
3/12/22/69 * Added arm64 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 (4):

Re: [PATCH v4 0/6] generic early_ioremap support

2014-03-03 Thread Mark Salter
On Tue, 2014-02-25 at 11:42 -0800, H. Peter Anvin wrote: > On 02/25/2014 10:45 AM, Mark Salter wrote: > > On Tue, 2014-02-25 at 18:30 +, Will Deacon wrote: > >> I'd suggest spitting the core part out from the arch-specific parts. That > >> way, the core p

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

2014-02-26 Thread Mark Salter
On Tue, 2014-02-25 at 23:48 -0600, Rob Herring wrote: > > +#define NR_FIX_BTMAPS 32 > > +#define FIX_BTMAPS_SLOTS 7 > > +#define TOTAL_FIX_BTMAPS (NR_FIX_BTMAPS * FIX_BTMAPS_SLOTS) > > +#define FIX_BTMAP_END FIX_KMAP_BEGIN > > +#define FIX_BTMAP_BEGIN(F

Re: [PATCH v4 0/6] generic early_ioremap support

2014-02-25 Thread Mark Salter
On Tue, 2014-02-25 at 18:30 +, Will Deacon wrote: > I'd suggest spitting the core part out from the arch-specific parts. That > way, the core part can merged independently and architectures can move over > as they see fit. It also signals (at least to me) that, "hey, I should > probably review

Re: [PATCH v4 0/6] generic early_ioremap support

2014-02-25 Thread Mark Salter
On Wed, 2014-02-12 at 15:56 -0500, Mark Salter wrote: > This patch series takes the common bits from the x86 early ioremap > implementation and creates a generic implementation which may be used > by other architectures. The early ioremap interfaces are intended for > situations whe

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

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

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 03/22] efi: add helper function to get UEFI params from FDT

2014-02-13 Thread Mark Salter
On Thu, 2014-02-13 at 11:17 +, Matt Fleming wrote: > On Wed, 05 Feb, at 05:03:54PM, Leif Lindholm wrote: > > From: Mark Salter > > > > ARM and ARM64 architectures use the device tree to pass UEFI parameters > > from stub to kernel. These parameters are things kn

Re: [PATCH 03/22] efi: add helper function to get UEFI params from FDT

2014-02-13 Thread Mark Salter
On Thu, 2014-02-13 at 11:17 +, Matt Fleming wrote: > On Wed, 05 Feb, at 05:03:54PM, Leif Lindholm wrote: > > From: Mark Salter > > > > ARM and ARM64 architectures use the device tree to pass UEFI parameters > > from stub to kernel. These parameters are things kn

[PATCH v4 6/6] arm64: add early_ioremap support

2014-02-12 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 --- Documentation/arm64/memory.txt | 4

[PATCH v4 5/6] arm64: initialize pgprot info earlier in boot

2014-02-12 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 --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/kernel/setup.c| 2 ++ arch/arm64/mm/mmu.c | 3 +-- 3 files changed, 4 insertions(+), 2 deletions

[PATCH v4 4/6] arm: add early_ioremap support

2014-02-12 Thread Mark Salter
This patch uses the generic early_ioremap code to implement early_ioremap for ARM. The ARM-specific bits come mostly from an earlier patch from Leif Lindholm here: https://lkml.org/lkml/2013/10/3/279 Signed-off-by: Mark Salter Tested-by: Leif Lindholm Acked-by: Catalin Marinas --- arch

[PATCH v4 0/6] generic early_ioremap support

2014-02-12 Thread Mark Salter
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 early_ioremap() support x86: use generic early_ioremap arm: add early_ioremap support

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

2014-02-12 Thread Mark Salter
Move x86 over to the generic early ioremap implementation. Signed-off-by: Mark Salter --- 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/ioremap.c | 228

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

2014-02-12 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 --- include/asm-generic/early_ioremap.h | 42 ++ mm/Kconfig | 3 + mm

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

2014-02-12 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 --- arch/x86/include/asm/io.h | 3 ++- arch/x86/mm/ioremap.c | 10 +++--- 2 files changed, 9 insertions(+), 4 deletions

Bug#735488: patch licensing for arm64 support

2014-02-04 Thread Mark Salter
For avoidance of doubt, any changes to Qt code by me to add arm64 support are to be considered BSD licensed. -- To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/139156620

Bug#735488: patch licensing for arm64 support

2014-02-04 Thread Mark Salter
For avoidance of doubt, any changes to Qt code by me to add arm64 support are to be considered BSD licensed. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-01-29 Thread Mark Salter
On Wed, 2014-01-29 at 18:28 +, Leif Lindholm wrote: > On Wed, Jan 22, 2014 at 11:20:55AM +, Will Deacon wrote: > > > +#ifdef CONFIG_CPU_CP15 > > > +/* Macro for setting/clearing bits in sctlr */ > > > + .macro update_sctlr, set:req, clear:req, tmp:req, tmp2:req > > > + mrc p15, 0, \

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-01-29 Thread Mark Salter
On Wed, 2014-01-29 at 18:28 +, Leif Lindholm wrote: > On Wed, Jan 22, 2014 at 11:20:55AM +, Will Deacon wrote: > > > +#ifdef CONFIG_CPU_CP15 > > > +/* Macro for setting/clearing bits in sctlr */ > > > + .macro update_sctlr, set:req, clear:req, tmp:req, tmp2:req > > > + mrc p15, 0, \

Re: [PATCH 2/5] arm64: dts: APM X-Gene SoC Ethernet device tree nodes

2014-01-24 Thread Mark Salter
On Fri, 2013-12-20 at 19:42 -0800, Iyappan Subramanian wrote: > Device tree files for APM X-Gene SoC Ethernet. > > Signed-off-by: Iyappan Subramanian > Signed-off-by: Ravi Patel > Signed-off-by: Keyur Chudgar > --- > arch/arm64/boot/dts/apm-mustang.dts |8 > arch/arm64/boot/dts/ap

Re: [PATCH 2/5] arm64: dts: APM X-Gene SoC Ethernet device tree nodes

2014-01-24 Thread Mark Salter
On Fri, 2013-12-20 at 19:42 -0800, Iyappan Subramanian wrote: > Device tree files for APM X-Gene SoC Ethernet. > > Signed-off-by: Iyappan Subramanian > Signed-off-by: Ravi Patel > Signed-off-by: Keyur Chudgar > --- > arch/arm64/boot/dts/apm-mustang.dts |8 > arch/arm64/boot/dts/ap

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 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

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

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 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

[PATCH 6/6] arm64: add EFI runtime services

2014-01-10 Thread Mark Salter
This patch adds EFI runtime support for arm64. The runtime support allows the kernel to access various EFI runtime services provided by EFI firmware. Things like reboot, real time clock, EFI boot variables, and others. Signed-off-by: Mark Salter --- arch/arm64/Kconfig | 16 ++ arch

[PATCH 6/6] arm64: add EFI runtime services

2014-01-10 Thread Mark Salter
This patch adds EFI runtime support for arm64. The runtime support allows the kernel to access various EFI runtime services provided by EFI firmware. Things like reboot, real time clock, EFI boot variables, and others. Signed-off-by: Mark Salter --- arch/arm64/Kconfig | 16 ++ arch

[PATCH 2/6] arm64: Add function to create identity mappings

2014-01-10 Thread Mark Salter
a create_id_mapping() function which reuses the core code of create_mapping() used to create the kernel RAM mappings. Signed-off-by: Mark Salter CC: Catalin Marinas CC: Will Deacon CC: linux-arm-ker...@lists.infradead.org --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/mm/mmu.c

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

2014-01-10 Thread Mark Salter
prerequisite patches is at: git://github.com/mosalter/linux.git (arm64-efi-patches-v2 branch) Mark Salter (6): efi: create memory map iteration helper arm64: Add function to create identity mappings efi: add helper function to get UEFI params from FDT arm64: add EFI stub doc: arm64

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

2014-01-10 Thread Mark Salter
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 code. This patch adds a for_each_efi_memory_desc() helper to clean up all of the existing duplicate code and avoid more in the future. Signed-off-by: Mark Salter

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

2014-01-10 Thread Mark Salter
prerequisite patches is at: git://github.com/mosalter/linux.git (arm64-efi-patches-v2 branch) Mark Salter (6): efi: create memory map iteration helper arm64: Add function to create identity mappings efi: add helper function to get UEFI params from FDT arm64: add EFI stub doc: arm64

[PATCH 3/6] efi: add helper function to get UEFI params from FDT

2014-01-10 Thread Mark Salter
to add the UEFI parameters to the device tree. This patch adds a complimentary helper function which UEFI runtime support may use to retrieve the parameters from the device tree. If an architecture wants to use this helper, it should select CONFIG_UEFI_PARAMS_FROM_FDT. Signed-off-by: Mark Salter

[PATCH 2/6] arm64: Add function to create identity mappings

2014-01-10 Thread Mark Salter
a create_id_mapping() function which reuses the core code of create_mapping() used to create the kernel RAM mappings. Signed-off-by: Mark Salter CC: Catalin Marinas CC: Will Deacon CC: linux-arm-ker...@lists.infradead.org --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/mm/mmu.c

[PATCH 5/6] doc: arm64: add description of EFI stub support

2014-01-10 Thread Mark Salter
Add explanation of arm64 EFI stub and kernel image header changes needed to masquerade as a PE/COFF application. Signed-off-by: Mark Salter Acked-by: Grant Likely CC: linux-...@vger.kernel.org CC: Rob Landley --- Documentation/arm64/booting.txt | 4 Documentation/efi-stub.txt | 12

[PATCH 5/6] doc: arm64: add description of EFI stub support

2014-01-10 Thread Mark Salter
Add explanation of arm64 EFI stub and kernel image header changes needed to masquerade as a PE/COFF application. Signed-off-by: Mark Salter Acked-by: Grant Likely CC: linux-...@vger.kernel.org CC: Rob Landley --- Documentation/arm64/booting.txt | 4 Documentation/efi-stub.txt | 12

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

2014-01-10 Thread Mark Salter
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 code. This patch adds a for_each_efi_memory_desc() helper to clean up all of the existing duplicate code and avoid more in the future. Signed-off-by: Mark Salter

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

2014-01-10 Thread Mark Salter
On Fri, 2014-01-10 at 12:40 -0800, Stephen Boyd wrote: > Just some minor nitpicks > > On 01/09/14 19:50, Mark Salter wrote: > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > index c1f1a7e..78a79a6a 100644 > > --- a/arch/arm/Kconfig > > +++ b/arch/ar

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

2014-01-10 Thread Mark Salter
On Fri, 2014-01-10 at 10:11 -0600, Rob Herring wrote: > On Thu, Jan 9, 2014 at 9:50 PM, Mark Salter wrote: > > +config EARLY_IOREMAP > > + depends on MMU > > Is it possible to implement a !MMU version of early_ioremap that > simply returns the phys address rather t

[PATCH v3 6/6] arm64: add early_ioremap support

2014-01-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 CC: linux-arm-ker...@lists.infradead.org CC

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

2014-01-09 Thread Mark Salter
This patch creates a generic implementation of early_ioremap() support based on the existing x86 implementation. early_ioremp() is useful for early boot code which needs to temporarily map I/O or memory regions before normal mapping functions such as ioremap() are available. Signed-off-by: Mark

[PATCH v3 0/6] generic early_ioremap support

2014-01-09 Thread Mark Salter
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 early_ioremap() support x86: use generic early_ioremap arm: add early_ioremap support arm64: initialize pgprot info earlier in boot

[PATCH v3 5/6] arm64: initialize pgprot info earlier in boot

2014-01-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 CC: linux-arm-ker...@lists.infradead.org CC: Catalin Marinas CC: Will Deacon --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/kernel/setup.c| 2 ++ arch

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

2014-01-09 Thread Mark Salter
This patch uses the generic early_ioremap code to implement early_ioremap for ARM. The ARM-specific bits come mostly from an earlier patch from Leif Lindholm here: https://lkml.org/lkml/2013/10/3/279 Signed-off-by: Mark Salter Tested-by: Leif Lindholm Acked-by: Catalin Marinas CC: linux

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

2014-01-09 Thread Mark Salter
Move x86 over to the generic early ioremap implementation. Signed-off-by: Mark Salter CC: x...@kernel.org CC: Andrew Morton CC: Arnd Bergmann CC: Ingo Molnar CC: Thomas Gleixner CC: "H. Peter Anvin" --- arch/x86/Kconfig | 1 + arch/x86/include/asm/Kbuild | 1 +

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

2014-01-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 --- arch/x86/include/asm/io.h | 3 ++- arch/x86/mm/ioremap.c | 10 +++--- 2 files changed, 9 insertions(+), 4 deletions

[PATCH] x86: efi: create memory map iteration helper

2014-01-08 Thread Mark Salter
to use. Signed-off-by: Mark Salter --- arch/x86/platform/efi/efi.c| 48 +- arch/x86/platform/efi/efi_64.c | 5 + drivers/firmware/efi/efi.c | 5 ++--- include/linux/efi.h| 6 ++ 4 files changed, 24 insertions(+), 40 deletions

[PATCH] x86: efi: create memory map iteration helper

2014-01-08 Thread Mark Salter
to use. Signed-off-by: Mark Salter --- arch/x86/platform/efi/efi.c| 48 +- arch/x86/platform/efi/efi_64.c | 5 + drivers/firmware/efi/efi.c | 5 ++--- include/linux/efi.h| 6 ++ 4 files changed, 24 insertions(+), 40 deletions

Re: [PATCH v2 1/5] mm: create generic early_ioremap() support

2014-01-08 Thread Mark Salter
On Tue, 2014-01-07 at 15:11 -0800, H. Peter Anvin wrote: > On 01/06/2014 06:35 PM, Mark Salter wrote: > > > > There is one difference from the existing x86 implementation which > > should be noted. The generic early_memremap() function does not return > > a

[PATCH v2 3/5] arm: add early_ioremap support

2014-01-06 Thread Mark Salter
This patch uses the generic early_ioremap code to implement early_ioremap for ARM. The ARM-specific bits come mostly from an earlier patch from Leif Lindholm here: https://lkml.org/lkml/2013/10/3/279 Signed-off-by: Mark Salter Tested-by: Leif Lindholm CC: linux-arm-ker

[PATCH v2 1/5] mm: create generic early_ioremap() support

2014-01-06 Thread Mark Salter
patch of this series: https://lkml.org/lkml/2013/12/22/69 Signed-off-by: Mark Salter CC: x...@kernel.org CC: linux-arm-ker...@lists.infradead.org CC: Andrew Morton CC: Arnd Bergmann CC: Ingo Molnar CC: Thomas Gleixner CC: "H. Peter Anvin" CC: Russell King CC: Catalin Marinas

[PATCH v2 5/5] arm64: add early_ioremap support

2014-01-06 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 CC: linux-arm-ker...@lists.infradead.org CC

[PATCH v2 0/5] generic early_ioremap support

2014-01-06 Thread Mark Salter
arm64 Mark Salter (5): mm: create generic early_ioremap() support x86: use generic early_ioremap arm: add early_ioremap support arm64: initialize pgprot info earlier in boot arm64: add early_ioremap support Documentation/arm64/memory.txt | 4 +- arch/arm/Kconfig

[PATCH v2 4/5] arm64: initialize pgprot info earlier in boot

2014-01-06 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 CC: linux-arm-ker...@lists.infradead.org CC: Catalin Marinas CC: Will Deacon --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/kernel/setup.c| 2 ++ arch

[PATCH v2 2/5] x86: use generic early_ioremap

2014-01-06 Thread Mark Salter
/lkml/2013/12/22/69 Signed-off-by: Mark Salter CC: x...@kernel.org CC: Andrew Morton CC: Arnd Bergmann CC: Ingo Molnar CC: Thomas Gleixner CC: "H. Peter Anvin" --- arch/x86/Kconfig | 1 + arch/x86/include/asm/Kbuild | 1 + arch/x86/include/asm/fixmap.h | 6 ++

Re: [PATCH] arm64/xen: redefine xen_remap on arm64

2013-12-30 Thread Mark Salter
On Mon, 2013-12-30 at 14:55 +0800, Chen Baozi wrote: > xen_remap used to be defined as ioremap_cached on arm64. In commit > c04e8e2fe, a new ioremap_cache was implemented, and ioremap_cached > was deleted, while xen_remap stays the same. This would lead to > the failure when building with CONFIG_HV

Re: [PATCH 4/4] arm64: add early_ioremap support

2013-12-17 Thread Mark Salter
On Thu, 2013-12-05 at 16:28 +, Catalin Marinas wrote: > > +#define FIXMAP_PAGE_NORMAL __pgprot(PROT_NORMAL | PTE_PXN | PTE_UXN) > > I'll push a fix to change PROT_DEFAULT to (pgprot_default | PTE_DIRTY). > This doesn't help early_ioremap because pgprot_default gets set up in init_mem_pgprot(

Re: [PATCH 1/4] Create generic early_ioremap() support

2013-12-17 Thread Mark Salter
On Mon, 2013-12-16 at 09:48 +0800, Dave Young wrote: > On 11/27/13 at 09:44pm, Mark Salter wrote: > > This patch copies generic bits of x86 early_ioremap() support > > into a library for potential use by other architectures. > > > > Signed-off-by: Mark Salter > >

[PATCH v2 02/10] arm: 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 CC: Russell King CC: linux-arm-ker...@lists.infradead.org --- arch/arm/mach-footbridge/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v2 01/10] alpha: 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: Matt Turner CC: Richard Henderson CC: linux-al...@vger.kernel.org --- arch/alpha/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

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

2013-12-17 Thread Mark Salter
tree with these patches is at: git://github.com/mosalter/linux.git (serio-i8042-v2 branch) Mark Salter (10): alpha: select ARCH_MIGHT_HAVE_PC_SERIO arm: select ARCH_MIGHT_HAVE_PC_SERIO ia64: select ARCH_MIGHT_HAVE_PC_SERIO mips: select ARCH_MIGHT_HAVE_PC_SERIO powerpc: s

[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-dev@lists.ozlabs.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion

[PATCH v2 03/10] ia64: 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 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 v2 07/10] sparc: 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: "David S. Miller" CC: sparcli...@vger.kernel.org --- arch/sparc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/

[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 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 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

[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 00/10] Kconfig: cleanup SERIO_I8042 dependencies

2013-12-17 Thread Mark Salter
tree with these patches is at: git://github.com/mosalter/linux.git (serio-i8042-v2 branch) Mark Salter (10): alpha: select ARCH_MIGHT_HAVE_PC_SERIO arm: select ARCH_MIGHT_HAVE_PC_SERIO ia64: select ARCH_MIGHT_HAVE_PC_SERIO mips: select ARCH_MIGHT_HAVE_PC_SERIO powerpc: s

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

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 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

[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 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 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 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 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 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 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

<    1   2   3   4   5   6   7   8   9   10   >