[PATCH 4.9 016/108] ibmvnic: Initialize completion variables before starting work

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nathan Fontenot [ Upstream commit db5d0b597bc27bbddf40f2f8359a73be4eb77104 ] Initialize condition variables prior to invoking any work that can mark them complete. This resolves a race in the

Re: [PATCH 23/28] mbcache: make mbcache more generic

2017-06-15 Thread Tahsin Erdogan
On Thu, Jun 15, 2017 at 12:41 AM, Jan Kara wrote: > Can you explain a bit more what do you mean by "make it more generic" as it > seems you just rename a couple of things here... The change is really just that, having names that are more generic which do not limit use cases to block sharing. In a

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

2017-06-15 Thread Stephen Rothwell
Hi Dave, On Thu, 15 Jun 2017 12:08:08 -0400 (EDT) David Miller wrote: > > From: Stephen Rothwell > Date: Tue, 13 Jun 2017 12:00:24 +1000 > > > On Thu, 8 Jun 2017 12:27:59 +1000 Stephen Rothwell > > wrote: > >> > >> After merging the wireless-drivers-next tree, today's linux-next build > >>

[PATCH 4.9 015/108] ibmvnic: Call napi_disable instead of napi_enable in failure path

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nathan Fontenot [ Upstream commit e722af6391949e8851310441bb0cec157d25611d ] The failure path in ibmvnic_open() mistakenly makes a second call to napi_enable instead of calling napi_disable. T

[PATCH 4.9 017/108] NET: mkiss: Fix panic

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ralf Baechle [ Upstream commit 7ba1b689038726d34e3244c1ac9e2e18c2ea4787 ] If a USB-to-serial adapter is unplugged, the driver re-initializes, with dev->hard_header_len and dev->addr_len set to

[PATCH 4.9 010/108] ipv6: Handle IPv4-mapped src to in6addr_any dst.

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Jonathan T. Leighton" [ Upstream commit 052d2369d1b479cdbbe020fdd6d057d3c342db74 ] This patch adds a check on the type of the source address for the case where the destination address is in6a

Re: [PATCH net] rxrpc: Fix several cases where a padded len isn't checked in ticket decode

2017-06-15 Thread David Miller
From: David Howells Date: Thu, 15 Jun 2017 00:12:24 +0100 > This fixes CVE-2017-7482. > > When a kerberos 5 ticket is being decoded so that it can be loaded into an > rxrpc-type key, there are several places in which the length of a > variable-length field is checked to make sure that it's not g

[PATCH 4.4 42/46] proc: add a schedule point in proc_pid_readdir()

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 3ba4bceef23206349d4130ddf140819b365de7c8 ] We have seen proc_pid_readdir() invocations holding cpu for more than 50 ms. Add a cond_resched() to be gentle with o

[PATCH 4.4 38/46] r8152: fix rtl8152_post_reset function

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: hayeswang [ Upstream commit 2c561b2b728ca4013e76d6439bde2c137503745e ] The rtl8152_post_reset() should sumbit rx urb and interrupt transfer, otherwise the rx wouldn't work and the linking chan

[PATCH 4.9 011/108] ipv6: Inhibit IPv4-mapped src address on the wire.

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Jonathan T. Leighton" [ Upstream commit ec5e3b0a1d41fbda0cc33a45bc9e54e91d9d12c7 ] This patch adds a check for the problematic case of an IPv4-mapped IPv6 source address and a destination add

[PATCH 4.4 44/46] xtensa: dont use linux IRQ #0

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit e5c86679d5e864947a52fb31e45a425dea3e7fa9 upstream. Linux IRQ #0 is reserved for error reporting and may not be used. Increase NR_IRQS for one additional slot and increase ir

[PATCH 4.4 41/46] romfs: use different way to generate fsid for BLOCK or MTD

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Coly Li [ Upstream commit f598f82e204ec0b17797caaf1b0311c52d43fb9a ] Commit 8a59f5d25265 ("fs/romfs: return f_fsid for statfs(2)") generates a 64bit id from sb->s_bdev->bd_dev. This is only c

