Re: [PATCH v5 2/7] Documentation: devicetree: add PHY lane swap binding

2016-11-02 Thread Andrew Lunn
On Wed, Nov 02, 2016 at 01:08:03PM -0400, Jon Mason wrote: > Add the documentation for PHY lane swapping. This is a boolean entry to > notify the phy device drivers that the TX/RX lanes need to be swapped. > > Signed-off-by: Jon Mason Reviewed-by: Andrew Lunn

SINCERE PROPOSITION FROM (Mr. Charles Jahja Surja)

2016-11-02 Thread Charles Jahja Surja
Business proposal for you and your urgent response is needed.

[PATCH V2 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-11-02 Thread Frank Li
mmdc of i.MX6QP are little difference with i.MX6Q. added new compatible stream fsl,imx6qp-mmdc Signed-off-by: Frank Li --- No change for this patch. suspend resume code need fsl,imx6q-mmdc arch/arm/boot/dts/imx6qp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v5 3/7] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-02 Thread Jon Mason
The BCM54810 PHY requires some semi-unique configuration, which results in some additional configuration in addition to the standard config. Also, some users of the BCM54810 require the PHY lanes to be swapped. Since there is no way to detect this, add a device tree query to see if it is

Re: [PATCH] arc: Implement arch-specific dma_map_ops.mmap

2016-11-02 Thread Catalin Marinas
On Wed, Nov 02, 2016 at 03:19:43PM +0300, Alexey Brodkin wrote: > diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c > index 20afc65e22dc..034ec6a8a764 100644 > --- a/arch/arc/mm/dma.c > +++ b/arch/arc/mm/dma.c > @@ -105,6 +105,31 @@ static void arc_dma_free(struct device *dev, size_t > size,

[PATCH v5 7/7] arm64: dts: NS2: add AMAC ethernet support

2016-11-02 Thread Jon Mason
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files changed, 17 insertions(+) diff --git

[PATCH v5 0/7] add NS2 support to bgmac

2016-11-02 Thread Jon Mason
Changes in v5: * Change a pr_err to netdev_err (per Scott Branden) * Reword the lane swap binding documentation (per Andrew Lunn) Changes in v4: * Actually send out the lane swap binding doc patch (Per Scott Branden) * Remove unused #define (Per Andrew Lunn) Changes in v3: * Clean-up the bgmac

[PATCH v5 4/7] Documentation: devicetree: net: add NS2 bindings to amac

2016-11-02 Thread Jon Mason
Clean-up the documentation to the bgmac-amac driver, per suggestion by Rob Herring, and add details for NS2 support. Signed-off-by: Jon Mason --- Documentation/devicetree/bindings/net/brcm,amac.txt | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-)

[PATCH v5 5/7] net: ethernet: bgmac: device tree phy enablement

2016-11-02 Thread Jon Mason
Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason --- drivers/net/ethernet/broadcom/bgmac-bcma.c | 48 drivers/net/ethernet/broadcom/bgmac-platform.c | 48 +++-

[PATCH v5 1/7] net: phy: broadcom: add bcm54xx_auxctl_read

2016-11-02 Thread Jon Mason
Add a helper function to read the AUXCTL register for the BCM54xx. This mirrors the bcm54xx_auxctl_write function already present in the code. Signed-off-by: Jon Mason --- drivers/net/phy/broadcom.c | 10 ++ include/linux/brcmphy.h| 1 + 2 files changed, 11

[PATCH v5 6/7] net: ethernet: bgmac: add NS2 support

2016-11-02 Thread Jon Mason
Add support for the variant of amac hardware present in the Broadcom Northstar2 based SoCs. Northstar2 requires an additional register to be configured with the port speed/duplexity (NICPM). This can be added to the link callback to hide it from the instances that do not use this. Also, clearing

[PATCH v5 2/7] Documentation: devicetree: add PHY lane swap binding

