Re: [GIT PULL] lkdtm fixes for v4.9-rc4

2016-11-01 Thread Greg KH
On Tue, Nov 01, 2016 at 10:32:03AM -0700, Kees Cook wrote: > Hi, > > Please pull this lkdtm fix for v4.9-rc4. > > Thanks! > > -Kees > > The following changes since commit 07d9a380680d1c0eb51ef87ff2eab5c994949e69: > > Linux 4.9-rc2 (2016-10-23 17:10:14 -0700) > > are available in the git rep

Re: [PATCHv3 2/3] z3fold: change per-pool spinlock to rwlock

2016-11-01 Thread Dan Streetman
On Thu, Oct 27, 2016 at 7:12 AM, Vitaly Wool wrote: > Mapping/unmapping goes with no actual modifications so it makes > sense to only take a read lock in map/unmap functions. > > This change gives up to 10% performance gain and lower latencies > in fio sequential read/write tests, e.g. before: > >

Re: [PATCH] drm/armada: mark symbols static where possible

2016-11-01 Thread Russell King - ARM Linux
On Sat, Oct 22, 2016 at 05:03:58PM +0800, Baoyou Xie wrote: > We get 2 warnings when building kernel with W=1: > drivers/gpu/drm/armada/armada_gem.c:215:27: warning: no previous prototype > for 'armada_gem_alloc_object' [-Wmissing-prototypes] > drivers/gpu/drm/armada/armada_gem.c:423:1: warning: n

Re: [PATCH] drm/armada: Remove some dead code

2016-11-01 Thread Russell King - ARM Linux
On Sun, Oct 30, 2016 at 04:38:42PM +0100, Christophe JAILLET wrote: > 'dma_buf_map_attachment()' can not return NULL, so there is no need to > check for it. > > Also add a space in order to improve layout. Thanks, applied. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTT

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-01 Thread Sakari Ailus
Hi Pavel, On Tue, Nov 01, 2016 at 04:39:21PM +0100, Pavel Machek wrote: > Hi! > > > > I'll have to go through the patches, et8ek8 driver is probably not > > > enough to get useful video. platform/video-bus-switch.c is needed for > > > camera switching, then some omap3isp patches to bind flash and

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-01 Thread Sakari Ailus
Hi Ivaylo, On Tue, Nov 01, 2016 at 08:36:57AM +0200, Ivaylo Dimitrov wrote: > Hi, > > On 1.11.2016 00:54, Sakari Ailus wrote: > >Hi Pavel, > > > >On Sun, Oct 23, 2016 at 10:33:15PM +0200, Pavel Machek wrote: > >>Hi! > >> > >>>Thanks, this answered half of my questions already. ;-) > >> > >>:-).

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

2016-11-01 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 insertions(+) diff --gi

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

2016-11-01 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 applicable

Bus error on shm_open/ftruncate/mmap after changing kernel boot partition

2016-11-01 Thread Thierry Moreau
Strange bug after changing the boot partition (the previous was on a hard disk with a few media errors). I must apologize that the old partition is re-formatted. (As an excuse the other services on this server system work fine with the new partition.) Anyway, the bogus code sequence is below.

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

2016-11-01 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 +++- drivers/net/ethernet/broadcom/bgmac.c

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

2016-11-01 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(-) diff --git a/Documentatio

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

2016-11-01 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 a/arch/arm64/boot/dts/broadcom/

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

2016-11-01 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] net: ip, diag -- Adjust raw_abort to use unlocked __udp_disconnect

2016-11-01 Thread Cyrill Gorcunov
While being preparing patches for killing raw sockets via diag netlink interface I noticed that my runs are stuck: | [root@pcs7 ~]# cat /proc/`pidof ss`/stack | [] __lock_sock+0x80/0xc4 | [] lock_sock_nested+0x47/0x95 | [] udp_disconnect+0x19/0x33 | [] raw_abort+0x33/0x42 | [] sock_diag_dest

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

2016-11-01 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetr

[PATCH v9 00/16] re-enable DAX PMD support

2016-11-01 Thread Ross Zwisler
DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based locking. This series allows DAX PMDs to participate in the DAX radix tree based locking scheme so that they can be re-enabled. Previously we had talked about this series going through the XFS tree, but Jan has a patch set

Re: [PATCHv3 1/3] z3fold: make counters atomic

2016-11-01 Thread Dan Streetman
On Thu, Oct 27, 2016 at 7:08 AM, Vitaly Wool wrote: > This patch converts pages_nr per-pool counter to atomic64_t. > It also introduces a new counter, unbuddied_nr, which is > atomic64_t, too, to track the number of unbuddied (compactable) > z3fold pages. so, with the use of workqueues, do we sti

