Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Mathieu Poirier
On 22 October 2014 18:11, Russell King - ARM Linux wrote: > On Wed, Oct 22, 2014 at 10:06:23AM -0600, mathieu.poir...@linaro.org wrote: >> @@ -306,10 +324,13 @@ extern void _memset_io(volatile void __iomem *, int, >> size_t); >> __raw_readw(c)); __r; }) >>

perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Don Zickus
Hi, A question/request came up during our cache to cache analysis. We were wondering if give an unique mmap2 id (major, minor, inode, inode generation), if it was possible to determine a cpu socket id that memory was attached to at the time of the captured perf event? We ran into a scenario

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-22 Thread Guenter Roeck
On Wed, Oct 22, 2014 at 02:29:06PM +0200, Pali Rohár wrote: > On Tuesday 21 October 2014 06:27:23 Guenter Roeck wrote: > > On 10/20/2014 09:46 AM, Pali Rohár wrote: > > > Ok, I will describe my problem. Guenter, maybe you can find > > > another solution/fix for it. > > > > > > Calling

Re: [PATCH v3] sched/numa: fix unsafe get_task_struct() in task_numa_assign()

2014-10-22 Thread Oleg Nesterov
On 10/22, Peter Zijlstra wrote: > > So I worry about cache aliasing (not an issue on x86), so by touching > 'random' pages that might be freed and reissued to back userspace, we > could be accessing the one page through multiple virtual mappings which > therefore result in aliases. Or this page

Re: [PATCH] mips: add arch_trigger_all_cpu_backtrace() function

2014-10-22 Thread Ralf Baechle
On Wed, Oct 22, 2014 at 06:39:56AM +, Eunbong Song wrote: Applying - but: > + if(regs) ^^^ There should be a blank between if and opening parenthesis. Ralf -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH v3 03/59] dmaengine: Make the destination abbreviation coherent

2014-10-22 Thread Maxime Ripard
The dmaengine header abbreviates destination as at least two different strings. Make a coherent use of a single one. Signed-off-by: Maxime Ripard Acked-by: Mark Brown Acked-by: Laurent Pinchart Acked-by: Stephen Warren --- drivers/dma/bcm2835-dma.c | 2 +- drivers/dma/edma.c

[PATCH v3 08/59] dmaengine: Add device_terminate_all callback

2014-10-22 Thread Maxime Ripard
Split out the terminate_all command from device_control to a dma_device callback. In order to preserve backward capability, still rely on device_control if no such callback has been implemented. Eventually, this will allow to create a generic dma_slave_caps callback. Signed-off-by: Maxime Ripard

[PATCH v3 00/59] dmaengine: Implement generic slave capabilities retrieval

2014-10-22 Thread Maxime Ripard
Hi, As we discussed a couple of weeks ago, this is the third attempt at creating a generic behaviour for slave capabilities retrieval so that generic layers using dmaengine can actually rely on that. That has been done mostly through two steps: by moving out the sub-commands of the

Re: [PATCH 4/18] block copy: initial XCOPY offload support

2014-10-22 Thread Douglas Gilbert
See below ... On 14-10-22 03:26 PM, Mikulas Patocka wrote: This is Martin Petersen's xcopy patch (https://git.kernel.org/cgit/linux/kernel/git/mkp/linux.git/commit/?h=xcopy=0bdeed274e16b3038a851552188512071974eea8) with some bug fixes, ported to the current kernel. This patch makes it possible

Re: [PATCH v4 3/7] [RFC] arm/arm64: introduce is_dma_coherent

2014-10-22 Thread Stefano Stabellini
On Mon, 13 Oct 2014, Stefano Stabellini wrote: > On Mon, 13 Oct 2014, Will Deacon wrote: > > On Mon, Oct 13, 2014 at 12:16:14PM +0100, Stefano Stabellini wrote: > > > On Fri, 10 Oct 2014, Stefano Stabellini wrote: > > > > On Fri, 10 Oct 2014, Will Deacon wrote: > > > > > On Fri, Oct 10, 2014 at

[PATCH v3 09/59] dmaengine: Remove the need to declare device_control

