RE: [PATCH 0/3] s390 refcount conversions

2017-10-23 Thread Reshetova, Elena
> On 10/20/2017 09:47 AM, Elena Reshetova wrote: > > This series, for S390, replaces atomic_t reference > > counters with the new refcount_t type and API (see > > include/linux/refcount.h). > > By doing this we prevent intentional or accidental > > underflows or overflows that can led to use-after

[PATCH v2] spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH

2017-10-23 Thread Bin Meng
The Intel SPI-NOR driver is dependent on LPC_ICH to get the platform data. Select it in the Kconfig. Signed-off-by: Bin Meng --- Changes in v2: - Enforce dependency on PCI drivers/mtd/spi-nor/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/Kco

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-10-23 Thread Adrian Hunter
On 24/10/17 08:37, Ulf Hansson wrote: > + Bartlomiej > > [...] > >> So my conclusion is, let's start a as you suggested, by not completing >> the request in ->done() as to maintain existing behavior. Then we can >> address optimizations on top, which very likely will involve doing >>>

Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-23 Thread Raveendra Padasalagi
On Tue, Oct 24, 2017 at 11:16 AM, Rafał Miłecki wrote: > On 2017-10-24 06:37, Raveendra Padasalagi wrote: >> >> Add driver for Broadcom's USB phy controller's used in Cygnus >> familyof SoC. Cygnus has three USB phy controller's, port 0, >> port 1 provides USB host functionality and port 2 can be

Re: regression in 4.14-rc2 caused by apparmor: add base infastructure for socket mediation

2017-10-23 Thread Thorsten Leemhuis
Lo, your friendly regression tracker here! On 03.10.2017 09:17, John Johansen wrote: > On 10/02/2017 11:48 PM, Vlastimil Babka wrote: >> On 10/03/2017 07:15 AM, James Bottomley wrote: >>> On Mon, 2017-10-02 at 21:11 -0700, John Johansen wrote: On 10/02/2017 09:02 PM, James Bottomley wrote: >>

[PATCH] VME: Return -EBUSY when DMA list in use

2017-10-23 Thread Martyn Welch
From: Martyn Welch The VME subsystem currently returns -EBUSY when trying to free a DMA resource that is busy, but returns -EINVAL when trying to free a DMA list that is in use. Switch to returning -EBUSY when trying to free a DMA list that is in use for consistency and correctness. Signed-off-b

[RFC 1/3] USB: Add document for usb of Hikey960

2017-10-23 Thread Yu Chen
DT bindings for usb of Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- .../devicetree/bindings/usb/hisilicon-usb.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindi

[RFC 2/3] USB: dwc3: Modify dwc3 code for support usb of Hikey960

2017-10-23 Thread Yu Chen
The usb controller of Kirin960 is DesignWare Cores SuperSpeed USB 3.0 Controller. The patch modifies dwc3 for support Kirin960 and adds codes for a USB Hub on board Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- arch/arm64/configs/

Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-23 Thread Rafał Miłecki
On 2017-10-24 06:37, Raveendra Padasalagi wrote: Add driver for Broadcom's USB phy controller's used in Cygnus familyof SoC. Cygnus has three USB phy controller's, port 0, port 1 provides USB host functionality and port 2 can be configured for host/device role. Configuration of host/device role

Re: [PATCH v2 34/37] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-10-23 Thread Takashi Iwai
On Sun, 22 Oct 2017 23:40:12 +0200, Anna-Maria Gleixner wrote: > > From: Thomas Gleixner > > The tasklet is used to defer the execution of snd_pcm_period_elapsed() to > the softirq context. Using the HRTIMER_MODE_SOFT mode invokes the timer > callback in softirq context as well which renders the

Re: [PATCH] ARM: dts: imx28-tx28: fix interrupt flags

2017-10-23 Thread Shawn Guo
On Mon, Oct 23, 2017 at 02:36:26PM +0200, Lothar Waßmann wrote: > Some interrupts properties are given '0' as the flags argument. > Change them to use the appropriate interrupt flags. > > Signed-off-by: Lothar Waßmann Applied, thanks.

[RFC 0/3] USB: Modify dwc3 code for support Hikey960

2017-10-23 Thread Yu Chen
The HiKey960 development platform is based around the HiSilicon Kirin960. The patch sets add support for usb of HiKey960. Fan Ning (3): Add document for usb of Hikey960 Modify dwc3 code for support usb of Hikey960 Modify device tree for support Hikey960 .../devicetree/bindings/usb/hisilico

Re: [PATCH] ARM: dts: imx53-tx53: fix interrupt flags