[PATCH 4.4 43/46] tipc: ignore requests when the connection state is not CONNECTED

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Parthasarathy Bhuvaragan [ Upstream commit 4c887aa65d38633885010277f3482400681be719 ] In tipc_conn_sendmsg(), we first queue the request to the outqueue followed by the connection state check.

[PATCH 4.4 46/46] sparc64: make string buffers large enough

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit b5c3206190f1fddd100b3060eb15f0d775ffeab8 upstream. My static checker complains that if "lvl" is ULONG_MAX (this is 64 bit) then some of the strings will overflow. I don't

[PATCH 4.4 10/46] NET: Fix /proc/net/arp for AX.25

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ralf Baechle [ Upstream commit 4872e57c812dd312bf8193b5933fa60585cda42f ] When sending ARP requests over AX.25 links the hwaddress in the neighbour cache are not getting initialized. For such

[PATCH 4.4 39/46] r8152: avoid start_xmit to schedule napi when napi is disabled

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: hayeswang [ Upstream commit de9bf29dd6e4a8a874cb92f8901aed50a9d0b1d3 ] Stop the tx when the napi is disabled to prevent napi_schedule() is called. Signed-off-by: Hayes Wang Signed-off-by: Da

Re: LTS testing with latest kselftests - some failures

2017-06-15 Thread Shuah Khan
Hi Sumit, On 06/15/2017 11:56 AM, Sumit Semwal wrote: > Hello Greg, Shuah, > > While testing 4.4.y and 4.9.y LTS kernels with latest kselftest, we > found a couple more test failures due to test-kernel mismatch: > > 1. firmware tests: - linux 4.5 [1] and 4.10 [2] added a few updates to > tests,

[PATCH 4.4 40/46] sctp: sctp_addr_id2transport should verify the addr before looking up assoc

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 6f29a130613191d3c6335169febe002cba00edf5 ] sctp_addr_id2transport is a function for sockopt to look up assoc by address. As the address is from userspace, it can be

[PATCH 4.4 11/46] NET: mkiss: Fix panic

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ralf Baechle [ Upstream commit 7ba1b689038726d34e3244c1ac9e2e18c2ea4787 ] If a USB-to-serial adapter is unplugged, the driver re-initializes, with dev->hard_header_len and dev->addr_len set to

[PATCH 4.4 04/46] staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit baabd567f87be05330faa5140f72a91960e7405a upstream. The driver attempts to alter memory that is mapped to PCI device. This is because tx_fwinfo_8190pci points to skb->d

[PATCH 3/4] i2c: sh_mobile: use helper to decide if DMA is useful

2017-06-15 Thread Wolfram Sang
This ensures that we fall back to PIO if the buffer is too small for DMA being useful. Otherwise, we use DMA. A bounce buffer might be applied if the original message buffer is not DMA safe Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-sh_mobile.c | 8 ++

[PATCH 2/4] i2c: add docs to clarify DMA handling

2017-06-15 Thread Wolfram Sang
Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang --- Documentation/i2c/DMA-considerations | 37 1 file changed, 37 insertions(+) create mode 100644 Documentation/i2c/DMA-considerations diff --git a/Documentation/i2c/DMA-considerations b/Documentatio

[PATCH 4/4] i2c: rcar: check for DMA-capable buffers

2017-06-15 Thread Wolfram Sang
Handling this is special for this driver. Because the hardware needs to initialize the next message in interrupt context, we cannot use the i2c_check_msg_for_dma() directly. This helper only works reliably in process context. So, we need to check during initial preparation of the whole transfer and

[PATCH 1/4] i2c: add helpers to ease DMA handling

2017-06-15 Thread Wolfram Sang
One helper checks if DMA is suitable and optionally creates a bounce buffer, if not. The other function returns the bounce buffer and makes sure the data is properly copied back to the message. Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang --- include/linux/i2c.h | 65

Re: [PATCH net-next 0/3] r8152: support new chips

2017-06-15 Thread David Miller
From: Hayes Wang Date: Thu, 15 Jun 2017 14:44:01 +0800 > These patches are used to support new chips. Series applied, thank you.

