[tip:perf/urgent] perf evsel: Improve EPERM error handling in open_strerror()

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7d173913a6420f2818afeca70b268f064441f69b Gitweb: http://git.kernel.org/tip/7d173913a6420f2818afeca70b268f064441f69b Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 12 May 2016 15:44:55 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 15:44:55 -0300 pe

Re: [PATCH] tty: serial: msm: Disable restoring Rx interrupts for DMA Mode

2016-05-13 Thread charanya
On 2016-05-12 10:32, Andy Gross wrote: On Wed, May 11, 2016 at 06:41:26PM -0700, Stephen Boyd wrote: On 05/10, Abhishek Sahu wrote: > From: Charanya Was it intentional to only have one name here? > > The Data loss was happening with current QCOM MSM serial driver during > large file transfer

[tip:perf/urgent] perf stat: Fallback to user only counters when perf_event_paranoid > 1

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 42ef8a78c1f49f53f29f0f3a6f9a5bcbc653233e Gitweb: http://git.kernel.org/tip/42ef8a78c1f49f53f29f0f3a6f9a5bcbc653233e Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 12 May 2016 16:25:18 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 16:25:18 -0300 pe

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
On Fri, May 13, 2016 at 11:08:46AM +0200, Marc Haber wrote: > It applies now to 4.5 as well. Yeah, I tried getting the raw message from marc.info but then it said: patch unexpectedly ends in middle of line Hunk #1 succeeded at 922 with fuzz 1. The attached versions I sent you are from my lkml mb

[PATCH] i2c: at91: change log when dma configuration fails

2016-05-13 Thread Ludovic Desroches
When the DMA configuration fails, there is a log reporting that we can't use DMA and indicating the error number. When booting the kernel, it is annoying to see this error number. Moreover, people can think something is going wrong. It is not the case, it means that DMA can't be used but it doesn't

[tip:locking/rwsem] x86/rwsem: Save and restore all callee-clobbered regs in 32-bit ____down_write()

2016-05-13 Thread tip-bot for Borislav Petkov
Commit-ID: 9da6e1cf7f044569a7e8a607ecdea6f5192c6bce Gitweb: http://git.kernel.org/tip/9da6e1cf7f044569a7e8a607ecdea6f5192c6bce Author: Borislav Petkov AuthorDate: Thu, 12 May 2016 19:29:38 +0200 Committer: Ingo Molnar CommitDate: Fri, 13 May 2016 11:15:19 +0200 x86/rwsem: Save and rest

Re: [PATCH] arm64: fix current_thread_info()->addr_limit setup

2016-05-13 Thread Will Deacon
On Thu, May 12, 2016 at 02:26:54PM +0300, Yury Norov wrote: > At elf loading in flush_old_exec() in fs/exec.c, generic code sets > current_thread_info()->addr_limit to one that corresponds aarch64 value, > and ignores compat mode there as corresponding status setup happens > later on in load_elf_bi

Re: [PATCH v5 0/3] dmaengine: Add clock support for AXI DMAS

2016-05-13 Thread Vinod Koul
On Fri, May 13, 2016 at 12:33:28PM +0530, Kedareswara rao Appana wrote: > This patch series adds basic clock support for AXI DMAS > This patch series is created on top of the dma-next branch. Applied, thanks -- ~Vinod

Re: [PATCH v2 1/7] powerpc/8xx: Fix vaddr for IMMR early remap

2016-05-13 Thread Christophe Leroy
Le 11/05/2016 à 22:38, Scott Wood a écrit : On Wed, 2016-05-11 at 17:03 +0200, Christophe Leroy wrote: Memory: 124428K/131072K available (3748K kernel code, 188K rwdata, 648K rodata, 508K init, 290K bss, 6644K reserved) Kernel virtual memory layout: * 0xfffdf000..0xf000 : fixmap * 0x

[PATCH v2 0/5] support rockchip dwc3 driver

2016-05-13 Thread William Wu
This series add support for rockchip dwc3 driver, and add additional optional properties for specific platforms (e.g., rockchip platform). William Wu (5): usb: dwc3: of-simple: add compatible for rockchip usb: dwc3: add dis_u2_freeclk_exists_quirk usb: dwc3: add phyif_utmi_quirk usb: dwc3:

[PATCH v2 3/5] usb: dwc3: add phyif_utmi_quirk

2016-05-13 Thread William Wu
Add a quirk to configure the core to support the UTMI+ PHY with an 8- or 16-bit interface. UTMI+ PHY interface is hardware property, and it's platform dependent. Normall, the PHYIf can be configured during coreconsultant. But for some specific usb cores(e.g. rk3399 soc dwc3), the default PHYIf conf

[RESEND PATCH] mmc: sdhci: fix wakeup configuration

2016-05-13 Thread Ludovic Desroches
Activating wakeup event is not enough to get a wakeup signal. The corresponding events have to be enabled in the Interrupt Status Enable Register too. Signed-off-by: Ludovic Desroches --- Hi, I just updated sdhci_enable_irq_wakeups() not sdhci_disable_irq_wakeups() because I don't think it is ne

