Re: [PATCH] perf tools: fix build for various architectures

2012-11-27 Thread Will Deacon
> > I've tested this on arm, but I don't have the necessary toolchains to > check the other cases. For the arm/arm64 parts: Acked-by: Will Deacon Cheers, Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

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 > wrote: > > We don't support different CPUs running at different frequencies with > > the delay loop. Sorry. > > Does it means that a timer-based delay implementation must be used

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 > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org &

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

2013-03-17 Thread Will Deacon
igurations. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Will Deacon --- arch/alpha/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile index 4759fe7..2cc3cc5 100644 --- a/arch/alpha/Makefile +++ b/arch

[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 Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Will Deacon --- arch/alpha/include/asm/floppy.h | 2 +- arch/alpha/kernel/irq_alpha.c | 1

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

2013-03-17 Thread Will Deacon
/0xe0 [] _stext+0x1c/0x20 ---[ end trace 5bbac1dc3a0ec32e ]--- A similar dump occurs if you try to reboot using magic-sysrq. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Will Deacon --- arch/alpha/kernel/irq.c | 7 --- arch/alpha/kernel/irq_alpha.c | 9

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

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

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

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

2013-03-18 Thread Will Deacon
ulty ISAR0 register and force the hwcaps to indicate > support in both modes. > > Cc: Will Deacon > Signed-off-by: Stepan Moskovchenko > [sboyd: Rewrote commit text to reflect real reasoning now that > we autodetect udiv/sdiv] > Signed-off-by: Stephen Boyd > --- >

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 i

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-08 Thread Will Deacon
On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: > > On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: > >> There are more and more applications coming to WinRT, Wine could support > >> them, > >> but mostly th

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread Will Deacon
Hi Andre, On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: > Am 08.02.2013 16:48, schrieb Will Deacon: > > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > >> No, i'm not sure how to improve this. How does the process can continue, >

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

2013-04-02 Thread Will Deacon
+ * published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU Ge

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

2013-04-02 Thread Will Deacon
58 > arch/arm/mach-virt/virt.c|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 -- To unsubscr

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 > --- > 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 classic MMU").

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

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 > --- > arch/arm64/kernel/process.c | 2 +- > 1 file changed,

Re: [PATCH v3 0/3] introduce static_vm for ARM-specific static mapped area

2013-01-28 Thread Will Deacon
Hello, On Thu, Jan 24, 2013 at 01:28:51AM +, Joonsoo Kim wrote: > In current implementation, we used ARM-specific flag, that is, > VM_ARM_STATIC_MAPPING, for distinguishing ARM specific static mapped area. > The purpose of static mapped area is to re-use static mapped area when > entire physic

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-25 Thread Will Deacon
On Fri, Feb 22, 2013 at 11:46:18PM +, Stephen Boyd wrote: > On 2/22/2013 10:27 AM, Will Deacon wrote: > > Hi guys, > > > > On Fri, Feb 22, 2013 at 08:08:05AM +, Stephen Boyd wrote: > >> From: Steve Muckle > >> > >> The subarchitecture fiel

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-21 Thread Will Deacon
Hi Andre, On Wed, Feb 20, 2013 at 07:34:37PM +, André Hentschel wrote: > Am 12.02.2013 16:02, schrieb Matthieu CASTET: > > The tls value is never saved to : thread->tp_value[1]. > > > > Also I don't know if you can avoid the extra ldr in the software case. > > seems like Matthieu is right, an

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-22 Thread Will Deacon
Hi guys, On Fri, Feb 22, 2013 at 08:08:05AM +, Stephen Boyd wrote: > From: Steve Muckle > > The subarchitecture field in the fpsid register is 7 bits wide. > The topmost bit is used to designate that the subarchitecture > designer is not ARM. We use this field to determine which VFP > versio

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 Wednesda

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

2013-03-17 Thread Will Deacon
etection code > to indicate support in both modes. > > Cc: Will Deacon > Cc: Stepan Moskovchenko > Signed-off-by: Stephen Boyd > --- > arch/arm/kernel/setup.c | 8 > 1 file changed, 8 insertions(+) After all this, you might as well just pass the relevant HWCAPs fo

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

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

2013-03-17 Thread Will Deacon
ate. This is better than adding more > and more cpuid checks in proc-v7.S for each new cpu variant that > supports these instructions. > > Cc: Will Deacon > Cc: Stepan Moskovchenko > Signed-off-by: Stephen Boyd > --- > arch/arm/kernel/setup.c | 20 >

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

2013-03-17 Thread Will Deacon
t; > > >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 a patch to fix it in his nommu branch on > kernel.org: > > https://git.kernel.org/cgit/linux

Re: [PATCH] ARM: MSM: Implement read_current_timer for msm timers

2012-08-27 Thread Will Deacon
On Mon, Aug 27, 2012 at 10:18:39PM +0100, Stephen Boyd wrote: > Setup the same timer used as the clocksource to be used as the > read_current_timer implementation. This allows us to support a > stable udelay implementation on MSMs where it's possible for the > CPUs to scale speeds independently of

Re: [PATCH] ARM: ux500: Fix build error due to missing include of asm/pmu.h in cpu-db8500.c

2012-09-03 Thread Will Deacon
00] Error 2 > > > > Signed-off-by: Axel Lin > > That's on linux-next not on v3.6-rcN right? > > I've applied it to my ux500 branch and will carry it unless Will Deacon > express an interest in it, PMU is his territory... I've already sent a pull for

[PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-11 Thread Will Deacon
being set in a future patch). Signed-off-by: Steve Capper Signed-off-by: Will Deacon --- arch/x86/Kconfig |4 mm/Kconfig |2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8ec3a1a..7decdcf 100644 --- a/arch/x86/Kc

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

2012-09-11 Thread Will Deacon
From: Catalin Marinas The update_mmu_cache() takes a pointer (to pte_t by default) as the last argument 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

[PATCH 0/3] Minor changes to common hugetlb code for ARM

2012-09-11 Thread Will Deacon
Hello, A few changes are required to common hugetlb code before the ARM support can be merged. I posted the main one previously, which has been picked up by akpm: http://marc.info/?l=linux-mm&m=134573987631394&w=2 The remaining three patches (included here) are all fairly minor but do affect o

[PATCH 1/3] mm: thp: Fix the pmd_clear() arguments in pmdp_get_and_clear()

2012-09-11 Thread Will Deacon
From: Catalin Marinas The CONFIG_TRANSPARENT_HUGEPAGE implementation of pmdp_get_and_clear() calls pmd_clear() with 3 arguments instead of 1. Cc: Arnd Bergmann Signed-off-by: Catalin Marinas Signed-off-by: Steve Capper Signed-off-by: Will Deacon --- include/asm-generic/pgtable.h |2

Re: [PATCH 0/3] Minor changes to common hugetlb code for ARM

2012-09-12 Thread Will Deacon
On Wed, Sep 12, 2012 at 04:27:59PM +0100, Michal Hocko wrote: > On Tue 11-09-12 17:47:13, Will Deacon wrote: > > A few changes are required to common hugetlb code before the ARM support > > can be merged. I posted the main one previously, which has been picked up > > by

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-12 Thread Will Deacon
On Wed, Sep 12, 2012 at 07:06:43PM +0100, Chris Metcalf wrote: > On 9/12/2012 11:32 AM, Michal Hocko wrote: > > Makes sense if there are going to be more archs to support THP. > > The tile architecture currently supports it in our in-house tree, > though we haven't returned it to the community yet

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-13 Thread Will Deacon
Hi Andrew, On Thu, Sep 13, 2012 at 08:05:14PM +0100, Andrew Morton wrote: > On Tue, 11 Sep 2012 17:47:16 +0100 > Will Deacon wrote: > > diff --git a/mm/Kconfig b/mm/Kconfig > > index d5c8019..3322342 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig

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

2012-10-02 Thread Will Deacon
On Tue, Oct 02, 2012 at 01:34:28AM +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 > >

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

2012-10-02 Thread Will Deacon
: Andrea Arcangeli Cc: Chris Metcalf Signed-off-by: Steve Capper Signed-off-by: Will Deacon --- v2: - Use pmd_trans_huge_lock to guard against splitting pmds - Propogate dirty (write) flag to low-level pmd modifier include/linux/huge_mm.h |2 ++ mm/huge_memory.c|8

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 wrote: > > > On x86 memory accesses to pages without the ACCESSED flag set result in the > > ACCESSED flag being set automatically. With the ARM architectu

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 wrote: > > rb_erase_augmented is a static function annotated with __always_inline. > > This causes a compile failure when attempting to use the rbtree > > implem

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

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

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 f

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 wrote: > > This patch ("mm: thp: Set the accessed flag for old pages on access fault") > > doesn't depend on "ARM: mm: Transparent huge page

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