[PATCH v9 05/16] dax: remove the last BUG_ON() from fs/dax.c

2016-11-01 Thread Ross Zwisler
Don't take down the kernel if we get an invalid 'from' and 'length' argument pair. Just warn once and return an error. Signed-off-by: Ross Zwisler Reviewed-by: Christoph Hellwig Reviewed-by: Jan Kara --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/dax.c b

[PATCH v9 01/16] ext4: tell DAX the size of allocation holes

2016-11-01 Thread Ross Zwisler
When DAX calls _ext4_get_block() and the file offset points to a hole we currently don't set bh->b_size. This is current worked around via buffer_size_valid() in fs/dax.c. _ext4_get_block() has the hole size information from ext4_map_blocks(), so populate bh->b_size so we can remove buffer_size_v

[PATCH v9 06/16] dax: consistent variable naming for DAX entries

2016-11-01 Thread Ross Zwisler
No functional change. Consistently use the variable name 'entry' instead of 'ret' for DAX radix tree entries. This was already happening in most of the code, so update get_unlocked_mapping_entry(), grab_mapping_entry() and dax_unlock_mapping_entry(). Signed-off-by: Ross Zwisler Reviewed-by: Chr

[PATCH v9 02/16] dax: remove buffer_size_valid()

2016-11-01 Thread Ross Zwisler
Now that ext4 properly sets bh.b_size when we call get_block() for a hole, rely on that value and remove the buffer_size_valid() sanity check. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara Reviewed-by: Christoph Hellwig --- fs/dax.c | 22 +- 1 file changed, 1 insertion(

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

2016-11-01 Thread Jon Mason
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 DT binding doc (per Rob Herring) * Document the lane swap binding and make it generic (Per Andrew Lunn) Changes in v2: * Remove th

[PATCH v9 14/16] dax: add struct iomap based DAX PMD support

2016-11-01 Thread Ross Zwisler
DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based locking. This patch allows DAX PMDs to participate in the DAX radix tree based locking scheme so that they can be re-enabled using the new struct iomap based fault handlers. There are currently three types of DAX 4k entrie

[PATCH v9 03/16] ext2: remove support for DAX PMD faults

2016-11-01 Thread Ross Zwisler
DAX PMD support was added via the following commit: commit e7b1ea2ad658 ("ext2: huge page fault support") I believe this path to be untested as ext2 doesn't reliably provide block allocations that are aligned to 2MiB. In my testing I've been unable to get ext2 to actually fault in a PMD. It alw

[PATCH v9 04/16] dax: make 'wait_table' global variable static

2016-11-01 Thread Ross Zwisler
The global 'wait_table' variable is only used within fs/dax.c, and generates the following sparse warning: fs/dax.c:39:19: warning: symbol 'wait_table' was not declared. Should it be static? Make it static so it has scope local to fs/dax.c, and to make sparse happy. Signed-off-by: Ross Zwisler

Re: [PATCH v3 2/6] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-01 Thread Jon Mason
On Tue, Nov 01, 2016 at 07:46:39PM +0100, Andrew Lunn wrote: > Hi Jon > > > @@ -56,6 +57,8 @@ > > #define PHY_BRCM_EXT_IBND_TX_ENABLE0x2000 > > #define PHY_BRCM_CLEAR_RGMII_MODE 0x4000 > > #define PHY_BRCM_DIS_TXCRXC_NOENRGY0x8000 > > +#define PHY_BRCM_EXP_LANE_SWAP

[PATCH v9 13/16] dax: move put_(un)locked_mapping_entry() in dax.c

2016-11-01 Thread Ross Zwisler
No functional change. The static functions put_locked_mapping_entry() and put_unlocked_mapping_entry() will soon be used in error cases in grab_mapping_entry(), so move their definitions above this function. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/dax.c | 50 ++

[PATCH v9 09/16] dax: correct dax iomap code namespace

2016-11-01 Thread Ross Zwisler
The recently added DAX functions that use the new struct iomap data structure were named iomap_dax_rw(), iomap_dax_fault() and iomap_dax_actor(). These are actually defined in fs/dax.c, though, so should be part of the "dax" namespace and not the "iomap" namespace. Rename them to dax_iomap_rw(), d

Re: [PATCH v3 0/6] add NS2 support to bgmac

2016-11-01 Thread Jon Mason
On Tue, Nov 01, 2016 at 11:01:19AM -0700, Scott Branden wrote: > Hi Jon, > > On 16-11-01 10:51 AM, Jon Mason wrote: > >Changes in v3: > >* Clean-up the bgmac DT binding doc (per Rob Herring) > >* Document the lane swap binding and make it generic (Per Andrew Lunn) > Where is the documentation of t

Re: [PATCH v2 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-01 Thread Daniel Lezcano
On Mon, Oct 31, 2016 at 05:03:40PM +, Noam Camus wrote: > >From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > >Sent: Monday, October 31, 2016 12:53 PM > > >> > >> The design idea is that for each core there is dedicated regirtser > > >s/regirtser/register/ > > >Hey ! re-read yoursel

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-01 Thread Matt Ranostay
On Mon, Oct 31, 2016 at 2:38 PM, Pavel Machek wrote: > On Mon 2016-10-31 13:22:18, Matt Ranostay wrote: >> On Tue, Oct 25, 2016 at 11:47 AM, Matt Ranostay wrote: >> > On Mon, Oct 24, 2016 at 1:14 PM, Pavel Machek wrote: >> >> On Mon 2016-10-24 12:58:25, Matt Ranostay wrote: >> >>> Pavel + Sebast

[PATCH v9 08/16] dax: remove dax_pmd_fault()

2016-11-01 Thread Ross Zwisler
dax_pmd_fault() is the old struct buffer_head + get_block_t based 2 MiB DAX fault handler. This fault handler has been disabled for several kernel releases, and support for PMDs will be reintroduced using the struct iomap interface instead. Signed-off-by: Ross Zwisler Reviewed-by: Christoph Hell

[PATCH v9 07/16] dax: coordinate locking for offsets in PMD range

2016-11-01 Thread Ross Zwisler
DAX radix tree locking currently locks entries based on the unique combination of the 'mapping' pointer and the pgoff_t 'index' for the entry. This works for PTEs, but as we move to PMDs we will need to have all the offsets within the range covered by the PMD to map to the same bit lock. To accompl

[PATCH v9 15/16] xfs: use struct iomap based DAX PMD fault path

2016-11-01 Thread Ross Zwisler
Switch xfs_filemap_pmd_fault() from using dax_pmd_fault() to the new and improved dax_iomap_pmd_fault(). Also, now that it has no more users, remove xfs_get_blocks_dax_fault(). Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/xfs/xfs_aops.c | 26 +- fs/xfs/xfs_a

[PATCH v9 11/16] dax: dax_iomap_fault() needs to call iomap_end()

2016-11-01 Thread Ross Zwisler
Currently iomap_end() doesn't do anything for DAX page faults for both ext2 and XFS. ext2_iomap_end() just checks for a write underrun, and xfs_file_iomap_end() checks to see if it needs to finish a delayed allocation. However, in the future iomap_end() calls might be needed to make sure we have

Re: [PATCH 1/6] staging: iio: set proper supply name to devm_regulator_get()

2016-11-01 Thread Lars-Peter Clausen
On 11/01/2016 05:03 AM, Matt Ranostay wrote: > On Mon, Oct 31, 2016 at 10:04 AM, Eva Rachel Retuya > wrote: >> The name passed to devm_regulator_get() should match the name of the >> supply as specified in the device datasheet. This makes it clear what >> power supply is being referred to in case

[PATCH v9 16/16] dax: remove "depends on BROKEN" from FS_DAX_PMD

2016-11-01 Thread Ross Zwisler
Now that DAX PMD faults are once again working and are now participating in DAX's radix tree locking scheme, allow their config option to be enabled. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index

[PATCH v9 10/16] dax: add dax_iomap_sector() helper function

2016-11-01 Thread Ross Zwisler
To be able to correctly calculate the sector from a file position and a struct iomap there is a complex little bit of logic that currently happens in both dax_iomap_actor() and dax_iomap_fault(). This will need to be repeated yet again in the DAX PMD fault handler when it is added, so break it out

[PATCH v9 12/16] dax: move RADIX_DAX_* defines to dax.h

2016-11-01 Thread Ross Zwisler
The RADIX_DAX_* defines currently mostly live in fs/dax.c, with just RADIX_DAX_ENTRY_LOCK being in include/linux/dax.h so it can be used in mm/filemap.c. When we add PMD support, though, mm/filemap.c will also need access to the RADIX_DAX_PTE type so it can properly construct a 4k sized empty entr

Re: [PATCH 5/9] ASoC: pxa: switch to new ac97 bus support

2016-11-01 Thread Robert Jarzmik
Robert Jarzmik writes: > Robert Jarzmik writes: > >> Switch to the new ac97 bus support in sound/ac97 instead of the legacy >> snd_ac97 one. >> >> Signed-off-by: Robert Jarzmik > I realized this one impacts sound/arm/pxa2xx-ac97.c. > This deserves a v2, with this patch being split into 2 pieces

Re: [PATCH] usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER

2016-11-01 Thread Bin Liu
Hi, On Tue, Oct 25, 2016 at 02:02:50PM -0500, David Lechner wrote: > This suppresses printing the error message "failed to get phy" in the > kernel log when the error is -EPROBE_DEFER. This prevents usless noise > in the kernel log. > > Signed-off-by: David Lechner Applied. Thanks. Regards, -B

[PATCH] rapidio: use get_user_pages_unlocked()

2016-11-01 Thread Lorenzo Stoakes
Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code and takes advantage of VM_FAULT_RETRY functionality when faulting in pages. Signed-off-by: Lorenzo Stoakes --- drivers/rapidio/devices/rio_mport_cdev.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) dif

[PATCH] drm/via: use get_user_pages_unlocked()

2016-11-01 Thread Lorenzo Stoakes
Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code and takes advantage of VM_FAULT_RETRY functionality when faulting in pages. Signed-off-by: Lorenzo Stoakes --- drivers/gpu/drm/via/via_dmablit.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --

[PATCH] drivers/virt: use get_user_pages_unlocked()

2016-11-01 Thread Lorenzo Stoakes
Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code and takes advantage of VM_FAULT_RETRY functionality when faulting in pages. Signed-off-by: Lorenzo Stoakes --- drivers/virt/fsl_hypervisor.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH] platform: goldfish: pipe: use get_user_pages_unlocked()

