RE: [EXT] [PATCH net-next v2 0/2] phylink: API changes

2018-03-28 Thread Yan Markman
Hi Florian Please keep CC Yelena Krivosheev for changes withdrivers/net/ethernet/marvell/mvneta.c Thanks Yan Markman Tel. 05-44732819 -Original Message- From: Florian Fainelli [mailto:f.faine...@gmail.com] Sent: Thursday, March 29, 2018 1:44 AM To:

RE: [EXT] [PATCH net-next v2 1/2] net: phy: phylink: Provide PHY interface to mac_link_{up,down}

2018-03-28 Thread Yan Markman
Hi Florian Please keep CC Yelena Krivosheev for changes withdrivers/net/ethernet/marvell/mvneta.c Thanks Yan Markman Tel. 05-44732819 -Original Message- From: Florian Fainelli [mailto:f.faine...@gmail.com] Sent: Thursday, March 29, 2018 1:44 AM To:

[PATCH 3/9] staging: ks7010: Reorder ks_wlan_netdev_ops members.

2018-03-28 Thread Quytelda Kahja
Reorder the members of 'ks_wlan_netdev_ops' to reflect the order of their counterparts in the kernel's 'struct net_device_ops'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH 4/9] staging: ks7010: Rename ks_wlan_set_multicast_list()

2018-03-28 Thread Quytelda Kahja
All of the net_device_ops callbacks are named after their counterparts in the kernel's 'struct net_device_ops', except ks_wlan_set_multicast_list(). Rename it to ks_wlan_set_rx_mode() for greater consistency. Signed-off-by: Quytelda Kahja ---

[PATCH 2/9] staging: ks7010: Remove unecessary cast.

2018-03-28 Thread Quytelda Kahja
The driver casts '_wlan_handler_def' to 'struct iw_handler_def *', but it is already of that type. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 1/2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-28 Thread Mike Looijmans
On 28-03-18 00:50, Florian Fainelli wrote: On 03/27/2018 02:52 AM, Mike Looijmans wrote: It's common practice to store MAC addresses for network interfaces into nvmem devices. However the code to actually do this in the kernel lacks, so this patch adds of_get_nvmem_mac_address() for drivers to

[PATCH 1/9] staging: ks7010: Replace manual array copy with ether_addr_copy().

2018-03-28 Thread Quytelda Kahja
Copying the dummy HW address into the struct net_device doesn't need to be done byte by byte; use ether_addr_copy() instead. Additionally, dev->dev_addr is not eight bytes long. ether_setup() sets the dev->addr_len to ETH_ALEN (defined as 6) in the net core code. Signed-off-by: Quytelda Kahja

[PATCH 7/9] staging: ks7010: Remove trailing "_t" from all structure names.

2018-03-28 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Remove the "_t" suffix from every structure defined in this driver. Signed-off-by: Quytelda Kahja ---

[PATCH 9/9] staging: ks7010: Remove extra blank line between functions.

2018-03-28 Thread Quytelda Kahja
Remove an extra blank line indicated by checkpatch. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks7010_sdio.c | 3 ++- drivers/staging/ks7010/ks_hostif.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 8/9] staging: ks7010: Remove 'eth_addr' field from 'struct ks_wlan_private'.

2018-03-28 Thread Quytelda Kahja
The ethernet address of the network device is already stored in the 'dev_addr' field of 'struct net_device'. Since 'struct ks_wlan_private' keeps a pointer to the driver's 'struct net_device', there is no reason to duplicate this information in 'struct ks_wlan_private'. Signed-off-by: Quytelda

[PATCH 6/9] staging: ks7010: Remove unused member 'reg_net' from 'ks_wlan_private'.

2018-03-28 Thread Quytelda Kahja
'reg_net' is never used in this driver. Signed-off-by: Quytelda Kahja x --- drivers/staging/ks7010/ks_wlan.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h index 846bb1041850..1b7036c32d1c 100644 ---

[PATCH 5/9] staging: ks7010: Change mac_address_valid to a bool instead of int.

2018-03-28 Thread Quytelda Kahja
'mac_address_valid' is only ever assigned 0 or 1, so it makes more sense to use a bool type for this variable. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- drivers/staging/ks7010/ks_wlan.h | 2 +- drivers/staging/ks7010/ks_wlan_net.c

