[PATCH v2 3/4] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-07-31 Thread Minchan Kim
Nadav reported parallel MADV_DONTNEED on same range has a stale TLB problem and Mel fixed it[1] and found same problem on MADV_FREE[2]. Quote from Mel Gorman "The race in question is CPU 0 running madv_free and updating some PTEs while CPU 1 is also running madv_free and looking at the same

[PATCH v2 3/4] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-07-31 Thread Minchan Kim
Nadav reported parallel MADV_DONTNEED on same range has a stale TLB problem and Mel fixed it[1] and found same problem on MADV_FREE[2]. Quote from Mel Gorman "The race in question is CPU 0 running madv_free and updating some PTEs while CPU 1 is also running madv_free and looking at the same

[PATCH v2 1/4] mm: refactoring TLB gathering API

2017-07-31 Thread Minchan Kim
This patch is ready for solving race problems caused by TLB batch. For that, we will increase/decrease TLB flush pending count of mm_struct whenever tlb_[gather|finish]_mmu is called. Before making it simple, this patch separates architecture specific part and rename it to

[PATCH v2 1/4] mm: refactoring TLB gathering API

2017-07-31 Thread Minchan Kim
This patch is ready for solving race problems caused by TLB batch. For that, we will increase/decrease TLB flush pending count of mm_struct whenever tlb_[gather|finish]_mmu is called. Before making it simple, this patch separates architecture specific part and rename it to

[PATCH v2 2/4] mm: make tlb_flush_pending global

2017-07-31 Thread Minchan Kim
Currently, tlb_flush_pending is used only for CONFIG_[NUMA_BALANCING| COMPACTION] but upcoming patches to solve subtle TLB flush bacting problem will use it regardless of compaction/numa so this patch doesn't remove the dependency. Cc: Nadav Amit Cc: Mel Gorman

[PATCH v2 2/4] mm: make tlb_flush_pending global

2017-07-31 Thread Minchan Kim
Currently, tlb_flush_pending is used only for CONFIG_[NUMA_BALANCING| COMPACTION] but upcoming patches to solve subtle TLB flush bacting problem will use it regardless of compaction/numa so this patch doesn't remove the dependency. Cc: Nadav Amit Cc: Mel Gorman Signed-off-by: Minchan Kim ---

[PATCH v2 0/4] fix several TLB batch races

2017-07-31 Thread Minchan Kim
Nadav and Mel founded several subtle races caused by TLB batching. This patchset aims for solving thoses problems using embedding [inc|dec]_tlb_flush_pending to TLB batching API. With that, places to know TLB flush pending catch it up by using mm_tlb_flush_pending. Each patch includes detailed

[PATCH v2 4/4] mm: fix KSM data corruption

2017-07-31 Thread Minchan Kim
Nadav reported KSM can corrupt the user data by the TLB batching race[1]. That means data user written can be lost. Quote from Nadav Amit " For this race we need 4 CPUs: CPU0: Caches a writable and dirty PTE entry, and uses the stale value for write later. CPU1: Runs madvise_free on the range

[PATCH v2 0/4] fix several TLB batch races

2017-07-31 Thread Minchan Kim
Nadav and Mel founded several subtle races caused by TLB batching. This patchset aims for solving thoses problems using embedding [inc|dec]_tlb_flush_pending to TLB batching API. With that, places to know TLB flush pending catch it up by using mm_tlb_flush_pending. Each patch includes detailed

[PATCH v2 4/4] mm: fix KSM data corruption

2017-07-31 Thread Minchan Kim
Nadav reported KSM can corrupt the user data by the TLB batching race[1]. That means data user written can be lost. Quote from Nadav Amit " For this race we need 4 CPUs: CPU0: Caches a writable and dirty PTE entry, and uses the stale value for write later. CPU1: Runs madvise_free on the range

Re: [RFC]Add new mdev interface for QoS

2017-07-31 Thread Gao, Ping A
On 2017/7/28 0:00, Gao, Ping A wrote: > On 2017/7/27 0:43, Alex Williamson wrote: >> [cc +libvir-list] >> >> On Wed, 26 Jul 2017 21:16:59 +0800 >> "Gao, Ping A" wrote: >> >>> The vfio-mdev provide the capability to let different guest share the >>> same physical device

Re: [RFC]Add new mdev interface for QoS

