02 Dec, 2011

1 commit

  • * 'fixes' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm:
    ARM: 7182/1: ARM cpu topology: fix warning
    ARM: 7181/1: Restrict kprobes probing SWP instructions to ARMv5 and below
    ARM: 7180/1: Change kprobes testcase with unpredictable STRD instruction
    ARM: 7177/1: GIC: avoid skipping non-existent PPIs in irq_start calculation
    ARM: 7176/1: cpu_pm: register GIC PM notifier only once
    ARM: 7175/1: add subname parameter to mfp_set_groupg callers
    ARM: 7174/1: Fix build error in kprobes test code on Thumb2 kernels
    ARM: 7172/1: dma: Drop GFP_COMP for DMA memory allocations
    ARM: 7171/1: unwind: add unwind directives to bitops assembly macros
    ARM: 7170/2: fix compilation breakage in entry-armv.S
    ARM: 7168/1: use cache type functions for arch_get_unmapped_area
    ARM: perf: check that we have a platform device when reserving PMU
    ARM: 7166/1: Use PMD_SHIFT instead of PGDIR_SHIFT in dma-consistent.c
    ARM: 7165/2: PL330: Fix typo in _prepare_ccr()
    ARM: 7163/2: PL330: Only register usable channels
    ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds
    ARM: 7161/1: errata: no automatic store buffer drain
    ARM: perf: initialise used_mask for fake PMU during validation
    ARM: PMU: remove pmu_init declaration
    ARM: PMU: re-export release_pmu symbol to modules

    Linus Torvalds
     

01 Dec, 2011

4 commits

  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (45 commits)
    ARM: ux500: update defconfig
    ARM: u300: update defconfig
    ARM: at91: enable additional boards in existing soc defconfig files
    ARM: at91: refresh soc defconfig files for 3.2
    ARM: at91: rename defconfig files appropriately
    ARM: OMAP2+: Fix Compilation error when omap_l3_noc built as module
    ARM: OMAP2+: Remove empty io.h
    ARM: OMAP2: select ARM_AMBA if OMAP3_EMU is defined
    ARM: OMAP: smartreflex: fix IRQ handling bug
    ARM: OMAP: PM: only register TWL with voltage layer when device is present
    ARM: OMAP: hwmod: Fix the addr space, irq, dma count APIs
    arm: mx28: fix bit operation in clock setting
    ARM: imx: export imx_ioremap
    ARM: imx/mm-imx3: conditionally compile i.MX31 and i.MX35 code
    ARM: mx5: Fix checkpatch warnings in cpu-imx5.c
    MAINTAINERS: Add missing directory
    ARM: imx: drop 'ARCH_MX31' and 'ARCH_MX35'
    ARM: imx6q: move clock register map to machine_desc.map_io
    ARM: pxa168/gplugd: add the correct SSP device
    ARM: Update mach-types to fix mxs build breakage
    ...

    Linus Torvalds
     
  • kernel/sched.c:7354:2: warning: initialization from incompatible pointer type

    Align cpu_coregroup_mask prototype interface with sched_domain_mask_f typedef
    use int cpu instead of unsigned int cpu

    Cc:
    Signed-off-by: Vincent Guittot
    Signed-off-by: Russell King

    Vincent Guittot
     
  • The SWP instruction is deprecated on ARMv6 and with ARMv7 it will be
    UNDEFINED when CONFIG_SWP_EMULATE is selected. In this case, probing a
    SWP instruction will cause an oops when the kprobes emulation code
    executes an undefined instruction.

    As the SWP instruction should be rare or non-existent in kernels for
    ARMv6 and later, we can simply avoid these problems by not allowing
    probing of these.

    Reported-by: Leif Lindholm
    Tested-by: Leif Lindholm
    Acked-by: Nicolas Pitre
    Signed-off-by: Jon Medhurst
    Signed-off-by: Russell King

    Jon Medhurst (Tixy)
     
  • There is a kprobes testcase for the instruction "strd r2, [r3], r4".
    This has unpredictable behaviour as it uses r3 for register writeback
    addressing and also stores it to memory.

    On a cortex A9, this testcase would fail because the instruction writes
    the updated value of r3 to memory, whereas the kprobes emulation code
    writes the original value.

    Fix this by changing testcase to used r5 instead of r3.

    Reported-by: Leif Lindholm
    Tested-by: Leif Lindholm
    Acked-by: Nicolas Pitre
    Signed-off-by: Jon Medhurst
    Signed-off-by: Russell King

    Jon Medhurst (Tixy)
     