[PATCH 0/4] i2c: document DMA handling and add helpers for it

2017-06-15 Thread Wolfram Sang
So, after revisiting old mail threads and taking part in a similar discussion on the USB list, here is what I cooked up to document and ease DMA handling for I2C within Linux. Please have a look at the documentation introduced in patch 2 for further details. The branch can be found here: git://gi

[PATCH 4.4 30/46] pinctrl: berlin-bg4ct: fix the value for "sd1a" of pin SCRD0_CRD_PRES

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jisheng Zhang [ Upstream commit e82d02580af45663fad6d3596e4344c606e81e10 ] This should be a typo. Signed-off-by: Jisheng Zhang Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin Signe

[PATCH 4.4 12/46] net: hns: Fix the device being used for dma mapping during TX

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kejian Yan [ Upstream commit b85ea006b6bebb692628f11882af41c3e12e1e09 ] This patch fixes the device being used to DMA map skb->data. Erroneous device assignment causes the crash when SMMU is e

[PATCH 4.4 32/46] parisc, parport_gsc: Fixes for printk continuation lines

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller [ Upstream commit 83b5d1e3d3013dbf90645a5d07179d018c8243fa ] Signed-off-by: Helge Deller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/parport/parpo

[PATCH 4.4 08/46] ipv6: Handle IPv4-mapped src to in6addr_any dst.

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Jonathan T. Leighton" [ Upstream commit 052d2369d1b479cdbbe020fdd6d057d3c342db74 ] This patch adds a check on the type of the source address for the case where the destination address is in6a

[PATCH 4.4 35/46] ravb: unmap descriptors when freeing rings

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kazuya Mizuguchi [ Upstream commit a47b70ea86bdeb3091341f5ae3ef580f1a1ad822 ] "swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link s

Re: [PATCH 2/2] Input: pm8941-pwrkey: Introduce reboot mode support

2017-06-15 Thread Bjorn Andersson
On Thu 15 Jun 09:26 PDT 2017, Sebastian Reichel wrote: > Hi, > > On Mon, Jun 12, 2017 at 04:32:03PM -0700, Bjorn Andersson wrote: [..] > > As such if we split the non-input related handling into another driver > > we would need to make the input driver create a subdevice during probe - > > or cre

[PATCH 4.4 07/46] net: xilinx_emaclite: fix receive buffer overflow

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Anssi Hannula [ Upstream commit cd224553641848dd17800fe559e4ff5d208553e8 ] xilinx_emaclite looks at the received data to try to determine the Ethernet packet length but does not properly clamp

[PATCH 4.4 33/46] drm/nouveau: Dont enabling polling twice on runtime resume

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Lyude Paul [ Upstream commit cae9ff036eea577856d5b12860b4c79c5e71db4a ] As it turns out, on cards that actually have CRTCs on them we're already calling drm_kms_helper_poll_enable(drm_dev) fro

[PATCH 4.4 34/46] drm/ast: Fixed system hanged if disable P2A

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Y.C. Chen" [ Upstream commit 6c971c09f38704513c426ba6515f22fb3d6c87d5 ] The original ast driver will access some BMC configuration through P2A bridge that can be disabled since AST2300 and af

[PATCH 4.4 26/46] drm/nouveau: prevent userspace from deleting client object

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs [ Upstream commit c966b6279f610a24ac1d42dcbe30e10fa61220b2 ] Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/n

[PATCH 4.4 31/46] net: adaptec: starfire: add checks for dma mapping errors

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Khoroshilov [ Upstream commit d1156b489fa734d1af763d6a07b1637c01bb0aed ] init_ring(), refill_rx_ring() and start_tx() don't check if mapping dma memory succeed. The patch adds the check

[PATCH 4.4 27/46] drm/nouveau/fence/g84-: protect against concurrent access to semaphore buffers

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs [ Upstream commit 96692b097ba76d0c637ae8af47b29c73da33c9d0 ] Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/n

[PATCH 4.4 29/46] gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arseny Solokha [ Upstream commit 4af0e5bb95ee3ba5ea4bd7dbb94e1648a5279cc9 ] In spite of switching to paged allocation of Rx buffers, the driver still called dma_unmap_single() in the Rx queues

