Re: [PATCH v3] arm: imx: dts: Use lower case for bindings notation

2017-12-25 Thread Shawn Guo
On Fri, Dec 15, 2017 at 08:19:30PM +0100, Mathieu Malaterre wrote: > Improve the DTS files using lower case to fix the following dtc warnings: > > Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format > error, expected "" > > Converted using the following command: > > find . -type

[RFC PATCH bpf-next v2 4/4] error-injection: Support fault injection framework

2017-12-25 Thread Masami Hiramatsu
Support in-kernel fault-injection framework via debugfs. This allows you to inject a conditional error to specified function using debugfs interfaces. Signed-off-by: Masami Hiramatsu --- Documentation/fault-injection/fault-injection.txt |5 + kernel/Makefile

[RFC PATCH bpf-next v2 3/4] error-injection: Separate error-injection from kprobe

2017-12-25 Thread Masami Hiramatsu
Since error-injection framework is not limited to be used by kprobes, nor bpf. Other kernel subsystems can use it freely for checking safeness of error-injection, e.g. livepatch, ftrace etc. So this separate error-injection framework from kprobes. Some differences has been made: - "kprobe" word i

[RFC PATCH bpf-next v2 1/4] tracing/kprobe: bpf: Check error injectable event is on function entry

2017-12-25 Thread Masami Hiramatsu
Check whether error injectable event is on function entry or not. Currently it checks the event is ftrace-based kprobes or not, but that is wrong. It should check if the event is on the entry of target function. Since error injection will override a function to just return with modified return valu

[RFC PATCH bpf-next v2 2/4] tracing/kprobe: bpf: Compare instruction pointer with original one

2017-12-25 Thread Masami Hiramatsu
Compare instruction pointer with original one on the stack instead using per-cpu bpf_kprobe_override flag. This patch also consolidates reset_current_kprobe() and preempt_enable_no_resched() blocks. Those can be done in one place. Signed-off-by: Masami Hiramatsu --- kernel/trace/bpf_trace.c

[RFC PATCH bpf-next v2 0/4] Separate error injection table from kprobes

2017-12-25 Thread Masami Hiramatsu
Hi Josef and Alexei, Here are the 2nd version of patches to moving error injection table from kprobes. In this series I did a small fixes and add function-based fault injection. Here is the previous version: https://lkml.org/lkml/2017/12/22/554 There are 2 main reasons why I separate it from kp

Re: [alsa-devel] [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface

2017-12-25 Thread Sagar Arun Kamble
On 12/15/2017 10:40 PM, Takashi Iwai wrote: On Fri, 15 Dec 2017 17:51:25 +0100, Richard Cochran wrote: On Fri, Dec 15, 2017 at 12:10:47PM +0100, Takashi Iwai wrote: - struct cyclecounter *cc = &azx_dev->tc.cc; - cc->read = azx_cc_read; - cc->mask = CLOCKSOURCE_MASK(32); -

Re: [PATCH] mfd: axp20x: Mark axp288 CHRG_BAK_CTRL register volatile

2017-12-25 Thread Chen-Yu Tsai
On Fri, Dec 22, 2017 at 8:35 PM, Hans de Goede wrote: > The input current limit bits get updated by the charger detection logic, > so we should not cache the contents of this register. > > Signed-off-by: Hans de Goede Reviewed-by: Chen-Yu Tsai

[PATCH]cpuidle: preventive check in cpuidle_select against crash

2017-12-25 Thread gaurav jindal
When selecting the idle state using cpuidle_select, there is no check on cpuidle_curr_governor. In cpuidle_switch_governor, cpuidle_currr_governor can be set to NULL to specify "disabled". Since cpuidle_select cannot return negative value, it has to return 0 in case of error. Printing logs and ret

[PATCH] tracing: Fix crash when it fails to alloc ring buffer

2017-12-25 Thread Chunyan Zhang
From: Jing Xia Double free of the ring buffer happens when it fails to alloc new ring buffer instance for max_buffer if TRACER_MAX_TRACE is configured. The root cause is that the pointer is not set to NULL after the buffer is freed in allocate_trace_buffers(), and the freeing of the ring buffer i

Re: WARNING in do_debug

2017-12-25 Thread Dmitry Vyukov
On Tue, Dec 26, 2017 at 1:55 AM, Wanpeng Li wrote: > 2017-12-26 8:22 GMT+08:00 syzbot > : >> syzkaller has found reproducer for the following crash on >> 464e1d5f23cca236b930ef068c328a64cab78fb1 >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master >> compiler: gcc (GCC) 7.1.1

RE: [PATCH] arm: imx: suspend/resume: use outer_disable/resume

2017-12-25 Thread Peng Fan
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Tuesday, December 26, 2017 11:31 AM > To: Peng Fan > Cc: A.s. Dong ; linux-kernel@vger.kernel.org; Russell > King ; Fabio Estevam ; > Sascha Hauer ; van.free...@gmail.com; linux-arm- > ker...@lists.infra

[PATCH 10/11 v2] ARM: s3c24xx/s3c64xx: constify gpio_led

2017-12-25 Thread Arvind Yadav
Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded after the init sections have gone away. So removed '__initconst'. arch/arm/mach-s3c24xx/mach-h1940.c| 2 +- arch/arm/mach-s3c24xx/mach-rx195

[PATCH 11/11 v2] ARM: pxa: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 09/11 v2] ARM: orion5x: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 06/11 v2] ARM: davinci: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 07/11 v2] ARM: ixp4xx: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 08/11 v2] ARM: OMAP1: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 05/11 v2] sh: mach-rsk: rsk7203: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 04/11 v2] x86: geode: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