2016-11-02 Thread Jon Mason
Add the documentation for PHY lane swapping. This is a boolean entry to notify the phy device drivers that the TX/RX lanes need to be swapped. Signed-off-by: Jon Mason --- Documentation/devicetree/bindings/net/phy.txt | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH v5 2/7] Documentation: devicetree: add PHY lane swap binding

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Add the documentation for PHY lane swapping. This is a boolean entry to > notify the phy device drivers that the TX/RX lanes need to be swapped. > > Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli

Re: [PATCH v3] NFSv4: replace seqcount_t with a rw_semaphore

2016-11-02 Thread Trond Myklebust
> On Nov 2, 2016, at 13:11, Sebastian Andrzej Siewior > wrote: > > On 2016-10-31 16:11:02 [+], Trond Myklebust wrote: >> >> Yes, and yes. We can’t rely on the list pointers remaining correct, so we >> restart the list scan and we use the ops->state_flag_bit to

Re: [PATCH v7] spi: sun4i: Allow transfers larger than FIFO size

2016-11-02 Thread Maxime Ripard
Hi Mark, On Thu, Oct 27, 2016 at 11:47:12PM +0100, Mark Brown wrote: > > > If the concern from the previous reviews to do with not using DMA is > > > there some reason it's hard to do DMA? > > > I think just like Alexandru that it is orthogonal. But to really > > answer, no, it's not difficult.

Re: [PATCH] drm/sun4i: Fix error handling

2016-11-02 Thread Maxime Ripard
On Sun, Oct 30, 2016 at 09:49:26AM +0100, Christophe JAILLET wrote: > 'sun4i_layers_init()' returns an error pointer in case of error, not > NULL. So test it with IS_ERR. > > Signed-off-by: Christophe JAILLET Applied, thanks! Maxime -- Maxime Ripard, Free

[PATCH] tpm: transition tpm_vtpm_proxy documentation to the Sphinx

2016-11-02 Thread Jarkko Sakkinen
Transitioned the tpm_vtpm_proxy documentation to the Sphinx infrastructure and removed parts from the documentation that are easier to pull from the sources. Restructured vtpm_proxy.h and tpm_vtpm_proxy.c to be compatible with this approach and wrote associated documentation comments.

Re: [kernel-hardening] rowhammer protection [was Re: Getting interrupt every million cache misses]

2016-11-02 Thread Pavel Machek
Hi! > On Fri, Oct 28, 2016 at 03:05:22PM +0100, Mark Rutland wrote: > > > > > > * the precise semantics of performance counter events varies drastically > > > > across implementations. PERF_COUNT_HW_CACHE_MISSES, might only map to > > > > one particular level of cache, and/or may not be

Re: [PATCH v3] soc: qcom: Add SoC info driver

2016-11-02 Thread Bjorn Andersson
On Wed 02 Nov 03:06 PDT 2016, Imran Khan wrote: > The SoC info driver provides information such as Chip ID, > Chip family, serial number and other such details about > Qualcomm SoCs. > > Signed-off-by: Imran Khan [..] > diff --git a/drivers/soc/qcom/Makefile

Re: scripts/basic/fixdep: Complete error handling in print_cmdline()