[PATCH 4.4 25/46] ipv6: fix flow labels when the traffic class is non-0

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dimitris Michailidis [ Upstream commit 90427ef5d2a4b9a24079889bf16afdcdaebc4240 ] ip6_make_flowlabel() determines the flow label for IPv6 packets. It's supposed to be passed a flow label, whic

[PATCH 4.4 23/46] fscache: Clear outstanding writes when disabling a cookie

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 6bdded59c8933940ac7e5b416448276ac89d1144 ] fscache_disable_cookie() needs to clear the outstanding writes on the cookie it's disabling because they cannot be co

[PATCH 4.9 066/108] nfs: Fix "Dont increment lock sequence ID after NFS4ERR_MOVED"

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever [ Upstream commit 406dab8450ec76eca88a1af2fc15d18a2b36ca49 ] Lock sequence IDs are bumped in decode_lock by calling nfs_increment_seqid(). nfs_increment_sequid() does not use the s

[PATCH 4.4 36/46] nfs: Fix "Dont increment lock sequence ID after NFS4ERR_MOVED"

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever [ Upstream commit 406dab8450ec76eca88a1af2fc15d18a2b36ca49 ] Lock sequence IDs are bumped in decode_lock by calling nfs_increment_seqid(). nfs_increment_sequid() does not use the s

[PATCH 4.4 24/46] FS-Cache: Initialise stores_lock in netfs cookie

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 62deb8187d116581c88c69a2dd9b5c16588545d4 ] Initialise the stores_lock in fscache netfs cookies. Technically, it shouldn't be necessary, since the netfs cookie

[PATCH 4.4 20/46] log2: make order_base_2() behave correctly on const input value zero

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 29905b52fad0854351f57bab867647e4982285bf upstream. The function order_base_2() is defined (according to the comment block) as returning zero on input zero, but subsequentl

[PATCH 4.4 18/46] jump label: pass kbuild_cflags when checking for asm goto support

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Lin [ Upstream commit 35f860f9ba6aac56cc38e8b18916d833a83f1157 ] Some versions of ARM GCC compiler such as Android toolchain throws in a '-fpic' flag by default. This causes the gcc-got

Re: [PATCH v7 10/26] x86/insn-eval: Add utility functions to get segment selector

2017-06-15 Thread Ricardo Neri
On Tue, 2017-05-30 at 12:35 +0200, Borislav Petkov wrote: > On Fri, May 05, 2017 at 11:17:08AM -0700, Ricardo Neri wrote: > > When computing a linear address and segmentation is used, we need to know > > the base address of the segment involved in the computation. In most of > > the cases, the segm

[PATCH 4.4 15/46] i2c: piix4: Fix request_region size

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ricardo Ribalda [ Upstream commit f43128c75202f29ee71aa83e6c320a911137c189 ] Since '701dc207bf55 ("i2c: piix4: Avoid race conditions with IMC")' we are using the SMBSLVCNT register at offset 0

[PATCH 2/2] perf coresight: Remove superfluous check before use

2017-06-15 Thread Kim Phillips
cs_etm_evsel is guaranteed to be set at this point in the function. Signed-off-by: Kim Phillips --- tools/perf/arch/arm/util/cs-etm.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-e

[PATCH 4.4 00/46] 4.4.73-stable review

2017-06-15 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.73 release. There are 46 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jun 17 17:51:59 UTC 2017. Anything receive

[PATCH 4.4 03/46] ARM: dts: imx6dl: Fix the VDD_ARM_CAP voltage for 396MHz operation

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Fabio Estevam commit 46350b71a09ccf3573649e03db55d4b61d5da231 upstream. Table 8 from MX6DL datasheet (IMX6SDLCEC Rev. 5, 06/2015): http://cache.nxp.com/files/32bit/doc/data_sheet/IMX6SDLCEC.pdf

[PATCH 4.4 01/46] s390/vmem: fix identity mapping

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit c34a69059d7876e0793eb410deedfb08ccb22b02 upstream. The identity mapping is suboptimal for the last 2GB frame. The mapping will be established with a mix of 4KB and 1MB map