Re: [PATCH v6 3/4] iio : Add cm3218 smbus ara and acpi support

2017-12-25 Thread kbuild test robot
Hi Marc, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH 02/11 v2] MIPS: AR7: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 03/11 v2] MIPS: TXX9: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH 01/11 v2] MIPS: Alchemy: constify gpio_led

2017-12-25 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded

[PATCH] dm: add asymmetric stripe target device dirver

2017-12-25 Thread tgvlcw
From: liuchaowei This asymmetric stripe target device driver can achieve better io performance between those devices which possess different io performance There are 2 storage device or flash devices: A and B, their sequential read performance are 220M/s and 315M/s respectively, so their sequent

Re: BUG warnings in 4.14.9

2017-12-25 Thread Willy Tarreau
Hi Chris, On Tue, Dec 26, 2017 at 01:49:59AM +, Chris Rankin wrote: (...) > [ 35.100181] Call Trace: > [ 35.102709] dump_stack+0x46/0x59 > [ 35.106095] check_preemption_disabled+0xca/0xda > [ 35.110786] ip6_pol_route+0x46b/0x509 [ipv6] (...) One patch touched this area between 4.14

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-25 Thread Huang, Ying
Minchan Kim writes: > On Fri, Dec 22, 2017 at 10:14:43PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > On Thu, Dec 21, 2017 at 03:48:56PM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> >> >> > On Wed, Dec 20, 2017 at 09:26:32AM +0800, Huang, Ying wrote: >> >> >> From: Hu

[lkp-robot] [lib/rbtree,drm/mm] adc8732ba8: WARNING:at_lib/stackdepot.c:#depot_save_stack

2017-12-25 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: adc8732ba8dc55ea7dd226a2edc59a8ef57478cf ("lib/rbtree,drm/mm: Add rbtree_replace_node_cached()") git://anongit.freedesktop.org/drm-intel topic/core-for-CI in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 420M

RE: [PATCH] usb: gadget: uvc:change the UVC_NUM_REQUESTS value

2017-12-25 Thread Lipengcheng
Hi, > -Original Message- > From: Manu Gautam [mailto:mgau...@codeaurora.org] > Sent: Tuesday, December 26, 2017 1:01 PM > To: Lipengcheng; ba...@kernel.org > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org > Subject: Re: [PATCH] usb: gadget: uvc:c

Re: [PATCH] usb: gadget: uvc:change the UVC_NUM_REQUESTS value

2017-12-25 Thread Manu Gautam
Hi, On 12/26/2017 8:22 AM, Lipengcheng wrote: > The value is 4, it can cache four descriptors. When streaming_interval = 1, > it can tolerate 500us. Some busy scenes, it may be more than 500us because > cpu scheduling is not timely. There will have some problems. It is better > set to eight. > >

[PATCH v3] ARM: dts: ls1021a: add support for Moxa UC-8410A open platform