[PATCH v2 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-05-13 Thread William Wu
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respectively. Signed-off-by: William Wu --- Changes in v2: - None Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++

[PATCH v2 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-05-13 Thread William Wu
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Signed-off-by: William Wu --- Changes in v2: - None Documentation/devicetree/bindings/usb/dwc3.txt | 3 ++

[PATCH v2 1/5] usb: dwc3: of-simple: add compatible for rockchip

2016-05-13 Thread William Wu
Rockchip platform merely enable usb3 clocks and populate its children. So we can use this generic glue layer to support Rockchip dwc3. Signed-off-by: William Wu --- Changes in v2: - sort the list of_dwc3_simple_match (Doug) drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+)

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-13 Thread Catalin Marinas
On Fri, May 13, 2016 at 04:11:23PM +0800, Zhangjian (Bamvor) wrote: > On 2016/5/12 23:28, Catalin Marinas wrote: > >On Thu, May 12, 2016 at 05:24:57PM +0300, Yury Norov wrote: > >>On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > >>>On Thu, May 12, 2016 at 04:44:31PM +0300, Yury No

Re: [PATCH] sched/core: don't include asm/mmu_context from drivers

2016-05-13 Thread Arnd Bergmann
On Thursday 12 May 2016 22:46:56 Andy Lutomirski wrote: > On Fri, Apr 29, 2016 at 6:42 AM, Steven Rostedt wrote: > > On Fri, 29 Apr 2016 10:52:32 +0200 > > Arnd Bergmann wrote: > > > >> This reverts the earlier fix attempt and works around the problem > >> by including both linux/mmu_context.h an

Re: [PATCH v2 0/5] support rockchip dwc3 driver

2016-05-13 Thread Heiko Stuebner
Hi William, Am Freitag, 13. Mai 2016, 17:24:56 schrieb William Wu: > This series add support for rockchip dwc3 driver, > and add additional optional properties for specific > platforms (e.g., rockchip platform). when submitting new versions of patchsets please also start a new thread. It is hard

Re: [PATCH] crypto: qat: remove unused vairable.

2016-05-13 Thread Herbert Xu
On Wed, May 11, 2016 at 01:21:29PM -0700, Tadeusz Struk wrote: > On 05/11/2016 12:28 PM, Muhammad Falak R Wani wrote: > > Remove the unused variable ret, and return 0 explicitly. > > Thanks for the patch. In this case it will be even better > to change the adf_ctl_stop_devices() to a void function

Re: [PATCH v2 1/2] vb2: core: Skip planes array verification if pb is NULL

2016-05-13 Thread Sakari Ailus
Hi Hans, Hans Verkuil wrote: > On 05/12/2016 02:14 PM, Sakari Ailus wrote: >> An earlier patch fixing an input validation issue introduced another >> issue: vb2_core_dqbuf() is called with pb argument value NULL in some >> cases, causing a NULL pointer dereference. Fix this by skipping the >> veri

Re: [PATCH v2 0/5] support rockchip dwc3 driver

2016-05-13 Thread Felipe Balbi
Hi, William Wu writes: > This series add support for rockchip dwc3 driver, > and add additional optional properties for specific > platforms (e.g., rockchip platform). > > William Wu (5): > usb: dwc3: of-simple: add compatible for rockchip > usb: dwc3: add dis_u2_freeclk_exists_quirk > usb

[RFC PATCH 1/2] net: macb: Add MDIO driver for accessing multiple PHY devices

2016-05-13 Thread Harini Katakam
This patch is to add support for the hardware with multiple ethernet MAC controllers and a single MDIO bus connected to multiple PHY devices. MDIO lines are connected to any one of the ethernet MAC controllers and all the PHY devices will be accessed using the PHY maintenance interface in that MAC

[RFC PATCH 2/2] Documentation: devictree: Add macb mdio bindings

2016-05-13 Thread Harini Katakam
Add documentations for macb mdio driver. Signed-off-by: Harini Katakam --- .../devicetree/bindings/net/macb-mdio.txt | 31 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/macb-mdio.txt diff --git a/Documentation/devicetr

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-05-13 Thread Dr. Greg Wettstein
On Sun, May 08, 2016 at 06:32:10PM -0700, Andy Lutomirski wrote: Good morning, running behind on e-mail this week but wanted to get some reflections out on Andy's well taken comments and concerns. > On May 8, 2016 2:59 AM, "Dr. Greg Wettstein" wrote: > > > > > > This now means the security of SG

[PATCH] staging: dgnc: re-arrange functions for removing forward

2016-05-13 Thread Daeseok Youn
Re-arrange the functions for removing forward declarations in dgnc_cls.c file. Signed-off-by: Daeseok Youn --- After applying this patch, the object file size was NOT changed. drivers/staging/dgnc/dgnc_cls.c | 949 +++- 1 file changed, 460 insertions(+), 489

Re: [PATCH v2 0/5] support rockchip dwc3 driver

2016-05-13 Thread William Wu
Dear Felipe, On 05/13/2016 05:37 PM, Felipe Balbi wrote: Hi, William Wu writes: This series add support for rockchip dwc3 driver, and add additional optional properties for specific platforms (e.g., rockchip platform). William Wu (5): usb: dwc3: of-simple: add compatible for rockchip us

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Arnd Bergmann
On Friday 13 May 2016 14:05:41 Vineet Gupta wrote: > On Friday 13 May 2016 01:54 PM, Marc Zyngier wrote: > > On 12/05/16 22:03, Arnd Bergmann wrote: > ... > >> > >> config EZNPS_GIC > >> bool "NPS400 Global Interrupt Manager (GIM)" > >> +depends on ARC || (COMPILE_TEST && !64BIT) > >>

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Sebastian Frias
Hi, On 05/13/2016 10:44 AM, Mason wrote: > On 13/05/2016 10:04, Michal Hocko wrote: > >> On Tue 10-05-16 13:56:30, Sebastian Frias wrote: >> [...] >>> NOTE: I understand that the overcommit mode can be changed dynamically thru >>> sysctl, but on embedded systems, where we know in advance that ove

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Michal Hocko
On Fri 13-05-16 10:44:30, Mason wrote: > On 13/05/2016 10:04, Michal Hocko wrote: > > > On Tue 10-05-16 13:56:30, Sebastian Frias wrote: > > [...] > >> NOTE: I understand that the overcommit mode can be changed dynamically thru > >> sysctl, but on embedded systems, where we know in advance that ov

[PATCH v2 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-05-13 Thread William Wu
This patch documents the device tree documentation required for Rockchip USB3.0 core wrapper consist of USB3.0 IP from Synopsys. It could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: William Wu --- Changes in v2: - add rockchip,dwc3.txt to Documentation/devi

[PATCH v8 00/14] USB OTG/dual-role framework

2016-05-13 Thread Roger Quadros
Hi, This series centralizes OTG/Dual-role functionality in the kernel. As of now I've got Dual-role functionality working pretty reliably on dra7-evm and am437x-gp-evm. NOTE: my am437x-gp-evm broke so I couldn't test v8 on it. But the changes since v7 are trivial and shouldn't impact am437x-gp-evm

[PATCH v8 03/14] usb: hcd.h: Add OTG to HCD interface

2016-05-13 Thread Roger Quadros
The OTG core will use struct otg_hcd_ops to interface with the HCD controller. The main purpose of this interface is to avoid directly calling HCD APIs from the OTG core as they wouldn't be defined in the built-in symbol table if CONFIG_USB is m. Signed-off-by: Roger Quadros Acked-by: Peter Chen

[PATCH v8 01/14] usb: hcd: Initialize hcd->flags to 0

2016-05-13 Thread Roger Quadros
When using the OTG/drd library we can call hcd_add/remove consecutively without calling usb_put_hcd/usb_create_hcd in between so hcd->flags can be stale. If the HC dies due to whatever reason then without this patch we get the below error on next hcd_add. [ 91.494257] xhci-hcd xhci-hcd.0.auto:

[PATCH v8 07/14] usb: otg: get rid of CONFIG_USB_OTG_FSM in favour of CONFIG_USB_OTG

2016-05-13 Thread Roger Quadros
Let's use CONFIG_USB_OTG as a single config option to enable USB OTG and the OTG FSM. This makes things a lot less confusing. Update all users of CONFIG_USB_OTG_FSM to CONFIG_USB_OTG. Signed-off-by: Roger Quadros Acked-by: Peter Chen --- Documentation/usb/chipidea.txt | 2 +- drivers/usb/chipi

[PATCH v8 14/14] usb: host: xhci-plat: Add otg device to platform data

2016-05-13 Thread Roger Quadros
Host controllers that are part of an OTG/dual-role instance need to somehow pass the OTG controller device information to the HCD core. We use platform data to pass the OTG controller device. Signed-off-by: Roger Quadros Reviewed-by: Peter Chen --- drivers/usb/host/xhci-plat.c | 35 +++

[PATCH v8 11/14] usb: otg: use dev_dbg() instead of VDBG()

2016-05-13 Thread Roger Quadros
Now that we have a device reference in struct usb_otg let's use dev_dbg() for debug messages. Signed-off-by: Roger Quadros Acked-by: Peter Chen --- drivers/usb/common/usb-otg-fsm.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/usb/common/usb-ot

[PATCH v8 05/14] usb: otg-fsm: move host controller operations into usb_otg->hcd_ops

2016-05-13 Thread Roger Quadros
This is to prevent missing symbol build error if OTG is enabled (built-in) and HCD core (CONFIG_USB) is module. Signed-off-by: Roger Quadros Acked-by: Peter Chen --- drivers/usb/chipidea/otg_fsm.c | 7 +++ drivers/usb/common/usb-otg-fsm.c | 15 +++ drivers/usb/phy/phy-fsl-usb

[GIT PULL] regmap fixes for v4.6

2016-05-13 Thread Mark Brown
The following changes since commit 44549e8f5eea4e0a41b487b63e616cb089922b99: Linux 4.6-rc7 (2016-05-08 14:38:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-fix-v4.6-rc7 for you to fetch changes up to 2a2cd52190

[PATCH v8 02/14] usb: otg-fsm: Prevent build warning "VDBG" redefined

2016-05-13 Thread Roger Quadros
If usb/otg-fsm.h and usb/composite.h are included together then it results in the build warning [1]. Prevent that by defining VDBG locally. Also get rid of MPC_LOC which doesn't seem to be used by anyone. [1] - warning fixed by this patch: In file included from drivers/usb/dwc3/core.h:33, fr

[PATCH v8 09/14] usb: of: add an API to get OTG device from USB controller node

2016-05-13 Thread Roger Quadros
The OTG controller and the USB controller can be linked via the 'otg-controller' property in the USB controller's device node. of_usb_get_otg() can be used to get the OTG controller device from the USB controller's device node. Signed-off-by: Roger Quadros Acked-by: Peter Chen --- Documentatio

[PATCH] usb: dwc3: add DWC3_GUCTL1 reg for debug

2016-05-13 Thread William Wu
GUCTL1 reg has some useful functions which can be written by user. For rockchip platform, we set GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK (bit26, applicable for the core is programmed to operate in 2.0 device only) to 1 in bootrom, and after start the kernel, we want to check whether this bit can be rese

[PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-13 Thread Roger Quadros
The OTG state machine needs a mechanism to start and stop the gadget controller as well as connect/disconnect from the bus. Add usb_gadget_start(), usb_gadget_stop() and usb_gadget_connect_control(). Introduce usb_otg_add_gadget_udc() to allow controller drivers to register a gadget controller tha

[PATCH v8 12/14] usb: hcd: Adapt to OTG core

2016-05-13 Thread Roger Quadros
Introduce usb_otg_add/remove_hcd() for use by host controllers that are part of OTG/dual-role port. Non Device tree platforms can use the otg_dev argument to specify the OTG controller device. If otg_dev is NULL then the device tree node's otg-controller property is used to get the otg_dev device.

Re: [PATCH v2] arm64: fix current_thread_info()->addr_limit setup

2016-05-13 Thread Catalin Marinas
On Thu, May 12, 2016 at 09:03:42PM +0300, Yury Norov wrote: > On Thu, May 12, 2016 at 06:22:03PM +0100, Catalin Marinas wrote: > > On Thu, May 12, 2016 at 07:06:03PM +0300, Yury Norov wrote: > > > diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h > > > index 24ed037..fda75ce

[PATCH v8 04/14] usb: otg-fsm: use usb_otg wherever possible

2016-05-13 Thread Roger Quadros
Move otg_fsm into usb_otg and use usb_otg wherever possible in the usb_otg APIs. Signed-off-by: Roger Quadros Acked-by: Peter Chen --- drivers/usb/chipidea/ci.h| 1 - drivers/usb/chipidea/core.c | 14 +-- drivers/usb/chipidea/debug.c | 2 +- drivers/usb/chipidea/otg_fsm.c

[PATCH v8 08/14] usb: otg: add OTG/dual-role core

2016-05-13 Thread Roger Quadros
It provides APIs for the following tasks - Registering an OTG/dual-role capable controller - Registering Host and Gadget controllers to OTG core - Providing inputs to and kicking the OTG state machine Provide a dual-role device (DRD) state machine. DRD mode is a reduced functionality OTG mode. In

[PATCH v8 10/14] usb: otg: add hcd companion support

2016-05-13 Thread Roger Quadros
From: Yoshihiro Shimoda Since some host controller (e.g. EHCI) needs a companion host controller (e.g. OHCI), this patch adds such a configuration to use it in the OTG core. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Roger Quadros Acked-by: Peter Chen --- Documentation/devicetree/bindin

[PATCH v8 06/14] usb: gadget.h: Add OTG to gadget interface

2016-05-13 Thread Roger Quadros
The OTG core will use struct otg_gadget_ops to start/stop the gadget controller. The main purpose of this interface is to avoid directly calling usb_gadget_start/stop() from the OTG core as they wouldn't be defined in the built-in symbol table if CONFIG_USB_GADGET is m. Signed-off-by: Roger Quadr

Re: [PATCH] usb: dwc3: add DWC3_GUCTL1 reg for debug

2016-05-13 Thread William Wu
On 05/13/2016 06:05 PM, William Wu wrote: GUCTL1 reg has some useful functions which can be written by user. For rockchip platform, we set GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK (bit26, applicable for the core is programmed to operate in 2.0 device only) to 1 in bootrom, and after start the kernel, w

[PATCH v2] usb: dwc3: add DWC3_GUCTL1 reg for debug

2016-05-13 Thread William Wu
GUCTL1 reg has some useful functions which can be written by user. For rockchip platform, we set GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK (bit26, applicable for the core is programmed to operate in 2.0 device only) to 1 in bootrom, and after start the kernel, we want to check whether this bit can be rese

Re: [PATCH 2/2] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-05-13 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160513] [cannot apply to tty/tty-testing usb/usb-testing v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Chuah-Kim

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Mason
On 13/05/2016 11:52, Michal Hocko wrote: > On Fri 13-05-16 10:44:30, Mason wrote: >> On 13/05/2016 10:04, Michal Hocko wrote: >> >>> On Tue 10-05-16 13:56:30, Sebastian Frias wrote: >>> [...] NOTE: I understand that the overcommit mode can be changed dynamically thru sysctl, but on embedd

[PATCH v2 0/3] cpuacct: Show all detail stats in one file

2016-05-13 Thread Zhao Lei
In current code, we can get cpuacct data from severial files, but each file have its lilmit. For example: we can get cpu usage in user and kernel mode by cpuacct.stat, but we can't get detail data of each cpu in above file. we can get each cpu's kernel mode usage in cpuacct.usage_percpu_sys, but w

[PATCH v2 2/3] cpuacct: Use loop to avoid copies of the similar code in cpuacct_stats_show()

2016-05-13 Thread Zhao Lei
Currently we have copies of the similar code for each cpustat(system/user) in cpuacct_stats_show(), this patch use loop instead. Only a little cleanup. Signed-off-by: Zhao Lei --- kernel/sched/cpuacct.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff -

[PATCH v2 3/3] cpuacct: Show all detail stats in one file

2016-05-13 Thread Zhao Lei
In current code, we can get cpuacct data from severial files, but each file have its lilmit. For example: we can get cpu usage in user and kernel mode by cpuacct.stat, but we can't get detail data of each cpu in above file. we can get each cpu's kernel mode usage in cpuacct.usage_percpu_sys, but w

[PATCH v2 1/3] cpuacct: Merge cpuacct_usage_index and cpuacct_stat_index

2016-05-13 Thread Zhao Lei
These two types have similar function. No need to separate them. Signed-off-by: Zhao Lei --- kernel/sched/cpuacct.c | 47 --- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c index 41f85c4.

[PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-13 Thread Baolin Wang
Currently on some platforms, the gadget device can be power off to save power when the Vbus is off, which means no cable plugging in now. In this situation we should defer starting the gadget until the gadget device is power on by connecting host. Signed-off-by: Baolin Wang --- drivers/usb/dwc3/

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Marc Zyngier
On 13/05/16 10:51, Arnd Bergmann wrote: > On Friday 13 May 2016 14:05:41 Vineet Gupta wrote: >> On Friday 13 May 2016 01:54 PM, Marc Zyngier wrote: >>> On 12/05/16 22:03, Arnd Bergmann wrote: >> ... config EZNPS_GIC bool "NPS400 Global Interrupt Manager (GIM)" +depen

[PATCH] usb: gadget: composite: don't queue OS desc req if length is invalid

2016-05-13 Thread William Wu
In OS descriptors handling, if ctrl->bRequestType is USB_RECIP_DEVICE and w_index != 0x4 or (w_value >> 8) is true, it will not assign a valid value to req->length, but use the default value(-EOPNOTSUPP), and queue an OS desc request with the invalid req->length. It always happens on the platforms

Re: [PATCH V7 07/11] pci, acpi: Handle ACPI companion assignment.

2016-05-13 Thread Lorenzo Pieralisi
On Thu, May 12, 2016 at 01:27:23PM +0200, Rafael J. Wysocki wrote: > On Thu, May 12, 2016 at 12:43 PM, Jayachandran C > wrote: > > On Thu, May 12, 2016 at 4:13 AM, Bjorn Helgaas wrote: > >> On Wed, May 11, 2016 at 10:30:51PM +0200, Rafael J. Wysocki wrote: > >>> On Wed, May 11, 2016 at 12:11 PM,

RE: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-13 Thread Du, Changbin
Hi, > >> Yeah, it probably deserves a pr_err() or pr_debug(), but host sending > >> more data than it should, is another problem altogether which needs to > >> be addressed at the host. > >> > >> Adding a print to aid debugging is a good idea, but bailing out on the > >> peripheral side is not :-s

Re: [PATCH] i2c: Raise SDA for each received bit, if necessary

2016-05-13 Thread Wolfram Sang
> I was playing with the DRM framework and an old SiS graphics card. I > discovered this issue while trying to read the EDID from the monitor. So, there is no upstream user yet? > I have a few other SiS cards/models here and they all expose this > behavior. So I guess it's intentional(==cheaper?

[GIT PULL] regulator fixes for v4.6

2016-05-13 Thread Mark Brown
The following changes since commit 44549e8f5eea4e0a41b487b63e616cb089922b99: Linux 4.6-rc7 (2016-05-08 14:38:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-fix-v4.6-rc7 for you to fetch changes up to 9689

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Vineet Gupta
On Friday 13 May 2016 03:55 PM, Marc Zyngier wrote: > On 13/05/16 10:51, Arnd Bergmann wrote: >> On Friday 13 May 2016 14:05:41 Vineet Gupta wrote: >>> On Friday 13 May 2016 01:54 PM, Marc Zyngier wrote: On 12/05/16 22:03, Arnd Bergmann wrote: >>> ... > > config EZNPS_GIC >

Re: [PATCH] i2c: st: Implement bus clear

2016-05-13 Thread Wolfram Sang
On Wed, May 11, 2016 at 05:21:59PM +0100, Peter Griffin wrote: > From I2C specifications: > http://www.nxp.com/documents/user_manual/UM10204.pdf > > Chapter 3.1.16, when the i2c device held the SDA line low, the master > should send 9 clocks pulses to try to recover. > > Signed-off-by: Fred

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Sebastian Frias
Hi, On 05/13/2016 12:18 PM, Mason wrote: > On 13/05/2016 11:52, Michal Hocko wrote: >> On Fri 13-05-16 10:44:30, Mason wrote: >>> On 13/05/2016 10:04, Michal Hocko wrote: >>> On Tue 10-05-16 13:56:30, Sebastian Frias wrote: [...] > NOTE: I understand that the overcommit mode can be c

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-13 Thread Felipe Balbi
Hi, Baolin Wang writes: > Currently on some platforms, the gadget device can be power off to > save power when the Vbus is off, which means no cable plugging in > now. In this situation we should defer starting the gadget until the > gadget device is power on by connecting host. okay, you need

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-13 Thread Yury Norov
On Fri, May 13, 2016 at 09:28:03AM +, Catalin Marinas wrote: > > The discussion is mainly around whether USER_DS for 32-bit compat apps > should be the same as USER_DS for native 32-bit apps. Even for native > 32-bit kernels, we don't use STACK_TOP as addr_limit. A read/write from > 0x

Re: [PATCH v3] ASoC: MAX9860: new driver

2016-05-13 Thread Mark Brown
On Fri, May 13, 2016 at 09:25:33AM +0200, Peter Rosin wrote: > +static int max9860_dai_startup(struct snd_pcm_substream *substream, > +struct snd_soc_dai *dai) > +{ > + struct snd_soc_codec *codec = dai->codec; > + struct max9860_priv *max9860 = snd_soc_codec_ge

Re: [PATCH v9 1/2] gpio: mmio: add DT support for memory-mapped GPIOs

2016-05-13 Thread Alexandre Courbot
On Thu, May 12, 2016 at 9:07 PM, Christian Lamparter wrote: > On Thursday, May 12, 2016 07:26:32 PM Alexandre Courbot wrote: >> On Wednesday, May 11, 2016 6:34:34 PM JST, Christian Lamparter wrote: >> > From: Álvaro Fernández Rojas >> > >> > This patch adds support for defining memory-mapped GPIO

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-13 Thread Catalin Marinas
On Fri, May 13, 2016 at 01:51:15PM +0300, Yury Norov wrote: > On Fri, May 13, 2016 at 09:28:03AM +, Catalin Marinas wrote: > > The discussion is mainly around whether USER_DS for 32-bit compat apps > > should be the same as USER_DS for native 32-bit apps. Even for native > > 32-bit kernels, we

Stack trace of csum_partial_copy_generic

2016-05-13 Thread Nikolay Borisov
Hello Josh, I'd like to ask you whether objtool is supposed to produce a warning when arch/x86/lib/csum-copy_64.o (produced from arch/x86/lib/csum-copy_64.S). Since I cannot see any specific usage of rbp for defining a stackframe. I'm chasing against poor performance of a network benchmark an

[PATCH] pwm: atmel: Fix disabling of PWM channels

2016-05-13 Thread Guillermo Rodriguez
When disabling a PWM channel, the PWM clock was being stopped immediately after writing to PWM_DIS. As a result, the disabling of the PWM channel did not complete properly, and the PWM output might be left at the wrong level. Fix this by waiting for the channel to be effectively disabled (by check

Re: pwm: atmel: PWM may not properly disable

2016-05-13 Thread Guillermo Rodriguez Garcia
Hello, 2016-05-12 15:24 GMT+02:00 Guillermo Rodriguez Garcia : > 2016-05-12 14:14 GMT+02:00 Thierry Reding : >> On Thu, May 12, 2016 at 01:49:12PM +0200, Guillermo Rodriguez Garcia wrote: >>> Hello, >>> >>> [...] >>> >>> One thing that I'd request is that instead of the cpu_relax() you use a >>> >

Re: [PATCH v8 1/7] regulator: fixed: add support for ACPI interface

2016-05-13 Thread Mark Brown
On Thu, May 05, 2016 at 01:32:57PM +0800, Lu Baolu wrote: > + gpiod = gpiod_get(dev, "gpio", GPIOD_ASIS); > + if (IS_ERR(gpiod)) > + return ERR_PTR(-ENODEV); > + config->gpio = desc_to_gpio(gpiod); > + config->enable_high = device_property_read_bool(dev, > +

Re: [PATCH 1/2] dmaengine: hsu: Export hsu_dma_get_status()

2016-05-13 Thread Andy Shevchenko
On Fri, 2016-05-13 at 16:15 +0800, Chuah Kim Tatt wrote: > From: "Chuah, Kim Tatt" > > To allow other code to safely read DMA Channel Status Register (where > the register attribute for Channel Error, Descriptor Time Out & > Descriptor Done fields are read-clear), export hsu_dma_get_status(). > h

Re: [PATCH v5 3/6] regulator: rk808: Add regulator driver for RK818

2016-05-13 Thread Mark Brown
On Tue, May 10, 2016 at 03:18:57PM +0200, Wadim Egorov wrote: > Add support for the rk818 regulator. The regulator module consists > of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to > power OTG and HDMI5V. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH] ACPI: Add configuration item to configure ACPICA error logs out

2016-05-13 Thread Rafael J. Wysocki
On Fri, May 13, 2016 at 4:26 AM, Lv Zheng wrote: > Sometimes, we need to disable ACPICA error logs to leave only ACPICA > debug logs enabled for debugging purpose. This is useful when ACPICA error > logs become a flood. > > Reference: https://bugzilla.kernel.org/show_bug.cgi?id=114201 > Signed-off

[ANNOUNCE] 4.6-rc7-rt1

2016-05-13 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.6-rc7-rt1 patch set. I tested it on my AMD A10, 64bit. Had a few runs on ARM, nothing exploded so far. Changes since v4.4.9-rt17: - rebase to v4.6-rc7 - RWLOCKS and SPINLOCKS used to be cacheline aligned on RT. Now there are no more which is t

Re: [PATCH V7 08/11] pci, acpi: Support for ACPI based generic PCI host controller

2016-05-13 Thread Jayachandran C
On Tue, May 10, 2016 at 8:49 PM, Tomasz Nowicki wrote: > This patch is going to implement generic PCI host controller for > ACPI world, similar to what pci-host-generic.c driver does for DT world. > > All such drivers, which we have seen so far, were implemented within > arch/ directory since they

Re: [PATCH 2/2] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-05-13 Thread Andy Shevchenko
On Fri, 2016-05-13 at 18:15 +0800, kbuild test robot wrote: > Hi, > > [auto build test ERROR on next-20160513] > [cannot apply to tty/tty-testing usb/usb-testing v4.6-rc7 v4.6-rc6 > v4.6-rc5 v4.6-rc7] > [if your patch is applied to the wrong git tree, please drop us a note >

Re: mm: pages are not freed from lru_add_pvecs after process termination

2016-05-13 Thread Vlastimil Babka
On 05/11/2016 09:53 AM, Michal Hocko wrote: On Fri 06-05-16 09:04:34, Dave Hansen wrote: On 05/06/2016 08:10 AM, Odzioba, Lukasz wrote: On Thu 05-05-16 09:21:00, Michal Hocko wrote: Or maybe the async nature of flushing turns out to be just impractical and unreliable and we will end up skippin

Re: [PATCH V7 08/11] pci, acpi: Support for ACPI based generic PCI host controller

2016-05-13 Thread Rafael J. Wysocki
On Fri, May 13, 2016 at 1:25 PM, Jayachandran C wrote: > On Tue, May 10, 2016 at 8:49 PM, Tomasz Nowicki wrote: >> This patch is going to implement generic PCI host controller for >> ACPI world, similar to what pci-host-generic.c driver does for DT world. >> >> All such drivers, which we have see

[GIT PULL for v4.6] media fix

2016-05-13 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.6-6 For a revert patch fixing a breakage that caused an OOPS on all VB2-based DVB drivers. We have already a proper fix, but it sounds safer to keep it being tested for a while and not

Re: [lkp] [zsmalloc] 44f43e99fe: will-it-scale.scalability +15.0% improvement

2016-05-13 Thread Sergey Senozhatsky
uot; > netconsole_port: > category: benchmark > perf-profile: > freq: 800 > will-it-scale: > test: write1 > queue: bisect > testbox: xps > tbox_group: xps > kconfig: x86_64-rhel > enqueue_time: 2016-05-13 00:36:18.600897786 +08:00 > compiler: gcc-4.9 > rootfs

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-13 Thread Baolin Wang
Hi Felipe, On 13 May 2016 at 18:40, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> Currently on some platforms, the gadget device can be power off to >> save power when the Vbus is off, which means no cable plugging in >> now. In this situation we should defer starting the gadget until t

Re: [RESEND PATCH] mmc: sdhci: fix wakeup configuration

2016-05-13 Thread Adrian Hunter
+ cc some Marvell people because they added this code On 13/05/16 12:27, Ludovic Desroches wrote: > Activating wakeup event is not enough to get a wakeup signal. The > corresponding events have to be enabled in the Interrupt Status Enable > Register too. That seems to follow the specification. D

Re: [PATCH V7 08/11] pci, acpi: Support for ACPI based generic PCI host controller

2016-05-13 Thread Tomasz Nowicki
On 13.05.2016 13:31, Rafael J. Wysocki wrote: On Fri, May 13, 2016 at 1:25 PM, Jayachandran C wrote: On Tue, May 10, 2016 at 8:49 PM, Tomasz Nowicki wrote: This patch is going to implement generic PCI host controller for ACPI world, similar to what pci-host-generic.c driver does for DT worl

Re: [PATCH] ASoC: atmel_ssc_dai: note buggy I2S support when the codec masters LRCLK

2016-05-13 Thread Mark Brown
On Wed, Apr 27, 2016 at 11:29:53PM +0200, Peter Rosin wrote: > On 2016-04-27 18:23, Mark Brown wrote: > > Almost every programmable serial port does this, it's a very common > > issue which is why we always try to go for exact clocking where we can - > > it greatly improves the interoperability fo

Re: [PATCH] efifb: Don't show the mapping VA

2016-05-13 Thread Tomi Valkeinen
On 12/05/16 02:57, Andy Lutomirski wrote: > The framebuffer mapping virtual address leaks information about the > kernel memory layout. Stop logging it. > > Cc: Peter Jones > Cc: Jean-Christophe Plagniol-Villard > Cc: Tomi Valkeinen > Cc: linux-fb...@vger.kernel.org > Cc: linux-kernel@vger.ker

Re: [PATCH V2 0/2] drivers: i2c: qup: Some misc fixes

2016-05-13 Thread Wolfram Sang
On Fri, May 06, 2016 at 05:01:12PM +0530, Sricharan R wrote: > One for fixing the bug with CONFIG_DEBUG_SG enabled and another > to suspend the transfer for all errors instead of just for nack. You haven't stated what was changed in V2. signature.asc Description: PGP signature

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Michal Hocko
On Fri 13-05-16 12:18:54, Mason wrote: > On 13/05/2016 11:52, Michal Hocko wrote: > > On Fri 13-05-16 10:44:30, Mason wrote: > >> On 13/05/2016 10:04, Michal Hocko wrote: > >> > >>> On Tue 10-05-16 13:56:30, Sebastian Frias wrote: > >>> [...] > NOTE: I understand that the overcommit mode can b

Re: [PATCH v3 0/7] ARM/ASoC: OMAP3: Fix McBSP2/3 sidetone support

2016-05-13 Thread Peter Ujfalusi
On 05/12/16 19:42, Tony Lindgren wrote: > * Peter Ujfalusi [160511 01:46]: >> Tony, Paul, >> >> On 04/29/16 13:53, Peter Ujfalusi wrote: >>> Hi, >>> >>> Based on the ongoing discussion on v2 (ARM: OMAP3: Fix McBSP2/3 hwmod setup >>> for >>> sidetone) I have dropped the removal of the sidetone hwm

Re: [PATCH V2 1/2] drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled

2016-05-13 Thread Wolfram Sang
On Fri, May 06, 2016 at 05:01:13PM +0530, Sricharan R wrote: > With CONFIG_DEBUG_SG is enabled and when dma mode is used, below dump is > seen, > > [ cut here ] > kernel BUG at include/linux/scatterlist.h:140! > Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > Modules

Re: [PATCH 06/10] perf probe: Check if dwarf_getlocations() is available

2016-05-13 Thread Arnaldo Carvalho de Melo
Em Fri, May 13, 2016 at 11:38:52AM +0900, Masami Hiramatsu escreveu: > On Thu, 12 May 2016 17:03:51 -0300 > Arnaldo Carvalho de Melo wrote: > > > From: Arnaldo Carvalho de Melo > > > > If not, tell the user that: > > > > config/Makefile:273: Old libdw.h, finding variables at given 'perf prob

Re: [PATCH V2 2/2] drivers: i2c: qup: Fix error handling

2016-05-13 Thread Wolfram Sang
On Fri, May 06, 2016 at 05:01:14PM +0530, Sricharan R wrote: > Among the bus errors reported from the QUP_MASTER_STATUS register > only NACK is considered and transfer gets suspended, while > other errors are ignored. Correct this and suspend the transfer > for other errors as well. This avoids unn

Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle

2016-05-13 Thread Arnaldo Carvalho de Melo
Em Fri, May 13, 2016 at 03:01:01PM +0900, Namhyung Kim escreveu: > The commit 140aeadc1fb5 ("perf stat: Abstract stat metrics printing") > changed way to print shadow metrics, but it missed to update the width > of stalled backend cycles event to 7.2% like others. This resulted in > misaligned out

Re: [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS

2016-05-13 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, May 10, 2016 at 1:56 PM, Mateusz Guzik wrote: > > This fixes 731e33e39a5b95ad770 "Remove FSBASE/GSBASE < 4G optimization" > > > > Signed-off-by: Mateusz Guzik > > --- > > arch/x86/kernel/process_64.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --g

Re: [PATCH V2 2/2] drivers: i2c: qup: Fix error handling

2016-05-13 Thread Wolfram Sang
On Fri, May 13, 2016 at 01:48:23PM +0200, Wolfram Sang wrote: > On Fri, May 06, 2016 at 05:01:14PM +0530, Sricharan R wrote: > > Among the bus errors reported from the QUP_MASTER_STATUS register > > only NACK is considered and transfer gets suspended, while > > other errors are ignored. Correct thi

[tip:x86/asm] x86/arch_prctl/64: Restore accidentally removed put_cpu() in ARCH_SET_GS

2016-05-13 Thread tip-bot for Mateusz Guzik
Commit-ID: 4afd0565552c87f23834db9121dd9cf6955d0b43 Gitweb: http://git.kernel.org/tip/4afd0565552c87f23834db9121dd9cf6955d0b43 Author: Mateusz Guzik AuthorDate: Tue, 10 May 2016 22:56:43 +0200 Committer: Ingo Molnar CommitDate: Fri, 13 May 2016 13:50:15 +0200 x86/arch_prctl/64: Restore

<    1   2   3   4   5   6   >