29 Nov, 2011

3 commits


27 Nov, 2011

7 commits

  • Commit 4294f8baa ("ARM: gic: add irq_domain support") defines irq_start
    as irq_start = (irq_start & ~31) + 16; On a platform with a GIC and a
    CPU without PPIs, this results in irq_start being off by 16.

    This patch fixes gic_init so that we only carve out a PPI space when
    PPIs exist for the GIC being initialised.

    Cc: Rob Herring
    Signed-off-by: Will Deacon
    Signed-off-by: Russell King

    Will Deacon
     
  • When multiple GICs exist on a platform (RealView PB1176/11MP),
    we must make sure the PM notifier block is only registered
    once, otherwise we end up corrupting the PM notifier list.

    The fix is to only register the notifier when initializing
    the first GIC, as the power management functions seem
    to iterate over all the registered GICs.

    Tested on PB11MP and PB1176.

    Reported-by: Will Deacon
    Tested-by: Will Deacon
    Cc: Colin Cross
    Signed-off-by: Marc Zyngier
    Signed-off-by: Russell King

    Marc Zyngier
     
  • When compiling kprobes-test-thumb.c an error like below may occur:

    /tmp/ccKcuJcG.s:19179: Error: offset out of range

    This is caused by the compiler underestimating the size of the inline
    assembler instructions containing ".space 0x1000" and failing to spill
    the literal pool in time to prevent the generation of PC relative load
    instruction with invalid offsets.

    The fix implemented by this patch is to replace a single large .space
    directive by a number of 4 byte .space's. This requires splitting the
    macros which generate test cases for branch instructions into two forms:
    one with, and one without support for inserting extra code between
    branch and target.

    Acked-by: Nicolas Pitre
    Signed-off-by: Jon Medhurst
    Signed-off-by: Russell King

    Jon Medhurst
     
  • dma_alloc_coherent wants to split pages after allocation in order to
    reduce the memory footprint. This does not work well with GFP_COMP
    pages, so drop this flag before allocation.

    This patch is ported from arch/avr32
    (commit 3611553ef985ef7c5863c8a94641738addd04cff).

    [swarren: s/HUGETLB_PAGE/HUGETLBFS/ in comment, minor comment cleanup]

    Signed-off-by: Sumit Bhattacharya
    Tested-by: Varun Colbert
    Signed-off-by: Stephen Warren
    Signed-off-by: Russell King

    Sumit Bhattacharya
     
  • The bitops functions (e.g. _test_and_set_bit) on ARM do not have unwind
    annotations and therefore the kernel cannot backtrace out of them on a
    fatal error (for example, NULL pointer dereference).

    This patch annotates the bitops assembly macros with UNWIND annotations
    so that we can produce a meaningful backtrace on error. Callers of the
    macros are modified to pass their function name as a macro parameter,
    enforcing that the macros are used as standalone function implementations.

    Acked-by: Dave Martin
    Signed-off-by: Will Deacon
    Signed-off-by: Russell King

    Will Deacon
     
  • Fix compilation failure, when Thumb support is not enabled:

    arch/arm/kernel/entry-armv.S: Assembler messages:
    arch/arm/kernel/entry-armv.S:501: Error: backward ref to unknown label "2:"
    arch/arm/kernel/entry-armv.S:502: Error: backward ref to unknown label "3:"
    make[2]: *** [arch/arm/kernel/entry-armv.o] Error 1

    Signed-off-by: Guennadi Liakhovetski
    Reviewed-by: Dave Martin
    Signed-off-by: Russell King

    Guennadi Liakhovetski
     
  • There are already cache type decoding functions, so use those instead
    of custom decode code which only works for ARMv6.

    Signed-off-by: Rob Herring
    Acked-by: Nicolas Pitre
    Acked-by: Will Deacon
    Signed-off-by: Russell King

    Rob Herring
     

25 Nov, 2011

2 commits


24 Nov, 2011

23 commits