2017-10-23 Thread Shawn Guo
On Mon, Oct 23, 2017 at 04:56:40PM +0200, Lothar Waßmann wrote: > Some interrupts properties are given '0' as the flags argument or no > flags argument at all. > Change them to use the appropriate interrupt flags. > > Signed-off-by: Lothar Waßmann Applied, thanks.

[PATCH] cpu.h: remove 3 obsolete macros

2017-10-23 Thread yanjiang.jin
From: Yanjiang Jin commit 530e9b76ae8f ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions")' removes the below macros: - #define CPU_UP_CANCELED 0x0004 /* CPU (unsigned)v NOT coming up */ - #define CPU_DOWN_PREPARE 0x0005 /* CPU (unsigned)v going down */ - #define CPU_DOWN

[PATCH v6 04/10] kexec_file: factor out crashdump elf header function from x86

2017-10-23 Thread AKASHI Takahiro
prepare_elf_headers() can also be useful for other architectures, including arm64. So let it factored out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He --- arch/x86/kernel/crash.c | 324 include/linux/kexec.h |

[PATCH v6 07/10] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-10-23 Thread AKASHI Takahiro
load_other_segments() sets up and adds all the memory segments necessary other than kernel, including initrd, device-tree blob and purgatory. Most of the code was borrowed from kexec-tools' counterpart. arch_kimage_kernel_post_load_cleanup() is meant to free arm64-specific data allocated for loadi

[PATCH v6 10/10] arm64: kexec_file: add Image format support

2017-10-23 Thread AKASHI Takahiro
The "Image" binary will be loaded at the offset of TEXT_OFFSET from the start of system memory. TEXT_OFFSET is determined from the header of the image. Regarding kernel signature verification, it will be done through verify_pefile_signature() as arm64's "Image" binary can be seen as in PE format.

[PATCH v6 05/10] asm-generic: add kexec_file_load system call to unistd.h

2017-10-23 Thread AKASHI Takahiro
The initial user of this system call number is arm64. Signed-off-by: AKASHI Takahiro Acked-by: Arnd Bergmann --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index

[PATCH v6 09/10] arm64: enable KEXEC_FILE config

2017-10-23 Thread AKASHI Takahiro
Modify arm64/Kconfig and Makefile to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4.

[PATCH v6 06/10] arm64: kexec_file: create purgatory

2017-10-23 Thread AKASHI Takahiro
This is a basic purgatory, or a kind of glue code between the two kernels, for arm64. Since purgatory is assumed to be relocatable (not executable) object by kexec generic code, arch_kexec_apply_relocations_add() is required in general. Arm64's purgatory, however, is a simple asm and all the refer

[PATCH v6 08/10] arm64: kexec_file: set up for crash dump adding elf core header

2017-10-23 Thread AKASHI Takahiro
load_crashdump_segments() creates and loads a memory segment of elf core header for crash dump. "linux,usable-memory-range" and "linux,elfcorehdr" will add to the 2nd kernel's device-tree blob. The logic of this cod is also from kexec-tools. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc

[PATCH v6 02/10] resource: add walk_system_ram_res_rev()

2017-10-23 Thread AKASHI Takahiro
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file implementati

