[PATCH 05/11] rxrpc: procfs file to list local endpoints

2016-03-07 Thread David Howells
Add a proc file to list local rxrpc endpoints using the object cache facility to do much of the work. Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c |3 +++ net/rxrpc/local-object.c | 29 + 2 files changed, 32 insertions(+) diff --git a/net/rxrpc/af

[PATCH 10/11] rxrpc: Rename ar-error.c to peer-event.c

2016-03-07 Thread David Howells
Rename ar-error.c to peer-event.c. This will form the core of the peer event handling code. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 net/rxrpc/ar-error.c| 281 --- net/rxrpc/ar-internal.h | 12 +- net/rxrpc/peer-event.

[PATCH 09/11] rxrpc: Add /proc/net/rxrpc_peers to display the known remote endpoints

2016-03-07 Thread David Howells
Add /proc/net/rxrpc_peers to display the remote endpoint records that are resident in the peer cache. Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c|3 +++ net/rxrpc/peer-object.c | 32 2 files changed, 35 insertions(+) diff --git a/net/rxrpc/a

[PATCH 06/11] rxrpc: Rename ar-local.c to local-event.c

2016-03-07 Thread David Howells
Rename ar-local.c to local-event.c. What's left in the file is the local endpoint event/packet handling code after the object management has been separated out. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 - net/rxrpc/ar-internal.h | 10 ++-- net/rxrpc/ar-local.c| 11

[PATCH 04/11] rxrpc: Implement local endpoint cache

2016-03-07 Thread David Howells
Implement the local RxRPC endpoint cache. Only the primary cache is used. This is indexed on the following details: - Local network transport family - currently only AF_INET. - Local network transport type - currently only UDP. - Local network transport address. The hash isn't very big sin

[PATCH v3 3/7] perf tools: Support multiple sort keys in a hierarchy level

2016-03-07 Thread Namhyung Kim
This implements having multiple sort keys in a single hierarchy level. Originally only single sort key is supported for each level, but now using the group syntax with '{ }', it can set more than one sort key in one level. Note that now it needs to quote in order to prevent shell interpretation.

[PATCH 03/11] rxrpc: Separate local endpoint object handling out into its own file

2016-03-07 Thread David Howells
Separate local endpoint object handling out into its own file preparatory to overhauling it to use the new object cache. The original file is then be used exclusively for the local endpoint packet and event handling. Signed-off-by: David Howells --- net/rxrpc/Makefile |1 net/rxrpc/

[PATCH 02/11] rxrpc: Do procfs lists through objcache

2016-03-07 Thread David Howells
Use the object cache primary hash to provide lists of RxRPC objects through /proc/net/ for all caches where desired. Each user of the cache just needs to provide a show function in its objcache struct and register the proc file with objcache_seq_fops as its file operations. Signed-off-by: David H

[PATCH 01/11] rxrpc: Add a common object cache

2016-03-07 Thread David Howells
Add a common object cache implementation for RxRPC. This will be used to cache objects of various types (calls, connections, local and remote endpoint records). Each object that would be cached must contain an obj_node struct for the cache to use. The object's usage count and link pointers are h

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Sergey Senozhatsky
On (03/07/16 11:52), Jan Kara wrote: [..] > So for UP systems, we should by default disable async printing anyway I > suppose. It is just a pointless overhead. So please just make printk_sync > default to true if !CONFIG_SMP. ok, thanks. > When IRQs are disabled, you're right we will have a chang

Re: [TRIVIAL PATCH] treewide: Remove unnecessary 0x prefixes before %pa extension uses

2016-03-07 Thread Vinod Koul
On Fri, Mar 04, 2016 at 11:46:32PM -0800, Joe Perches wrote: > Since commit 3cab1e711297 ("lib/vsprintf: refactor duplicate code > to special_hex_number()") %pa uses have been ouput with a 0x prefix. > > These 0x prefixes in the formats are unnecessary. > For this: > drivers/dma/at_hdmac_regs.h

RE: [PATCH 1/2] bnx2x:Fix error handling for the function bnx2x_set_mutl_gpio

