Re: [PATCH v7 00/16] ACPI IORT ARM SMMU support

2016-11-16 Thread Tomasz Nowicki
On 09.11.2016 15:19, Lorenzo Pieralisi wrote: This patch series is v7 of a previous posting: https://lkml.org/lkml/2016/10/18/506 [...] The ACPI IORT table provides information that allows instantiating ARM SMMU devices and carrying out id mappings between components on ARM based systems (

Re: [PATCH v3] soc: qcom: Add SoC info driver

2016-11-16 Thread Imran Khan
On 11/15/2016 10:57 AM, Bjorn Andersson wrote: > On Mon 14 Nov 06:30 PST 2016, Imran Khan wrote: > >> On 11/8/2016 1:05 AM, Bjorn Andersson wrote: >>> On Mon 07 Nov 06:35 PST 2016, Imran Khan wrote: >>> >>> >>> >>> [..] >>> >> +static void socinfo_populate(struct soc_device_attribute *soc_dev_

Re: linux-next: build warning after merge of the phy-next tree

2016-11-16 Thread wlf
Hi Stephen, 在 2016年11月16日 11:00, Stephen Rothwell 写道: Hi Kishon, After merging the phy-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work': drivers/phy/phy-rockchip-inno-usb2.c:717:7: warn

Re: [PATCHv0 1/1] fbdev: add Intel FPGA FRAME BUFFER driver

2016-11-16 Thread kbuild test robot
Hi Ong, [auto build test WARNING on linus/master] [also build test WARNING on v4.9-rc5 next-20161116] [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/commits/Ong-Hean-Loong/fbdev-add-Intel-FPGA-FRAME

Re: [PATCH 1/2] can: holt_hi311x: document device tree bindings

2016-11-16 Thread Rob Herring
On Mon, Nov 14, 2016 at 12:55:43PM -0500, Akshay Bhat wrote: > Document the HOLT HI-311x CAN device tree bindings. > > Signed-off-by: Akshay Bhat > --- > .../devicetree/bindings/net/can/holt_hi311x.txt| 24 > ++ > 1 file changed, 24 insertions(+) > create mode 100644 Do

Re: [PATCH] clk: qcom: smd-rpm: Add msm8974 clocks

2016-11-16 Thread Rob Herring
On Mon, Nov 14, 2016 at 10:54:04PM -0800, Bjorn Andersson wrote: > This adds all RPM based clocks for msm8974 except cxo and gfx3d_clk_src. > > Signed-off-by: Bjorn Andersson > --- > .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + > drivers/clk/qcom/clk-smd-rpm.c |

Re: [PATCH] [media] ir-hix5hd2: make hisilicon,power-syscon property deprecated

2016-11-16 Thread Rob Herring
On Tue, Nov 15, 2016 at 03:31:32PM +0800, Jiancheng Xue wrote: > From: Ruqiang Ju > > The clock of IR can be provided by the clock provider and controlled > by common clock framework APIs. > > Signed-off-by: Ruqiang Ju > Signed-off-by: Jiancheng Xue > --- > .../devicetree/bindings/media/hix5h

Re: [PATCH v13] drm/fence: add out-fences support

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 10:00:21PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Support DRM out-fences by creating a sync_file with a fence for each CRTC > that sets the OUT_FENCE_PTR property. > > We use the out_fence pointer received in the OUT_FENCE_PTR prop to send > the sync_fi

Re: [PATCH] Documentation: circular-buffers: use READ_ONCE()

2016-11-16 Thread David Howells
Mark Rutland wrote: > While the {READ,WRITE}_ONCE() macros should be used in preference to > ACCESS_ONCE(), the circular buffer documentation uses the latter > exclusively. > > To point people in the right direction, and as a step towards the > eventual removal of ACCESS_ONCE(), update the docum

[PATCH v2 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Sudeep Holla
Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device properties") switched to use generic device properties for GPIO keys and commit 5feeca3c1e39 ("Input: gpio_keys - add support for GPIO descriptors") switched from legacy GPIO numbers to GPIO descriptors. Previously devm_gpio_r

Re: [PATCH v7 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-16 Thread Rob Herring
On Tue, Nov 15, 2016 at 10:50:59AM +0200, Noam Camus wrote: > From: Noam Camus > > Till now we used clockevent from generic ARC driver. > This was enough as long as we worked with simple multicore SoC. > When we are working with multithread SoC each HW thread can be > scheduled to receive timer i

Re: [PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Andrew Lunn
On Wed, Nov 16, 2016 at 04:43:15PM +0800, Greentime Hu wrote: > To support device tree usage for ftmac100. > > Signed-off-by: Greentime Hu > --- > drivers/net/ethernet/faraday/ftmac100.c |7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/net/ethernet/faraday/ftmac100.c

Re: [RESEND PATCH v4] pwm: add pwm driver for HiSilicon BVT SOCs

2016-11-16 Thread Rob Herring
On Tue, Nov 15, 2016 at 08:41:32PM +0800, Jian Yuan wrote: > From: yuanjian > > Add PWM driver for the PWM controller found on HiSilicon BVT SOCs, like > Hi3519V100, Hi3516CV300, etc. Wrap your lines at ~72 chars. > The PWM controller is primarily in charge of controlling P-Iris lens. > > Rev

[PATCH v16 00/15] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-11-16 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. 4. rename some enums and defines, and some cleanups. 5.

[PATCH v16 01/15] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-11-16 Thread fu . wei
From: Fu Wei To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h, and change "enum ppi_nr" to "enum arch_timer_ppi_nr" to avoid the potential name clashes. Also switc

Re: [PATCH v2] net/phy/vitesse: Configure RGMII skew on VSC8601, if needed

2016-11-16 Thread Andrew Lunn
On Wed, Nov 16, 2016 at 01:02:33AM -0800, Alexandru Gagniuc wrote: > With RGMII, we need a 1.5 to 2ns skew between clock and data lines. The > VSC8601 can handle this internally. While the VSC8601 can set more > fine-grained delays, the standard skew settings work out of the box. > The same heurist

[PATCH v16 04/15] clocksource/drivers/arm_arch_timer: rename some enums and defines, and some cleanups.

2016-11-16 Thread fu . wei
From: Fu Wei Rename some enums and defines, to unify the format of enums and defines in arm_arch_timer.h, also update all the users of these enums and defines: drivers/clocksource/arm_arch_timer.c virt/kvm/arm/hyp/timer-sr.c And do some cleanups, according to the suggestion from checkpatc

[PATCH v16 02/15] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-11-16 Thread fu . wei
From: Fu Wei This patch add a new enum "arch_timer_spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei Acked-by: Mark Rutland --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files chan

[PATCH v16 09/15] clocksource/drivers/arm_arch_timer: Introduce some new structs to prepare for GTDT

2016-11-16 Thread fu . wei
From: Fu Wei The patch introduce two new structs: arch_timer_mem, arch_timer_mem_frame. And also introduce a new define: ARCH_TIMER_MEM_MAX_FRAMES These will be used for refactoring the memory-mapped timer init code to prepare for GTDT Signed-off-by: Fu Wei --- include/clockso

[PATCH v16 06/15] clocksource/drivers/arm_arch_timer: separate out arch_timer_uses_ppi init code to prepare for GTDT.

2016-11-16 Thread fu . wei
From: Fu Wei The patch refactor original arch_timer_uses_ppi init code: (1) Extract a subfunction: arch_timer_uses_ppi_init (2) Use the new subfunction in arch_timer_of_init and arch_timer_acpi_init Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 73 +--

[PATCH v16 03/15] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-11-16 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. According to the suggestion from checkpatch.pl: (1) delete some Blank Spaces in arch_timer_banner; (2) delete a redundant Tab in a bland line of arch_timer_init(void) N

[PATCH v16 08/15] clocksource/drivers/arm_arch_timer: Refactor arch_timer_needs_probing, and call it only if acpi disabled.

2016-11-16 Thread fu . wei
From: Fu Wei The patch refactor original arch_timer_needs_probing function: (1) Separate out arch_timer_needs_probing from arch_timer_common_init, and call it only if acpi disabled. (2) Rename arch_timer_needs_probing to arch_timer_needs_of_probing. Signed-off-by: Fu Wei --- driver

[PATCH v16 05/15] clocksource/drivers/arm_arch_timer: fix a bug in arch_timer_register about arch_timer_uses_ppi

2016-11-16 Thread fu . wei
From: Fu Wei The patch fix a potential bug about arch_timer_uses_ppi in arch_timer_register. On ARM64, we don't use ARCH_TIMER_PHYS_SECURE_PPI in Linux, so we will just igorne it in init code. If arch_timer_uses_ppi is ARCH_TIMER_PHYS_NONSECURE_PPI, the orignal code of arch_timer_uses_ppi may go

[PATCH v16 12/15] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-11-16 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo --- drivers/clocks

[PATCH v16 10/15] clocksource/drivers/arm_arch_timer: Refactor the timer init code to prepare for GTDT

2016-11-16 Thread fu . wei
From: Fu Wei The patch refactor original memory-mapped timer init code: (1) Extract a subfunction for detecting a bast time frame: is_best_frame. (2) Refactor "arch_timer_mem_init", make it become a common code for memory-mapped timer init. (3) Add a new function "arch

Re: [PATCH v2] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Andrew Lunn
On Wed, Nov 16, 2016 at 08:03:46PM +0800, Greentime Hu wrote: > Signed-off-by: Greentime Hu > --- > drivers/net/ethernet/faraday/ftmac100.c |7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/net/ethernet/faraday/ftmac100.c > b/drivers/net/ethernet/faraday/ftmac100.c > in

[PATCH v16 14/15] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-11-16 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH v16 11/15] acpi/arm64: Add GTDT table parse driver

2016-11-16 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei Signed-of

[PATCH v16 15/15] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-11-16 Thread fu . wei
From: Fu Wei This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the resource of platform device. The

[PATCH v16 13/15] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-11-16 Thread fu . wei
From: Fu Wei On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configuration and configure its driver. thi

[PATCH v16 07/15] clocksource/drivers/arm_arch_timer: Refactor arch_timer_detect_rate to keep dt code in *_of_init

2016-11-16 Thread fu . wei
From: Fu Wei The patch refactor original arch_timer_detect_rate function: (1) Separate out device-tree code, keep them in device-tree init function: arch_timer_of_init, arch_timer_mem_init; (2) Improve original mechanism, if getting from memory-mapped timer fail, t

Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2016-11-16 Thread Brian Starkey
Hi, I'm running an ARM FVP (virtual platform - simluated hardware), which is failing to reach a login prompt due to extremely slow progress during boot. systemd gives up waiting for the ttyAMA0 device to appear, and never starts the getty. I've bisected this to commit 4cd13c21b207 "softirq: Let

[PATCH 2/4] DW DMAC: add is-memcpu property to device tree

2016-11-16 Thread Eugeniy Paltsev
Memory-to-memory dma transfers were disabled by default if we used DT to cofigure DMAC. Add is-memcpu property, so it became possible to enable memory-to-memory transfers support via DT. Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/platform.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[PATCH 4/4] Update device tree Synopsys DW DMAC documentation

2016-11-16 Thread Eugeniy Paltsev
* Rename is_private to is-private as ordered by DT policy. The change leaves the support for the old format. * Add is-memcpu property, so it is possible to enable memory-to-memory transfers support via DT. * Add hw-llp property, so it is possible to enable hardware multi block transfers sup

[PATCH 1/4] DW DMAC: rename is_private property as ordered by DT policy

2016-11-16 Thread Eugeniy Paltsev
Rename is_private to is-private as ordered by DT policy. The change leaves the support for the old format. Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c index 5bda0eb..4103f

[PATCH 0/4] DW DMAC: update device tree

2016-11-16 Thread Eugeniy Paltsev
It wasn't possible to enable some features like memory-to-memory transfers or multi block transfers via DT. It is fixed by these patches. * Rename is_private to is-private as ordered by DT policy. (just for cleanup) The change leaves the support for the old format. * Add is-memcpu property,

[PATCH 3/4] DW DMAC: add hw-llp property to device tree

2016-11-16 Thread Eugeniy Paltsev
Several versions of DW DMAC have multi block transfers hardware support. Hardware support of multi block transfers is disabled by default if we use DT to configure DMAC and software emulation of multi block transfers used instead. Add hw-llp property, so it is possible to enable hardware multi bloc

Re: [PATCH] rcu: Avoid unnecessary contention of rcu node lock

2016-11-16 Thread Steven Rostedt
On Wed, 16 Nov 2016 13:49:31 +0900 Byungchul Park wrote: > On Wed, Nov 09, 2016 at 05:57:13PM +0900, Byungchul Park wrote: > > It's unnecessary to try to print stacks of blocked tasks in the case > > that ndetected == 0. Furthermore, calling rcu_print_detail_task_stall() > > causes to acquire rnp

Re: [PATCH v2 1/3] remoteproc: qcom: Encapsulate pvt data structure for q6v56 hexagon.

2016-11-16 Thread Avaneesh Kumar Dwivedi
On 11/11/2016 2:00 AM, Rob Herring wrote: On Fri, Nov 04, 2016 at 07:30:54PM +0530, Avaneesh Kumar Dwivedi wrote: Encapsulate resources specific to each version of hexagon chip to device node to avoid conditional check for manipulation of those resources in driver code. Signed-off-by: Avanees

Re: [Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Tomeu Vizoso
On 16 November 2016 at 13:58, Jani Nikula wrote: > On Wed, 16 Nov 2016, Tomeu Vizoso wrote: >> On 15 November 2016 at 09:27, Jani Nikula >> wrote: >>> On Tue, 15 Nov 2016, David Weinehall wrote: On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jani Nikula wrote: > On Thu, 06 Oct 2016, Tomeu

Re: [Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Jani Nikula
On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > On 16 November 2016 at 13:58, Jani Nikula wrote: >> On Wed, 16 Nov 2016, Tomeu Vizoso wrote: >>> On 15 November 2016 at 09:27, Jani Nikula >>> wrote: On Tue, 15 Nov 2016, David Weinehall wrote: > On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jan

Re: [PATCH/RESEND] recordmcount: arm: Implement make_nop

2016-11-16 Thread Steven Rostedt
On Wed, 16 Nov 2016 11:48:38 + Ard Biesheuvel wrote: > > > > Does that allay your concerns? > > > > Yes, it does. Thanks Does this mean I can pull this patch into my queue then? -- Steve

Re: [PATCH 3/3] trace-cmd record: add --cpu-list option

2016-11-16 Thread Luiz Capitulino
On Tue, 15 Nov 2016 16:38:19 -0500 Steven Rostedt wrote: > On Fri, 28 Oct 2016 17:14:56 -0400 > Luiz Capitulino wrote: > > > > > > > > cpu_set(ret_mask, i) sets bits from begin to end in uint64_t cpumask > > > from below. > > > > > > What happens if this range is greater than 64? We already

[PATCH] netronome: don't access real_num_rx_queues directly

2016-11-16 Thread Arnd Bergmann
The netdev->real_num_rx_queues setting is only available if CONFIG_SYSFS is enabled, so we now get a build failure when that is turned off: netronome/nfp/nfp_net_common.c: In function 'nfp_net_ring_swap_enable': netronome/nfp/nfp_net_common.c:2489:18: error: 'struct net_device' has no member name

Re: [PATCH v05 60/72] arch/arm/include/uapi/asm/signal.h: use __kernel_size_t instead of size_t

2016-11-16 Thread Mikko Rapeli
On Wed, Aug 24, 2016 at 05:02:56PM +0200, Arnd Bergmann wrote: > On Monday, August 22, 2016 8:33:17 PM CEST Mikko Rapeli wrote: > > diff --git a/arch/arm/include/uapi/asm/signal.h > > b/arch/arm/include/uapi/asm/signal.h > > index 33073bd..859f2de 100644 > > --- a/arch/arm/include/uapi/asm/signal.

Re: [Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-16 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 04:08:30PM +0200, Jani Nikula wrote: > On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > > On 16 November 2016 at 13:58, Jani Nikula > > wrote: > >> On Wed, 16 Nov 2016, Tomeu Vizoso wrote: > >>> On 15 November 2016 at 09:27, Jani Nikula > >>> wrote: > On Tue, 15 Nov 201

[PATCH] x86: avoid warning for zero-filling .bss

2016-11-16 Thread Arnd Bergmann
The latest binutils are warning about a .fill directive with an explicit value in a .bss section: arch/x86/kernel/head_32.S: Assembler messages: arch/x86/kernel/head_32.S:677: Warning: ignoring fill value in section `.bss..page_aligned' arch/x86/kernel/head_32.S:679: Warning: ignoring fill value

[PATCH] pinctrl: sunxi: fix theoretical uninitialized variable access

2016-11-16 Thread Arnd Bergmann
gcc warns about a way that it could use an uninitialized variable: drivers/pinctrl/sunxi/pinctrl-sunxi.c: In function 'sunxi_pinctrl_init': drivers/pinctrl/sunxi/pinctrl-sunxi.c:1191:8: error: 'best_div' may be used uninitialized in this function [-Werror=maybe-uninitialized] This cannot really

[PATCH] drm/vmwgfx: avoid gcc-7 parentheses warning

2016-11-16 Thread Arnd Bergmann
gcc-7 warns about slightly suspicious code in vmw_cmd_invalid: drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c: In function 'vmw_cmd_invalid': drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:522:23: error: the omitted middle operand in ?: will always be 'true', suggest explicit middle operand [-Werror=parenthes

[PATCH net 1/3] of_mdio: fix node leak in of_phy_register_fixed_link error path

2016-11-16 Thread Johan Hovold
Make sure to drop the of_node reference also on failure to parse the speed property in of_phy_register_fixed_link(). Fixes: 3be2a49e5c08 ("of: provide a binding for fixed link PHYs") Signed-off-by: Johan Hovold --- drivers/of/of_mdio.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) d

[PATCH net 0/3] net: phy: fix of_node and device leaks

2016-11-16 Thread Johan Hovold
These patches fix a couple of of_node leaks in the fixed-link code and a device reference leak in a phy helper. Johan Johan Hovold (3): of_mdio: fix node leak in of_phy_register_fixed_link error path of_mdio: fix device reference leak in of_phy_find_device net: phy: fixed_phy: fix of_node

[PATCH net 2/3] of_mdio: fix device reference leak in of_phy_find_device

2016-11-16 Thread Johan Hovold
Make sure to drop the reference taken by bus_find_device() before returning NULL from of_phy_find_device() when the found device is not a PHY. Fixes: 6ed742363b9c ("of: of_mdio: Ensure mdio device is a PHY") Signed-off-by: Johan Hovold --- drivers/of/of_mdio.c | 1 + 1 file changed, 1 insertion(

[PATCH net 3/3] net: phy: fixed_phy: fix of_node leak in fixed_phy_unregister

2016-11-16 Thread Johan Hovold
Make sure to drop the of_node reference taken in fixed_phy_register() when deregistering a PHY. Fixes: a75951217472 ("net: phy: extend fixed driver with fixed_phy_register()") Signed-off-by: Johan Hovold --- drivers/net/phy/fixed_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/2] phy: rockchip-inno-usb2: fix uninitialized tmout variable

2016-11-16 Thread Arnd Bergmann
The newly added OTG support has an obvious uninitialized variable access that gcc warns about: drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work': drivers/phy/phy-rockchip-inno-usb2.c:717:7: error: 'tmout' may be used uninitialized in this function [-Werror=maybe-uniniti

[PATCH 2/2] phy: rockchip-inno-usb2: select USB_COMMON

2016-11-16 Thread Arnd Bergmann
When USB is disabled, we get a link error for this driver because of the added OTG support drivers/phy/phy-rockchip-inno-usb2.o: In function `rockchip_usb2phy_otg_sm_work': phy-rockchip-inno-usb2.c:(.text.rockchip_usb2phy_otg_sm_work+0x1f4): undefined reference to `usb_otg_state_string' drivers/

Re: your mail

2016-11-16 Thread Steven Rostedt
On Wed, 16 Nov 2016 11:40:14 +0100 Peter Zijlstra wrote: > On top of which, the implementation had issues; now I know you're the > blinder kind of person that disregards everything not in his immediate > interest, but if you'd looked at the patch you'd have seen he'd added > code the idle entry

Re: [PATCH] Documentation: atomic_ops: use {READ,WRITE}_ONCE()

2016-11-16 Thread Paul E. McKenney
On Wed, Nov 16, 2016 at 11:13:59AM +, Mark Rutland wrote: > While the {READ,WRITE}_ONCE() macros should be used in preference to > ACCESS_ONCE(), the atomic documentation uses the latter exclusively. > > To point people in the right direction, and as a step towards the > eventual removal of AC

Re: [PATCH] Documentation: circular-buffers: use READ_ONCE()

2016-11-16 Thread Paul E. McKenney
On Wed, Nov 16, 2016 at 11:12:49AM +, Mark Rutland wrote: > While the {READ,WRITE}_ONCE() macros should be used in preference to > ACCESS_ONCE(), the circular buffer documentation uses the latter > exclusively. > > To point people in the right direction, and as a step towards the > eventual re

Re: [PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
On Wed, Nov 16, 2016 at 9:47 PM, Andrew Lunn wrote: > On Wed, Nov 16, 2016 at 04:43:15PM +0800, Greentime Hu wrote: >> To support device tree usage for ftmac100. >> >> Signed-off-by: Greentime Hu >> --- >> drivers/net/ethernet/faraday/ftmac100.c |7 +++ >> 1 file changed, 7 insertions(+)

Re: your mail

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 09:25:43AM -0500, Steven Rostedt wrote: > On Wed, 16 Nov 2016 11:40:14 +0100 > Peter Zijlstra wrote: > > > > On top of which, the implementation had issues; now I know you're the > > blinder kind of person that disregards everything not in his immediate > > interest, but

[PATCH v4 2/3] media: change au0828 to use Media Device Allocator API

2016-11-16 Thread Shuah Khan
Change au0828 to use Media Device Allocator API to allocate media device with the parent usb struct device as the key, so it can be shared with the snd_usb_audio driver. Signed-off-by: Shuah Khan --- Changes since v2: - Updated media_device_delete() to pass in module name. drivers/media/usb/au0

[PATCH v4 0/3] Media Device Allocator API

2016-11-16 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

Re: [PATCH 08/16] ARM: vexpress: use generic API for enabling SCU

2016-11-16 Thread Sudeep Holla
On 14/11/16 05:02, Pankaj Dubey wrote: Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Liviu Dudau CC: Sudeep Holla I assume you will take this series through a single tree. Also I assume you may make changes around a9 SCU. I will try to test if

Re: [PATCH] checkpatch: don't check c99 types like uint8_t under tools

2016-11-16 Thread Joe Perches
On Wed, 2016-11-16 at 10:52 +0200, Tomas Winkler wrote: > Tools contains user space code so uintX_t types are just fine. > > Signed-off-by: Tomas Winkler > --- > scripts/checkpatch.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/chec

[PATCH v4 3/3] sound/usb: Use Media Controller API to share media resources

2016-11-16 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB, and V4L2 drivers on a AU0828 media device. Media Controller specific initialization is done after sound card is registered. ALSA creates Media interface and entity function graph nodes for Control, Mixer, PCM Playba

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-16 Thread Richard Weinberger
Keno, On 16.11.2016 04:45, Keno Fischer wrote: > Just as an FYI, the linker bug has been fixed in binutils. Interesting. Is the same bug also the root cause why a static build of UML does not work? Thanks, //richard

[PATCH net 7/7] net: ethernet: ti: cpsw: fix fixed-link phy probe deferral

2016-11-16 Thread Johan Hovold
Make sure to propagate errors from of_phy_register_fixed_link() which can fail with -EPROBE_DEFER. Fixes: 1f71e8c96fc6 ("drivers: net: cpsw: Add support for fixed-link PHY") Signed-off-by: Johan Hovold --- drivers/net/ethernet/ti/cpsw.c | 12 +++- 1 file changed, 7 insertions(+), 5 delet

Re: [PATCH 07/34] [media] DaVinci-VPBE: Delete an unnecessary variable initialisation in vpbe_initialize()

2016-11-16 Thread Mauro Carvalho Chehab
Em Wed, 12 Oct 2016 16:42:31 +0200 SF Markus Elfring escreveu: > From: Markus Elfring > Date: Wed, 12 Oct 2016 09:45:39 +0200 > > The local variable "ret" will be set to an appropriate value a bit later. > Thus omit the explicit initialisation at the beginning. > > Signed-off-by: Markus Elfrin

[PATCH net 1/7] net: ethernet: ti: cpsw: fix bad register access in probe error path

2016-11-16 Thread Johan Hovold
Make sure to resume the platform device to enable clocks before accessing the CPSW registers in the probe error path (e.g. for deferred probe). Unhandled fault: external abort on non-linefetch (0x1008) at 0xd0872d08 ... [] (cpsw_ale_control_set) from [] (cpsw_ale_destroy+0x2c/0x44) [] (cpsw_ale_d

[PATCH net 0/7] net: cpsw: fix leaks and probe deferral

2016-11-16 Thread Johan Hovold
This series fixes as number of leaks and issues in the cpsw probe-error and driver-unbind paths, some which specifically prevented deferred probing. Johan Johan Hovold (7): net: ethernet: ti: cpsw: fix bad register access in probe error path net: ethernet: ti: cpsw: fix mdio device reference

RE: [PATCH] perf/x86/uncore: remove event_list for snb client uncore IMC

2016-11-16 Thread Liang, Kan
> > * kan.li...@intel.com wrote: > > > From: Kan Liang > > > > A BUG was found by perf_fuzzer after enabled KASAN. > > [ 205.748005] BUG: KASAN: slab-out-of-bounds in > > snb_uncore_imc_event_del+0x6c/0xa0 at addr 8800caa43768 > > > Reported-by: Vince Weaver > > Tested-by: Vince Weave

[PATCH net 4/7] net: ethernet: ti: cpsw: fix of_node and phydev leaks

2016-11-16 Thread Johan Hovold
Make sure to drop references taken and deregister devices registered during probe on probe errors (including deferred probe) and driver unbind. Specifically, PHY of-node references were never released and fixed-link PHY devices were never deregistered. Fixes: 9e42f715264f ("drivers: net: cpsw: ad

[PATCH net 6/7] net: ethernet: ti: cpsw: add missing sanity check

2016-11-16 Thread Johan Hovold
Make sure to check for allocation failures before dereferencing a NULL-pointer during probe. Fixes: 649a1688c960 ("net: ethernet: ti: cpsw: create common struct to hold shared driver data") Signed-off-by: Johan Hovold --- drivers/net/ethernet/ti/cpsw.c | 3 +++ 1 file changed, 3 insertions(+) d

[PATCH net 5/7] net: ethernet: ti: cpsw: fix secondary-emac probe error path

2016-11-16 Thread Johan Hovold
Make sure to deregister the primary device in case the secondary emac fails to probe. kernel BUG at /home/johan/work/omicron/src/linux/net/core/dev.c:7743! ... [] (free_netdev) from [] (cpsw_probe+0x9cc/0xe50) [] (cpsw_probe) from [] (platform_drv_probe+0x5c/0xc0) Fixes: d9ba8f9e6298 ("driver: ne

[PATCH net 3/7] net: ethernet: ti: cpsw: fix deferred probe

2016-11-16 Thread Johan Hovold
Make sure to deregister all child devices also on probe errors to avoid leaks and to fix probe deferral. cpsw 4a10.ethernet: omap_device: omap_device_enable() called from invalid state 1 cpsw 4a10.ethernet: use pm_runtime_put_sync_suspend() in driver? cpsw: probe of 4a10.ethernet fail

[PATCH] bpf: fix possible uninitialized access in inactive rotation

2016-11-16 Thread Arnd Bergmann
This newly added code causes a build warning: kernel/bpf/bpf_lru_list.c: In function '__bpf_lru_list_rotate_inactive': kernel/bpf/bpf_lru_list.c:201:28: error: 'next' may be used uninitialized in this function [-Werror=maybe-uninitialized] The warning is plausible from looking at the code, thoug

Re: [PATCH v3 1/3] remoteproc: qcom: Embed private data structure for hexagon dsp.

2016-11-16 Thread Avaneesh Kumar Dwivedi
i have been a little delayed for posting replies to patch comments, hopefully onward it should be quick and fast. On 11/8/2016 12:38 PM, Bjorn Andersson wrote: On Mon 07 Nov 04:37 PST 2016, Avaneesh Kumar Dwivedi wrote: Embed resources specific to version of hexagon chip in device structure

Re: [PATCH v4 0/3] Media Device Allocator API

2016-11-16 Thread Shuah Khan
Sorry for the duplicates. Replying to catch bounced emails on the original patch emails from git send-email On 11/16/2016 07:29 AM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers share a media device. > Using this API, drivers can allocate a media device with the shared

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-16 Thread Josh Poimboeuf
On Wed, Nov 16, 2016 at 02:03:37PM +0100, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 02:57:48PM -0600, Josh Poimboeuf wrote: > > Would you mind posting a disassembly of unwind_get_return_address()? > > Any idea how recreatable it is? (In particular I'd be interested in > > seeing this dump wi

Re: [PATCH v4 3/3] sound/usb: Use Media Controller API to share media resources

2016-11-16 Thread Shuah Khan
Sorry for the duplicates. Replying to catch bounced emails on the original patch emails from git send-email On 11/16/2016 07:29 AM, Shuah Khan wrote: > Change ALSA driver to use Media Controller API to share media resources > with DVB, and V4L2 drivers on a AU0828 media device. > > Media Controll

[PATCH net 2/7] net: ethernet: ti: cpsw: fix mdio device reference leak

2016-11-16 Thread Johan Hovold
Make sure to drop the reference taken by of_find_device_by_node() when looking up an mdio device from a phy_id property during probe. Fixes: 549985ee9c72 ("cpsw: simplify the setup of the register pointers") Signed-off-by: Johan Hovold --- drivers/net/ethernet/ti/cpsw.c | 1 + 1 file changed, 1

[PATCH] [media] pxa_camera: add V4L2 dependency

2016-11-16 Thread Arnd Bergmann
Moving this driver out of soc_camera has resulted in a new randconfig failure: drivers/media/built-in.o: In function `pxa_camera_remove': pxa_camera.c:(.text+0x1854d): undefined reference to `v4l2_clk_unregister' pxa_camera.c:(.text+0x18555): undefined reference to `v4l2_device_unregister' drivers

Re: [PATCH v4 2/3] media: change au0828 to use Media Device Allocator API

2016-11-16 Thread Shuah Khan
Sorry for the duplicates. Replying to catch bounced emails on the original patch emails from git send-email On 11/16/2016 07:29 AM, Shuah Khan wrote: > Change au0828 to use Media Device Allocator API to allocate media device > with the parent usb struct device as the key, so it can be shared with

Re: [PATCH v4 1/3] media: Media Device Allocator API

2016-11-16 Thread Shuah Khan
Sorry for the duplicates. Replying to catch bounced emails on the original patch emails from git send-email On 11/16/2016 07:29 AM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers share a media device. > Using this API, drivers can allocate a media device with the shared

Re: [PATCH v5 1/2] drm: tilcdc: implement palette loading for rev1

2016-11-16 Thread Jyri Sarha
On 11/16/16 13:34, Bartosz Golaszewski wrote: > 2016-10-31 17:05 GMT+01:00 Jyri Sarha : >> On 10/31/16 16:19, Bartosz Golaszewski wrote: >>> Revision 1 of the IP doesn't work if we don't load the palette (even >>> if it's not used, which is the case for the RGB565 format). >>> >>> Add a function ca

[PATCH v4 1/3] media: Media Device Allocator API

2016-11-16 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Badhri Jagan Sridharan
> IMHO the uevent is cheaper. User space cannot just poll without further > infrastructure. A task needs to run to poll. A uevent can be handled > through established infrastructure. Thanks Oliver for stating this. This is exactly what I was facing. > OK, I'll add KOBJ_CHANGE for those. > > So is

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Heikki Krogerus
On Wed, Nov 16, 2016 at 06:30:23AM -0800, Badhri Jagan Sridharan wrote: > > IMHO the uevent is cheaper. User space cannot just poll without further > > infrastructure. A task needs to run to poll. A uevent can be handled > > through established infrastructure. > > Thanks Oliver for stating this. T

Re: [PATCH] hwmon: ltc2990: support all measurement modes

2016-11-16 Thread Guenter Roeck
On 11/16/2016 05:53 AM, Tom Levens wrote: Updated ltc2990 driver to support all possible measurement modes that the chip provides. Mode can be set through a device tree attribute or by writing to the "mode" sysfs attribute. Signed-off-by: Tom Levens --- .../devicetree/bindings/hwmon/ltc2990.tx

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-16 Thread Jerome Brunet
On Wed, 2016-11-16 at 14:23 +0100, Andrew Lunn wrote: > > > > There two kind of PHYs supporting eee, the one advertising eee by > > default (like realtek) and the one not advertising it (like > > micrel). This is just the default register value. > > I don't know too much about EEE. So maybe a d

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 08:37:46AM -0600, Josh Poimboeuf wrote: > On Wed, Nov 16, 2016 at 02:03:37PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 15, 2016 at 02:57:48PM -0600, Josh Poimboeuf wrote: > > > Would you mind posting a disassembly of unwind_get_return_address()? > > > Any idea how recreat

[PATCH] net: dsa: fix fixed-link-phy device leaks

2016-11-16 Thread Johan Hovold
Make sure to drop the reference taken by of_phy_find_device() when registering and deregistering the fixed-link PHY-device. Note that we need to put both references held at deregistration. Fixes: 39b0c705195e ("net: dsa: Allow configuration of CPU & DSA port speeds/duplex") Signed-off-by: Johan H

Re: [PATCH 06/34] [media] DaVinci-VPBE: Return an error code only by a single variable in vpbe_initialize()

2016-11-16 Thread Mauro Carvalho Chehab
Em Wed, 12 Oct 2016 16:40:22 +0200 SF Markus Elfring escreveu: > From: Markus Elfring > Date: Tue, 11 Oct 2016 14:15:57 +0200 > > An error code was assigned to the local variable "err" in an if branch. > But this variable was not used further then. > > Use the local variable "ret" instead like

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 03:49:43PM +0100, Peter Zijlstra wrote: > Let me enable those and run again, it didn't insta-trigger like it does > without. Tada! $ objdump -D ivb-dbg/vmlinux | awk '/<[^>]*>:/ { p = 0; } /:/ { p = 1; } { if (p) print $0; }' 811c70d0 : 811c70d0: e8

Re: perf: fuzzer KASAN unwind_get_return_address

2016-11-16 Thread Josh Poimboeuf
On Wed, Nov 16, 2016 at 03:49:43PM +0100, Peter Zijlstra wrote: > On Wed, Nov 16, 2016 at 08:37:46AM -0600, Josh Poimboeuf wrote: > > On Wed, Nov 16, 2016 at 02:03:37PM +0100, Peter Zijlstra wrote: > > > On Tue, Nov 15, 2016 at 02:57:48PM -0600, Josh Poimboeuf wrote: > > > > Would you mind posting

Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-11-16 Thread Myron Stowe
On Wed, Nov 16, 2016 at 2:13 AM, Xunlei Pang wrote: > Ccing David > On 2016/11/16 at 17:02, Xunlei Pang wrote: >> We met the DMAR fault both on hpsa P420i and P421 SmartArray controllers >> under kdump, it can be steadily reproduced on several different machines, >> the dmesg log is like: >> HP HP

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-16 Thread Andrew Lunn
On Wed, Nov 16, 2016 at 03:51:30PM +0100, Jerome Brunet wrote: > On Wed, 2016-11-16 at 14:23 +0100, Andrew Lunn wrote: > > > > > > There two kind of PHYs supporting eee, the one advertising eee by > > > default (like realtek) and the one not advertising it (like > > > micrel). > > This is just th

Re: [PATCH v13 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-16 Thread Kirti Wankhede
On 11/16/2016 8:33 AM, Dong Jia Shi wrote: > * Kirti Wankhede [2016-11-15 20:59:48 +0530]: > > Hi Kirti, > >> Added APIs for pining and unpining set of pages. These call back into >> backend iommu module to actually pin and unpin pages. >> Added two new callback functions to struct vfio_iommu_

Re: crash by cdc_acm driver in kernels 4.8-rc1/5

2016-11-16 Thread Wim Osterholt
On Wed, Nov 16, 2016 at 01:34:30PM +0100, Oliver Neukum wrote: > > This is very odd. We need to know where it crashes. Please try the > insane debug patch I posted. A bit of patience please. Yesterday I hadn't the modem at hand. Groeten, Wim.

Re: [PATCH v13 02/22] vfio: VFIO based driver for Mediated devices

2016-11-16 Thread Kirti Wankhede
On 11/16/2016 7:59 AM, Dong Jia Shi wrote: > * Kirti Wankhede [2016-11-15 20:59:45 +0530]: > > Hi Kirti, > >> vfio_mdev driver registers with mdev core driver. >> mdev core driver creates mediated device and calls probe routine of >> vfio_mdev driver for each device. >> Probe routine of vfio_m

<    1   2   3   4   5   6   7   8   9   10   >