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 
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 - 
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 
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 - 
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(-) 
24 Nov, 2009
1 commit
- 
Attribute authorship to developers of hw-breakpoint related
files.Signed-off-by: K.Prasad
Cc: Alan Stern
Cc: Frederic Weisbecker
LKML-Reference:
[ v2: moved it to latest -tip ]
Signed-off-by: Ingo Molnar 
23 Nov, 2009
1 commit
- 
Decreases perf overhead when function tracing is enabled,
by about 50%.Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Paul Mackerras
Cc: Arnaldo Carvalho de Melo
Cc: Frederic Weisbecker
LKML-Reference:
Signed-off-by: Ingo Molnar 
21 Nov, 2009
1 commit
- 
Conflicts:
arch/x86/kernel/kprobes.c
kernel/trace/MakefileMerge reason: hw-breakpoints perf integration is looking
good in testing and in reviews, plus conflicts
are mounting up - so merge & resolve.Signed-off-by: Ingo Molnar
 
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 
17 Nov, 2009
3 commits
- 
Resolved merge conflict in tools/perf/Makefile
Merge reason: we want to queue up a dependent patch.
Signed-off-by: Ingo Molnar
 - 
Show symbol name if insn decoder test find a difference.
This will help us to find out where the issue is.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 - 
Add verbose option to insn decoder test. This dumps decoded
instruction when building kernel with V=1.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 
15 Nov, 2009
2 commits
- 
Merge reason: Both 'perf bench' and the pending PowerPC changes
are now ready for the next merge window.Signed-off-by: Ingo Molnar
 - 
Merge reason: pick up perf fixlets
Signed-off-by: Ingo Molnar
 
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 
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 
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 -0700alpha: 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 - 
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 -0700fcntl: 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 - 
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 - 
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 - 
* '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 - 
* '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 - 
* 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 - 
…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 - 
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 - 
Some drivers have dependencies on this, and therefore should be
enabled.Signed-off-by: Sergio Aguirre
Signed-off-by: Tony Lindgren - 
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 - 
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 - 
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 - 
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 
11 Nov, 2009
5 commits
- 
pasemi_defconfig hasn't been updated for a year.
Mostly a refresh of defaults, but this also disables 64K pages.
Signed-off-by: Olof Johansson
Signed-off-by: Benjamin Herrenschmidt - 
Use the resource_size function instead of manually calculating the
resource size. This reduces the chance of introducing off-by-one errors
and actually fixes one in mailbox.c.Signed-off-by: Tobias Klauser
Signed-off-by: Tony Lindgren - 
The bug could cause irq enable bit of one DMA channel is
cleared/set unexpectedly when 2 (or more) drivers are calling
omap_request_dma()/omap_free_dma() simultaneouslySigned-off-by: Fei Yang
Signed-off-by: Tao Hu
Signed-off-by: Tony Lindgren 
10 Nov, 2009
5 commits
- 
Wrap in the cpu dr7 check that tells if we have active
breakpoints that need to be restored in the cpu.This wrapper makes the check more self-explainable and also
reusable for any further other uses.Reported-by: Jan Kiszka
Signed-off-by: Frederic Weisbecker
Cc: Avi Kivity
Cc: "K. Prasad" - 
Fix the broken a.out format dump. For now we only dump the ptrace
breakpoints.TODO: Dump every perf breakpoints for the current thread, not only
ptrace based ones.Reported-by: Ingo Molnar
Signed-off-by: Frederic Weisbecker
Cc: "K. Prasad" - 
Use a definition for the cmpxchg SWI instead of hard-coding the number.
Signed-off-by: Russell King
Acked-by: Nicolas Pitre - 
Signed-off-by: Borislav Petkov
Signed-off-by: Andreas Herrmann
LKML-Reference:
Signed-off-by: Ingo Molnar - 
Merge branch 'fixes-s3c64xx-dma' into fixes-s3c-2632-rc6