Re: [PATCH v2 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs

2013-05-22 Thread Catalin Marinas
On Wed, May 22, 2013 at 03:37:17AM +0100, Damian Hobson-Garcia wrote: > Hello, > On 2013/04/30 12:01, Damian Hobson-Garcia wrote: > > Most architectures that define CONFIG_HAVE_DMA=y, have implementations for > > both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do > > not define

Re: [PATCH v2 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs

2013-05-23 Thread Catalin Marinas
On Thu, May 23, 2013 at 03:47:13AM +0100, Damian Hobson-Garcia wrote: > Hi Catalin, > On 2013/05/22 18:47, Catalin Marinas wrote: > > On Wed, May 22, 2013 at 03:37:17AM +0100, Damian Hobson-Garcia wrote: > >> Hello, > >> On 2013/04/30 12:01, Damian Hobson-Garcia w

Re: [PATCH 3/3] mm/kmemleak.c: Merge the consecutive scan-areas.

2013-05-24 Thread Catalin Marinas
On Tue, May 14, 2013 at 12:49:51PM +0100, majianpeng wrote: > If the scan-areas are adjacent,it can merge in order to reduce memomy. Have you found any significant reduction in the memory size? What we miss though is removing an area (and I found a use-case for it). > +hlist_for_each_entry(a

Re: [PATCH v8, part3 03/14] mm/ARM64: kill poison_init_mem()

2013-05-28 Thread Catalin Marinas
On Sun, May 26, 2013 at 02:38:31PM +0100, Jiang Liu wrote: > Use free_reserved_area() to poison initmem memory pages and kill > poison_init_mem() on ARM64. > > Signed-off-by: Jiang Liu > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.o

Re: [PATCH] ARM: map_init_section flushes incorrect pmd

2013-05-28 Thread Catalin Marinas
On Tue, May 28, 2013 at 02:05:02PM +0100, Will Deacon wrote: > On Tue, May 28, 2013 at 11:48:20AM +0100, Po-Yu Chuang wrote: > > This bug was introduced in commit e651eab0. > > Some v4/v5 platforms failed to boot due to this. > > > > Signed-off-by: Po-Yu Chuang > > --- > > arch/arm/mm/mmu.c |

Re: [PATCH] arm64: compiling issue for allmodconfig, need "asm/parport.h" by "drivers/parport/parport_pc.c"

2013-05-28 Thread Catalin Marinas
On Wed, May 22, 2013 at 08:32:20AM +0100, Chen Gang wrote: > On 05/22/2013 08:45 AM, Chen Gang wrote: > > On 05/21/2013 09:17 PM, Catalin Marinas wrote: > >> On Mon, May 20, 2013 at 05:19:31AM +0100, Chen Gang wrote: > >>> > >>> Need add the default f

Re: [Suggestion] ARM64:kernel: compiling issue for early_console.

2013-03-27 Thread Catalin Marinas
On Wed, Mar 27, 2013 at 11:44:03AM +, Chen Gang wrote: > the error message: > arch/arm64/kernel/early_printk.c: At top level: > arch/arm64/kernel/early_printk.c:98:23: error: conflicting types for > ‘early_console’ > In file included from arch/arm64/kernel/early_printk.c:20:0: >

Re: [RFC PATCH v3 3/6] sched: pack small tasks

2013-03-27 Thread Catalin Marinas
On Wed, Mar 27, 2013 at 05:18:53PM +, Nicolas Pitre wrote: > On Wed, 27 Mar 2013, Catalin Marinas wrote: > > > So if the above works, the scheduler guys can mandate that little CPUs > > are always first and for ARM it would be a matter of getting the right > >

[GIT PULL] arm64 patches for 3.9

2013-03-28 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fix below. Thanks. The following changes since commit a937536b868b8369b98967929045f1df54234323: Linux 3.9-rc3 (2013-03-17 15:59:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64.git tags/a

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Catalin Marinas
On Tue, Aug 21, 2012 at 09:14:01PM +0100, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Catalin Marinas wrote: > > > > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > > > > +unsigned long prot, unsigned long flags, > >

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-22 Thread Catalin Marinas
On Wed, Aug 22, 2012 at 08:56:30AM +0100, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Catalin Marinas wrote: > > As I understand, sys_mmap_pgoff can be used instead of sys_mmap2 on new > > 32-bit architectures. But on 64-bit architectures we don't have > > sys_mma

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-22 Thread Catalin Marinas
On Wed, Aug 22, 2012 at 01:27:14PM +0100, Arnd Bergmann wrote: > On Wednesday 22 August 2012, Catalin Marinas wrote: > > But what's more important - moving this wrapper to glibc causes issues > > with the page size. We support both 4KB and 64KB pages on 64-bit systems >

Re: PER_LINUX32, Was: [PATCH v2 21/31] arm64: 32-bit (compat) applications support

2012-08-23 Thread Catalin Marinas
On Thu, Aug 23, 2012 at 07:46:30AM +0100, Arnd Bergmann wrote: > On Thursday 16 August 2012, Will Deacon wrote: > > On Wed, Aug 15, 2012 at 03:34:04PM +0100, Arnd Bergmann wrote: > > > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > > +asmlinkage int compat_

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-24 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 02:13:59PM +0100, Tony Lindgren wrote: > * Shilimkar, Santosh [120817 03:11]: > > On Fri, Aug 17, 2012 at 3:35 PM, Catalin Marinas > > wrote: > > > > > > On Fri, Aug 17, 2012 at 10:41:10AM +0100, Santosh Shilimkar wrote: > > >

Re: [PATCH 2/3] kmemleak: replace list_for_each_continue_rcu with new interface

2012-08-24 Thread Catalin Marinas
; > of code and allow removing list_for_each_continue_rcu(). > > Could I get some comments on this patch? Sorry, busy with other things and forgot about this. Acked-by: Catalin Marinas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] kmemleak: avoid buffer overrun: NUL-terminate strncpy-copied command

2012-08-24 Thread Catalin Marinas
On Mon, Aug 20, 2012 at 05:55:22PM +0100, Jim Meyering wrote: > From: Jim Meyering > > strncpy NUL-terminates only when the length of the source string > is smaller than the size of the destination buffer. > The two other strncpy uses (just preceding) happen to be ok > with the current TASK_COMM_

Re: [PATCH v2 21/31] arm64: 32-bit (compat) applications support

2012-08-24 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 03:34:04PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +#ifdef CONFIG_AARCH32_EMULATION > > +#include > > + > > +#define AARCH32_KERN_SIGRET_CODE_OFFSET0x500 > > + > > +extern

Re: linux-next: build failure after merge of the arm64 tree

2012-09-17 Thread Catalin Marinas
Hi Stephen, On Mon, Sep 17, 2012 at 02:24:05AM +0100, Stephen Rothwell wrote: > After merging the arm64 tree, today's linux-next build () > failed like this: > > arch/powerpc/kernel/sys_ppc32.c:146:17: error: conflicting types for > 'compat_sys_sendfile' > include/linux/compat.h:593:16: note: pr

[PATCH] compat: fs: Generic compat_sys_sendfile implementation

2012-09-18 Thread Catalin Marinas
patch covering both powerpc and sparc is to keep it bisectable (and simple), otherwise kernel building may fail with mismatched function declarations. Signed-off-by: Catalin Marinas Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: David S. Miller Cc: Alexander Viro Cc:

[PATCH] compat: Generic compat_sys_sched_rr_get_interval implementation

2012-09-18 Thread Catalin Marinas
may fail with mismatched function declarations. Signed-off-by: Catalin Marinas Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: David S. Miller Cc: Alexander Viro Cc: Chris Metcalf Cc: Andrew Morton --- Please note that the patch has only been compile-tested on sparc, t

Re: [PATCH 2/3] mm: thp: Fix the update_mmu_cache() last argument passing in mm/huge_memory.c

2012-09-19 Thread Catalin Marinas
but the huge_memory.c passes a pmd_t value. The patch changes >> > the argument to the pmd_t * pointer. >> > >> > Signed-off-by: Catalin Marinas >> > Signed-off-by: Steve Capper >> > Signed-off-by: Will Deacon >> > --- >> > mm/huge

Re: [PATCH] compat: fs: Generic compat_sys_sendfile implementation

2012-09-19 Thread Catalin Marinas
On 18 September 2012 19:13, Arnd Bergmann wrote: > On Tuesday 18 September 2012, Catalin Marinas wrote: >> @@ -229,7 +229,7 @@ COMPAT_SYS_SPU(sched_setaffinity) >> COMPAT_SYS_SPU(sched_getaffinity) >> SYSCALL(ni_syscall) >> SYSCALL(ni_syscall) >> -SY

[PATCH v2] compat: fs: Generic compat_sys_sendfile implementation

2012-09-19 Thread Catalin Marinas
off-by: Catalin Marinas Acked-by: David S. Miller Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Alexander Viro Cc: Andrew Morton --- Changes from the first version: - PowerPC fixed for 32-bit mode. - PowerPC 64-bit __NR_sendfile routed to sys_sendfile() rather t

Re: [PATCH 00/22] Introducing the TI Keystone platform

2012-08-08 Thread Catalin Marinas
On Sun, Aug 05, 2012 at 04:10:34PM +0100, Cyril Chemparathy wrote: > On 8/4/2012 4:39 AM, Russell King - ARM Linux wrote: > > On Tue, Jul 31, 2012 at 07:04:36PM -0400, Cyril Chemparathy wrote: > >> This series is a follow on to the RFC series posted earlier (archived at > >> [1]). > >> The major c

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-09 Thread Catalin Marinas
On Wed, Aug 08, 2012 at 06:07:39PM +0100, Michel Lespinasse wrote: > kmemleak uses a tree where each node represents an allocated memory object > in order to quickly find out what object a given address is part of. > However, the objects don't overlap, so rbtrees are a better choice than > prio tre

Re: [09/36] AArch64: Exception handling

2012-08-09 Thread Catalin Marinas
Hi Christopher, On Thu, Aug 09, 2012 at 06:05:36PM +0100, Christopher Covington wrote: > On 01/-10/-28163 02:59 PM, Catalin Marinas wrote: > > +/* > > + * Exception vectors. > > + */ > > + .macro ventry label > > + .align 7 > > + b \label

[PATCH v2 01/31] arm64: Assembly macros and definitions

2012-08-14 Thread Catalin Marinas
This patch introduces several assembly macros and definitions used in the .S files across arch/arm64/ like IRQ disabling/enabling, together with asm-offsets.c. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/asm-offsets.h |1 + arch/arm64/include/asm

[PATCH v2 17/31] arm64: System calls handling

2012-08-14 Thread Catalin Marinas
user space. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. The array is 4KB aligned to allow the use of the ADRP instruction (longer range ADR) in entry.S. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include

[PATCH v2 22/31] arm64: Floating point and SIMD

2012-08-14 Thread Catalin Marinas
state saving/restoring. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/fpsimd.h | 64 +++ arch/arm64/kernel/entry-fpsimd.S | 80 arch/arm64/kernel/fpsimd.c | 106

[PATCH v2 25/31] arm64: Performance counters support

2012-08-14 Thread Catalin Marinas
From: Will Deacon This patch adds support for the AArch64 performance counters. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/perf_event.h | 22 + arch/arm64/include/asm/pmu.h| 82 +++ arch/arm64/kernel/perf_event.c | 1368

[PATCH v2 26/31] arm64: Miscellaneous library functions

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier This patch adds udelay, memory and bit operations together with the ksyms exports. Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/bitops.h | 74 arch/arm64/include/asm

[PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-14 Thread Catalin Marinas
overlapping between user and kernel page tables. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/page.h| 67 + arch/arm64/include/asm/pgalloc.h | 113 arch/arm64/mm/copypage.c | 34 +++ arch/arm64/mm/extable.c | 17

[PATCH v2 05/31] arm64: MMU initialisation

2012-08-14 Thread Catalin Marinas
supported via the memory attributes register (MAIR_EL1) and only affect the Normal Cacheable mappings. This patch also adds the SPARSEMEM_VMEMMAP initialisation. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/memblock.h | 21 ++ arch/arm64/mm/init.c

[PATCH v2 28/31] arm64: Generic timers support

2012-08-14 Thread Catalin Marinas
register. The physical counter is also accessible from user space allowing fast gettimeofday() implementation. Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/timex.h| 32 arch/arm64/kernel/time.c | 65

[PATCH v2 29/31] arm64: Miscellaneous header files

2012-08-14 Thread Catalin Marinas
This patch introduces a few AArch64-specific header files together with Kbuild entries for generic headers. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/Kbuild| 51 ++ arch/arm64/include/asm/barrier.h | 52 ++ arch/arm64

[PATCH v2 31/31] arm64: MAINTAINERS update

2012-08-14 Thread Catalin Marinas
This patch updates the MAINTAINERS file for the AArch64 Linux kernel port. Signed-off-by: Catalin Marinas --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 94b823f..6d7c5f4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v2 30/31] arm64: Build infrastructure

2012-08-14 Thread Catalin Marinas
This patch adds Makefile and Kconfig files required for building an AArch64 kernel. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/Kconfig | 261 ++ arch/arm64/Kconfig.debug | 27 arch/arm64

[PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-14 Thread Catalin Marinas
The patch adds the kernel booting and the initial setup code. Documentation/arm64/booting.txt describes the booting protocol on the AArch64 Linux kernel. This is subject to change following the work on boot standardisation, ACPI. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas

[PATCH v2 03/31] arm64: Exception handling

2012-08-14 Thread Catalin Marinas
nt (2^11) requirements. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/ptrace.h | 206 +++ arch/arm64/include/asm/stacktrace.h | 29 ++ arch/arm64/include/asm/traps.h | 30 ++ arch/arm64/kernel/entry.S |

[PATCH v2 04/31] arm64: MMU definitions

2012-08-14 Thread Catalin Marinas
Deacon Signed-off-by: Catalin Marinas --- Documentation/arm64/memory.txt| 69 + arch/arm64/include/asm/memory.h | 144 +++ arch/arm64/include/asm/mmu.h | 27 ++ arch/arm64/include/asm/pgtable-2level-hwdef.h | 43 arch/arm64

[PATCH v2 27/31] arm64: Loadable modules

2012-08-14 Thread Catalin Marinas
From: Will Deacon This patch adds support for loadable modules. Loadable modules are loaded 64MB below the kernel image due to branch relocation restrictions (see Documentation/arm64/memory.txt). Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/module.h

[PATCH v2 10/31] arm64: TLB maintenance functionality

2012-08-14 Thread Catalin Marinas
dropped once Peter Z's generic mmu_gather patches are merged. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/tlb.h | 190 + arch/arm64/include/asm/tlbflush.h | 123 arch/arm64/mm/

[PATCH v2 15/31] arm64: SMP support

2012-08-14 Thread Catalin Marinas
-by: Will Deacon Signed-off-by: Marc Zyngier Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/hardirq.h|5 + arch/arm64/include/asm/smp.h| 69 + arch/arm64/include/asm/spinlock.h | 199 + arch/arm64/include/asm/spinlock_types.h | 38

[PATCH v2 18/31] arm64: VDSO support

2012-08-14 Thread Catalin Marinas
From: Will Deacon This patch adds VDSO support for 64-bit applications. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the user-accessible generic counter). Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/vdso.h

[PATCH v2 16/31] arm64: ELF definitions

2012-08-14 Thread Catalin Marinas
This patch adds definitions for the ELF format, including personality personality setting and EXEC_PAGESIZE. The are only two hwcap definitions for 64-bit applications - HWCAP_FP and HWCAP_ASIMD. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/auxvec.h

[PATCH v2 11/31] arm64: IRQ handling

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier This patch adds the support for IRQ handling. The actual interrupt controller will be part of a separate patch (going into drivers/irqchip/). Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/hardirq.h | 47

[PATCH v2 19/31] arm64: Signal handling support

2012-08-14 Thread Catalin Marinas
This patch adds support for signal handling. The sigreturn is done via VDSO, introduced by a previous patch. The SA_RESTORER is still defined as it is required for 32-bit (compat) support but it is not to be used for 64-bit applications. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas

[PATCH v2 12/31] arm64: Atomic operations

2012-08-14 Thread Catalin Marinas
This patch introduces the atomic, mutex and futex operations. Many atomic operations use the load-acquire and store-release operations which imply barriers, avoiding the need for explicit DMB. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/atomic.h | 306

[PATCH v2 13/31] arm64: Device specific operations

2012-08-14 Thread Catalin Marinas
Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/device.h | 26 arch/arm64/include/asm/fb.h | 34 + arch/arm64/include/asm/io.h | 263 +++ arch/arm64/kernel/io.c | 64 ++ arch/arm64/mm/ioremap.c | 84

[PATCH v2 14/31] arm64: DMA mapping API

2012-08-14 Thread Catalin Marinas
deal with cache maintenance. Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/dma-mapping.h | 124 arch/arm64/mm/dma-mapping.c | 208 ++ 2 files changed, 332 insertions(+), 0 deletions(-) create mode 100644 arch/arm64/include

[PATCH v2 20/31] arm64: User access library functions

2012-08-14 Thread Catalin Marinas
This patch add support for various user access functions. These functions use the standard LDR/STR instructions and not the LDRT/STRT variants in order to allow kernel addresses (after set_fs(KERNEL_DS)). Signed-off-by: Will Deacon Signed-off-by: Marc Zyngier Signed-off-by: Catalin Marinas

[PATCH v2 24/31] arm64: Add support for /proc/sys/debug/exception-trace

2012-08-14 Thread Catalin Marinas
This patch allows setting of the show_unhandled_signals variable via /proc/sys/debug/exception-trace. The default value is currently 1 showing unhandled user faults (undefined instructions, data aborts) and invalid signal stack frames. Signed-off-by: Catalin Marinas --- kernel/sysctl.c |2

[PATCH v2 07/31] arm64: Process management

2012-08-14 Thread Catalin Marinas
ID_AA64AFR0_EL1 register). Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/mmu_context.h | 152 + arch/arm64/include/asm/thread_info.h | 124 ++ arch/arm64/kernel/process.c | 416 ++ arch/arm64/mm/context.c

[PATCH v2 09/31] arm64: Cache maintenance routines

2012-08-14 Thread Catalin Marinas
Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/cache.h | 32 arch/arm64/include/asm/cacheflush.h | 209 ++ arch/arm64/include/asm/cachetype.h | 48 ++ arch/arm64/mm/cache.S | 279 +++ arch/arm64

[PATCH v2 00/31] AArch64 Linux kernel port

2012-08-14 Thread Catalin Marinas
elp/topic/com.arm.doc.genc010197a/index.html - ABI (PCS, ELF, DWARF, C++): http://infocenter.arm.com/help/topic/com.arm.doc.ihi0059a/index.html Regards, Catalin Catalin Marinas (23): arm64: Assembly macros and definitions arm64: Kernel booting and initialisation arm64: Exception handling

[PATCH v2 08/31] arm64: CPU support

2012-08-14 Thread Catalin Marinas
ideally be pushed to firmware. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/cputype.h | 49 + arch/arm64/include/asm/proc-fns.h | 51 ++ arch/arm64/include/asm/processor.h | 174 arch/arm64/include

Re: [PATCH v2 04/31] arm64: MMU definitions

2012-08-15 Thread Catalin Marinas
Hi Arnd, On Wed, Aug 15, 2012 at 02:30:01PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > +/* > > + * TCR flags. > > + */ > > +#define TCR_TxSZ(x)(((64 - (x)) << 16) | ((64 - (x)) << 0)) > > +#def

Re: [PATCH v2 27/31] arm64: Loadable modules

2012-08-15 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 04:23:21PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > + > > +void *module_alloc(unsigned long size) > > +{ > > + return __vmalloc_node_range(size, 1,

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-15 Thread Catalin Marinas
On 9 August 2012 09:31, Catalin Marinas wrote: > On Wed, Aug 08, 2012 at 06:07:39PM +0100, Michel Lespinasse wrote: >> kmemleak uses a tree where each node represents an allocated memory object >> in order to quickly find out what object a given address is part of. >> Howev

Re: [PATCH v2 04/31] arm64: MMU definitions

2012-08-15 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 05:34:46PM +0100, Geert Uytterhoeven wrote: > On Wed, Aug 15, 2012 at 3:30 PM, Arnd Bergmann wrote: > >> +#define TCR_IPS_40BIT(2 << 32) > > By default, constants are int, i.e. 32-bit. So you must write > > 2ULL << 32 > > >> +#define TCR_ASID16

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Catalin Marinas
Hi Olof, On Wed, Aug 15, 2012 at 12:06:45AM +0100, Olof Johansson wrote: > On Tue, Aug 14, 2012 at 06:52:03PM +0100, Catalin Marinas wrote: > > +Before jumping into the kernel, the following conditions must be met: > > + > > +- Quiesce all DMA capable devices so tha

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Catalin Marinas
On 15 August 2012 20:03, Olof Johansson wrote: > On Wed, Aug 15, 2012 at 06:37:11PM +0100, Catalin Marinas wrote: >> If we add machine_desc structure back, we could print which machine was >> matched. But so far I try to keep the SoC code to a minimum and just do >> the pro

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-16 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:20:02PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +The AArch64 exception model is made up of a number of exception levels > > +(EL0 - EL3), with EL0 and EL1 having a secure and a non-secure > > +

Re: [PATCH v2 26/31] arm64: Miscellaneous library functions

2012-08-16 Thread Catalin Marinas
On Thu, Aug 16, 2012 at 02:00:32PM +0100, Arnd Bergmann wrote: > On Thursday 16 August 2012, Will Deacon wrote: > > > > + > > > > +#include > > > > +#include > > > > +#include > > > > + > > > > +#ifdef CONFIG_SMP > > > > +arch_spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] __lock_aligned = { > > > >

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-16 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 09:53:07PM +0100, Michel Lespinasse wrote: > On Wed, Aug 15, 2012 at 9:36 AM, Catalin Marinas > wrote: > > Couldn't test it because the patch got messed up somewhere on the > > email path (tabs replaced with spaces). Is there a Git tree I can grab &g

Re: [PATCH 08/36] AArch64: Kernel booting and initialisation

2012-07-23 Thread Catalin Marinas
On Mon, Jul 23, 2012 at 06:48:12PM +0100, Stephen Warren wrote: > On 07/08/2012 03:18 AM, Catalin Marinas wrote: > > On Fri, Jul 06, 2012 at 10:32:54PM +0100, Stephen Warren wrote: > >> On 07/06/2012 03:05 PM, Catalin Marinas wrote: > >>> The patch adds the kernel

Re: [RFC 01/23] ARM: LPAE: disable phys-to-virt patching on PAE systems

2012-07-24 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 02:09:03AM +0100, Cyril Chemparathy wrote: > From: Vitaly Andrianov > > The current phys-to-virt patching mechanism is broken on PAE machines with > 64-bit physical addressing. This patch disables the patching mechanism in > such configurations. It may be broken, I don't

Re: [RFC 23/23] ARM: keystone: add switch over to high physical address range

2012-07-24 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 02:09:25AM +0100, Cyril Chemparathy wrote: > Keystone platforms have their physical memory mapped at an address outside the > 32-bit physical range. A Keystone machine with 16G of RAM would find its > memory at 0x08 - 0x0b. Ah, so the patches start to make

Re: [RFC 02/23] ARM: LPAE: use signed arithmetic for mask definitions

2012-07-24 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 02:09:04AM +0100, Cyril Chemparathy wrote: > This patch applies to PAGE_MASK, PMD_MASK, and PGDIR_MASK, where forcing > unsigned long math truncates the mask at the 32-bits. This clearly does bad > things on PAE systems. > > This patch fixes this problem by defining these

Re: [RFC 03/23] ARM: LPAE: use phys_addr_t on virt <--> phys conversion

2012-07-24 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 02:09:05AM +0100, Cyril Chemparathy wrote: > This patch fixes up the types used when converting back and forth between > physical and virtual addresses. > > Signed-off-by: Vitaly Andrianov > Signed-off-by: Cyril Chemparathy > --- > arch/arm/include/asm/memory.h | 17 ++

Re: [RFC 03/23] ARM: LPAE: use phys_addr_t on virt <--> phys conversion

2012-07-24 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 11:55:30AM +0100, Cyril Chemparathy wrote: > On 7/24/2012 6:37 AM, Catalin Marinas wrote: > > On Tue, Jul 24, 2012 at 02:09:05AM +0100, Cyril Chemparathy wrote: > >> This patch fixes up the types used when converting back and forth between > &g

Re: [08/36] AArch64: Kernel booting and initialisation

2012-07-24 Thread Catalin Marinas
On Mon, Jul 23, 2012 at 09:52:22PM +0100, Christopher Covington wrote: > Hi Catalin and Stephen, > > Catalin Marinas - July 8, 2012, 9:18 a.m. > > On Fri, Jul 06, 2012 at 10:32:54PM +0100, Stephen Warren wrote: > > > >> Also, on Tegra at least and perhaps OMAP too,

Re: [07/36] AArch64: Assembly macros and definitions

2012-07-24 Thread Catalin Marinas
On Fri, Jul 20, 2012 at 03:22:04PM +0100, Christopher Covington wrote: > On 01/-10/-28163 02:59 PM, Catalin Marinas wrote: > > This patch introduces several assembly macros and definitions used in > > the .S files across arch/aarch64/ like IRQ disabling/enabling, together > &g

Re: [08/36] AArch64: Kernel booting and initialisation

2012-07-25 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 07:53:16PM +0100, Arnd Bergmann wrote: > On Tuesday 24 July 2012, Catalin Marinas wrote: > > On Mon, Jul 23, 2012 at 09:52:22PM +0100, Christopher Covington wrote: > > > Catalin Marinas - July 8, 2012, 9:18 a.m. > > > > On Fri, Jul 06, 201

Re: [08/36] AArch64: Kernel booting and initialisation

2012-07-25 Thread Catalin Marinas
On Tue, Jul 24, 2012 at 08:42:28PM +0100, Christopher Covington wrote: > On 01/-10/-28163 02:59 PM, Catalin Marinas wrote: > > +- Architected timers > > + CNTFRQ must be programmed with the timer frequency. > > + If entering the kernel at EL1, CNTHCTL_EL2 must have EL1PCT

Re: [PATCH v2 04/31] arm64: MMU definitions

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 10:04:52AM +0100, Tony Lindgren wrote: > * Catalin Marinas [120814 10:57]: > > The virtual memory layout is described in > > Documentation/arm64/memory.txt. This patch adds the MMU definitions for > > the 4KB and 64KB translation table configurations

Re: [PATCH v2 15/31] arm64: SMP support

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 10:21:33AM +0100, Tony Lindgren wrote: > * Catalin Marinas [120814 11:05]: > > This patch adds SMP initialisation and spinlocks implementation for > > AArch64. The spinlock support uses the new load-acquire/store-release > > instructions to avoid e

Re: [PATCH v2 30/31] arm64: Build infrastructure

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 10:32:13AM +0100, Tony Lindgren wrote: > * Catalin Marinas [120814 11:00]: > > --- /dev/null > > +++ b/arch/arm64/Kconfig > > @@ -0,0 +1,261 @@ > > +config ARM64 > > + def_bool y > > + select OF > > + select OF_EARLY_FLAT

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 10:41:10AM +0100, Santosh Shilimkar wrote: > On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote: > > +The boot loader is expected to enter the kernel on each CPU in the > > +following manner: > > + > > +- The primary CPU must jump directly

Re: [PATCH v2 09/31] arm64: Cache maintenance routines

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 10:57:20AM +0100, Santosh Shilimkar wrote: > On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote: > > +ENTRY(__cpuc_flush_dcache_all) > > We have discussed the need of cache maintenance by > level kind of API for ARMv7 (A15). > > Shouldn

Re: [PATCH v2 05/31] arm64: MMU initialisation

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 11:06:11AM +0100, Santosh Shilimkar wrote: > On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote: > > This patch contains the initialisation of the memory blocks, MMU > > attributes and the memory map. Only five memory types are defined: > > Devi

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 12:20:40PM +0100, Arnd Bergmann wrote: > On Thursday 16 August 2012, Nicolas Pitre wrote: > > > +3. Decompress the kernel image > > > +-- > > > + > > > +Requirement: OPTIONAL > > > + > > > +The AArch64 kernel does not provide a decompressor and th

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-17 Thread Catalin Marinas
On Fri, Aug 17, 2012 at 02:13:59PM +0100, Tony Lindgren wrote: > * Shilimkar, Santosh [120817 03:11]: > > On Fri, Aug 17, 2012 at 3:35 PM, Catalin Marinas > > wrote: > > > > > > On Fri, Aug 17, 2012 at 10:41:10AM +0100, Santosh Shilimkar wrote: > > >

Re: [PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-17 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:47:00PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > +pgd_t *pgd_alloc(struct mm_struct *mm) > > +{ > > + pgd_t *new_pgd; > > + > > + new_pgd = (pgd_t *)__get_free_pages(GFP_KERNEL,

Re: [PATCH v2 07/31] arm64: Process management

2012-08-17 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:53:01PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +#define THREAD_SIZE_ORDER 1 > > +#define THREAD_SIZE8192 > > +#define THREAD_START_SP(THREAD_SIZE - 16) > > THR

Re: [PATCH v2 08/31] arm64: CPU support

2012-08-20 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 01:10:43AM +0100, Olof Johansson wrote: > On Tue, Aug 14, 2012 at 06:52:09PM +0100, Catalin Marinas wrote: > > > diff --git a/arch/arm64/include/asm/cputype.h > > b/arch/arm64/include/asm/cputype.h > > new file mode 100644 > > index

Re: [PATCH v2 08/31] arm64: CPU support

2012-08-20 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:56:05PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > --- /dev/null > > +++ b/arch/arm64/include/asm/procinfo.h ... > > +struct proc_info_list { > > + unsigned intcpu_val; > > +

Re: [PATCH v2 08/31] arm64: CPU support

2012-08-21 Thread Catalin Marinas
On Mon, Aug 20, 2012 at 09:47:07PM +0100, Arnd Bergmann wrote: > On Monday 20 August 2012, Catalin Marinas wrote: > > > > --- /dev/null > > > > +++ b/arch/arm64/mm/proc-syms.c > > ... > > > > +EXPORT_SYMBOL(__cpuc_flush_kern_all);

Re: [PATCH v2 14/31] arm64: DMA mapping API

2012-08-21 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 05:16:00PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > +static struct dma_map_ops arm64_swiotlb_dma_ops = { > > + .alloc = arm64_swiotlb_alloc_coherent, > > + .free = arm64_swiotlb_free_coherent,

Re: [PATCH v2 14/31] arm64: DMA mapping API

2012-08-21 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 01:40:06AM +0100, Olof Johansson wrote: > On Tue, Aug 14, 2012 at 06:52:15PM +0100, Catalin Marinas wrote: > > +static inline struct dma_map_ops *get_dma_ops(struct device *dev) > > +{ > > + if (unlikely(!dev) || !dev->archdata.dma_ops) > &

Re: [PATCH v2 16/31] arm64: ELF definitions

2012-08-21 Thread Catalin Marinas
On Thu, Aug 16, 2012 at 01:37:53PM +0100, Arnd Bergmann wrote: > On Thursday 16 August 2012, Will Deacon wrote: > > > This looks wrong: PER_LINUX/PER_LINUX32 decides over the output of the > > > uname system call, while TIF_32BIT decides over the instruction set > > > when returning to user space.

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 03:22:16PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > + > > +/* This matches struct stat64 in glibc2.1, hence the absolutely > > + * insane amounts of padding around dev_t's. > > + * Note:

Re: [PATCH v2 16/31] arm64: ELF definitions

2012-08-21 Thread Catalin Marinas
On Tue, Aug 21, 2012 at 07:17:19PM +0100, Geert Uytterhoeven wrote: > On Tue, Aug 21, 2012 at 6:06 PM, Catalin Marinas > wrote: > > But I can see on x86 that it always reports x86_64 even if the task is > > x86_32. > > Really? > > $ uname -m > x86_64 > $ li

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-09 Thread Catalin Marinas
Arnd, On Mon, Jul 09, 2012 at 04:32:11PM +0100, Arnd Bergmann wrote: > We have a lot of reviewers that are familiar with the 32 bit code, so > I think the main strategy should be to spot duplicate code early > and make sure we deal with it individually. Examples for this are > probably the impleme

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Sat, Jul 07, 2012 at 10:30:58AM +0100, Mikael Pettersson wrote: > Catalin Marinas writes: > > Compilation requires a new aarch64-none-linux-gnu- > > toolchain (http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01694.html). > > Where are the corresponding binutils patches

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Tue, Jul 10, 2012 at 08:10:23AM +0100, Ingo Molnar wrote: > * Arnd Bergmann wrote: > > On Saturday 07 July 2012, Olof Johansson wrote: > > > > ARM introduced AArch64 as part of the ARMv8 architecture > > > > > > With the risk of bikeshedding here, but I find the name awkward. How > > > about j

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Tue, Jul 10, 2012 at 04:33:58PM +0100, Alan Cox wrote: > > In the AArch32 kernel port many implementation decisions newer > > architectures were made in a way that preserves backwards compatibility > > to over 15 years ago (and for *good* reasons, ARMv4 hardware is still in > > use). But keeping

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
(just replying to a couple of points now, I'll follow up tomorrow) On Tue, Jul 10, 2012 at 09:35:27PM +0100, Ingo Molnar wrote: > Do you *really* think that all of the 32-bit ARM code should > essentially be thrown away when going to 64-bit ARM, that > patches can only touch arch/arm64/ + driver

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Tue, Jul 10, 2012 at 10:19:38PM +0100, Arnd Bergmann wrote: > On Tuesday 10 July 2012, Ingo Molnar wrote: > > Do you really think that all of the 32-bit ARM code should > > essentially be thrown away when going to 64-bit ARM, that > > patches can only touch arch/arm64/ + drivers/ or the highwa

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-11 Thread Catalin Marinas
On Tue, Jul 10, 2012 at 10:44:29PM +0100, Catalin Marinas wrote: > On Tue, Jul 10, 2012 at 09:35:27PM +0100, Ingo Molnar wrote: > > Do you *really* think that all of the 32-bit ARM code should > > essentially be thrown away when going to 64-bit ARM, that > > patches can

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