Re: [PATCH 2/2] rhashtable: improve rhashtable_walk stability when stop/start used.

2018-03-28 Thread Herbert Xu
On Thu, Mar 29, 2018 at 12:19:10PM +1100, NeilBrown wrote: > When a walk of an rhashtable is interrupted with rhastable_walk_stop() > and then rhashtable_walk_start(), the location to restart from is based > on a 'skip' count in the current hash chain, and this can be incorrect > if insertions or

[RFC PATCH] sdhci: arasan: Add runtime PM support

2018-03-28 Thread naranimanish
From: Manish Narani This patch adds runtime PM support in Arasan SD driver. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 83 +- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/2] rhashtable: fix insertion of in rhltable when duplicate found.

2018-03-28 Thread Herbert Xu
On Thu, Mar 29, 2018 at 12:19:09PM +1100, NeilBrown wrote: > When rhltable_insert() finds an entry with the same key, > it splices the new entry at the start of a list of entries with the > same key. > It stores the address of the new object in *pprev, but in general this > is *not* the location

[PATCH v2] media: i2c: wm9090: replace codec to component

2018-03-28 Thread Kuninori Morimoto
From: Kuninori Morimoto Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_pmdown_time = 1

Re: [PATCH v2] pcm_native: Remove VLA usage

2018-03-28 Thread Takashi Iwai
On Thu, 29 Mar 2018 00:24:00 +0200, Kyle Spiers wrote: > > As part of the effort to remove VLAs from the kernel[1], this changes > the allocation of the rstamps array from being on the stack to being > kcalloc()ed. This also allows for the removal of the explicit zeroing > loop. > >

Re: [PATCH] media: i2c: wm9090: replace codec to component

2018-03-28 Thread Kuninori Morimoto
Hi Thank you for this report. I will post v2 patch, soon kbuild test robot wrote: > > [1 ] > Hi Kuninori, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linuxtv-media/master] > [also build test ERROR on next-20180328] >

Re: [PATCHv2 08/14] mm/page_ext: Drop definition of unused PAGE_EXT_DEBUG_POISON

2018-03-28 Thread Vinayak Menon
On 3/28/2018 10:25 PM, Kirill A. Shutemov wrote: > After bd33ef368135 ("mm: enable page poisoning early at boot") > PAGE_EXT_DEBUG_POISON is not longer used. Remove it. > > Signed-off-by: Kirill A. Shutemov > Cc: Vinayak Menon > --- >

Re: [PATCH] serial: 8250: omap: Provide ability to enable/disable UART as wakeup source

2018-03-28 Thread Vignesh R
On Thursday 29 March 2018 04:00 AM, Tony Lindgren wrote: > * Vignesh R [180327 12:03]: >> Enable/Clear module level UART wakeup in UART_OMAP_WER register based on >> return value of device_may_wakeup() in .suspend(). This allows >> userspace to use sysfs to control the ability