2017-12-25 Thread SZ Lin
Add support for Moxa UC-8410A open platform The UC-8410A computing platform is designed for embedded communication-centric industrial applications The features of UC-8410A are: * QSPI flash * SD slot * 3x LAN * 8x RS-232/422/485 ports, software-selectable * Mini PCIe form factor with PCIe/USB sig

Re: [PATCH v1 6/9] ufs: sysfs: string descriptors

2017-12-25 Thread kbuild test robot
Hi Stanislav, Thank you for the patch! Yet something to improve: [auto build test ERROR on scsi/for-next] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/lin

[Regression 4.15] Can't kill CONFIG_UNWINDER_ORC with fire or plague.

2017-12-25 Thread Paul Gortmaker
There is a regression new to 4.15 that happens in a rather common workflow which results in the frustrating situation where the user has clearly disabled UNWINDER_ORC in their ".config" file, and yet they still get the immediate false error saying they need libelf-dev since "CONFIG_UNWINDER_ORC=y"

Re: [PATCH] dm: add asymmetric stripe target device dirver

2017-12-25 Thread Randy Dunlap
On 12/25/2017 07:52 PM, tgv...@gmail.com wrote: > From: liuchaowei > > This asymmetric stripe target device driver can achieve better io > performance between those devices which possess different io performance > > There are 2 storage device or flash devices: A and B, their sequential > read pe

[PATCH] MIPS: Loongson64: Drop 32-bit support for Loongson 2E/2F devices

2017-12-25 Thread Jiaxun Yang
Make loongson64 a pure 64-bit mach. Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/loongson64/Kconfig b/arch/mips/loongson64/Kconfig index 0d249fc3cfe9..a7d9a9241ac4 100644 --- a/arch/mips/loongson64/Kconfig +++ b/arch/m

Re: [PATCH v2] ARM: dts: ls1021a: add support for Moxa UC-8410A open platform

2017-12-25 Thread Shawn Guo
On Mon, Dec 11, 2017 at 07:51:25PM +0800, SZ Lin wrote: > Add support for Moxa UC-8410A open platform > > The UC-8410A computing platform is designed > for embedded communication-centric industrial applications > > The features of UC-8410A are: > * QSPI flash > * SD slot > * 3x LAN > * 8x RS-232/

[PATCH] dm: add asymmetric stripe target device dirver

2017-12-25 Thread tgvlcw
From: liuchaowei This asymmetric stripe target device driver can achieve better io performance between those devices which possess different io performance There are 2 storage device or flash devices: A and B, their sequential read permance are 220M/s and 315M/s inspectively, so their sequential

[PATCH] clk: mediatek: adjust dependency of reset.c to avoid unexpectedly being built

2017-12-25 Thread sean.wang
From: Sean Wang commit 74cb0d6dde8 ("clk: mediatek: fixup test-building of MediaTek clock drivers") can let the build system looking into the directory where the clock drivers resides and then allow test-building the drivers. But the change also gives rise to certain incorrect behavior which is

Re: [PATCH] arm: imx: suspend/resume: use outer_disable/resume

2017-12-25 Thread Shawn Guo
On Sun, Dec 10, 2017 at 08:07:18PM +0800, Peng Fan wrote: > Use outer_disable/resume for suspend/resume. > With the two APIs used, code could be simplified and easy to extend > to introduce l2c_write_sec for i.MX platforms when moving Linux Kernel > runs in non-secure world. > > Signed-off-by: Pen

[PATCH v6 3/4] MIPS: Loongson64: Load platform device during boot

2017-12-25 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 25 + 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 arch/m