[PATCH 4.4 05/46] Call echo service immediately after socket reconnect

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sachin Prabhu commit b8c600120fc87d53642476f48c8055b38d6e14c7 upstream. Commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session reconnect long after socket reconnect") changes the behavio

Re: [PATCH] sparc/time: make of_device_ids const

2017-06-15 Thread David Miller
From: Arvind Yadav Date: Thu, 15 Jun 2017 16:30:20 +0530 > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied.

Re: [PATCH 0/4] i2c: document DMA handling and add helpers for it

2017-06-15 Thread Wolfram Sang
On Thu, Jun 15, 2017 at 08:30:35PM +0200, Wolfram Sang wrote: > So, after revisiting old mail threads and taking part in a similar discussion > on the USB list, here is what I cooked up to document and ease DMA handling > for > I2C within Linux. Please have a look at the documentation introduced i

Re: [PATCH 3/4] watchdog: Split up config options

2017-06-15 Thread Don Zickus
On Fri, Jun 16, 2017 at 01:59:00AM +1000, Nicholas Piggin wrote: > On Thu, 15 Jun 2017 11:51:22 -0400 > Don Zickus wrote: > > > On Thu, Jun 15, 2017 at 01:04:01PM +1000, Nicholas Piggin wrote: > > > > +#ifdef CONFIG_HARDLOCKUP_DETECTOR > > > > /* boot commands */ > > > > /* > > > >* Shoul

Re: [PATCH] Doc: net: dsa: b53: update location of referenced dsa.txt

2017-06-15 Thread David Miller
Please re-post this with the netdev mailing list CC:'d, thank you.

[RFC v2 2/2] rcu: use idle versions of swait to make idle-hack clear

2017-06-15 Thread Luis R. Rodriguez
These RCU waits were set to use interruptible waits to avoid the kthreads contributing to system load average, even though they are not interruptible as they are spawned from a kthread. Use the new TASK_IDLE swaits which makes it clear our goal, and removes confusion about these paths possibly bein

[RFC v2 0/2] swait: add idle to make idle-hacks on kthreads explicit

2017-06-15 Thread Luis R. Rodriguez
While reviewing RCU's interruptible swaits I noticed signals were actually not expected. Paul explained that the reason signals are not expected is we use kthreads, which don't get signals, furthermore the code avoided the uninterruptible swaits as otherwise it would contribute to the system load a

Re: [PATCH 4/4] i2c: rcar: check for DMA-capable buffers

2017-06-15 Thread Shuah Khan
On Thu, Jun 15, 2017 at 12:30 PM, Wolfram Sang wrote: > Handling this is special for this driver. Because the hardware needs to > initialize the next message in interrupt context, we cannot use the > i2c_check_msg_for_dma() directly. This helper only works reliably in > process context. So, we nee

[RFC v2 1/2] swait: add idle variants which don't contribute to load average

2017-06-15 Thread Luis R. Rodriguez
There are cases where folks are using an interruptible swait when using kthreads. This is rather confusing given you'd expect interruptible waits to be -- interruptible, but kthreads are not interruptible ! The reason for such practice though is to avoid having these kthreads contribute to the syst

