Re: [RFC v3 02/23] powerpc: introduce set_hidx_slot helper

2017-06-25 Thread Balbir Singh
On Wed, 2017-06-21 at 18:39 -0700, Ram Pai wrote: > Introduce set_hidx_slot() which sets the (H_PAGE_F_SECOND|H_PAGE_F_GIX) > bits at the appropriate location in the PTE of 4K PTE. In the > case of 64K PTE, it sets the bits in the second part of the PTE. Though > the implementation for

linux-next: build warning after merge of the cifs tree

2017-06-25 Thread Stephen Rothwell
Hi all, After merging the cifs tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/kernel.h:13:0, from include/linux/list.h:8, from include/linux/wait.h:6, from include/linux/fs.h:5,

[PATCH v3 2/5] i2c: pca-platform: switch to struct gpio_desc

2017-06-25 Thread Chris Packham
Make use of struct gpio_desc which allows us to specify the active state of the reset pin. Signed-off-by: Chris Packham --- Changes in v3: - New, replaces "i2c: pca-platform: use gpio_is_valid" - Using struct gpio_desc is required to make the flags stick.

[PATCH v3 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk

2017-06-25 Thread Chris Packham
Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index 7db481cbf402..395eca0cbb1f

[PATCH v3 1/5] dt-bindings: add bindings for i2c-pca-platform

2017-06-25 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: - Split dt-binding to separate patch, use "reset-gpios" instead of "gpios". Changes in v3: - State the gpio is active low - Add example .../devicetree/bindings/i2c/i2c-pca-platform.txt | 29

[PATCH v3 4/5] i2c: pca-platform: use device managed allocations

2017-06-25 Thread Chris Packham
Switch to using the devm_ APIs and remove the now unnecessary error handling and most of the device removal code. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 53 +++ 1 file changed, 10 insertions(+),

Re: [kernel-hardening] Re: [PATCH v4 06/13] iscsi: ensure RNG is seeded before use

2017-06-25 Thread Nicholas A. Bellinger
Hi Stephan, Lee & Jason, (Adding target-devel CC') Apologies for coming late to the discussion. Comments below. On Sun, 2017-06-18 at 10:04 +0200, Stephan Müller wrote: > Am Samstag, 17. Juni 2017, 05:45:57 CEST schrieb Lee Duncan: > > Hi Lee, > > > In your testing, how long might a process

Re: [PATCH NET V4 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-25 Thread Yunsheng Lin
Hi, Andrew On 2017/6/24 21:44, Andrew Lunn wrote: >> @@ -1087,7 +1087,7 @@ int phy_suspend(struct phy_device *phydev) >> { >> struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver); >> struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; >> -int ret = 0; >> +int

linux-next: manual merge of the v4l-dvb-next tree with the v4l-dvb-fixes tree

2017-06-25 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb-next tree got conflicts in: Documentation/media/uapi/dvb/fe-diseqc-send-burst.rst Documentation/media/uapi/dvb/fe-set-tone.rst Documentation/media/uapi/dvb/fe-set-voltage.rst between commit: affd250dec17 ("[media] dvb uapi docs: enums

[PATCH NET V5 2/2] net: hns: Use phy_driver to setup Phy loopback

2017-06-25 Thread Lin Yun Sheng
Use function set_loopback in phy_driver to setup phy loopback when doing ethtool self test. Signed-off-by: Lin Yun Sheng --- drivers/net/ethernet/hisilicon/hns/hnae.h| 1 + drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 92 +++- 2 files

[PATCH NET V5 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-25 Thread Lin Yun Sheng
This patch add set_loopback in phy_driver, which is used by Mac driver to enable or disable a phy. it also add a generic genphy_loopback function, which use BMCR loopback bit to enable or disable a phy. Signed-off-by: Lin Yun Sheng --- drivers/net/phy/marvell.c| 1 +

[PATCH NET V5 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-25 Thread Lin Yun Sheng
This Patch Set add set_loopback in phy_driver and use it to setup loopback when doing ethtool phy self_test. Patch V5: Removing non loopback related code change. Patch V4: 1. Remove c45 checking 2. Add -ENOTSUPP when function pointer is null, take mutex in

Re: [PATCH] net/icmp: restore source address if packet is NATed

2017-06-25 Thread David Miller
From: "Jason A. Donenfeld" Date: Mon, 26 Jun 2017 00:52:09 +0200 > On Sun, Jun 25, 2017 at 5:49 PM, David Miller wrote: >> You definitely can't just rewrite header fields here either. The >> SKB could be shared, for example. > > I was afraid of that. It's

[PATCH v2 02/22] fpga: add FPGA device framework

2017-06-25 Thread Wu Hao
During FPGA device (e.g PCI-based) discovery, platform devices are registered for different FPGA function units. But the device node path isn't quite friendly to applications. Consider this case, applications want to access child device's sysfs file for some information. 1) Access using

[PATCH v2 01/22] docs: fpga: add a document for Intel FPGA driver overview

2017-06-25 Thread Wu Hao
Add a document for Intel FPGA driver overview. Signed-off-by: Enno Luebbers Signed-off-by: Xiao Guangrong Signed-off-by: Wu Hao v2: added FME fpga-mgr/bridge/region platform driver to driver organization.

[PATCH v2 00/22] Intel FPGA Device Drivers

2017-06-25 Thread Wu Hao
Hi All, Here is v2 patch-series adding drivers for Intel FPGA devices. The Intel FPGA driver provides interfaces for userspace applications to configure, enumerate, open, and access FPGA accelerators on platforms equipped with Intel(R) PCIe based FPGA solutions and enables system level

[PATCH v2 05/22] fpga: mgr: add status for fpga-mgr

2017-06-25 Thread Wu Hao
This patch adds status to fpga-manager data structure, to allow driver to store full/partial reconfiguration errors and other status information. one sysfs interface created for user space application to read fpga-manager status. Signed-off-by: Wu Hao ---

Re: linux-next: build failure after merge of the i2c tree

2017-06-25 Thread Shawn Guo
Hi Stephen, On Mon, Jun 26, 2017 at 11:09:07AM +1000, Stephen Rothwell wrote: > Hi Wolfram, > > After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/i2c/busses/i2c-zx2967.c: In function 'zx2967_i2c_writesb': >

Re: zram hot_add device busy

2017-06-25 Thread Minchan Kim
Hello, On Sat, Jun 24, 2017 at 11:08:01AM +0100, Sami Kerola wrote: > Hello, > > While going through if there are new util-linux bugs reported I came a > cross this https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1645846 > > Simple way to reproduce the issue is: > d=$(cat

Re: zram hot_add device busy

2017-06-25 Thread Sergey Senozhatsky
Hello, (Cc Andrew, Karel) On (06/24/17 11:08), Sami Kerola wrote: > Hello, > > While going through if there are new util-linux bugs reported I came a > cross this https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1645846 > > Simple way to reproduce the issue is: > d=$(cat

Re: [PATCH v2 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation

2017-06-25 Thread Baolin Wang
Hi Rob, On 五, 6月 23, 2017 at 05:20:16下午 -0500, Rob Herring wrote: > On Wed, Jun 21, 2017 at 03:23:03PM +0800, Baolin Wang wrote: > > This patch adds the binding documentation for Spreadtrum I2C > > controller device. > > > > Signed-off-by: Baolin Wang > > --- > >

Re: [PATCH] dmaengine: qcom_hidma: allow ACPI/DT parameters to be overridden

2017-06-25 Thread Vinod Koul
On Thu, Jun 22, 2017 at 02:59:22PM -0400, Sinan Kaya wrote: > Parameters like maximum read/write request size and the maximum > number of active transactions are currently configured in DT/ACPI. > > This patch allows a user to override these to fine tune performance > for their application.

Re: zram hot_add device busy

2017-06-25 Thread Sergey Senozhatsky
On (06/26/17 11:39), Sergey Senozhatsky wrote: [..] > ok... I don't think I see what we can do in zram about the > issue in question. ... check init_done() in reset_store() and avoid the whole ->bd_openers branch if the device is already reset? // not compile tested. just a sketch. // --- diff

Re: [PATCH net-next v2 5/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_validate

2017-06-25 Thread David Ahern
On 6/25/17 10:05 PM, David Ahern wrote: > On 6/25/17 3:56 PM, Matthias Schiffer wrote: >> Add support for extended error reporting. >> >> Signed-off-by: Matthias Schiffer >> --- > > Acked-by: David Ahern > And slave_validate is not used; it

Re: [PATCH net-next v2 4/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_changelink

2017-06-25 Thread David Ahern
On 6/25/17 10:04 PM, David Ahern wrote: > On 6/25/17 3:56 PM, Matthias Schiffer wrote: >> Add support for extended error reporting. >> >> Signed-off-by: Matthias Schiffer >> --- > > > Acked-by: David Ahern > Actually, you are missing the

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32)

2017-06-25 Thread Nicholas A. Bellinger
Hi Andrea & Robert, (Adding HCH CC') On Fri, 2017-06-23 at 00:37 +0200, Andrea Righi wrote: > On Wed, Jun 21, 2017 at 10:33:45AM -0600, Robert LeBlanc wrote: > > On Wed, Jun 21, 2017 at 9:17 AM, Robert LeBlanc > > wrote: > > > On Tue, Jun 20, 2017 at 12:54 PM, Robert

Re: [PATCH v6 05/21] net-next: stmmac: Add dwmac-sun8i

2017-06-25 Thread André Przywara
On 31/05/17 08:18, Corentin Labbe wrote: > The dwmac-sun8i is a heavy hacked version of stmmac hardware by > allwinner. > In fact the only common part is the descriptor management and the first > register function. Hi, I know I am a bit late with this, but while adapting the U-Boot driver to the

linux-next: manual merge of the pci tree with Linus' tree

2017-06-25 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in: drivers/gpu/drm/radeon/radeon_device.c between commit: 4eb59793cca0 ("drm/radeon: add a PX quirk for another K53TK variant") from Linus' tree and commit: 22c21de73087 ("drm/radeon: make MacBook Pro d3_delay quirk

Re: [PATCH v2] arm64: kvm: route synchronous external abort exceptions to el2

2017-06-25 Thread kbuild test robot
Hi Dongjiu, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.12-rc6 next-20170623] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

linux-next: build failure after merge of the i2c tree

2017-06-25 Thread Stephen Rothwell
Hi Wolfram, After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/i2c/busses/i2c-zx2967.c: In function 'zx2967_i2c_writesb': drivers/i2c/busses/i2c-zx2967.c:87:2: error: implicit declaration of function 'writesb'

linux-next: manual merge of the jc_docs tree with the kbuild tree

2017-06-25 Thread Stephen Rothwell
Hi Jonathan, Today's linux-next merge of the jc_docs tree got a conflict in: scripts/kernel-doc-xml-ref between commit: cb77f0d623ff ("scripts: Switch to more portable Perl shebang") from the kbuild tree and commit: 52b3f239bb69 ("Docs: clean up some DocBook loose ends") from the

Re: [PATCH v2 08/15] [media] cxd2880: Add top level of the driver

2017-06-25 Thread Mauro Carvalho Chehab
Em Sun, 25 Jun 2017 09:15:06 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 23 Jun 2017 10:02:39 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Mon, 19 Jun 2017 16:56:13 +0900 > > "Takiguchi, Yasunari"

Linux 4.12-rc7

2017-06-25 Thread Linus Torvalds
It's been another week, and we have another -rc. It's fairly small, and there were no huge surprises, so if nothing untoward happens this upcoming week, this will be the final rc. But as usual, I reserve the right to just drag things out if I end up feeling uncomfortable about things for any

Re: [PATCH v13 05/14] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-25 Thread Chen-Yu Tsai
On Sat, Jun 24, 2017 at 2:24 PM, Danny Milosavljevic wrote: > Since it's now possible to have a DAPM mixer control with multiple channels, > use it to cut down the total number of controls. > > Signed-off-by: Danny Milosavljevic > --- >

Re: [PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-25 Thread zhiyong tao
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:34 +0800 > Zhiyong Tao wrote: > > > This commit adds mt7622 compatible node. > > > > Signed-off-by: Zhiyong Tao > > --- > >

[PATCH v2 14/22] fpga: intel: fme: add partial reconfiguration sub feature support

2017-06-25 Thread Wu Hao
From: Kang Luwei Partial Reconfiguration (PR) is the most important function for FME. It allows reconfiguration for given Port/Accelerated Function Unit (AFU). It creates platform devices for fpga-mgr, fpga-regions and fpga-bridges, and invokes fpga-region's interface

[PATCH v2 09/22] fpga: intel: pcie: adds fpga_for_each_port callback for fme device

2017-06-25 Thread Wu Hao
For FPGA Management Engine (FME), it requires fpga_for_each_port callback for actions on ports, so export this function from PCIe driver by adding the callback to the platform data. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers

[PATCH v2 03/22] fpga: bridge: remove OF dependency for fpga-bridge

2017-06-25 Thread Wu Hao
This patch removes OF dependency of fpga-bridge, it allows drivers to use fpga-bridge class without device tree support. Signed-off-by: Wu Hao --- drivers/fpga/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index

[PATCH v2 10/22] fpga: intel: add feature device infrastructure

2017-06-25 Thread Wu Hao
From: Xiao Guangrong This patch abstracts the common operations of the sub features, and defines the feature_ops data structure, including init, uinit and ioctl function pointers. And this patch adds some common helper functions for FME and AFU drivers, e.g

[PATCH v2 15/22] fpga: intel: add fpga manager platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga manager driver for Intel FPGA Management Engine(FME). It implements fpga_manager_ops for FPGA Partial Reconfiguration function. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao

[PATCH v2 06/22] fpga: intel: add FPGA PCIe device driver

2017-06-25 Thread Wu Hao
From: Zhang Yi The Intel FPGA device appears as a PCIe device on the system. This patch implements the basic framework of the driver for Intel PCIe device which locates between CPU and Accelerated Function Units (AFUs). Signed-off-by: Tim Whisonant

[PATCH v2 08/22] fpga: intel: pcie: add chardev support for feature devices

2017-06-25 Thread Wu Hao
From: Xiao Guangrong For feature devices drivers, both the FPGA Management Engine (FME) and Accelerated Function Unit (AFU) driver need to expose user interfaces via the device file, for example, mmap and ioctls. This patch adds chardev support in the pcie driver

[PATCH v2 07/22] fpga: intel: pcie: parse feature list and create platform device for features.

2017-06-25 Thread Wu Hao
From: Xiao Guangrong Device Feature List structure creates a link list of feature headers within the MMIO space to provide an extensible way of adding features. The Intel FPGA PCIe driver walks through the feature headers to enumerate feature devices, FPGA

[PATCH v2 11/22] fpga: intel: add FPGA Management Engine driver basic framework

2017-06-25 Thread Wu Hao
From: Kang Luwei The FPGA Management Engine (FME) provides power, thermal management, performance counters, partial reconfiguration and other functions. For each function, it is packaged into a private feature linked to the FME feature device in the 'Device Feature List'.

[PATCH v2 04/22] fpga: mgr: add region_id to fpga_image_info

2017-06-25 Thread Wu Hao
This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. Signed-off-by: Wu Hao --- include/linux/fpga/fpga-mgr.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH v3 0/7] Isolate time_t data types for clock/timer syscalls

2017-06-25 Thread Al Viro
On Sat, Jun 24, 2017 at 11:45:01AM -0700, Deepa Dinamani wrote: > The series aims at isolating data conversions of time_t based structures: > struct timespec and struct itimerspec at user space boundaries. > This helps to later change the underlying types to handle y2038 changes > to these.

linux-next: manual merge of the block tree with Linus' tree

2017-06-25 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in: drivers/md/dm-raid1.c between commit: cd15fb64ee56 ("Revert "dm mirror: use all available legs on multiple failures"") from Linus' tree and commits: 9966afaf91b3 ("dm: fix REQ_RAHEAD handling") 1be569098458 ("dm:

[PATCH] mm/memory_hotplug: just build zonelist for new added node

2017-06-25 Thread Wei Yang
In commit (9adb62a5df9c0fbef7) "mm/hotplug: correctly setup fallback zonelists when creating new pgdat" tries to build the correct zonelist for a new added node, while it is not necessary to rebuild it for already exist nodes. In build_zonelists(), it will iterate on nodes with memory. For a new

Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings

2017-06-25 Thread Enrico Weigelt, metux IT consult
On 26.06.2017 00:47, Randy Dunlap wrote: > but why not just do that in userspace. Patch up syslogd (which one, actually?) to decode all the dozens of different cases that print out errno values ? Applying your argument more consequently - why do we have human-readable messages at all, instead

Re: [PATCH 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-25 Thread zhiyong tao
On Sat, 2017-06-24 at 21:00 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:33 +0800 > Zhiyong Tao wrote: > > > This patch supports auxadc suspend/resume flow. > > Disable auxadc clk and power in suspend function. > > Enable axuadc clk and power in resume

[PATCH] spi: rockchip: Keep master alive when CS asserted

2017-06-25 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Keep spi alive after CS asserted to prevent that. Suggested-by: Doug Anderson Signed-off-by: Jeffy Chen

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-25 Thread jeffy
Hi Doug, On 06/24/2017 12:14 AM, Doug Anderson wrote: Jeffy On Fri, Jun 23, 2017 at 5:18 AM, jeffy wrote: So how do we fix this? IMHO: Add 4 new pinctrl states in rk3399.dtsi: cs_low_clk_low, cs_low_clk_high, cs_high_clk_low, cs_high_clk_high These would

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-25 Thread jeffy
Hi Doug, On 06/24/2017 12:14 AM, Doug Anderson wrote: Jeffy On Fri, Jun 23, 2017 at 5:18 AM, jeffy wrote: So how do we fix this? IMHO: Add 4 new pinctrl states in rk3399.dtsi: cs_low_clk_low, cs_low_clk_high, cs_high_clk_low, cs_high_clk_high These would

Re: [PATCH] kernel/power/suspend: use CONFIG_HAVE_SET_MEMORY for include condition

2017-06-25 Thread Balbir Singh
On Sat, Jun 3, 2017 at 11:27 PM, Pavel Machek wrote: > On Sat 2017-06-03 20:52:32, Balbir Singh wrote: >> Kbuild reported a build failure when CONFIG_STRICT_KERNEL_RWX was >> enabled on powerpc. We don't yet have ARCH_HAS_SET_MEMORY and ppc32 >> saw a build failure. >> >>

Re: [PATCH net-next v2 2/5] net: add netlink_ext_ack argument to rtnl_link_ops.changelink

2017-06-25 Thread David Ahern
On 6/25/17 3:56 PM, Matthias Schiffer wrote: > Add support for extended error reporting. > > Signed-off-by: Matthias Schiffer Acked-by: David Ahern

Re: [PATCH net-next v2 5/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_validate

2017-06-25 Thread David Ahern
On 6/25/17 3:56 PM, Matthias Schiffer wrote: > Add support for extended error reporting. > > Signed-off-by: Matthias Schiffer > --- Acked-by: David Ahern

Re: [PATCH net-next v2 4/5] net: add netlink_ext_ack argument to rtnl_link_ops.slave_changelink

2017-06-25 Thread David Ahern
On 6/25/17 3:56 PM, Matthias Schiffer wrote: > Add support for extended error reporting. > > Signed-off-by: Matthias Schiffer > --- Acked-by: David Ahern

Re: [PATCH net-next v2 3/5] net: add netlink_ext_ack argument to rtnl_link_ops.validate

2017-06-25 Thread David Ahern
On 6/25/17 3:56 PM, Matthias Schiffer wrote: > Add support for extended error reporting. > > Signed-off-by: Matthias Schiffer > --- Acked-by: David Ahern

Re: [PATCH] net/icmp: restore source address if packet is NATed

2017-06-25 Thread Jason A. Donenfeld
Hi David, On Sun, Jun 25, 2017 at 5:49 PM, David Miller wrote: > This violates things on so many levels. Yes, indeed. > I think this kind of thing need to be hidden inside of netfilter, > it can do the rate limiting and stuff like that in the spot > where it makes the

[PATCH v3 0/5] i2c: pca-platform: updates

2017-06-25 Thread Chris Packham
We're using a PCA9564 on an embedded platform to provide an i2c controller. This adds devicetree support and I've included some cleanups for the driver while I was at it. Chris Packham (5): dt-bindings: add bindings for i2c-pca-platform i2c: pca-platform: switch to struct gpio_desc i2c:

[PATCH v3 3/5] i2c: pca-platform: add devicetree awareness

2017-06-25 Thread Chris Packham
Allow devices that use this driver to be registered via a devicetree. Signed-off-by: Chris Packham --- Changes in v2: - Set i2c->adap.dev.of_node so that child nodes are automatically probed - Split dt-binding to separate patch, use "reset-gpios" instead of

[PATCH v2 18/22] fpga: intel: add FPGA Accelerated Function Unit driver basic framework

2017-06-25 Thread Wu Hao
On Intel FPGA devices, the Accelerated Function Unit (AFU), can be reprogrammed for different functions. It connects to the FPGA infrastructure("blue bistream") via a Port. Port CSRs are implemented separately from the AFU CSRs to provide control and status of the Port. Once valid green bitstream

[PATCH v2 13/22] fpga: intel: fme: add FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2017-06-25 Thread Wu Hao
FPGA_GET_API_VERSION and FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. Userspace application can use these ioctl interfaces to get the API info and check if specific extension is supported or not in current driver.

[PATCH v2 21/22] fpga: intel: afu: add user afu sub feature support

2017-06-25 Thread Wu Hao
From: Xiao Guangrong User Accelerated Function Unit sub feature exposes the MMIO region of the AFU. After valid green bitstream (GBS) is programmed and port is enabled, then this MMIO region could be accessed. This patch adds support to enumerate the AFU MMIO

[PATCH v2 22/22] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-06-25 Thread Wu Hao
DMA memory regions are required for Accelerated Function Unit (AFU) usage. These two ioctls allow user space applications to map user memory regions for dma, and unmap them after use. Iova is returned from driver to user space application via FPGA_PORT_DMA_MAP ioctl. Application needs to unmap it

[PATCH v2 12/22] fpga: intel: fme: add header sub feature support

2017-06-25 Thread Wu Hao
From: Kang Luwei The header register set is always present for FPGA Management Engine (FME), this patch implements init and uinit function for header sub feature and introduce several read-only sysfs interfaces for the capability and status. Sysfs interfaces: *

[PATCH v2 17/22] fpga: intel: add fpga region platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga region platform driver for Intel FPGA Management Engine. It register a fpga region with given fpga manager / bridge device. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao

[PATCH v2 16/22] fpga: intel: add fpga bridge platform driver for FME

2017-06-25 Thread Wu Hao
This patch adds fpga bridge platform driver for Intel FPGA Management Engine. It implements the enable_set call back for fpga bridge. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao

[PATCH v2 19/22] fpga: intel: afu: add header sub feature support

2017-06-25 Thread Wu Hao
The header register set is always present for the Port/AFU, it is mainly for capability, control and status of the ports that AFU connected to. This patch implements header sub feature support. Below user interfaces are created by this patch. Sysfs interface: * /sys/class/fpga///id Read-only.

[PATCH v2 20/22] fpga: intel: afu add FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2017-06-25 Thread Wu Hao
FPGA_GET_API_VERSION and FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. This patch implements above 2 ioctls in Intel FPGA Accelerated Function Unit (AFU) driver. Signed-off-by: Tim Whisonant

linux-next: manual merge of the block tree with Linus' tree

2017-06-25 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in: drivers/md/dm-io.c between commit: feb7695fe9fb ("dm io: fix duplicate bio completion due to missing ref count") from Linus' tree and commit: 4e4cbee93d56 ("block: switch bios to blk_status_t") from the block tree.

RE: [PATCH 1/9] clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support

2017-06-25 Thread A.s. Dong
Hi Stephen, > -Original Message- > From: Dong Aisheng [mailto:donga...@gmail.com] > Sent: Tuesday, June 20, 2017 5:08 PM > To: Stephen Boyd > Cc: A.s. Dong; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; mturque...@baylibre.com; >

bfq/ext4 disk IO hangs forever on resume

2017-06-25 Thread Alex Xu
Hi, I get hangs when resuming when using bfq-mq with ext4 on 4.12-rc6+ (currently a4fd8b3accf43d407472e34403d4b0a4df5c0e71). Steps to reproduce: 1. boot computer 2. systemctl suspend 3. wait few seconds 4. press power button 5. type "ls" into console or SSH or do anything that does disk IO

Re: [PATCH net-next v2 1/5] net: add netlink_ext_ack argument to rtnl_link_ops.newlink

2017-06-25 Thread David Ahern
On 6/25/17 3:55 PM, Matthias Schiffer wrote: > Add support for extended error reporting. > > Signed-off-by: Matthias Schiffer > --- Acked-by: David Ahern

Re: [PATCH v2 1/7] staging: ccree: fix hash import/export

2017-06-25 Thread Gilad Ben-Yossef
On Thu, Jun 22, 2017 at 4:58 PM, Dan Carpenter wrote: > On Thu, Jun 22, 2017 at 04:36:55PM +0300, Gilad Ben-Yossef wrote: >> static int ssi_ahash_export(struct ahash_request *req, void *out) >> { >> struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); >> struct ssi_hash_ctx *ctx =

Re: [PATCH v2 2/7] staging: ccree: register setkey for none hash macs

2017-06-25 Thread Gilad Ben-Yossef
On Fri, Jun 23, 2017 at 7:29 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 22, 2017 at 04:36:56PM +0300, Gilad Ben-Yossef wrote: >> Fix a bug where the transformation init code did >> not register a setkey method for none hash based MACs. > > "none hash based MACs"? Is that the correct language, I

RE: [EXT] Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU

2017-06-25 Thread Yehuda Yitschak
> -Original Message- > From: Thomas Petazzoni [mailto:thomas.petazz...@free-electrons.com] > Sent: Tuesday, May 30, 2017 15:06 > To: Marc Zyngier > Cc: Thomas Gleixner; Jason Cooper; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; Rob Herring; Ian Campbell; Pawel Moll; Mark >

Re: [PATCH 6/6] rtc: s3c: Handle clock enable failures

2017-06-25 Thread Krzysztof Kozlowski
On Sat, Jun 24, 2017 at 10:55 PM, Alexandre Belloni wrote: > Hi, > > On 16/06/2017 at 21:28:07 +0200, Krzysztof Kozlowski wrote: >> clk_enable() can fail so handle such case. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/rtc/rtc-s3c.c | 72 >>

[PATCH v3 0/6] staging: ccree: bug fixes and TODO items for 4.13

2017-06-25 Thread Gilad Ben-Yossef
An assortment of bug fixes and staging TODO items. Highlights includes the driver passing crypto testmgr boot tests and relying on device tree for various HW config options as opposed to build time configuration. CC: Dan Carpenter Gilad Ben-Yossef (6): staging: ccree: fix hash import/export

[PATCH v3 3/6] staging: ccree: remove unused function

2017-06-25 Thread Gilad Ben-Yossef
The function set_ack_last was not used anywhere. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_hw_queue_defs.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/ccree/cc_hw_queue_defs.h b/drivers/staging/ccree/cc_hw_queue_defs.h index

[PATCH v3 1/6] staging: ccree: fix hash import/export

2017-06-25 Thread Gilad Ben-Yossef
Hash import and export was saving and restoring the wrong context and therefore disabled. Fix it by restoring intermediate digest and additional state needed. The hash and mac transform now pass testmgr partial hash tests. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c |

[PATCH v3 6/6] staging: ccree: use signal safe completion wait

2017-06-25 Thread Gilad Ben-Yossef
We were waiting for a completion notification of HW DMA operation using an interruptible wait which can result in data corruption if a signal interrupted us while DMA was not yet completed. Fix this by moving to uninterrupted wait. Fixes: abefd6741d ("staging: ccree: introduce CryptoCell HW

[PATCH v3 5/6] staging: ccree: add DT bus coherency detection

2017-06-25 Thread Gilad Ben-Yossef
The ccree driver has build time configurable support to work on top of coherent (e.g. ACP) vs. none coherent bus connections. Turn it to run-time configurable option based on device tree. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Kconfig | 9 -

[PATCH v3 4/6] staging: ccree: add clock management support

2017-06-25 Thread Gilad Ben-Yossef
Some SoC which implement CryptoCell have a dedicated clock tied to it, some do not. Implement clock support if exists based on device tree data and tie power management to it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Makefile | 2 +- drivers/staging/ccree/ssi_driver.c | 43

[PATCH v3 2/6] staging: ccree: register setkey for none hash macs

2017-06-25 Thread Gilad Ben-Yossef
The original ccree driver was registering a useless setkey method even for non-MAC hash transformations. Somewhere around v4.9 a check was added that failed hash operations if a setkey method was registered but was not called, so during the initial upstream port code was added to only register the

Re: [PATCH] ARM: dts: exynos: Exynos5422 Odroid-XU* incomplete thermal-zones definition

2017-06-25 Thread Krzysztof Kozlowski
On Fri, Jun 23, 2017 at 10:09:14PM +0100, Willy Wolff wrote: > Odroid XU*-familly boards has thermal sensors per A15 cores, but the actual > thermal-zones define only cooling-maps action for cpu0. > > If the application is running on all cores but core4 (first core of the A15 > cluster), the

[PATCH] [PATCH v7] USB hub_probe: rework ugly goto-into-compound-statement

2017-06-25 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 --- Changes in v7: rename hub_check_descriptor_sanity -> hub_descriptor_is_sane Changes in v6: more pedantic conversion from `int`

Re: PM / wakeirq: Convert to SRCU

2017-06-25 Thread Thomas Gleixner
On Sat, 24 Jun 2017, Paul E. McKenney wrote: > On Sat, Jun 24, 2017 at 11:56:11AM +0200, Thomas Gleixner wrote: > > static DECLARE_WAIT_QUEUE_HEAD(wakeup_count_wait_queue); > > > > +static struct srcu_struct wakeup_srcu; > > I suggest this to avoid the need for boot-time init_srcu_struct(): >

omap3isp camera was Re: [PATCH v1 0/6] Add support of OV9655 camera

2017-06-25 Thread Pavel Machek
Hi! > * unfortunately we still get no image :( > > The latter is likely a setup issue of our camera interface (OMAP3 ISP = Image > Signal Processor) which > we were not yet able to solve. Oscilloscoping signals on the interface > indicated that signals and > sync are correct. But we do not

Re: [PATCH v2 0/5] g_NCR5380: PDMA fixes and cleanup

2017-06-25 Thread Ondrej Zary
On Saturday 24 June 2017 08:37:36 Finn Thain wrote: > Ondrej, would you please test this new series? > > Changed since v1: > - PDMA transfer residual is calculated earlier. > - End of DMA flag check is now polled (if there is any residual). > > > Finn Thain (2): > g_NCR5380: Limit sg_tablesize

[GIT pull] irq fix for 4.12

2017-06-25 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus A single fix for the MIPS GIC to prevent ftrace recursion. Thanks, tglx --> Marcin Nowakowski (1):

[GIT pull] perf fixes for 4.12

2017-06-25 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus Three fixlets for perf: - Return the proper error code if aux buffers for a event are not supported. - Calculate the probe offset for

[GIT pull] timer fixes for 4.12

2017-06-25 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A few fixes for timekeeping and timers: - Plug a subtle race due to a missing READ_ONCE() in the timekeeping code where reloading of

[GIT pull] x86/urgent

2017-06-25 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus A single fix to unbreak the vdso32 build for 64bit kernels caused by excess #includes in the mshyperv header. Thanks, tglx

Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3

2017-06-25 Thread Al Viro
On Sat, Jun 24, 2017 at 12:29:23PM -0500, Larry Finger wrote: > I made a break through. If I turn off inline copy to/from users for 32-bit > ppc with the following patch, then the system boots: OK... So it's 4.6.3 miscompiling something - it is hardware-independent, reproduced in qemu. I'd

[PATCH] Documentation: ABI: mtd: describe "offset" more precisely

2017-06-25 Thread Rafał Miłecki
From: Rafał Miłecki So far Linux supported only two levels of MTD devices so we didn't need a very precise description for this sysfs file. With commit 97519dc52b44a ("mtd: partitions: add support for subpartitions") there is support for a tree structure so we should have more precise

Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3

2017-06-25 Thread Al Viro
On Sun, Jun 25, 2017 at 10:53:58AM +0100, Al Viro wrote: > On Sat, Jun 24, 2017 at 12:29:23PM -0500, Larry Finger wrote: > > > I made a break through. If I turn off inline copy to/from users for 32-bit > > ppc with the following patch, then the system boots: > > OK... So it's 4.6.3 miscompiling

Re: [PATCH v2 08/15] [media] cxd2880: Add top level of the driver

2017-06-25 Thread Mauro Carvalho Chehab
Em Fri, 23 Jun 2017 10:02:39 -0300 Mauro Carvalho Chehab escreveu: > Em Mon, 19 Jun 2017 16:56:13 +0900 > "Takiguchi, Yasunari" escreveu: > > > >> +static int cxd2880_get_frontend_t(struct dvb_frontend *fe, > > >> +struct dtv_frontend_properties *c) > > >> +{ >

[PATCH] android: Update maintainer's e-mail in TODO

2017-06-25 Thread Tommy Nguyen
See https://lkml.org/lkml/2012/1/31/505 Changes dead e-mail to maintainer's current e-mail. Signed-off-by: Tommy Nguyen --- drivers/staging/android/TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/TODO b/drivers/staging/android/TODO index

[PATCH] staging: android: ion: Use DEFINE_DEBUGFS_ATTRIBUTE

2017-06-25 Thread Tommy Nguyen
Running coccicheck indicates that DEFINE_DEBUGFS_ATTRIBUTE and debugfs_create_file_unsafe should be used instead. Signed-off-by: Tommy Nguyen --- drivers/staging/android/ion/ion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/ion/ion.c

<    1   2   3   4   5   6   >