[PATCH v6 1/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-12-25 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/

Add YeeLoong support v6

2017-12-25 Thread Jiaxun Yang
Change since v5: Use arcs_cmdline instead of loongson_cmdline Fix GPL copyright issues Change since v4: Use SPDX ids copyright header

[PATCH v6 2/4] MIPS: Loongson64: Yeeloong add platform driver

2017-12-25 Thread Jiaxun Yang
Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller. This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-commu

[PATCH v6 4/4] MAINTAINERS: Add entry for Lemote YeeLoong Extra Driver

2017-12-25 Thread Jiaxun Yang
Add myself as a maintainer of Lemote YeeLoong Extra driver Signed-off-by: Jiaxun Yang --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS old mode 100644 new mode 100755 index a6e86e20761e..5a7c0d4b233a ---

Re: [PATCH v20 4/7] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-12-25 Thread Wei Wang
On 12/25/2017 10:51 PM, Tetsuo Handa wrote: Wei Wang wrote: @@ -173,8 +292,15 @@ static unsigned fill_balloon(struct virtio_balloon *vb, size_t num) while ((page = balloon_page_pop(&pages))) { balloon_page_enqueue(&vb->vb_dev_info, page); +if (use_sg) { +i

Re: [PATCH net-next v8 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-12-25 Thread Florian Fainelli
On December 24, 2017 5:10:37 PM PST, Kunihiko Hayashi wrote: >DT bindings for the AVE ethernet controller found on Socionext's >UniPhier platforms. > >Signed-off-by: Kunihiko Hayashi >Signed-off-by: Jassi Brar >Acked-by: Rob Herring Reviewed-by: Florian Fainelli -- Florian

[PATCH] usb: gadget: uvc:change the UVC_NUM_REQUESTS value

2017-12-25 Thread Lipengcheng
The value is 4, it can cache four descriptors. When streaming_interval = 1, it can tolerate 500us. Some busy scenes, it may be more than 500us because cpu scheduling is not timely. There will have some problems. It is better set to eight. Signed-off-by: Pengcheng Li --- drivers/usb/gadget/functi

Re: [PATCH v1 1/9] ufs: sysfs: device descriptor

2017-12-25 Thread kbuild test robot
Hi Stanislav, Thank you for the patch! Yet something to improve: [auto build test ERROR on scsi/for-next] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/lin

[PATCH v2] perf report: Fix a no annotate browser displayed issue

2017-12-25 Thread Jin Yao
v2: -- Fix a crash bug when perform 'perf report --stdio'. The reason is that we init the symbol annotation only in browser mode, it doesn't allocate/init resources for stdio mode. So now in hist_iter__branch_callback(), it will return directly if it's not in browser mode. initial post -

[RFC PATCH v12 2/5] of/irq: Adjust of_pci_irq parsing for multiple interrupts

2017-12-25 Thread Jeffy Chen
Currently we are considering the first irq as the PCI interrupt pin, but a PCI device may have multiple interrupts(e.g. PCIe WAKE# pin). Only parse the PCI interrupt pin when the irq is unnamed or named as "pci". Signed-off-by: Jeffy Chen --- Changes in v13: None Changes in v12: None Changes in

[RFC PATCH v12 5/5] arm64: dts: rockchip: Move PCIe WAKE# irq to pcie port for Gru

2017-12-25 Thread Jeffy Chen
Currently we are handling PCIe WAKE# irq in mrvl wifi driver. Move it to rockchip pcie port since we are going to handle it in the pci core. Also avoid this irq been considered as the PCI interrupt pin in the of_irq_parse_pci(). Signed-off-by: Jeffy Chen --- Changes in v13: None Changes in v12

[RFC PATCH v12 4/5] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-12-25 Thread Jeffy Chen
Add of_pci_setup_wake_irq() and of_pci_teardown_wake_irq() to handle the PCIe WAKE# interrupt. Also use the dedicated wakeirq infrastructure to simplify it. And add pci-of.c to enable/disable the wakeup irq in noirq stage to avoid possible irq storm. Signed-off-by: Jeffy Chen --- Changes in v1

[RFC PATCH v12 3/5] mwifiex: Disable wakeup irq handling for pcie

2017-12-25 Thread Jeffy Chen
We are going to handle the wakeup irq in the pci core. Signed-off-by: Jeffy Chen --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v3: None Changes

[RFC PATCH v12 1/5] dt-bindings: PCI: Add definition of PCIe WAKE# irq and PCI irq

2017-12-25 Thread Jeffy Chen
We are going to handle PCIe WAKE# pin for PCI devices in the pci core, so add definitions of the optional PCIe WAKE# pin for PCI devices. Also add an definition of the optional PCI interrupt pin for PCI devices to distinguish it from the PCIe WAKE# pin. Signed-off-by: Jeffy Chen --- Changes in

[RFC PATCH v12 0/5] PCI: rockchip: Move PCIe WAKE# handling into pci core

2017-12-25 Thread Jeffy Chen
Currently we are handling wake irq in mrvl wifi driver. Move it into pci core. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Changes in v13: Fix compiler error reported by kbuild test robot Changes in v12: Only add irq definitions for PCI devices and rewrite the commit mess

Re: [PATCH] leaking_addresses: add generic 32-bit support

2017-12-25 Thread Kaiwan N Billimoria
The script attempts to detect the architecture it's running upon; as of now, we explicitly support x86_64, PPC64 and x86_32. If it's one of them, we proceed "normally". If we fail to detect the arch, we fallback to 64-bit scanning, unless the user has passed either of these option switches: "--opt-

arch/c6x/platforms/plldata.c:279:33: error: implicit declaration of function 'get_coreid'; did you mean 'get_order'?

2017-12-25 Thread Fengguang Wu
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 328b4ed93b69a6f2083d52f31a240a09e5de386a commit: 71af2ed5eeea639339e3a1497a0196bab7de4b57 kasan, sched/headers: Remove from date: 9 months ago config: c6x-evmc6472_defconfig (attached as .config) compile

[RFC PATCH v12 1/5] dt-bindings: PCI: Add definition of PCIe WAKE# irq and PCI irq

2017-12-25 Thread Jeffy Chen
We are going to handle PCIe WAKE# pin for PCI devices in the pci core, so add definitions of the optional PCIe WAKE# pin for PCI devices. Also add an definition of the optional PCI interrupt pin for PCI devices to distinguish it from the PCIe WAKE# pin. Signed-off-by: Jeffy Chen --- Changes in

[RFC PATCH v12 5/5] arm64: dts: rockchip: Move PCIe WAKE# irq to pcie port for Gru

2017-12-25 Thread Jeffy Chen
Currently we are handling PCIe WAKE# irq in mrvl wifi driver. Move it to rockchip pcie port since we are going to handle it in the pci core. Also avoid this irq been considered as the PCI interrupt pin in the of_irq_parse_pci(). Signed-off-by: Jeffy Chen --- Changes in v12: None Changes in v11

[RFC PATCH v12 3/5] mwifiex: Disable wakeup irq handling for pcie

2017-12-25 Thread Jeffy Chen
We are going to handle the wakeup irq in the pci core. Signed-off-by: Jeffy Chen --- Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None driver

[RFC PATCH v12 4/5] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-12-25 Thread Jeffy Chen
Add of_pci_setup_wake_irq() and of_pci_teardown_wake_irq() to handle the PCIe WAKE# interrupt. Also use the dedicated wakeirq infrastructure to simplify it. And add pci-of.c to enable/disable the wakeup irq in noirq stage to avoid possible irq storm. Signed-off-by: Jeffy Chen --- Changes in v1

[RFC PATCH v12 2/5] of/irq: Adjust of_pci_irq parsing for multiple interrupts

2017-12-25 Thread Jeffy Chen
Currently we are considering the first irq as the PCI interrupt pin, but a PCI device may have multiple interrupts(e.g. PCIe WAKE# pin). Only parse the PCI interrupt pin when the irq is unnamed or named as "pci". Signed-off-by: Jeffy Chen --- Changes in v12: None Changes in v11: Address Brian's

[RFC PATCH v12 0/5] PCI: rockchip: Move PCIe WAKE# handling into pci core

2017-12-25 Thread Jeffy Chen
Currently we are handling wake irq in mrvl wifi driver. Move it into pci core. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Changes in v12: Enable the wake irq in noirq stage to avoid possible irq storm. Changes in v11: Only add irq definitions for PCI devices and rewrite t

Re: [PATCH] leaking_addresses: add generic 32-bit support

2017-12-25 Thread Kaiwan N Billimoria
Hey, Merry Xmas all !! :-) Re inline below, Updated patch to follow.. On Mon, 18 Dec 2017 16:57:46 +1100 "Tobin C. Harding" wrote: > On Mon, Dec 18, 2017 at 09:24:47AM +0530, kaiwan.billimo...@gmail.com > wrote: > > The script attempts to detect the architecture it's running upon; > > as of n

v4.14.9 BUG, regression

2017-12-25 Thread Petr Janecek
Hi, the machine started dying reliably shortly after boot after upgrading to 4.14.9 from 4.14.8. Debian stretch, xfs on md raid10, btrfs. [ 230.855352] BUG: unable to handle kernel paging request at 00010001 [ 230.862449] IP: free_block+0x135/0x1f0 [ 230.866301] PGD 0 P4D 0 [ 230.

Re: [PATCH v1 1/9] ufs: sysfs: device descriptor

2017-12-25 Thread kbuild test robot
Hi Stanislav, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0da

BUG warnings in 4.14.9

2017-12-25 Thread Chris Rankin
Hi, I've just raised https://bugzilla.kernel.org/show_bug.cgi?id=198271 because the new 4.14.9 kernel is generating lots of BUG warnings, e.g. [ 35.069924] BUG: using smp_processor_id() in preemptible [] code: avahi-daemon/761 [ 35.078187] caller is ip6_pol_route+0x46b/0x509 [ipv6] [

[PATCH v3] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2017-12-25 Thread Jia Zhang
Instead of blacklisting all Broadwell processorsi for running a late loading, only BDW-EP (signature 406f1) with the microcode version less than 0x0b21 needs to be blacklisted. This is documented in the the public documentation #334165 (See the item BDF90 for details). Signed-off-by: Jia Zhan

Re: [PATCH v6 2/4] i2c-smbus : Add client discovered ARA support

2017-12-25 Thread kbuild test robot
Hi Marc, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-

Re: [PATCH v4 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2017-12-25 Thread Honghui Zhang
On Mon, 2017-12-25 at 18:27 +0800, Ryder Lee wrote: > On Fri, 2017-12-22 at 13:39 +0800, honghui.zh...@mediatek.com wrote: > > From: Honghui Zhang > > > > The hardware default value of IDs and class type is not correct, > > fix that by setup the correct values before start up. > > > > Signed-off

Re: [RFC PATCH v11 4/5] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-12-25 Thread JeffyChen
Hi Rafael, Thanks for your reply :) On 12/26/2017 08:11 AM, Rafael J. Wysocki wrote: >+ >+ dn = pci_device_to_OF_node(ppdev); >+ if (!dn) >+ return 0; >+ >+ irq = of_irq_get_byname(dn, "wakeup"); Why is this a property of the bridge and not of the device itself? That is suggest

Re: WARNING in do_debug

2017-12-25 Thread Wanpeng Li
2017-12-26 8:22 GMT+08:00 syzbot : > syzkaller has found reproducer for the following crash on > 464e1d5f23cca236b930ef068c328a64cab78fb1 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is atta

Re: [linux-sunxi] [PATCH v4 0/2] Initial Allwinner V3s CSI Support

2017-12-25 Thread Yong
On Mon, 25 Dec 2017 09:58:02 +0100 Ondřej Jirman wrote: > Hello, > > On Mon, Dec 25, 2017 at 11:15:26AM +0800, Yong wrote: > > Hi, > > > > On Fri, 22 Dec 2017 14:46:48 +0100 > > Ondřej Jirman wrote: > > > > > Hello, > > > > > > Yong Deng píše v Pá 22. 12. 2017 v 17:32 +0800: > > > > > > > >

[PATCH] PM / wakeup: Drop redundant check from device_set_wakeup_enable()

2017-12-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since both device_wakeup_enable() and device_wakeup_disable() check if dev is not NULL and whether or not power.can_wakeup is set for it, device_set_wakeup_enable() doesn't have to do that, so drop that check from it. No intentional changes in functionality. Signed-off-b

Re: [PATCH kernel-tests] ignore compiler errors

2017-12-25 Thread Philip Li
applied On Mon, Dec 25, 2017 at 07:53:32PM +0800, Fengguang Wu wrote: > This looks more like some odd compiler regression than a kernel one. > >Linus > > The original report is: > > To: Linus Torvalds > Cc: LKML > Subject: [linus:master] BUILD REGRESSION > d1f854ac240ea392

Re: [RFC PATCH v11 4/5] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-12-25 Thread Rafael J. Wysocki
On Monday, December 25, 2017 12:47:41 PM CET Jeffy Chen wrote: > Add of_pci_setup_wake_irq() and of_pci_teardown_wake_irq() to handle > the PCIe WAKE# interrupt. > > Also use the dedicated wakeirq infrastructure to simplify it. > > Signed-off-by: Jeffy Chen > --- > > Changes in v11: > Only supp

Re: [patch v15 0/4] JTAG driver introduction

2017-12-25 Thread Florian Fainelli
Le 12/25/17 à 03:53, Oleksandr Shamray a écrit : > When a need raise up to use JTAG interface for system's devices > programming or CPU debugging, usually the user layer > application implements jtag protocol by bit-bang or using a > proprietary connection to vendor hardware. > This method can be

Re: [PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Kuninori Morimoto
Hi Ryan > >About this max98373->codec. > >This user is only max98373_set_clock(), and it is called from > >max98373_dai_hw_params(). > >You are getting *codec from dai->codec in this function, and max98373 is > >came from it. > >This means, we can remove max98373->codec ? > > Thanks for your fee

Re: [patch v15 1/4] drivers: jtag: Add JTAG core driver

2017-12-25 Thread Florian Fainelli
Le 12/25/17 à 03:53, Oleksandr Shamray a écrit : > Initial patch for JTAG driver > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped with JTAG interface > us

Re: [PATCH] perf report: Fix a no annotate browser displayed issue

2017-12-25 Thread Jin, Yao
On 12/26/2017 5:44 AM, Jiri Olsa wrote: On Mon, Dec 25, 2017 at 11:58:39AM +0800, Jin, Yao wrote: Hi, Any comments for this bug fix? getting segfault with this [jolsa@krava perf]$ sudo ./perf record -b ls [jolsa@krava perf]$ sudo ./perf report --stdio Segmentation fault (core dumped) jir

[PATCH bpf-next 0/3] add XDP loading support to libbpf

2017-12-25 Thread Eric Leblond
Hello, This patchset adds a function to load XDP eBPF file in the libbpf library. It gets the netlink extended ack from the driver in case of failure and print the error to stderr. Best regards, -- Eric Leblond

[PATCH bpf-next 3/3] libbpf: break loop earlier

2017-12-25 Thread Eric Leblond
Get out of the loop when we have a match. Signed-off-by: Eric Leblond --- tools/lib/bpf/libbpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 5fe8aaa2123e..d263748aa341 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @

[PATCH bpf-next 2/3] libbpf: add error reporting in XDP

2017-12-25 Thread Eric Leblond
Parse netlink ext attribute to get the error message returned by the card. Signed-off-by: Eric Leblond --- tools/lib/bpf/Build| 2 +- tools/lib/bpf/bpf.c| 9 +++ tools/lib/bpf/nlattr.c | 188 + tools/lib/bpf/nlattr.h | 164 +

[PATCH bpf-next 1/3] libbpf: add function to setup XDP

2017-12-25 Thread Eric Leblond
Most of the code is taken from set_link_xdp_fd() in bpf_load.c and slightly modified to be library compliant. Signed-off-by: Eric Leblond --- tools/lib/bpf/bpf.c| 126 - tools/lib/bpf/libbpf.c | 2 + tools/lib/bpf/libbpf.h | 4 ++ 3 files c

Re: [PATCH/RFC] perf report: Add option to change offset format when address is specified as a sort_key

2017-12-25 Thread Jiri Olsa
On Sun, Dec 24, 2017 at 06:23:15PM +, Aaron Tomlin wrote: > On Sat 2017-12-23 00:59 +0100, Jiri Olsa wrote: > [ ... ] > > not sure we've already discussed that, but this could be default? > > Probably it is best to keep the default behaviour. > > I'd prefer a hexadecimal address offset, as th

Re: [PATCH] perf report: Fix a no annotate browser displayed issue

2017-12-25 Thread Jiri Olsa
On Mon, Dec 25, 2017 at 11:58:39AM +0800, Jin, Yao wrote: > Hi, > > Any comments for this bug fix? getting segfault with this [jolsa@krava perf]$ sudo ./perf record -b ls [jolsa@krava perf]$ sudo ./perf report --stdio Segmentation fault (core dumped) jirka > > Thanks > Jin Yao > > On 12/18/

Re: Php-fpm will crash when perf runs with call graph option

2017-12-25 Thread Jiri Olsa
On Mon, Dec 25, 2017 at 07:56:43AM +0100, ufo19890607 wrote: > From: yuzhoujian > > #0 0x7f044ff447bd in re_compile_fastmap_iter (bufp=0x7f044ff447bd > , > fastmap=0x46 , > init_state=, init_state=) at regcomp.c:407 > 407 if (__wcrtomb (buf, towlo

Re: PROBLEM: consolidated IDT invalidation causes kexec to reboot

2017-12-25 Thread Alexandru Chirvasitu
Thanks for that! On Mon, Dec 25, 2017 at 06:40:14AM -0800, Andy Lutomirski wrote: > On Sat, Dec 23, 2017 at 7:30 PM, Linus Torvalds > wrote: > > On Sat, Dec 23, 2017 at 5:44 PM, Alexandru Chirvasitu > > wrote: > >> > >> For testing purposes, I've altered machine_kexec_32.c making the > >> follow

Re: [GIT PULL] tee dynamic shm for v4.16

2017-12-25 Thread thomas zeng
On 2017年12月21日 08:30, Arnd Bergmann wrote: On Fri, Dec 15, 2017 at 2:21 PM, Jens Wiklander wrote: Hello arm-soc maintainers, Please pull these tee driver changes. This implements support for dynamic shared memory support in OP-TEE. More specifically is enables mapping of user space memory in

Re: [PATCH v5 1/8] arch: enable relative relocations for arm64, power, x86, s390 and x86

2017-12-25 Thread Ard Biesheuvel
On 25 December 2017 at 21:05, Sam Ravnborg wrote: > Hi Ard. > > On Mon, Dec 25, 2017 at 08:54:33PM +, Ard Biesheuvel wrote: >> Before updating certain subsystems to use place relative 32-bit >> relocations in special sections, to save space and reduce the >> number of absolute relocations tha

Re: [PATCH v5 1/8] arch: enable relative relocations for arm64, power, x86, s390 and x86

2017-12-25 Thread Sam Ravnborg
Hi Ard. On Mon, Dec 25, 2017 at 08:54:33PM +, Ard Biesheuvel wrote: > Before updating certain subsystems to use place relative 32-bit > relocations in special sections, to save space and reduce the > number of absolute relocations that need to be processed at runtime > by relocatable kernels,

[PATCH] pinctrl: xway: Delete two error messages for a failed memory allocation in pinmux_xway_probe()

2017-12-25 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 25 Dec 2017 21:51:26 +0100 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/pinctrl-xway.c | 10 -- 1 file changed, 4 insert

[PATCH v5 2/8] module: use relative references for __ksymtab entries

2017-12-25 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

[PATCH v5 4/8] PCI: Add support for relative addressing in quirk tables

2017-12-25 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Acked-by: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers

[PATCH v5 6/8] kernel/jump_label: abstract jump_entry member accessors

2017-12-25 Thread Ard Biesheuvel
In preparation of allowing architectures to use relative references in jump_label entries [which can dramatically reduce the memory footprint], introduce abstractions for references to the 'code' and 'key' members of struct jump_entry. Signed-off-by: Ard Biesheuvel --- arch/arm/include/asm/jump_

[PATCH v5 5/8] kernel: tracepoints: add support for relative references

2017-12-25 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: A

[PATCH v5 8/8] x86/kernel: jump_table: use relative references

2017-12-25 Thread Ard Biesheuvel
Similar to the arm64 case, 64-bit x86 can benefit from using 32-bit relative references rather than 64-bit absolute ones when emitting struct jump_entry instances. Not only does this reduce the memory footprint of the entries themselves by 50%, it also removes the need for carrying relocation metad

[PATCH v5 3/8] init: allow initcall tables to be emitted using relative references

2017-12-25 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH v5 7/8] arm64/kernel: jump_label: use relative references

2017-12-25 Thread Ard Biesheuvel
On a randomly chosen distro kernel build for arm64, vmlinux.o shows the following sections, containing jump label entries, and the associated RELA relocation records, respectively: ... [38088] __jump_table PROGBITS 00e19f30 0002ea10 00

[PATCH v5 0/8] add support for relative references in special sections

2017-12-25 Thread Ard Biesheuvel
This adds support for emitting special sections such as initcall arrays, PCI fixups and tracepoints as relative references rather than absolute references. This reduces the size by 50% on 64-bit architectures, but more importantly, it removes the need for carrying relocation metadata for these sect

  1   2   3   >