2016-03-07 Thread Ariel Elior
> -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Monday, March 07, 2016 4:05 AM > To: Ariel Elior > Cc: netdev ; linux-kernel > > Subject: [PATCH 1/2] bnx2x:Fix error handling for the function > bnx2x_set_mutl_gpio > > This fixes the error handling for

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Vinod Koul
On Mon, Mar 07, 2016 at 10:59:31AM +0100, Boris Brezillon wrote: > +/* Dedicated DMA parameter register layout */ > +#define SUN4I_DDMA_PARA_DST_DATA_BLK_SIZE(n) (((n) - 1) << 24) > +#define SUN4I_DDMA_PARA_DST_WAIT_CYCLES(n) (((n) - 1) << 16) > +#define SUN4I_DDMA_PARA_SRC_DATA_BLK_SIZE(n) (((n)

[PATCH 6/7] leds: max8997: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove max8997_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifi

[PATCH 5/7] leds: da903x: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove da903x_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifie

[PATCH 3/7] leds: wm381x-status: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove wm831x_status_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identi

[PATCH 7/7] leds: lm3533: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. To be compatible with this change, remove an unnecessary label by replacing it with direct return statement. The Coccinelle semantic patch used to make this

[PATCH 0/7] leds: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifier p, probefn, removefn; @@ struct platform_driver p = { .probe

[PATCH 4/7] leds: s3c24xx: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove s3c24xx_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifi

[PATCH 2/7] leds: lp8788: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove lp8788_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifie

[PATCH 1/7] leds: 88pm860x: Use devm_led_classdev_register

2016-03-07 Thread Amitoj Kaur Chawla
Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove pm860x_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifie

Re: [PATCH 1/3] frv: remove stray pci_{alloc,free}_consistent declaration

2016-03-07 Thread David Howells
Acked-by: David Howells

Re: [PATCH] mm: remove __GFP_NOFAIL is deprecated comment

2016-03-07 Thread Vlastimil Babka
On 02/25/2016 02:48 PM, Michal Hocko wrote: On Thu 25-02-16 13:36:11, Nikolay Borisov wrote: - if (unlikely(gfp_flags & __GFP_NOFAIL)) { - /* -* __GFP_NOFAIL is not to be used in new code. -* -

Re: [PATCH 2/4 v2] drm: Add DT bindings documentation for ARC PGU display controller

2016-03-07 Thread Alexey Brodkin
Hi Rob, On Fri, 2016-03-04 at 22:30 -0600, Rob Herring wrote: > On Thu, Mar 03, 2016 at 05:39:14PM +0300, Alexey Brodkin wrote: > > > > This add DT bindings documentation for ARC PGU display controller. > > > > Signed-off-by: Alexey Brodkin > > Cc: Rob Herring > > Cc: Pawel Moll > > Cc: Mark

[PATCH v2] perf subcmd: Bugfix more exactly handle the error about 'PARSE_OPT_EXCLUSIVE'

2016-03-07 Thread Taeung Song
perf-probe have two options '--list' and '--func'. This options have a option flag 'PARSE_OPT_EXCLUSIVE'. But when that kind of this options are used at same time, handling this error has latent problem. (Even though there isn't any problem at this point in time e.g) # perf probe --list --func

Re: [PATCH] security: integrity: Remove select to deleted option PUBLIC_KEY_ALGO_RSA

2016-03-07 Thread David Howells
Andreas Ziegler wrote: > Commit d43de6c780a8 ("akcipher: Move the RSA DER encoding check to > the crypto layer") removed the Kconfig option PUBLIC_KEY_ALGO_RSA, > but forgot to remove a 'select' to this option in the definition of > INTEGRITY_ASYMMETRIC_KEYS. > > Let's remove the select, as it's

Re: [ceph] what's going on with d_rehash() in splice_dentry()?

2016-03-07 Thread Al Viro
On Mon, Mar 07, 2016 at 06:25:13AM -0500, Sage Weil wrote: > That looks okay, but changing d_rehash to d_add still means you're doing > te d_instantiate(dn, NULL) in the d_unhashed case; is there a reason you > changed that line? Is the dentry_rcuwalk_invalidate in __d_instantiate is > importa

[PATCH] rtc: ds1685: actually spin forever in poweroff error path

2016-03-07 Thread Josh Poimboeuf
objtool reports the following warnings: drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_work_queue()+0x0: duplicate frame pointer save drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_work_queue()+0x3: duplicate frame pointer setup drivers/rtc/rtc-ds1685.o: warning: objtool: d

RE: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization

2016-03-07 Thread Li, Liang Z
> Cc: Roman Kagan; Dr. David Alan Gilbert; ehabk...@redhat.com; > k...@vger.kernel.org; quint...@redhat.com; linux-kernel@vger.kernel.org; > qemu-de...@nongnu.org; linux...@kvack.org; amit.s...@redhat.com; > pbonz...@redhat.com; a...@linux-foundation.org; > virtualizat...@lists.linux-foundation.org

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/05/2016 09:07 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 2 Mar 2016 13:39:37 -0700 In this first implementation I am enabling ADI for hugepages only since these pages are locked in memory and hence avoid the issue of saving and restoring tags.

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Boris Brezillon
Hi Vinod, On Mon, 7 Mar 2016 20:24:29 +0530 Vinod Koul wrote: > On Mon, Mar 07, 2016 at 10:59:31AM +0100, Boris Brezillon wrote: > > +/* Dedicated DMA parameter register layout */ > > +#define SUN4I_DDMA_PARA_DST_DATA_BLK_SIZE(n) (((n) - 1) << 24) > > +#define SUN4I_DDMA_PARA_DST_WAIT_CYCL

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-07 Thread Toshi Kani
On Sun, 2016-03-06 at 19:35 -0500, Paul Gortmaker wrote: > [Re: runtime regression with "x86/mm/pat: Emulate PAT when it is > disabled"] On 04/03/2016 (Fri 15:12) Toshi Kani wrote: > > > On Fri, 2016-03-04 at 13:37 -0500, Paul Gortmaker wrote: > > > [Re: runtime regression with "x86/mm/pat: Emulat

[PATCH v3 11/14] i2c-octeon: Add workaround for broken irqs on CN3860

2016-03-07 Thread Jan Glauber
From: David Daney CN3860 does not interrupt the CPU when the i2c status changes. If we get a timeout, and see the status has in fact changed, we know we have this problem, and drop back to polling. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 46

[PATCH v3 04/14] i2c-octeon: Support I2C_M_RECV_LEN

2016-03-07 Thread Jan Glauber
From: David Daney If I2C_M_RECV_LEN is set consider the length byte. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c

[PATCH v3 05/14] i2c-octeon: Make adapter timeout tunable

2016-03-07 Thread Jan Glauber
From: Peter Swain Make the i2c adapter timeout a module parameter to allow upper-level target device drivers to retry with their own logic before their own timeouts abort operations. For example, at24 eeprom driver retries for 25ms when -EAGAIN indicates that an eeprom has gone unresponsive whil

[PATCH v3 03/14] i2c-octeon: Cleanup resource allocation code

2016-03-07 Thread Jan Glauber
From: David Daney Use resource start and size directly. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c i

[PATCH v3 02/14] i2c-octeon: Cleanup i2c-octeon driver

2016-03-07 Thread Jan Glauber
Cleanup only without functional change. - Removed DRV_VERSION - use BIT_ULL macro - use defines instead of plain values - rename waitqueue return value to time_left - prefix TWSI_INT defines - sort local variables by length - fix indentation and whitespace errors - make function return void if the

[PATCH v3 10/14] i2c-octeon: Faster operation when IFLG signals late

2016-03-07 Thread Jan Glauber
From: Peter Swain Some versions can deliver low-level twsi irq before twsi_ctl.iflg is set, leading to timeout-driven i/o. When an irq signals event, but woken task does not see the expected twsi_ctl.iflg, re-check about 80uS later. EEPROM reads on 100kHz i2c now measure ~5.2kB/s, about 1/2 what

[PATCH v3 13/14] i2c-thunderx: Add i2c driver for ThunderX SOC

2016-03-07 Thread Jan Glauber
The ThunderX SOC uses the same i2c block as the Octeon SOC. The main difference is that on ThunderX the device is a PCI device so device probing is done via PCI, interrupts are MSIX and the clock is taken from device tree. Signed-off-by: Jan Glauber --- drivers/i2c/busses/Kconfig |

[PATCH v3 14/14] i2c-thunderx: Add smbus support

2016-03-07 Thread Jan Glauber
Add smbus alert interrupt support. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-cavium.h| 5 + drivers/i2c/busses/i2c-thunderx-core.c | 35 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/i2c/busses/i2c-cavium.h b/drivers/i2c/busse

[PATCH v3 12/14] i2c-octeon: Split the driver into two parts

2016-03-07 Thread Jan Glauber
Move common functionality into a separate file in preparation of the re-use from the ThunderX i2c driver. Use a broken_irq_check flag to avoid including the OCTEON_IS_MODEL test in the shared part. Signed-off-by: Jan Glauber --- drivers/i2c/busses/Makefile |1 + drivers/i2c/busses/

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Sergey Senozhatsky
On (03/07/16 13:16), Jan Kara wrote: [..] > > So for UP systems, we should by default disable async printing anyway I > > suppose. It is just a pointless overhead. So please just make printk_sync > > default to true if !CONFIG_SMP. > > > > When IRQs are disabled, you're right we will have a change

[PATCH v3 07/14] dt-bindings: i2c: Add Octeon cn78xx TWSI

2016-03-07 Thread Jan Glauber
Add compatible string for Cavium Octeon cn78XX SOCs TWSI. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Signed-off-by: Jan Glauber Acked-by: David Daney --- Documentation/devicetree/bindings/i2c/i2c-octeon.txt | 6 ++ 1 file changed, 6 insertions(+)

[PATCH v3 01/14] i2c-octeon: Cleanup kerneldoc comments

2016-03-07 Thread Jan Glauber
Remove point after parameter description and replace kerneldoc by a comment if it has no additional no value. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 89 ++--- 1 file changed, 39 insertions(+), 50 deletions(-) diff --git a/drivers/i2c

[PATCH v3 09/14] i2c-octeon: Flush TWSI writes with readback

2016-03-07 Thread Jan Glauber
From: Peter Swain Signed-off-by: Peter Swain Signed-off-by: Jan Glauber Acked-by: David Daney --- drivers/i2c/busses/i2c-octeon.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c index b7

[PATCH v3 06/14] i2c-octeon: Enable high-level controller and improve on bus contention

2016-03-07 Thread Jan Glauber
From: David Daney Use High Level Controller when possible. Extend octeon_i2c_write_sw() to expose the full 32bit data field. Extend octeon_i2c_read_sw() to provide 8bit & 64bit versions, allowing verification that the correct SW_TWSI sub-register is being read, unlike the naked __raw_readq(). i

[PATCH v3 00/14] i2c-octeon and i2c-thunderx drivers

2016-03-07 Thread Jan Glauber
This series for the Octeon i2c driver is an attempt to upstream some bug fixes and features that accumulated for some time. On top of the Octeon changes a i2c driver for the ThunderX SOC is added which uses the same functional block as the Octeon driver. Patches #1-3 are cleanups. Patches #4-11 a

[PATCH v3 08/14] i2c-octeon: Add support for cn78XX chips

2016-03-07 Thread Jan Glauber
From: David Daney cn78XX has a different interrupt architecture, so we have to manage the interrupts differently. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 149 +++- 1 file changed, 133 insertions(+), 16 del

[PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates

2016-03-07 Thread Peter Ujfalusi
Hi, Changes since v1: - hwmod patch for eDMA (tpcc/tptc0/tptc1) removed as it is already in linux-next - mcasp hwmod changes: - all module have HWMOD_OPT_CLKS_NEEDED and no HWMOD_SWSUP_SIDLE (per Paul's comment) - mcasp1,2: add ahclkr as opt clock since those modules have fclk, ahclkx and

[PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm

2016-03-07 Thread Peter Ujfalusi
Move the sDMA xbar nodes under the L4 interconnect node. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 098b4dd14b01..db7fda97a4fa

[PATCH v2 10/10] ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8

2016-03-07 Thread Peter Ujfalusi
Add nodes to represent all McASP ports in the dra7 family. For system consistency use the eDMA for audio operations. sDMA would be fine for 4/5/6/7/8 since their DAT port is not through L3 interconnect. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7.dtsi | 114 +

[PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name

2016-03-07 Thread Peter Ujfalusi
rename the mcasp8_ahclk_mux to mcasp8_ahclkx_mux. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- drivers/clk/ti/clk-7xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/d

[PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8

2016-03-07 Thread Peter Ujfalusi
Add missing data for all McASP ports for the dra7 family Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 237 ++ 1 file changed, 237 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7

[PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3

2016-03-07 Thread Peter Ujfalusi
Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15

[PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3

2016-03-07 Thread Peter Ujfalusi
Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/bo

[PATCH v2 05/10] ARM: DTS: dra72-evm: Enable AFIFO use for McASP3

2016-03-07 Thread Peter Ujfalusi
Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra72-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/

[PATCH v2 06/10] ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node

2016-03-07 Thread Peter Ujfalusi
The assigned-clock* needs to be in the root of the device's node. If it is in the sub-node the CCF will ignore it. Since the clkout2 is used by the codec as MCLK, move the clock parent selection to that node. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 5 +++-- 1

[PATCH v2 03/10] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3

2016-03-07 Thread Peter Ujfalusi
From: Misael Lopez Cruz McASP3 does not support constant addressing mode on the DAT port, so increment transfers must be used instead. This restriction is also applicable for McASP1 and McASP2. This DMA addressing constraint poses a major problem for sDMA where constant addressing mode is used

[PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA

2016-03-07 Thread Peter Ujfalusi
DRA7 family has eDMA available along with the sDMA and in some cases it is better suited for servicing peripherals. Add the needed nodes for eDMA to be usable: edma-tpcc, edma-tptc0/1 and the edma-xbar. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7.dtsi | 48 +

Re: [PATCH] EDAC, sb_edac: Fixed logic error in sb_edac driver

2016-03-07 Thread Borislav Petkov
On Mon, Mar 07, 2016 at 03:30:45PM +0100, Hubert Chrzaniuk wrote: > Patch corrects a typo introduced previously. > As a result under some configurations dimms were not > correctly recognized. Problem affects only Xeon Phi architecture. > > Signed-off-by: Hubert Chrzaniuk > --- > drivers/edac/sb_

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-07 Thread Paul E. McKenney
On Mon, Mar 07, 2016 at 03:02:05PM +0800, Kefeng Wang wrote: > > > On 2016/3/7 13:40, Davidlohr Bueso wrote: > > On Mon, 07 Mar 2016, Kefeng Wang wrote: > >> On 2016/3/3 16:36, Davidlohr Bueso wrote: > > > >>> +/* > >>> + * Indicates early cleanup, meaning that the test has not run, > >>

Re: Question about percpu_free_rwsem function

2016-03-07 Thread Paul E. McKenney
On Mon, Mar 07, 2016 at 03:28:11AM +, Daeho Jeong wrote: > Hi, > > I got a trouble while I am developing a patch for EXT4 filesytem. > Actually, I used a percpu rw semaphore in my patch and there was no > problem when I built EXT4 filesystem as built-in mode. However, when > kbuild auto build

Re: [linux-sunxi] [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Priit Laes
On Mon, 2016-03-07 at 10:59 +0100, Boris Brezillon wrote: > Some drivers might need to tweak the block size and wait cycles > values > to get better performances. > Create and export the sun4i_dma_set_chan_config() to do that. > > Signed-off-by: Boris Brezillon > --- > drivers/dma/sun4i-dma.c

Re: [PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-07 Thread Sinan Kaya
On 3/6/2016 11:09 PM, Eric Auger wrote: >> #define module_vfio_reset_handler(compat, acpihid, reset)\ >> > MODULE_ALIAS("vfio-reset:" acpihid? acpihid: compat); >> > \ >> > >> > This way, we'll create an alias with one of the provided strings. > What if you want

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-03-07 Thread Sebastian Andrzej Siewior
On 02/29/2016 05:58 AM, Mike Galbraith wrote: > WRT -rt: if dma tasklets really do have hard (ish) constraints, -rt > recently "broke" in the same way.. of all softirqs which are deferred > to kthread context, due to a recent change, only timer/hrtimer are > executed at realtime priority by default

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Rob Gardner
On 03/07/2016 07:07 AM, Khalid Aziz wrote: On 03/05/2016 09:07 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 2 Mar 2016 13:39:37 -0700 In this first implementation I am enabling ADI for hugepages only since these pages are locked in memory and hence avoid the issue of

Re: [PART1 RFC v2 06/10] svm: Add interrupt injection via AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > +static void svm_deliver_avic_intr(struct kvm_vcpu *vcpu, int vec) > +{ > + struct vcpu_svm *svm = to_svm(vcpu); > + > + kvm_lapic_set_vector(vec, avic_get_bk_page_entry(svm, APIC_IRR)); > + > + if (vcpu->mode == IN_GUEST_MODE) { > +

Tool for sampling /proc/net/softnet_stat statistics

2016-03-07 Thread Jesper Dangaard Brouer
Hi Google, While playing with RPS, I needed to read stats from /proc/net/softnet_stat and the tools I could find [1] and [2] was not very good. I lack of better, I coded up my own tool softnet_stat.pl here: https://github.com/netoptimizer/network-testing/blob/master/bin/softnet_stat.pl The out

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > + > + /* Do not do cr8 intercept if AVIC is enabled. */ No need for this comment. > + svm_x86_ops.update_cr8_intercept = NULL; > } else { > svm_x86_ops.deliver_posted_interrupt = NULL; > } > @@

Re: [PATCH] mm: limit direct reclaim for higher order allocations

2016-03-07 Thread Vlastimil Babka
On 02/24/2016 10:38 PM, Rik van Riel wrote: For multi page allocations smaller than PAGE_ALLOC_COSTLY_ORDER, the kernel will do direct reclaim if compaction failed for any reason. This worked fine when Linux systems had 128MB RAM, but on my 24GB system I frequently see higher order allocations fr

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Tejun Heo
Hello, On Mon, Mar 07, 2016 at 09:22:30AM +0100, Jan Kara wrote: > > > I don't know what MAYDAY is. I'm talking about a situation where > > > printing_work > > > work item is not processed (i.e. printing_work_func() is not called) until > > > current work item calls schedule_timeout_*(). That wa

Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > > +static void svm_vcpu_blocking(struct kvm_vcpu *vcpu) > +{ > + avic_set_running(vcpu, false); > +} > + > +static void svm_vcpu_unblocking(struct kvm_vcpu *vcpu) > +{ > + avic_set_running(vcpu, true); > +} > + > static unsigned long

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 7:30 AM, Rob Gardner wrote: > On 03/07/2016 07:07 AM, Khalid Aziz wrote: >> >> On 03/05/2016 09:07 PM, David Miller wrote: >>> >>> From: Khalid Aziz >>> Date: Wed, 2 Mar 2016 13:39:37 -0700 >>> In this first implementation I am enabling ADI for hugepages

Re: [PART1 RFC v2 03/10] svm: Introduce new AVIC VMCB registers

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > From: Suravee Suthikulpanit > > Introduce new AVIC VMCB registers. Also breakdown int_ctl register > into bit-field for ease of use. > > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/include/asm/svm.h | 29 --

Re: [PATCH v7 2/2] perf/x86/amd/power: Add AMD accumulated power reporting mechanism

2016-03-07 Thread Thomas Gleixner
On Mon, 7 Mar 2016, Huang Rui wrote: > > Suggested-by: Peter Zijlstra > Suggested-by: Ingo Molnar > Suggested-by: Borislav Petkov > Signed-off-by: Huang Rui > Cc: Guenter Roeck Reviewed-by: Thomas Gleixner

[PATCH v7 1/4] Documentation: bindings: add description of phy for sdhci-of-arasan

2016-03-07 Thread Shawn Lin
This patch adds phys and phy-names for sdhci-of-arasan as required properties for arasan,sdhci-5.1, and details the example as well. Signed-off-by: Shawn Lin Acked-by: Rob Herring --- Changes in v6: - add Rob's Acked-by tag Changes in v2: - Keep phy as a mandatory requirement for arasan,sdhci

[PATCH v7 4/4] mmc: sdhci-of-arasan: add phy support for sdhci-of-arasan

2016-03-07 Thread Shawn Lin
This patch adds Generic PHY access for sdhci-of-arasan. Driver can get PHY handler from dt-binding, and power-on/init the PHY. Currently, it's just mandatory for arasan,sdhci-5.1. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes

[PATCH v7 3/4] mmc: sdhci-of-arasan: fix missing sdhci_pltfm_free for err handling

2016-03-07 Thread Shawn Lin
Currently, some err handling of sdhci_arasan_probe return directly without calling sdhci_pltfm_free. This patch fixes them. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mmc/host/sdhc

[PATCH v7 2/4] mmc: sdhci-of-arasan: remove disable clk_ahb from sdhci_arasan_resume

2016-03-07 Thread Shawn Lin
We don't really need disable clk_ahb when failing to resume. Otherwise we may take risk of bus error for accessing register without clk_ahb. Signed-off-by: Shawn Lin --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None driv

[PATCH v7 0/4] Add phy support for arasan,sdhci-5.1

2016-03-07 Thread Shawn Lin
Phy is mandatory requirement for arasan,sdhci-5.1, so we introduce generic phy support for sdhci-of-arasan. This version is rebased on Ulf's next to make it applied cleanly. Also, we fix some preexisting problems of err handling suggested by Adrian. Changes in v7: - split two changes into sepera

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Tejun Heo
Hello, On Tue, Mar 08, 2016 at 12:10:47AM +0900, Sergey Senozhatsky wrote: > A new version. Switched to [printk] kthread. There are some benefits to using a percpu workqueue with CPU_INTENSIVE set or an unbound workqueue. It'd need WQ_RESCUER so it'd still create a dedicated thread which is used

RE: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-07 Thread Chen, Yu C
Hi Rafael, > -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Sent: Monday, March 07, 2016 9:19 PM > To: Chen, Yu C > Cc: ACPI Devel Maling List; x...@kernel.org; linux-...@vger.kernel.org; Linux > Kernel Mailing List; linux...

Re: [linux-sunxi] [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Boris Brezillon
Hi Priit, On Mon, 07 Mar 2016 17:30:41 +0200 Priit Laes wrote: > On Mon, 2016-03-07 at 10:59 +0100, Boris Brezillon wrote: > > Some drivers might need to tweak the block size and wait cycles > > values > > to get better performances. > > Create and export the sun4i_dma_set_chan_config() to do th

RE: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-07 Thread Chen, Yu C
Hi Rafael, (resend for broken content) > -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Sent: Monday, March 07, 2016 9:19 PM > To: Chen, Yu C > Cc: ACPI Devel Maling List; x...@kernel.org; linux-...@vger.kernel.org; Linux > Ke

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 08:30 AM, Rob Gardner wrote: On 03/07/2016 07:07 AM, Khalid Aziz wrote: On 03/05/2016 09:07 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 2 Mar 2016 13:39:37 -0700 In this first implementation I am enabling ADI for hugepages only since these pages are locked

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-03-07 Thread Sebastian Andrzej Siewior
On 02/27/2016 07:19 PM, Peter Hurley wrote: > Hi Eric, Hi Peter, > Because both the uart driver (omap8250) and the dmaengine driver > (edma) were (relatively) new, we assumed there was some race between > starting a new rx DMA and processing the previous one. Now after digesting the whole thread

[patch added to 3.12-stable] libata: Align ata_device's id on a cacheline

2016-03-07 Thread Jiri Slaby
From: Harvey Hunt This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit 4ee34ea3a12396f35b26d90a094c75db95080baa upstream. The id buffer in ata_device is a DMA target, but it isn't explicitly cacheline aligned. Due to this, ad

Re: [PART1 RFC v2 07/10] svm: Add VMEXIT handlers for AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > +#define SVM_EXIT_AVIC_INCMP_IPI 0x401 > +#define SVM_EXIT_AVIC_NOACCEL 0x402 > > +enum avic_incmp_ipi_err_code { > + AVIC_INCMP_IPI_ERR_INVALID_INT_TYPE, > + AVIC_INCMP_IPI_ERR_TARGET_NOT_RUN, > + AVIC_INCMP_IPI_ERR_INV_TARGET, >

Re: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread Sedat Dilek
On Sun, Mar 6, 2016 at 6:23 PM, Alan Stern wrote: > On Sat, 5 Mar 2016, Sedat Dilek wrote: > >> On Fri, Mar 4, 2016 at 5:04 PM, Alan Stern wrote: >> > On Wed, 2 Mar 2016, Sedat Dilek wrote: >> > >> >> On 3/1/16, Alan Stern wrote: >> >> > On Tue, 1 Mar 2016, Sedat Dilek wrote: >> >> > >> >> >> On

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread Khalid Aziz
On 03/07/2016 08:43 AM, Andy Lutomirski wrote: On Mon, Mar 7, 2016 at 7:30 AM, Rob Gardner wrote: On 03/07/2016 07:07 AM, Khalid Aziz wrote: On 03/05/2016 09:07 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 2 Mar 2016 13:39:37 -0700 In this first implementation I am ena

Re: [TRIVIAL PATCH] treewide: Remove unnecessary 0x prefixes before %pa extension uses

2016-03-07 Thread Ross Zwisler
On Fri, Mar 04, 2016 at 11:46:32PM -0800, Joe Perches wrote: > Since commit 3cab1e711297 ("lib/vsprintf: refactor duplicate code > to special_hex_number()") %pa uses have been ouput with a 0x prefix. > > These 0x prefixes in the formats are unnecessary. > > Signed-off-by: Joe Perches > --- > dr

[PATCH] mm, oom: protect !costly allocations some more (was: Re: [PATCH 0/3] OOM detection rework v4)

2016-03-07 Thread Michal Hocko
On Mon 29-02-16 22:02:13, Michal Hocko wrote: > Andrew, > could you queue this one as well, please? This is more a band aid than a > real solution which I will be working on as soon as I am able to > reproduce the issue but the patch should help to some degree at least. Joonsoo wasn't very happy a

Re: Overlapping ioremap() calls, set_memory_*() semantics

2016-03-07 Thread Toshi Kani
On Sat, 2016-03-05 at 12:40 +0100, Ingo Molnar wrote: > * Toshi Kani wrote: > > > > So I'd say that since ioremap() in itself is fragile enough, we > > > should work towards eliminating overlapping ranges. > > > > > > The thing is, the whole vmap_area logic is based around non- > > > overlapping

Re: [PATCH v17 2/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-03-07 Thread atull
On Sat, 5 Mar 2016, Rob Herring wrote: > On Thu, Feb 25, 2016 at 05:25:07PM -0600, Alan Tull wrote: > > Add bindings documentation for Altera SOCFPGA bridges: > > * fpga2sdram > > * fpga2hps > > * hps2fpga > > * lwhps2fpga > > > > Signed-off-by: Alan Tull > > Signed-off-by: Matthew Gerlach

Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-07 Thread David Miller
From: sunil.kovv...@gmail.com Date: Mon, 7 Mar 2016 13:05:56 +0530 > From: Sunil Goutham > > Instead of calling get_page() for every receive buffer carved out > of page, set page's usage count at the end, to reduce no of atomic > calls. > > Signed-off-by: Sunil Goutham > --- > drivers/net/et

Re: [PATCH] Do not modify perf bias performance setting by default at boot

2016-03-07 Thread Thomas Renninger
On Monday, March 07, 2016 02:24:54 PM Thomas Renninger wrote: > It came out that on certain CPUs perf bias MSR has to be set to performance, > so that the CPU enters turbo states at all. > > Better do not try to wrongly adjust perf bias value, > its value probably is intended by BIOS. This whole

[PATCH 3/3] net: macb: Cleanup checkpatch checks

2016-03-07 Thread Moritz Fischer
This commit deals with a bunch of check suggestions that without changing behavior make checkpatch hapy. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 46 +++-- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/drivers/net/e

[PATCH 2/3] net: macb: Fix more coding style issues

2016-03-07 Thread Moritz Fischer
This commit takes care of the coding style warnings that are mostly due to a different comment style and lines over 80 chars. Notable exceptions are ether_addr_copy vs memcpy, as well as a dangling else after a return. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 109 +

[PATCH 1/3] net: macb: Fix coding style error message

2016-03-07 Thread Moritz Fischer
checkpatch.pl gave the following error: ERROR: space required before the open parenthesis '(' + for(; p < end; p++, offset += 4) Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/c

[PATCH 0/3] net: macb: Fix coding style issues

2016-03-07 Thread Moritz Fischer
Hi Nicolas, this series deals with most of the checkpatch warnings generated for macb. There are two BUG_ON()'s that I didn't touch, yet, that were suggested by checkpatch, that I can address in a follow up commit if needed. Let me know if you want me to split the fixes differently or squash them

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