[PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Baolin Wang
For some mobile devices with strict power management, we also want to suspend the host when the slave was detached for power saving. Thus adding the host suspend/resume functions to support this requirement. We will issue the pm_suspend_ignore_children() for the dwc3 device, since we will resume t

Re: Linux 4.9.39

2017-07-21 Thread Greg KH
diff --git a/Makefile b/Makefile index ad0c045d36cd..a872ece51ee5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 38 +SUBLEVEL = 39 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h index d2315

Re: Linux 4.4.78

2017-07-21 Thread Greg KH
diff --git a/Makefile b/Makefile index bf49a61d02e2..ac77ae8ee0b1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 77 +SUBLEVEL = 78 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h index d23

Linux 4.4.78

2017-07-21 Thread Greg KH
I'm announcing the release of the 4.4.78 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.39

2017-07-21 Thread Greg KH
I'm announcing the release of the 4.9.39 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 3.18.62

2017-07-21 Thread Greg KH
I'm announcing the release of the 3.18.62 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.18.62

2017-07-21 Thread Greg KH
diff --git a/Makefile b/Makefile index e345bd2e7576..769add3724a7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 61 +SUBLEVEL = 62 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/parisc/include/asm/dma-mapping.h b/arch/parisc/include/asm/dm

Re: [PATCH v2] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-07-21 Thread Aneesh Kumar K.V
Victor Aoqui writes: > Implemented default hugepage size verification (default_hugepagesz=) > in order to allow allocation of defined number of pages (hugepages=) > only for supported hugepage sizes. > > Signed-off-by: Victor Aoqui > --- > v2: > > - Renamed default_hugepage_setup_sz function to

Re: [PATCH V2 2/3] iommu/rockchip: add multi irqs support

2017-07-21 Thread Heiko Stuebner
Am Freitag, 21. Juli 2017, 14:27:09 CEST schrieb Simon Xue: > From: Simon > > RK3368 vpu mmu have two irqs, this patch support multi irqs > > Signed-off-by: Simon > --- > changes since V1: > - use devm_kcalloc instead of devm_kzalloc when alloc irq array > > drivers/iommu/rockchip-iommu.c |

Re: [PATCH v2 01/10] clk: sunxi-ng: Add interface to query or configure MMC timing modes.

2017-07-21 Thread Maxime Ripard
Hi, On Thu, Jul 20, 2017 at 11:44:43AM +0800, Chen-Yu Tsai wrote: > Starting with the A83T SoC, Allwinner introduced a new timing mode for > its MMC clocks. The new mode changes how the MMC controller sample and > output clocks are delayed to match chip and board specifics. There are > two control

Re: [PATCH v2 02/10] clk: sunxi-ng: Add MP_MMC clocks that support MMC timing modes switching

2017-07-21 Thread Maxime Ripard
On Thu, Jul 20, 2017 at 11:44:44AM +0800, Chen-Yu Tsai wrote: > +/* Special class of M-P clock that supports MMC timing modes */ > + > +#define SUNXI_CCU_MP_MMC_WITH_MUX_GATE(_struct, _name, _parents, _reg, > \ > +_mshift, _mwidth,\ > +

Re: [PATCH v2 04/10] mmc: sunxi: Support controllers that can use both old and new timings

2017-07-21 Thread Maxime Ripard
On Thu, Jul 20, 2017 at 11:44:46AM +0800, Chen-Yu Tsai wrote: > On the SoCs that introduced the new timing mode for MMC controllers, > both the old (where the clock delays are set in the CCU) and new > (where the clock delays are set in the MMC controller) timing modes > are available, and we have

Re: [PATCH v2 05/10] mmc: sunxi: Support MMC DDR52 transfer mode with new timing mode

2017-07-21 Thread Maxime Ripard
On Thu, Jul 20, 2017 at 11:44:47AM +0800, Chen-Yu Tsai wrote: > The MMC controller can support DDR52 transfers under the new timing > mode. According to the BSP kernel, the module clock has to be double > the card clock, regardless of the bus width. The default timings in > the hardware can be used

Re: [PATCH v2 06/10] mmc: sunxi: Add support for A83T eMMC (MMC2)

2017-07-21 Thread Maxime Ripard
On Thu, Jul 20, 2017 at 11:44:48AM +0800, Chen-Yu Tsai wrote: > The third MMC controller (MMC2) on the Allwinner A83T SoC is slightly > different. It supports a wider 8-bit bus, has a dedicated controllable > reset pin for eMMC, and a "new timing mode" which is supposed to deliver > better signals

Re: [PATCH] dmaengine: ioatdma: Fix error handling path in 'ioat_dma_self_test()'

2017-07-21 Thread walter harms
Am 20.07.2017 18:56, schrieb Dave Jiang: > > > On 07/20/2017 12:24 AM, walter harms wrote: >> >> >> Am 20.07.2017 00:16, schrieb Christophe JAILLET: >>> If the 'memcmp' fails, free allocated resources as done in all other >>> error handling paths. >>> >>> Signed-off-by: Christophe JAILLET >>>

Re: [PATCH v2 01/10] clk: sunxi-ng: Add interface to query or configure MMC timing modes.

2017-07-21 Thread Chen-Yu Tsai
On Fri, Jul 21, 2017 at 3:18 PM, Maxime Ripard wrote: > Hi, > > On Thu, Jul 20, 2017 at 11:44:43AM +0800, Chen-Yu Tsai wrote: >> Starting with the A83T SoC, Allwinner introduced a new timing mode for >> its MMC clocks. The new mode changes how the MMC controller sample and >> output clocks are del

Re: [PATCH] dmaengine: ioatdma: Fix error handling path in 'ioat_dma_self_test()'

2017-07-21 Thread Julia Lawall
On Fri, 21 Jul 2017, walter harms wrote: > > > Am 20.07.2017 18:56, schrieb Dave Jiang: > > > > > > On 07/20/2017 12:24 AM, walter harms wrote: > >> > >> > >> Am 20.07.2017 00:16, schrieb Christophe JAILLET: > >>> If the 'memcmp' fails, free allocated resources as done in all other > >>> error h

Re: linux-next: build failure after merge of the drm-misc tree

2017-07-21 Thread Daniel Vetter
Hi Greg&Hans, How are we going to handle this now? The refactor is deeply burried in drm-misc, I guess you could cherry-pick the relevant patches over. But that'll probably lead to more conflicts because git will get confused. Or you could just delete the set_busid hook in -staging, which renders

Re: [linux-sunxi] [PATCH 1/3] arm64: allwinner: a64: enable USB host controller for BPi M64

2017-07-21 Thread Chen-Yu Tsai
On Fri, Jul 21, 2017 at 7:07 AM, Icenowy Zheng wrote: > Banana Pi M64 connects the USB host-only controller on A64 SoC to a USB > hub, which provided the two USB Type-A ports on the board. > > Enable the USB host controller. > > The OTG function of the Micro-USB port needs the drivevbus function o

Re: [PATCH] xen: selfballoon: remove unnecessary static in frontswap_selfshrink()

2017-07-21 Thread Juergen Gross
On 04/07/17 20:34, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variables last_frontswap_pages and > tgt_frontswap_pages. Such variables are initialized before being used, > on every execution path throughout the function. The statics have no > benefit and, removing them reduce t

RE: [PATCH V2] arm64: traps: disable irq in die()

2017-07-21 Thread 周侨
Hi Maintainers, Could you please help to take a look and give some comments? Thanks in advance. Best Regards Qiao -Original Message- From: Zhou Qiao Sent: Friday, July 07, 2017 5:30 PM To: catalin.mari...@arm.com; will.dea...@arm.com; mark.rutl...@arm.com; suzuki.poul...@arm.com; mi...@

Re: [PATCH v3 00/23] Qualcomm 8x16 Camera Subsystem driver

2017-07-21 Thread Todor Tomov
Hello Hans, On 19.07.2017 13:54, Hans Verkuil wrote: > On 17/07/17 12:33, Todor Tomov wrote: >> This patchset adds basic support for the Qualcomm Camera Subsystem found >> on Qualcomm MSM8916 and APQ8016 processors. >> >> The driver implements V4L2, Media controller and V4L2 subdev interfaces. >>

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: a64: enable AXP803 for Banana Pi M64

2017-07-21 Thread Chen-Yu Tsai
On Fri, Jul 21, 2017 at 7:07 AM, Icenowy Zheng wrote: > Banana Pi M64 board uses an AXP803 PMIC. > > Enable the PMIC and its regulators. > > As we have now proper regulators support, missing or dummy regulators > are changed to the correct ones. > > Signed-off-by: Icenowy Zheng > --- > .../boot/

[PATCHv2 1/2] mailbox: PCC: Move the MAX_PCC_SUBSPACES definition to header file

2017-07-21 Thread George Cherian
Move the MAX_PCC_SUBSPACES definition to acpi/pcc.h file. In preparation to add subspace id support for cppc_acpi driver. Signed-off-by: George Cherian --- drivers/mailbox/pcc.c | 1 - include/acpi/pcc.h| 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/pcc.c

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: a64: enable AXP803 for Banana Pi M64

2017-07-21 Thread Icenowy Zheng
于 2017年7月21日 GMT+08:00 下午3:42:07, Chen-Yu Tsai 写到: >On Fri, Jul 21, 2017 at 7:07 AM, Icenowy Zheng wrote: >> Banana Pi M64 board uses an AXP803 PMIC. >> >> Enable the PMIC and its regulators. >> >> As we have now proper regulators support, missing or dummy regulators >> are changed to the corre

[PATCHv2 0/2] Make cppc acpi driver aware of pcc subspace ids

2017-07-21 Thread George Cherian
The current cppc acpi driver works with only one pcc subspace id. It maintains and registers only one pcc channel even if the acpi table has different pcc subspace ids. As per ACPI 6.2 spec all PCC registers, for all processors in the same performance domain (as defined by _PSD), must be defin

Re: [PATCH] perf tool sort: Use default sort if evlist is empty

2017-07-21 Thread Jiri Olsa
On Thu, Jul 20, 2017 at 10:11:57PM -0700, David Carrillo-Cisneros wrote: > Fixes bug noted by Jiri in https://lkml.org/lkml/2017/6/13/755 and caused > by commit d49dadea7862 ("perf tools: Make 'trace' or 'trace_fields' sort >key default for tracepoint events") > not taking into account that evl

[PATCHv2 2/2] ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids

2017-07-21 Thread George Cherian
Based on ACPI 6.2 Section 8.4.7.1.9 If the PCC register space is used, all PCC registers, for all processors in the same performance domain (as defined by _PSD), must be defined to be in the same subspace. Based on Section 14.1 of ACPI specification, it is possible to have a maximum of 256 PCC subs

Re: [PATCH 2/4] gpio: davinci: Handle the return value of davinci_gpio_irq_setup function

2017-07-21 Thread Johan Hovold
On Thu, Jul 20, 2017 at 04:34:42PM -0500, Grygorii Strashko wrote: > > > On 07/20/2017 05:05 AM, Johan Hovold wrote: > > On Thu, Jul 20, 2017 at 03:32:27PM +0530, Keerthy wrote: > >> On Thursday 20 July 2017 03:20 PM, Johan Hovold wrote: > >>> On Thu, Jul 20, 2017 at 02:40:37PM +0530, Keerthy wro

Re: [PATCH 0/5] perf script python: Provide perf_sample dict to all handlers

2017-07-21 Thread Jiri Olsa
On Thu, Jul 20, 2017 at 07:01:13PM -0700, Arun Kalyanasundaram wrote: > The process_event python hook receives a dict with most perf_sample > entries. hi, was there any change to the rfc post? thanks, jirka > > Other handlers (e.g. trace_unhandled, python_process_tracepoint) predate > the intro

[PATCH] bluetooth: document config options

2017-07-21 Thread Pavel Machek
Kernel config options should include useful help text; I had to look up the terms on wikipedia. Signed-off-by: Pavel Machek diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index 68f951b..133c8a6 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig @@ -45,6 +45,8 @@ config B

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: a64: enable AXP803 for Banana Pi M64

2017-07-21 Thread Chen-Yu Tsai
On Fri, Jul 21, 2017 at 3:44 PM, Icenowy Zheng wrote: > > > 于 2017年7月21日 GMT+08:00 下午3:42:07, Chen-Yu Tsai 写到: >>On Fri, Jul 21, 2017 at 7:07 AM, Icenowy Zheng wrote: >>> Banana Pi M64 board uses an AXP803 PMIC. >>> >>> Enable the PMIC and its regulators. >>> >>> As we have now proper regulators

Re: [PATCH v6 0/2] x86: Implement fast refcount overflow protection

2017-07-21 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Jul 20, 2017 at 10:15 AM, Kees Cook wrote: > > On Thu, Jul 20, 2017 at 2:11 AM, Ingo Molnar wrote: > >> Could you please also create a tabulated quick-comparison of the three > >> variants, > >> of all key properties, about behavior, feature and tradeoff differenc

Re: [PATCH v3 00/23] Qualcomm 8x16 Camera Subsystem driver

2017-07-21 Thread Todor Tomov
Hello Sakari, Thank you for the review! On 20.07.2017 18:25, Sakari Ailus wrote: > Hi Todor, > > On Mon, Jul 17, 2017 at 01:33:26PM +0300, Todor Tomov wrote: >> This patchset adds basic support for the Qualcomm Camera Subsystem found >> on Qualcomm MSM8916 and APQ8016 processors. >> >> The drive

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-21 Thread Vinod Koul
On Thu, Jul 06, 2017 at 02:25:39PM +0200, Pierre-Yves MORDRET wrote: > +config STM32_MDMA > + bool "STMicroelectronics STM32 master dma support" > + depends on ARCH_STM32 || COMPILE_TEST ^^^ why multiple spaces > +static enum dma_slave_buswidth stm32_mdma_get_

Re: [PATCH V2 2/3] iommu/rockchip: add multi irqs support

2017-07-21 Thread xxm
Hi Heiko, On 07/21/2017 03:07 PM, Heiko Stuebner wrote: Am Freitag, 21. Juli 2017, 14:27:09 CEST schrieb Simon Xue: From: Simon RK3368 vpu mmu have two irqs, this patch support multi irqs Signed-off-by: Simon --- changes since V1: - use devm_kcalloc instead of devm_kzalloc when alloc irq

Re: [PATCH] dmaengine: ioatdma: Fix error handling path in 'ioat_dma_self_test()'

2017-07-21 Thread Vinod Koul
On Thu, Jul 20, 2017 at 09:56:45AM -0700, Dave Jiang wrote: > > > On 07/20/2017 12:24 AM, walter harms wrote: > > > > > > Am 20.07.2017 00:16, schrieb Christophe JAILLET: > >> If the 'memcmp' fails, free allocated resources as done in all other > >> error handling paths. > >> > >> Signed-off-by

Re: [PATCH v3 22/23] camss: Use optimal clock frequency rates

2017-07-21 Thread Todor Tomov
Hello, On 19.07.2017 18:59, kbuild test robot wrote: > Hi Todor, > > [auto build test ERROR on linuxtv-media/master] > [also build test ERROR on v4.13-rc1] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0d

Re: [PATCH] PM / Domains: Convert to using %pOF instead of full_name

2017-07-21 Thread Ulf Hansson
On 18 July 2017 at 23:42, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: "Rafael J. Wysocki" > Cc: Kevin

[PATCH v3] clk: fractional-divider: fix up the fractional clk's jitter

2017-07-21 Thread Elaine Zhang
Fractional dividers may have special requirements concerning numerator and denominator selection that differ from just getting the best approximation. For example on Rockchip socs the denominator must be at least 20 times larger than the numerator to generate precise clock frequencies. Therefore

Re: [PATCH v3 3/8] phy: qcom-qmp: Fix phy pipe clock name

2017-07-21 Thread Vivek Gautam
Hi, On 07/20/2017 11:04 AM, Varadarajan Narayanan wrote: Presently, the phy pipe clock's name is assumed to be either usb3_phy_pipe_clk_src or pcie_XX_pipe_clk_src (where XX is the phy lane's number). However, this will not work if an SoC has more than one instance of the phy. Hence, instead of

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver (fwd)