2016-11-02 Thread Masahiro Yamada
2016-11-03 2:38 GMT+09:00 SF Markus Elfring : + if (printf("cmd_%s := %s\n\n", target, cmdline) < 10) { >>> >>> Rather than scatter fragile magic numbers, like 10, throughout the >>> code, if you're hell-bent on checking for printf errors you could >>>

Re: net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match

2016-11-02 Thread Andrey Konovalov
Hi David, I'm able to reproduce it, so I'd be happy to test your fix. Thanks! On Wed, Nov 2, 2016 at 7:31 PM, David Ahern wrote: > On 11/2/16 11:21 AM, Eric Dumazet wrote: >> Thanks for your report. >> >> David, please take a look. >> >> TCP MD5 can call

Re: [PATCH v5 3/7] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-02 Thread Andrew Lunn
On Wed, Nov 02, 2016 at 01:08:04PM -0400, Jon Mason wrote: > The BCM54810 PHY requires some semi-unique configuration, which results > in some additional configuration in addition to the standard config. > Also, some users of the BCM54810 require the PHY lanes to be swapped. > Since there is no

[mm PATCH v2 18/26] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael

[PATCH] mtd: nand: denali_pci: add missing pci_release_regions() calls

2016-11-02 Thread Masahiro Yamada
The probe function calls pci_request_regions(), but I do not see corresponding pci_release_regions() calls. While we are here, rename the jump labels to follow the guideline "Choose label names which say what the goto does" suggested by Documentation/CodingStyle. Signed-off-by: Masahiro Yamada

[mm PATCH v2 02/26] swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function

2016-11-02 Thread Alexander Duyck
The mapping function should always return DMA_ERROR_CODE when a mapping has failed as this is what the DMA API expects when a DMA error has occurred. The current function for mapping a page in Xen was returning either DMA_ERROR_CODE or 0 depending on where it failed. On x86 DMA_ERROR_CODE is 0,

[mm PATCH v2 20/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Alexander Duyck

[mm PATCH v2 23/26] dma: Add calls for dma_map_page_attrs and dma_unmap_page_attrs

2016-11-02 Thread Alexander Duyck
Add support for mapping and unmapping a page with attributes. The primary use for this is currently to allow for us to pass the DMA_ATTR_SKIP_CPU_SYNC attribute when mapping and unmapping a page. On some architectures such as ARM the synchronization has significant overhead and if we are already

[mm PATCH v2 11/26] arch/m68k: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Geert Uytterhoeven Cc: linux-m...@lists.linux-m68k.org Signed-off-by:

[mm PATCH v2 10/26] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Signed-off-by: Alexander Duyck

[mm PATCH v2 14/26] arch/mips: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ralf Baechle Cc: Keguang Zhang Cc:

[mm PATCH v2 01/26] swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg

2016-11-02 Thread Alexander Duyck
There are no users for swiotlb_map_sg or swiotlb_unmap_sg so we might as well just drop them. Cc: Konrad Rzeszutek Wilk Signed-off-by: Alexander Duyck --- v2: Added swiotlb_unmap_sg to functions dropped. include/linux/swiotlb.h |8

[mm PATCH v2 07/26] arch/blackfin: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Steven Miao Signed-off-by: Alexander Duyck ---

[mm PATCH v2 13/26] arch/microblaze: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Michal Simek Signed-off-by: Alexander Duyck ---

[mm PATCH v2 19/26] arch/sh: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Yoshinori Sato Cc: Rich Felker Cc:

Re: Failing of the script get_maintainer.pl

2016-11-02 Thread Vaishali Thakkar
On Wednesday 02 November 2016 10:28 PM, Joe Perches wrote: > On Wed, 2016-11-02 at 22:07 +0530, Vaishali Thakkar wrote: >> Hi, >> >> The script get_maintainer.pl fails with the following message/warning: >> >> Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 >> at

Re: [PATCH 1/3] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-02 Thread 'Stephen Boyd'
On 11/02, Sricharan wrote: > Hi Stephen, > > >On 10/24, Sricharan R wrote: > >> @@ -164,6 +171,10 @@ static int gdsc_enable(struct generic_pm_domain > >> *domain) > >> */ > >>udelay(1); > >> > >> + /* Turn on HW trigger mode if supported */ > >> + if (sc->flags & HW_CTRL) > >> +

[PATCH v2] USB hub_probe: remove ugly goto-into-compound-statement

2016-11-02 Thread Eugene Korenevsky
Rework smelling code (goto inside compound statement). Perhaps this is legacy. Anyway such code is not appropriate for Linux kernel. Signed-off-by: Eugene Korenevsky --- drivers/usb/core/hub.c | 24 +++- 1 file changed, 11 insertions(+), 13

Re: net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match

2016-11-02 Thread David Ahern
On 11/2/16 11:21 AM, Eric Dumazet wrote: > Thanks for your report. > > David, please take a look. > > TCP MD5 can call __inet_lookup_listener() with a NULL skb. interesting. I did not test md5 before sending, but doing so now I am not able to trigger the panic with any combination of passwords

[PATCH] x86/intel_rdt: Add a missing include

2016-11-02 Thread Borislav Petkov
From: Borislav Petkov ... to fix: In file included from arch/x86/kernel/cpu/intel_rdt.c:33:0: ./arch/x86/include/asm/intel_rdt.h:56:25: warning: ‘struct kernfs_open_file’ declared inside parameter list will not be visible outside of this definition or declaration int

Re: [PATCH] cxl: Fix error handling

2016-11-02 Thread Frederic Barrat
Le 30/10/2016 à 22:40, Christophe JAILLET a écrit : 'cxl_dev_context_init()' returns an error pointer in case of error, not NULL. So test it with IS_ERR. Signed-off-by: Christophe JAILLET --- Thanks for the 3 patches! Acked-by: Frederic Barrat

net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match

2016-11-02 Thread Andrey Konovalov
Hi, I've got the following error report while running the syzkaller fuzzer: general protection fault: [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 648 Comm: syz-executor Not tainted 4.9.0-rc3+ #333 Hardware name: QEMU Standard PC (i440FX +

Re: [PATCH] KVM: x86: drop TSC offsetting kvm_x86_ops to fix KVM_GET/SET_CLOCK

2016-11-02 Thread Radim Krčmář
2016-11-02 09:38+0100, Paolo Bonzini: > Since commit a545ab6a0085 ("kvm: x86: add tsc_offset field to struct > kvm_vcpu_arch", 2016-09-07) the offset between host and L1 TSC is > cached and need not be fished out of the VMCS or VMCB. This means > that we can implement adjust_tsc_offset_guest and

Re: Failing of the script get_maintainer.pl

2016-11-02 Thread Joe Perches
On Wed, 2016-11-02 at 22:07 +0530, Vaishali Thakkar wrote: > Hi, > > The script get_maintainer.pl fails with the following message/warning: > > Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 > at scripts/get_maintainer.pl line 277. > > This seems to be because of

[PATCH] coding-style: fix mismatch of jump label name

2016-11-02 Thread Masahiro Yamada
Commit 865a1caa4b6b ("CodingStyle: Clarify and complete chapter 7") renamed the label "out_buffer" to "out_free_buffer", but missed to change this line. Signed-off-by: Masahiro Yamada --- Note: This patch is based on linux-next. The Documentation/CodingStyle was

Re: [[PATCH repost v21] 01/11] of/overlay: add of overlay notifications

2016-11-02 Thread Moritz Fischer
On Tue, Nov 1, 2016 at 1:14 PM, Alan Tull wrote: > This patch add of overlay notifications. > > When DT overlays are being added, some drivers/subsystems > need to see device tree overlays before the changes go into > the live tree. > > This is distinct from reconfig

Re: [PATCH v3] NFSv4: replace seqcount_t with a rw_semaphore

2016-11-02 Thread Sebastian Andrzej Siewior
On 2016-10-31 16:11:02 [+], Trond Myklebust wrote: > > Yes, and yes. We can’t rely on the list pointers remaining correct, so we > restart the list scan and we use the ops->state_flag_bit to signal whether or > not state has been recovered for the entry being scanned. but this is tested at

[mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-02 Thread Alexander Duyck
As a first step to making DMA_ATTR_SKIP_CPU_SYNC apply to architectures beyond just ARM I need to make it so that the swiotlb will respect the flag. In order to do that I also need to update the swiotlb-xen since it heavily makes use of the functionality. Cc: Konrad Rzeszutek Wilk

[mm PATCH v2 06/26] arch/avr32: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Acked-by: Hans-Christian Noren Egtvedt Signed-off-by: Alexander Duyck

Re: [PATCH v5 4/7] Documentation: devicetree: net: add NS2 bindings to amac

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Clean-up the documentation to the bgmac-amac driver, per suggestion by > Rob Herring, and add details for NS2 support. > > Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli -- Florian

[mm PATCH v2 04/26] arch/arc: Add option to skip sync on DMA mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Vineet Gupta Signed-off-by: Alexander Duyck

[mm PATCH v2 05/26] arch/arm: Add option to skip sync on DMA map and unmap

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Russell King Signed-off-by: Alexander Duyck ---

Re: [PATCH v5 1/7] net: phy: broadcom: add bcm54xx_auxctl_read

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Add a helper function to read the AUXCTL register for the BCM54xx. This > mirrors the bcm54xx_auxctl_write function already present in the code. > > Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli

Re: [PATCH v5 4/7] Documentation: devicetree: net: add NS2 bindings to amac

2016-11-02 Thread Sergei Shtylyov
Hello. On 11/02/2016 08:08 PM, Jon Mason wrote: Clean-up the documentation to the bgmac-amac driver, per suggestion by Rob Herring, and add details for NS2 support. Signed-off-by: Jon Mason --- Documentation/devicetree/bindings/net/brcm,amac.txt | 16 +++-

[mm PATCH v2 26/26] igb: Update code to better handle incrementing page count

2016-11-02 Thread Alexander Duyck
This patch updates the driver code so that we do bulk updates of the page reference count instead of just incrementing it by one reference at a time. The advantage to doing this is that we cut down on atomic operations and this in turn should give us a slight improvement in cycles per packet. In

Re: [PATCH v5 6/7] net: ethernet: bgmac: add NS2 support

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Add support for the variant of amac hardware present in the Broadcom > Northstar2 based SoCs. Northstar2 requires an additional register to be > configured with the port speed/duplexity (NICPM). This can be added to > the link callback to hide it from

[mm PATCH v2 25/26] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-11-02 Thread Alexander Duyck
The ARM architecture provides a mechanism for deferring cache line invalidation in the case of map/unmap. This patch makes use of this mechanism to avoid unnecessary synchronization. A secondary effect of this change is that the portion of the page that has been synchronized for use by the CPU

[mm PATCH v2 24/26] mm: Add support for releasing multiple instances of a page

2016-11-02 Thread Alexander Duyck
This patch adds a function that allows us to batch free a page that has multiple references outstanding. Specifically this function can be used to drop a page being used in the page frag alloc cache. With this drivers can make use of functionality similar to the page frag alloc cache without

[mm PATCH v2 17/26] arch/parisc: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "James E.J. Bottomley" Cc: Helge Deller Cc:

[mm PATCH v2 12/26] arch/metag: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: James Hogan Cc: linux-me...@vger.kernel.org Signed-off-by: Alexander Duyck

[mm PATCH v2 09/26] arch/frv: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Signed-off-by: Alexander Duyck --- arch/frv/mb93090-mb00/pci-dma-nommu.c | 14

Re: [PATCH v5 7/7] arm64: dts: NS2: add AMAC ethernet support

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device > tree > > Signed-off-by: Jon Mason Provided that the binding is satisfactory, I will take this one via ARM64-SoC. -- Florian

[mm PATCH v2 15/26] arch/nios2: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ley Foon Tan Signed-off-by: Alexander Duyck ---

Re: [PATCH v5 3/7] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > The BCM54810 PHY requires some semi-unique configuration, which results > in some additional configuration in addition to the standard config. > Also, some users of the BCM54810 require the PHY lanes to be swapped. > Since there is no way to detect this,

[mm PATCH v2 16/26] arch/openrisc: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Jonas Bonn Signed-off-by: Alexander Duyck ---

[PATCH v4] NFSv4: replace seqcount_t with a seqlock_t

2016-11-02 Thread Sebastian Andrzej Siewior
The raw_write_seqcount_begin() in nfs4_reclaim_open_state() bugs me because it maps to preempt_disable() in -RT which I can't have at this point. So I took a look at the code. It the lockdep part was removed in commit abbec2da13f0 ("NFS: Use raw_write_seqcount_begin/end int

[mm PATCH v2 08/26] arch/c6x: Add option to skip sync on DMA map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Mark Salter Signed-off-by: Alexander Duyck

[mm PATCH v2 21/26] arch/tile: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Chris Metcalf Signed-off-by: Alexander Duyck ---

[mm PATCH v2 00/26] Add support for DMA writable pages being writable by the network stack

2016-11-02 Thread Alexander Duyck
The first 22 patches in the set add support for the DMA attribute DMA_ATTR_SKIP_CPU_SYNC on multiple platforms/architectures. This is needed so that we can flag the calls to dma_map/unmap_page so that we do not invalidate cache lines that do not currently belong to the device. Instead we have to

Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Oleg Nesterov
On 10/31, Jann Horn wrote: > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > task_struct *t) > { > - if (current_user_ns() == task_cred_xxx(t, user_ns)) > + if (_user_ns == task_cred_xxx(t, user_ns)) > return; > > if

Re: scripts/basic/bin2c: Complete error handling in main()

2016-11-02 Thread SF Markus Elfring
> Is replacing printf("\"\n") with puts("\"") optimization? Is the difference relevant if an “ordinary” string is passed instead of a format string? > Frankly, the result of this patch seems extremely unreadable code. Do you care for more complete error detection and corresponding exception

[PATCH] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-02 Thread Jason A. Donenfeld
On MIPS chips commonly found in inexpensive routers, this makes a big difference in performance. Signed-off-by: Jason A. Donenfeld --- crypto/poly1305_generic.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git

Applied "ASoC: sun4i-codec: Enable bus clock after getting GPIO" to the asoc tree

2016-11-02 Thread Mark Brown
The patch ASoC: sun4i-codec: Enable bus clock after getting GPIO has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH RFC 0/4] Fix PDF build errors

2016-11-02 Thread Markus Heiser
Am 02.11.2016 um 17:47 schrieb Mauro Carvalho Chehab : > Em Wed, 2 Nov 2016 17:08:08 +0100 > Markus Heiser escreveu: > >> Am 02.11.2016 um 12:14 schrieb Jani Nikula : >> >>> On Wed, 02 Nov 2016, Mauro Carvalho

Re: [PATCH v5 5/7] net: ethernet: bgmac: device tree phy enablement

2016-11-02 Thread Florian Fainelli
On 11/02/2016 10:08 AM, Jon Mason wrote: > Change the bgmac driver to allow for phy's defined by the device tree > > Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli -- Florian

Re: scripts/basic/fixdep: Complete error handling in print_cmdline()

2016-11-02 Thread SF Markus Elfring
>>> + if (printf("cmd_%s := %s\n\n", target, cmdline) < 10) { >> >> Rather than scatter fragile magic numbers, like 10, throughout the >> code, if you're hell-bent on checking for printf errors you could >> write a little wrapper function that hid the magic number and bundled >> up the errno

Re: scripts/basic/bin2c: Complete error handling in main()

2016-11-02 Thread Masahiro Yamada
2016-11-03 2:48 GMT+09:00 SF Markus Elfring : >> Is replacing printf("\"\n") with puts("\"") optimization? > > Is the difference relevant if an “ordinary” string is passed instead of > a format string? I think GCC does the replacement automatically unless

[PATCH v2 1/2] ARM: imx: mmdc perf function support i.MX6QP

2016-11-02 Thread Frank Li
i.MX6QP added new reigster bit PROFILE_SEL in MADPCR0. need set it at perf start. Signed-off-by: Frank Li --- V1 to V2: remove fsl_mmdc_devtype arch/arm/mach-imx/mmdc.c | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v4 6/7] net: ethernet: bgmac: add NS2 support

2016-11-02 Thread Jon Mason
On Tue, Nov 01, 2016 at 05:05:13PM -0400, Jon Mason wrote: > On Tue, Nov 01, 2016 at 01:34:30PM -0700, Scott Branden wrote: > > One change in this patch > > > > On 16-11-01 01:04 PM, Jon Mason wrote: > > >Add support for the variant of amac hardware present in the Broadcom > > >Northstar2 based

Re: [RFC PATCH v2 1/1] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-11-02 Thread Bjorn Helgaas
Hi Duc, On Tue, Oct 25, 2016 at 06:24:32PM -0700, Duc Dang wrote: > PCIe controllers in X-Gene SoCs is not ECAM compliant: software > needs to configure additional controller's register to address > device at bus:dev:function. > > This patch depends on "ECAM quirks handling for ARM64 platforms"

Applied "ASoC: dapm: Introduce DAPM_DOUBLE_R dual channel dual register control type" to the asoc tree

2016-11-02 Thread Mark Brown
The patch ASoC: dapm: Introduce DAPM_DOUBLE_R dual channel dual register control type has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Ich werde auf Ihre Antwort warten

2016-11-02 Thread Andrew Chung
Lieber Freund, Wie geht es Ihnen heute? Ich habe eine Investitionsmöglichkeit mit Ihnen zu teilen, die die Übertragung einer großen Geldsumme zum gegenseitigen Nutzen für beide von uns betreffen. Mein Name ist Andrew Hau Chung, ich in einem Finanzinstitut arbeiten hier in Hong Kong. Wenn Sie

Re: [f2fs-dev] [PATCH 2/3] f2fs: use __set_page_dirty_nobuffers directly

2016-11-02 Thread Jaegeuk Kim
On Wed, Nov 02, 2016 at 03:34:32PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > On 2016/10/21 10:28, Jaegeuk Kim wrote: > > This patch replaces the copied code with original generic function. > > Will we plan to do further enhance inside f2fs_set_page_dirty_nobuffers, if we > don't it's better revert

Re: net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match

2016-11-02 Thread Eric Dumazet
On Wed, 2016-11-02 at 18:01 +0100, Andrey Konovalov wrote: > Hi, > > I've got the following error report while running the syzkaller fuzzer: > > general protection fault: [#1] SMP KASAN > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > CPU: 0 PID: 648 Comm:

[mm PATCH v2 22/26] arch/xtensa: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Max Filippov Signed-off-by: Alexander Duyck ---

Re: [PATCH v3 0/6] Add support for IR transmitters

2016-11-02 Thread Sean Young
On Wed, Nov 02, 2016 at 07:40:04PM +0900, Andi Shyti wrote: > The main goal is to add support in the rc framework for IR > transmitters, which currently is only supported by lirc but that > is not the preferred way. > > The last patch adds support for an IR transmitter driven by > the MOSI line

Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Jann Horn
On Wed, Nov 02, 2016 at 07:16:41PM +0100, Oleg Nesterov wrote: > On 10/31, Jann Horn wrote: > > > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > > task_struct *t) > > { > > - if (current_user_ns() == task_cred_xxx(t, user_ns)) > > + if (_user_ns ==

Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Oleg Nesterov
On 11/02, Jann Horn wrote: > > On Wed, Nov 02, 2016 at 07:16:41PM +0100, Oleg Nesterov wrote: > > On 10/31, Jann Horn wrote: > > > > > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > > > task_struct *t) > > > { > > > - if (current_user_ns() == task_cred_xxx(t,

Re: [PATCH v5 4/7] Documentation: devicetree: net: add NS2 bindings to amac

2016-11-02 Thread Jon Mason
On Wed, Nov 02, 2016 at 08:18:51PM +0300, Sergei Shtylyov wrote: > Hello. > > On 11/02/2016 08:08 PM, Jon Mason wrote: > > >Clean-up the documentation to the bgmac-amac driver, per suggestion by > >Rob Herring, and add details for NS2 support. > > > >Signed-off-by: Jon Mason

[PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare()

2016-11-02 Thread Masahiro Yamada
The denali_dt_probe() calls clk_disable_unprepare() in the bailout path, whereas denali_dt_remove calls clk_disable(), inconsistently. Replace the latter with clk_disable_unprepare() to make sure to unprepare the clock. Signed-off-by: Masahiro Yamada ---

[PATCH 1/2] Documentation/HOWTO: Use a more recent gcc + binutils

2016-11-02 Thread Sebastian Andrzej Siewior
Debian Woody is pre-gcc3.2 and Sarge ships 3.3 gcc. I tried to compile v4.8.6 on Sarge failed due to binutils: |arch/x86/entry/entry_32.S: Assembler messages: |arch/x86/entry/entry_32.S:379: Error: invalid character '"' in operand 1 |arch/x86/entry/entry_32.S:454: Error: too many positional

[PATCH 2/2] kbuild: add -fno-PIE

2016-11-02 Thread Sebastian Andrzej Siewior
Debian started to build the gcc with -fPIE by default so the kernel build ends before it starts properly with: |kernel/bounds.c:1:0: error: code model kernel does not support PIC mode Also add to KBUILD_AFLAGSi due to: |gcc -Wp,-MD,arch/x86/entry/vdso/vdso32/.note.o.d … -mfentry

Re: [PREEMPT-RT] Oops in rapl_cpu_prepare()

2016-11-02 Thread Sebastian Andrzej Siewior
On 2016-11-01 13:15:53 [+0300], M. Vefa Bicakci wrote: > Hello Sebastian, Hi, > The patch fixes the kernel oops for me. > > I am using a custom 4.8.5-based kernel on Qubes OS R3.2, which is based > on Xen 4.6.3. Apparently, Xen also has a similar bug/flaw/quirk regarding > the allocation of

Re: [PATCH] drm/sun4i: Fix error handling

2016-11-02 Thread Maxime Ripard
Hi, On Sun, Oct 30, 2016 at 12:53:02PM +0100, Christophe JAILLET wrote: > BTW, memory allocation in 'sun4i_layers_init()' looks spurious, especially > the use of 'layer' in the for loop. > Just my 2 cents. What do you mean by it's spurious? > I also forgot to say that we could propagate the

Re: [PATCH v2 2/4] ARM: dts: sun8i: Add SPI controller node in H3

2016-11-02 Thread Maxime Ripard
1;4600;0c On Fri, Oct 28, 2016 at 03:54:10PM +0900, Milo Kim wrote: > H3 SPI subsystem is almost same as A31 SPI except buffer size, so those > DT properties are reusable. > > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Signed-off-by: Milo Kim

Re: [PATCH V4] pinctrl: qcom: Add msm8994 pinctrl driver

2016-11-02 Thread Stephen Boyd
On 11/01, Michael Scott wrote: > > On 11/01/2016 04:53 PM, Stephen Boyd wrote: > >On 10/31, Michael Scott wrote: > >>+ > >>+static const struct msm_pingroup msm8994_groups[] = { > >>+ PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA, > >>+NA, NA), > >I see an

Re: [PATCH 1/2] Documentation/HOWTO: Use a more recent gcc + binutils

2016-11-02 Thread Sven Joachim
On 2016-11-02 18:20 +0100, Sebastian Andrzej Siewior wrote: > Debian Woody is pre-gcc3.2 and Sarge ships 3.3 gcc. I tried to compile > v4.8.6 on Sarge failed due to binutils: > |arch/x86/entry/entry_32.S: Assembler messages: > |arch/x86/entry/entry_32.S:379: Error: invalid character '"' in

Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS

2016-11-02 Thread Dave Hansen
On 10/31/2016 05:08 PM, Mark Rutland wrote: > When an architecture does not select CONFIG_ARCH_HAS_PKEYS, the pkey_alloc > syscall will return -ENOSPC for all (otherwise well-formed) requests, as the > generic implementation of mm_pkey_alloc() returns -1. The other pkey syscalls > perform some

Re: [PATCH 2/6] g_NCR5380: Test the IRQ before accepting it

2016-11-02 Thread Ondrej Zary
On Wednesday 02 November 2016 08:45:26 Finn Thain wrote: > On Mon, 31 Oct 2016, Ondrej Zary wrote: > > Trigger an IRQ first with a test IRQ handler to find out if it really > > works. Disable the IRQ if not. > > > > This prevents hang when incorrect IRQ was specified by user. > > Once again, how

Re: [PATCH] net: 3com: typhoon: use new api ethtool_{get|set}_link_ksettings

2016-11-02 Thread David Miller
From: Philippe Reynes Date: Wed, 2 Nov 2016 00:11:51 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 1/1] xen-netfront: cast grant table reference first to type int

2016-11-02 Thread David Miller
From: Dongli Zhang Date: Wed, 2 Nov 2016 09:04:33 +0800 > IS_ERR_VALUE() in commit 87557efc27f6a50140fb20df06a917f368ce3c66 > ("xen-netfront: do not cast grant table reference to signed short") would > not return true for error code unless we cast ref first to type int.

  1   2   3   4   5   6   7   8   9   10   >