2014-10-22 Thread Maxime Ripard
In order to migrate the drivers without triggering a BUG_ON for the converted drivers, which would cause bisectability issues, we need to remove that check before removing the device_control function entirely. Signed-off-by: Maxime Ripard --- drivers/dma/dmaengine.c | 2 -- 1 file changed, 2

Re: [patch 4/4] mm: memcontrol: remove unnecessary PCG_USED pc->mem_cgroup valid flag

2014-10-22 Thread Michal Hocko
On Mon 20-10-14 11:22:12, Johannes Weiner wrote: > pc->mem_cgroup had to be left intact after uncharge for the final LRU > removal, and !PCG_USED indicated whether the page was uncharged. But > since 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") pages are > uncharged after the final LRU

[PATCH v3 04/59] dmaengine: Rework dma_chan_get

2014-10-22 Thread Maxime Ripard
dma_chan_get uses a rather interesting error handling and code path. Change it to something more usual in the kernel. Signed-off-by: Maxime Ripard --- drivers/dma/dmaengine.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git

Re: [patch 3/4] mm: memcontrol: remove unnecessary PCG_MEM memory charge flag

2014-10-22 Thread Vladimir Davydov
On Mon, Oct 20, 2014 at 11:22:11AM -0400, Johannes Weiner wrote: > PCG_MEM is a remnant from an earlier version of 0a31bc97c80c ("mm: > memcontrol: rewrite uncharge API"), used to tell whether migration > cleared a charge while leaving pc->mem_cgroup valid and PCG_USED set. > But in the final

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Russell King - ARM Linux
On Wed, Oct 22, 2014 at 10:06:23AM -0600, mathieu.poir...@linaro.org wrote: > @@ -306,10 +324,13 @@ extern void _memset_io(volatile void __iomem *, int, > size_t); > __raw_readw(c)); __r; }) > #define readl_relaxed(c) ({ u32 __r = le32_to_cpu((__force

[PATCH v3 15/59] dmaengine: coh901318: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the ST-Ericsson COH901318 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/coh901318.c | 137 +---

[PATCH v3 12/59] dmaengine: pl08x: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the AMBA PL08x DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/amba-pl08x.c | 156 +++ 1 file

[PATCH v3 11/59] dmaengine: Move slave caps to dma_device

2014-10-22 Thread Maxime Ripard
The previous code was relying on the fact that the slave_caps were to be defined on a per channel basis. However, this proved to be a bit overkill, since every driver filling these so far were hardcoding it, disregarding which channel was actually given. Add these capabilities to the dma_device

[PATCH v3 13/59] dmaengine: hdmac: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Atmel HDMAC driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/at_hdmac.c | 121 + 1 file

[PATCH v3 06/59] dmaengine: Introduce a device_config callback

2014-10-22 Thread Maxime Ripard
The fact that the channel configuration is done in device_control is rather misleading, since it's not really advertised as such, plus, the fact that the framework exposes a function of its own makes it not really intuitive, while we're losing the type checking whenever we pass that unsigned long

[PATCH v3 02/59] serial: at91: Use dmaengine_slave_config API

2014-10-22 Thread Maxime Ripard
We are removing the dmaengine_device_control API, that shouldn't even have been exposed in the first place. Change the callers to use the proper API. Signed-off-by: Maxime Ripard --- drivers/tty/serial/atmel_serial.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

[PATCH v3 01/59] crypto: ux500: Use dmaengine_terminate_all API

2014-10-22 Thread Maxime Ripard
We are removing the dmaengine_device_control API, that shouldn't even have been exposed in the first place. Change the callers to use the proper API. Signed-off-by: Maxime Ripard --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- drivers/crypto/ux500/hash/hash_core.c | 2 +- 2 files changed, 3

Re: linux-next: Tree for Oct 22 (media/usb/dvb-usb/az6027)