2012-10-25 Thread Will Deacon
play with this for my A15 platform and it seems to work fine when targetting either ARM or Thumb-2 kernels. Tested-by: Will Deacon 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

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

2012-10-25 Thread Will Deacon
: Chris Metcalf Cc: Kirill A. Shutemov Cc: Andrea Arcangeli Signed-off-by: Will Deacon --- Ok chaps, I rebased this thing onto today's next (which basically necessitated a rewrite) so I've reluctantly dropped my acks and kindly ask if you could eyeball the new code, especially where the

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 p

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

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 encou

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 > > Add related name for A5/A7/A15 which are consistent with the OProfile > user ABI. > > Signed-off-by: Xiao Jiang > --- > arch/arm/oprofile/common.c |3 +++ > 1 files changed, 3 insertions(+), 0 deletion

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 > > Provide an ARM implementation of syscall_get_arch. This is a pre-requisite > for CONFIG_HAVE_ARCH_SECCOMP_FILTER. > > Signed-off-by: Will Drewry > Signed-off-by: Kees Cook > --- > arch/arm/include/asm/syscall.h

[PATCH] kbuild: kvm: make export of linux/kvm_para.h unconditional

2012-07-26 Thread Will Deacon
architectures without asm/kvm_para.h to use the generic version. I also took the liberty of removing some dead lines from the wildcarding which was searcing for asm-$(SRCARCH) directores under $(srctree). Cc: Arnd Bergmann Cc: Avi Kivity Tested-by: Geert Uytterhoeven Signed-off-by: Will Deacon

Re: [PATCH 2/2] arm: pmu: add support for per-cpu PMU interrupts.

2012-07-30 Thread Will Deacon
Hi Chris, On Mon, Jul 30, 2012 at 03:32:12PM +0100, Chris Smith wrote: > We have systems where the PMU interrupts are PPIs, and so per-cpu. This > patch adds support for per-cpu PMU interrupts to the perf event code. > > Note that because the dev_id passed to request_percpu_irq has to be > percpu

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_

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

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Will Deacon
On Wed, Oct 02, 2013 at 05:55:28PM +0100, Santosh Shilimkar wrote: > The sched_clock code uses 2 levels of function pointers, sched_clock_func() > and read_sched_clock() but the no sched_clock check in postinit() just > checks read_sched_clock(). > > This leads to kernel falling back to jiffy base

