27 Nov, 2009

1 commit

  • In-kernel user breakpoints are created using functions in which
    we pass breakpoint parameters as individual variables: address,
    length and type.

    Although it fits well for x86, this just does not scale across
    archictectures that may support this api later as these may have
    more or different needs. Pass in a perf_event_attr structure
    instead because it is meant to evolve as much as possible into
    a generic hardware breakpoint parameter structure.

    Reported-by: K.Prasad
    Signed-off-by: Frederic Weisbecker
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     

26 Nov, 2009

2 commits

  • When we schedule out a breakpoint from the cpu, we also
    incidentally remove the "Global exact breakpoint" flag from the
    breakpoint control register. It makes us losing the fine grained
    precision about the origin of the instructions that may trigger
    breakpoint exceptions for the other breakpoints running in this
    cpu.

    Reported-by: Prasad
    Signed-off-by: Frederic Weisbecker
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     
  • This simplifies the error handling when we create a breakpoint.
    We don't need to check the NULL return value corner case anymore
    since we have improved perf_event_create_kernel_counter() to
    always return an error code in the failure case.

    Signed-off-by: Frederic Weisbecker
    Cc: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: Paul Mackerras
    Cc: Steven Rostedt
    Cc: Prasad
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     

25 Nov, 2009

2 commits

  • Percpu symbols now occupy the same namespace as other global
    symbols and as such short global symbols without subsystem
    prefix tend to collide with local variables. dr7 percpu
    variable used by x86 was hit by this. Rename it to cpu_dr7.

    The rename also makes it more consistent with its fellow
    cpu_debugreg percpu variable.

    Signed-off-by: Tejun Heo
    Cc: Frederic Weisbecker
    Cc: Peter Zijlstra
    Cc: Rusty Russell
    Cc: Christoph Lameter
    Cc: Linus Torvalds ,
    Cc: Andrew Morton
    LKML-Reference:
    Signed-off-by: Ingo Molnar
    Reported-by: Stephen Rothwell

    Tejun Heo
     
  • The validate_event() was failing on valid event combinations. The
    function was assuming that if x86_schedule_event() returned 0, it
    meant error. But x86_schedule_event() returns the counter index and
    0 is a perfectly valid value. An error is returned if the function
    returns a negative value.

    Furthermore, validate_event() was also failing for event groups
    because the event->pmu was not set until after
    hw_perf_event_init().

    Signed-off-by: Stephane Eranian
    Cc: peterz@infradead.org
    Cc: paulus@samba.org
    Cc: perfmon2-devel@lists.sourceforge.net
    Cc: eranian@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar
    --
    arch/x86/kernel/cpu/perf_event.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    Stephane Eranian
     

24 Nov, 2009

1 commit


23 Nov, 2009

1 commit


21 Nov, 2009

1 commit


20 Nov, 2009

1 commit

  • Since some instructions are not decoded correctly by older
    versions of objdump, it may cause false positive error in insn
    decoder posttest.

    This changes build error of insn decoder test to build warning.

    Signed-off-by: Masami Hiramatsu
    Cc: systemtap
    Cc: DLE
    Cc: Stephen Rothwell
    Cc: Randy Dunlap
    Cc: Jim Keniston
    Cc: Stephen Rothwell
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Masami Hiramatsu
     

17 Nov, 2009

3 commits


15 Nov, 2009

2 commits


14 Nov, 2009

1 commit

  • This build error:

    arch/x86/kvm/x86.c:3655: error: implicit declaration of function 'hw_breakpoint_restore'

    Happens because in the CONFIG_KVM=m case there's no 'CONFIG_KVM' define
    in the kernel - it's CONFIG_KVM_MODULE in that case.

    Make the prototype available unconditionally.

    Cc: Frederic Weisbecker
    Cc: Prasad
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

13 Nov, 2009