2016-11-01 Thread Lorenzo Stoakes
Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code and takes advantage of VM_FAULT_RETRY functionality when faulting in pages. Signed-off-by: Lorenzo Stoakes --- drivers/platform/goldfish/goldfish_pipe.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

Re: [PATCH v4] usb: musb: remove duplicated actions

2016-11-01 Thread Bin Liu
Hi, On Wed, Oct 26, 2016 at 09:10:07PM +0300, Kirill Esipov wrote: > Removing unnecessary duplicated actions that we've got while merging: > 19915e623458 ("Merge 4.1-rc7 into usb-next") > > Signed-off-by: Kirill Esipov Applied. Thanks. Regards, -Bin. > --- > drivers/usb/musb/musb_core.c | 5

Re: [PATCH] UBIFS: Remove some dead code

2016-11-01 Thread Julia Lawall
On Tue, 1 Nov 2016, Christophe JAILLET wrote: > Le 01/11/2016 à 12:42, Richard Weinberger a écrit : > > On 01.11.2016 07:45, Christophe JAILLET wrote: > > > 'ubifs_fast_find_freeable()' can not return an error pointer, so this test > > > can be removed. > > > > > > Signed-off-by: Christophe JAIL

Re: [PATCH] UBIFS: Remove some dead code

2016-11-01 Thread Julia Lawall
On Tue, 1 Nov 2016, Christophe JAILLET wrote: > Le 01/11/2016 à 12:42, Richard Weinberger a écrit : > > On 01.11.2016 07:45, Christophe JAILLET wrote: > > > 'ubifs_fast_find_freeable()' can not return an error pointer, so this test > > > can be removed. > > > > > > Signed-off-by: Christophe JAIL