Re: [PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-10-02 Thread Will Deacon
On Fri, Jul 19, 2013 at 12:59:44AM +0100, John Stultz wrote: > On 07/18/2013 04:21 PM, Stephen Boyd wrote: > > This patchset adds support for 64 bit counters in the generic > > sched_clock code and converts drivers over to use it. Based > > on v3.11-rc1. > > > > Changes since v3: > > * Move to us

Re: [PATCH v4 05/17] arch_timer: Move to generic sched_clock framework

2013-10-02 Thread Will Deacon
> > #include > #include > @@ -281,6 +282,9 @@ static int __init arch_timer_register(void) > timecounter_init(&timecounter, &cyclecounter, >arch_counter_get_cntvct()); > > + /* 56 bits minimum, so we assume worst case rollover */ > +

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Will Deacon
On Wed, Oct 02, 2013 at 06:42:40PM +0100, Stephen Boyd wrote: > On 10/02/13 10:27, Santosh Shilimkar wrote: > > Really... I have not created patch out of fun. > > Its broken on my keystone machine at least where the sched_clock is > > falling back on jiffy based sched_clock even in presence of arch

Re: [PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-10-02 Thread Will Deacon
On Wed, Oct 02, 2013 at 07:02:58PM +0100, John Stultz wrote: > On 10/02/2013 10:47 AM, Will Deacon wrote: > > On Fri, Jul 19, 2013 at 12:59:44AM +0100, John Stultz wrote: > >> On 07/18/2013 04:21 PM, Stephen Boyd wrote: > >>> This patchset adds support for

Re: [PATCH v2 3/3] asm-generic: syscall_get/set_arguments accept zero for number of arguments

2013-10-03 Thread Will Deacon
6]. > * @args:array of argument values to store > * > * Changes @n arguments to the system call starting with the @i'th argument. Acked-by: Will Deacon Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [RFC] ARM: lockless get_user_pages_fast()

2013-10-03 Thread Will Deacon
On Thu, Oct 03, 2013 at 06:15:15PM +0100, Zi Shen Lim wrote: > Futex uses GUP. Currently on ARM, the default __get_user_pages_fast > being used always returns 0, leading to a forever loop in get_futex_key :( > > Implementing GUP solves this problem. > > Tested on vexpress-A15 on QEMU. > 8<---

Re: [RFC] ARM: lockless get_user_pages_fast()

2013-10-04 Thread Will Deacon
Hi Steve, [adding linux-mm, since this has turned into a discussion about THP splitting] On Fri, Oct 04, 2013 at 11:31:42AM +0100, Steve Capper wrote: > On Thu, Oct 03, 2013 at 11:07:44AM -0700, Zi Shen Lim wrote: > > On Thu, Oct 3, 2013 at 10:27 AM, Will Deacon wrote: > > &

Re: Seg fault occurs when running statically compiled binary from kernel using call_usermodehelper

2013-07-10 Thread Will Deacon
On Wed, Jul 10, 2013 at 11:42:25AM +0100, Ashish Sangwan wrote: > Any heads up on this? > > or could someone just advice what can we do to debug this? > > The ret_from_fork currently looks like following: > /* > * This is how we return from a fork. > */ > ENTRY(ret_from_fork) > bl

Re: Seg fault occurs when running statically compiled binary from kernel using call_usermodehelper

2013-07-11 Thread Will Deacon
On Wed, Jul 10, 2013 at 07:52:00PM +0100, Russell King - ARM Linux wrote: > On Wed, Jul 10, 2013 at 05:34:11PM +0100, Will Deacon wrote: > > Ok, I've finally got to the bottom of this, but I'm not sure on the best way > > to fix it. > > I don't think you have!

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-11 Thread Will Deacon
On Tue, Jul 09, 2013 at 04:05:30PM +0100, Vince Weaver wrote: > On Tue, 9 Jul 2013, Peter Zijlstra wrote: > > > On Mon, Jul 08, 2013 at 10:24:34PM -0400, Vince Weaver wrote: > > > > > > So something like they have on ARM? > > > > > > vince@pandaboard:/sys/bus/event_source/devices$ ls -l > > > lr

Re: [PATCH 3/4] perf tools: Check libunwind for availability of dwarf parsing feature

2013-09-17 Thread Will Deacon
Arnaldo, Ingo, On Mon, Sep 16, 2013 at 10:17:32AM +0100, Jean Pihet wrote: > The newly added dwarf unwinding feature [1] requires: > . a recent version (>= 1.1) of libunwind, > . libunwind to be configured with --enable-debug-frame. > > [1] http://www.spinics.net/lists/kernel/msg1598951.html > >

Re: [RFC] Kernel semantics of relaxed MMIO accessors

2013-09-17 Thread Will Deacon
[expanding CC list and bumping since the merge window is now over] On Mon, Sep 09, 2013 at 12:44:49PM +0100, Will Deacon wrote: > Hello, > > During the review of a recent patch to add support for atomic MMIO > read-modify-write sequences between drivers on ARM, it was suggested >

Re: Commit breaks strace: ARM: entry: allow ARM-private syscalls to be restarted

2013-09-18 Thread Will Deacon
On Tue, Sep 17, 2013 at 10:57:49PM +0100, Jason Gunthorpe wrote: > Hi Will, Hi Jason, > I was just testing v3.12-rc1 (on kirkwood) and noticed that strace is > not working: Thanks for the report! > $ strace /bin/ls > mmap2(0xb6f79000, 9552, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANO

Re: Commit breaks strace: ARM: entry: allow ARM-private syscalls to be restarted

2013-09-18 Thread Will Deacon
On Wed, Sep 18, 2013 at 10:17:48AM +0100, Will Deacon wrote: > On Tue, Sep 17, 2013 at 10:57:49PM +0100, Jason Gunthorpe wrote: > > This happens with the latest git head for strace, as well as the 4.7 > > release. > > > > Hopefully you can cook up a fix :) > > I&

Re: 3.12-rc1: no longer compiles for Nokia n900 (omap based)

2013-09-19 Thread Will Deacon
On Thu, Sep 19, 2013 at 10:30:02AM +0100, Pavel Machek wrote: > Hi! > > I get: > > CC arch/arm/kernel/machine_kexec.o > /tmp/ccCFXeXG.s: Assembler messages: > /tmp/ccCFXeXG.s:217: Error: garbage following instruction -- `dsb > nshst' > /tmp/ccCFXeXG.s:225: Error: garbage following instruct

[PATCH] lockref: use cmpxchg64 explicitly for lockless updates

2013-09-19 Thread Will Deacon
-by: Will Deacon --- An alternative to this patch is to go through the 32-bit architectures that implement cmpxchg64, reworking their cmpxchg definitions to switch to the 64-bit version based on the sizeof the argument. lib/lockref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] lockref: use cmpxchg64 explicitly for lockless updates

2013-09-20 Thread Will Deacon
On Thu, Sep 19, 2013 at 07:11:32PM +0100, Linus Torvalds wrote: > On Thu, Sep 19, 2013 at 1:06 PM, Will Deacon wrote: > > The cmpxchg() function tends not to support 64-bit arguments on 32-bit > > architectures. This could be either due to use of unsigned long arguments > >

Re: [PATCH] lockref: use cmpxchg64 explicitly for lockless updates

2013-09-20 Thread Will Deacon
On Fri, Sep 20, 2013 at 11:08:06AM +0100, Will Deacon wrote: > On Thu, Sep 19, 2013 at 07:11:32PM +0100, Linus Torvalds wrote: > > From a performance standpoint, lockref really is expected to mainly > > help with big machines. Only insane people would do big machines with > >

Re: [PATCH] lockref: use cmpxchg64 explicitly for lockless updates

2013-09-20 Thread Will Deacon
On Fri, Sep 20, 2013 at 05:00:19PM +0100, Linus Torvalds wrote: > On Fri, Sep 20, 2013 at 10:45 AM, Will Deacon wrote: > > If we can guarantee that the CODE just messes around with the lockref, those > > barriers probably aren't needed... > > Yes. I've been thyinki

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-04 Thread Will Deacon
Hi Christoph, On Tue, Sep 03, 2013 at 03:39:57PM +0100, Christoph Lameter wrote: > On Fri, 30 Aug 2013, Will Deacon wrote: > > ...so I don't think this is quite right, and indeed, we get a bunch of > > errors > > from GCC: > > > > arch/a

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-04 Thread Will Deacon
On Wed, Sep 04, 2013 at 03:17:09PM +0100, Christoph Lameter wrote: > On Wed, 4 Sep 2013, Will Deacon wrote: > > God knows! You're completely right, and we simply disable interrupts which I > > somehow misread as taking a lock. However, is it guaranteed that mixing > > a

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-04 Thread Will Deacon
On Wed, Sep 04, 2013 at 03:54:04PM +0100, Christoph Lameter wrote: > On Wed, 4 Sep 2013, Will Deacon wrote: > > > Hmm, why can't you get interrupted during atomic64_xchg? On ARM, we have the > > following sequence: > > AFAICT atomic means one uninterruptible acti

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-04 Thread Will Deacon
On Wed, Sep 04, 2013 at 07:09:04PM +0100, Christoph Lameter wrote: > On Wed, 4 Sep 2013, Will Deacon wrote: > > > On ARM, yes. I'm worried that there may be an architecture where the change- > > or-fail operation would only fail if the access from the interrupt handler >

Re: [PATCH 3/3] perf: parse the .debug_frame section in case .eh_frame is not present

2013-09-05 Thread Will Deacon
Hi Jean, [adding Michael, since I know he was interested in this] On Wed, Sep 04, 2013 at 07:04:14PM +0100, Jean Pihet wrote: > On ARM the debug info is not present in the .eh_frame sections but > instead in .debug_frame. > Use libunwind to load and parse the debug info. How have you tested this

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-05 Thread Will Deacon
Hi again Christoph, On Wed, Sep 04, 2013 at 09:58:31PM +0100, Christoph Lameter wrote: > Here is a patch to be applied after the earlier one to convert the local_t > use to this_cpu. Not sure if I got the local_dec_and_test conversion > right. [...] > @@ -118,11 +117,11 @@ void disable_debug_mon

Re: [PATCH 3/3] perf: parse the .debug_frame section in case .eh_frame is not present

2013-09-05 Thread Will Deacon
On Thu, Sep 05, 2013 at 02:17:30PM +0100, Ard Biesheuvel wrote: > On 5 September 2013 15:05, Jean Pihet wrote: > [..] > > Here are the commands I have been using: > > perf record -g dwarf -- > > perf report --sort symbol --call-graph --stdio > > > > Ah, I failed to add the 'dwarf' after -g, ho

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-05 Thread Will Deacon
On Thu, Sep 05, 2013 at 03:24:25PM +0100, Christoph Lameter wrote: > On Thu, 5 Sep 2013, Will Deacon wrote: > > > > > > > if (el == DBG_ACTIVE_EL1 && > > > - local_dec_and_test(this_cpu_ptr(&kde_ref_count))) > > > + this_

Re: [gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-09-06 Thread Will Deacon
On Thu, Sep 05, 2013 at 06:52:19PM +0100, Christoph Lameter wrote: > On Thu, 5 Sep 2013, Will Deacon wrote: > > > > Ok can you take it from here and modify it? I have no build and test > > > environment set up for ARM. > > > > Sure. Does that include the ori

Re: [PATCH 2/5] arm: LLVMLinux: use current_stack_pointer for percpu

2013-09-09 Thread Will Deacon
gned long current_sp; \ + asm ("mov %0, r13" : "=r" (current_sp)); \ + current_sp; \ +}) + +/* * how to get the thread information struct from C */ static inline struct thread_info *current_thread_info(void) __attribute_const__; > this sp trickery was introd

[PATCH] alpha: perf: fix out-of-bounds array access triggered from raw event

2013-09-10 Thread Will Deacon
t types for the PMU, preventing the out-of-bounds array access. Cc: Peter Zijlstra Cc: Michael Cree Cc: Matt Turner Signed-off-by: Will Deacon --- arch/alpha/kernel/perf_event.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/perf_eve

Re: [PATCH v5 1/5] ARM: add basic Trusted Foundations support

2013-09-10 Thread Will Deacon
Hi guys, On Mon, Sep 09, 2013 at 07:15:31AM +0100, Alexandre Courbot wrote: > On Fri, Sep 6, 2013 at 3:35 AM, Rob Herring wrote: > > On 09/04/2013 10:27 PM, Alexandre Courbot wrote: > >> Trusted Foundations is a TrustZone-based secure monitor for ARM that > >> can be invoked using a consistent S

Re: [RFC PATCH v2 04/25] smp, ARM: kill SMP single function call interrupt

2013-09-12 Thread Will Deacon
w only one interrupt > is needed for architecture specific code to support generic SMP function > call interfaces, so kill the redundant single function call interrupt. Acked-by: Will Deacon Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

Re: [RFC PATCH v2 05/25] smp, ARM64: kill SMP single function call interrupt

2013-09-12 Thread Will Deacon
w only one interrupt > is needed for architecture specific code to support generic SMP function > call interfaces, so kill the redundant single function call interrupt. Acked-by: Will Deacon Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

Re: [PATCH 0/3] perf: parse the dwarf backtrace info from .debug_frame section

2013-09-12 Thread Will Deacon
On Thu, Sep 12, 2013 at 01:19:53PM +0100, Peter Zijlstra wrote: > On Thu, Sep 12, 2013 at 02:07:23PM +0200, Jean Pihet wrote: > > Hi, > > > > -- Adding more maintainers in the To: list -- > > > > Ping about the patch set, is this one acceptable for mainline? > > The below looks to be mostly ARM

Re: [PATCH] net: smsc: remove deprecated IRQF_DISABLED

2013-09-13 Thread Will Deacon
[adding David Brown] On Fri, Sep 13, 2013 at 05:27:47AM +0100, Michael Opdenacker wrote: > This patch proposes to remove the IRQF_DISABLED flag from > code in drivers/net/ethernet/smsc/ > > It's a NOOP since 2.6.35 and it will be removed one day. > > Signed-off-by: Michael Opdenacker > --- > d

Re: [PATCH 5/5] ARM64: Add support for ILP32 ABI.

2013-09-13 Thread Will Deacon
On Fri, Sep 13, 2013 at 07:18:48AM +0100, Andrew Pinski wrote: > On Wed, Sep 11, 2013 at 7:32 AM, Catalin Marinas > wrote: > > On Mon, Sep 09, 2013 at 10:32:59PM +0100, Andrew Pinski wrote: > >> This patch adds full support of the ABI to the ARM64 target. > > > > This description is too short. Ple

Re: [PATCH 5/5] ARM64: Add support for ILP32 ABI.

2013-09-13 Thread Will Deacon
On Fri, Sep 13, 2013 at 10:57:40AM +0100, Catalin Marinas wrote: > On Fri, Sep 13, 2013 at 10:47:12AM +0100, Will Deacon wrote: > > On Fri, Sep 13, 2013 at 07:18:48AM +0100, Andrew Pinski wrote: > > > On Wed, Sep 11, 2013 at 7:32 AM, Catalin Marinas > > > wrote: > &g

Re: [PATCH] perf tools: Check libunwind for availability of dwarf parsing feature

2013-09-13 Thread Will Deacon
Hi Jean, On Fri, Sep 13, 2013 at 06:08:41PM +0100, Jean Pihet wrote: > The newly added dwarf unwinding feature [1] requires: > . a recent version (>= 1.1) of libunwind, > . libunwind to be configured with --enable-debug-frame. > > [1] http://www.spinics.net/lists/kernel/msg1598951.html > > Add t

Re: [PATCH 3/4] perf tools: Check libunwind for availability of dwarf parsing feature

2013-10-08 Thread Will Deacon
On Tue, Oct 08, 2013 at 03:28:30PM +0100, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 08, 2013 at 04:15:40PM +0200, Jean Pihet escreveu: > > >> On 26 September 2013 14:48, Jiri Olsa wrote: > > > >> > Acked-by: Jiri Olsa > > > -- adding Arnaldo in the loop -- > > Arnaldo, are you OK with the c

Kernel warning triggered with trinity on 3.12-rc4

2013-10-08 Thread Will Deacon
Hi guys, I've been running trinity on my ARMv7 Cortex-A15 system and managed to trigger the following kernel warning: 8<--- [15333.257972] [ cut here ] [15333.259328] WARNING: CPU: 1 PID: 18717 at fs/aio.c:474 free_ioctx+0x1d0/0x1d4() [15333.259894] Modules linked in: [1

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

2013-10-09 Thread Will Deacon
On Tue, Oct 08, 2013 at 09:37:39PM +0100, Mark Salter wrote: > The arm64 linker script doesn't use the PAGE_ALIGNED_DATA macro which > leads to a ".data..page_aligned" section being placed between the end > of .data and start of .bss: > > % readelf -e vmlinux >... > Section to Segment mappin

Re: SDIV / UDIV Question

2013-10-09 Thread Will Deacon
On Wed, Oct 09, 2013 at 08:08:05AM +0100, Wang, Yalin wrote: > I have a question about sdiv/ udiv instructions : > In armv7 A/R TRM, it said sdiv/udiv will cause > Divide by zero as undefined exception or just return zero > (decided by implementation) . > > So in kernel , should we need regi

[PATCH] init: calibrate: don't print out bogomips value on boot

2013-10-09 Thread Will Deacon
the CPU clock speed. Acked-by: Nicolas Pitre Acked-by: Marc Zyngier Signed-off-by: Will Deacon --- This is mostly cosmetic, but we've killed bogomips from the cpuinfo on ARM and arm64, so this would be the final nail on the coffin... init/calibrate.c | 8 +++- 1 file changed, 3 inser

Re: SDIV / UDIV Question

2013-10-10 Thread Will Deacon
ehaviour here. (I'm also not sure which cores have these instructions either). Will > -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: Wednesday, October 09, 2013 6:54 PM > To: Wang, Yalin > Cc: 'linux-arm-msm-ow...@vger.kernel.org';

  1   2   3   4   5   6   7   8   9   10   >