when use macro 'kputc' kphex' to print the content of
register r0-r3, they will corrupts these registers.
the same as the macro 'debug_reloc_start' and 'debug_reloc_end'.
so using 'push' when enter the macro and 'pop' when leave
the macro to fix it.
Signed-off-by: Wang Long long.wangl
, Whether the
CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot.
Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel
3.17-rc2 ?
I write the following patch to test the return value of is_smp().
Signed-off-by: Wang Long
, Whether the
CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot.
Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel
3.17-rc2 ?
I write the following patch to test the return value of is_smp().
Signed-off-by: Wang Long
, Whether the
CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot.
Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel
3.17-rc2 ?
I write the following patch to test the return value of is_smp().
Signed-off-by: Wang Long
Enable Hisilicon HiP01 SoC. This HiP01 SoC series support both
one core or dual cores and quad cores. The core is Cortex A9.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach-hisi/Kconfig | 8
arch/arm/mach-hisi/hisilicon.c | 10 ++
2 files changed, 18
As hix5hd2 and hip01 has the same .smp_prepare_cpus
in struct smp_operations, so rename hix5hd2_smp_prepare_cpus
to hisi_common_smp_prepare_cpus.
the hip01 will use hisi_common_smp_prepare_cpus in its
struct smp_operations.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach
As hix5hd2 and hip01 has the same secondary_startup
so rename hix5hd2_secondary_startup to
to hisi_secondary_startup.
the hip01 will use hisi_secondary_startup for the
secondary core boot.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach-hisi/core.h| 2 +-
arch/arm/mach
Add dts file for Hisilicon hip01 ca9x2 board
Signed-off-by: Wang Long long.wangl...@huawei.com
---
.../bindings/arm/hisilicon/hisilicon.txt | 25 +
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/hip01-ca9x2.dts | 50 ++
arch
enable smp for HiP01 board.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/boot/dts/hip01-ca9x2.dts | 1 +
arch/arm/mach-hisi/core.h | 3 +++
arch/arm/mach-hisi/hotplug.c | 31
arch/arm/mach-hisi/platsmp.c | 50
Make hip01 share the hisi_defconfig.
And add it into multi_v7_defconfig too.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/configs/hisi_defconfig | 1 +
arch/arm/configs/multi_v7_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/configs/hisi_defconfig
rebased on Linux 3.19-rc1.
Best Regards
Wang Long (7):
ARM: debug: add HiP01 debug uart
ARM: hisi: enable HiP01 SoC
ARM: dts: Add hip01-ca9x2 dts file
ARM: config: enable ARCH_HIP01
ARM: hisi: add a common smp_prepares_cpus function
ARM: hisi: rename secondary_startup function
ARM
Add the support of Hisilicon HiP01 debug uart.
The uart of hip01 is 8250 compatible.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/Kconfig.debug | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 5ddd490..e0cf6ce
HiP04 GIC extends to support 16 cores, so we should
initialize the hip04_cpu_map to 0x.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/irqchip/irq-hip04.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-hip04.c b/drivers/irqchip/irq
Add the support of Hisilicon HiP01 debug uart.
The uart of hip01 is 8250 compatible.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/Kconfig.debug | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index d8f6a2e..ab65e58
Add dts file for Hisilicon hip01 ca9x2 board
Signed-off-by: Wang Long long.wangl...@huawei.com
---
.../bindings/arm/hisilicon/hisilicon.txt | 25 +
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/hip01-ca9x2.dts | 51 ++
arch
Enable Hisilicon HiP01 SoC. This HiP01 SoC series support both
one core or dual cores and quad cores. The core is Cortex A9.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach-hisi/Kconfig | 8
arch/arm/mach-hisi/hisilicon.c | 10 ++
2 files changed, 18
enable smp for HiP01 board.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/boot/dts/hip01-ca9x2.dts | 1 +
arch/arm/mach-hisi/core.h | 3 +++
arch/arm/mach-hisi/hotplug.c | 31
arch/arm/mach-hisi/platsmp.c | 50
As hix5hd2 and hip01 has the same secondary_startup
so rename hix5hd2_secondary_startup to
to hisi_secondary_startup.
the hip01 will use hisi_secondary_startup for the
secondary core boot.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach-hisi/core.h| 2 +-
arch/arm/mach
Make hip01 share the hisi_defconfig.
And add it into multi_v7_defconfig too.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/configs/hisi_defconfig | 1 +
arch/arm/configs/multi_v7_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/configs/hisi_defconfig
This series patch enable Hisilicon HiP01 SoC. The HiP01 SoC series
chip is designed for networking product, it integrates a rich peripheral
interfaces to support network applications and supports both one
core or dual cores and quad cores. The core is Cortex A9.
Wang Long (7):
ARM: debug: add
As hix5hd2 and hip01 has the same .smp_prepare_cpus
in struct smp_operations, so rename hix5hd2_smp_prepare_cpus
to hisi_common_smp_prepare_cpus.
the hip01 will use hisi_common_smp_prepare_cpus in its
struct smp_operations.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/mach
This KProbes example is a little useless if it doesn't print anything.
For ARM print similar messages to those produced on x86 and PPC.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
samples/kprobes/kprobe_example.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/samples
Now kprobe status have four flags, so kprobes.txt
should reflect all of them.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/kprobes.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt
index 4227ec2
echo 99 /proc/int-fifo Never return
echo 1000 /proc/int-fifo Never return
this patch fix it.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
samples/kfifo/inttype-example.c | 51 -
1 file changed, 40 insertions
;
242 } else
243 err = 0;
244 fifo-in += len;
245 return err;
246 }
247 EXPORT_SYMBOL(__kfifo_from_user);
int the line 231: if len = 3, esize = 4, then at the line 232 len = 0.
Wang Long (1):
samples: Fix `echo 1 /proc/int-fifo` never return error
As the function hex_dump_to_buffer returns the amount of bytes placed
in the buffer without terminating NUL. the test-hexdump should test
the return value of it.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
lib/test-hexdump.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions
Enable Hip01 platform support for multi_v7_defconfig.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
arch/arm/configs/multi_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/multi_v7_defconfig
b/arch/arm/configs/multi_v7_defconfig
index bc393b7..e5e0172
The command `echo set_ftrace_pid` should be used to clean the filter quietly.
because the command `echo -1 set_ftrace_pid` will output the following:
bash: echo: write error: Invalid argument.
so update the file Documentation/trace/ftrace.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
-adjust the sequence of the patches
* v2 - v1:
- According to Gaurav's advice. make the rename
file patch correctly.
Wang Long (3):
of/unittest: replace 'selftest' with 'unittest'
Documentation: rename of_selftest.txt to of_unittest.txt
Documentation: update the of_unittest.txt
Since the test of the devicetree's OF api use unittest as
its name. so we should rename of_selftest.txt to of_unittest.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/{of_selftest.txt = of_unittest.txt} | 0
1 file changed, 0 insertions(+), 0 deletions
This patch just replace the string 'selftest' with 'unittest'
in OF unittest and data and binding file.
I have tested it successfully on ARM.
Signed-off-by: Gaurav Minocha gaurav.minocha...@gmail.com
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/bindings
-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_unittest.txt | 35
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/Documentation/devicetree/of_unittest.txt
b/Documentation/devicetree/of_unittest.txt
index 57a808b..d79a6bc
The value of cxt-record_size does not change in the loop,
so this patch optimize the assign statement by moving
it to outer.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
fs/pstore/ram.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/pstore/ram.c b/fs/pstore
The value of cxt-record_size does not change in the loop,
so this patch optimize the assign statement by dropping
sz entirely and using cxt-record_size in its place.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
fs/pstore/ram.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions
From: Kirill A. Shutemov kirill.shute...@linux.intel.com
commit ee53664bda169f519ce3c6a22d378f0b946c8178 upstream.
Sasha Levin found a NULL pointer dereference that is due to a missing
page table lock, which in turn is due to the pmd entry in question being
a transparent huge-table entry.
The
Hi Greg and Jiri,
The following patch commit ee53664bda169f519ce3c6a22d378f0b946c8178
mm: Fix NULL pointer dereference in madvise(MADV_WILLNEED) support
fix CVE-2014-8173. I wish you could merge this fix into stable 3.10
and 3.12, because the linux kernel before 3.13 on NUMA systems
is
Since the test of the devicetree's OF api use unittest as
its name. so we should rename of_selftest.txt to of_unittest.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 197 ---
Documentation/devicetree
-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/Documentation/devicetree/of_selftest.txt
b/Documentation/devicetree/of_selftest.txt
index 57a808b..3e4e7d4 100644
The serial_core.h file have been included in header file
serial_8250.h. so remove the #include serial_core.h in
some 8250 serial drivers, because they have included the header file
serial_8250.h.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/tty/serial/8250/8250_core.c | 1
The serial_core.h file have been included in header file
serial_8250.h. so remove the #include serial_core.h in
some 8250 serial drivers, because they have included the header file
serial_8250.h.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/tty/serial/8250/8250_core.c | 1
In the function ramoops_probe, the console_size, pmsg_size,
ftrace_size may be update because the value is not the power
of two. We should update the module parameter variables
as well so they are visible through /sys/module/ramoops/parameters
correctly.
Signed-off-by: Wang Long long.wangl
This series patches do some small fixes in drivers/of/unittest.c,
and update the Documenttion.
At last, replace selftest with unittest in the c, dtsi
and binding files.
* v2 - v1:
- According to Gaurav's advice. make the rename
file patch correctly.
Wang Long (5
Since the test of the devicetree's OF api use unittest as
its name. so we should rename of_selftest.txt to of_unittest.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/{of_selftest.txt = of_unittest.txt} | 0
1 file changed, 0 insertions(+), 0 deletions
This patch fix the wrong expected value of of_property_match_string
in of_selftest_property_string.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
This patch just replace the string 'selftest' with 'unittest'
in OF unittest and data and binding file.
I have tested it successfully on ARM.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/bindings/unittest.txt | 44 +-
drivers/of/unittest-data/tests
This patch replace the selftest with unittest.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/bindings/unittest.txt | 44 +-
drivers/of/unittest-data/tests-overlay.dtsi| 108 ++--
drivers/of/unittest.c | 702
This series patches do some small fixes in drivers/of/unittest.c,
and update the Documenttion.
At last, replace selftest with unittest in the c and dtsi files.
Wang Long (5):
of/unittest: remove the duplicate of_changeset_init
of/unittest: Fix the wrong expected value
-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 35
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/Documentation/devicetree/of_selftest.txt
b/Documentation/devicetree/of_selftest.txt
index 57a808b..d79a6bc
Since the test of the devicetree's OF api use unittest as
its name. so we should rename of_selftest.txt to of_unittest.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 198 ---
Documentation/devicetree
This patch fix the wrong expected value of of_property_match_string
in of_selftest_property_string.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
Remove the duplicate of_changeset_init. In of_selftest_changeset
testcase, the struct of_changeset chgset is initialized twice,
but only once is enough. so, drop the first initializtion code.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 1 -
1 file changed, 1
-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 35
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/Documentation/devicetree/of_selftest.txt
b/Documentation/devicetree/of_selftest.txt
index 57a808b..d79a6bc
Remove the duplicate of_changeset_init. In of_selftest_changeset
testcase, the struct of_changeset chgset is initialized twice,
but only once is enough. so, drop the first initializtion code.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 1 -
1 file changed, 1
/parameters/backend
(null)
Signed-off-by: Wang Long long.wangl...@huawei.com
---
fs/pstore/platform.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index c4c9a10..a52c218 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
If we set ramoops.mem_type=1 in command line, the current
code can not change mem_type to 1, because it is assigned
to 0 in function ramoops_register_dummy.
This patch make it possible to change mem_type parameter
in command line.
Signed-off-by: Wang Long long.wangl...@huawei.com
Acked-by: Tony
If we set ramoops.mem_type=1 in command line, the current
code can not change mem_type to 1, because it is assigned
to 0 in function ramoops_register_dummy.
This patch make it possible to change mem_type parameter
in command line.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
fs/pstore
-by: Wang Long long.wangl...@huawei.com
---
Documentation/devicetree/of_selftest.txt | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/Documentation/devicetree/of_selftest.txt
b/Documentation/devicetree/of_selftest.txt
index 57a808b..ffce144 100644
This patch fix the wrong expected value of of_property_match_string
in of_selftest_property_string.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
Remove the duplicate of_changeset_init. In of_selftest_changeset
testcase, the struct of_changeset chgset is initialized twice,
but only once is enough. so, drop the first initializtion code.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
drivers/of/unittest.c | 1 -
1 file changed, 1
The CONFIG_DEBUG_PAGEALLOC option now is located under Kernel
hacking / Memory Debugging / Debug page memory allocations.
so we should update the description in kmemcheck.txt.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/kmemcheck.txt | 4 ++--
1 file changed, 2 insertions
as the commit: lib/vsprintf: implement bitmap printing through
'%*pb[l]' add an easy way to print bitmaps. so printk-formats.txt
should reflect it.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/printk-formats.txt | 9 +
1 file changed, 9 insertions(+)
diff --git
This patch just fix a typo (s/witch/which)
Signed-off-by: Wang Long wangl...@laoqinren.net
---
Documentation/kasan.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt
index 092fc10..38feb38 100644
--- a/Documentation/kasan.txt
This patch just remove duplicate definition of the macro
KASAN_FREE_PAGE in mm/kasan/kasan.h
Signed-off-by: Wang Long long.wangl...@huawei.com
---
mm/kasan/kasan.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/kasan/kasan.h b/mm/kasan/kasan.h
index 4986b0a..c242adf 100644
--- a/mm/kasan
This patch just fix a typo (s/witch/which)
Signed-off-by: Wang Long wangl...@laoqinren.net
---
Documentation/kasan.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt
index 092fc10..063095a 100644
--- a/Documentation/kasan.txt
:Hardware driver for cpufreq.
Although this does not affect anything, I think we should only have
one. so delete the second one because the first one is described in
more detail.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/cpu-freq/user-guide.txt | 2 --
1 file
:Hardware driver for cpufreq.
Although this does not affect anything, I think we should only have
one. so delete the second one because the first one is described in
more detail.
Signed-off-by: Wang Long long.wangl...@huawei.com
---
Documentation/cpu-freq/user-guide.txt | 2 --
1 file
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 7 +--
kernel/trace/seq_buf.c | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/linux/seq_buf.h b/include
context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
arch/x86/kernel/apic/hw_nmi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c
index 1eb5f90
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 8
1
/r/20141118164025.gl23...@pathway.suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
kernel/trace/seq_buf.c | 23 ++-
1 file changed, 18
j...@perches.com
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
lib/seq_buf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/seq_buf.c b/lib/seq_buf.c
index 795dd94..f25c33b 100644
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 6 +++---
kernel
://lkml.kernel.org/r/20141114011412.170377...@goodmis.org
Link: http://lkml.kernel.org/r/20141114011413.321654...@goodmis.org
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
if just the len
of the seq_buf descriptor is used to copy memory.
Link: http://lkml.kernel.org/r/20141114121911.09ba3...@gandalf.local.home
Reported-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- only backport seq_buf related
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Acked-by: Paul E. McKenney paul...@linux.vnet.ibm.com
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/percpu.h | 3 +++
include/linux
...@suse.cz
[wanglong: backport to 3.10 stable
- only backport seq_buf related
]
Singed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 2 +-
kernel/trace/seq_buf.c | 28
2 files changed, 17 insertions
-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/percpu.h | 1 +
include/linux/printk.h | 4 ++--
kernel/printk.c| 3 +++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
the seq_file code.
Link: http://lkml.kernel.org/r/20141104160222.352309...@goodmis.org
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off
backport seq_buf related
- adjust context
]
Singed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 81
kernel/trace/Makefile | 1 +
kernel/trace/seq_buf.c | 341
-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
kernel/trace/Makefile | 1 -
lib/Makefile| 2
Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 41 +
kernel/trace/seq_buf.c | 7 +++
2 files changed, 44 insertions
in the seq_buf buffer, and not
if it is less than or equal to as it currently does. Then seq_buf_vprintf()
will know if the write from vsnpritnf() was truncated or not.
Cc: sta...@vger.kernel.org
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt
This is my backport patch series to Fix the problem(backport to 3.10):
When trigger_all_cpu_backtrace() is called on x86, it will trigger an
NMI on each CPU and call show_regs(). But this can lead to a hard lock
up if the NMI comes in on another printk().
The solution is described in commit
: backport to 3.10 stable
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
arch/x86/kernel/apic/hw_nmi.c | 86 +--
1 file changed, 83 insertions(+), 3 deletions(-)
diff --git a/arch/x86
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 8
1
j...@perches.com
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
lib/seq_buf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/seq_buf.c b/lib/seq_buf.c
index 795dd94..f25c33b 100644
Acked-by: Paul E. McKenney paul...@linux.vnet.ibm.com
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/percpu.h | 3 +++
include/linux
This is my backport patch series to Fix the problem(backport to 3.10):
When trigger_all_cpu_backtrace() is called on x86, it will trigger an
NMI on each CPU and call show_regs(). But this can lead to a hard lock
up if the NMI comes in on another printk().
The solution is described in commit
if just the len
of the seq_buf descriptor is used to copy memory.
Link: http://lkml.kernel.org/r/20141114121911.09ba3...@gandalf.local.home
Reported-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- only backport seq_buf related
]
Signed-off-by: Wang Long long.wangl...@huawei.com
backport seq_buf related
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 81
kernel/trace/Makefile | 1 +
kernel/trace/seq_buf.c | 341
://lkml.kernel.org/r/20141114011412.170377...@goodmis.org
Link: http://lkml.kernel.org/r/20141114011413.321654...@goodmis.org
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
...@suse.cz
[wanglong: backport to 3.10 stable
- only backport seq_buf related
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 2 +-
kernel/trace/seq_buf.c | 28
2 files changed, 17 insertions
the seq_file code.
Link: http://lkml.kernel.org/r/20141104160222.352309...@goodmis.org
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off
Tested-by: Jiri Kosina jkos...@suse.cz
Acked-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 6 +++---
kernel
Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 41 +
kernel/trace/seq_buf.c | 7 +++
2 files changed, 44 insertions
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
include/linux/seq_buf.h | 7 +--
kernel/trace/seq_buf.c | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/linux/seq_buf.h b/include
/r/20141118164025.gl23...@pathway.suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
kernel/trace/seq_buf.c | 23 ++-
1 file changed, 18
in the seq_buf buffer, and not
if it is less than or equal to as it currently does. Then seq_buf_vprintf()
will know if the write from vsnpritnf() was truncated or not.
Cc: sta...@vger.kernel.org
[wanglong: backport to 3.10 stable]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt
context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
arch/x86/kernel/apic/hw_nmi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c
index eebe5ec
-by: Jiri Kosina jkos...@suse.cz
Reviewed-by: Petr Mladek pmla...@suse.cz
[wanglong: backport to 3.10 stable
- adjust context
]
Signed-off-by: Wang Long long.wangl...@huawei.com
Signed-off-by: Steven Rostedt rost...@goodmis.org
---
kernel/trace/Makefile | 1 -
kernel/trace/seq_buf.c | 359
1 - 100 of 308 matches
Mail list logo