diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-14 12:14:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-14 12:14:07 -0400 |
commit | 1d508f8ace3e78e96da70f1cf4e36b80f22b5fa9 (patch) | |
tree | 1374288c038234bff0bde464be72f0645ed44f33 /include | |
parent | 2d0c05e1c5a6587a13c910845229ec5cdcd387f9 (diff) | |
parent | 9e813308a5c18c58f9ccae1ec72ed4e14eaf9025 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
Pull more powerpc updates from Ben Herrenschmidt:
"Here are some more powerpc bits for 3.17, essentially fixes.
The biggest series, also aimed at -stable, is from Aneesh and is the
result of weeks and weeks of debugging to find out why the heck or THP
implementation was occasionally triggering multi-hit errors in our
level 1 TLB. It ended up being a combination of issues including
subtleties as to how we should invalidate those special 'MPSS' pages
we use to allow the use of 16M pages inside 4K/64K "base page size"
segments (you really have to love our MMU !)
Another interesting one in the "OMG" category is the series from
Michael adding memory barriers to spin_is_locked(). That's also the
result of many days of debugging to figure out why the semaphore code
would occasionally crash in ways that made no sense. It ended up
being some creative lock stacking that was defeated by the fact that
our locks allow a load inside the locked section to be re-ordered with
the load of the lock value itself (I'm still of two mind about whether
to kill that once and for all by putting a heavier barrier back into
our lock implementation...). The fixes come with a long explanation
in the cset comments, feel free to read it if you feel like having a
headache today"
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (25 commits)
powerpc/thp: Add tracepoints to track hugepage invalidate
powerpc/mm: Use read barrier when creating real_pte
powerpc/thp: Use ACCESS_ONCE when loading pmdp
powerpc/thp: Invalidate with vpn in loop
powerpc/thp: Handle combo pages in invalidate
powerpc/thp: Invalidate old 64K based hash page mapping before insert of 4k pte
powerpc/thp: Don't recompute vsid and ssize in loop on invalidate
powerpc/thp: Add write barrier after updating the valid bit
powerpc: reorder per-cpu NUMA information's initialization
powerpc/perf/hv-24x7: Use kmem_cache_free
powerpc/pseries/hvcserver: Fix endian issue in hvcs_get_partner_info
powerpc: Hard disable interrupts in xmon
powerpc: remove duplicate definition of TEXASR_FS
powerpc/pseries: Avoid deadlock on removing ddw
powerpc/pseries: Failure on removing device node
powerpc/boot: Use correct zlib types for comparison
powerpc/powernv: Interface to register/unregister opal dump region
printk: Add function to return log buffer address and size
powerpc: Add POWER8 features to CPU_FTRS_POSSIBLE/ALWAYS
powerpc/ppc476: Disable BTAC
...
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/printk.h | 3 | ||||
-rw-r--r-- | include/trace/events/thp.h | 88 |
2 files changed, 91 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 0990997a5304..d78125f73ac4 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h | |||
@@ -10,6 +10,9 @@ | |||
10 | extern const char linux_banner[]; | 10 | extern const char linux_banner[]; |
11 | extern const char linux_proc_banner[]; | 11 | extern const char linux_proc_banner[]; |
12 | 12 | ||
13 | extern char *log_buf_addr_get(void); | ||
14 | extern u32 log_buf_len_get(void); | ||
15 | |||
13 | static inline int printk_get_level(const char *buffer) | 16 | static inline int printk_get_level(const char *buffer) |
14 | { | 17 | { |
15 | if (buffer[0] == KERN_SOH_ASCII && buffer[1]) { | 18 | if (buffer[0] == KERN_SOH_ASCII && buffer[1]) { |
diff --git a/include/trace/events/thp.h b/include/trace/events/thp.h new file mode 100644 index 000000000000..b59b065e9e5d --- /dev/null +++ b/include/trace/events/thp.h | |||
@@ -0,0 +1,88 @@ | |||
1 | #undef TRACE_SYSTEM | ||
2 | #define TRACE_SYSTEM thp | ||
3 | |||
4 | #if !defined(_TRACE_THP_H) || defined(TRACE_HEADER_MULTI_READ) | ||
5 | #define _TRACE_THP_H | ||
6 | |||
7 | #include <linux/types.h> | ||
8 | #include <linux/tracepoint.h> | ||
9 | |||
10 | TRACE_EVENT(hugepage_invalidate, | ||
11 | |||
12 | TP_PROTO(unsigned long addr, unsigned long pte), | ||
13 | TP_ARGS(addr, pte), | ||
14 | TP_STRUCT__entry( | ||
15 | __field(unsigned long, addr) | ||
16 | __field(unsigned long, pte) | ||
17 | ), | ||
18 | |||
19 | TP_fast_assign( | ||
20 | __entry->addr = addr; | ||
21 | __entry->pte = pte; | ||
22 | ), | ||
23 | |||
24 | TP_printk("hugepage invalidate at addr 0x%lx and pte = 0x%lx", | ||
25 | __entry->addr, __entry->pte) | ||
26 | ); | ||
27 | |||
28 | TRACE_EVENT(hugepage_set_pmd, | ||
29 | |||
30 | TP_PROTO(unsigned long addr, unsigned long pmd), | ||
31 | TP_ARGS(addr, pmd), | ||
32 | TP_STRUCT__entry( | ||
33 | __field(unsigned long, addr) | ||
34 | __field(unsigned long, pmd) | ||
35 | ), | ||
36 | |||
37 | TP_fast_assign( | ||
38 | __entry->addr = addr; | ||
39 | __entry->pmd = pmd; | ||
40 | ), | ||
41 | |||
42 | TP_printk("Set pmd with 0x%lx with 0x%lx", __entry->addr, __entry->pmd) | ||
43 | ); | ||
44 | |||
45 | |||
46 | TRACE_EVENT(hugepage_update, | ||
47 | |||
48 | TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set), | ||
49 | TP_ARGS(addr, pte, clr, set), | ||
50 | TP_STRUCT__entry( | ||
51 | __field(unsigned long, addr) | ||
52 | __field(unsigned long, pte) | ||
53 | __field(unsigned long, clr) | ||
54 | __field(unsigned long, set) | ||
55 | ), | ||
56 | |||
57 | TP_fast_assign( | ||
58 | __entry->addr = addr; | ||
59 | __entry->pte = pte; | ||
60 | __entry->clr = clr; | ||
61 | __entry->set = set; | ||
62 | |||
63 | ), | ||
64 | |||
65 | TP_printk("hugepage update at addr 0x%lx and pte = 0x%lx clr = 0x%lx, set = 0x%lx", __entry->addr, __entry->pte, __entry->clr, __entry->set) | ||
66 | ); | ||
67 | TRACE_EVENT(hugepage_splitting, | ||
68 | |||
69 | TP_PROTO(unsigned long addr, unsigned long pte), | ||
70 | TP_ARGS(addr, pte), | ||
71 | TP_STRUCT__entry( | ||
72 | __field(unsigned long, addr) | ||
73 | __field(unsigned long, pte) | ||
74 | ), | ||
75 | |||
76 | TP_fast_assign( | ||
77 | __entry->addr = addr; | ||
78 | __entry->pte = pte; | ||
79 | ), | ||
80 | |||
81 | TP_printk("hugepage splitting at addr 0x%lx and pte = 0x%lx", | ||
82 | __entry->addr, __entry->pte) | ||
83 | ); | ||
84 | |||
85 | #endif /* _TRACE_THP_H */ | ||
86 | |||
87 | /* This part must be outside protection */ | ||
88 | #include <trace/define_trace.h> | ||