1 commit

  • …/git/tmlind/linux-omap-2.6

    * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
    omap3: Decrease cpufreq transition latency
    omap3: update Pandora defconfig
    omap3: 3430sdp: Enable Linux Regulator framework
    omap3: beagle: Fix USB host port power control
    omap3: pandora: Fix keypad keymap
    omap1: Amstrad Delta defconfig fixes
    omap: Fix omapfb/lcdc on OMAP1510 broken when PM set
    omap: Use resource_size
    omap: Fix race condition in omap dma driver

    Linus Torvalds
     

12 Nov, 2009

14 commits

  • arch/alpha/kernel/vmlinux.lds.S uses it:

    arch/alpha/kernel/vmlinux.lds:241: undefined symbol `THREAD_SIZE' referenced in expression

    Seems to have been caused by

    commit 9d93f00580243cc059510d9d6ac4d2f5e97e5b83
    Author: Geoffrey Thomas
    AuthorDate: Thu Sep 24 10:36:26 2009 -0400
    Commit: Linus Torvalds
    CommitDate: Thu Sep 24 17:16:22 2009 -0700

    alpha: Clean up linker script using new linker script macros.

    Note that .data.page_aligned and .data.cacheline_aligned are now after
    _data; it was probably a bug that they were before it.

    Also, some explicit ALIGN(8)'s between various initcall sections were
    removed; this should be harmless as the implicit alignment of
    initcall_t was already 8.

    Cc: Geoffrey Thomas
    Cc: Tim Abbott
    Cc: Ivan Kokshaysky
    Cc: Sam Ravnborg
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Fix a bug in

    commit ba0a6c9f6fceed11c6a99e8326f0477fe383e6b5
    Author: Peter Zijlstra
    AuthorDate: Wed Sep 23 15:57:03 2009 -0700
    Commit: Linus Torvalds
    CommitDate: Thu Sep 24 07:21:01 2009 -0700

    fcntl: add F_[SG]ETOWN_EX

    In asm-generic/fcntl.h, F_SETOWN_EX and F_GETLK64 both have value 12, and
    F_GETOWN_EX and F_SETLK64 both have value 13.

    Reported-by: "Joseph S. Myers"
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Andreas Schwab
    Signed-off-by: Peter Zijlstra
    Acked-by: Ulrich Drepper
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Annotate init functions and data with __init and __initconst.

    Signed-off-by: Hiroshi Shimamoto
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Hiroshi Shimamoto
     
  • Adjust OMAP3 frequency transition latency from 10,000,000uS to a more
    reasonable 300,000uS. This causes ondemand and conservative governors to
    sample CPU load more often resulting in more responsive behavior.

    Tested on Android 2.6.29; using this value and conservative governor, CORE
    power consumption on Zoom2 was comparable to the old and unresponsive
    10,000,000uS value while UI responsiveness was greatly improved.

    Signed-off-by: Mike Turquette
    Signed-off-by: Kevin Hilman
    Signed-off-by: Tony Lindgren

    Mike Turquette
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    x86/PCI: Adjust GFP mask handling for coherent allocations
    PCI ASPM: fix oops on root port removal

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc: pasemi_defconfig update
    powerpc: 2.6.32 update of defconfigs for embedded 6xx/7xxx, 8xx, 8{3,5,6}xxx
    powerpc/8xxx: enable IPsec ESP by default on mpc83xx/mpc85xx
    powerpc/83xx: Fix u-boot partion size for MPC8377E-WLAN boards
    powerpc/85xx: Fix USB GPIOs for MPC8569E-MDS boards
    powerpc/82xx: kmalloc failure ignored in ep8248e_mdio_probe()
    powerpc/85xx: sbc8548 - fixup of PCI-e related DTS fields

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: Use a definition for the userspace cmpxchg emulation syscall
    [ARM] Fix test for unimplemented ARM syscalls
    ARM: 5784/1: fix early boot machine ID mismatch error display
    [ARM] orion5x: update defconfig
    [ARM] Kirkwood: update defconfig
    [ARM] Kirkwood: clarify PCIe MEM bus/physical address distinction
    [ARM] kirkwood: fix PCI I/O port assignment
    [ARM] kirkwood: fix section mismatch
    [ARM] OpenRD base: Initialize PCI express and i2c
    [ARM] properly report mv78100 stepping A1
    ARM: 5780/1: KS8695: Fix macro definition bug in regs-switch.c
    ARM: 5779/1: ep93xx/micro9.c: fix implicit declaration of function __raw_readl and IOMEM
    RealView: Add sparsemem support for the RealView PBX platform
    RealView: Remove duplicated #define REALVIEW_SYS_FLAGS* statements
    RealView: Add default memory configuration
    Check whether the SCU was already initialised
    ARMv7: Check whether the SMP/nAMP mode was already enabled
    [ARM] pxa: fix resume failure by saving/restoring IPRx registers
    [ARM] pxa/palm: fix incorrect initialization of Palm Tungsten C keyboard
    [ARM] pxa/zaurus: fix NAND flash OOB layout for Borzoi

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, amd-ucode: Check UCODE_MAGIC before loading the container file
    x86: Fix error return sequence in __ioremap_caller()
    x86: Add Phoenix/MSC BIOSes to lowmem corruption list

    Linus Torvalds
     
  • This patch updates defconfig to enable options needed to properly
    boot OMAP3 pandora board. It also enables MMC, OTG, GPIO LEDs,
    TWL4030 GPIO and sound drivers.

    Signed-off-by: Grazvydas Ignotas
    Signed-off-by: Tony Lindgren

    Grazvydas Ignotas
     
  • Some drivers have dependencies on this, and therefore should be
    enabled.

    Signed-off-by: Sergio Aguirre
    Signed-off-by: Tony Lindgren

    Sergio Aguirre
     
  • The host port power is enabled by driving the nEN_USB_PWR low as stated in
    the comment. This fix is originally from Steve Sakoman .

    Signed-off-by: Jarkko Nikula
    Cc: Steve Sakoman
    Signed-off-by: Tony Lindgren

    Jarkko Nikula
     
  • The original TWL4030 keypad driver from linux-omap used KEY()
    macro defined as (col, row), but while it was merged upstream
    it was changed to use matrix keypad infrastructure, which uses
    (row, col) format. Update the keymap in board file to match
    layout of mainline driver.

    Signed-off-by: Grazvydas Ignotas
    Signed-off-by: Tony Lindgren

    Grazvydas Ignotas
     
  • The patch provides the following fixes:

    - keep kernel small enough to boot with standard tools,
    - ensure compatibility with both new and legacy distros,
    - turn on support for recently added or fixed hardware features.

    Created and tested against linux-2.6.32-rc5.

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Tony Lindgren

    Janusz Krzysztofik
     
  • With CONFIG_PM=y, the omapfb/lcdc device on Amstrad Delta, after initially
    starting correctly, breaks with the following error messages:

    omapfb omapfb: resetting (status 0xffffff96,reset count 1)
    ...
    omapfb omapfb: resetting (status 0xffffff96,reset count 100)
    omapfb omapfb: too many reset attempts, giving up.

    Looking closer at this I have found that it had been broken almost 2 years ago
    with commit 2418996e3b100114edb2ae110d5d4acb928909d2, PM fixes for OMAP1.

    The definite reason for broken omapfb/lcdc behavoiur in PM mode
    appeared to be ARM_IDLECT1:IDLIF_ARM (bit 6) put into idle regardless of LCD
    DMA possibly running. The bit were set based on return value of the
    omap_dma_running() function that did not check for dedicated LCD DMA
    channel status. The patch below fixes this.

    Note that the hardcoded register value will be fixed during the next merge
    cycle to use OMAP_LCDC_ defines. Currently the OMAP_LCDC_ defines are local
    to drivers/video/omap/lcdc.c, so let's not start moving those right now.

    Created against linux-2.6.32-rc6

    Tested on Amstrad Delta

    Signed-off-by: Janusz Krzysztofik
    Signed-off-by: Tony Lindgren

    Janusz Krzysztofik
     

11 Nov, 2009

5 commits


10 Nov, 2009

5 commits