2017-07-31 Thread Gao, Ping A
On 2017/7/28 0:00, Gao, Ping A wrote: > On 2017/7/27 0:43, Alex Williamson wrote: >> [cc +libvir-list] >> >> On Wed, 26 Jul 2017 21:16:59 +0800 >> "Gao, Ping A" wrote: >> >>> The vfio-mdev provide the capability to let different guest share the >>> same physical device through mediate sharing,

linux-next: manual merge of the akpm tree with the wberr tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/fs.h between commit: 9dcc0577f2a4 ("mm: remove optimizations based on i_size in mapping writeback waits") from the wberr tree and patch: "mm: remove optimizations based on i_size in mapping

linux-next: manual merge of the akpm tree with the wberr tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/fs.h between commit: 9dcc0577f2a4 ("mm: remove optimizations based on i_size in mapping writeback waits") from the wberr tree and patch: "mm: remove optimizations based on i_size in mapping

Re: [PATCH V3] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-31 Thread Feng Kan
On Mon, Jul 31, 2017 at 2:55 PM, Alex Williamson wrote: > On Mon, 31 Jul 2017 10:56:53 -0700 > Feng Kan wrote: > >> On Fri, Jul 28, 2017 at 4:00 PM, Alex Williamson >> wrote: >> > On Fri, 28 Jul 2017 11:50:43 -0700 >> > Feng

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 8:43 AM, da...@codemonkey.org.uk wrote: > Another NFSv4 KASAN splat, this time from rc3. > > BUG: KASAN: use-after-free in nfs4_exchange_id_done+0x3d7/0x8e0 [nfsv4] Ugh. It's really hard to tell what access that it - KASAN doesn't actually give

Re: [PATCH V3] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-31 Thread Feng Kan
On Mon, Jul 31, 2017 at 2:55 PM, Alex Williamson wrote: > On Mon, 31 Jul 2017 10:56:53 -0700 > Feng Kan wrote: > >> On Fri, Jul 28, 2017 at 4:00 PM, Alex Williamson >> wrote: >> > On Fri, 28 Jul 2017 11:50:43 -0700 >> > Feng Kan wrote: >> > >> >> The APM X-Gene PCIe root port does not support

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 8:43 AM, da...@codemonkey.org.uk wrote: > Another NFSv4 KASAN splat, this time from rc3. > > BUG: KASAN: use-after-free in nfs4_exchange_id_done+0x3d7/0x8e0 [nfsv4] Ugh. It's really hard to tell what access that it - KASAN doesn't actually give enough information. There's

Re: [PATCH v7 08/15] RISC-V: Atomic and Locking Code

2017-07-31 Thread Boqun Feng
On Mon, Jul 31, 2017 at 06:00:02PM -0700, Palmer Dabbelt wrote: > This contains all the code that directly interfaces with the RISC-V > memory model. While this code corforms to the current RISC-V ISA > specifications (user 2.2 and priv 1.10), the memory model is somewhat > underspecified in

Re: [PATCH v7 08/15] RISC-V: Atomic and Locking Code

2017-07-31 Thread Boqun Feng
On Mon, Jul 31, 2017 at 06:00:02PM -0700, Palmer Dabbelt wrote: > This contains all the code that directly interfaces with the RISC-V > memory model. While this code corforms to the current RISC-V ISA > specifications (user 2.2 and priv 1.10), the memory model is somewhat > underspecified in

Re: [PATCH v2] Bluetooth: btusb: add ID for LiteOn 04ca:3016

2017-07-31 Thread Johan Hedberg
Hi Brian, On Mon, Jul 31, 2017, Brian Norris wrote: > Contains a QCA6174A-5 chipset, with USB BT. Let's support loading > firmware on it. > > From usb-devices: > T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P:

Re: [PATCH v2] Bluetooth: btusb: add ID for LiteOn 04ca:3016

2017-07-31 Thread Johan Hedberg
Hi Brian, On Mon, Jul 31, 2017, Brian Norris wrote: > Contains a QCA6174A-5 chipset, with USB BT. Let's support loading > firmware on it. > > From usb-devices: > T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P:

linux-next: build failure after merge of the akpm-current tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kernel/rtas.c: In function 'rtas_online_cpus_mask': arch/powerpc/kernel/rtas.c:917:37: error: 'GFP_KENREL' undeclared (first use in this function) if

linux-next: build failure after merge of the akpm-current tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kernel/rtas.c: In function 'rtas_online_cpus_mask': arch/powerpc/kernel/rtas.c:917:37: error: 'GFP_KENREL' undeclared (first use in this function) if

RE: Issue with commit de3ef1eb1cd - PM / core: Drop run_wake flag from struct dev_pm_info [Was: MEI-related WARN_ON() triggered during resume-from-sleep on v4.13-rc2+]