[RESEND PATCH v6 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings

2017-06-15 Thread Javier Martinez Canillas
There are Device Tree source files defining a device node for the retu/tahvo I2C chip, but there isn't a DT binding document for it. Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Aaro Koskinen Acked-by: Tony Lindgren Acked-by: Lee Jones --- Changes in v6: - Mention

[RESEND PATCH v6 6/8] dt-bindings: mfd: Add TI tps6105x chip bindings

2017-06-15 Thread Javier Martinez Canillas
There are Device Tree source files defining a device node for the tps61050/61052 I2C chip but there isn't a binding document for it. Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Tony Lindgren --- Changes in v6: None Changes in v5: - Add Rob Herring's Acked-by tag. -

[RESEND PATCH v6 2/8] mfd: retu: Drop -mfd suffix from I2C device ID name

2017-06-15 Thread Javier Martinez Canillas
It's not correct to encode the subsystem in the I2C device name, so drop the -mfd suffix. To maintain bisect-ability, change driver and platform code / DTS users in the same patch. Suggested-by: Lee Jones Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Aaro Koskinen Ack

[RESEND PATCH v6 7/8] mfd: tps6105x: Add OF device ID table

2017-06-15 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[RESEND PATCH v6 8/8] ARM: ux500: Add vendor prefix to tps61052 node

2017-06-15 Thread Javier Martinez Canillas
The tps61052 device node doesn't have a vendor prefix in its compatible string, fix it by adding one. Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Tony Lindgren Reviewed-by: Linus Walleij --- Changes in v6: None Changes in v5: - Add Rob Herring's Acked-by tag. - A

[RESEND PATCH v6 4/8] ARM: dts: n8x0: Add vendor prefix to retu node

2017-06-15 Thread Javier Martinez Canillas
The retu device node doesn't have a vendor prefix in its compatible string, fix it by adding one. Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Aaro Koskinen Acked-by: Tony Lindgren Reviewed-by: Wolfram Sang --- Changes in v6: - Add Wolfram Sang's Reviewed-by tag.

Re: [PATCH 1/2] remoteproc: Add remote processor coredump support

2017-06-15 Thread Suman Anna
Hi Sarangdhar, On 06/14/2017 01:06 PM, Sarangdhar Joshi wrote: The remoteproc framework shuts down and immediately restarts the remote processor after fatal events (such as when remote crashes) during the recovery path. This is the case in production systems, but your statement is not entire

[RESEND PATCH v6 3/8] mfd: retu: Add OF device ID table

2017-06-15 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[RESEND PATCH v6 5/8] i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example

2017-06-15 Thread Javier Martinez Canillas
The example contains a device node for a retu device, but its compatible string doesn't have a vendor prefix. While being there, drop the -mfd suffix since isn't correct. Signed-off-by: Javier Martinez Canillas Acked-by: Rob Herring Acked-by: Aaro Koskinen Acked-by: Tony Lindgren Reviewed-by:

[RESEND PATCH v6 0/8] mfd: Add OF device table to I2C drivers that are missing it

2017-06-15 Thread Javier Martinez Canillas
Hello, This series add OF device ID tables to mfd I2C drivers whose devices are either used in Device Tree source files or are listed in binding docs as a compatible string. That's done because the plan is to change the I2C core to report proper OF modaliases instead of always reporting a MODALIA

Re: [PATCH v2 01/10] x86/ldt: Simplify LDT switching logic

2017-06-15 Thread Rik van Riel
On Tue, 2017-06-13 at 21:56 -0700, Andy Lutomirski wrote: > Simplify the code to update LDTR if either the previous or the next > mm has an LDT, i.e. effectively restore the historical logic.. > While we're at it, clean up the code by moving all the ifdeffery to > a header where it belongs. > > S

[RESEND PATCH v5 12/16] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 01/16] dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 04/16] ARM: dts: keystone: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 03/16] ARM: dts: efm32: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 14/16] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 15/16] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 16/16] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

Re: [PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-15 Thread Stefano Stabellini
On Thu, 15 Jun 2017, Boris Ostrovsky wrote: > On 06/14/2017 05:03 PM, Stefano Stabellini wrote: > > On Mon, 12 Jun 2017, Boris Ostrovsky wrote: > >>> + > >>> static void pvcalls_back_work(struct work_struct *work) > >>> { > >>> + struct pvcalls_fedata *priv = container_of(work, > >>> + st

[RESEND PATCH v5 09/16] ARM: dts: uniphier: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 10/16] ARM: dts: zynq: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 13/16] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 11/16] arm64: zynqmp: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 07/16] ARM: dts: koelsch: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 06/16] ARM: dts: r7s72100: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 08/16] ARM: dts: socfpga: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 05/16] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken in

[RESEND PATCH v5 02/16] eeprom: at24: Add OF device ID table

2017-06-15 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

[RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-06-15 Thread Javier Martinez Canillas
Hello Wolfram, This series is a follow-up to patch [0] that added an OF device ID table to the at24 EEPROM driver. As you suggested [1], this version instead of adding entries for every used tuple, only adds a single entry for each chip type using the "atmel" vendor as a generic fallback. The fi

[PATCH 1/1] Doc: net: dsa: b53: update location of referenced dsa.txt

2017-06-15 Thread Heinrich Schuchardt
The referenced file dsa.txt is located at Documentation/devicetree/bindings/net/dsa/dsa.txt Reviewed-by: Florian Fainelli Signed-off-by: Heinrich Schuchardt --- Resent due to missing Cc: net...@vger.kernel.org --- Documentation/devicetree/bindings/net/dsa/b53.txt | 2 +- 1 file changed, 1 inser

Re: [RFC PATCH 2/3] remoteproc: imx_rproc: add a NXP/Freescale imx rproc driver

2017-06-15 Thread Suman Anna
Hi Oleksij, On 06/14/2017 03:48 PM, Oleksij Rempel wrote: From: Oleksij Rempel this driver was tested on NXP imx7d but should work on imx6sx as well. It will upload firmware to OCRAM, which shared memory between Cortex A7 and Cortex M4, then turn M4 on. Mostly looks fine, need to address few

Re: [PATCH 1/1] Doc: net: dsa: b53: update location of referenced dsa.txt

2017-06-15 Thread David Miller
From: Heinrich Schuchardt Date: Thu, 15 Jun 2017 20:59:57 +0200 > The referenced file dsa.txt is located at > Documentation/devicetree/bindings/net/dsa/dsa.txt > > Reviewed-by: Florian Fainelli > Signed-off-by: Heinrich Schuchardt Applied, thank you.

Re: [PATCH v7 10/26] x86/insn-eval: Add utility functions to get segment selector

2017-06-15 Thread Ricardo Neri
On Thu, 2017-06-15 at 11:37 -0700, Ricardo Neri wrote: > > Yuck, didn't we talk about this already? > > I am sorry Borislav. I thought you agreed that I could use the values > of > the segment override prefixes to identify the segment registers [1]. This time with the reference: [1]. https://lkml

[PATCH v4 00/18] introduce the Xen PV Calls backend

2017-06-15 Thread Stefano Stabellini
Hi all, this series introduces the backend for the newly introduced PV Calls procotol. PV Calls is a paravirtualized protocol that allows the implementation of a set of POSIX functions in a different domain. The PV Calls frontend sends POSIX function calls to the backend, which implements them an

[PATCH net-next] net: dsa: assign default CPU port to all ports

2017-06-15 Thread Vivien Didelot
The current code only assigns the default cpu_dp to all user ports of the switch to which the CPU port belongs. The user ports of the other switches of the fabric thus don't have a default CPU port. This patch fixes this by assigning the cpu_dp of all user ports of all switches of the fabric when

[PATCH v4 13/18] xen/pvcalls: implement release command

2017-06-15 Thread Stefano Stabellini
Release both active and passive sockets. For active sockets, make sure to avoid possible conflicts with the ioworker reading/writing to those sockets concurrently. Set map->release to let the ioworker know atomically that the socket will be released soon, then wait until the ioworker finishes (flus

[PATCH v4 18/18] xen: introduce a Kconfig option to enable the pvcalls backend

2017-06-15 Thread Stefano Stabellini
Also add pvcalls-back to the Makefile. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 12 drivers/xen/Makefile | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index f15

[PATCH v4 10/18] xen/pvcalls: implement listen command

2017-06-15 Thread Stefano Stabellini
Call inet_listen to implement the listen command. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/xen/pvcalls-back.c b/drivers/xen/pvcalls-back.c i

[PATCH v4 08/18] xen/pvcalls: implement connect command

2017-06-15 Thread Stefano Stabellini
Allocate a socket. Keep track of socket <-> ring mappings with a new data structure, called sock_mapping. Implement the connect command by calling inet_stream_connect, and mapping the new indexes page and data ring. Allocate a workqueue and a work_struct, called ioworker, to perform reads and write

<    2   3   4   5   6   7   8   9   10   >