[PATCH] ARM: avoid corrupts register in mcaro kputc kphex etc.

2014-08-20 Thread Wang Long
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

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread 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

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread 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

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread 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

[PATCH 2/7] ARM: hisi: enable HiP01 SoC

2014-12-23 Thread 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

[PATCH 5/7] ARM: hisi: add a common smp_prepares_cpus function

2014-12-23 Thread Wang Long
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

[PATCH 6/7] ARM: hisi: rename secondary_startup function

2014-12-23 Thread Wang Long
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

[PATCH 3/7] ARM: dts: Add hip01-ca9x2 dts file

2014-12-23 Thread Wang Long
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

[PATCH 7/7] ARM: hisi: enable smp for HiP01

2014-12-23 Thread Wang Long
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

[PATCH 4/7] ARM: config: enable ARCH_HIP01

2014-12-23 Thread Wang Long
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

[PATCH 0/7] ARM: hisi: enable HiP01 SoC

2014-12-23 Thread Wang Long
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

[PATCH 1/7] ARM: debug: add HiP01 debug uart

2014-12-23 Thread Wang Long
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

[PATCH] irq: irq-hip04: initialize hip04_cpu_map to 0xffff

2014-12-11 Thread Wang Long
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

[PATCH 1/7] ARM: debug: add HiP01 debug uart

2014-11-27 Thread Wang Long
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

[PATCH 3/7] ARM: dts: Add hip01-ca9x2 dts file

2014-11-27 Thread Wang Long
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

[PATCH 2/7] ARM: hisi: enable HiP01 SoC

2014-11-27 Thread 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

[PATCH 7/7] ARM: hisi: enable smp for HiP01

2014-11-27 Thread Wang Long
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

[PATCH 6/7] ARM: hisi: rename secondary_startup function

2014-11-27 Thread Wang Long
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

[PATCH 4/7] ARM: config: enable ARCH_HIP01

2014-11-27 Thread Wang Long
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

[PATCH 0/7] ARM: hisi: enable HiP01 SoC

2014-11-27 Thread Wang Long
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

[PATCH 5/7] ARM: hisi: add a common smp_prepares_cpus function

2014-11-27 Thread Wang Long
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

[PATCH] SAMPLES: kprobe_example: Make it print something on ARM.

2015-02-03 Thread Wang Long
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

[PATCH] Documentation: add description for FTRACE probe status

2015-02-04 Thread Wang Long
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

[PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
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

[PATCH] samples: Fix `echo 1 /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
; 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

[PATCH] test-hexdump: test the return value of the hex_dump_to_buffer

2015-02-15 Thread Wang Long
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

[PATCH] ARM: multi_v7_defconfig: Enable Hip01 platform

2015-01-13 Thread Wang Long
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

[PATCH] Documentation: Fix the wrong command `echo -1 set_ftrace_pid` for cleaning the filter.

2015-02-04 Thread Wang Long
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

[PATCH v3 0/3] replace 'selftest' with 'unittest' and update the document.

2015-03-16 Thread Wang Long
-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

[PATCH v3 2/3] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-16 Thread Wang Long
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

[PATCH v3 1/3] of/unittest: replace 'selftest' with 'unittest'

2015-03-16 Thread Wang Long
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

[PATCH v3 3/3] Documentation: update the of_unittest.txt

2015-03-16 Thread Wang Long
-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

[PATCH] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread Wang Long
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

[PATCH v2] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread Wang Long
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

[PATCH] mm: Fix NULL pointer dereference in madvise(MADV_WILLNEED) support

2015-03-20 Thread Wang Long
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

[request for stable inclusion 3.10 and 3.12] Fix CVE-2014-8173

2015-03-20 Thread Wang Long
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

[PATCH v2 2/2] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-08 Thread Wang Long
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

[PATCH v2 1/2] Documentation: update the of_selftest.txt

2015-03-08 Thread Wang Long
-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

[PATCH] serial: 8250: remove the redundant include

2015-03-08 Thread Wang Long
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

[PATCH v1] serial: 8250: remove the redundant include

2015-03-08 Thread Wang Long
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

[PATCH] fs/pstore/ram.c: Fix the ramoops module parameters update

2015-03-09 Thread Wang Long
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

[PATCH v2 0/5] Update the OF unittest and some small fix

2015-03-11 Thread Wang Long
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

[PATCH v2 4/5] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-11 Thread Wang Long
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

[PATCH v2 2/5] of/unittest: Fix the wrong expected value in of_selftest_property_string

2015-03-11 Thread Wang Long
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

[PATCH v2 5/5] of/unittest: replace 'selftest' with 'unittest'

2015-03-11 Thread Wang Long
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

[PATCH 5/5] of/unittest: replace selftest with unittest

2015-03-10 Thread Wang Long
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

[PATCH 0/5] Update the OF unittest and some small fix

2015-03-10 Thread Wang Long
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

[PATCH 3/5] Documentation: update the of_selftest.txt

2015-03-10 Thread Wang Long
-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

[PATCH 4/5] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-10 Thread Wang Long
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

[PATCH 2/5] of/unittest: Fix the wrong expected value in of_selftest_property_string

2015-03-10 Thread Wang Long
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

[PATCH v2 1/5] of/unittest: remove the duplicate of_changeset_init

2015-03-11 Thread Wang Long
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

[PATCH v2 3/5] Documentation: update the of_selftest.txt

2015-03-11 Thread Wang Long
-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

[PATCH 1/5] of/unittest: remove the duplicate of_changeset_init

2015-03-10 Thread Wang Long
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

[PATCH] fs/pstore: update the backend parameter in pstore module

2015-03-26 Thread Wang Long
/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

[PATCH v2] ramoops: make it possible to change mem_type param.

2015-03-30 Thread Wang Long
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

[PATCH] ramoops: make it possible to change mem_type param.

2015-03-27 Thread Wang Long
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

[PATCH] Documentation: update the of_selftest.txt

2015-03-02 Thread Wang Long
-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

[PATCH] of/unittest: Fix the wrong expected value in of_selftest_property_string

2015-03-02 Thread Wang Long
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

[PATCH] of/selftest: remove the duplicate of_changeset_init

2015-03-01 Thread Wang Long
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

[PATCH] Documentation: update the CONFIG_DEBUG_PAGEALLOC description

2015-03-01 Thread Wang Long
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

[PATCH] Documentation: add print bitmap description

2015-02-25 Thread Wang Long
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

[PATCH] Documentation: kasan: fix a typo

2015-04-22 Thread Wang Long
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

[PATCH] kasan: Remove duplicate definition of the macro KASAN_FREE_PAGE

2015-04-22 Thread Wang Long
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

[PATCH v2] Documentation: kasan: fix a typo

2015-04-22 Thread Wang Long
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

[PATCH] Documentation: cpu-freq: delete duplicate description of sysfs interface 'scaling_driver'

2015-05-04 Thread Wang Long
: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

[PATCH] Documentation: cpu-freq: delete duplicate description of sysfs interface 'scaling_driver'

2015-05-04 Thread Wang Long
: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

[RFC PATCH 10/17] seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTF

2015-05-14 Thread Wang Long
[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

[RFC PATCH 17/17] x86/nmi: Fix use of unallocated cpumask_var_t

2015-05-14 Thread Wang Long
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

[RFC PATCH 03/17] tracing: Convert seq_buf fields to be like seq_file fields

2015-05-14 Thread Wang Long
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

[RFC PATCH 07/17] seq_buf: Add seq_buf_can_fit() helper function

2015-05-14 Thread Wang Long
/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

[RFC PATCH 13/17] seq_buf: Fix seq_buf_bprintf() truncation

2015-05-14 Thread Wang Long
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

[RFC PATCH 08/17] tracing: Have seq_buf use full buffer

2015-05-14 Thread Wang Long
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

[RFC PATCH 05/17] seq_buf: Create seq_buf_used() to find out how much was written

2015-05-14 Thread Wang Long
://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

[RFC PATCH 06/17] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2015-05-14 Thread Wang Long
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

[RFC PATCH 14/17] printk: Add per_cpu printk func to allow printk to be diverted

2015-05-14 Thread Wang Long
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

[RFC PATCH 02/17] tracing: Convert seq_buf_path() to be like seq_path()

2015-05-14 Thread Wang Long
...@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

[RFC PATCH 15/17] printk/percpu: Define printk_func when printk is not defined

2015-05-14 Thread Wang Long
-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

[RFC PATCH 04/17] tracing: Add a seq_buf_clear() helper and clear len and readpos in init

2015-05-14 Thread Wang Long
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

[RFC PATCH 01/17] tracing: Create seq_buf layer in trace_seq

2015-05-14 Thread Wang Long
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

[RFC PATCH 11/17] seq_buf: Move the seq_buf code to lib/

2015-05-14 Thread Wang Long
-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

[RFC PATCH 09/17] tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

2015-05-14 Thread Wang Long
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

[RFC PATCH 12/17] seq_buf: Fix seq_buf_vprintf() truncation

2015-05-14 Thread Wang Long
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

[RFC PATCH 00/17][request for stable 3.10 inclusion] x86/nmi: Print all cpu stacks from NMI safely

2015-05-14 Thread Wang Long
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

[RFC PATCH 16/17] x86/nmi: Perform a safe NMI stack trace on all CPUs

2015-05-14 Thread Wang Long
: 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

[PATCH v2 03/17] tracing: Convert seq_buf fields to be like seq_file fields

2015-05-19 Thread Wang Long
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

[PATCH v2 13/17] seq_buf: Fix seq_buf_bprintf() truncation

2015-05-19 Thread Wang Long
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

[PATCH v2 14/17] printk: Add per_cpu printk func to allow printk to be diverted

2015-05-19 Thread Wang Long
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

[PATCH v2 00/17] [request for stable 3.10 inclusion] x86/nmi: Print all cpu stacks from NMI safely

2015-05-19 Thread Wang Long
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

[PATCH v2 06/17] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2015-05-19 Thread Wang Long
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

[PATCH v2 01/17] tracing: Create seq_buf layer in trace_seq

2015-05-19 Thread Wang Long
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

[PATCH v2 05/17] seq_buf: Create seq_buf_used() to find out how much was written

2015-05-19 Thread Wang Long
://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

[PATCH v2 02/17] tracing: Convert seq_buf_path() to be like seq_path()

2015-05-19 Thread Wang Long
...@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

[PATCH v2 04/17] tracing: Add a seq_buf_clear() helper and clear len and readpos in init

2015-05-19 Thread Wang Long
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

[PATCH v2 08/17] tracing: Have seq_buf use full buffer

2015-05-19 Thread Wang Long
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

[PATCH v2 09/17] tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

2015-05-19 Thread Wang Long
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

[PATCH v2 10/17] seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTF

2015-05-19 Thread Wang Long
[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

[PATCH v2 07/17] seq_buf: Add seq_buf_can_fit() helper function

2015-05-19 Thread Wang Long
/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

[PATCH v2 12/17] seq_buf: Fix seq_buf_vprintf() truncation

2015-05-19 Thread Wang Long
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

[PATCH v2 17/17] x86/nmi: Fix use of unallocated cpumask_var_t

2015-05-19 Thread Wang Long
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

[PATCH v2 11/17] seq_buf: Move the seq_buf code to lib/

2015-05-19 Thread Wang Long
-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   2   3   4   >