scanning the bus and before the pci_dn
to pcidev mapping has been created. Since we only need the pcidev to work
out the type of reset and that only gets set after the module for the
device loads, lets just do a hot reset if the pcidev is NULL.
Signed-off-by: Anton Blanchard an...@samba.org
With sparse irqs we have to check if we have a descriptor before dereferencing
it.
Signed-off-by: Anton Blanchard an...@samba.org
---
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
index 6f4613d..5182439 100644
--- a/arch/powerpc/kernel/crash.c
+++ b/arch/powerpc/kernel
.
Eventually we should switch the order and marshall all CPUs before doing the
crash_shutdown_handles[] calls, but that is a bigger fix.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-2.6/arch/powerpc/kernel/crash.c
-status |= IRQ_MASKED;
}
Not sure why we don't implement a -disable action for xics.c, or why
default_disable doesn't mask the interrupt.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-2.6/arch/powerpc/kernel/crash.c
.
On a large ppc64 box, this fixes a panic at boot when the crashkernel=
option is specified (previously we would run out of memory below 256MB).
Signed-off-by: Milton Miller milt...@bga.com
Signed-off-by: Anton Blanchard an...@samba.org
---
Some things we should add:
- Specify a more intelligent
Hi Josh,
I'd like to run a few tests with this disabled on the 4xx boards first please.
I can't say that all the boards I have will have any sort of distro to begin
with, and if they did they might not be running something from the last 3 or
4 years. I do run -git kernels on them
CONFIG_SYSFS_DEPRECATED can cause issues with newer distros and should not
be required for any distro in the last 3 or 4 years, so disable it.
Signed-off-by: Anton Blanchard an...@samba.org
---
diff --git a/arch/powerpc/configs/40x/acadia_defconfig
b/arch/powerpc/configs/40x/acadia_defconfig
Hi Ben,
I sent your previous version of that one to Linus, it's already up. Can
you check it's allright ?
No change to this patch, but I thought I would send them as a series since they
build on each other. I'll double check mainline looks good.
Anton
.
The patch below sets a smaller value for RECLAIM_DISTANCE and thus enables
zone reclaim.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/include/asm/topology.h
===
--- powerpc.git.orig/arch/powerpc
in the client architecture, and if we see 1 in the
ibm,associativity-form property firmware supports form 1 affinity and
we should look at the first field in the ibm,associativity-reference-points
array. If not we use the second field as we always have.
Signed-off-by: Anton Blanchard an...@samba.org
boot it didn't seem worth adding a per node valid bit.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-2.6/arch/powerpc/include/asm/topology.h
===
--- linux-2.6.orig/arch/powerpc/include/asm/topology.h 2010-04-29
15
Hi,
Alan Modra pointed out that he added an option to PowerPC gcc years ago
specifically for us to do lightweight mcount profiling.
The normal PowerPC gcc mcount stuff forces a stack spill and gets itself
tangled up in the function prolog, making it impossible to nop out easily:
# gcc -pg:
This is a first attempt at converting PowerPC across to the new cpumask
API.
I need to audit the GFP_ flags of alloc_cpumask_var. There are also a few
areas still to be done: cell, xmon, kexec, crashdump and the cputhreads code
Anton
___
Change cpu_online_map to cpu_online_mask.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/pasemi/cpufreq.c
===
--- linux-cpumask.orig/arch/powerpc/platforms/pasemi/cpufreq.c 2010-04-08
Use cpumask_first, cpumask_next in rtasd code.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/rtasd.c
===
--- linux-cpumask.orig/arch/powerpc/kernel/rtasd.c 2010-04-08
19:46
Use the new cpumask_* functions and dynamically allocate the cpumask in
smp_cpus_done.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/smp.c
===
--- linux-cpumask.orig/arch/powerpc/kernel
Use new cpumask_* functions, and dynamically allocate cpumask in fixup_irqs.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/irq.c
===
--- linux-cpumask.orig/arch/powerpc/kernel/irq.c
Use new cpumask functions in iseries SMP startup code.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/iseries/smp.c
===
--- linux-cpumask.orig/arch/powerpc/platforms/iseries/smp.c
Use new cpumask functions in pseries SMP startup code.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/pseries/smp.c
===
--- linux-cpumask.orig/arch/powerpc/platforms/pseries/smp.c
Use the new cpumask API and add some comments to clarify how get_irq_server
works.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/pseries/xics.c
===
--- linux-cpumask.orig/arch/powerpc
This separates the per cpu output from the summary output at the end of the
file, making it easier to convert to the new cpumask API in a subsequent
patch.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/setup-common.c
Use new cpumask API in /proc/cpuinfo code.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/setup-common.c
===
--- linux-cpumask.orig/arch/powerpc/kernel/setup-common.c 2010-04-22
13
(smp_prepare_cpus), similar
to x86.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/include/asm/smp.h
===
--- linux-cpumask.orig/arch/powerpc/include/asm/smp.h 2010-04-22
13:03:14.635445670 +1000
Convert hotplug-cpu code to new cpumask API.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/pseries/hotplug-cpu.c
===
--- linux-cpumask.orig/arch/powerpc/platforms/pseries/hotplug
Convert NUMA code to new cpumask API. We shift the node to cpumask
setup code until after we complete bootmem allocation so we can
dynamically allocate the cpumasks.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/include/asm/mmzone.h
Since the *_map cpumask variants are deprecated, change the comments to
instead refer to *_mask.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/setup-common.c
===
--- linux-cpumask.orig
it to take a cpumask. This allows us
to clean up the mess in smp_mpic_message_pass.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/sysdev/mpic.c
===
--- linux-cpumask.orig/arch/powerpc/sysdev/mpic.c
Enable the DEBUG_PER_CPU_MAPS option so we can look for problems with
cpumasks .
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/Kconfig.debug
===
--- linux-cpumask.orig/arch/powerpc
in the client architecture, and if we see 1 in the
ibm,associativity-form property firmware supports form 1 affinity and
we should look at the first field in the ibm,associativity-reference-points
array. If not we use the second field as we always have.
Signed-off-by: Anton Blanchard an...@samba.org
() */
tty_kref_put(tty);
...
}
tty_kref_put(tty);
Since the outside kref get/put balance we only do a single kref_put when
count reaches 0.
The patch below changes things to call tty_kref_put once for every
hvc_close call, and with that my machine boots fine.
Signed-off-by: Anton Blanchard
Hi,
And this suggests that hvc_kick() is called before hvc_task is
initialised, ie, before hvc_init() is called.
Does this help?
Looks good, tests OK on my POWER5 box. Thanks!
Tested-by: Anton Blanchard an...@samba.org
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
).
Signed-off-by: Anton Blanchard an...@samba.org
--
I assume the function prototypes for the other IPC methods would cause us
to sign or zero extend second where appropriate (avoiding any security
issues). Come to think of it, the syscall wrappers for each method should do
that for us as well.
diff
Hi,
ipc/syscall.c:17: error: conflicting types for ‘sys_ipc’
include/linux/syscalls.h:691: note: previous declaration of ‘sys_ipc’ was
here
Hmm. Right you are. Why don't I see this? (I already applied the patch)
Ahh. Because this only triggers with __ARCH_WANT_SYS_IPC. But why
Hi,
e500v1/v2 based chips will treat any reserved field being set in an
opcode as illegal. Thus always setting the hint in the opcode is
a bad idea.
Anton should be kept away from the powerpc opcode map.
Nasty bug! I promise never to touch the opcode map again :)
Acked-by: Anton
assume there are some O(n^2) issues in sysfs as we add all the memory
nodes. Bumping SECTION_SIZE_BITS to 256 MB drops the time to about 10
seconds and results in a much smaller /sys.
Signed-off-by: Anton Blanchard an...@samba.org
---
--- linux-2.6.33/arch/powerpc/include/asm/sparsemem.h~ 2010-02
Hi Balbir,
A reclaim distance of 10 implies a ratio of 1, that means we'll always
do zone_reclaim() to free page cache and slab cache before moving on
to another node?
I want to make an effort to reclaim local pagecache before ever going
off node. As an example, a completely off node stream
-kernel-dump call.
This patch checks for the ibm,extended-os-term property and calls ibm,os-term
if it exists.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/kernel/rtas.c
===
--- linux-cpumask.orig
Hi Nick,
Cool. How does it go when there are significant amount of instructions
between the lock and the unlock? A real(ish) workload, like dbench on
ramdisk (which should hit the dcache lock).
Good question, I'll see if we can see a difference on dbench.
Anton
Hi Nick,
Ah, good to see this one come back. I also tested tbench over localhost
btw which actually did show some speedup on the G5.
BTW. this was the last thing left:
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg29738.html
Don't know if you took a look at that again,
test is the private futex wake system call and that improves 5%.
This is a decent speedup on an important system call for threaded applications.
Signed-off-by: Anton Blanchard an...@samba.org
---
If my previous patches didn't worry you then this one is sure to.
Getting this wrong will make
Hi Ben,
Well, the main issue here is leaking kernel reservations into userspace,
and thus the question of whether it is a big deal or not. There's also
an issue I can see with signals.
The risk with kernel reservations leaking into userspace is a problem on
some processors that do not
test for this patch. The results (in lock/unlock operations per
second) are:
before: 1538203 ops/sec
after: 2189219 ops/sec
An improvement of 42%
A 32 core POWER7 improves even more:
before: 1279529 ops/sec
after: 2282076 ops/sec
An improvement of 78%
Signed-off-by: Anton Blanchard
Now we have real bit locks use them instead of open coding it.
Signed-off-by: Anton Blanchard an...@samba.org
---
diff --git a/arch/powerpc/mm/hash_native_64.c b/arch/powerpc/mm/hash_native_64.c
index 056d23a..9e1aa4f 100644
--- a/arch/powerpc/mm/hash_native_64.c
+++ b/arch/powerpc/mm
This patch implements the lwarx/ldarx hint bit for bit locks.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/include/asm/asm-compat.h
===
--- powerpc.git.orig/arch/powerpc/include/asm/asm
do_lwsync_fixups doesn't work on 64bit, we end up writing lwsyncs to the
wrong addresses:
0:mon di c001000bfacc
c001000bfacc 7c2004ac lwsync
Since the lwsync section has negative offsets we need to use a signed int
pointer so we sign extend the value.
Signed-off-by: Anton
For performance reasons we are about to change ISYNC_ON_SMP to sometimes be
lwsync. Now that the macro name doesn't make sense, change it and LWSYNC_ON_SMP
to better explain what the barriers are doing.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/include
++) {
if (pread(fd, buf, BUFSIZE, 0) != BUFSIZE) {
perror(pread);
exit(1);
}
}
unlink(tmpfile);
return 0;
}
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/lib/copyuser_64.S
,
(after.tv_sec - before.tv_sec) * NSEC_PER_SEC +
(after.tv_nsec - before.tv_nsec));
return 0;
}
static void __exit copypage_exit(void)
{
}
module_init(copypage_init)
module_exit(copypage_exit)
MODULE_LICENSE(GPL);
MODULE_AUTHOR(Anton Blanchard);
Signed-off-by: Anton
which is a good test for this patch. The results (in lock/unlock operations
per second) are:
before: 1538203 ops/sec
after: 2189219 ops/sec
An improvement of 42%
Signed-off-by: Anton Blanchard an...@samba.org
---
We've had issues in the past with chips that do the wrong thing and don't
ignore
-by: Anton Blanchard an...@samba.org
---
v2: Enable NUMA on ppc64_defconfig
Index: powerpc.git/arch/powerpc/configs/ppc64_defconfig
===
--- powerpc.git.orig/arch/powerpc/configs/ppc64_defconfig 2010-02-05
14:57:48.889717208
We can use the much more lightweight ida allocator since we don't
need the pointer storage idr provides.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/mm/mmu_context_hash64.c
The clockevent multiplier and shift is useful information, but we
only need to print it once.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/kernel/time.c
===
--- powerpc.git.orig/arch/powerpc
We use firmware_has_feature quite a lot these days, so it's worth putting
powerpc_firmware_features into __read_mostly.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/kernel/firmware.c
Clean up SD_NODE_INITS so we can easily compare it to x86. Similar to the
work in 47734f89be0614b5acbd6a532390f9c72f019648 (sched: Clean up topology.h)
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/include/asm/topology.h
The cede latency stuff is relatively new and we don't need to complain about
it not working on older firmware.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/platforms/pseries/hotplug-cpu.c
) so it operates better with 4kB pages.
But in the end its probably of little use for the default OVERCOMMIT_GUESS
setting, so the main thing is we dont terminate processes incorrectly.
Acked-by: Anton Blanchard an...@samba.org
Anton
___
Linuxppc-dev
) | .vprintk() {
0) 0.488 us|._raw_spin_lock();
0) 0.572 us|.emit_log_char();
Showing the function graph of a sysrq-c crash.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc
Hi,
Why do we need page size independent stack size? It seems to have
compatibility breaking risk.
I don't think so. The current behaviour is clearly wrong, we dont need a
16x larger stack just because you went from a 4kB to a 64kB base page
size. The user application stack usage is the same
Hi Wolfram,
What about printk_once from kernel.h?
Thanks for the suggestion!
Anton
--
The clockevent multiplier and shift is useful information, but we
only need to print it once.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: powerpc.git/arch/powerpc/kernel/time.c
Hi,
I didn't discuss which behavior is better. Michael said he want to apply
his patch to 2.6.32 2.6.33. stable tree never accept the breaking
compatibility patch.
Your answer doesn't explain why can't we wait it until next merge window.
btw, personally, I like page size indepent
RTAS should never cause an exception but if it does (for example accessing
outside our RMO) then we might go a long way through the kernel before
oopsing. If we unset MSR_RI we should at least stop things on exception
exit.
Signed-off-by: Anton Blanchard an...@samba.org
---
The setting
The setting of MSR_RI during RTAS calls went in ages ago (2003), and I'm
not sure why. Clearly an exception inside RTAS is fatal since we most likely
have a bad r13.
I wrote the r13 comment without thinking :) Regardless I think we want
to catch any RTAS exception ASAP.
Anton
Hi,
On recent ppc64 kernels, limiting the stack (using 'ulimit -s blah') is
now more restrictive than it was before. On 2.6.31 with 4k pages I
could run 'ulimit -s 16; /usr/bin/test' without a problem. Now with
mainline, even 'ulimit -s 64; /usr/bin/test' gets killed.
Using 64k pages is
Now we use printf style alignment there is no need to manually space
these fields.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
===
--- linux-cpumask.orig
in. On PowerPC we currently omit an interrupt completely if there is no
active handler, whereas on x86 it is printed if there is a non zero count.
The x86 code also spaces the first column correctly based on nr_irqs.
Signed-off-by: Anton Blanchard an...@samba.org
---
This patch follows on from powerpc
spurious. Since they can be a significant cause
of OS jitter, we may as well log them per cpu so we know where they are
occurring.
Signed-off-by: Anton Blanchard an...@samba.org
---
Again, the short name matches x86 but if people are sufficiently confused by
it (SPU), then we can think up something
using the perf tool. Since it's possible to take a completely
handled machine check on a System p box it also sounds like a good idea to
keep a machine check summary.
The event naming matches x86 to keep gratuitous differences to a minimum.
Signed-off-by: Anton Blanchard an...@samba.org
0 0 0
17158:319 0 0 0 0 0
25092: 0 0 0 0 0 0
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/Kconfig
8767938 2944132 1636796 13348866 cbb002 vmlinux.baseline
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
A saving of around 128kB.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/include/asm/hardirq.h
using the perf tool. Since it's possible to take a completely
handled machine check on a System p box it also sounds like a good idea to
keep a machine check summary.
The event naming matches x86 to keep gratuitous differences to a minimum.
Signed-off-by: Anton Blanchard an...@samba.org
dec hexfilename
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
8767555 2813444 1505724 13086723 c7b003 vmlinux.xics
A saving of around 128kB.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/pseries/xics.c
spurious. Since they can be a significant cause
of OS jitter, we may as well log them per cpu so we know where they are
occurring.
Signed-off-by: Anton Blanchard an...@samba.org
---
Again, the short name matches x86 but if people are sufficiently confused by
it (SPU), then we can think up something
in. On PowerPC we currently omit an interrupt completely if there is no
active handler, whereas on x86 it is printed if there is a non zero count.
The x86 code also spaces the first column correctly based on nr_irqs.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc
0 0 0
17158:319 0 0 0 0 0
25092: 0 0 0 0 0 0
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/Kconfig
Now we use printf style alignment there is no need to manually space
these fields.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
===
--- linux-cpumask.orig
The cputime code has a few places that do per_cpu(, smp_processor_id()).
Replace them with __get_cpu_var().
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/include/asm/cputime.h
===
--- linux
Using perf to trace L1 dcache misses and dumping data addresses I found a few
variables taking a lot of misses. Since they are almost never written, they
should go into the __read_mostly section.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/xmon/xmon.c
8767938 2944132 1636796 13348866 cbb002 vmlinux.baseline
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
A saving of around 128kB.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/include/asm/hardirq.h
with NR_CPUS=1024, this saves quite a lot of memory:
textdata bss dec hexfilename
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
8767555 2813444 1505724 13086723 c7b003 vmlinux.xics
A saving of around 128kB.
Signed-off-by: Anton Blanchard
commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 (zlib: optimize inffast when
copying direct from output) referenced include/linux/autoconf.h which
is now called include/generated/autoconf.h.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux-cpumask/arch/powerpc/boot/Makefile
/:00:01.0/local_cpulist
64-65
Change cpumask_of_node to check for -1 and return cpu_all_mask in this
case:
# cat /sys/devices/pci:00/:00:01.0/local_cpus
,,,
# cat /sys/devices/pci:00/:00:01.0/local_cpulist
0-127
Signed-off-by: Anton Blanchard
Commit 57b150cce8e004ddd36330490a68bfb59b7271e9 (irq: only update affinity if
-set_affinity() is sucessfull) broke xics irq affinity.
We need to use the cpumask passed in, instead of accessing -affinity directly.
Signed-off-by: Anton Blanchard an...@samba.org
---
This code needs a rework
Hi,
Also no NUMA is going to hurt Cell too. I think we should leave that in.
It was never enabled in the ppc64 defconfig :) I'm happy to turn it on though.
Anton
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
vmlinux~
8134997 1727588 1188836 11051421 a8a19d vmlinux
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/configs/g5_defconfig
===
--- linux.trees.git.orig/arch/powerpc/configs/g5_defconfig
as modules.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/configs/ppc64_defconfig
===
--- linux.trees.git.orig/arch/powerpc/configs/ppc64_defconfig 2009-11-26
12:38:30.0 +1100
Token what? Lets save some space in our powerpc kernels and remove token
ring support.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/configs/g5_defconfig
===
--- linux.trees.git.orig/arch
reduce
HZ then we reduce the amount of work the timer code has to do when coming
out of idle.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/configs/ppc64_defconfig
===
--- linux.trees.git.orig
.
Acked-by: Anton Blanchard an...@samba.org
Anton
[ This is a touch-up to the [3/6] powerpc: tracing: Add hypervisor call
tracepoints patch submitted by Anton a few weeks back, so I've copied
folks Anton had on CC for his original patch, this fix is rather ppc
specific, so can probably go
Hi Gautham,
+ call_status = rtas_call(rtas_token(ibm,get-system-parameter), 3, 1,
+ NULL,
+ CEDE_LATENCY_TOKEN,
+ __pa(cede_parameters),
+ CEDE_LATENCY_PARAM_MAX_LENGTH);
+
In continuous sampling mode we want the SDAR to update. While we can
select between dcache misses and erat misses, a decent default is to
enable both.
Signed-off-by: Anton Blanchard an...@samba.org
---
Moved MMCRA definitions into asm/reg.h.
Index: linux.trees.git/arch/powerpc/kernel/power7
for these events.
Signed-off-by: Anton Blanchard an...@samba.org
---
Updated to remove unused define, as suggested by Stephen.
Index: linux.trees.git/arch/powerpc/include/asm/emulated_ops.h
===
--- linux.trees.git.orig/arch/powerpc/include/asm
Kernel modules should be able to place their debug output inside our powerpc
debugfs directory.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/kernel/setup-common.c
at a minimum. Time taken for a null hcall:
No tracepoint code: 135.79 cycles
Disabled tracepoints: 137.95 cycles
For reference, before this patch enabling HCALL_STATS resulted in a null
hcall of 201.44 cycles!
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch
return=handled
idle-0 [000] 3244.021897408: irq_exit: pt_regs=c0a63aa0
Here we see two phantom interrupts (no handler was invoked), followed
by a real interrupt for eth0. Without the tracepoints in this patch we
would have missed the phantom interrupts.
Signed-off-by: Anton Blanchard
The overhead of HCALL_STATS is quite high and the functionality is very
rarely used. Key statistics are also missing (eg min/max).
With the new hcall tracepoints much more powerful tracing can be done in
a kernel module. Lets disable this by default.
Signed-off-by: Anton Blanchard
-0 [010] 3921.414635: timer_interrupt_exit: pt_regs=c000ce1e7b10
Since we have a 207MHz decrementer it will go negative and fire every 10.37s
even if Linux is completely idle.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/kernel/time.c
While most users of the hcall tracepoints will only want the opcode and return
code, some will want all the arguments. To avoid the complexity of using
varargs we pass a pointer to the register save area which contain all
arguments.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index
)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -rf *.mod.c *.ko *.o .*.cmd .tmp_versions Module.markers
modules.order Module.symvers
/*
* Hypervisor hcall trace
*
* Look for output in /sys/kernel/debug/powerpc/hcall_trace/
*
* Copyright (C) 2009 Anton Blanchard
Move ehea hcall definitions into hvcall.h.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: linux.trees.git/arch/powerpc/include/asm/hvcall.h
===
--- linux.trees.git.orig/arch/powerpc/include/asm/hvcall.h 2009-10-19
Hi Ingo,
Just to confirm - these 3 symbol fixes are for the PowerPC tree, not for
the perf events tree, right? There's nothing perf specific about the
fixes - kgdb, systemtap and other debugging/instrumentation frameworks
will benefit from more precise symbol generation too.
Yeah, while
1001 - 1100 of 1164 matches
Mail list logo