[[PATCH repost v21] 08/11] fpga: fpga-region: device tree control for FPGA

2016-11-01 Thread Alan Tull
FPGA Regions support programming FPGA under control of the Device Tree. Signed-off-by: Alan Tull Signed-off-by: Greg Kroah-Hartman --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 3 + drivers/fpga/fpga-region.c| 603 ++ in

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

2016-11-01 Thread Alan Tull
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 notifiers that are post-apply or post-remove and which issue very granular notifications wit

[[PATCH repost v21] 07/11] fpga: add fpga bridge framework

2016-11-01 Thread Alan Tull
This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic, allowing it to be use

[[PATCH repost v21] 00/11] Device Tree support for FPGA Programming

2016-11-01 Thread Alan Tull
Repost, this time adding the "of overlay notifications" patch to fix build break. No changes from v21. The following were acked by Rob so they are no longer in this patch set: * DT bindings for Altera Freeze Bridges https://patchwork.kernel.org/patch/9379803/ * DT bindings for Altera SOCFPG

Re: [RFC] fpga: Pull checks for supported operations into framework

2016-11-01 Thread atull
On Mon, 31 Oct 2016, Moritz Fischer wrote: > Found a couple of issues, will resubmit after cleaning up. Feel free to add > general feedback on the idea anyways in the meantime. Sorry for double post. Hi Moritz, This looks good and useful to me. One comment below. > > On Sun, Oct 30, 2016 at 1