[PATCH v4 1/2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-28 Thread Mike Looijmans
It's common practice to store MAC addresses for network interfaces into nvmem devices. However the code to actually do this in the kernel lacks, so this patch adds of_get_nvmem_mac_address() for drivers to obtain the address from an nvmem cell provider. This is particulary useful on devices where

[PATCH v4 2/2] net: macb: Try to retrieve MAC addess from nvmem provider

2018-03-28 Thread Mike Looijmans
Call of_get_nvmem_mac_address() to fetch the MAC address from an nvmem cell, if one is provided in the device tree. This allows the address to be stored in an I2C EEPROM device for example. Signed-off-by: Mike Looijmans Acked-by: Nicolas Ferre

[PATCH v4 0/2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-28 Thread Mike Looijmans
Posted this as a small set now, with an (optional) second patch that shows how the changes work and what I've used to test the code on a Topic Miami board. I've taken the liberty to add appropriate "Acked" and "Review" tags. v4: Replaced "6" with ETH_ALEN v3: Add patch that implements mac in

Re: [PATCH 5/6] rhashtable: support guaranteed successful insertion.

2018-03-28 Thread Herbert Xu
On Thu, Mar 29, 2018 at 08:26:21AM +1100, NeilBrown wrote: > > I say "astronomically unlikely", you say "probability .. is extremely > low". I think we are in agreement here. > > The point remains that if an error *can* be returned then I have to > write code to handle it and test that code.

Re: linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-03-28 Thread Stephen Rothwell
Hi all, On Wed, 28 Mar 2018 16:05:41 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the kvm-arm tree got a conflict in: > > arch/arm64/kernel/cpufeature.c > > between commits: > > 143ba05d867a ("arm64: capabilities: Prepare for fine grained

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Paolo Valente
> Il giorno 29 mar 2018, alle ore 05:22, Jens Axboe ha > scritto: > > On 3/28/18 9:13 PM, Zephaniah E. Loss-Cutler-Hull wrote: >> On 03/28/2018 06:02 PM, Jens Axboe wrote: >>> On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: I am not subscribed to any of the

linux-next: manual merge of the kvm tree with the kvm-fixes tree

2018-03-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/vmx.c between commit: 9d1887ef3252 ("KVM: nVMX: sync vmcs02 segment regs prior to vmx_set_cr0") from the kvm-fixes tree and commit: 2bb8cafea80b ("KVM: vVMX: signal failure for nested VMEntry if

Re: kernel BUG at lib/string.c:LINE! (3)

2018-03-28 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit a2601d78b77aacc5dd790f488188f9556f4a9eb2 (Wed Mar 28 23:54:03 2018 +) Merge tag 'powerpc-4.16-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux syzbot dashboard link:

linux-next: manual merge of the kvm tree with the kvm-fixes tree

2018-03-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got conflicts in: arch/x86/kernel/kvm.c between commit: 17a1079d9c63 ("KVM: x86: Fix pv tlb flush dependencies") from the kvm-fixes tree and commit: 6beacf74c257 ("KVM: X86: Don't use PV TLB flush with dedicated physical CPUs") from the

Re: [PATCH v4 2/8] openrisc: Set CONFIG_MULTI_IRQ_HANDLER

2018-03-28 Thread Stafford Horne
On Tue, Mar 27, 2018 at 09:19:05AM -0700, Palmer Dabbelt wrote: > arm has an optional MULTI_IRQ_HANDLER, which openrisc copied but didn't > make optional. I'm converting this to generic code, but in order to > ensure everything stays bisectable I want this defined on openrisc for > now. This

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Paolo Valente
> Il giorno 29 mar 2018, alle ore 03:02, Jens Axboe ha > scritto: > > On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: >> I am not subscribed to any of the lists on the To list here, please CC >> me on any replies. >> >> I am encountering a fairly consistent crash

Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat}

2018-03-28 Thread Paul E. McKenney
On Wed, Mar 28, 2018 at 02:04:07PM -0400, Alan Stern wrote: > On Wed, 28 Mar 2018, Paul E. McKenney wrote: > > > On Wed, Mar 28, 2018 at 11:01:25AM -0400, Alan Stern wrote: > > > On Wed, 28 Mar 2018, Paul E. McKenney wrote: > > > > > > > Hello! > > > > > > > > The prototype patch shown below

Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat}

2018-03-28 Thread Paul E. McKenney
On Wed, Mar 28, 2018 at 07:51:36PM +0200, Peter Zijlstra wrote: > On Wed, Mar 28, 2018 at 11:01:25AM -0400, Alan Stern wrote: > > I don't quite see the point of this. You're not suggesting that we > > have one Linux Kernel Memory Consistency Model for s390 and another > > one for all the other

Re: [PATCH][next] wil6210: fix potential null dereference of ndev before null check

2018-03-28 Thread Kalle Valo
me...@codeaurora.org writes: > On 2018-03-28 20:40, Colin King wrote: >> From: Colin Ian King >> >> The pointer ndev is being dereferenced before it is being null checked, >> hence there is a potential null pointer deference. Fix this by only >> dereferencing ndev after

Re: [PATCH 2/2] usb: dwc3: add clock and resets

2018-03-28 Thread Masahiro Yamada
2018-03-19 7:37 GMT+09:00 Masahiro Yamada : > Hi Rob, > > 2018-03-18 21:52 GMT+09:00 Rob Herring : >> On Thu, Mar 15, 2018 at 08:39:58PM +0900, Masahiro Yamada wrote: >>> dwc3-of-simple.c only handles arbitrary number of clocks and resets. >>> They

[PATCH 0/3] mfd: axp20x: driver cleanup

2018-03-28 Thread Chen-Yu Tsai
Hi Lee, Here are some cleanup patches for the axp20x mfd driver. Patch 1 const-ifies all the struct mfd_cell and struct resource instances found throughout the driver. Not sure why they weren't set to const before. Patch 2 replaces all the openly declared interrupt resources with nice to read

[PATCH 1/3] mfd: axp20x: Const-ify struct mfd_cell and struct resource

2018-03-28 Thread Chen-Yu Tsai
The axp20x driver has lots of mfd_cell and resource structs. These can all be const-ified. Signed-off-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 44 ++-- include/linux/mfd/axp20x.h | 2 +- 2 files changed, 23 insertions(+), 23

[PATCH 2/3] mfd: axp20x: Use DEFINE_RES_IRQ to declare resources for mfd_cells

2018-03-28 Thread Chen-Yu Tsai
Previously we were open coding the interrupts for the various mfd cells. This made the code somewhat long due to pretty-formatting. This patch convert those into one-line declarations with DEFINE_RES_IRQ, making the code shorter and easier to read. Signed-off-by: Chen-Yu Tsai ---

[PATCH 3/3] mfd: axp20x: Correct AXP806 POK interrupt prefix

2018-03-28 Thread Chen-Yu Tsai
When AXP806 support was added, POK was incorrectly expanded to PWROK. However, the datasheet lists them as POK[LSNP], which is the same as on the AXP288. Furthermore, the registers associated with POK functions are the same as the PEK on the other AXP PMICs. This suggests that "POK" means "Power

[PATCH 17/17] staging: lustre: remove cruft from libcfs/linux/libcfs.h

2018-03-28 Thread NeilBrown
These defines are unused or nearly unused, and do not help at all. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/curproc.h |2 -- .../lustre/include/linux/libcfs/linux/libcfs.h | 17 -

[PATCH 14/17] staging: lustre: discard cfs_duration_sec()

2018-03-28 Thread NeilBrown
cfs_duration_sec() simply divides by HZ. It is mostly used to report durations in debug messages. Remove and just use X/HZ. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/linux/linux-time.h |5 - .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c|2 +-

[PATCH 13/17] staging: lustre: libcfs: remove cfs_timeout_cap()

2018-03-28 Thread NeilBrown
This wrapper is only used once, so open-code it as max(). This allows us to remove the libcfs_time.h include file. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 .../lustre/include/linux/libcfs/libcfs_time.h | 50

[PATCH 16/17] staging: lustre: discard linux-time.h

2018-03-28 Thread NeilBrown
Very little is left in linux-time.h. Move CFS_TICK to libcfs.h discard the test. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |5 ++ .../lustre/include/linux/libcfs/linux/libcfs.h |1

[PATCH 15/17] staging: lustre: discard cfs_time_before_64()

2018-03-28 Thread NeilBrown
cfs_time_before_64 is the same as time_before64() similarly cfs_time_beforeq_64() matsches time_before_eq64() So just use the standard interfaces. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/linux/linux-time.h | 14 --

[PATCH 07/17] staging: lustre: ldlm: free resource when ldlm_lock_create() fails.

2018-03-28 Thread NeilBrown
ldlm_lock_create() gets a resource, but don't put it on all failure paths. It should. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH 08/17] staging: lustre: add container_of_safe()

2018-03-28 Thread NeilBrown
Luster has a container_of0() function which is similar to container_of() but passes an IS_ERR_OR_NULL() pointer through unchanged. This could be generally useful: bcache at last has a similar function. Naming is hard, but the precedent set by hlist_entry_safe() suggests a _safe suffix might be

[PATCH 06/17] staging: lustre: tidy up ldlm_resource_putref()

2018-03-28 Thread NeilBrown
1/ the return value of ldlm_resource_putref() is never used, so change it to return 'void'. 2/ Move all of the code to run on the last putref to __ldlm_resource_putref_final(). This means a lock is taken in one function and dropped in another, but that isn't too uncommon, and will

[PATCH 11/17] staging: lustre: libcfs: discard cfs_time_shift().

2018-03-28 Thread NeilBrown
This function simply multiplies by HZ and adds jiffies. This is simple enough to be opencoded, and doing so makes the code easier to read. Same for cfs_time_shift_64() Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_time.h |5

[PATCH 12/17] staging: lustre: libcfs: discard cfs_time_after()

2018-03-28 Thread NeilBrown
cfs_time_after() behaves exactly like time_after() similarly cfs_time_aftereq() matches time_after_eq() so discard the cfs versions. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_time.h | 14 - .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c

[PATCH 09/17] staging: lustre: cfs_time_current() -> jiffies.

2018-03-28 Thread NeilBrown
Discard cfs_time_current() and cfs_time_current64() and use jiffies and get_jiffies_64() like the rest of the kernel. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_time.h |2 - .../lustre/include/linux/libcfs/linux/linux-time.h |9

[PATCH 10/17] staging: lustre: libcfs: discard cfs_time_add/sub

2018-03-28 Thread NeilBrown
cfs_time_add adds its arguments. cfs_time_sub subtracts finds the difference. Discard these and use '+' and '-' directly. This change highlighted a type error. The structure field cr_queued_time was used to store jiffies, but was declared as time_t (meant for seconds). So the time is changed to

[PATCH 02/17] staging: lustre: remove unused ldlm_completion_ast_async()

2018-03-28 Thread NeilBrown
This function is unused. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_dlm.h |1 - drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 23 2 files changed, 24 deletions(-) diff --git

[PATCH 05/17] staging: lustre: remove unneeded include.

2018-03-28 Thread NeilBrown
cfs_hash usage was removed from cl_object.c some time ago, so remove the #include as well. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/obdclass/cl_object.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_object.c

[PATCH 04/17] staging: lustre: remove unused hash tables.

2018-03-28 Thread NeilBrown
exp_lock_hash and exp_flock_hash are unused in the client, so remove all references. Also remove unused hashtable size definitions. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_dlm.h | 10 --- .../staging/lustre/lustre/include/lustre_export.h

[PATCH 03/17] staging: lustre: LNET excludes USERIO

2018-03-28 Thread NeilBrown
LNET_MINOR and USERIO_MINOR are the same value, so they cannot both be used in the same kernel. Until this is resolved, don't allow them to be built together. This saves automatic testing from noticing this known problem. Reported-by: kernel test robot Signed-off-by:

[PATCH 00/17] staging: Assorted lustre cleanup

2018-03-28 Thread NeilBrown
I'm currently working on converting lustre to use rhashtables instead of its own resizeable hash tables. That is progressing well, but I need some changes to rhashtable first, and that will take a little while. So here are some other patches. Some are cleanups related to hashtables, some are

[PATCH 01/17] staging: lustre: remove invariant in cl_io_read_ahead()

2018-03-28 Thread NeilBrown
This invariant can fail as ci_type is somtimes CIS_INIT. According to Jinshan Xiong, or of the most recent significant change to this code, "We should get rid of it." So do that. Fixes: 1e1db2a97be5 ("staging: lustre: clio: Revise read ahead implementation") Cc: Jinshan Xiong

Re: [PATCH for v3.18 00/18] Backport CVE-2017-13166 fixes to Kernel 3.18

2018-03-28 Thread Greg KH
On Thu, Mar 29, 2018 at 08:22:08AM +0900, Inki Dae wrote: > Really thanks for doing this. :) There would be many users who use > Linux-3.18 for their products yet. For new products? They really should not be. The kernel is officially end-of-life, but I'm keeping it alive for a short while

Re: [Xen-devel] [PATCH v2 1/1] xen-netback: process malformed sk_buff correctly to avoid BUG_ON()

2018-03-28 Thread Dongli Zhang
Hi Eric, On 03/29/2018 12:03 PM, Eric Dumazet wrote: > > > On 03/28/2018 08:51 PM, Dongli Zhang wrote: >> The "BUG_ON(!frag_iter)" in function xenvif_rx_next_chunk() is triggered if >> the received sk_buff is malformed, that is, when the sk_buff has pattern >> (skb->data_len &&

Re: [PATCH net V2] vhost: correctly remove wait queue during poll failure

2018-03-28 Thread Michael S. Tsirkin
On Tue, Mar 27, 2018 at 08:50:52PM +0800, Jason Wang wrote: > We tried to remove vq poll from wait queue, but do not check whether > or not it was in a list before. This will lead double free. Fixing > this by switching to use vhost_poll_stop() which zeros poll->wqh after > removing poll from

[PATCH 1/1] hugetlbfs: fix bug in pgoff overflow checking

2018-03-28 Thread Mike Kravetz
This is a fix for a regression in 32 bit kernels caused by an invalid check for pgoff overflow in hugetlbfs mmap setup. The check incorrectly specified that the size of a loff_t was the same as the size of a long. The regression prevents mapping hugetlbfs files at offset greater than 4GB on 32

[PATCH 0/1] fix regression in hugetlbfs overflow checking

2018-03-28 Thread Mike Kravetz
Commit 63489f8e8211 ("hugetlbfs: check for pgoff value overflow") introduced a regression in 32 bit kernels. When creating the mask to check vm_pgoff, it incorrectly specified that the size of a loff_t was the size of a long. This prevents mapping hugetlbfs files at offsets greater than 4GB on

Re: [PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Greg Kroah-Hartman
On Thu, Mar 29, 2018 at 11:42:04AM +0900, Minchan Kim wrote: > > On Thu, Mar 29, 2018 at 11:37:12AM +0900, Minchan Kim wrote: > > binder_update_page_range needs down_write of mmap_sem because > > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > > it is set. However, when I

Re: [PATCH v2 1/1] xen-netback: process malformed sk_buff correctly to avoid BUG_ON()

2018-03-28 Thread Eric Dumazet
On 03/28/2018 08:51 PM, Dongli Zhang wrote: > The "BUG_ON(!frag_iter)" in function xenvif_rx_next_chunk() is triggered if > the received sk_buff is malformed, that is, when the sk_buff has pattern > (skb->data_len && !skb_shinfo(skb)->nr_frags). Below is a sample call > stack: > >... > > The

[PATCH 3/5] powerpc/cache: add cache flush operation for various e500

2018-03-28 Thread Ran Wang
Various e500 core have different cache architecture, so they need different cache flush operations. Therefore, add a callback function cpu_flush_caches to the struct cpu_spec. The cache flush operation for the specific kind of e500 is selected at init time. The callback function will flush all

[PATCH 1/5] powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

2018-03-28 Thread Ran Wang
Also, unselect FSL_PMC which is for older platfroms instead. Signed-off-by: Ran Wang --- arch/powerpc/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..ed60c83 100644 ---

[PATCH 4/5] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

2018-03-28 Thread Ran Wang
In sleep mode, the clocks of CPU core and unused IP blocks are turned off (IP blocks allowed to wake up system will running). Some QorIQ SoCs like MPC8536, P1022 and T104x, have deep sleep PM mode in addtion to the sleep PM mode. While in deep sleep mode, additionally, the power supply is removed

[PATCH 5/5] powerpc:dts:pm: add power management node

2018-03-28 Thread Ran Wang
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui Signed-off-by: Ran Wang ---

[PATCH 2/5] drivers/soc/fsl: add EPU FSM configuration for deep sleep

2018-03-28 Thread Ran Wang
In the last stage of deep sleep, software will trigger a Finite State Machine (FSM) to control the hardware procedure, such a board isolation, killing PLLs, removing power, and so on. When the system is waked up by an interrupt, the FSM controls the hardware to complete the early resume

[PATCH v2 1/1] xen-netback: process malformed sk_buff correctly to avoid BUG_ON()

2018-03-28 Thread Dongli Zhang
The "BUG_ON(!frag_iter)" in function xenvif_rx_next_chunk() is triggered if the received sk_buff is malformed, that is, when the sk_buff has pattern (skb->data_len && !skb_shinfo(skb)->nr_frags). Below is a sample call stack: [ 438.652658] [ cut here ] [ 438.652660]

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Jens Axboe
On 3/28/18 9:13 PM, Zephaniah E. Loss-Cutler-Hull wrote: > On 03/28/2018 06:02 PM, Jens Axboe wrote: >> On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: >>> I am not subscribed to any of the lists on the To list here, please CC >>> me on any replies. >>> >>> I am encountering a fairly

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Zephaniah E. Loss-Cutler-Hull
On 03/28/2018 06:02 PM, Jens Axboe wrote: > On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: >> I am not subscribed to any of the lists on the To list here, please CC >> me on any replies. >> >> I am encountering a fairly consistent crash anywhere from 15 minutes to >> 12 hours after boot

Re: [PATCH v4 2/2] dt-bindings: usb: rt1711h device tree binding document

2018-03-28 Thread Rob Herring
On Tue, Mar 27, 2018 at 9:30 AM, 李書帆 wrote: > Hi Rob, > > 2018-03-27 6:23 GMT+08:00 Rob Herring : >> On Tue, Mar 20, 2018 at 05:15:04PM +0800, ShuFan Lee wrote: >>> From: ShuFan Lee >>> >>> Add device tree binding document for Richtek

Re: [PATCH v8 22/24] mm: Speculative page fault handler return VMA

2018-03-28 Thread Ganesh Mahendran
2018-03-29 10:26 GMT+08:00 Ganesh Mahendran : > Hi, Laurent > > 2018-02-16 23:25 GMT+08:00 Laurent Dufour : >> When the speculative page fault handler is returning VM_RETRY, there is a >> chance that VMA fetched without grabbing the mmap_sem

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
On Thu, Mar 29, 2018 at 4:19 AM, Ulf Magnusson wrote: > I've been kinda busy lately, so that's why I disappeared. > > I'll try to go over this patchset in more detail over the weekend. > > On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada >

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-28 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by

Re: [PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Minchan Kim
On Thu, Mar 29, 2018 at 11:37:12AM +0900, Minchan Kim wrote: > binder_update_page_range needs down_write of mmap_sem because > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > it is set. However, when I profile binder working, it seems > every binder buffers should be mapped in

[PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Minchan Kim
binder_update_page_range needs down_write of mmap_sem because vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless it is set. However, when I profile binder working, it seems every binder buffers should be mapped in advance by binder_mmap. It means we could set VM_MIXEDMAP in

Re: [PATCH] media: i2c: wm9090: replace codec to component

2018-03-28 Thread kbuild test robot
Hi Kuninori, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20180328] [cannot apply to v4.16-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH v6 0/6] Add MediaTek PMIC keys support

2018-03-28 Thread Chen Zhong
On Wed, 2018-03-28 at 11:26 +0100, Lee Jones wrote: > On Tue, 27 Mar 2018, Matthias Brugger wrote: > > > > > > > On 03/27/2018 10:05 AM, Lee Jones wrote: > > > On Fri, 23 Mar 2018, Dmitry Torokhov wrote: > > >> On Thu, Mar 22, 2018 at 10:17:53AM +0800, Sean Wang wrote: > > >>> Hi, Dmitry and

Re: [PATCH 1/2] perf: riscv: preliminary RISC-V support

2018-03-28 Thread Alan Kao
Hi Alex, I'm appreciated for your reply and tests. On Wed, Mar 28, 2018 at 03:58:41PM -0700, Alex Solomatnikov wrote: > Did you test this code? I did test this patch on QEMU's virt model with multi-hart, which is the only RISC-V machine I have for now. But as I mentioned in

[PATCH 02/10] sparc: Convert local_softirq_pending() to use per-cpu op

2018-03-28 Thread Frederic Weisbecker
In order to consolidate and optimize generic softirq mask accesses, we first need to convert architectures to use per-cpu operations when possible. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH 03/10] softirq: Turn default irq_cpustat_t to standard per-cpu

2018-03-28 Thread Frederic Weisbecker
In order to optimize and consolidate softirq mask accesses, let's convert the default irq_cpustat_t implementation to per-CPU standard API. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar

[PATCH 05/10] ia64: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Benefit from the generic softirq mask implementation that rely on per-CPU mutators instead of working with raw operators on top of this_cpu_ptr(). Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH 07/10] powerpc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 04/10] softirq: Consolidate default local_softirq_pending() implementations

2018-03-28 Thread Frederic Weisbecker
Consolidate and optimize default softirq mask API implementations. Per-CPU operations are expected to be faster and a few architectures already rely on them to implement local_softirq_pending() and related accessors/mutators. Those will be migrated to the new generic code. Signed-off-by: Frederic

[PATCH 00/10] softirq: Consolidate and optimize softirq mask

2018-03-28 Thread Frederic Weisbecker
The softirq mask and its accessors/mutators have many implementations scattered around many architectures. Most do the same things consisting in a field in a per-cpu struct (often irq_cpustat_t) accessed through per-cpu ops. We can provide instead a generic efficient version that most of them can

[PATCH 08/10] sparc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Benefit from the generic softirq mask implementation that rely on per-CPU mutators instead of working with raw operators on top of this_cpu_ptr(). Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH 06/10] parisc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 10/10] softirq: Remove __ARCH_SET_SOFTIRQ_PENDING