[PATCH v6 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-23 Thread AKASHI Takahiro
arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be duplicated among some architectures, so let's factor them out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He Cc: Michael Ellerman Cc: Thiago Jung Bauermann --- arch/powerpc/include/asm/kex

[PATCH v6 01/10] include: pe.h: remove message[] from mz header definition

2017-10-23 Thread AKASHI Takahiro
message[] field won't be part of the definition of mz header. This change is crucial for enabling kexec_file_load on arm64 because arm64's "Image" binary, as in PE format, doesn't have any data for it and accordingly the following check in pefile_parse_binary() will fail: chkaddr(cursor,

[PATCH v6 00/10] arm64: kexec: add kexec_file_load() support

2017-10-23 Thread AKASHI Takahiro
This is the sixth round of implementing kexec_file_load() support on arm64.[1] Most of the code is based on kexec-tools (along with some kernel code from x86, which also came from kexec-tools). This patch series enables us to * load the kernel, Image, with kexec_file_load system call, and * o

Re: [PATCH v2] dwc: dra7xx: Print link state to console for debug

2017-10-23 Thread Kishon Vijay Abraham I
Hi Bjorn, On Monday 23 October 2017 07:34 PM, Bjorn Helgaas wrote: > On Mon, Oct 23, 2017 at 03:59:49PM +0530, Faiz Abbas wrote: >> On Saturday 21 October 2017 04:39 AM, Bjorn Helgaas wrote: >>> On Thu, Oct 19, 2017 at 06:13:29PM +0530, Faiz Abbas wrote: Enable support for printing the LTSSM

Re: [PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread Dave Young
Hi Baoquan, On 10/24/17 at 01:57pm, Baoquan He wrote: > Hi Dave, > > On 10/24/17 at 01:31pm, Dave Young wrote: > > The total memory size we get in kernel is usually slightly less than 2G > > with a > > 2G memory module machine. The main reason is bios/firmware reserve some area > > it will not e

[RFC 3/3] arm64: dts: Modify device tree for support Hikey960

2017-10-23 Thread Yu Chen
Add dts for usb module of Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3

Re: about pca955x led driver gpio management

2017-10-23 Thread Cédric Le Goater
On 10/17/2017 11:16 AM, Andrea Scian - DAVE Embedded Systems wrote: > >> On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> >>> Il 17/10/2017 10:18, Cédric Le Goater ha scritto: On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > Dear all, >

Re: [PATCH 1/3] kdump: extend crashkernel=range:size to dynamically increase reservation size

2017-10-23 Thread Dave Young
Hi Baoquan, On 10/24/17 at 02:00pm, Baoquan He wrote: > On 10/24/17 at 01:31pm, Dave Young wrote: > > crashkernel=range:size syntax allows to reserve specified size for system > > with total memory fall into the specified range. For example: > > crashkernel=2G-3G:128M,3G-:256M reserves 128M for sy

Re: [PATCH 1/3] kdump: extend crashkernel=range:size to dynamically increase reservation size

2017-10-23 Thread Baoquan He
On 10/24/17 at 01:31pm, Dave Young wrote: > crashkernel=range:size syntax allows to reserve specified size for system > with total memory fall into the specified range. For example: > crashkernel=2G-3G:128M,3G-:256M reserves 128M for system with memory >=2G > and memory <3G, and reserves 256M for s

Re: [PATCH] PM / QoS: Fix device resume latency PM QoS

2017-10-23 Thread Ramesh Thomas
On 2017-10-20 at 13:27:34 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > > static ssize_t pm_qos_resume_latency_store(struct device *dev, > @@ -228,11 +235,19 @@ static ssize_t pm_qos_resume_latency_sto > s32 value; > int ret; > > - if (kstrtos32(buf, 0, &value

Re: Enabling peer to peer device transactions for PCIe devices

2017-10-23 Thread Petrosyan, Ludwig
Yes I agree it has to be started with the write transaction, according of PCIe standard all write transaction are address routed, and I agree with Logan: if in write transaction TLP the endpoint address written in header the TLP should not touch CPU, the PCIe Switch has to route it to endpoint. T

Re: [PATCH 09/19] net: average: Kill off ACCESS_ONCE()

2017-10-23 Thread Johannes Berg
On Mon, 2017-10-23 at 21:07 +, Paul E. McKenney wrote: > From: Mark Rutland > > For several reasons, it is desirable to use {READ,WRITE}_ONCE() in > preference to ACCESS_ONCE(), and new code is expected to use one of the > former. So far, there's been no reason to change most existing uses of

Re: [PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread Baoquan He
Hi Dave, On 10/24/17 at 01:31pm, Dave Young wrote: > The total memory size we get in kernel is usually slightly less than 2G with a > 2G memory module machine. The main reason is bios/firmware reserve some area > it will not export all memory as usable to Linux. > > 2G memory X86 kvm guest test r

[PATCH] arm: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL

2017-10-23 Thread Seung-Woo Kim
Select ARCH_HAS_UBSAN_SANITIZE_ALL from arm confiuration to enable UBSAN on arm. Signed-off-by: Seung-Woo Kim --- arch/arm/Kconfig |1 + arch/arm/boot/compressed/Makefile |2 ++ arch/arm/vdso/Makefile|2 ++ 3 files changed, 5 insertions(+), 0 deletions(-)

[PATCH v5 2/2] dma: sprd: Add Spreadtrum DMA driver

2017-10-23 Thread Baolin Wang
This patch adds the DMA controller driver for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- Changes since v4: - Correct lisence. - Rename SPRD_DMA_WAIT_BDONE macro to SPRD_DMA_WAIT_BDONE_OFFSET. - Optimize sprd_dma_chn_update() function. - Print warning when getting incorrect int

[PATCH v5 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller

2017-10-23 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC9860 DMA controller device. Signed-off-by: Baolin Wang Acked-by: Rob Herring --- Changes since v4: - No updates. Changes since v3: - No updates. Changes since v2: - No updates. Changes since v1: - Fix typos. --- Documentation/dev

Re: [PATCH v5 5/6] input: Add MediaTek PMIC keys support

2017-10-23 Thread Dmitry Torokhov
On Wed, Sep 27, 2017 at 06:44:07PM +0800, Chen Zhong wrote: > This patch add support to handle MediaTek PMIC MT6397/MT6323 key > interrupts including pwrkey and homekey, also add setting for > long press key shutdown behavior. > > Signed-off-by: Chen Zhong > --- > drivers/input/keyboard/Kconfig

Re: [PATCH] of: Devices with pci_epf_bus_type require DMA configuration

2017-10-23 Thread Kishon Vijay Abraham I
Hi, On Monday 23 October 2017 06:35 PM, Robin Murphy wrote: > On 23/10/17 06:43, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 11 October 2017 10:15 PM, Robin Murphy wrote: >>> On 11/10/17 09:00, Kishon Vijay Abraham I wrote: pci-epc-core.c invokes of_dma_configure in order to confi

Re: [RFC PATCH] fs: fsnotify: account fsnotify metadata to kmemcg

2017-10-23 Thread Amir Goldstein
On Tue, Oct 24, 2017 at 7:12 AM, Yang Shi wrote: > > > On 10/22/17 1:24 AM, Amir Goldstein wrote: >> >> On Sat, Oct 21, 2017 at 12:07 AM, Yang Shi wrote: >>> >>> >>> >>> On 10/19/17 8:14 PM, Amir Goldstein wrote: On Fri, Oct 20, 2017 at 12:20 AM, Yang Shi wrote: > > >

[PATCH 2/3] X86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2017-10-23 Thread dyoung
Now crashkernel=X will fail if there's not enough memory at low region (below 896M) when trying to reserve large memory size. One can use crashkernel=xM,high to reserve it at high region (>4G) but it is more convinient to improve crashkernel=X to: - First try to reserve X below 896M (for being

[PATCH 1/3] kdump: extend crashkernel=range:size to dynamically increase reservation size

2017-10-23 Thread dyoung
crashkernel=range:size syntax allows to reserve specified size for system with total memory fall into the specified range. For example: crashkernel=2G-3G:128M,3G-:256M reserves 128M for system with memory >=2G and memory <3G, and reserves 256M for system with memory >= 3G In the above case 256M as

[PATCH 0/3] kdump: crashkernel parameter improvement

2017-10-23 Thread dyoung
Hi, Here is a try to improve current crashkernel kernel parameter Patch 1/3 adds an extra functionality so that one can use like crashkernel=2G-:128M^12 to reserve 128M for 2G+ machine but also scale the size based on system memory, that means 128M + (total_mem - 128M) >> 12 Patch 2/3 is a resen

[PATCH 3/3] kdump: round up the total memory size to 128M for crashkernel reservation

2017-10-23 Thread dyoung
The total memory size we get in kernel is usually slightly less than 2G with a 2G memory module machine. The main reason is bios/firmware reserve some area it will not export all memory as usable to Linux. 2G memory X86 kvm guest test result of the total_mem value: UEFI boot with ovmf: 0x7ef1

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-10-23 Thread Ulf Hansson
+ Bartlomiej [...] > So my conclusion is, let's start a as you suggested, by not completing > the request in ->done() as to maintain existing behavior. Then we can > address optimizations on top, which very likely will involve doing > changes to host drivers as well. Hav

Re: usb/input/gtco: slab-out-of-bounds in parse_hid_report_descriptor

2017-10-23 Thread Dmitry Torokhov
On Mon, Oct 23, 2017 at 01:24:23PM +0200, Andrey Konovalov wrote: > Hi! > > I've got the following report while fuzzing the kernel with syzkaller. > > On commit 3e0cc09a3a2c40ec1ffb6b4e12da86e98feccb11 (4.14-rc5+). > > parse_hid_report_descriptor() has a while (i < length) loop, which > only gua

[PATCH 1/1] mpi: check for shift exponent greater than 31.

2017-10-23 Thread Ayush Mittal
This patch check for shift exponent greater than 31, detected by UBSAN. 1)UBSAN: Undefined behaviour in lib/mpi/generic_mpih-lshift.c:57:22 shift exponent 32 is too large for 32-bit type 'long unsigned int' 2)UBSAN: Undefined behaviour in lib/mpi/generic_mpih-lshift.c:60:20 shift exponent 32 is

[PATCH] Input: gtco - fix potential out-of-bound access

2017-10-23 Thread Dmitry Torokhov
parse_hid_report_descriptor() has a while (i < length) loop, which only guarantees that there's at least 1 byte in the buffer, but the loop body can read multiple bytes which causes out-of-bounds access. Reported-by: Andrey Konovalov Signed-off-by: Dmitry Torokhov --- drivers/input/tablet/gtco.

Re: x86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2017-10-23 Thread Dave Young
On 10/20/17 at 01:52pm, Dave Young wrote: > Now crashkernel=X will fail if there's not enough memory at low region > (below 896M) when trying to reserve large memory size. One can use > crashkernel=xM,high to reserve it at high region (>4G) but it is more > convinient to improve crashkernel=X to:

Re: [PATCH 04/12] PM / core: Add SMART_SUSPEND driver flag

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a SMART_SUSPEND flag to instruct bus types and PM > domains that the system suspend callbacks provided by the driver can > cope with runtime-suspended devices, so from the driver's perspective

Re: [RFC PATCH] kbuild: Allow specifying some base host CFLAGS

2017-10-23 Thread Masahiro Yamada
Hi Douglous 2017-10-20 14:06 GMT+09:00 Doug Anderson : > Hi, > > On Wed, Oct 18, 2017 at 9:45 AM, Masahiro Yamada > wrote: >> 2017-10-14 3:02 GMT+09:00 Douglas Anderson : >>> Right now there is a way to add some CFLAGS that affect target builds, >>> but no way to add CFLAGS that affect host build

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-23 Thread Joonsoo Kim
On Mon, Oct 23, 2017 at 10:10:09AM +0200, Michal Hocko wrote: > On Mon 23-10-17 14:23:09, Joonsoo Kim wrote: > > On Fri, Oct 20, 2017 at 09:02:20AM +0200, Michal Hocko wrote: > > > On Fri 20-10-17 15:50:14, Joonsoo Kim wrote: > > > > On Fri, Oct 20, 2017 at 07:59:22AM +0200, Michal Hocko wrote: > >

[PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-23 Thread Raveendra Padasalagi
Add driver for Broadcom's USB phy controller's used in Cygnus familyof SoC. Cygnus has three USB phy controller's, port 0, port 1 provides USB host functionality and port 2 can be configured for host/device role. Configuration of host/device role for port 2 is achieved based on the extcon events,

[PATCH 3/3] ARM: dts: Add dt node for Broadcom Cygnus USB phy

2017-10-23 Thread Raveendra Padasalagi
Add DT node for Broadcom's USB phy controller's used in Cygnus family of SoC. Signed-off-by: Raveendra Padasalagi --- arch/arm/boot/dts/bcm-cygnus.dtsi | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/

[PATCH 1/3] Documentation: DT: Add Cygnus usb phy binding

2017-10-23 Thread Raveendra Padasalagi
Add devicetree binding document for broadcom's Cygnus SoC specific usb phy controller driver. Signed-off-by: Raveendra Padasalagi --- .../bindings/phy/brcm,cygnus-usb-phy.txt | 101 + 1 file changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 0/3] Add driver for Broadcom Cygnus USB phy controller

2017-10-23 Thread Raveendra Padasalagi
Add driver for Broadcom's USB phy controller's used in Cygnus family of SoC and it's based on 4.14-rc3 tag. The patch set can be fetched from iproc-cyg-usb-v1 branch of https://github.com/Broadcom/arm64-linux.git Raveendra Padasalagi (3): Documentation: DT: Add Cygnus usb phy binding drivers:

clock event device’s next_event

2017-10-23 Thread Sodagudi Prasad
Hi Viresh and Thomas, In the functions tick_nohz_stop_sched_tick(), when expires = KTIME_MAX we are canceling the tick_sched_timer timer but we are not updating the clock event device’s next_event to KTIME_MAX. Due to that broadcast device’s next_event is not programmed properly and resulting

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Herbert Xu
On Mon, Oct 23, 2017 at 09:01:46PM -0700, Alexei Starovoitov wrote: > > fwiw I had the same argument earlier: > https://lkml.org/lkml/2017/10/9/1139 Fair point on eliminating a branch. But I'd prefer something like bool cond; cond = code_that_does_something(); BUG_ON(con

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Gustavo A. R. Silva
Quoting Herbert Xu : On Mon, Oct 23, 2017 at 10:50:43PM -0500, Gustavo A. R. Silva wrote: Quoting Herbert Xu : >On Mon, Oct 23, 2017 at 01:18:57PM -0500, Gustavo A. R. Silva wrote: >>Use BUG_ON instead of if condition followed by BUG. >> >>This issue was detected with the help of Coccinelle.

Re: [PATCH] kbuild: clang: fix build failures with sparse check

2017-10-23 Thread Masahiro Yamada
2017-10-21 6:09 GMT+09:00 David Lin : > We should avoid using the space character when passing arguments to > clang, because static code analysis check tool such as sparse may > misinterpret the arguments followed by spaces as build targets hence > cause the build to fail. > > Signed-off-by: David

Re: [RFC PATCH] fs: fsnotify: account fsnotify metadata to kmemcg

2017-10-23 Thread Yang Shi
On 10/22/17 1:24 AM, Amir Goldstein wrote: On Sat, Oct 21, 2017 at 12:07 AM, Yang Shi wrote: On 10/19/17 8:14 PM, Amir Goldstein wrote: On Fri, Oct 20, 2017 at 12:20 AM, Yang Shi wrote: We observed some misbehaved user applications might consume significant amount of fsnotify slabs sil

[PATCH] pinctrl: uniphier: remove eMMC hardware reset pin-mux

2017-10-23 Thread Masahiro Yamada
This is handled by the mmc-pwrseq-emmc driver, which controls an eMMC hardware reset via a GPIO line. Remove it from the function pin-mux settings. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 4 ++-- drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 4

Re: [PATCH v7 1/3] PCI: Add support for wake irq

2017-10-23 Thread jeffy
Hi Brian, On 10/24/2017 07:02 AM, Brian Norris wrote: + PM folks Hi Jeffy, It's probably good if you send the whole thing to linux-pm@ in the future, if you're really trying to implement generic PCI/PM for device tree systems. ok On Thu, Oct 19, 2017 at 07:10:05PM +0800, Jeffy Chen wrote:

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Alexei Starovoitov
On Tue, Oct 24, 2017 at 11:53:20AM +0800, Herbert Xu wrote: > On Mon, Oct 23, 2017 at 10:50:43PM -0500, Gustavo A. R. Silva wrote: > > > > Quoting Herbert Xu : > > > > >On Mon, Oct 23, 2017 at 01:18:57PM -0500, Gustavo A. R. Silva wrote: > > >>Use BUG_ON instead of if condition followed by BUG. >

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Herbert Xu
On Mon, Oct 23, 2017 at 10:50:43PM -0500, Gustavo A. R. Silva wrote: > > Quoting Herbert Xu : > > >On Mon, Oct 23, 2017 at 01:18:57PM -0500, Gustavo A. R. Silva wrote: > >>Use BUG_ON instead of if condition followed by BUG. > >> > >>This issue was detected with the help of Coccinelle. > >> > >>Si

[PATCH] usb: gadget: f_tcm: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 703128 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/function/f_tcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/function/f_

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Gustavo A. R. Silva
Quoting Herbert Xu : On Mon, Oct 23, 2017 at 01:18:57PM -0500, Gustavo A. R. Silva wrote: Use BUG_ON instead of if condition followed by BUG. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva I think this patch is terrible. Why on earth is Coccinelle

[PATCH] usb: gadget: goku_udc: mark expected switch fall-throughs

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 145713 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/udc/goku_udc.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/d

[PATCH] usb: core: urb: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1162594 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/core/urb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Herbert Xu
On Mon, Oct 23, 2017 at 01:18:57PM -0500, Gustavo A. R. Silva wrote: > Use BUG_ON instead of if condition followed by BUG. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva I think this patch is terrible. Why on earth is Coccinelle even warning abo

[PATCH] usb: phy: phy-msm-usb: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1222118 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/phy/phy-msm-usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/phy/phy-msm-usb.c b/dri

Re: [PATCH v2 3/3] watchdog: hpwdt: add ioctl WDIOC_GETPRETIMEOUT

2017-10-23 Thread Guenter Roeck
On 10/23/2017 03:46 PM, Jerry Hoemann wrote: Add support for WDIOC_GETPRETIMEOUT ioctl so that user applications can determine when the NMI should arrive. Signed-off-by: Jerry Hoemann I'll leave this for Wim to decide. My take is that we should not add functionality to old-style drivers and

Re: [PATCH v2 2/3] watchdog: hpwdt: Check source of NMI

2017-10-23 Thread Guenter Roeck
On 10/23/2017 03:46 PM, Jerry Hoemann wrote: Do not claim the NMI (i.e. return NMI_DONE) if the source of the NMI isn't the iLO watchdog or debug. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck --- drivers/watchdog/hpwdt.c | 10 ++ 1 file changed, 10 insertions(+) diff

Re: [PATCH v2 1/3] watchdog: hpwdt: SMBIOS check

2017-10-23 Thread Guenter Roeck
On 10/23/2017 03:46 PM, Jerry Hoemann wrote: This corrects: commit cce78da76601 ("watchdog: hpwdt: Add check for UEFI bits") The test on HPE SMBIOS extension type 219 record "Misc Features" bits for UEFI support is incorrect. The definition of the Misc Features bits in the HPE SMBIOS OEM Extens

[PATCH] usb: gadget: serial: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1350962 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/function/u_serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/functio

[PATCH] usb: musb_core: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1397608 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/musb/musb_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/musb_core.c b/drive

[PATCH] phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals

2017-10-23 Thread Chunfeng Yun
When system is running, if usb2 phy is forced to bypass utmi signals, all PLL will be turned off, and it can't detect device connection anymore, so replace force mode with auto mode which can bypass utmi signals automatically if no device attached for normal flow. But keep the force mode to fix RX

[PATCH] usb: image: mdc800: mark expected switch fall-through

2017-10-23 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/image/mdc800.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c index e92540a

492b95e597 ("rcuperf: Set more user-friendly defaults"): WARNING: CPU: 0 PID: 1 at arch/x86/kernel/smp.c:128 native_smp_send_reschedule

2017-10-23 Thread Fengguang Wu
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 492b95e59735998312f678d77a2d5fe20af6b0b9 Author: Paul E. McKenney AuthorDate: Fri Apr 21 16:09:15 2017 -0700 Commit: Paul

[PATCH -mm] mm, swap: Fix false error message in __swp_swapcount()

2017-10-23 Thread Huang, Ying
From: Ying Huang __swp_swapcount() is used in __read_swap_cache_async(). Where the invalid swap entry (offset > max) may be supplied during swap readahead. But __swp_swapcount() will print error message for these expected invalid swap entry as below, which will make the users confusing. swap

ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-23 Thread Fengguang Wu
00 0 Merge 'linux-review/SF-Markus-Elfring/gpio-adnp-Use-common-error-handling-code-in-adnp_gpio_dbg_show/20171023-043514' into devel-spot-201710231057 git bisect bad a0831a3f7f72d8ce846ffd2ff7ea73b88a59da17 # 18:42 B 0 11 24 0 Merge 'linux-review/SF-Ma

Re: [GIT PULL] Introduce housekeeping subsystem v4

2017-10-23 Thread Frederic Weisbecker
2017-10-23 14:06 UTC+02:00, Ingo Molnar : > > * Frederic Weisbecker wrote: > >> In fact, CPU affinity is the only high level concept I found to gather all >> these >> housekeeping elements. >> >> Perhaps I should use "cpu_isolation" instead of "housekeeping" naming. > > The problem with names base

[PATCH v2] ARM: dts: exynos: add cpu perf counters to Exynos54xx boards

2017-10-23 Thread memeka
Enable support for ARM Performance Monitoring Units available in Cortex-A7 and Cortex-A15 CPU cores for Exynos54xx SoCs (5410, 5420 and 5422/5800). The PMUs interrupts are defined in the common exynos54xx.dtsi device tree, but the PMUs are enabled and have their interrupt CPU affinity defined next

Re: [PATCH 1/4] arm64: defconfig: enable new trigger modes for leds

2017-10-23 Thread Timur Tabi
On 10/23/17 6:11 PM, Amit Kucheria wrote: This is great, thanks. Can I take this as an ACK? Sure, but I'm not a maintainer for the defconfig, so it's just my personal opinion. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, In

[PATCH V2] scsi: aacraid: Fix some error code

2017-10-23 Thread Christophe JAILLET
If 'scsi_host_alloc', 'kzalloc' or '(*aac_drivers[index].init)' fail, the function will return 0, because 'error' is known to be 0 at this point. Return -ENOMEM in the 2 first cases and -ENODEV in the third one. This patch also removes a useless 'error = -ENODEV'. Signed-off-by: Christophe JAILL

Re: [PATCH review for 4.4 14/24] dmaengine: sun6i: allow build on ARM64 platforms (sun50i)

2017-10-23 Thread Levin, Alexander (Sasha Levin)
On Sun, Oct 08, 2017 at 10:27:45AM +0800, Icenowy Zheng wrote: > > >于 2017年10月8日 GMT+08:00 上午6:37:46, "Levin, Alexander (Sasha Levin)" > 写到: >>From: Icenowy Zheng >> >>[ Upstream commit c429ceb1e18252122ba96b52e689dcf87103c186 ] >> >>As 64-bit Allwinner H5 SoC has the same DMA engine with H3, the

Re: [PATCH] fs: guard_bio_eod() needs to consider partitions

2017-10-23 Thread Al Viro
On Mon, Oct 23, 2017 at 07:10:07PM -0600, Greg Edwards wrote: > guard_bio_eod() needs to look at the partition capacity, not just the > capacity of the whole device, when determining if truncation is > necessary. > > [ 60.268688] attempt to access beyond end of device > [ 60.268690] unknown-bl

Re: [PATCH review for 4.9 39/50] ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches

2017-10-23 Thread Levin, Alexander (Sasha Levin)
On Mon, Oct 09, 2017 at 09:36:56AM +0100, Mark Brown wrote: >On Sat, Oct 07, 2017 at 10:36:55PM +, Levin, Alexander (Sasha Levin) wrote: >> From: Matt Ranostay >> >> [ Upstream commit 9834ffd1ecc3a401d0ce64c2d4235a726da6d4f9 ] >> >> We can get audio errors if hitting deeper idle states on omap

Re: [14/23] drm/sun4i: Create minimal multipliers and dividers

2017-10-23 Thread Jonathan Liu
Hi Maxime, On 17 October 2017 at 20:06, Maxime Ripard wrote: > The various outputs the TCON can provide have different constraints on the > dotclock divider. Let's make them configurable by the various mode_set > functions. > > Signed-off-by: Maxime Ripard > Reviewed-by: Chen-Yu Tsai > --- > d

Re: [PATCH 0/2] 9p: Fixes for hard-to-hit bugs

2017-10-23 Thread Al Viro
On Tue, Oct 24, 2017 at 04:41:08AM +0300, Tuomas Tynkkynen wrote: > > I can pick those, or, if you (or somebody else) are willing to > > actively > > maintain a 9p tree, you could start sending straight to Linus - up to > > you. > > You can pick these up, I don't have plans for more patches right

[PATCH] rtlwifi: Remove seq_number from rtl_tid_data

2017-10-23 Thread pkshih
From: Ping-Ke Shih Since mac80211 maintains the sequence number for each STA/TID, driver doesn't need to maintain a copy. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtlwifi/base.c | 6 ++ drivers/net/wireless/realtek/rtlwifi/pci.c | 17 - drivers/net/wir

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-10-23 Thread Jin, Yao
On 10/23/2017 11:04 PM, Jiri Olsa wrote: On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: In perf record, it's walked on all samples yet. So it's very easy to get the first/last samples and save the time to perf file header via the function write_sample_time(). In later, perf report/s

Re: 【build error report for for next branch】

2017-10-23 Thread oulijun
在 2017/10/23 23:24, Doug Ledford 写道: > On Wed, 2017-10-18 at 14:21 +0800, oulijun wrote: >> Hi, Doug Ledford >>I am use the for-next branch for building and the result is fail. >> Is the branch a bug or my buidl way incorrectly? > > [ snip ] > >> CC [M] drivers/gpu/drm/tegra/trace.o >> In

Re: [PATCH v1 3/3] virtio-balloon: stop inflating when OOM occurs

2017-10-23 Thread Wei Wang
On 10/23/2017 01:13 AM, Michael S. Tsirkin wrote: On Fri, Oct 20, 2017 at 07:54:26PM +0800, Wei Wang wrote: This patch forces the cease of the inflating work when OOM occurs. The fundamental idea of memory ballooning is to take out some guest pages when the guest has low memory utilization, so i

RE: [PATCH v10 0/4] this patchset is to remove PPCisms for QEIC

2017-10-23 Thread Qiang Zhao
Hi all, Could anybody review this patchset and take action on them? Thank you! Best Regards Qiang Zhao > -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Monday, August 07, 2017 11:07 AM > To: t...@linutronix.de > Cc: o...@buserror.net; Xiaobo Xie ; linux- > ker.

Re: high latency in CFS when disable autogroup, bug or not?

2017-10-23 Thread Li RongQing
I find the root cause, the delayed process run a very long time before, and its vruntime become very large, and must wait all process; so it is delayed the reason is below: 1. there is a low weight load process A (nice=19, weight=15) 2. there is a process B which is doing IO 3. there is a process

Re: [bug report] regression bisected to "block: Make most scsi_req_init() calls implicit"

2017-10-23 Thread dann frazier
On Mon, Oct 23, 2017 at 3:08 PM, Bart Van Assche wrote: > On Mon, 2017-10-23 at 09:41 -0600, dann frazier wrote: >> (gdb) list *(sg_io+0x120) >> 0x084e71a8 is in sg_io (./include/linux/uaccess.h:113). >> 108 static inline unsigned long >> 109 _copy_from_user(void *to, const void __user

Re: [PATCH v1 1/3] virtio-balloon: replace the coarse-grained balloon_lock

2017-10-23 Thread Wei Wang
On 10/22/2017 07:50 PM, Tetsuo Handa wrote: Wei Wang wrote: @@ -162,20 +160,20 @@ static unsigned fill_balloon(struct virtio_balloon *vb, size_t num) msleep(200); break; } - set_page_pfns(vb, vb->pfns + vb->num_pfns,

Re: [PATCH 0/2] 9p: Fixes for hard-to-hit bugs

2017-10-23 Thread Tuomas Tynkkynen
Hi Al, On Fri, 2017-10-20 at 21:11 +0100, Al Viro wrote: > On Tue, Sep 26, 2017 at 04:10:14PM +0300, Tuomas Tynkkynen wrote: > > Hi Al, > > > > On Wed, 2017-09-06 at 17:59 +0300, Tuomas Tynkkynen wrote: > > > These two patches fix two hard-to-hit (but really annoying) bugs > > > in > > > 9p. > >

  1   2   3   4   5   6   7   >