Re: [PATCH] UBIFS: Remove some dead code

2016-11-01 Thread Julia Lawall
On Tue, 1 Nov 2016, Christophe JAILLET wrote: > Le 01/11/2016 à 12:42, Richard Weinberger a écrit : > > On 01.11.2016 07:45, Christophe JAILLET wrote: > > > 'ubifs_fast_find_freeable()' can not return an error pointer, so this test > > > can be removed. > > > > > > Signed-off-by: Christophe JAIL

Re: [PATCH v12 RESEND 0/4] generic TEE subsystem

2016-11-01 Thread Andrew F. Davis
On 10/28/2016 01:19 PM, Mark Brown wrote: > On Fri, Oct 28, 2016 at 10:43:24AM -0500, Andrew F. Davis wrote: > >> Do we see this as a chicken and egg situation, or is there any harm >> beyond the pains of supporting an out-of-tree driver for a while, to >> wait until we have at least one other TEE

[[PATCH repost v21] 03/11] doc: fpga-mgr: add fpga image info to api

2016-11-01 Thread Alan Tull
This patch adds a minor change in the FPGA Manager API to hold information that is specific to an FPGA image file. This change is expected to bring little, if any, pain. An FPGA image file will have particulars that affect how the image is programmed to the FPGA. One example is that current 'fla

[[PATCH repost v21] 10/11] fpga: add altera freeze bridge support

2016-11-01 Thread Alan Tull
Add a low level driver for Altera Freeze Bridges to the FPGA Bridge framework. A freeze bridge is a bridge that exists in the FPGA fabric to isolate one region of the FPGA from the busses while that one region is being reprogrammed. Signed-off-by: Alan Tull Signed-off-by: Matthew Gerlach Signed

[[PATCH repost v21] 06/11] add sysfs document for fpga bridge class

2016-11-01 Thread Alan Tull
Add documentation for new FPGA bridge class's sysfs interface. Signed-off-by: Alan Tull Acked-by: Moritz Fischer Signed-off-by: Greg Kroah-Hartman --- Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/test

Re: [PATCH] UBIFS: Remove some dead code

2016-11-01 Thread Christophe JAILLET
Le 01/11/2016 à 12:42, Richard Weinberger a écrit : On 01.11.2016 07:45, Christophe JAILLET wrote: 'ubifs_fast_find_freeable()' can not return an error pointer, so this test can be removed. Signed-off-by: Christophe JAILLET --- fs/ubifs/gc.c | 4 1 file changed, 4 deletions(-) diff --

[[PATCH repost v21] 11/11] fpga-manager: Add Socfpga Arria10 support

2016-11-01 Thread Alan Tull
Add low level driver to support reprogramming FPGAs for Altera SoCFPGA Arria10. Signed-off-by: Alan Tull Reviewed-by: Moritz Fischer Signed-off-by: Greg Kroah-Hartman --- drivers/fpga/Kconfig | 6 + drivers/fpga/Makefile | 1 + drivers/fpga/socfpga-a10.c | 556 ++

[[PATCH repost v21] 04/11] fpga: add bindings document for fpga region

2016-11-01 Thread Alan Tull
New bindings document for FPGA Region to support programming FPGA's under Device Tree control Signed-off-by: Alan Tull Signed-off-by: Moritz Fischer Reviewed-by: Rob Herring Signed-off-by: Greg Kroah-Hartman --- .../devicetree/bindings/fpga/fpga-region.txt | 494 + 1

[[PATCH repost v21] 09/11] ARM: socfpga: fpga bridge driver support

2016-11-01 Thread Alan Tull
Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on. This is due to a hard

[[PATCH repost v21] 05/11] fpga-mgr: add fpga image information struct

2016-11-01 Thread Alan Tull
This patch adds a minor change in the FPGA Manager API to hold information that is specific to an FPGA image file. This change is expected to bring little, if any, pain. The socfpga and zynq drivers are fixed up in this patch. An FPGA image file will have particulars that affect how the image is

[[PATCH repost v21] 02/11] fpga: add method to get fpga manager from device

2016-11-01 Thread Alan Tull
The intent is to provide a non-DT method of getting ahold of a FPGA manager to do some FPGA programming. This patch refactors of_fpga_mgr_get() to reuse most of it while adding a new method fpga_mgr_get() for getting a pointer to a fpga manager struct, given the device. Signed-off-by: Alan Tull