2017-07-31 Thread Usyskin, Alexander
Hi We using pci_dev_run_wake that changed in mentioned patch to decide if to replace usual PM callbacks with domain ones. IIRC, the mei device is not remote wakeable on that platform, so we should set domain callbacks. There was a patch in PM framework that squashes runtime suspend with usual

RE: Issue with commit de3ef1eb1cd - PM / core: Drop run_wake flag from struct dev_pm_info [Was: MEI-related WARN_ON() triggered during resume-from-sleep on v4.13-rc2+]

2017-07-31 Thread Usyskin, Alexander
Hi We using pci_dev_run_wake that changed in mentioned patch to decide if to replace usual PM callbacks with domain ones. IIRC, the mei device is not remote wakeable on that platform, so we should set domain callbacks. There was a patch in PM framework that squashes runtime suspend with usual

linux-next: build warning after merge of the akpm-current tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: fs/proc/task_mmu.c: In function 'show_map_vma': fs/proc/task_mmu.c:285:28: warning: unused variable 'priv' [-Wunused-variable] struct proc_maps_private *priv = m->private;

linux-next: build warning after merge of the akpm-current tree

2017-07-31 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: fs/proc/task_mmu.c: In function 'show_map_vma': fs/proc/task_mmu.c:285:28: warning: unused variable 'priv' [-Wunused-variable] struct proc_maps_private *priv = m->private;

Re: "BUG: unable to handle kernel NULL pointer dereference" in swapping shmem

2017-07-31 Thread Naoya Horiguchi
Hello Huang, On Tue, Aug 01, 2017 at 11:30:41AM +0800, Huang, Ying wrote: > Hi, Horiguchi san, > > Naoya Horiguchi writes: > > > Hi, > > > > I found the following bug when testing mmotm-2017-07-31-16-56. > > The triggering testcase just swaps in/out shmem pages. > >

Re: "BUG: unable to handle kernel NULL pointer dereference" in swapping shmem

2017-07-31 Thread Naoya Horiguchi
Hello Huang, On Tue, Aug 01, 2017 at 11:30:41AM +0800, Huang, Ying wrote: > Hi, Horiguchi san, > > Naoya Horiguchi writes: > > > Hi, > > > > I found the following bug when testing mmotm-2017-07-31-16-56. > > The triggering testcase just swaps in/out shmem pages. > > It seems to me related to

[GIT] Networking

2017-07-31 Thread David Miller
1) Handle notifier registry failures properly in tun/tap driver, from Tonghao Zhang. 2) Fix bpf verifier handling of subtraction bounds and add a testcase for this, from Edward Cree. 3) Increase reset timeout in ftgmac100 driver, from Ben Herrenschmidt. 4) Fix use after free in

[GIT] Networking

2017-07-31 Thread David Miller
1) Handle notifier registry failures properly in tun/tap driver, from Tonghao Zhang. 2) Fix bpf verifier handling of subtraction bounds and add a testcase for this, from Edward Cree. 3) Increase reset timeout in ftgmac100 driver, from Ben Herrenschmidt. 4) Fix use after free in

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 10:11 PM, Linus Torvalds wrote: > > And I just checked this on a separate branch, just because I wanted to > see what the overall diff was. There's a conflict [..] Side note: the overall patch looks fine to me. I like how it removes

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 10:11 PM, Linus Torvalds wrote: > > And I just checked this on a separate branch, just because I wanted to > see what the overall diff was. There's a conflict [..] Side note: the overall patch looks fine to me. I like how it removes complexity and code. I didn't test it

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 8:03 PM, Kees Cook wrote: > > Yeah, I'm open to whatever. It's not clear where it should go, but if > you want to take it and Linus doesn't want it "early", that works for > me. Linus, Andrew, thoughts? I'd actually like this to go in separately

[PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-07-31 Thread Rishabh Hardas
From: Rishabh Hardas Solved a few coding style issues, used BIT macro to set MINORBITS. Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff

Re: [PATCH v4 00/15] exec: Use sane stack rlimit under secureexec

2017-07-31 Thread Linus Torvalds
On Mon, Jul 31, 2017 at 8:03 PM, Kees Cook wrote: > > Yeah, I'm open to whatever. It's not clear where it should go, but if > you want to take it and Linus doesn't want it "early", that works for > me. Linus, Andrew, thoughts? I'd actually like this to go in separately from all the other

[PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-07-31 Thread Rishabh Hardas
From: Rishabh Hardas Solved a few coding style issues, used BIT macro to set MINORBITS. Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c

Re: [PATCH v2] Coccinelle: Script to remove unnecessary static on local variables

2017-07-31 Thread Julia Lawall
Acked-by: Julia Lawall On Mon, 31 Jul 2017, Gustavo A. R. Silva wrote: > Coccinelle script to remove unnecessary static on local variables when > the variables are not used before update. > > Signed-off-by: Gustavo A. R. Silva > --- > Changes in

Re: [PATCH v2] Coccinelle: Script to remove unnecessary static on local variables

2017-07-31 Thread Julia Lawall
Acked-by: Julia Lawall On Mon, 31 Jul 2017, Gustavo A. R. Silva wrote: > Coccinelle script to remove unnecessary static on local variables when > the variables are not used before update. > > Signed-off-by: Gustavo A. R. Silva > --- > Changes in v2: > Update header and Copyright note. > >

[PATCH 0/3] drm: Add CRTC-id based ioctls for vblank query/event

2017-07-31 Thread Keith Packard
Here's an updated series for the proposed new IOCTLs. Major changes since last time: * Leave driver API with 32-bit vblank counts * Use ktime_t instead of struct timespec. * Check for MODESETTING before using modesetting APIs * Ensure vblank is running in new get_sequence ioctl There are

[PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]

2017-07-31 Thread Keith Packard
These provide crtc-id based functions instead of pipe-number, while also offering higher resolution time (ns) and wider frame count (64) as required by the Vulkan API. v2: * Check for DRIVER_MODESET in new crtc-based vblank ioctls Failing to check this will oops the driver. * Ensure

[PATCH 1/3] drm: Widen vblank UAPI to 64 bits. Change vblank time to ktime_t [v2]

2017-07-31 Thread Keith Packard
This modifies the datatypes used by the vblank code to provide both 64 bits of vblank count and switch to using ktime_t for timestamps to increase resolution from microseconds to nanoseconds. The driver interfaces have been left using 32 bits of vblank count; all of the code necessary to widen

[PATCH 0/3] drm: Add CRTC-id based ioctls for vblank query/event

2017-07-31 Thread Keith Packard
Here's an updated series for the proposed new IOCTLs. Major changes since last time: * Leave driver API with 32-bit vblank counts * Use ktime_t instead of struct timespec. * Check for MODESETTING before using modesetting APIs * Ensure vblank is running in new get_sequence ioctl There are

[PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]

2017-07-31 Thread Keith Packard
These provide crtc-id based functions instead of pipe-number, while also offering higher resolution time (ns) and wider frame count (64) as required by the Vulkan API. v2: * Check for DRIVER_MODESET in new crtc-based vblank ioctls Failing to check this will oops the driver. * Ensure

[PATCH 1/3] drm: Widen vblank UAPI to 64 bits. Change vblank time to ktime_t [v2]

2017-07-31 Thread Keith Packard
This modifies the datatypes used by the vblank code to provide both 64 bits of vblank count and switch to using ktime_t for timestamps to increase resolution from microseconds to nanoseconds. The driver interfaces have been left using 32 bits of vblank count; all of the code necessary to widen

[PATCH 2/3] drm: Reorganize drm_pending_event to support future event types [v2]

2017-07-31 Thread Keith Packard
Place drm_event_vblank in a new union that includes that and a bare drm_event structure. This will allow new members of that union to be added in the future without changing code related to the existing vbl event type. Assignments to the crtc_id field are now done when the event is allocated,

[PATCH 2/3] drm: Reorganize drm_pending_event to support future event types [v2]

2017-07-31 Thread Keith Packard
Place drm_event_vblank in a new union that includes that and a bare drm_event structure. This will allow new members of that union to be added in the future without changing code related to the existing vbl event type. Assignments to the crtc_id field are now done when the event is allocated,

Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

2017-07-31 Thread Keyon Jie
On 2017年08月01日 11:30, Vinod Koul wrote: On Mon, Jul 31, 2017 at 06:47:34PM +0800, Cheng-Yi Chiang wrote: From: "U. Artie Eoff" Reset the hw_ptr before queuing the restore_stream_context work to eradicate a nasty white audio noise on resume. Liam, Jie? This on

Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

2017-07-31 Thread Keyon Jie
On 2017年08月01日 11:30, Vinod Koul wrote: On Mon, Jul 31, 2017 at 06:47:34PM +0800, Cheng-Yi Chiang wrote: From: "U. Artie Eoff" Reset the hw_ptr before queuing the restore_stream_context work to eradicate a nasty white audio noise on resume. Liam, Jie? This on legacy BYT driver..

[PATCH 3/7] mtd: spi-nor: cadence-quadspi: Add runtime PM support

2017-07-31 Thread Vignesh R
Add pm_runtime* calls to cadence-quadspi driver. This is required to switch on QSPI power domain on TI 66AK2G SoC during probe. Signed-off-by: Vignesh R --- drivers/mtd/spi-nor/cadence-quadspi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 3/7] mtd: spi-nor: cadence-quadspi: Add runtime PM support

2017-07-31 Thread Vignesh R
Add pm_runtime* calls to cadence-quadspi driver. This is required to switch on QSPI power domain on TI 66AK2G SoC during probe. Signed-off-by: Vignesh R --- drivers/mtd/spi-nor/cadence-quadspi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 4/7] ARM: dts: keystone-k2g: Add QSPI DT entry