2018-03-28 Thread Frederic Weisbecker
The last user of __ARCH_SET_SOFTIRQ_PENDING has been converted to generic per-cpu softirq mask. We can now remove this conditional. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar

[PATCH 09/10] x86: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 01/10] ia64: Convert local_softirq_pending() to per-cpu ops

2018-03-28 Thread Frederic Weisbecker
In order to consolidate and optimize generic softirq mask accesses, we first need to convert architectures to use per-cpu operations when possible. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

Re: [PATCH v8 22/24] mm: Speculative page fault handler return VMA

2018-03-28 Thread Ganesh Mahendran
Hi, Laurent 2018-02-16 23:25 GMT+08:00 Laurent Dufour : > When the speculative page fault handler is returning VM_RETRY, there is a > chance that VMA fetched without grabbing the mmap_sem can be reused by the > legacy page fault handler. By reusing it, we avoid

Re: [RFC][PATCH] ipc: Remove IPCMNI

2018-03-28 Thread Davidlohr Bueso
Cc'ing mtk, Manfred and linux-api. See below. On Thu, 15 Mar 2018, Waiman Long wrote: On 03/15/2018 03:00 PM, Eric W. Biederman wrote: Waiman Long writes: On 03/14/2018 08:49 PM, Eric W. Biederman wrote: The define IPCMNI was originally the size of a statically sized

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
I've been kinda busy lately, so that's why I disappeared. I'll try to go over this patchset in more detail over the weekend. On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option

