Re: [PATCH] ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

2012-09-24 Thread Will Deacon
On Thu, Sep 20, 2012 at 06:35:56PM +0100, Will Deacon wrote: On Thu, Sep 20, 2012 at 05:57:40PM +0100, Stephen Boyd wrote: +/* Determine if halting mode is enabled */ +static int halting_mode_enabled(void) +{ + u32 dscr; + + ARM_DBG_READ(c1, 0, dscr); + + if (WARN_ONCE(dscr

Re: [PATCH] ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

2012-09-24 Thread Will Deacon
On Mon, Sep 24, 2012 at 07:04:56PM +0100, Stephen Boyd wrote: On 09/24/12 10:19, Will Deacon wrote: Ok, I've pushed a bunch of patches to my hw-breakpoint branch (head commit 55cb726797c7). I'll post them to the list after the merge window, but please do take them for a spin if you get

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-03 Thread Will Deacon
On Tue, Oct 02, 2012 at 11:01:04PM +0100, Andrew Morton wrote: On Tue, 2 Oct 2012 17:59:11 +0100 Will Deacon will.dea...@arm.com wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being set automatically. With the ARM architecture a page

Re: [PATCH 1/1] ARM: oprofile: add A5/A7/A15 entries in op_perf_name

2012-11-05 Thread Will Deacon
On Fri, Nov 02, 2012 at 10:43:36AM +, jgq...@gmail.com wrote: From: Xiao Jiang jgq...@gmail.com Add related name for A5/A7/A15 which are consistent with the OProfile user ABI. Signed-off-by: Xiao Jiang jgq...@gmail.com --- arch/arm/oprofile/common.c |3 +++ 1 files changed, 3

Re: [PATCH 1/4] arch/arm: add syscall_get_arch

2012-11-05 Thread Will Deacon
On Fri, Nov 02, 2012 at 12:14:57AM +, Kees Cook wrote: From: Will Drewry w...@chromium.org Provide an ARM implementation of syscall_get_arch. This is a pre-requisite for CONFIG_HAVE_ARCH_SECCOMP_FILTER. Signed-off-by: Will Drewry w...@chromium.org Signed-off-by: Kees Cook

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-19 Thread Will Deacon
On Thu, Oct 18, 2012 at 11:05:02PM +0100, Andrew Morton wrote: On Wed, 17 Oct 2012 16:54:02 +0100 Will Deacon will.dea...@arm.com wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being set automatically. With the ARM architecture a page

Re: read_current_timer undefined!

2012-10-19 Thread Will Deacon
On Fri, Oct 19, 2012 at 07:19:27AM +0100, Alexander Holler wrote: Hello, Am 18.10.2012 14:16, schrieb Thomas Meyer: ERROR: read_current_timer [drivers/gpu/drm/udl/udl.ko] undefined! ERROR: read_current_timer [crypto/tcrypt.ko] undefined! There is already a long thread about that,

Re: [RESEND PATCH 4/4] net: smc91x: use io{read,write}*_rep accessors instead of string functions

2012-10-19 Thread Will Deacon
On Fri, Oct 19, 2012 at 09:25:48AM +0100, James Hogan wrote: On 17/10/12 16:45, Will Deacon wrote: The {read,write}s{b,w,l} operations are not defined by all architectures and are being removed from the asm-generic/io.h interface. This patch replaces the usage of these string functions

Re: [RESEND PATCH 2/4] asm-generic: io: don't perform swab during {in,out} string functions

2012-10-19 Thread Will Deacon
On Thu, Oct 18, 2012 at 06:48:16AM +0100, Geert Uytterhoeven wrote: On Thu, Oct 18, 2012 at 2:04 AM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: The sort story is that endianness is not a property of the IO port but of the information that transit through it. If you're just going

[PATCH v2 2/3] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-19 Thread Will Deacon
the scatterlist with junk. This patch uses kmap_to_page when populating the page array for a kernel buffer. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Sasha Levin levinsasha...@gmail.com Signed-off-by: Will Deacon will.dea...@arm.com --- net/9p/trans_virtio.c |3 ++- 1 files changed, 2 insertions

[PATCH v2 1/3] mm: highmem: export kmap_to_page for modules

2012-10-19 Thread Will Deacon
Some virtio device drivers (9p) need to translate high virtual addresses to physical addresses, which are inserted into the virtqueue for processing by userspace. This patch exports the kmap_to_page symbol, so that the affected drivers can be compiled as modules. Signed-off-by: Will Deacon

[PATCH v2 3/3] virtio: force vring descriptors to be allocated from lowmem

2012-10-19 Thread Will Deacon
...@rustcorp.com.au Cc: Sasha Levin levinsasha...@gmail.com Signed-off-by: Will Deacon will.dea...@arm.com --- drivers/virtio/virtio_ring.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index e639584..286c30c

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-22 Thread Will Deacon
On Fri, Oct 19, 2012 at 07:49:55PM +0100, Andrew Morton wrote: On Fri, 19 Oct 2012 10:10:16 +0100 Will Deacon will.dea...@arm.com wrote: On Thu, Oct 18, 2012 at 11:05:02PM +0100, Andrew Morton wrote: On Wed, 17 Oct 2012 16:54:02 +0100 Will Deacon will.dea...@arm.com wrote

[PATCH] rbtree: include linux/compiler.h for definition of __always_inline

2012-10-22 Thread Will Deacon
includes linux/compiler.h in rbtree_augmented.h so that the __always_inline macro is resolved correctly. Cc: Pekka Enberg penb...@kernel.org Cc: Michel Lespinasse wal...@google.com Cc: Ingo Molnar mi...@elte.hu Signed-off-by: Will Deacon will.dea...@arm.com --- include/linux/rbtree_augmented.h |1

Re: [PATCH] rbtree: include linux/compiler.h for definition of __always_inline

2012-10-23 Thread Will Deacon
On Mon, Oct 22, 2012 at 10:56:21PM +0100, Michel Lespinasse wrote: On Mon, Oct 22, 2012 at 10:01 AM, Will Deacon will.dea...@arm.com wrote: rb_erase_augmented is a static function annotated with __always_inline. This causes a compile failure when attempting to use the rbtree implementation

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-23 Thread Will Deacon
On Mon, Oct 22, 2012 at 07:18:43PM +0100, Andrew Morton wrote: On Mon, 22 Oct 2012 11:35:03 +0100 Will Deacon will.dea...@arm.com wrote: On Fri, Oct 19, 2012 at 07:49:55PM +0100, Andrew Morton wrote: Ho hum. I'll drop mm-thp-set-the-accessed-flag-for-old-pages-on-access-fault.patch

Re: [PATCH v2 1/3] mm: highmem: export kmap_to_page for modules

2012-10-23 Thread Will Deacon
On Tue, Oct 23, 2012 at 12:55:57AM +0100, Rusty Russell wrote: Will Deacon will.dea...@arm.com writes: Some virtio device drivers (9p) need to translate high virtual addresses to physical addresses, which are inserted into the virtqueue for processing by userspace. This patch exports

Re: ERROR: read_current_timer [fs/ext4/ext4.ko] undefined

2012-10-23 Thread Will Deacon
On Tue, Oct 23, 2012 at 03:48:21PM +0100, Kukjin Kim wrote: Hi all, Now, v3.7-rc2 happens following build error with s3c2410_defconfig... ERROR: read_current_timer [fs/ext4/ext4.ko] undefined! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make[1]: *** Waiting for

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-24 Thread Will Deacon
On Tue, Oct 23, 2012 at 10:50:27PM +0100, Andrew Morton wrote: On Tue, 23 Oct 2012 11:11:25 +0100 Will Deacon will.dea...@arm.com wrote: This patch (mm: thp: Set the accessed flag for old pages on access fault) doesn't depend on ARM: mm: Transparent huge page support for LPAE systems

Re:

2012-10-11 Thread Will Deacon
On Sun, Oct 07, 2012 at 07:36:20AM +0100, Geert Uytterhoeven wrote: On Sun, Oct 7, 2012 at 1:15 AM, David Howells dhowe...@redhat.com wrote: (3) m68k turned out to have a header installation problem due to it lacking a kvm_para.h file. Sh also. and arm64 iirc. It should also

Re: [GIT PULL 0/9] ARM architecture fixes for 3.7

2012-10-12 Thread Will Deacon
Hi Arnd, Russell, On Tue, Oct 09, 2012 at 07:40:24PM +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Russell King - ARM Linux wrote: On Tue, Oct 09, 2012 at 05:22:54PM +0200, Arnd Bergmann wrote: Here are some patches that belong into your domain, I hope you can just send the

Re: [PATCHv3] ARM: Sort exception table at compile time

2012-10-25 Thread Will Deacon
with this for my A15 platform and it seems to work fine when targetting either ARM or Thumb-2 kernels. Tested-by: Will Deacon will.dea...@arm.com Cheers, Will -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

[PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-25 Thread Will Deacon
: Chris Metcalf cmetc...@tilera.com Cc: Kirill A. Shutemov kir...@shutemov.name Cc: Andrea Arcangeli aarca...@redhat.com Signed-off-by: Will Deacon will.dea...@arm.com --- Ok chaps, I rebased this thing onto today's next (which basically necessitated a rewrite) so I've reluctantly dropped my acks

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Will Deacon
On Fri, Oct 26, 2012 at 08:44:35AM +0100, Kirill A. Shutemov wrote: On Thu, Oct 25, 2012 at 05:44:31PM +0100, Will Deacon wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being set automatically. With the ARM architecture a page access

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Will Deacon
On Fri, Oct 26, 2012 at 07:19:55AM +0100, Ni zhan Chen wrote: On 10/26/2012 12:44 AM, Will Deacon wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being set automatically. With the ARM architecture a page access fault is raised instead

Re: [RESEND PATCH 1/4] asm-generic: io: remove {read,write} string functions

2012-10-26 Thread Will Deacon
On Fri, Oct 26, 2012 at 02:29:03PM +0100, Arnd Bergmann wrote: On Wednesday 17 October 2012, Will Deacon wrote: The {read,write}s{b,w,l} functions are not defined across all architectures and therefore shouldn't be used by portable drivers. We should encourage driver writers to use the io

Re: [PATCH 2/4] arch/arm: move secure_computing into trace

2012-11-09 Thread Will Deacon
One really minor nit... On Thu, Nov 08, 2012 at 08:59:31PM +, Kees Cook wrote: There is very little difference in the TIF_SECCOMP and TIF_SYSCALL_WORK path in entry-common.S, so merge TIF_SECCOMP into TIF_SYSCALL_WORK and move seccomp into the syscall_trace_enter() handler. Expanded

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-12 Thread Will Deacon
On Fri, Nov 09, 2012 at 09:17:33PM +, Rob Clark wrote: From: Rob Clark r...@ti.com A new atomic modeset/pageflip ioctl being developed in DRM requires get_user() to work for 64bit types (in addition to just put_user()). Signed-off-by: Rob Clark r...@ti.com ---

Re: [PATCH] Set bit 22 in the PL310 (cache controller) AuxCtlr register

2012-11-12 Thread Will Deacon
On Mon, Nov 12, 2012 at 06:45:47AM +, Shiraz Hashim wrote: On Fri, Nov 09, 2012 at 09:54:01AM +, Will Deacon wrote: On Fri, Nov 09, 2012 at 04:01:52AM +, Shiraz Hashim wrote: From: Catalin Marinas catalin.mari...@arm.com Clearing bit 22 in the PL310 Auxiliary Control

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-12 Thread Will Deacon
On Mon, Nov 12, 2012 at 01:46:57PM +, Rob Clark wrote: On Mon, Nov 12, 2012 at 4:46 AM, Will Deacon will.dea...@arm.com wrote: On Fri, Nov 09, 2012 at 09:17:33PM +, Rob Clark wrote: @@ -122,22 +124,35 @@ extern int __get_user_4(void

Re: [PATCH] ARM: kexec: fix segment memory addresses check

2012-10-16 Thread Will Deacon
= get_user(header, (__be32*)current_segment-buf); if (err) -- 1.7.2.5 Thanks for this Aaro: Acked-by: Will Deacon will.dea...@arm.com Please stick it in the patch system. Will -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-17 Thread Will Deacon
that virtual addresses for virtio queue descriptors are converted to physical addresses using kmap_to_page, which handles high memory correctly. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Sasha Levin levinsasha...@gmail.com Signed-off-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Will Deacon

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-17 Thread Will Deacon
Hi Andrew, On Tue, Oct 02, 2012 at 11:01:04PM +0100, Andrew Morton wrote: On Tue, 2 Oct 2012 17:59:11 +0100 Will Deacon will.dea...@arm.com wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being set automatically. With the ARM architecture

[RESEND PATCH 3/4] mmc: mmci: use io{read,write}*_rep accessors instead of string functions

2012-10-17 Thread Will Deacon
a...@arndb.de Cc: Ben Herrenschmidt b...@kernel.crashing.org Signed-off-by: Will Deacon will.dea...@arm.com --- drivers/mmc/host/mmci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index edc3e9b..4f125b4 100644

[RESEND PATCH 1/4] asm-generic: io: remove {read,write} string functions

2012-10-17 Thread Will Deacon
header as they have no place in a new architecture port. Cc: Arnd Bergmann a...@arndb.de Cc: Mike Frysinger vap...@gentoo.org Cc: Ben Herrenschmidt b...@kernel.crashing.org Signed-off-by: Will Deacon will.dea...@arm.com --- include/asm-generic/io.h | 30 -- 1 files

[RESEND PATCH 2/4] asm-generic: io: don't perform swab during {in,out} string functions

2012-10-17 Thread Will Deacon
the endian-correcting accessors. Cc: Mike Frysinger vap...@gentoo.org Cc: Ben Herrenschmidt b...@kernel.crashing.org Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Will Deacon will.dea...@arm.com --- include/asm-generic/io.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions

[RESEND PATCH 0/4] Fix endianness of generic I/O accessors

2012-10-17 Thread Will Deacon
, Will Big endian is not dead -- it just smells funny. Will Deacon (4): asm-generic: io: remove {read,write} string functions asm-generic: io: don't perform swab during {in,out} string functions mmc: mmci: use io{read,write}*_rep accessors instead of string functions net: smc91x: use io{read

[RESEND PATCH 4/4] net: smc91x: use io{read,write}*_rep accessors instead of string functions

2012-10-17 Thread Will Deacon
architectures. Cc: Arnd Bergmann a...@arndb.de Cc: Ben Herrenschmidt b...@kernel.crashing.org Signed-off-by: Will Deacon will.dea...@arm.com --- drivers/net/ethernet/smsc/smc91x.h | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/smsc

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-17 Thread Will Deacon
On Wed, Oct 17, 2012 at 04:26:20PM +0100, David Miller wrote: From: Will Deacon will.dea...@arm.com Date: Wed, 17 Oct 2012 14:01:25 +0100 + update_mmu_cache(vma, address, pmd); This won't build, use update_mmu_cache_pmd(). Good catch. They're both empty macros on ARM, so

Re: [PATCH] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-17 Thread Will Deacon
On Wed, Oct 17, 2012 at 05:05:00PM +0100, Sasha Levin wrote: On Wed, Oct 17, 2012 at 6:14 AM, Will Deacon will.dea...@arm.com wrote: When using a virtio transport, the 9p net device allocates pages to back the descriptors inserted into the virtqueue. These allocations may be performed from

Re: [PATCH] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-18 Thread Will Deacon
Hi Rusty, On Thu, Oct 18, 2012 at 03:19:06AM +0100, Rusty Russell wrote: Will Deacon will.dea...@arm.com writes: When using a virtio transport, the 9p net device allocates pages to back the descriptors inserted into the virtqueue. These allocations may be performed from atomic context

Re: ARM: why smp_mb() is not needed in the __mutex_fastpath_lock and __mutex_fastpath_unlock functions

2012-07-13 Thread Will Deacon
On Fri, Jul 13, 2012 at 10:10:52AM +0100, shan kang wrote: For example, in the following scenario, Process2 may get the wrong value; Process1: mutex_lock(lock); write data; (store operation) mutex_unlock(lock); Process2: mutex_lock(lock); read data; (load operation) mutex_unlock(lock);

Re: [PATCH 2/3] ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC

2012-07-13 Thread Will Deacon
--- From a34cd86747ed2992974984bcfe1fe939ba31e1b2 Mon Sep 17 00:00:00 2001 From: Will Deacon will.dea...@arm.com Date: Thu, 12 Jul 2012 17:56:40 +0100 Subject: [PATCH] ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION Rather than #define the options manually in the architecture

Re: [PATCH] [ARM] Unconditional call to smp_cross_call on UP crashes (take #2)

2012-07-16 Thread Will Deacon
On Fri, Jul 13, 2012 at 08:59:39AM +0100, Shawn Guo wrote: diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 8f46446..7babc3f 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -590,7 +590,8 @@ void smp_send_stop(void) cpumask_copy(mask,

Re: [PATCH 02/36] ipc: Add COMPAT_SHMLBA support

2012-07-18 Thread Will Deacon
On Wed, Jul 18, 2012 at 06:53:34AM +0100, Jon Masters wrote: On 07/06/2012 05:05 PM, Catalin Marinas wrote: The reason for this patch is that we want SHMLBA to be 64K on AArch64 Presumably this is to obviate differences between 64K or 4K pages? Right, we don't have D-side aliasing with

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

2012-07-18 Thread Will Deacon
On Wed, Jul 18, 2012 at 07:57:47AM +0100, Jon Masters wrote: On 07/06/2012 05:05 PM, Catalin Marinas wrote: +- CPU mode + All forms of interrupts must be masked in PSTATE.DAIF (Debug, SError, + IRQ and FIQ). + The CPU must be in either EL2 (RECOMMENDED) or non-secure EL1. Even

[PATCH] Revert KVM: Export asm-generic/kvm_para.h

2012-07-18 Thread Will Deacon
the file if it exists (which in turn causes linux/kvm_para.h to be exported), we can just remove the unconditional header export. Cc: Arnd Bergmann a...@arndb.de Cc: Avi Kivity a...@redhat.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Signed-off-by: Will Deacon will.dea...@arm.com --- I'm not sure

Re: [PATCH] Revert KVM: Export asm-generic/kvm_para.h

2012-07-18 Thread Will Deacon
Hi Arnd, On Wed, Jul 18, 2012 at 12:58:06PM +0100, Arnd Bergmann wrote: On Wednesday 18 July 2012, Will Deacon wrote: This reverts commit 56457f38f212344fb38b250cfa7e7311c065022f. For architectures without asm/kvm_para.h, asm-generic/Kbuild unconditionally tries to export the non

Re: [PATCH] Revert KVM: Export asm-generic/kvm_para.h

2012-07-19 Thread Will Deacon
Hi Geert, On Wed, Jul 18, 2012 at 01:33:01PM +0100, Geert Uytterhoeven wrote: On Wednesday 18 July 2012, Will Deacon wrote: I'm not sure what specific problem the original commit was fixing, so we may need to solve this another way if there's something I've missed. See below

Re: [PATCH v2] arm64: Fix task tracing

2013-04-15 Thread Will Deacon
On Mon, Apr 15, 2013 at 11:11:59AM +0100, Catalin Marinas wrote: On Tue, Apr 09, 2013 at 01:33:34PM +0100, Christopher Covington wrote: For accurate accounting pass contextidr_thread_switch the prev task pointer, since cpu_switch_to has at that point changed the the stack pointer.

Re: [PATCH v2] arm64: Fix task tracing

2013-04-15 Thread Will Deacon
On Mon, Apr 15, 2013 at 12:43:07PM +0100, Catalin Marinas wrote: On Mon, Apr 15, 2013 at 11:58:40AM +0100, Catalin Marinas wrote: On Mon, Apr 15, 2013 at 11:45:42AM +0100, Will Deacon wrote: Really? If prev is NULL in context_switch(...), the scheduler will implode, and I can't see

Re: [RFC PATCH 1/3] pstore-ram: use write-combine mappings

2013-04-16 Thread Will Deacon
On Tue, Apr 16, 2013 at 01:43:09AM +0100, Colin Cross wrote: On Mon, Apr 15, 2013 at 4:59 PM, Rob Herring robherri...@gmail.com wrote: Exclusive accesses still have further restrictions. From section 3.4.5: • It is IMPLEMENTATION DEFINED whether LDREX and STREX operations can be performed

Re: [PATCH 3/5] ptrace/arm: Revert hw_breakpoints: Fix racy access to ptrace breakpoints

2013-04-16 Thread Will Deacon
tracee can't be woken up and -ptrace_bps[] can't go away. Signed-off-by: Oleg Nesterov o...@redhat.com Cc: Russell King li...@arm.linux.org.uk Cc: Will Deacon will.dea...@arm.com --- arch/arm/kernel/ptrace.c |8 1 files changed, 0 insertions(+), 8 deletions(-) Looks fine to me

Re: [PATCH v2 optional 3/3] mutex: back out architecture specific check for negative mutex count

2013-04-16 Thread Will Deacon
On Mon, Apr 15, 2013 at 03:37:59PM +0100, Waiman Long wrote: If it is confirmed that all the supported architectures can allow a negative mutex count without incorrect behavior, we can then back out the architecture specific change and allow the mutex count to go to any negative number. That

[PATCH] parisc: uaccess: fix compiler warnings caused by __put_user casting

2013-04-17 Thread Will Deacon
the correct output modifiers in the __put_{user,kernel}_asm64 macros so that GCC will allocate the right registers without the need to extract the two words explicitly. Cc: Helge Deller del...@gmx.de Signed-off-by: Will Deacon will.dea...@arm.com --- arch/parisc/include/asm/uaccess.h | 18

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Will Deacon
Hello, On Thu, Apr 18, 2013 at 09:48:49AM +0100, Pranavkumar Sawargaonkar wrote: Actually i thought adding a config register will be easier to add a code than writing entire emulation as 8250 emulation will require to deal with dealing with more registers and more code. kvmtool already has an

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Will Deacon
On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: On 19 April 2013 14:35, Will Deacon will.dea...@arm.com wrote: On Thu, Apr 18, 2013 at 09:48:49AM +0100, Pranavkumar Sawargaonkar wrote: Actually i thought adding a config register will be easier to add a code than

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Will Deacon
On Fri, Apr 19, 2013 at 10:30:40AM +0100, Peter Maydell wrote: On 19 April 2013 10:27, Will Deacon will.dea...@arm.com wrote: On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: I am not against using 8250 emulation (as far as it solves printk issues for kernel booting

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-19 Thread Will Deacon
On Fri, Apr 19, 2013 at 10:34:56AM +0100, Pranavkumar Sawargaonkar wrote: On 19 April 2013 15:00, Peter Maydell peter.mayd...@linaro.org wrote: On 19 April 2013 10:27, Will Deacon will.dea...@arm.com wrote: On Fri, Apr 19, 2013 at 10:25:35AM +0100, Pranavkumar Sawargaonkar wrote: I am

Re: [PATCH 2/2] mm: vmemmap: arm64: add vmemmap_verify check for hot-add node case

2013-04-08 Thread Will Deacon
. Cc: Christoph Lameter c...@linux.com Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: Arnd Bergmann a...@arndb.de Cc: Tony Lindgren t...@atomide.com Cc: Ben Hutchings b...@decadent.org.uk Cc: Andrew Morton a...@linux-foundation.org Reported-by: Yasuaki

Re: [PATCH] arm64: Fix task tracing

2013-04-08 Thread Will Deacon
On Mon, Apr 08, 2013 at 03:42:24PM +0100, Christopher Covington wrote: On 04/03/2013 02:04 PM, Will Deacon wrote: Hi Christopher, On Wed, Apr 03, 2013 at 07:01:01PM +0100, Christopher Covington wrote: For accurate accounting call contextidr_thread_switch before a task is scheduled

Re: [PATCH v2] arm64: Fix task tracing

2013-04-10 Thread Will Deacon
On Tue, Apr 09, 2013 at 01:33:34PM +0100, Christopher Covington wrote: For accurate accounting pass contextidr_thread_switch the prev task pointer, since cpu_switch_to has at that point changed the the stack pointer. Signed-off-by: Christopher Covington c...@codeaurora.org Thanks

Re: [PATCH 0/4 v6] arm: introduce psci_smp_ops and use them on Xen

2013-04-12 Thread Will Deacon
On Thu, Apr 11, 2013 at 09:16:57PM +0100, Rob Herring wrote: On 04/11/2013 03:25 AM, Olof Johansson wrote: On Mon, Apr 08, 2013 at 12:05:17PM +0100, Stefano Stabellini wrote: Arnd, Olof, do you have any thoughts on this series? Would you be happy to carry it in the arm-soc tree? The

Re: Kexec couldn't reboot capture kernel on pandaboard ES with OMAP4460

2013-04-12 Thread Will Deacon
On Thu, Apr 11, 2013 at 05:19:21PM +0100, Stephen Warren wrote: On 04/10/2013 10:46 PM, Li Haifeng wrote: 2013/4/10 Stephen Warren swar...@wwwdotorg.org: On 04/10/2013 03:35 AM, Li Haifeng wrote: Hi, everyone. Recently, I try to run kdump on pandaboard ES with omap4460. After load

[PATCH] ARM: perf: fix group validation when using enable_on_exec

2013-03-28 Thread Will Deacon
-by: Will Deacon will.dea...@arm.com --- CC'ing some of the core guys here because I think this affects multiple (all?) architectures. arch/arm/kernel/perf_event.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c index

Re: [PATCH v4 1/2] arm: introduce psci_smp_ops

2013-04-02 Thread Will Deacon
or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Copyright (C) 2012 ARM Limited + * + * Author: Will Deacon will.dea...@arm.com + */ + +#include linux/init.h +#include linux/irqchip/arm-gic.h +#include linux/smp.h +#include linux/of.h

Re: [PATCH v5 1/3] arm: introduce psci_smp_ops

2013-04-02 Thread Will Deacon
|3 -- 8 files changed, 109 insertions(+), 68 deletions(-) create mode 100644 arch/arm/kernel/psci_smp.c delete mode 100644 arch/arm/mach-virt/platsmp.c Reviewed-by: Will Deacon will.dea...@arm.com Will -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] ARM: Fix typo CONFIG_LPAE twice

2013-04-02 Thread Will Deacon
Hi Paul, On Fri, Mar 29, 2013 at 01:18:24PM +, Paul Bolle wrote: Signed-off-by: Paul Bolle pebo...@tiscali.nl --- 0) Untested. 1) This typo was first introduced in v3.4: commit e5ab85800820edd907d3f43f285e1232f84d5a41 (ARM: 7382/1: mm: truncate memory banks to fit in 4GB space for

Re: [PATCH] alpha: makefile: don't enforce small data model for kernel builds

2013-04-03 Thread Will Deacon
Hi guys, On Mon, Mar 18, 2013 at 04:11:15AM +, Michael Cree wrote: On 18/03/2013, at 10:48 AM, Will Deacon wrote: Due to all of the goodness being packed into today's kernels, the resulting image isn't as slim as it once was. In light of this, don't pass -msmall-data to the tools

Re: [PATCH] arm64: Fix task tracing

2013-04-03 Thread Will Deacon
Hi Christopher, On Wed, Apr 03, 2013 at 07:01:01PM +0100, Christopher Covington wrote: For accurate accounting call contextidr_thread_switch before a task is scheduled, rather than after. Signed-off-by: Christopher Covington c...@codeaurora.org --- arch/arm64/kernel/process.c | 2 +- 1

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-14 Thread Will Deacon
On Thu, Mar 14, 2013 at 01:08:00PM +0530, Santosh Shilimkar wrote: Will, Hi guys, I'm out of the office at the moment and have really terrible connectivity, so I can't do too much until next week. However, I don't think adding the has_ossr check is the right fix for this problem. On Wednesday

Re: [PATCH 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-17 Thread Will Deacon
modes. Cc: Will Deacon will.dea...@arm.com Cc: Stepan Moskovchenko step...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/kernel/setup.c | 8 1 file changed, 8 insertions(+) After all this, you might as well just pass the relevant HWCAPs for your

Re: [PATCH 1/3] ARM: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n

2013-03-17 Thread Will Deacon
On Wed, Mar 13, 2013 at 01:31:59AM +, Stephen Boyd wrote: Don't advertise support for the SDIV/UDIV thumb instructions if the kernel is not compiled with support for thumb userspace. This is in line with how we remove the THUMB hwcap in these configurations. Cc: Will Deacon will.dea

Re: [PATCH 2/3] ARM: Detect support for SDIV/UDIV from ISAR0 register

2013-03-17 Thread Will Deacon
than adding more and more cpuid checks in proc-v7.S for each new cpu variant that supports these instructions. Cc: Will Deacon will.dea...@arm.com Cc: Stepan Moskovchenko step...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/kernel/setup.c | 20

Re: [Suggestion] Latest randconfig build errors for CONFIG_MMU=no

2013-03-17 Thread Will Deacon
’ [-Werror=implicit-function-declaration] arch/arm/kernel/suspend.c:72:3: 错误:隐式声明函数‘local_flush_tlb_all’ [-Werror=implicit-function-declaration] I want to be sure whether we can bear it ? You're right that at the moment that suspend code is broken for NOMMU. However, Will Deacon has

Re: udelay function delays the wrong time interval in multiprocessor system, if ARCH_HAS_READ_CURRENT_TIMER is not defined and on current timer is used.

2013-03-17 Thread Will Deacon
On Sat, Mar 16, 2013 at 03:32:43AM +, chpoph wrote: On Sat, Mar 16, 2013 at 2:14 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: We don't support different CPUs running at different frequencies with the delay loop. Sorry. Does it means that a timer-based delay

Re: [PATCH v2, part3 02/12] mm/ARM64: kill poison_init_mem()

2013-03-17 Thread Will Deacon
On Sat, Mar 16, 2013 at 05:03:23PM +, Jiang Liu wrote: Use free_reserved_area() to kill poison_init_mem() on ARM64. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc

[PATCH] alpha: makefile: don't enforce small data model for kernel builds

2013-03-17 Thread Will Deacon
: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Signed-off-by: Will Deacon will.dea...@arm.com --- arch/alpha/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile

[PATCH 2/2] alpha: irq: remove deprecated use of IRQF_DISABLED

2013-03-17 Thread Will Deacon
Interrupt handlers are always invoked with interrupts disabled, so remove all uses of the deprecated IRQF_DISABLED flag. Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Signed-off-by: Will Deacon will.dea...@arm.com --- arch

[PATCH 1/2] alpha: irq: run all handlers with interrupts disabled

2013-03-17 Thread Will Deacon
]--- A similar dump occurs if you try to reboot using magic-sysrq. Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Signed-off-by: Will Deacon will.dea...@arm.com --- arch/alpha/kernel/irq.c | 7 --- arch/alpha/kernel

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-18 Thread Will Deacon
Hi Santosh, On Mon, Mar 18, 2013 at 06:51:30AM +, Santosh Shilimkar wrote: On Friday 15 March 2013 10:30 AM, Will Deacon wrote: Furthermore, I was under the impression that hw_breakpoint did actually work on panda, which implies that a cold boot *does* manage to reset the registers

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-18 Thread Will Deacon
On Mon, Mar 18, 2013 at 03:46:28PM +, Santosh Shilimkar wrote: On Monday 18 March 2013 08:37 PM, Will Deacon wrote: That really sucks :( Does this affect all OMAP-based boards? All OMAP4 based boards.. Brilliant. Is there any way that the secure code can be fixed in future products

Re: [PATCH 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-18 Thread Will Deacon
On Mon, Mar 18, 2013 at 05:03:49PM +, Stephen Boyd wrote: On 03/17/13 07:28, Will Deacon wrote: On Wed, Mar 13, 2013 at 01:32:01AM +, Stephen Boyd wrote: Some early versions of the Krait CPU design incorrectly indicate that they only support the UDIV and SDIV instructions in Thumb

Re: [PATCHv2 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-18 Thread Will Deacon
and force the hwcaps to indicate support in both modes. Cc: Will Deacon will.dea...@arm.com Signed-off-by: Stepan Moskovchenko step...@codeaurora.org [sboyd: Rewrote commit text to reflect real reasoning now that we autodetect udiv/sdiv] Signed-off-by: Stephen Boyd sb...@codeaurora.org

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-19 Thread Will Deacon
On Tue, Mar 19, 2013 at 06:39:38AM +, Santosh Shilimkar wrote: On Monday 18 March 2013 10:36 PM, Will Deacon wrote: Any chance you could follow up with your firmware/hardware guys about this please? I'd really like to understand how we end up in this state in case we can do something

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-25 Thread Will Deacon
On Mon, Mar 25, 2013 at 09:11:00AM +, Santosh Shilimkar wrote: Will, Hi Santosh, Are you going to send the patch for 3.9-rcx ? As I said before without the patch OMAP4 CPUILDE is unusable because of that debug noise and hence it will be good to get that patch in It's in Russell's tree,

Re: [PATCH] alpha: makefile: don't enforce small data model for kernel builds

2013-03-25 Thread Will Deacon
On Mon, Mar 18, 2013 at 04:11:15AM +, Michael Cree wrote: On 18/03/2013, at 10:48 AM, Will Deacon wrote: Due to all of the goodness being packed into today's kernels, the resulting image isn't as slim as it once was. In light of this, don't pass -msmall-data to the tools, which

Re: [PATCH v2 6/6] [RFC] arm: use PSCI if available

2013-03-26 Thread Will Deacon
Hi Stefano, On Tue, Mar 26, 2013 at 02:41:15PM +, Stefano Stabellini wrote: Check for the presence of PSCI before setting smp_ops, use PSCI if it is available. This is useful because at least when running on Xen it's possible to have a PSCI node for example on a Versatile Express or an

Re: [PATCH v2 6/6] [RFC] arm: use PSCI if available

2013-03-26 Thread Will Deacon
On Tue, Mar 26, 2013 at 03:25:55PM +, Stefano Stabellini wrote: On Tue, 26 Mar 2013, Will Deacon wrote: On Tue, Mar 26, 2013 at 02:41:15PM +, Stefano Stabellini wrote: +struct smp_operations __initdata psci_smp_ops = { + .smp_init_cpus = psci_smp_init_cpus

Re: [PATCH v3] [RFC] arm: use PSCI if available

2013-03-27 Thread Will Deacon
Hi Stefano, On Wed, Mar 27, 2013 at 12:50:39PM +, Stefano Stabellini wrote: Check for the presence of PSCI before setting smp_ops, use PSCI if it is available. This is useful because at least when running on Xen it's possible to have a PSCI node for example on a Versatile Express or an

Re: [PATCH v3] [RFC] arm: use PSCI if available

2013-03-27 Thread Will Deacon
On Wed, Mar 27, 2013 at 04:33:58PM +, Rob Herring wrote: On 03/27/2013 08:38 AM, Will Deacon wrote: On Wed, Mar 27, 2013 at 12:50:39PM +, Stefano Stabellini wrote: +struct smp_operations __initdata psci_smp_ops = { + .smp_init_cpus = psci_smp_init_cpus

Re: [PATCH v3] [RFC] arm: use PSCI if available

2013-03-27 Thread Will Deacon
On Wed, Mar 27, 2013 at 04:23:15PM +, Stefano Stabellini wrote: OK, let's see if I can make this acceptable to you. Would you agree on a patch that moves virt_smp_ops out of mach-virt and renames them to psci_smp_ops (maybe to arch/arm/kernel/psci_smp_ops.c)? Moving the code out of

Re: [PATCH v3] [RFC] arm: use PSCI if available

2013-03-27 Thread Will Deacon
On Wed, Mar 27, 2013 at 05:50:51PM +, Arnd Bergmann wrote: On Wednesday 27 March 2013, Will Deacon wrote: The channel is common, sure, but I wouldn't expect the semantics of each call to be identical between firmware implementations (going back to my previous examples of CPU IDs

Re: [PATCH v3] [RFC] arm: use PSCI if available

2013-03-28 Thread Will Deacon
On Thu, Mar 28, 2013 at 03:39:42PM +, Nicolas Pitre wrote: On Thu, 28 Mar 2013, Rob Herring wrote: On 03/28/2013 09:51 AM, Nicolas Pitre wrote: On Thu, 28 Mar 2013, Stefano Stabellini wrote: - the interface to bring up secondary cpus is different and based on PSCI, in fact

Re: [PATCH] ARM: proc: Add Krait proc info

2013-03-07 Thread Will Deacon
On Wed, Mar 06, 2013 at 05:20:32AM +, Stephen Boyd wrote: On 03/05/13 14:03, Stephen Boyd wrote: On 03/05/13 00:34, Will Deacon wrote: I was looking at this the other day and wondered whether we could set HWCAP_IDIV in __v7_setup, depending on ID_ISAR0[27:24]. I can't immediately

Re: [PATCH RFC] arm: l2x0: Leverage power saving features

2013-03-03 Thread Will Deacon
Hello Soren, On Fri, Mar 01, 2013 at 06:51:26PM +, Soren Brinkmann wrote: Enable the 'dynamic clock stop' and 'standby mode' features in the l2x0 disable path. Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com --- Hi, we are currently implementing a suspend to RAM like low

Re: [PATCH] ARM: perf: Fix section mismatch on armpmu_init()

2013-03-04 Thread Will Deacon
(). This is often because armpmu_register lacks a __init annotation or the annotation of armpmu_init is wrong. Just drop the __init marking on armpmu_init() because armpmu_register() no longer has an __init marking. Signed-off-by: Stephen Boyd sb...@codeaurora.org Cheers Stephen: Acked-by: Will Deacon

Re: [PATCH LINUX v5] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-03-04 Thread Will Deacon
Hi guys, On Mon, Mar 04, 2013 at 02:45:33AM +, Rob Herring wrote: On 02/20/2013 05:48 AM, Ian Campbell wrote: On ARM we want these to be the same size on 32- and 64-bit. This is an ABI change on ARM. X86 does not change. Signed-off-by: Ian Campbell ian.campb...@citrix.com Cc:

Re: [PATCH LINUX v5] xen: event channel arrays are xen_ulong_t and not unsigned long

2013-03-05 Thread Will Deacon
On Tue, Mar 05, 2013 at 06:55:46AM +, Rob Herring wrote: I also can't immediately see why GCC would allocate oldval to an odd base register. Can you share your .config please? Here's a config: [...] Cheers Rob, that was enough to reproduce for me. The problem is likely that

Re: [PATCH] ARM: proc: Add Krait proc info

2013-03-05 Thread Will Deacon
Hi Stephen, Stepan, On Mon, Mar 04, 2013 at 11:21:39PM +, Stephen Boyd wrote: From: Stepan Moskovchenko step...@codeaurora.org Add processor info for the Qualcomm, Inc. Krait family of processors, to use the generic ARMv7 initialisation procedure but explicitly enable the IDIV hardware

  1   2   3   4   5   6   7   8   9   10   >