2017-07-31 Thread Vignesh R
Add DT node for Cadence QSPI IP present in 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index

[PATCH 4/7] ARM: dts: keystone-k2g: Add QSPI DT entry

2017-07-31 Thread Vignesh R
Add DT node for Cadence QSPI IP present in 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index

[PATCH 1/7] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-07-31 Thread Vignesh R
As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access Controller programming sequence, a delay equal to couple QSPI master clock(~5ns) is required after setting CQSPI_REG_INDIRECTWR_START bit and writing data to the flash. Add a new compatible to handle the couple of cycles of delay

[PATCH 1/7] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-07-31 Thread Vignesh R
As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access Controller programming sequence, a delay equal to couple QSPI master clock(~5ns) is required after setting CQSPI_REG_INDIRECTWR_START bit and writing data to the flash. Add a new compatible to handle the couple of cycles of delay

[PATCH 5/7] ARM: dts: keystone-k2g-evm: Add QSPI node

2017-07-31 Thread Vignesh R
66AK2G EVM has a s25fl512s flash connected to QSPI CS0. Add pinmux for QSPI and DT entries for the same. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-evm.dts | 69 ++ 1 file changed, 69 insertions(+) diff --git

Re: [PATCH V2 00/12]: spmi: pmic-arb: Support for HW v5 and other fixes

