[PATCH v5 06/18] cris: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Acked-by: Jesper Nilsson Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/c

[PATCH v5 16/18] memory: omap-gpmc: use of_platform_default_populate() to populate default bus

2016-05-31 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Roger Quadros Cc: Roger Quadros Cc: Tony Lindgren Signed-off-by: Kefeng Wang --- drivers/memory/omap-gpmc.c | 3 +-- 1 file changed

[PATCH v5 13/18] mips: use of_platform_default_populate() to populate default bus

2016-05-31 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Joshua Henderson Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/pic32/pic32mzda/init.c | 3 +-- 1 file changed, 1 insertion

[PATCH v5 07/18] metag: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 5 + 1 file changed, 1

[PATCH v5 12/18] arm: use of_platform_default_populate() to populate

2016-05-31 Thread Kefeng Wang
: Roland Stigge Cc: Jason Cooper Cc: Ray Jui Cc: Viresh Kumar Cc: Stephen Warren Cc: Rob Herring Cc: Michal Simek Signed-off-by: Kefeng Wang --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91sam9.c| 2 +- arch/arm/mach-at91/sama5.c | 2 +- arch

[PATCH v5 18/18] Revert "of/platform: export of_default_bus_match_table"

2016-05-31 Thread Kefeng Wang
: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index c559ef8..153dbe1 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -31,7 +31,6 @@ const struct of_device_id

[PATCH v5 17/18] of: unittest: use of_platform_default_populate() to populate default bus

2016-05-31 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions

[PATCH v5 04/18] arm64: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/arm64/kern

[PATCH v5 02/18] arc: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Acked-by: Vineet Gupta Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 7 -

[PATCH v5 09/18] nios2: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 4 +--- 1 file

[PATCH v5 00/18] Cleanup for populate default bus

2016-05-31 Thread Kefeng Wang
://lkml.org/lkml/2016/6/1/43 Kefeng Wang (18): of/platform: Add common method to populate default bus arc: Remove unnecessary of_platform_populate with default match table arm: Remove unnecessary of_platform_populate with default match table arm64: Remove unnecessary of_platform_populate with

[PATCH v5 08/18] mips: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
Lutfullah Kakakhel Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 3 --- arch/mips/jz4740/setup.c | 8 arch/mips/mti-sead3/sead3-setup.c | 8 arch/mips/pistachio/init.c| 13 - arch/mips/xilfpga/init.c | 13

[PATCH v5 15/18] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-05-31 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Masahiro Yamada Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1

[PATCH v5 14/18] bus: imx-weim: use of_platform_default_populate() to populate default bus

2016-05-31 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Shawn Guo Cc: Signed-off-by: Huang Shijie Cc: Shawn Guo Signed-off-by: Kefeng Wang --- drivers/bus/imx-weim.c | 5 ++--- 1 file

[PATCH v5 10/18] sh: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Kefeng Wang --- arch/sh/boards/of-gene

[PATCH v5 11/18] xtensa: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
x Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 11 --- arch/xtensa/kernel/time.c | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 9735691..18af563 100644 --- a/arch/xtensa/kernel/set

[PATCH v5 03/18] arm: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
m Cc: Rob Herring Cc: Shawn Guo Cc: Santosh Shilimkar Cc: Roland Stigge Cc: Jason Cooper Cc: Haojian Zhuang Cc: Heiko Stuebner Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Tony Prisk Cc: Arnd Bergmann Cc: Russell King Signed-off-by: Kefeng Wang --- arch/arm/kernel/setup.c

[PATCH v5 05/18] c6x: Remove unnecessary of_platform_populate with default match table

2016-05-31 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/c6x/platforms/Makefile |

[PATCH 1/3] of_numa: Use of_get_next_parent to simplify code

2016-06-01 Thread Kefeng Wang
Use of_get_next_parent() instead of open-code. Signed-off-by: Kefeng Wang --- drivers/of/of_numa.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 3157130..ed7bd22 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of