Re: [RESEND] [PATCH] rtc: snvs: Fix usage of snvs_rtc_enable

2018-03-28 Thread Shawn Guo
On Wed, Mar 28, 2018 at 08:14:05PM +0100, Bryan O'Donoghue wrote: > commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces > the SNVS RTC driver with a function snvs_rtc_enable(). > > snvs_rtc_enable() can return an error on the enable path however this > driver does not

Re: [PATCH] ftrace: fix task's invalid comm of <...> when big pid

2018-03-28 Thread Wang Yu
于 18/3/28 下午11:44, Steven Rostedt 写道: On Wed, 28 Mar 2018 11:35:22 -0400 Steven Rostedt wrote: On Wed, 28 Mar 2018 20:32:27 +0800 Wang Yu wrote: when pid is bigger than PID_MAX_DEFAULT, the comm of task is <...>, it is better use pid_max to

[PATCH -next] ASoC: amd: acp-da7219-max98357: Make symbol da7219_dai_clk static

2018-03-28 Thread Wei Yongjun
Fixes the following sparse warning: sound/soc/amd/acp-da7219-max98357a.c:46:12: warning: symbol 'da7219_dai_clk' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v2] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Minchan Kim
On Wed, Mar 28, 2018 at 06:59:41PM -0700, Arve Hjønnevåg wrote: > On Wed, Mar 28, 2018 at 6:00 PM, Minchan Kim wrote: > > binder_update_page_range needs down_write of mmap_sem because > > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > > it is set. However,

Re: [PATCH] vhost-net: add time limitation for tx polling(Internet mail)

2018-03-28 Thread Jason Wang
On 2018年03月28日 23:31, Michael S. Tsirkin wrote: On Wed, Mar 28, 2018 at 02:37:04PM +0800, Jason Wang wrote: On 2018年03月28日 12:01, haibinzhang(张海斌) wrote: On 2018年03月27日 19:26, Jason wrote On 2018年03月27日 17:12, haibinzhang wrote: handle_tx() will delay rx for a long time when busy tx

  1   2   3   4   5   6   7   8   9   10   >