2017-07-21 Thread Vinod Koul
On Sat, Jul 08, 2017 at 08:14:51AM +0200, Julia Lawall wrote: > Please check on the comparison on line 1489. > > julia > > -- Forwarded message -- > Date: Sat, 8 Jul 2017 10:13:09 +0800 > From: kbuild test robot > To: kbu...@01.org > Cc: Julia Lawall > Subject: Re: [PATCH v2 2/4

Re: [PATCH 03/12] ARM: normalize clk API for older platforms

2017-07-21 Thread Sekhar Nori
Hi Arnd, On Thursday 20 July 2017 09:20 PM, Arnd Bergmann wrote: > Six ARM platforms still provide their own variant of the clk API > rather than using the generic COMMON_CLK API. This generally works, > but it causes some link errors with drivers using the clk_set_rate, > clk_get_parent, clk_set_

Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-07-21 Thread Heiko Stuebner
Am Freitag, 21. Juli 2017, 10:00:29 CEST schrieb Jianhong Chen: > > 在 2017/6/29 18:29, Heiko Stübner 写道: > > > Hi, > > > > Am Mittwoch, 14. Juni 2017, 20:11:06 CEST schrieb Jianhong Chen: > >> 在 2017/6/9 20:17, Heiko Stuebner 写道: > >>> Am Freitag, 9. Juni 2017, 13:37:26 CEST schrieb Linus Walleij

Re: [PATCH 03/12] ARM: normalize clk API for older platforms

2017-07-21 Thread Arnd Bergmann
On Fri, Jul 21, 2017 at 10:05 AM, Sekhar Nori wrote: >> diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c >> index f5dce9b4e617..89586779526c 100644 >> --- a/arch/arm/mach-davinci/clock.c >> +++ b/arch/arm/mach-davinci/clock.c >> @@ -218,6 +218,12 @@ int clk_set_parent(st

Re: [PATCH V2] arm64: traps: disable irq in die()

2017-07-21 Thread Will Deacon
On Fri, Jul 21, 2017 at 07:38:42AM +, Zhou Qiao(周侨) wrote: > Could you please help to take a look and give some comments? Thanks in > advance. I've queued this on the arm64 for-next/fixes/core branch. Will

[PATCH v2] xtensa: remove wrapper header for asm/device.h

2017-07-21 Thread Tobias Klauser
xtensa's asm/device.h is a verbatim copy of asm-generic/device.h and does not add any arch specific extensions. Thus, use the asm-generic header directly. Acked-by: Max Filippov Signed-off-by: Tobias Klauser --- v2: rebased after Kbuild update, added Acked-by by Max arch/xtensa/include/asm/Kbu

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-07-21 Thread Ulf Hansson
[...] > >> What happens when a power domain gets powered off and then on. Is the >> performance state restored? Please elaborate a bit on this. > > Can this happen while the genpd is still in use? If not then we > wouldn't have a problem here as the users of it would have revoked > their constrain

Re: [PATCH] KVM: nVMX: Fix exception injection

2017-07-21 Thread Wanpeng Li
Hi Jim, 2017-07-21 3:16 GMT+08:00 Jim Mattson : > On Wed, Jul 19, 2017 at 7:31 PM, Wanpeng Li wrote: >> Hi Jim, >> 2017-07-19 2:47 GMT+08:00 Jim Mattson : >>> Why do we expect the VM_EXIT_INTR_INFO and EXIT_QUALIFICATION fields >>> of the VMCS to have the correct values for the injected exception?

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-21 Thread Petr Mladek
On Thu 2017-07-20 11:48:41, Joe Lawrence wrote: > On 07/20/2017 10:45 AM, Miroslav Benes wrote: > > > > + * > > + * Note: allocates @new_size space for shadow variable data and copies > > + * @new_size bytes from @new_data into the shadow varaible's own > > @new_data > > + * s

[PATCH] xtensa: remove wrapper header for asm/param.h

2017-07-21 Thread Tobias Klauser
xtensa's asm/device.h is a verbatim copy of asm-generic/device.h and does not add any arch specific extensions. Thus, use the asm-generic header directly. Signed-off-by: Tobias Klauser --- arch/xtensa/include/asm/Kbuild | 1 + arch/xtensa/include/asm/param.h | 18 -- 2 files ch

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Manu Gautam
Hi, On 7/21/2017 12:28 PM, Baolin Wang wrote: > For some mobile devices with strict power management, we also want to > suspend the host when the slave was detached for power saving. Thus > adding the host suspend/resume functions to support this requirement. USB/PM core already takes care of s

[PATCH 0/3] usb: xhci: Add debug capability support in xhci

2017-07-21 Thread Lu Baolu
Hi, This series is for xHCI debug capability (spec section 7.6.8) support in the xHCI driver. xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and p

[PATCH 1/3] usb: xhci: Make some static functions global

2017-07-21 Thread Lu Baolu
This patch makes some static functions global to avoid duplications in different files. These functions can be used in the implementation of xHCI debug capability. There is no functional change. Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-mem.c | 94 ++-

bluetooth in v4.13-rc1: lock init missing somewhere?

2017-07-21 Thread Pavel Machek
Hi! Is bluetooth expected to work on n900? It looks like lock init is missing somewhere: [ 402.901031] of_get_named_gpiod_flags: parsed 'bluetooth-wakeup-gpios' property of node '/ocp@6800/serial@4806c000/bluetooth[0]' - status (0) [ 403.042022] BUG: rwlock bad magic on CPU#0, kworker/u3:0

[PATCH 2/3] usb: xhci: Add DbC support in xHCI driver

2017-07-21 Thread Lu Baolu
xHCI compatible USB host controllers(i.e. super-speed USB3 controllers) can be implemented with the Debug Capability(DbC). It presents a debug device which is fully compliant with the USB framework and provides the equivalent of a very high performance full-duplex serial link. The debug capability

[PATCH 3/3] usb: doc: Update document for USB3 debug port usage

2017-07-21 Thread Lu Baolu
Update Documentation/driver-api/usb/usb3-debug-port.rst. This update includes the guide for using xHCI debug capability based TTY serial link. Signed-off-by: Lu Baolu --- Documentation/driver-api/usb/usb3-debug-port.rst | 68 1 file changed, 68 insertions(+) diff --git

Re: [RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-21 Thread Stephan Müller
Am Freitag, 21. Juli 2017, 05:08:47 CEST schrieb Theodore Ts'o: Hi Theodore, > On Thu, Jul 20, 2017 at 09:00:02PM +0200, Stephan Müller wrote: > > I concur with your rationale where de-facto the correlation is effect is > > diminished and eliminated with the fast_pool and the minimal entropy > >

[PATCH V2 2/4] net-next: dsa: add 802.3 protocol offset to struct dsa_device_ops

2017-07-21 Thread John Crispin
Adding these 2 new fields allows a DSA device to indicate the offsets of the 802.3 header caused by the insertion of the switches tag. Signed-off-by: John Crispin --- include/net/dsa.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/net/dsa.h b/include/net/dsa.h index a4c0d52abc

[PATCH v8 01/13] iommu/amd: Detect pre enabled translation

2017-07-21 Thread Baoquan He
Add functions to check whether translation is already enabled in IOMMU. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 24 drivers/iommu/amd_iommu_proto.h | 1 + drivers/iommu/amd_iommu_types.h | 4 3 files changed, 29 insertions(+) diff --git a/

[PATCH v8 02/13] iommu/amd: add several helper functions

2017-07-21 Thread Baoquan He
Move single iommu enabling codes into a wrapper function early_enable_iommu(). This can make later kdump change easier. And also add iommu_disable_command_buffer and iommu_disable_event_buffer for later usage. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 42 +++

[PATCH V2 3/4] net-next: dsa: fix flow dissection

2017-07-21 Thread John Crispin
RPS and probably other kernel features are currently broken on some if not all DSA devices. The root cause of this is that skb_hash will call the flow_dissector. At this point the skb still contains the magic switch header and the skb->protocol field is not set up to the correct 802.3 value yet. By

[PATCH v8 06/13] iommu/amd: copy old trans table from old kernel

2017-07-21 Thread Baoquan He
Here several things need be done: - If iommu is pre-enabled in a normal kernel, just disable it and print warning. - If failed to copy dev table of old kernel, continue to proceed as it does in normal kernel. - Disable and Re-enable event/cmd buffer, install the copied DTE table to reg, an

[PATCH v8 05/13] iommu/amd: Add function copy_dev_tables()

2017-07-21 Thread Baoquan He
Add function copy_dev_tables to copy the old DEV table entries of the panicked kernel to the new allocated DEV table. Since all iommus share the same DTE table the copy only need be done one time. Besides, we also need to: - Check whether all IOMMUs actually use the same device table with the sa

[PATCH v8 12/13] iommu/amd: Clear out the GV flag when handle deferred domain attach

2017-07-21 Thread Baoquan He
When handle deferred domain attach, we need check if the domain is v2. If not, should try to clear out the GV flag which could be copied from the old device table entry. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(

[PATCH v8 10/13] iommu/amd: Allocate memory below 4G for dev table if translation pre-enabled

2017-07-21 Thread Baoquan He
AMD pointed out it's unsafe to update the device-table while iommu is enabled. It turns out that device-table pointer update is split up into two 32bit writes in the IOMMU hardware. So updating it while the IOMMU is enabled could have some nasty side effects. The only way to work around this is to

[PATCH v8 11/13] iommu/amd: Don't copy GCR3 table root pointer

2017-07-21 Thread Baoquan He
When iommu is pre_enabled in kdump kernel, if a device is set up with guest translations (DTE.GV=1), then don't copy GCR3 table root pointer but move the device over to an empty guest-cr3 table and handle the faults in the PPR log (which answer them with INVALID). After all these PPR faults are rec

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-21 Thread Miroslav Benes
On Thu, 20 Jul 2017, Joe Lawrence wrote: > On 07/20/2017 10:45 AM, Miroslav Benes wrote: > > > > + * > > + * Note: allocates @new_size space for shadow variable data and copies > > + * @new_size bytes from @new_data into the shadow varaible's own > > @new_data > > + * space.

[PATCH v8 13/13] iommu/amd: Disable iommu only if amd_iommu=off is specified

2017-07-21 Thread Baoquan He
From: root It's ok to disable iommu in normal kernel. While there's no need to disable it in kdump kernel after the on-flight dma issue has heen fixed. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iom

[PATCH v8 08/13] iommu: Add is_attach_deferred call-back to iommu-ops

2017-07-21 Thread Baoquan He
This new call-back will be used to check if the domain attach need be deferred for now. If yes, the domain attach/detach will return directly. Signed-off-by: Baoquan He --- drivers/iommu/iommu.c | 8 include/linux/iommu.h | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/iom

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Baolin Wang
On 21 July 2017 at 16:45, Manu Gautam wrote: > Hi, > > > On 7/21/2017 12:28 PM, Baolin Wang wrote: >> For some mobile devices with strict power management, we also want to >> suspend the host when the slave was detached for power saving. Thus >> adding the host suspend/resume functions to support

[PATCH v8 09/13] iommu/amd: Use is_attach_deferred call-back

2017-07-21 Thread Baoquan He
Implement call-back is_attach_deferred and use it to defer the domain attach from iommu driver init to device driver init when iommu is pre-enabled in kdump kernel. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(

[PATCH v8 07/13] iommu/amd: Do sanity check for irq remap of old dev table entry

2017-07-21 Thread Baoquan He
Firstly split the dev table entry copy into address translation part and irq remapping part. Because these two parts could be enabled independently. Secondly check if IntCtl and IntTabLen are 10b and 1000b if they are set. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 5 -

[PATCH v8 00/13] Fix the on-flight DMA issue on system with amd iommu

2017-07-21 Thread Baoquan He
When kernel panicked and jump into the kdump kernel, DMA started by the 1st kernel is not stopped, this is called on-flight DMA. In the current code it will disable iommu and build new translation table and attach device to it. This will cause: 1. IO_PAGE_FAULT warning message can be seen. 2. tr

[PATCH v8 03/13] Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel"

2017-07-21 Thread Baoquan He
This reverts commit 54bd63570484167cb13edf81e31fff107b879981. We still need the IO_PAGE_FAULT message to warn error after the issue of on-flight dma in kdump kernel is fixed. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 3 +-- drivers/iommu/amd_iommu_init.c | 9 - dr

[PATCH v8 04/13] iommu/amd: Define bit fields for DTE particularly

2017-07-21 Thread Baoquan He
In AMD-Vi spec several bits of IO PTE fields and DTE fields are similar so that both of them can share the same MACRO definition. However defining them respectively can make code more read-able. Do it now. Signed-off-by: Baoquan He --- drivers/iommu/amd_iommu.c | 8 drivers/iommu

[PATCH V2 1/4] net-next: dsa: move struct dsa_device_ops to the global header file

2017-07-21 Thread John Crispin
We need to access this struct from within the flow_dissector to fix dissection for packets coming in on DSA devices. Signed-off-by: John Crispin --- include/net/dsa.h | 7 +++ net/dsa/dsa_priv.h | 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/net/dsa.h b/

[PATCH V2 4/4] net-next: tag_mtk: add nh and proto offsets to the ops struct

2017-07-21 Thread John Crispin
The MT7530 inserts the 4 magic header in between the 802.3 address and protocol field. The patch defines these header such that the flow_disector can properly parse the packet and thus allows hashing to function properly. Signed-off-by: John Crispin --- net/dsa/tag_mtk.c | 6 -- 1 file chang

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-07-21 Thread Viresh Kumar
On 21-07-17, 10:35, Ulf Hansson wrote: > This depends on how drivers are dealing with runtime PM in conjunction > with the new pm_genpd_update_performance_state(). > > In case you don't want to manage some of this in genpd, then each > driver will have to drop their constraints every time they are

Re: [PATCH 00/15] HMM (Heterogeneous Memory Management) v24

2017-07-21 Thread Yisheng Xie
Hi Jerome, On 2017/7/21 1:18, Jerome Glisse wrote: > On Wed, Jul 19, 2017 at 07:48:08PM +0800, Yisheng Xie wrote: >> Hi Jérôme >> >> On 2017/6/29 2:00, Jérôme Glisse wrote: >>> >>> Patchset is on top of git://git.cmpxchg.org/linux-mmotm.git so i >>> test same kernel as kbuild system, git branch: >

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-21 Thread Andrey Ryabinin
On 07/20/2017 11:56 PM, Josh Poimboeuf wrote: > On Thu, Jul 20, 2017 at 06:30:24PM +0300, Andrey Ryabinin wrote: >> FWIW bellow is my understanding of what's going on. >> >> It seems clang treats local named register almost the same as ordinary >> local variables. >> The only difference is that b

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-21 Thread Miroslav Benes
> >> +{ > >> + struct klp_shadow *shadow; > >> + unsigned long flags; > >> + > >> + shadow = kzalloc(new_size + sizeof(*shadow), gfp_flags); > >> + if (!shadow) > >> + return NULL; > >> + > >> + shadow->obj = obj; > >> + shadow->num = num; > >> + if (new_data) > >> + memcp

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-21 Thread Petr Mladek
On Thu 2017-07-20 16:30:37, Joe Lawrence wrote: > On 07/18/2017 08:45 AM, Petr Mladek wrote: > > On Wed 2017-06-28 11:37:26, Joe Lawrence wrote: > >> diff --git a/kernel/livepatch/shadow.c b/kernel/livepatch/shadow.c > >> new file mode 100644 > >> index ..d37a61c57e72 > >> --- /dev/null

Re: [PATCH] usb: dwc3: Support the dwc3 host suspend/resume

2017-07-21 Thread Manu Gautam
Hi, On 7/21/2017 2:31 PM, Baolin Wang wrote: > On 21 July 2017 at 16:45, Manu Gautam wrote: >> Hi, >> >> >> On 7/21/2017 12:28 PM, Baolin Wang wrote: >>> For some mobile devices with strict power management, we also want to >>> suspend the host when the slave was detached for power saving. Thus >

Re: [lkp-robot] [include/linux/string.h] 6974f0c455: kernel_BUG_at_lib/string.c

2017-07-21 Thread Andy Shevchenko
On Fri, 2017-07-21 at 09:59 +0800, Ye Xiaolong wrote: > Hi, > > On 07/19, Linus Torvalds wrote: > > Hmm. I wonder why the kernel test robot ends up having that annoying > > line doubling for the dmesg. > > > > Hmm, this line doubling issue should be caused by we set both > 'earlyprintk=ttyS0,115

[PATCH] ceph: kernel client startsync can be removed

2017-07-21 Thread Yanhu Cao
kernel client is still sending write,startsync. that startsync is a no-op (has been for years) and can probably be removed Link: http://tracker.ceph.com/issues/20604 Signed-off-by: Yanhu Cao --- fs/ceph/addr.c | 9 ++--- fs/ceph/file.c | 5 + include/linux/ceph/r

Re: [PATCH] mm/hugetlb: __get_user_pages ignores certain follow_hugetlb_page errors

2017-07-21 Thread Punit Agrawal
Hi Daniel, daniel.m.jor...@oracle.com writes: > Commit 9a291a7c9428 ("mm/hugetlb: report -EHWPOISON not -EFAULT when > FOLL_HWPOISON is specified") causes __get_user_pages to ignore certain > errors from follow_hugetlb_page. After such error, __get_user_pages > subsequently calls faultin_page on

USB PHY reset for Nitrogen6x/MAX

2017-07-21 Thread Gary Bisson
Hi Shawn, Fabio, Last October I offered the following two patches that add regulators to fix USB PHY reset on 2 of our boards: https://patchwork.kernel.org/patch/9395531/ https://patchwork.kernel.org/patch/9395539/ At the time you preferred to wait for Peter's pwrseq sub-system to get in to have

Re: [PATCH] HID: usbhid: fix "always poll" quirk

2017-07-21 Thread Benjamin Tissoires
On Jul 12 2017 or thereabouts, Dmitry Torokhov wrote: > Even though the IO for devices with "always poll" quirk is already running, > we still need to set HID_OPENED bit in usbhid->iofl so the interrupt > handler does not ignore the data coming from the device. > > Reported-by: Olof Johansson > T

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-21 Thread Petr Mladek
On Fri 2017-07-21 11:12:18, Miroslav Benes wrote: > > > >> +{ > > >> +struct klp_shadow *shadow; > > >> +unsigned long flags; > > >> + > > >> +shadow = kzalloc(new_size + sizeof(*shadow), gfp_flags); > > >> +if (!shadow) > > >> +return NULL; > > >> +

Re: [PATCH] HID: logitech-hidpp: fix spelling mistake, "feeback" -> "feedback"

2017-07-21 Thread Benjamin Tissoires
On Jul 14 2017 or thereabouts, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in hid_info message and add line break > to split an overly long line to clean up a checkpatch warning. > > Signed-off-by: Colin Ian King > --- Acked-By: Benjamin Tissoires > drivers/

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-21 Thread Pierre Yves MORDRET
On 07/21/2017 09:55 AM, Vinod Koul wrote: > On Thu, Jul 06, 2017 at 02:25:39PM +0200, Pierre-Yves MORDRET wrote: > >> +config STM32_MDMA >> +bool "STMicroelectronics STM32 master dma support" >> +depends on ARCH_STM32 || COMPILE_TEST > ^^^ > why multiple spaces

[RFC PATCH 0/4] serial: uartps: Dynamic allocation

2017-07-21 Thread Michal Simek
Hi Alan, this is the initial version before next step which is move uart_register_driver to probe function. I was able to get rid of static array with uart_port structures. It was wired with console which is also fixed. And the next step is the most complicated one handle .nr in uart_driver struct

[RFC PATCH 3/4] serial: uartps: Move cnds_uart_get_port to probe

2017-07-21 Thread Michal Simek
c&p this function to probe as preparation for removing cdns_uart_port[] static array. Signed-off-by: Michal Simek --- drivers/tty/serial/xilinx_uartps.c | 61 +- 1 file changed, 21 insertions(+), 40 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.

[RFC PATCH 4/4] serial: uartps: Remove static port array

2017-07-21 Thread Michal Simek
Allocate uart port structure dynamically. Signed-off-by: Michal Simek --- drivers/tty/serial/xilinx_uartps.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 4fb74baeae35..1c9ec8c

[RFC PATCH 2/4] serial: uartps: Use dynamic array for console port

2017-07-21 Thread Michal Simek
Driver console functions are using pointer to static array with fixed size. There can be only one serial console at the time which is found by register_console(). register_console() is filling cons->index to port->line value. Signed-off-by: Michal Simek --- drivers/tty/serial/xilinx_uartps.c |

[RFC PATCH 1/4] serial: uartps: Remove console_initcall from the driver

2017-07-21 Thread Michal Simek
register_console() is called from uart_add_one_port()->uart_configure_port() that's why register_console() is called twice. This patch remove console_initcall to call register_console() only from one location. Also based on my tests cdns_uart_console_setup() is not called from the first register_

Re: [PATCH v3 2/9] perf annotate: Properly rename 'sum' to 'total_samples' in struct sym_hist

2017-07-21 Thread Taeung Song
Hi Arnaldo, On 07/21/2017 04:13 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 20, 2017 at 06:36:51AM +0900, Taeung Song escreveu: Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song Better to rename it to symhist->nr_samples, to be consistent with the per address nr_samples, i.e.

Re: [PATCH 1/2] pinctrl: rockchip: Use common interface for recalced iomux

2017-07-21 Thread Heiko Stuebner
Am Freitag, 21. Juli 2017, 14:27:14 CEST schrieb David Wu: > The other Socs also need the feature of recalced iomux, so > make it as a common interface like iomux route feature. > > Signed-off-by: David Wu > --- > drivers/pinctrl/pinctrl-rockchip.c | 89 > +-

Re: [PATCH v3 1/3] staging: lustre: constify attribute_group structures.

2017-07-21 Thread Dan Carpenter
On Fri, Jul 21, 2017 at 11:29:51AM +0530, Arvind Yadav wrote: > Changes in v3: > typo error in cover-latter. The cover letter gets discarded so no one cares. regards, dan carpenter

  1   2   3   4   5   6   7   8   >