[PATCH 3/3] arm64: numa: Use pr_fmt()

2016-06-01 Thread Kefeng Wang
Use pr_fmt to prefix kernel output, and remove duplicated msg of NUMA turned off. Signed-off-by: Kefeng Wang --- arch/arm64/mm/numa.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c

[PATCH 0/3] of: numa: cleanup

2016-06-01 Thread Kefeng Wang
1) Use of_get_next_parent in of_node_to_nid. 2) Use pr_fmt to prefix kernel output. and drop duplicated message of NUMA turned off. Based of Zhen Lei 's patchset v3 "fix some type infos and bugs for arm64/of num" in http://www.spinics.net/lists/arm-kernel/msg507650.html.

[PATCH 2/3] of_numa: Use pr_fmt()

2016-06-01 Thread Kefeng Wang
Use pr_fmt to prefix kernel output. Signed-off-by: Kefeng Wang --- drivers/of/of_numa.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index ed7bd22..019738f 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of

[Question] Crash when cat /dev/kmem in arm/arm64 but not in x86

2016-05-30 Thread Kefeng Wang
Hi all, When cat /dev/kmem in arm/arm64, it will crash, this is caused by "from = 0" in copy_to_user(void __user *to, const void *from, unsigned long n), call trace shows below(eg, arm64) [9.913370] Unable to handle kernel NULL pointer dereference at virtual address [9.914391] p

Re: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-10-30 Thread Kefeng Wang
On 2016/10/27 23:18, Greg Kroah-Hartman wrote: > On Mon, Oct 24, 2016 at 11:59:20AM +0800, Kefeng Wang wrote: >> Hi Greg, any more comments, thanks. > > Never wait, just resend if you have comments and you know you have to > fix them up... > Hi Greg, as I menti

Re: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-10-23 Thread Kefeng Wang
Hi Greg, any more comments, thanks. On 2016/9/27 21:15, Kefeng Wang wrote: > > > On 2016/9/27 18:57, Greg Kroah-Hartman wrote: >> On Sat, Sep 24, 2016 at 05:14:25PM +0800, Kefeng Wang wrote: >>> Declare an OF early console for SBSA UART so that the early console device

[PATCH RESEND] tty: amba-pl011: Add earlycon support for SBSA UART

2016-10-30 Thread Kefeng Wang
Declare an OF early console for SBSA UART so that the early console device can be specified via the "stdout-path" property in device-tree. Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Kefeng Wang --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) di

Re: [PATCH net-next] ixgbevf: fix 'Etherleak' in ixgbevf

2016-12-21 Thread Kefeng Wang
On 2016/12/21 10:20, Alexander Duyck wrote: > I find it curious that only the last 4 bytes have data in them. I'm > wondering if the NIC/driver in the Windows/Nessus system is > interpreting the 4 byte CRC on the end of the frame as padding instead > of stripping it. > > Is there any chance you

Re: Linux 4.10-rc1

2016-12-26 Thread Kefeng Wang
On 2016/12/26 16:38, Hanjun Guo wrote: > Hi Linus, > > On 2016/12/26 8:41, Linus Torvalds wrote: >> It's Christmas Day, and it's two weeks since the merge window opened. >> Thus, the merge window is now closed. >> >> I did a few final pulls today, but I also rejected a couple of pulls >> that ca

[PATCH] firmware: dmi_scan: Always show system identification string

2016-12-08 Thread Kefeng Wang
Let's keep consistent when print dmi_ids_string between SMBIOS 2.x and SMBIOS 3.x, and always show the system identification string, like Vendor, Product/Board name and BIOS infos. Signed-off-by: Kefeng Wang --- drivers/firmware/dmi_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

Re: [PATCH] firmware: dmi_scan: Always show system identification string