2017-07-31 Thread kgunda
On 2017-07-28 12:40, Kiran Gunda wrote: v2: * [PATCH V2 04/12] spmi: pmic-arb: optimize qpnpint_irq_set_type function Added Stephen's Reviewed-by tag. * [PATCH V2 05/12] spmi: pmic-arb: fix memory allocation for mapping_table Added Fixes tag and Stephen's Reviewed-by tag. * [PATCH V2

[PATCH 2/7] mtd: spi-nor: cadence-quadspi: Add support to enable loopback clock circuit

2017-07-31 Thread Vignesh R
Cadence QSPI IP has a adapted loopback circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loopback circuit using QSPI return clock

[PATCH 0/7] K2G: Add QSPI support

2017-07-31 Thread Vignesh R
This series adds support for Cadence QSPI for 66AK2G SoC. The first three patches enhance the cadence-quadspi driver to support loopback clock and pm_runtime and tweaks for 66AK2G SoC. Remaining patches add DT nodes and enable the driver in defconfig. Tested on 66AK2G GP and ICE boards. Vignesh

[PATCH 5/7] ARM: dts: keystone-k2g-evm: Add QSPI node

2017-07-31 Thread Vignesh R
66AK2G EVM has a s25fl512s flash connected to QSPI CS0. Add pinmux for QSPI and DT entries for the same. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-evm.dts | 69 ++ 1 file changed, 69 insertions(+) diff --git

Re: [PATCH V2 00/12]: spmi: pmic-arb: Support for HW v5 and other fixes

2017-07-31 Thread kgunda
On 2017-07-28 12:40, Kiran Gunda wrote: v2: * [PATCH V2 04/12] spmi: pmic-arb: optimize qpnpint_irq_set_type function Added Stephen's Reviewed-by tag. * [PATCH V2 05/12] spmi: pmic-arb: fix memory allocation for mapping_table Added Fixes tag and Stephen's Reviewed-by tag. * [PATCH V2

[PATCH 2/7] mtd: spi-nor: cadence-quadspi: Add support to enable loopback clock circuit

2017-07-31 Thread Vignesh R
Cadence QSPI IP has a adapted loopback circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loopback circuit using QSPI return clock

[PATCH 0/7] K2G: Add QSPI support

2017-07-31 Thread Vignesh R
This series adds support for Cadence QSPI for 66AK2G SoC. The first three patches enhance the cadence-quadspi driver to support loopback clock and pm_runtime and tweaks for 66AK2G SoC. Remaining patches add DT nodes and enable the driver in defconfig. Tested on 66AK2G GP and ICE boards. Vignesh

[PATCH 6/7] ARM: dts: keystone-k2g-ice: Add QSPI node

2017-07-31 Thread Vignesh R
66AK2G ICE board has a s25fl256s1 flash connected to QSPI CS0. Add pinmux and DT entries for the same. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-ice.dts | 69 ++ 1 file changed, 69 insertions(+) diff --git

[PATCH 7/7] ARM: configs: keystone: Enable Cadence QSPI driver

2017-07-31 Thread Vignesh R
66AK2G SoC has a Cadence QSPI IP. Therefore, enable cadence-quadspi driver as part of keystone_defconfig. Since, QSPI flash can be used to for root filesystem, built it into the kernel instead of module. Signed-off-by: Vignesh R --- arch/arm/configs/keystone_defconfig | 1 + 1

[PATCH 6/7] ARM: dts: keystone-k2g-ice: Add QSPI node

2017-07-31 Thread Vignesh R
66AK2G ICE board has a s25fl256s1 flash connected to QSPI CS0. Add pinmux and DT entries for the same. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-ice.dts | 69 ++ 1 file changed, 69 insertions(+) diff --git

[PATCH 7/7] ARM: configs: keystone: Enable Cadence QSPI driver

2017-07-31 Thread Vignesh R
66AK2G SoC has a Cadence QSPI IP. Therefore, enable cadence-quadspi driver as part of keystone_defconfig. Since, QSPI flash can be used to for root filesystem, built it into the kernel instead of module. Signed-off-by: Vignesh R --- arch/arm/configs/keystone_defconfig | 1 + 1 file changed, 1

[PATCH 2/6] dt-bindings: ti,omap-hsmmc: Add 66AK2G mmc controller

2017-07-31 Thread Lokesh Vutla
Update the ti,omap-hsmmc.txt to include information about 66AK2G specific mmc controller. Also cleanup the entries under optional properties to look a bit nicer. Signed-off-by: Lokesh Vutla --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 52 +++--- 1

[PATCH 2/6] dt-bindings: ti,omap-hsmmc: Add 66AK2G mmc controller

2017-07-31 Thread Lokesh Vutla
Update the ti,omap-hsmmc.txt to include information about 66AK2G specific mmc controller. Also cleanup the entries under optional properties to look a bit nicer. Signed-off-by: Lokesh Vutla --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 52 +++--- 1 file changed, 37

[PATCH 6/6] ARM: configs: keystone: Enable MMC and regulators

2017-07-31 Thread Lokesh Vutla
Enable the TI OMAP HSMMC and fixed regulator support for keystone platforms. Signed-off-by: Lokesh Vutla --- arch/arm/configs/keystone_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig

[PATCH 6/6] ARM: configs: keystone: Enable MMC and regulators

2017-07-31 Thread Lokesh Vutla
Enable the TI OMAP HSMMC and fixed regulator support for keystone platforms. Signed-off-by: Lokesh Vutla --- arch/arm/configs/keystone_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index

[PATCH 0/6] ARM: dts: keystone-k2g: Add support for eDMA and MMC

2017-07-31 Thread Lokesh Vutla
This series adds DT nodes and documentation for eDMA and MMC IPs on Keystone 66AK2G SoC. Also enable the required configs in keystone_defconfig. This series depends on Keerthy's gpio node patches on 66AK2G: https://patchwork.kernel.org/patch/9864311/ Tested: k2g-evm with rootfs on mmc:

[PATCH 5/6] ARM: dts: keystone-k2g-evm: Enable MMC0 and MMC1

2017-07-31 Thread Lokesh Vutla
Enable MMC0 which is used for micro SD and MMC1 which is used for the on board EMMC. Signed-off-by: Lokesh Vutla [fcoo...@ti.com: add mmc1, bufferclass and pullup/pulldown settings] Signed-off-by: Franklin S Cooper Jr [nsek...@ti.com: add card detect GPIO

[PATCH 0/6] ARM: dts: keystone-k2g: Add support for eDMA and MMC

2017-07-31 Thread Lokesh Vutla
This series adds DT nodes and documentation for eDMA and MMC IPs on Keystone 66AK2G SoC. Also enable the required configs in keystone_defconfig. This series depends on Keerthy's gpio node patches on 66AK2G: https://patchwork.kernel.org/patch/9864311/ Tested: k2g-evm with rootfs on mmc:

[PATCH 5/6] ARM: dts: keystone-k2g-evm: Enable MMC0 and MMC1

2017-07-31 Thread Lokesh Vutla
Enable MMC0 which is used for micro SD and MMC1 which is used for the on board EMMC. Signed-off-by: Lokesh Vutla [fcoo...@ti.com: add mmc1, bufferclass and pullup/pulldown settings] Signed-off-by: Franklin S Cooper Jr [nsek...@ti.com: add card detect GPIO support] Signed-off-by: Sekhar Nori

[PATCH 4/6] ARM: dts: keystone-k2g: add MMC0 and MMC1 nodes

2017-07-31 Thread Lokesh Vutla
Add device tree nodes for MMC0 and MMC1 pesent on 66AK2G device. Signed-off-by: Lokesh Vutla [nsek...@ti.com: fix clock-names for mmc1 node] Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/keystone-k2g.dtsi | 32 1 file

[PATCH 4/6] ARM: dts: keystone-k2g: add MMC0 and MMC1 nodes

2017-07-31 Thread Lokesh Vutla
Add device tree nodes for MMC0 and MMC1 pesent on 66AK2G device. Signed-off-by: Lokesh Vutla [nsek...@ti.com: fix clock-names for mmc1 node] Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/keystone-k2g.dtsi | 32 1 file changed, 32 insertions(+) diff --git

[PATCH 3/6] ARM: dts: keystone-k2g: Add eDMA nodes

2017-07-31 Thread Lokesh Vutla
From: Peter Ujfalusi Add nodes for eDMA0 and eDMA1. Signed-off-by: Peter Ujfalusi Signed-off-by: Dave Gerlach Signed-off-by: Lokesh Vutla --- arch/arm/boot/dts/keystone-k2g.dtsi | 66

[PATCH 1/6] dt-bindings: ti,edma: Add 66AK2G specific information

2017-07-31 Thread Lokesh Vutla
Update ti,edma binding documentation to reflect 66AK2G specific properties. Signed-off-by: Lokesh Vutla --- Documentation/devicetree/bindings/dma/ti-edma.txt | 95 +-- 1 file changed, 90 insertions(+), 5 deletions(-) diff --git

[PATCH 3/6] ARM: dts: keystone-k2g: Add eDMA nodes

2017-07-31 Thread Lokesh Vutla
From: Peter Ujfalusi Add nodes for eDMA0 and eDMA1. Signed-off-by: Peter Ujfalusi Signed-off-by: Dave Gerlach Signed-off-by: Lokesh Vutla --- arch/arm/boot/dts/keystone-k2g.dtsi | 66 + 1 file changed, 66 insertions(+) diff --git

[PATCH 1/6] dt-bindings: ti,edma: Add 66AK2G specific information

2017-07-31 Thread Lokesh Vutla
Update ti,edma binding documentation to reflect 66AK2G specific properties. Signed-off-by: Lokesh Vutla --- Documentation/devicetree/bindings/dma/ti-edma.txt | 95 +-- 1 file changed, 90 insertions(+), 5 deletions(-) diff --git

[PATCH v2] Coccinelle: Script to remove unnecessary static on local variables

2017-07-31 Thread Gustavo A. R. Silva
Coccinelle script to remove unnecessary static on local variables when the variables are not used before update. Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Update header and Copyright note. scripts/coccinelle/misc/static_unnecessary.cocci | 96

[PATCH v2] Coccinelle: Script to remove unnecessary static on local variables

2017-07-31 Thread Gustavo A. R. Silva
Coccinelle script to remove unnecessary static on local variables when the variables are not used before update. Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Update header and Copyright note. scripts/coccinelle/misc/static_unnecessary.cocci | 96 1 file

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread kbuild test robot
Hi Ashish, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.13-rc3 next-20170731] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ashish-Kalra/staging-ks7010-fix

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread kbuild test robot
Hi Ashish, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.13-rc3 next-20170731] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ashish-Kalra/staging-ks7010-fix

RE: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

2017-07-31 Thread Eoff, Ullysses A
This patch was originally submitted in the context of the ChromiumOS kernel 3.10 for BYT (https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-reviews/AsoBhfHzQg8). > -Original Message- > From: Koul, Vinod > Sent: Monday, July 31, 2017 8:30 PM > To: Cheng-Yi Chiang

RE: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

2017-07-31 Thread Eoff, Ullysses A
This patch was originally submitted in the context of the ChromiumOS kernel 3.10 for BYT (https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-reviews/AsoBhfHzQg8). > -Original Message- > From: Koul, Vinod > Sent: Monday, July 31, 2017 8:30 PM > To: Cheng-Yi Chiang ; Jie,

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread kbuild test robot
Hi Ashish, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.13-rc3 next-20170731] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ashish-Kalra/staging-ks7010-fix

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-07-31 Thread kbuild test robot
Hi Ashish, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.13-rc3 next-20170731] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ashish-Kalra/staging-ks7010-fix