[PATCH] arm/vdso: introduce vdso_mremap hook

2016-11-01 Thread Dmitry Safonov
Add vdso_mremap hook which will fix context.vdso pointer after mremap() on vDSO vma. This is needed for correct landing after syscall execution. Primary goal of this is for CRIU on arm - we need to restore vDSO image at the exactly same place where the vma was in dumped application. With the help

[PATCH v2] perf/core: do not set cpuctx->cgrp for unscheduled cgroups

2016-11-01 Thread David Carrillo-Cisneros
(v2 only extends this changelog.) commit db4a835601b7 ("perf/core: Set cgroup in CPU contexts for new cgroup events") failed to verify that event->cgrp is actually the scheduled cgroup in a CPU before setting cpuctx->cgrp. This patch fixes that. Now that there is a different path for scheduled a

RE: [PATCH v3 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-01 Thread Thomas Gleixner
On Tue, 1 Nov 2016, Noam Camus wrote: > >> +static int nps_clkevent_set_next_event(unsigned long delta, > >> + struct clock_event_device *dev) { > >> + struct irq_desc *desc = irq_to_desc(nps_timer0_irq); > >> + struct irq_chip *chip = irq_data_get_irq_chip(&desc->

Re: [PATCH v3 2/6] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-01 Thread Andrew Lunn
Hi Jon > @@ -56,6 +57,8 @@ > #define PHY_BRCM_EXT_IBND_TX_ENABLE 0x2000 > #define PHY_BRCM_CLEAR_RGMII_MODE0x4000 > #define PHY_BRCM_DIS_TXCRXC_NOENRGY 0x8000 > +#define PHY_BRCM_EXP_LANE_SWAP 0x0001 > + You define this, but don't use it... Andrew

Re: [PATCH v8 7/7] KVM: x86: virtualize cpuid faulting

2016-11-01 Thread Thomas Gleixner
On Tue, 1 Nov 2016, Paolo Bonzini wrote: > > > + vcpu->arch.cpuid_fault = false; > > This should be conditional on "if (!init_event)". Most MSRs are untouched > on an INIT IPI. > > Otherwise looks good. The patch is independent of the rest, so I would > prefer to take it through the KVM tre

Re: [PATCH v3] staging: iio: cdc: ad7746: add additional config defines

2016-11-01 Thread Jonathan Cameron
On 31/10/16 08:05, Eva Rachel Retuya wrote: > On Mon, Oct 31, 2016 at 03:49:01PM +0800, Eva Rachel Retuya wrote: >> On Sun, Oct 30, 2016 at 06:49:00PM +, Jonathan Cameron wrote: >>> On 30/10/16 17:46, Lars-Peter Clausen wrote: On 10/30/2016 06:41 PM, Jonathan Cameron wrote: > On 28/10/

Re: [PATCH v3 3/5] mtd: nand: Add bb_per_lun and blocks_per_lun fields to nand_chip

2016-11-01 Thread Zach Brown
On Tue, Nov 01, 2016 at 02:50:58PM +0100, Boris Brezillon wrote: > On Fri, 28 Oct 2016 15:27:42 -0500 > Zach Brown wrote: > > > The fields bb_per_lun and blocks_per_lun are useful determining the > > number of bad blocks a MTD needs to allocate. How they are set will > > depend on if the chip is O

Re: block device direct I/O fast path

2016-11-01 Thread Jens Axboe
On 11/01/2016 11:54 AM, Jens Axboe wrote: On Tue, Nov 01 2016, Christoph Hellwig wrote: On Tue, Nov 01, 2016 at 11:00:19AM -0600, Jens Axboe wrote: #2 is a bit more problematic, I'm pondering how we can implement that on top of the bio approach. The nice thing about the request based approach i

[PATCH v4 1/5] mtd: introduce function max_bad_blocks

2016-11-01 Thread Zach Brown
From: Jeff Westfahl If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for an MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown --- drivers/mtd/mtdpart.c | 13 + include/linux/mtd/mtd.h | 11 +

[PATCH v4 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2016-11-01 Thread Zach Brown
For ONFI-compliant NAND devices, the ONFI parameters report the maximum number of bad blocks per LUN that will be encountered over the lifetime of the device, so we can use that information to get a more accurate (and smaller) value for the UBI bad PEB limit. The ONFI parameter "maxiumum number of

[PATCH v4 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-01 Thread Zach Brown
From: Jeff Westfahl Use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit, if the function is implemented for an MTD and doesn't return an error. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown --- drivers/mtd/ubi/build.c | 4 1 file changed, 4 insertions(+) diff

[PATCH v4 3/5] mtd: nand: Add bb_per_die and blocks_per_die fields to nand_chip

2016-11-01 Thread Zach Brown
The fields bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown --- include/linux/mtd/nand.h | 5 + 1 file changed,

[PATCH v4 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2016-11-01 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown --- drivers/mtd/nand/nand_base.c | 35 +++ 1 f

[PATCH V2 09/14] tools: hv: remove unnecessary link flag

2016-11-01 Thread kys
From: Weibing Zhang The link flag pthread is not needed. Signed-off-by: Weibing Zhang Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index a8c4644..0d1e61b 100644 --- a/tool

[PATCH V2 05/14] Drivers: hv: balloon: Add logging for dynamic memory operations

2016-11-01 Thread kys
From: Alex Ng Added logging to help troubleshoot common ballooning, hot add, and versioning issues. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 31 --- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH V2 02/14] Drivers: hv: utils: reduce HV_UTIL_NEGO_TIMEOUT timeout

2016-11-01 Thread kys
From: Vitaly Kuznetsov I discovered that at least WS2016TP5 host has 60 seconds timeout for the ICMSGTYPE_NEGOTIATE message so we need to lower guest's timeout a little bit to make sure we always respond in time. Let's make it 55 seconds. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Sri

[PATCH V2 03/14] Drivers: hv: utils: Fix the mapping between host version and protocol to use

2016-11-01 Thread kys
From: Alex Ng We should intentionally declare the protocols to use for every known host and default to using the latest protocol if the host is unknown or new. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_util.c |9 ++--- 1 files changed, 6 insertions(+), 3

[PATCH v4 5/5] mtd: nand: set bb_per_die and blocks_per_die for ONFI compliant chips

2016-11-01 Thread Zach Brown
ONFI compliant chips contain the values for the bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown --- drivers/mtd/nand/nand_base.c | 4 1 file

[PATCH V2 10/14] tools: hv: fix a compile warning in snprintf

2016-11-01 Thread kys
From: Weibing Zhang hv_kvp_daemon.c: In function .kvp_mac_to_if_name.: hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security] snprintf(dev_id, sizeof(dev_id), kvp_net_dir); ^ hv_kvp_daemon.c:705:2: warning: format not a string literal and no f

[PATCH V2 01/14] Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw() (v2)

2016-11-01 Thread kys
From: Vitaly Kuznetsov With wrap around mappings in place we can always provide drivers with direct links to packets on the ring buffer, even when they wrap around. Do the required updates to get_next_pkt_raw()/put_pkt_raw() The first version of this commit was reverted (65a532f3d50a) to deal wi

[PATCH V2 14/14] Drivers: hv: vmbus: On the read path cleanup the logic to interrupt the host

2016-11-01 Thread kys
From: K. Y. Srinivasan Signal the host when we determine the host is to be signaled - on th read path. The currrent code determines the need to signal in the ringbuffer code and actually issues the signal elsewhere. This can result in the host viewing this interrupt as spurious since the host may

[PATCH V2 12/14] Drivers: hv: vmbus: Base host signaling strictly on the ring state

2016-11-01 Thread kys
From: K. Y. Srinivasan One of the factors that can result in the host concluding that a given guest in mounting a DOS attack is if the guest generates interrupts to the host when the host is not expecting it. If these "spurious" interrupts reach a certain rate, the host can throttle the guest to

[PATCH V2 11/14] tools: hv: remove unnecessary header files and netlink related code

2016-11-01 Thread kys
From: Weibing Zhang Remove unnecessary header files and netlink related code as the daemons do not use netlink to communicate with the kernel now. Signed-off-by: Weibing Zhang Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |7 --- tools/hv/hv_kvp_daemon.c |7

[PATCH V2 13/14] Drivers: hv: vmbus: On write cleanup the logic to interrupt the host

2016-11-01 Thread kys
From: K. Y. Srinivasan Signal the host when we determine the host is to be signaled. The currrent code determines the need to signal in the ringbuffer code and actually issues the signal elsewhere. This can result in the host viewing this interrupt as spurious since the host may also poll the cha

[PATCH V2 08/14] Drivers: hv: balloon: Fix info request to show max page count

2016-11-01 Thread kys
From: Alex Ng Balloon driver was only printing the size of the info blob and not the actual content. This fixes it so that the info blob (max page count as configured in Hyper-V) is printed out. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |9 +++-

[PATCH V2 04/14] Drivers: hv: balloon: Disable hot add when CONFIG_MEMORY_HOTPLUG is not set

2016-11-01 Thread kys
From: Alex Ng If the guest does not support memory hotplugging, it should respond to the host with zero pages added and successful result code. This signals to the host that hotplugging is not supported and the host will avoid sending future hot-add requests. Signed-off-by: Alex Ng Signed-off-b

[PATCH V2 06/14] Drivers: hv: vss: Improve log messages.

2016-11-01 Thread kys
From: Alex Ng Adding log messages to help troubleshoot error cases and transaction handling. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c | 25 +++-- 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/hv/hv_snap

[PATCH V2 07/14] Drivers: hv: vss: Operation timeouts should match host expectation

2016-11-01 Thread kys
From: Alex Ng Increase the timeout of backup operations. When system is under I/O load, it needs more time to freeze. These timeout values should also match the host timeout values more closely. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c |8 ++-

[PATCH V2 00/14] Drivers: hv: Some miscellaneous fixes and enhancements

2016-11-01 Thread kys
From: K. Y. Srinivasan Some miscellaneous fixes and enhancements. V2: Fixed a build issue reported by Greg. Only Patch # 13 is affected. Alex Ng (6): Drivers: hv: utils: Fix the mapping between host version and protocol to use Drivers: hv: balloon: Disable hot add when CONFIG_MEMORY_HOT

Re: [PATCH] net/mlx5: Simplify a test

2016-11-01 Thread David Miller
From: Matan Barak Date: Tue, 1 Nov 2016 11:38:18 +0200 > On 01/11/2016 09:10, Christophe JAILLET wrote: >> 'create_root_ns()' does not return an error pointer, so the test can >> be >> simplified to be more consistent. >> >> Signed-off-by: Christophe JAILLET >> --- >> drivers/net/ethernet/mella

Re: [PATCH v6 2/2] iio: adc: add support for Allwinner SoCs ADC

2016-11-01 Thread Jonathan Cameron
On 31/10/16 09:34, Quentin Schulz wrote: > Hi Jonathan and Lee, > > On 30/10/2016 17:59, Jonathan Cameron wrote: >> On 15/09/16 13:44, Quentin Schulz wrote: >>> The Allwinner SoCs all have an ADC that can also act as a touchscreen >>> controller and a thermal sensor. This patch adds the ADC driver

Re: [PATCH v3 0/6] add NS2 support to bgmac

2016-11-01 Thread Scott Branden
Hi Jon, On 16-11-01 10:51 AM, Jon Mason wrote: Changes in v3: * Clean-up the bgmac DT binding doc (per Rob Herring) * Document the lane swap binding and make it generic (Per Andrew Lunn) Where is the documentation of the lane swap binding? Changes in v2: * Remove the PHY power-on (per Andre

[PATCH v3 0/6] add NS2 support to bgmac

2016-11-01 Thread Jon Mason
Changes in v3: * Clean-up the bgmac DT binding doc (per Rob Herring) * Document the lane swap binding and make it generic (Per Andrew Lunn) Changes in v2: * Remove the PHY power-on (per Andrew Lunn) * Misc PHY clean-ups regarding comments and #defines (per Andrew Lunn) This results on none of t

Re: [PATCH v2 1/1] remoteproc: Add support for xo clock

2016-11-01 Thread Stephen Boyd
On 11/01/2016 10:46 AM, Bjorn Andersson wrote: > On Tue, Nov 1, 2016 at 10:41 AM, Stephen Boyd wrote: >> On 10/31/2016 05:05 PM, Bjorn Andersson wrote: >>> On Tue 25 Oct 13:57 PDT 2016, Sarangdhar Joshi wrote: >>> Add xo clock support required to boot up Qualcomm ADSP processor. The ADSP

Re: block device direct I/O fast path

2016-11-01 Thread Jens Axboe
On Tue, Nov 01 2016, Christoph Hellwig wrote: > On Tue, Nov 01, 2016 at 11:00:19AM -0600, Jens Axboe wrote: > > #2 is a bit more problematic, I'm pondering how we can implement that on > > top of the bio approach. The nice thing about the request based approach > > is that we have a 1:1 mapping wit

Re: [PATCH] net/mlx5: Simplify a test

2016-11-01 Thread Matan Barak
On 01/11/2016 09:10, Christophe JAILLET wrote: 'create_root_ns()' does not return an error pointer, so the test can be simplified to be more consistent. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

<    1   2   3   4   5   6   7   >