2014-10-22 Thread Randy Dunlap
On 10/21/14 20:42, Stephen Rothwell wrote: > Hi all, > > Changes since 20141021: > on x86_64: when MEDIA_SUBDRV_AUTOSELECT is not enabled: when DVB_USB_AZ6027=y and DVB_STB0899=m and DVB_STB6100=m: drivers/built-in.o: In function `az6027_frontend_attach': az6027.c:(.text+0x18c50d): undefined

[PATCH v3 07/59] dmaengine: split out pause/resume operations from device_control

2014-10-22 Thread Maxime Ripard
Split out the pause and resume operations to callbacks of their own. In order to preserve some backwark compatibility, the dmaengine_pause/dmaengine_resume are still falling back on dmaengine_device_control. Eventually, that will allow to get the device capabilities in a generic way, removing the

[PATCH v3 21/59] dmaengine: fsl-edma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale EDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/fsl-edma.c | 106 +++-- 1 file

[PATCH v3 10/59] dmaengine: Create a generic dma_slave_caps callback

2014-10-22 Thread Maxime Ripard
dma_slave_caps is very important to the generic layers that might interact with dmaengine, such as ASoC. Unfortunately, it has been added as yet another dma_device callback, and most of the existing drivers haven't implemented it, reducing its reliability. Introduce a generic behaviour and a flag

[PATCH v3 18/59] dmaengine: dw: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the DesignWare DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/dw/core.c | 82 +++ 1 file

[PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread mathieu . poirier
From: Mathieu Poirier Some drivers on ARMv7 need 64 bit read and writes. Signed-off-by: Mathieu Poirier --- arch/arm/include/asm/io.h | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 1805674..861e52c 100644

[PATCH v3 22/59] dmaengine: imx: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale IMX DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/imx-dma.c | 103 +- 1 file

[PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread Vitaly Kuznetsov
All tools/hv daemons do mandatory daemon() on startup. However, no pidfile is created, this make it difficult for an init system to track such daemons. Modern linux distros use systemd as their init system. It can handle the daemonizing by itself, however, it requires a daemon to stay in

[PATCH v3 24/59] dmaengine: intel-mid-dma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Intel MID DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/intel_mid_dma.c | 25 ++--- 1 file changed, 6 insertions(+),

[PATCH v3 20/59] dmaengine: ep93xx: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Cirrus Logic EP93xx driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/ep93xx_dma.c | 41 +++-- 1 file

[PATCH v3 36/59] dmaengine: bam-dma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Qualcomm BAM DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/qcom_bam_dma.c | 85 +++--- 1 file

[PATCH v3 23/59] dmaengine: imx-sdma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale IMX SDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/imx-sdma.c | 66 +++--- 1 file

[PATCH v3 17/59] dmaengine: jz4740: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the JZ4740 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/dma-jz4740.c | 20 +++- 1 file changed, 3 insertions(+), 17

[PATCH v3 28/59] dmaengine: mmp-tdma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Marvell MMP TDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/mmp_tdma.c | 82 +++--- 1 file

[PATCH v3 25/59] dmaengine: ipu-idmac: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the IPU IDMAC driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/ipu/ipu_idmac.c | 96 - 1 file changed,

[PATCH v3 05/59] dmaengine: Make channel allocation callbacks optional

2014-10-22 Thread Maxime Ripard
Nowadays, some drivers don't have anything in there channel allocation callbacks anymore. Remove the BUG_ON if those callbacks aren't implemented, in order to allow drivers to not implement them. Signed-off-by: Maxime Ripard --- drivers/dma/dmaengine.c | 18 +++--- 1 file changed,

Re: [patch 4/4] mm: memcontrol: remove unnecessary PCG_USED pc->mem_cgroup valid flag

2014-10-22 Thread Vladimir Davydov
On Mon, Oct 20, 2014 at 11:22:12AM -0400, Johannes Weiner wrote: > pc->mem_cgroup had to be left intact after uncharge for the final LRU > removal, and !PCG_USED indicated whether the page was uncharged. But > since 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") pages are > uncharged after

[PATCH v3 27/59] dmaengine: mmp-pdma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Marvell MMP PDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/mmp_pdma.c | 109 + 1 file

[PATCH v3 19/59] dmaengine: edma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the TI EDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/edma.c | 50 +++--- 1 file changed, 15

[PATCH v3 14/59] dmaengine: bcm2835: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Broadcom BCM2835 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard Acked-by: Stephen Warren --- drivers/dma/bcm2835-dma.c | 31

[PATCH v3 43/59] dmaengine: tegra20: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the NVidia Tegra20 APB DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/tegra20-apb-dma.c | 22 ++ 1 file changed, 2

[PATCH v3 33/59] dmaengine: nbpfaxi: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the NBPF AXI DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/nbpfaxi.c | 93 +-- 1 file

Re: [PATCH] igb: don't reuse pages with pfmemalloc flag

2014-10-22 Thread Eric Dumazet
On Wed, 2014-10-22 at 17:50 +0400, Roman Gushchin wrote: > Incoming packet is dropped silently by sk_filter(), if the skb was > allocated from pfmemalloc reserves and the corresponding socket is > not marked with the SOCK_MEMALLOC flag. > > Igb driver allocates pages for DMA with

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-22 Thread Lorenzo Pieralisi
On Wed, Oct 01, 2014 at 10:38:45AM +0100, Arnd Bergmann wrote: [...] > The arm32 implementations of pci_domain_nr/pci_proc_domain can probably be > removed if we change the arm32 pcibios_init_hw function to call the new > interfaces that set the domain number. I wished, but it is a bit more

[PATCH v3 26/59] dmaengine: k3: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Hisilicon K3 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/k3dma.c | 197 1 file

Re: [RFC v3 PATCH 1/5] of: Add standard property for poweroff capability

2014-10-22 Thread Mark Brown
On Tue, Oct 14, 2014 at 06:31:09AM +, Romain Perier wrote: > Several drivers create their own devicetree property when they register > poweroff capabilities. This is for example the case for mfd, regulator > or power drivers which define "vendor,system-power-controller" property. > This patch

[PATCH,RESEND] hugetlbfs: document that sticky mounts are allowed

2014-10-22 Thread Kirill Smelkov
(resending to new documentation maintainer, as the original patch seemingly got lost) Jonathan, Please apply the below patch documenting that hugetlbfs can be sticky-mounted. Thanks beforehand, Kirill On Thu, Sep 04, 2014 at 10:14:31AM -0700, Ken Chen wrote: > On Thu, Sep 4, 2014 at 6:20

[PATCH v3 32/59] dmaengine: mxs: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale MXS DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/mxs-dma.c | 59 --- 1 file

[PATCH v3 39/59] dmaengine: sh: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Super-H DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard Acked-by: Laurent Pinchart --- drivers/dma/sh/shdma-base.c | 72

[PATCH v3 31/59] dmaengine: mpc512x: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale MPC512x DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/mpc512x_dma.c | 111 +- 1

[PATCH v3 16/59] dmaengine: cppi41: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the TI CPPI41 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/cppi41.c | 30 +- 1 file changed, 1 insertion(+), 29

[PATCH v3 40/59] dmaengine: sirf: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the SiRF Prima 2 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/sirf-dma.c | 43 +-- 1 file changed,

[PATCH v3 35/59] dmaengine: pl330: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the AMBA PL330 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/pl330.c | 108 ++-- 1 file

[PATCH v3 29/59] dmaengine: moxart: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Moxart DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/moxart-dma.c | 25 ++--- 1 file changed, 2 insertions(+), 23

[PATCH v3 30/59] dmaengine: fsl-dma: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Freescale Elo DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. While we're at it, remove the useless prep_sg callback. Signed-off-by: Maxime Ripard --- drivers/dma/fsldma.c | 91

[PATCH v3 34/59] dmaengine: omap: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the TI OMAP DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/omap-dma.c | 51 +++--- 1 file

Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread Lee Jones
On Wed, 22 Oct 2014, PERIER Romain wrote: > This is related to the following subject "[RFC v3 PATCH 1/5] of: Add > standard property for poweroff capability" and depends on the > corresponding patch. Then it should be sent in the same patch-set. There's nothing I can do with this patch as is.

[PATCH v3 45/59] dmaengine: mv_xor: Remove device_control

2014-10-22 Thread Maxime Ripard
The Marvell XOR engine doesn't allow any operations that use to be defined in device_control, it shouldn't need to be defined. Since it's going to be deprecated, remove it altogether. Signed-off-by: Maxime Ripard --- drivers/dma/mv_xor.c | 9 - 1 file changed, 9 deletions(-) diff --git

[PATCH v3 38/59] dmaengine: sa11x0: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the SA-11x0 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/sa11x0-dma.c | 158 +-- 1 file

Re: [PATCH v2 2/3] ARM: keystone: pm: switch to use generic pm domains

2014-10-22 Thread Kevin Hilman
Grygorii Strashko writes: > Hi Santosh, > > On 10/21/2014 09:05 PM, Santosh Shilimkar wrote: >> On 10/20/2014 05:56 AM, Grygorii Strashko wrote: >>> This patch switches Keystone 2 PM code to use Generic PM domains >>> instead of PM clock domains because of the lack of DT support >>> for the

[PATCH v3 44/59] dmaengine: xilinx: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Xilinx VDMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard Acked-by: Laurent Pinchart --- drivers/dma/xilinx/xilinx_vdma.c | 29

[PATCH v3 46/59] dmaengine: pch-dma: Rename device_control

2014-10-22 Thread Maxime Ripard
Rename the device_control callback of the Intel PCH DMA driver to terminate_all since it's all it's really doing. That will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/pch_dma.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-)

[RFC 4/4] slub: Remove preemption disable/enable from fastpath

2014-10-22 Thread Christoph Lameter
We can now use a this_cpu_cmpxchg_double to update two 64 bit values that are the entire description of the per cpu freelist. There is no need anymore to disable preempt. Signed-off-by: Christoph Lameter Index: linux/mm/slub.c ===

[RFC 3/4] slub: Drop ->page field from kmem_cache_cpu

2014-10-22 Thread Christoph Lameter
Dropping the page field is possible since the page struct address of an object or a freelist pointer can now always be calcualted from the address. No freelist pointer will be NULL anymore so use NULL to signify the condition that the current cpu has no percpu slab attached to it. Signed-off-by:

[PATCH v3 42/59] dmaengine: d40: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the ST-Ericsson DMA 40 driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/ste_dma40.c | 60 +++-- 1 file

[RFC 0/4] [RFC] slub: Fastpath optimization (especially for RT)

2014-10-22 Thread Christoph Lameter
We had to insert a preempt enable/disable in the fastpath a while ago. This was mainly due to a lot of state that is kept to be allocating from the per cpu freelist. In particular the page field is not covered by this_cpu_cmpxchg used in the fastpath to do the necessary atomic state change for

[RFC 2/4] slub: Use end_token instead of NULL to terminate freelists

2014-10-22 Thread Christoph Lameter
Ending a list with NULL means that the termination of a list is the same for all slab pages. The pointers of freelists otherwise always are pointing to the address space of the page. Make termination of a list possible by setting the lowest bit in the freelist address and use the start address of

[PATCH v3 49/59] dmaengine: rapidio: tsi721: Rename device_control

2014-10-22 Thread Maxime Ripard
Rename the device_control callback of the TXX9 DMA driver to terminate_all since it's all it's really doing. That will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/rapidio/devices/tsi721_dma.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[PATCH v3 48/59] dmaengine: txx9: Rename device_control

2014-10-22 Thread Maxime Ripard
Rename the device_control callback of the TXX9 DMA driver to terminate_all since it's all it's really doing. That will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/txx9dmac.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff

[PATCH v3 51/59] dmaengine: fsl-edma: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/fsl-edma.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-)

[RFC 1/4] slub: Remove __slab_alloc code duplication

2014-10-22 Thread Christoph Lameter
Somehow the two branches in __slab_alloc do the same. Unify them. Signed-off-by: Christoph Lameter Index: linux/mm/slub.c === --- linux.orig/mm/slub.c +++ linux/mm/slub.c @@ -2280,12 +2280,8 @@ redo: if (node !=

[PATCH v3 57/59] dmaengine: sun6i: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/sun6i-dma.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v3 53/59] dmaengine: nbpfaxi: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/nbpfaxi.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-)

[PATCH v3 52/59] dmaengine: edma: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/edma.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-)

[PATCH v3 37/59] dmaengine: s3c24xx: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Samsung S3C24xxx DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard --- drivers/dma/s3c24xx-dma.c | 75 +++ 1

Re: [PATCH] treewide: Fix typo in Documentation/DocBook/device-drivers

2014-10-22 Thread Wolfram Sang
On Wed, Oct 22, 2014 at 11:49:17AM -0400, Jonathan Corbet wrote: > On Wed, 22 Oct 2014 00:00:14 +0900 > Masanari Iida wrote: > > > This patch fix speeling typo found in html files within > > Documentation/DocBook/device-drivers. > > It is because html files are generated from comments in source,

Re: [PATCH v2] staging: skein: Loadable Module Support

2014-10-22 Thread Eric Rost
On Wed, 2014-10-22 at 11:10 -0400, Jason Cooper wrote: > > If you don't mind, could you split this > patch in two? The first integrating into the crypto API (such that > userspace could call into it), and the second enabling loadable module > support? > Will do! > > Signed-off-by: Eric Rost

[PATCH v3 54/59] dmaengine: omap: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/omap-dma.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-)

Re: [patch 2/4] mm: memcontrol: remove unnecessary PCG_MEMSW memory+swap charge flag

2014-10-22 Thread Michal Hocko
On Mon 20-10-14 11:22:10, Johannes Weiner wrote: > Now that mem_cgroup_swapout() fully uncharges the page, every page > that is still in use when reaching mem_cgroup_uncharge() is known to > carry both the memory and the memory+swap charge. Simplify the > uncharge path and remove the PCG_MEMSW

[PATCH v3 55/59] dmaengine: pl330: Declare slave capabilities for the generic code

2014-10-22 Thread Maxime Ripard
Now that the generic slave caps code can make use of the device assigned capabilities, instead of relying on a callback to be implemented. Make use of this code. Signed-off-by: Maxime Ripard --- drivers/dma/pl330.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-)

[PATCH v3 59/59] dmaengine: Remove device_control and device_slave_caps

2014-10-22 Thread Maxime Ripard
Now that device_control has been split into several functions, and device_slave_caps rendered useless, we can safely remove them. Signed-off-by: Maxime Ripard --- include/linux/dmaengine.h | 52 ++- 1 file changed, 6 insertions(+), 46 deletions(-)

[PATCH RFC v2 09/16] virtio: set FEATURES_OK

2014-10-22 Thread Michael S. Tsirkin
set FEATURES_OK as per virtio 1.0 spec Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_config.h | 2 ++ drivers/virtio/virtio.c| 29 ++--- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/virtio_config.h

[PATCH v3 58/59] dmaengine: Add a warning for drivers not using the generic slave caps retrieval

2014-10-22 Thread Maxime Ripard
For the slave caps retrieval to be really useful, most drivers need to implement it. Hence, we need to be slightly more aggressive, and trigger a warning at registration time for drivers that don't fill their caps infos in order to encourage them to implement it. Signed-off-by: Maxime Ripard

[PATCH RFC v2 10/16] virtio_net: use v1.0 endian.

2014-10-22 Thread Michael S. Tsirkin
From: Rusty Russell [Cornelia Huck: converted some missed fields] Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- drivers/net/virtio_net.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git

Re: [PATCH] treewide: Fix typo in Documentation/DocBook/device-drivers

2014-10-22 Thread Jonathan Corbet
On Wed, 22 Oct 2014 00:00:14 +0900 Masanari Iida wrote: > This patch fix speeling typo found in html files within > Documentation/DocBook/device-drivers. > It is because html files are generated from comments in source, > so I have to fix comments in the source. > > Signed-off-by: Masanari Iida

[PATCH RFC v2 08/16] virtio: allow transports to get avail/used addresses

2014-10-22 Thread Michael S. Tsirkin
From: Cornelia Huck For virtio-1, we can theoretically have a more complex virtqueue layout with avail and used buffers not on a contiguous memory area with the descriptor table. For now, it's fine for a transport driver to stay with the old layout: It needs, however, a way to access the

[PATCH RFC v2 13/16] KVM: s390: virtio-ccw revision 1 SET_VQ

2014-10-22 Thread Michael S. Tsirkin
From: Cornelia Huck The CCW_CMD_SET_VQ command has a different format for revision 1+ devices, allowing to specify a more complex virtqueue layout. For now, we stay however with the old layout and simply use the new command format for virtio-1 devices. Signed-off-by: Cornelia Huck

[PATCH RFC v2 03/16] virtio: use u32, not bitmap for struct virtio_device's features

2014-10-22 Thread Michael S. Tsirkin
From: Rusty Russell It seemed like a good idea, but it's actually a pain when we get more than 32 feature bits. Just change it to a u32 for now. Cc: Brian Swetland Cc: Christian Borntraeger Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Acked-by: Pawel Moll Acked-by: Ohad

[PATCH RFC v2 04/16] virtio: add support for 64 bit features.

2014-10-22 Thread Michael S. Tsirkin
From: Rusty Russell Change the u32 to a u64, and make sure to use 1ULL everywhere! Cc: Brian Swetland Cc: Christian Borntraeger [Thomas Huth: fix up virtio-ccw get_features] Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Acked-by: Pawel Moll Acked-by: Ohad Ben-Cohen

Re: [patch 3/4] mm: memcontrol: remove unnecessary PCG_MEM memory charge flag

2014-10-22 Thread Michal Hocko
On Mon 20-10-14 11:22:11, Johannes Weiner wrote: > PCG_MEM is a remnant from an earlier version of 0a31bc97c80c ("mm: > memcontrol: rewrite uncharge API"), used to tell whether migration > cleared a charge while leaving pc->mem_cgroup valid and PCG_USED set. > But in the final version,

[PATCH RFC v2 16/16] virtio_blk: fix types for in memory structures

2014-10-22 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_blk.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/virtio_blk.h b/include/uapi/linux/virtio_blk.h index 9ad67b2..247c8ba 100644 --- a/include/uapi/linux/virtio_blk.h +++

[PATCH RFC v2 12/16] KVM: s390: Set virtio-ccw transport revision

2014-10-22 Thread Michael S. Tsirkin
From: Thomas Huth With the new SET-VIRTIO-REVISION command of the virtio 1.0 standard, we can now negotiate the virtio-ccw revision after setting a channel online. Note that we don't negotiate version 1 yet. [Cornelia Huck: reworked revision loop a bit] Reviewed-by: David Hildenbrand

[PATCH RFC v2 15/16] virtio_net: fix types for in memory structures

2014-10-22 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_net.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 172a7f0..b5f1677 100644 --- a/include/uapi/linux/virtio_net.h +++

[PATCH RFC v2 11/16] virtio_blk: use virtio v1.0 endian

2014-10-22 Thread Michael S. Tsirkin
From: Cornelia Huck Note that we care only about the fields still in use for virtio v1.0. Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- drivers/block/virtio_blk.c | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH v4 00/12] fs/seq_file: introduce seq_hex_dump() helper

2014-10-22 Thread Andy Shevchenko
On Thu, 2014-09-04 at 17:26 +0300, Andy Shevchenko wrote: > This introduces a new helper and switches current users to use it. All are > compiled tested, hexdump and kmemleak are tested by their test suits. > Gently ping on this series. Any comments? > Changelog v4: > - hexdump is amended to

[PATCH RFC v2 14/16] KVM: s390: enable virtio-ccw revision 1

2014-10-22 Thread Michael S. Tsirkin
From: Cornelia Huck Now that virtio-ccw has everything needed to support virtio 1.0 in place, try to enable it if the host supports it. Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- drivers/s390/kvm/virtio_ccw.c | 2 +- 1 file changed, 1

[PATCH RFC v2 07/16] virtio_config: endian conversion for v1.0

2014-10-22 Thread Michael S. Tsirkin
We (ab)use virtio conversion functions for device-specific config space accesses. Reviewed-by: David Hildenbrand Signed-off-by: Rusty Russell Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- include/linux/virtio_config.h | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH RFC v2 01/16] virtio: memory access APIs

2014-10-22 Thread Michael S. Tsirkin
virtio 1.0 makes all memory structures LE, so we need APIs to conditionally do a byteswap on BE architectures. To make it easier to check code statically, add virtio specific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful

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