[PATCH] futex: allow for compiling out PI support

2017-07-31 Thread Nicolas Pitre
This makes it possible to preserve basic futex support and compile out the PI support when RT mutexes are not available. Signed-off-by: Nicolas Pitre --- include/linux/futex.h | 7 ++- init/Kconfig| 7 ++- kernel/futex.c

[PATCH] futex: allow for compiling out PI support

2017-07-31 Thread Nicolas Pitre
This makes it possible to preserve basic futex support and compile out the PI support when RT mutexes are not available. Signed-off-by: Nicolas Pitre --- include/linux/futex.h | 7 ++- init/Kconfig| 7 ++- kernel/futex.c | 22

[PATCH v3] serio: PS/2 gpio bit banging driver for the serio bus

2017-07-31 Thread Danilo Krummrich
This driver provides PS/2 serio bus support by implementing bit banging with the GPIO API. The GPIO pins, data and clock, can be configured with a node in the device tree or by static platform data. Writing to a device is supported as well, though it is not recommended as the timings to be halt

[PATCH v3] serio: PS/2 gpio bit banging driver for the serio bus

2017-07-31 Thread Danilo Krummrich
This driver provides PS/2 serio bus support by implementing bit banging with the GPIO API. The GPIO pins, data and clock, can be configured with a node in the device tree or by static platform data. Writing to a device is supported as well, though it is not recommended as the timings to be halt