2016-12-11 Thread Kefeng Wang
On 2016/12/9 22:55, Ard Biesheuvel wrote: > On 9 December 2016 at 06:54, Kefeng Wang wrote: >> Let's keep consistent when print dmi_ids_string between SMBIOS 2.x >> and SMBIOS 3.x, and always show the system identification string, >> like Vendor, Product/Board name a

Re: [PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-19 Thread Kefeng Wang
On 2017/3/18 7:29, Martin K. Petersen wrote: > Kefeng Wang writes: > > Kefeng, > >> root@localhost ~]# sg_modes -p 0x2a /dev/sr0 >> QEMU QEMU DVD-ROM 0.15 peripheral_type: cd/dvd [0x5] >> Mode parameter header from MODE SENSE(10): >> Invalid

Re: [PATCH] arm64: add dump_stack to show_regs

2017-03-20 Thread Kefeng Wang
On 2017/3/20 19:02, Mark Rutland wrote: > On Sun, Mar 19, 2017 at 03:15:25PM +0800, Ding Tianhong wrote: >> Recently I found that when the system trigger a soft lockup in interrupt, >> there is only showing the regs, but no stack trace, it is very difficult >> to locate the problem: >> >> ===

Re: [PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-20 Thread Kefeng Wang
On 2017/3/20 22:29, Martin K. Petersen wrote: > Kefeng Wang writes: > > Kefeng, > >> The issue still exists, the patch return zero in scsi_mode_sense(), but zero >> means >> SAM_STAT_GOOD in scsi_status_is_good(), so n will be still bigger than 512; > &

Re: [PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-15 Thread Kefeng Wang
On 2017/3/16 8:07, Martin K. Petersen wrote: > Kefeng Wang writes: > > Kefeng, > >> 'n = header_length + block_descriptor_length' could be greater than 512, >> and will lead to oob access, so enlarge transfer buffer to fix it. > > Can you share the out

Re: [PATCH] perf probe: Return errno when does not hit any event

2017-03-16 Thread Kefeng Wang
On 2017/3/16 17:39, Masami Hiramatsu wrote: > On Tue, 14 Mar 2017 10:30:56 -0300 > Arnaldo Carvalho de Melo wrote: > >> Em Tue, Mar 14, 2017 at 09:19:47PM +0800, Kefeng Wang escreveu: >>> Hi all, any comments, thanks. >> >> For 'perf probe'

[PATCH v2] perf probe: Return errno when does not hit any event

2017-03-17 Thread Kefeng Wang
matsu Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Wang Nan Fixes: dddc7ee32fa1 ("perf probe: Fix an error when deleting probes successfully") Signed-off-by: Kefeng Wang --- v1->v2: - Using pr_wanring to show warning infos and drop inappropriate comment suggested by Masami Hiramatsu.

Re: [PATCH] perf probe: Return errno when does not hit any event

2017-03-06 Thread Kefeng Wang
+ Arnaldo Carvalho de Melo On 2017/3/6 17:34, Kefeng Wang wrote: > On old perf, when using perf probe -d to delete an inexistent event, > it return errno, eg, > > -bash-4.3# perf probe -d xxx || echo $? > Info: Event "*:xxx" does not exist. > Error: Failed to d

Re: [PATCH] perf probe: Return errno when does not hit any event

2017-03-14 Thread Kefeng Wang
Hi all, any comments, thanks. On 2017/3/7 15:33, Kefeng Wang wrote: > + Arnaldo Carvalho de Melo > > On 2017/3/6 17:34, Kefeng Wang wrote: >> On old perf, when using perf probe -d to delete an inexistent event, >> it return errno, eg, >> >> -bash-4.3# perf

[PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-03 Thread Kefeng Wang
'n = header_length + block_descriptor_length' could be greater than 512, and will lead to oob access, so enlarge transfer buffer to fix it. === BUG: KASAN: slab-out-of-bounds in sr_probe+0x570/0xcc0 at addr 8809020e Read of size 1 by task kworker/u48:2/188 Signed-off-by: K

Re: [PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-05 Thread Kefeng Wang
Hi all, On 2017/3/3 18:17, Kefeng Wang wrote: > 'n = header_length + block_descriptor_length' could be greater than 512, > and will lead to oob access, so enlarge transfer buffer to fix it. I am not familiar with scsi protocol,so the patch may be wrong. Question, is i

[PATCH] perf probe: Return errno when does not hit any event

2017-03-06 Thread Kefeng Wang
m previous del_perf_probe_events(). After this, it return errno again, eg, -bash-4.3# ./perf probe -d xxx || echo $? Error: Failed to delete events. 254 And it is more appropriate to return -ENOENT instead of -EPERM. Signed-off-by: Kefeng Wang --- tools/perf/builtin-probe.c | 3 ++- 1 file changed, 2

Re: kernel BUG at arch/x86/kernel/traps.c:643! when run Redhat7(v3.10) in kvm guest

2016-11-06 Thread Kefeng Wang
Hi all, any ideas, thanks. + gonglei, haibin On 2016/10/17 15:51, Kefeng Wang wrote: > > > On 2016/10/15 2:36, Andy Lutomirski wrote: >> On Thu, Oct 13, 2016 at 11:14 PM, Kefeng Wang >> wrote: >>> Hi all, >>> >>> We met BUG_ON in do_devi

[PATCH] sched/isolcpus: Show isolated cpu map

2017-02-13 Thread Kefeng Wang
ARM64, cpulist_parse() won't return -ERANGE if isolcpus=1-10; Let's show the isolated cpu map and drop the improper error message. Cc: Prarit Bhargava Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Kefeng Wang --- kernel/sched/core.c | 13 - 1 file changed, 8 inser

Re: [PATCH] sched/isolcpus: Show isolated cpu map

2017-02-13 Thread Kefeng Wang
Hi Peter +Tejun On 2017/2/13 20:06, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 05:43:59PM +0800, Kefeng Wang wrote: >> The commit a6e4491c682a ("sched/isolcpus: Output warning when the >> 'isolcpus=' kernel parameter is invalid") adds an error messag

Re: [PATCH] sched/isolcpus: Show isolated cpu map

2017-02-13 Thread Kefeng Wang
On 2017/2/13 21:32, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 09:07:02PM +0800, Kefeng Wang wrote: >> Hi Peter >> >> +Tejun >> >> On 2017/2/13 20:06, Peter Zijlstra wrote: >>> On Mon, Feb 13, 2017 at 05:43:59PM +0800, Kefeng Wang wrote: >>>

[PATCH] mpt3sas: Fix panic when aer correct error occured

2016-07-12 Thread Kefeng Wang
hen read ioc->chip in mpt3sas_base_get_iocstate from _base_fault_reset_work. Cc: Sathya Prakash Cc: Chaitra P B Cc: Suganath Prabu Subramani Signed-off-by: Kefeng Wang --- NOTE: I found this with an earlier kernel version, but the logic is not changed. drivers/scsi/mpt3sas/mpt3sas_scsih

Re: [PATCH] serial: 8250_early: Add earlycon support for Synopsys DesignWare ABP UART

2016-06-11 Thread Kefeng Wang
On 2016/5/20 5:35, Jon Mason wrote: > On Thu, May 19, 2016 at 09:45:33AM +0800, Kefeng Wang wrote: >> +Cc Jon and arm-kernel mailist >> >> Any comments, thanks. > > It works for me. Please feel free to add > > Tested-by: Jon Mason Thanks Jon, hi Greg,

[PATCH 1/2] serial: 8250_dw: make dw8250_set_termios as default set_termios callback

2016-06-27 Thread Kefeng Wang
We can safely use dw8250_set_termios() as the default set_termios callback instead of serial8250_do_set_termios(), so do it. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c

[PATCH 2/2] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-06-27 Thread Kefeng Wang
Add ACPI identifier for UART on Hisilicon Hip05 soc, be careful that it is not 16550 compatibal. Meanwhile, set dw8250_serial_out32 to keep consistent between serial_out and serial_in in ACPI. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 8 ++-- 1 file changed, 6

[PATCH 0/2] serial: 8250_dw: Add ACPI support for uart on Hisilicon Hip05 soc

2016-06-27 Thread Kefeng Wang
was already accepted in net-next. Meanwhile, set dw8250_serial_out32 to keep consistent between serial_out and serial_in in ACPI. Kefeng Wang (2): serial: 8250_dw: make dw8250_set_termios as default set_termios callback serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

Re: [PATCH 2/2] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-06-29 Thread Kefeng Wang
+cc linux-a...@vger.kernel.org On 2016/6/28 11:17, Kefeng Wang wrote: > Add ACPI identifier for UART on Hisilicon Hip05 soc, be careful > that it is not 16550 compatibal. > > Meanwhile, set dw8250_serial_out32 to keep consistent between serial_out > and serial_in in ACPI. >

Re: [PATCH 0/2] serial: 8250_dw: Add ACPI support for uart on Hisilicon Hip05 soc

2016-06-29 Thread Kefeng Wang
On 2016/6/29 20:52, Andy Shevchenko wrote: > On Tue, 2016-06-28 at 11:17 +0800, Kefeng Wang wrote: >> Make dw8250_set_termios() as the default set_termios callback for 8250 >> dw uart, correct me >> if I am wrong. >> >> Then add ACPI support for uart on Hisilicon

[PATCH v2 2/2] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-06-29 Thread Kefeng Wang
Add ACPI identifier for UART on Hisilicon Hip05 soc, be careful that it is not 16550 compatibal. Meanwhile, set dw8250_serial_out32 to keep consistent between serial_out and serial_in in ACPI. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 13 +++-- 1 file changed

[PATCH v2 1/2] serial: 8250_dw: make dw8250_set_termios as default set_termios callback

2016-06-29 Thread Kefeng Wang
We can safely use dw8250_set_termios() as the default set_termios callback instead of serial8250_do_set_termios(), so do it. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c

[PATCH v2 0/2] serial: 8250_dw: Add ACPI support for uart on Hisilicon Hip05 soc

2016-06-29 Thread Kefeng Wang
ACPI. Change since v1: - Use acpi_match_device() instead of acpi_dev_found(), limit the check to the device being probed and not a global search for whole DSDT (pointed by graeme.greg...@linaro.org) Kefeng Wang (2): serial: 8250_dw: make dw8250_set_termios as default set_termios

Re: [PATCH v2 2/2] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-06-30 Thread Kefeng Wang
On 2016/6/30 17:54, Andy Shevchenko wrote: > On Thu, 2016-06-30 at 12:38 +0300, Andy Shevchenko wrote: >> On Thu, 2016-06-30 at 09:27 +0800, Kefeng Wang wrote: >>> Add ACPI identifier for UART on Hisilicon Hip05 soc, be careful >>> that it is not 16550 compati

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-02 Thread Kefeng Wang
ow patch look reasonable to you? If so >> I can properly resend. thanks. > > If it works for Kefeng Wang, I would be happy to take it. Yes, it works for me, tested on my board. > > Thanx, Paul >

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-02 Thread Kefeng Wang
Hi Davidlohr and Paul, On 2016/3/3 9:37, Kefeng Wang wrote: > > > On 2016/3/3 5:12, Paul E. McKenney wrote: >> On Wed, Mar 02, 2016 at 11:55:43AM -0800, Davidlohr Bueso wrote: >>> On Tue, 02 Feb 2016, Davidlohr Bueso wrote: >>> >>> I've just h

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-06 Thread Kefeng Wang
On 2016/3/3 16:36, Davidlohr Bueso wrote: > On Thu, 03 Mar 2016, Kefeng Wang wrote: > > > The below should take care of both issues, what do you think? > > Thanks, > Davidlohr > > <8- >

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-06 Thread Kefeng Wang
On 2016/3/7 13:40, Davidlohr Bueso wrote: > On Mon, 07 Mar 2016, Kefeng Wang wrote: >> On 2016/3/3 16:36, Davidlohr Bueso wrote: > >>> +/* >>> + * Indicates early cleanup, meaning that the test has not run, >>> + * such as when passing

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-07 Thread Kefeng Wang
On 2016/3/7 21:37, Paul E. McKenney wrote: > On Mon, Mar 07, 2016 at 03:02:05PM +0800, Kefeng Wang wrote: >> >> >> On 2016/3/7 13:40, Davidlohr Bueso wrote: >>> On Mon, 07 Mar 2016, Kefeng Wang wrote: >>>> On 2016/3/3 16:36, Davidlohr Bueso wrote: >&

Re: Question about PCI I/O space in ARM64

2016-03-24 Thread Kefeng Wang
On 2016/3/25 1:57, Lorenzo Pieralisi wrote: > [+ Jean] > > On Thu, Mar 24, 2016 at 11:14:50AM +0800, Kefeng Wang wrote: > > [...] > >>>> You need a PCI host controller driver (e.g. >>>> drivers/pci/host/pci-host-generic.c) and corresponding bindings i

Question about PCI I/O space in ARM64

2016-03-22 Thread Kefeng Wang
Hi all, If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem space(right ?), not a right IO space, that is, no one call pci_remap_iospace() to remap the memory mapped I/O space, once driver like f71805f loaded, write value to IO space(see f71805f_init->f71805f_find->superio_enter-

Re: Question about PCI I/O space in ARM64

2016-03-23 Thread Kefeng Wang
On 2016/3/23 20:26, Arnd Bergmann wrote: > On Wednesday 23 March 2016 10:18:40 Catalin Marinas wrote: >> On Wed, Mar 23, 2016 at 11:12:41AM +0800, Kefeng Wang wrote: >>> If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem >>> space(right ?), >&g

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-31 Thread Kefeng Wang
Hi Davidlohr, On 2016/2/1 6:17, Davidlohr Bueso wrote: > On Sat, 30 Jan 2016, Paul E. McKenney wrote: > >>> On 2016/1/28 12:25, Kefeng Wang wrote: >>> > Insmod locktorture with torture_type=mutex will lead to crash, > > You actually want mutex_lock here, we al

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-31 Thread Kefeng Wang
On 2016/2/1 11:02, Davidlohr Bueso wrote: > On Mon, 01 Feb 2016, Kefeng Wang wrote: > >> Hi Davidlohr, >> [...] >> >> Yes, it works, but what you are doing is to revert commit >> a36a99618b1adb2d6ca0b7e08e3a656a04e477fe > > Oh, I s

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-29 Thread Kefeng Wang
Hi Paul, On 2016/1/28 12:25, Kefeng Wang wrote: > Insmod locktorture with torture_type=mutex will lead to crash, > > Unable to handle kernel NULL pointer dereference at virtual address 0008 > pgd = ffc0f6c1 > [0008] *pgd=00013b221003, *pud=00013b

Re: [PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

2016-01-29 Thread Kefeng Wang
On 2016/1/30 0:00, Joshua Henderson wrote: > On 01/26/2016 09:27 PM, Kefeng Wang wrote: >> Use helper of_platform_default_populate() in linux/of_platform >> when possible, instead of calling of_platform_populate() with >> the default match table. >> >> Cc: Ralf

[PATCH 04/15] arc: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 02/15] arm64: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1

[PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 2 +- arch/mips/jz4740/setup.c | 2 +- arch/mips

[PATCH 00/15] use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
4.5-rc1, compile-tested only. Kefeng Wang (15): arm: use of_platform_default_populate() to populate default bus arm64: use of_platform_default_populate() to populate default bus mips: use of_platform_default_populate() to populate default bus arc: use of_platform_default_populate() to

[PATCH 06/15] metag: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH 01/15] arm: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
: Roland Stigge Cc: Jason Cooper Cc: Haojian Zhuang Cc: Heiko Stuebner Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Tony Prisk Cc: Arnd Bergmann Cc: Russell King Signed-off-by: Kefeng Wang --- arch/arm/kernel/setup.c | 3 +-- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm

[PATCH 13/15] of: unittest: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions

[PATCH 08/15] nios2: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 05/15] c6x: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mark Salter Cc: Aurelien Jacquiot Signed-off-by: Kefeng Wang --- arch/c6x/platforms/platform.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 12/15] memory: omap-gpmc: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Roger Quadros Cc: Tony Lindgren Signed-off-by: Kefeng Wang --- drivers/memory/omap-gpmc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 15/15] Revert "of/platform: export of_default_bus_match_table"

2016-01-26 Thread Kefeng Wang
: Kefeng Wang --- drivers/of/platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 8d103e4..af98343 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -31,7 +31,6 @@ const struct of_device_id of_default_bus_match_table

[PATCH 10/15] bus: imx-weim: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Signed-off-by: Huang Shijie Cc: Shawn Guo Signed-off-by: Kefeng Wang --- drivers/bus/imx-weim.c | 5 ++--- 1 file changed, 2 insertions

[PATCH 14/15] Revert "bus: uniphier: allow only built-in driver"

2016-01-26 Thread Kefeng Wang
This reverts commit 326ea45aa827da6686c78b5907f9839f91ef5782. After covering to use helper of_platform_default_populate() to populate the default bus, no error in build uniphier driver as a module. Cc: Masahiro Yamada Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- drivers/bus/Kconfig | 2

[PATCH 09/15] xtensa: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Chris Zankel Cc: Max Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 11/15] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH 07/15] cris: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 01/15] arm: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
: Roland Stigge Cc: Jason Cooper Cc: Haojian Zhuang Cc: Heiko Stuebner Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Tony Prisk Cc: Arnd Bergmann Cc: Russell King Signed-off-by: Kefeng Wang --- arch/arm/kernel/setup.c | 3 +-- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm

Re: [PATCH 01/15] arm: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
gt; https://github.com/0day-ci/linux/commits/Kefeng-Wang/use-of_platform_default_populate-to-populate-default-bus/20160127-123512 > config: arm-at91_dt_defconfig (attached as .config) > reproduce: > wget > https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain

[PATCH] net: cavium: liquidio: use helpers ns_to_timespec64()

2016-01-27 Thread Kefeng Wang
Convert the driver to use ns_to_timespec64() to keep consistency with timespec64_to_ns() instead of open coding the same logic. Signed-off-by: Kefeng Wang --- drivers/net/ethernet/cavium/liquidio/lio_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net

Re: [PATCH 14/15] Revert "bus: uniphier: allow only built-in driver"

2016-01-27 Thread Kefeng Wang
Hi Masahiro, On 2016/1/27 21:48, Masahiro Yamada wrote: > 2016-01-27 13:27 GMT+09:00 Kefeng Wang : >> This reverts commit 326ea45aa827da6686c78b5907f9839f91ef5782. >> >> After covering to use helper of_platform_default_populate() to >> populate the default bus, no err

Re: [PATCH 15/15] Revert "of/platform: export of_default_bus_match_table"

2016-01-27 Thread Kefeng Wang
Hi Hauke, On 2016/1/28 6:10, Hauke Mehrtens wrote: > On 01/27/2016 05:27 AM, Kefeng Wang wrote: >> This reverts commit b80443c2211c7daaabd20fbbe9e7beb3fa3408e0. >> >> After covering to use helper of_platform_default_populate() to populate >> the def

[PATCH] ptp: ixp46x: use helpers for converting ns to timespec

2016-01-27 Thread Kefeng Wang
Convert the driver to use ns_to_timespec64() and timespec64_to_ns() instead of open coding the same logic. Signed-off-by: Kefeng Wang --- drivers/ptp/ptp_ixp46x.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/ptp/ptp_ixp46x.c b/drivers/ptp/ptp_ixp46x.c index

[PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-01-27 Thread Kefeng Wang
: Paul E. McKenney Signed-off-by: Kefeng Wang --- kernel/locking/locktorture.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 8ef1919..7f0cf9c 100644 --- a/kernel/locking/locktorture.c

[PATCH -next] mm/vmscan: Drop duplicated code in drop_slab_node

2020-09-29 Thread Kefeng Wang
The following patches fix same issue and both add fatal signal check in drop_slab_node, kill a duplicated check. "mm/vmscan: add a fatal signals check in drop_slab_node" "mm/vmscan: fix infinite loop in drop_slab_node" Cc: Chunxin Zang Signed-off-by: Kefeng Wang --- mm

[PATCH 1/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-08 Thread Kefeng Wang
Introduce DEFINE_SEQ_ATTRIBUTE() helper macro to decrease code duplication. Signed-off-by: Kefeng Wang --- include/linux/seq_file.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 1672cf6f7614..c77869cf7d10

[PATCH 3/3] kernel: kprobes: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-08 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Cc: Anil S Keshavamurthy Cc: "David S. Miller" Cc: Masami Hiramatsu Signed-off-by: Kefeng Wang --- kernel/kprobes.c | 33 ++--- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/kernel/k

[PATCH 2/3] mm: vmstat: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-08 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Kefeng Wang --- mm/vmstat.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 7f2e87cb7049..35219271796f 100644 --- a/mm/vmstat.c +++ b/mm

[PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-08 Thread Kefeng Wang
As discussion in https://lore.kernel.org/lkml/20191129222310.ga3712...@kroah.com/, we could introduce a new helper macro to reduce losts of boilerplate code, vmstat and kprobes is the example which covert to use it, if this is accepted, I will send out more clean ups. Kefeng Wang (3): seq_file

Re: [PATCH -next] riscv: perf_event: Make some funciton static

2020-05-10 Thread Kefeng Wang
void release_pmc_hardware(void)   ^~~~ ../arch/riscv/kernel/perf_event.c:467:12: warning: no previous prototype for ‘init_hw_perf_events’ [-Wmissing-prototypes]  int __init init_hw_perf_events(void)     ^~~ Cc: Alan Kao Signed-off-by: Kefeng Wang ---  arch/riscv/kerne

[PATCH 05/10] riscv: Disable ARCH_HAS_DEBUG_WX if NOMMU

2020-05-10 Thread Kefeng Wang
DEBUG_WX is only useful when MMU enabled, diable it if nommu and fix the build error. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 78f30f2fdd51

[PATCH 00/10] riscv: make riscv build happier

2020-05-10 Thread Kefeng Wang
When add RISCV arch to huawei build test, there are some build issue, let's fix them to make riscv build happier :) Those patches is rebased on next-20200508. Kefeng Wang (10): riscv: Fix unmet direct dependencies built based on SOC_VIRT riscv: stacktrace: Fix undefined referen

[PATCH 03/10] riscv: Add pgprot_writecombine/device and PAGE_SHARED defination if NOMMU

2020-05-10 Thread Kefeng Wang
Some drivers use PAGE_SHARED, pgprot_writecombine()/pgprot_device(), add the defination to fix build error if NOMMU. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/include/asm/mmio.h| 2 ++ arch/riscv/include/asm/pgtable.h | 1 + 2 files changed, 3 insertions(+) diff

<    1   2   3   4   5   6   >