Re: linux-next: manual merge of the rcu tree with the tip tree

2017-07-31 Thread Mathieu Desnoyers
- On Aug 1, 2017, at 12:03 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Tue, Aug 01, 2017 at 12:04:05AM +, Mathieu Desnoyers wrote: >> - On Jul 31, 2017, at 12:13 PM, Paul E. McKenney >> paul...@linux.vnet.ibm.com >> wrote: >> >> > On Mon, Jul 31, 2017 at 01:50:29PM

Re: linux-next: manual merge of the rcu tree with the tip tree

2017-07-31 Thread Mathieu Desnoyers
- On Aug 1, 2017, at 12:03 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Tue, Aug 01, 2017 at 12:04:05AM +, Mathieu Desnoyers wrote: >> - On Jul 31, 2017, at 12:13 PM, Paul E. McKenney >> paul...@linux.vnet.ibm.com >> wrote: >> >> > On Mon, Jul 31, 2017 at 01:50:29PM

Re: [PATCH] futex: split PI support to a file of its own

2017-07-31 Thread Nicolas Pitre
On Mon, 31 Jul 2017, Thomas Gleixner wrote: > But I really do not agree with your reasoning about easier to understand > and maintain. I have the dubious pleasure to stare into that code on a > regular base. PI and non PI share a lot of code and it's really not helping > to have two separate

Re: [PATCH] futex: split PI support to a file of its own

2017-07-31 Thread Nicolas Pitre
On Mon, 31 Jul 2017, Thomas Gleixner wrote: > But I really do not agree with your reasoning about easier to understand > and maintain. I have the dubious pleasure to stare into that code on a > regular base. PI and non PI share a lot of code and it's really not helping > to have two separate

[stable 4.4: PATCH] sched/cputime: Fix prev steal time accouting during CPU hotplug

2017-07-31 Thread Andres Oportus
commit 3d89e5478bf550a50c99e93adf659369798263b0 upstream. Commit: e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU hotplug") ... set rq->prev_* to 0 after a CPU hotplug comes back, in order to fix the case where (after CPU hotplug) steal time is smaller than

[stable 4.4: PATCH] sched/cputime: Fix prev steal time accouting during CPU hotplug

2017-07-31 Thread Andres Oportus
commit 3d89e5478bf550a50c99e93adf659369798263b0 upstream. Commit: e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU hotplug") ... set rq->prev_* to 0 after a CPU hotplug comes back, in order to fix the case where (after CPU hotplug) steal time is smaller than

  1   2   3   4   5   6   7   8   9   10   >