[PATCH] net: refactor icmp_global_allow to improve readability and performance.

2015-12-31 Thread Mike Danese
We can reduce the number of operations performed by icmp_global_allow and make the routine more readable by refactoring it in two ways: First, this patch refactors the meaning of the "delta" variable. Before this change, it meant min("time since last refill of token bucket", HZ). After this change

Re: [PATCH] mm,oom: Always sleep before retrying.

2015-12-31 Thread Tetsuo Handa
Tetsuo Handa wrote: > When we entered into "Reclaim has failed us, start killing things" > state, sleep function is called only when mutex_trylock(&oom_lock) > in __alloc_pages_may_oom() failed or immediately after returning from > oom_kill_process() in out_of_memory(). This may be insufficient for

[PATCH] staging: android: sync.c: Changed the ways nullptrs were being checked

2015-12-31 Thread Chase Metzger
Removed all checkpatch.pl CHECKs that suggested to check NULL by !obj instead of obj == NULL. Signed-off-by: Chase Metzger --- drivers/staging/android/sync.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/an

[PATCH] usb: core: devio.c: Removed unnecessary space

2015-12-31 Thread Chase Metzger
Removed an unnecessary space between a function name and arguments. Signed-off-by: Chase Metzger --- drivers/usb/core/devio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 38ae877c..0bcd45e 100644 --- a/drivers/usb/c

Re: [ANNOUNCE] 4.4-rc6-rt1

2015-12-31 Thread Mike Galbraith
On Thu, 2015-12-31 at 10:24 -0600, Clark Williams wrote: > I pulled this update and tried it on my laptop (i7 quad-core with HT) > and an Atom testbox. I'm seeing a change in the cpu utilization of > ksoftirqd between 4.1.15-rt17 and 4.4-rc2-rt1, where the per-cpu > ksoftirqd threads are running a

Re: [PATCH linux-next (v2) 1/2] clk: Add brcm, bcm6345-gate-clk device tree binding

2015-12-31 Thread Michael Turquette
Hi Simon, Quoting Simon Arlott (2015-12-10 13:49:21) > +periph_clk: periph_clk { > + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm6345-gate-clk"; > + regmap = <&periph_cntl>; > + offset = <0x4>; > + > + #clock-cells = <1>; > + clock-indices = > + <1>,

[PATCH 04/13] ufs: get rid of ->setattr() for symlinks

2015-12-31 Thread Al Viro
From: Al Viro It was to needed for a couple of months in 2010, until UFS quota support got dropped. Since then it's equivalent to simple_setattr() (i.e. the default) for everything except the regular files. And dropping it there allows to convert all UFS symlinks to {page,simple}_symlink_inode_

[PATCH 05/13] namei: page_getlink() and page_follow_link_light() are the same thing

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/namei.c | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 0c3974c..4bae5cb 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4518,7 +4518,7 @@ int generic_readlink(struct de

[PATCH 12/13] kill free_page_put_link()

2015-12-31 Thread Al Viro
From: Al Viro all callers are better off with kfree_put_link() Signed-off-by: Al Viro --- fs/configfs/symlink.c | 12 ++-- fs/fuse/dir.c | 6 +++--- fs/kernfs/symlink.c | 12 ++-- fs/libfs.c| 6 -- include/linux/fs.h| 1 - 5 files changed, 15 in

[PATCH 08/13] teach page_get_link() to work in RCU mode

2015-12-31 Thread Al Viro
From: Al Viro more or less along the lines of Neil's patchset, sans the insanity around kmap(). Signed-off-by: Al Viro --- fs/namei.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 1da3064..8f51788 100644 --- a/fs/namei.c

[PATCH 09/13] teach shmem_get_link() to work in RCU mode

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- mm/shmem.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index 684dbc3..0605716 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2501,12 +2501,20 @@ static const char *shmem_get_link(struct

[PATCH 10/13] teach proc_self_get_link()/proc_thread_self_get_link() to work in RCU mode

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/proc/self.c| 8 +++- fs/proc/thread_self.c | 9 - 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/fs/proc/self.c b/fs/proc/self.c index 9dd0ae6..7a8b19e 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c @@ -25,14 +25

[PATCH 06/13] don't put symlink bodies in pagecache into highmem

2015-12-31 Thread Al Viro
From: Al Viro kmap() in page_follow_link_light() needed to go - allowing to hold an arbitrary number of kmaps for long is a great way to deadlocking the system. new helper (inode_nohighmem(inode)) needs to be used for pagecache symlinks inodes; done for all in-tree cases. page_follow_link_light

[PATCH 11/13] teach nfs_get_link() to work in RCU mode

2015-12-31 Thread Al Viro
From: Al Viro based upon the corresponding patch from Neil's March patchset, again with kmap-related horrors removed. Signed-off-by: Al Viro --- fs/nfs/inode.c | 21 + fs/nfs/symlink.c | 30 -- include/linux/nfs_fs.h | 1 + 3 files

[PATCH 07/13] replace ->follow_link() with new method that could stay in RCU mode

2015-12-31 Thread Al Viro
From: Al Viro new method: ->get_link(); replacement of ->follow_link(). The differences are: * inode and dentry are passed separately * might be called both in RCU and non-RCU mode; the former is indicated by passing it a NULL dentry. * when called that way it isn't allow

[PATCH 13/13] switch ->get_link() to delayed_call, kill ->put_link()

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- Documentation/filesystems/Locking | 2 - Documentation/filesystems/porting | 6 +++ Documentation/filesystems/vfs.txt | 21 + drivers/staging/lustre/lustre/llite/symlink.c | 18 fs/9p/vfs_inode.c

[PATCH 01/13] switch befs long symlinks to page_symlink_operations

2015-12-31 Thread Al Viro
From: Al Viro just give them the right ->readpage()... Signed-off-by: Al Viro --- fs/befs/linuxvfs.c | 41 ++--- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 46aedac..1c8b0dc 100644 --- a/fs/be

[PATCH 02/13] logfs: don't duplicate page_symlink_inode_operations

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/logfs/dir.c | 8 +--- fs/logfs/inode.c | 2 +- fs/logfs/logfs.h | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index f9b45d4..99944a4 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c @@ -528

[PATCH 03/13] udf: don't duplicate page_symlink_inode_operations

2015-12-31 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/udf/inode.c | 2 +- fs/udf/namei.c | 7 +-- fs/udf/udfdecl.h | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 8d0b3ad..8675c2b 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -1540

[RFC] ->get_link(), ->put_link() and cookies

2015-12-31 Thread Al Viro
In cases when we need to pin the symlink body in some manner, we need to undo whatever we'd done once the caller is done with the body. That went through several variants, the latest (in -next right now) being "have non-NULL ->put_link() and leave an argument for it in void *cookie, address

Re: [PATCH] clk: gpio: handle error codes for of_clk_get_parent_count()

2015-12-31 Thread Michael Turquette
Quoting Brian Norris (2015-12-16 10:35:03) > We might make bad memory allocations if we get (e.g.) -ENOSYS from > of_clk_get_parent_count(). > > Noticed by Coverity. > > Fixes: f66541ba02d5 ("clk: gpio: Get parent clk names in of_gpio_clk_setup()") > Signed-off-by: Brian Norris > Cc: Jyri Sarha

Re: [PATCH] clk: gpio: fix memory leak in of_gpio_clk_setup()

2015-12-31 Thread Michael Turquette
Quoting Brian Norris (2015-12-16 10:28:31) > Reported by Coverity. > > Fixes: f66541ba02d5 ("clk: gpio: Get parent clk names in of_gpio_clk_setup()") > Signed-off-by: Brian Norris > Cc: Jyri Sarha > Cc: Sergej Sawazki > Cc: Stephen Boyd Thanks for the fix. I already applied this one: http://

Re: [PATCH] clk: gpio: fix memory leak

2015-12-31 Thread Michael Turquette
Quoting Sudip Mukherjee (2015-12-22 22:33:59) > If we fail to allocate parent_name then we are returning but we missed > freeing data which has already been allocated. > > Signed-off-by: Sudip Mukherjee Applied. Thanks, Mike > --- > drivers/clk/clk-gpio.c | 4 +++- > 1 file changed, 3 inserti

Re: [PATCH RESEND] fs:Fix rcu locking in the function terminate_walk

2015-12-31 Thread Al Viro
On Tue, Dec 29, 2015 at 08:30:19PM -0500, Nicholas Krause wrote: > This fixes rcu locking for the else block in the function > terminate_walk by calling rcu_read_lock at the beginning > of this code in order to protect against concurrent writers > here in this else block while allowing multiple rea

musb module names in 4.4.0-rc7

2015-12-31 Thread Andreas Färber
Hi Felipe, Using the openSUSE kernel config [1] I've noticed the following modules get built for recent RCs: /lib/modules/4.4.0-rc7-1.g276c9f4-lpae/kernel/drivers/usb/musb> ls am35x.ko musb_am335x.ko musb_dsps.ko musb_hdrc.ko omap2430.ko sunxi.ko In my case I was testing on a sun9i based Op

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-31 Thread Sudip Mukherjee
On Thu, Dec 31, 2015 at 03:12:11PM +0100, Arnd Bergmann wrote: > On Thursday 31 December 2015 15:13:08 Sudip Mukherjee wrote: > > On Wed, Dec 30, 2015 at 10:20:58PM +0800, Bamvor Jian Zhang wrote: > > > On 12/30/2015 09:51 PM, Arnd Bergmann wrote: > > > > On Wednesday 30 December 2015 21:24:21 Bamv

Re: [PATCH] drm/vc4: Remove broken attempt at GPU reset using genpd.

2015-12-31 Thread Sudip Mukherjee
> functions without our Kconfig depending on PM_SLEEP. > > Signed-off-by: Eric Anholt > --- It has still not landed in linux-next. next-20151231 still fails with the same error. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: linux-next: manual merge of the security tree with the vfs tree

2015-12-31 Thread Al Viro
On Thu, Dec 31, 2015 at 12:45:35PM +0200, Petko Manolov wrote: > I introduced the write mutex when ima_write_policy() stopped being serialized > by > other means. Come to think about it the semaphore could be taken right > before > copy_from_user() so it is my fault, not Stephen's. s/before/

[PATCH] Documentation: update linux cross reference link

2015-12-31 Thread SeongJae Park
The old link to source code cross reference does not work now. Though the link has updated by commit 1d12554f0abbc7d17dce8d1b7b25f4e27555e6d7 ("Documentation: HOWTO: update code cross reference link"), there are few obsolete links yet. This commit update them. Signed-off-by: SeongJae Park --- Do

Re: [PATCH 2/2] f2fs: support revoking atomic written pages

2015-12-31 Thread Jaegeuk Kim
Hi Chao, ... > > > > On Tue, Dec 29, 2015 at 11:12:36AM +0800, Chao Yu wrote: > > > > > f2fs support atomic write with following semantics: > > > > > 1. open db file > > > > > 2. ioctl start atomic write > > > > > 3. (write db file) * n > > > > > 4. ioctl commit atomic write > > > > > 5. close db

[PATCH] perf tools: handle spaces in file names obtained from /proc/pid/maps

2015-12-31 Thread Marcin Ślusarz
Steam frequently puts game binaries in folders with spaces. Note: "(deleted)" markers are now treated as part of the file name. It probably worked before 6064803313bad9ae4cae233a9d56678adb2b6e7c ("perf tools: Use sscanf for parsing /proc/pid/maps"). Signed-off-by: Marcin Ślusarz Cc: Namhyung Ki

Re: [PATCH 00/42] ACPICA: 20151218 Release

2015-12-31 Thread Rafael J. Wysocki
On Friday, January 01, 2016 04:04:47 AM Rafael J. Wysocki wrote: > On Tuesday, December 29, 2015 01:52:19 PM Lv Zheng wrote: > > The 20151218 ACPICA kernel-resident subsystem updates are linuxized based > > on the linux-pm/linux-next branch. > > > > The patchset has passed the following build/boot

Re: [PATCH] ata: correctly handling failed allocation

2015-12-31 Thread Tejun Heo
On Tue, Dec 29, 2015 at 04:21:15PM -0500, Insu Yun wrote: > Since kzalloc can be failed in memory pressure, return error when failed. > > Signed-off-by: Insu Yun Applied to libata/for-4.5. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH 00/42] ACPICA: 20151218 Release

2015-12-31 Thread Rafael J. Wysocki
On Tuesday, December 29, 2015 01:52:19 PM Lv Zheng wrote: > The 20151218 ACPICA kernel-resident subsystem updates are linuxized based > on the linux-pm/linux-next branch. > > The patchset has passed the following build/boot tests. > Build tests are performed as follows: > 1. i386 + allyes > 2. i38

Re: [RFC] is_global_init() called on global init sub-thread

2015-12-31 Thread Serge E. Hallyn
On Fri, Jan 01, 2016 at 10:33:53AM +0900, Sergey Senozhatsky wrote: > On (12/31/15 19:18), Serge E. Hallyn wrote: > > On Fri, Jan 01, 2016 at 10:10:35AM +0900, Sergey Senozhatsky wrote: > > > On (12/31/15 19:08), Serge E. Hallyn wrote: > > > > > re-upping > > > > > https://www.redhat.com/archives/

Re: linux-next: manual merge of the libata tree

2015-12-31 Thread Tejun Heo
Hello, Stephen. On Thu, Dec 31, 2015 at 12:29:15PM +1100, Stephen Rothwell wrote: > Today's linux-next merge of the libata tree got conflicts all over teh > place due to commit: > > 53fab927a8fc ("ata: ahci_brcmstb: add support for MIPS-based platforms") > > from the libata tree which seem to

Re: [PATCH] pinctrl: mediatek: convert to arch_initcall

2015-12-31 Thread Daniel Kurtz
Hi Mark, Thanks for responding. On Fri, Jan 1, 2016 at 6:07 AM, Mark Brown wrote: > On Thu, Dec 31, 2015 at 09:45:51PM +0800, Daniel Kurtz wrote: >> On Thu, Dec 31, 2015 at 1:22 AM, Mark Brown wrote: > >> > I really don't think we should be applying this sort of stuff unless >> > things are act

Re: [PATCH 6/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-31 Thread Tejun Heo
Hello, > From fc54592077533ff2ff90ed54b72bf03b4378ca9f Mon Sep 17 00:00:00 2001 > From: Serge Hallyn > Date: Thu, 31 Dec 2015 16:55:19 -0800 > Subject: [PATCH 1/1] cgroup_release_agent: grab css_set_lock around > cgroup_path() > > Reported-by: Sergey Senozhatsky > Signed-off-by: Serge Hallyn

Re: [RFC] is_global_init() called on global init sub-thread

2015-12-31 Thread Sergey Senozhatsky
On (12/31/15 19:18), Serge E. Hallyn wrote: > On Fri, Jan 01, 2016 at 10:10:35AM +0900, Sergey Senozhatsky wrote: > > On (12/31/15 19:08), Serge E. Hallyn wrote: > > > > re-upping > > > > https://www.redhat.com/archives/linux-audit/2013-December/msg00086.html > > > > > > > > Oleg Nesterov wrote:

Re: [PATCH v3 00/77] More fixes, cleanup and modernization for NCR5380 drivers

2015-12-31 Thread Michael Schmitz
Hi Finn, I've tested this series thoroughly on my Atari Falcon - no regressions, runs stable and is quite responsive. No SCSI lock-ups that had plagued the old driver (before your rewrites). Please add my Tested-by: Michael Schmitz Cheers, Michael Am 22.12.15 um 14:17 schrieb Finn Thain

Re: [RFC] is_global_init() called on global init sub-thread

2015-12-31 Thread Serge E. Hallyn
On Fri, Jan 01, 2016 at 10:10:35AM +0900, Sergey Senozhatsky wrote: > On (12/31/15 19:08), Serge E. Hallyn wrote: > > > re-upping > > > https://www.redhat.com/archives/linux-audit/2013-December/msg00086.html > > > > > > Oleg Nesterov wrote: > > > > > > :Because is_global_init() is only true for

Re: [PATCH 6/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-31 Thread Sergey Senozhatsky
On (12/31/15 18:58), Serge E. Hallyn wrote: [..] > Thanks! Following trivial patch should fix this: confirmed, thanks! Tested-by: Sergey Senozhatsky -ss > From fc54592077533ff2ff90ed54b72bf03b4378ca9f Mon Sep 17 00:00:00 2001 > From: Serge Hallyn > Date: Thu, 31 Dec 2015 16:55:19 -08

Re: [RFC] is_global_init() called on global init sub-thread

2015-12-31 Thread Sergey Senozhatsky
On (12/31/15 19:08), Serge E. Hallyn wrote: > > re-upping > > https://www.redhat.com/archives/linux-audit/2013-December/msg00086.html > > > > Oleg Nesterov wrote: > > > > :Because is_global_init() is only true for the main thread of /sbin/init. > > : > > :Just look at oom_unkillable_task(). It t

Re: [RFC] is_global_init() called on global init sub-thread

2015-12-31 Thread Serge E. Hallyn
On Wed, Dec 30, 2015 at 03:25:42PM +0900, Sergey Senozhatsky wrote: > Hello, > > re-upping > https://www.redhat.com/archives/linux-audit/2013-December/msg00086.html > > Oleg Nesterov wrote: > > :Because is_global_init() is only true for the main thread of /sbin/init. > : > :Just look at oom_unk

Re: [PATCH 6/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-31 Thread Serge E. Hallyn
cgroup_put(&root->cgrp); > > > > @@ -2142,6 +2179,7 @@ out_mount: > > deactivate_super(pinned_sb); > > } > > > > + put_cgroup_ns(ns); > > return dentry; > > } > > Hello, > > didn't investig

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-31 Thread Rafael J. Wysocki
On Tuesday, December 29, 2015 05:44:48 PM Andrew Morton wrote: > On Wed, 30 Dec 2015 03:06:23 +0100 "Rafael J. Wysocki" > wrote: > > > I'll apply it to my tree if you don't mind with the Andy's [1/3] on top > > so we have all of that in one place. > > That version needed a fix. Here's the one

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2015-12-31 Thread Rafael J. Wysocki
On Wednesday, December 30, 2015 09:55:35 PM Andy Shevchenko wrote: > On Wed, Dec 30, 2015 at 9:17 PM, Sinan Kaya wrote: > > On 12/30/2015 8:28 AM, Andy Shevchenko wrote: > >> Yep, I meant not to use an additional variable. > >> > >>> > BTW, I suggest you spend some time around checkpatch for contr

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-31 Thread Leo Yan
Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > > k_po/k_pu are in essence ratio values compared with sustainable power. > > So when update sustainable power, we can recalculate k_po/k_pu

[PATCH 3/5] f2fs: use IPU for fdatasync

2015-12-31 Thread Jaegeuk Kim
This patch fixes missing IPU condition when fdatasync is called. With this patch, fdatasync is able to avoid additional node writes for recovery. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c inde

[PATCH 4/5] f2fs: monitor zombie_tree count

2015-12-31 Thread Jaegeuk Kim
This patch adds an entry to show the number of zombie extent_tree. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 5 +++-- fs/f2fs/f2fs.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index ed5dfcc..b73e8e1 100644 --- a/fs/f2fs/debug.

[PATCH 5/5] f2fs: introduce zombie list for fast shrinking extent trees

2015-12-31 Thread Jaegeuk Kim
This patch removes refcount, and instead, adds zombie_list to shrink directly without radix tree traverse. Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 49 + fs/f2fs/f2fs.h | 3 ++- 2 files changed, 23 insertions(+), 29 deletion

[PATCH 2/5] f2fs: write pending bios when cp_error is set

2015-12-31 Thread Jaegeuk Kim
When testing ioc_shutdown, put_super is able to be hanged by waiting for writebacking pages as follows. INFO: task umount:2723 blocked for more than 120 seconds. Tainted: G O4.4.0-rc3+ #8 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. umount

[PATCH 1/5] f2fs: remove f2fs_bug_on in terms of max_depth

2015-12-31 Thread Jaegeuk Kim
There is no report on this bug_on case, but if malicious attacker changed this field intentionally, we can just reset it as a MAX value. Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index

Re: [PATCH v2 RESEND 1/3] clocksource/vt8500: Use MIN_OSCR_DELTA from PXA

2015-12-31 Thread Roman Volkov
В Thu, 31 Dec 2015 23:33:45 +0100 (CET) Thomas Gleixner пишет: > Roman, > > On Thu, 31 Dec 2015, Roman Volkov wrote: > > Since vt8500 and PXA timers are identical, use MIN_OSCR_DELTA from > > PXA, which is bigger than existing value. It is required to > > determine the minimum delay which hardwa

[PATCH] be2net: Delete an unnecessary check in two functions

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 1 Jan 2016 00:11:57 +0100 Remove two checks for null pointers which would be handled by usual error detection before. Signed-off-by: Markus Elfring --- drivers/net/ethernet/emulex/benet/be_cmds.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) di

Re: [PATCH V3] net: emac: emac gigabit ethernet controller driver

2015-12-31 Thread Rob Herring
On Tue, Dec 29, 2015 at 06:48:55PM -0700, Gilad Avidov wrote: > Add supports for ethernet controller HW on Qualcomm Technologies, Inc. SoC. > This driver supports the following features: > 1) Checksum offload. > 2) Runtime power management support. > 3) Interrupt coalescing support. > 4) SGMII phy.

Re: [PATCH] net: emac: emac gigabit ethernet controller driver

2015-12-31 Thread Rob Herring
On Tue, Dec 15, 2015 at 4:49 PM, Gilad Avidov wrote: > On Mon, 14 Dec 2015 17:39:09 -0800 > Florian Fainelli wrote: > >> On 14/12/15 16:19, Gilad Avidov wrote: >> >> [snip] >> >> > + "sgmii_irq"; >> > + qcom,emac-gpio-mdc = <&msmgpio 123 0>; >> > + qcom,emac-

Re: Linux 4.4-rc4 regression, bisected to "net: fix sock_wake_async() rcu protection"

2015-12-31 Thread Linus Torvalds
On Wed, Dec 30, 2015 at 5:55 AM, Eric Dumazet wrote: > On Wed, 2015-12-30 at 12:32 +0100, Nicolai Stange wrote: >> >> Please have a look at https://lkml.kernel.org/g/87ege73bma@gmail.com >> >> I ran into the same issue and this one fixes it for me. > > Right, and the ozlabs pointers for this w

Re: [PATCH v2 RESEND 1/3] clocksource/vt8500: Use MIN_OSCR_DELTA from PXA

2015-12-31 Thread Thomas Gleixner
Roman, On Thu, 31 Dec 2015, Roman Volkov wrote: > Since vt8500 and PXA timers are identical, use MIN_OSCR_DELTA from PXA, > which is bigger than existing value. It is required to determine the > minimum delay which hardware can generate. Now that brings up the obvious question: If the vt8500 and

Re: [RFD] CAT user space interface revisited

2015-12-31 Thread Thomas Gleixner
Marcelo, On Thu, 31 Dec 2015, Marcelo Tosatti wrote: First of all thanks for the explanation. > There is one directory structure in this topic, CAT. That is the > directory structure which is exposed to userspace to control the > CAT HW. > > With the current patchset posted by Intel ("Subject

Re: [PATCH v4 5/6] mfd: dt-bindings: add device tree bindings for Hi3519 sysctrl

2015-12-31 Thread Rob Herring
On Wed, Dec 30, 2015 at 09:43:51AM +0800, Jiancheng Xue wrote: > Add device tree bindings for Hi3519 system controller. > > Signed-off-by: Jiancheng Xue > --- > Documentation/devicetree/bindings/mfd/hi3519.txt | 14 ++ > 1 file changed, 14 insertions(+) > create mode 100644 Document

Re: [PATCH v4 1/6] clk: hisilicon: add CRG driver for hi3519 soc

2015-12-31 Thread Rob Herring
On Wed, Dec 30, 2015 at 09:43:47AM +0800, Jiancheng Xue wrote: > The CRG(Clock and Reset Generator) block provides clock > and reset signals for other modules in hi3519 soc. > > Signed-off-by: Jiancheng Xue > --- > .../devicetree/bindings/clock/hi3519-crg.txt | 46 +++ For the binding

Re: [PATCH] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2015-12-31 Thread Rob Herring
On Wed, Dec 30, 2015 at 10:26:11AM +0800, Jiancheng Xue wrote: > add hisilicon spi-nor flash controller driver > > Signed-off-by: Binquan Peng > Signed-off-by: Jiancheng Xue > --- > .../devicetree/bindings/spi/spi-hisi-sfc.txt | 24 + > drivers/mtd/spi-nor/Kconfig

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-31 Thread Mark Brown
On Mon, Dec 28, 2015 at 04:06:49AM +0100, Danny Milosavljevic wrote: > Maxime Ripard wrote: > > > +static SOC_ENUM_SINGLE_DECL(sun4i_codec_enum_capture_source, > > > + SUN4I_CODEC_ADC_ACTL, > > > + SUN4I_CODEC_ADC_ACTL_ADCIS, > > > + sun

Re: [PATCH 4/4] Document: spi: Add bindings for mediatek MT2701 soc platform

2015-12-31 Thread Rob Herring
On Thu, Dec 31, 2015 at 10:59:03AM +0800, Leilk Liu wrote: > This patch adds a DT binding documentation for the MT2701 soc. > > Signed-off-by: Leilk Liu Acked-by: Rob Herring -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-31 Thread Mark Brown
On Thu, Dec 31, 2015 at 10:59:06PM +0100, Paul Kocialkowski wrote: > I understand, thanks for pointing this out. Well, for my use case, there > is no use in disabling the chip at any point as it powers the external > mmc. Presumably someone might decide not to use the MMC in some case (perhaps on

Re: [PATCH 4/4] Document: spi: Add bindings for mediatek MT2701 soc platform

2015-12-31 Thread Mark Brown
On Thu, Dec 31, 2015 at 10:59:03AM +0800, Leilk Liu wrote: > This patch adds a DT binding documentation for the MT2701 soc. > Please use subject lines reflecting the style for the subsystem. signature.asc Description: PGP signature

Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree

2015-12-31 Thread Dan Williams
On Wed, Dec 30, 2015 at 7:28 PM, Bob Liu wrote: > > On 12/31/2015 04:39 AM, Dan Williams wrote: >> On Wed, Dec 30, 2015 at 12:02 AM, Bob Liu wrote: >>> Hi Ross, >>> >>> On 12/24/2015 03:39 AM, Ross Zwisler wrote: Add support for tracking dirty DAX entries in the struct address_space rad

Re: [PATCH] pinctrl: mediatek: convert to arch_initcall

2015-12-31 Thread Mark Brown
On Thu, Dec 31, 2015 at 09:45:51PM +0800, Daniel Kurtz wrote: > On Thu, Dec 31, 2015 at 1:22 AM, Mark Brown wrote: > > I really don't think we should be applying this sort of stuff unless > > things are actively broken right now. It's a bit of a rabbit hole we > > could spend a long time going d

Re: ath9k

2015-12-31 Thread Paul G. Allen
The best tool I've ever used (in over 30 years of software development) is Understand: https://scitools.com/ Thanks, PGA On Wed, Dec 30, 2015 at 9:41 PM, Ramesh wrote: > > > Hi, > > can anyone please tell me how to analyse ath9k source code and call flow..? > > > > > Thanks, > Ramesh > Disclai

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-31 Thread Paul Kocialkowski
Le jeudi 31 décembre 2015 à 21:40 +, Mark Brown a écrit : > On Wed, Dec 30, 2015 at 07:37:19PM +0100, Paul Kocialkowski wrote: > > Le mercredi 30 décembre 2015 à 16:33 +, Mark Brown a écrit : > > > On Wed, Dec 30, 2015 at 09:35:21AM +0100, Paul Kocialkowski wrote: > > > > > In my opinion,

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-31 Thread Mark Brown
On Wed, Dec 30, 2015 at 07:37:19PM +0100, Paul Kocialkowski wrote: > Le mercredi 30 décembre 2015 à 16:33 +, Mark Brown a écrit : > > On Wed, Dec 30, 2015 at 09:35:21AM +0100, Paul Kocialkowski wrote: > > > In my opinion, it would be more elegant to adapt the core regulator > > > framework to

[PATCH] net-thunder: One check less in nicvf_register_interrupts() after error detection

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 31 Dec 2015 22:40:39 +0100 Adjust a jump target to eliminate a check before error logging. Use the identifier "report_failure" instead of "err". Signed-off-by: Markus Elfring --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 15 +++ 1 file chang

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-31 Thread Andy Lutomirski
On Jan 1, 2016 4:30 AM, "Tony Luck" wrote: > > On Wed, Dec 30, 2015 at 3:32 PM, Tony Luck wrote: > > Fifth is just a hack because I clearly didn't understand what I was > > doing in parts 2&3 because my new class shows up as '3' not '1'! > > > > Andy: Can you explain the assembler/linker arithmet

[GIT PULL] PCI fixes for v4.4

2015-12-31 Thread Bjorn Helgaas
Hi Linus, Here's another fix for v4.4. This fixes 32-bit config reads for the HiSilicon driver. Obviously the driver is completely broken without this fix (apparently it actually was tested internally, but got broken somehow in the process of upstreaming it). Bjorn The following changes since

Re: [PATCH] MAINTAINERS: Add myself as a reviewer for the bq27xxx driver.

2015-12-31 Thread Pali Rohár
On Thursday 31 December 2015 22:06:38 Sebastian Reichel wrote: > Hi, > > On Thu, Dec 31, 2015 at 07:40:04PM +0100, Pali Rohár wrote: > > On Wednesday 30 December 2015 19:35:41 Andrew F. Davis wrote: > > > Signed-off-by: Andrew F. Davis > > > --- > > > > > > MAINTAINERS | 10 -- > > > 1

Re: [PATCH] MAINTAINERS: Add myself as a reviewer for the bq27xxx driver.

2015-12-31 Thread Sebastian Reichel
Hi, On Thu, Dec 31, 2015 at 07:40:04PM +0100, Pali Rohár wrote: > On Wednesday 30 December 2015 19:35:41 Andrew F. Davis wrote: > > Signed-off-by: Andrew F. Davis > > --- > > MAINTAINERS | 10 -- > > 1 file changed, 8 insertions(+), 2 deletions(-) > > > > diff --git a/MAINTAINERS b/MAIN

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-31 Thread Tony Luck
On Wed, Dec 30, 2015 at 3:32 PM, Tony Luck wrote: > Fifth is just a hack because I clearly didn't understand what I was > doing in parts 2&3 because my new class shows up as '3' not '1'! > > Andy: Can you explain the assembler/linker arithmetic for the class? Never mind ... figured it out. The f

[GIT] Sparc

2015-12-31 Thread David Miller
Just some missing syscall wire ups, please pull, thanks! The following changes since commit 8db7b3c54401d83a4dc370a59b8692854000ea03: Merge branch 'parisc-4.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-12-25 13:19:50 -0800) are available in the git reposit

[PATCH 3/3] mtd-rfd_ftl: Refactoring for erase_block()

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 31 Dec 2015 21:06:27 +0100 This issue was detected by using the Coccinelle software. * Return directly if a memory allocation failed. * Drop the explicit initialisation for the variable "rc" at the beginning then. Signed-off-by: Markus Elfring --- drivers/mt

[PATCH 2/3] mtd-rfd_ftl: Refactoring for move_block_contents()

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 31 Dec 2015 20:54:50 +0100 This issue was detected by using the Coccinelle software. Rename jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/mtd/rfd_ftl.c | 22 -- 1 file changed,

[PATCH 1/3] mtd-rfd_ftl: Replace a variable initialisation by assignments in move_block_contents()

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 31 Dec 2015 20:34:51 +0100 Replace an explicit initialisation for the variable "rc" at the beginning by assignments that will only be performed if a memory allocation failed. Signed-off-by: Markus Elfring --- drivers/mtd/rfd_ftl.c | 10 +++--- 1 file changed

[PATCH 0/3] mtd-rfd_ftl: Fine-tuning for two function implementations

2015-12-31 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 31 Dec 2015 21:15:15 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Replace a variable initialisation by assignments Refactoring for move_block_contents() Refactoring for erase_block() drivers/m

Re: RCU stall and the system boot hang with nfsroot

2015-12-31 Thread Paul E. McKenney
On Wed, Dec 30, 2015 at 09:41:45AM -0800, Paul E. McKenney wrote: > On Wed, Dec 30, 2015 at 03:03:33PM +0800, Aaron Ma wrote: > > On Wed, Dec 30, 2015 at 7:42 AM, Paul E. McKenney > > wrote: [ . . . ] > > cfg80211: Calling CRDA to update world regulatory domain > > cfg80211: Calling CRDA to upda

Re: [PATCH v2 24/32] sparc: define __smp_xxx

2015-12-31 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 31 Dec 2015 21:08:53 +0200 > This defines __smp_xxx barriers for sparc, > for use by virtualization. > > smp_xxx barriers are removed as they are > defined correctly by asm-generic/barriers.h > > Signed-off-by: Michael S. Tsirkin > Acked-by: Arnd Bergmann

Re: [PATCH v2 07/32] sparc: reuse asm-generic/barrier.h

2015-12-31 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 31 Dec 2015 21:06:38 +0200 > On sparc 64 bit dma_rmb, dma_wmb, smp_store_mb, smp_mb, smp_rmb, > smp_wmb, read_barrier_depends and smp_read_barrier_depends match the > asm-generic variants exactly. Drop the local definitions and pull in > asm-generic/barrier.h

gpf in intel_pmu_lbr_enable_all

2015-12-31 Thread Dave Jones
general protection fault: [#1] PREEMPT SMP DEBUG_PAGEALLOC KASAN CPU: 1 PID: 15672 Comm: trinity-c5 Not tainted 4.4.0-rc7-gelk-debug+ #3 task: 8800a18fc100 ti: 88005b6a task.ti: 88005b6a RIP: 0010:[] [] intel_pmu_lbr_enable_all+0xb5/0x160 RSP: 0018:88005b6a7a58 EFLAG

Re: [PATCH] af_unix: Fix splice-bind deadlock

2015-12-31 Thread Rainer Weikusat
Hannes Frederic Sowa writes: > On 27.12.2015 21:13, Rainer Weikusat wrote: >> -static int unix_mknod(const char *sun_path, umode_t mode, struct path *res) >> +static int unix_mknod(struct dentry *dentry, struct path *path, umode_t >> mode, >> + struct path *res) >> { >> -st

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2015-12-31 Thread Jonathan Cameron
On 23/12/15 10:27, Ludovic Desroches wrote: > On Tue, Dec 22, 2015 at 06:34:00PM +, Jonathan Cameron wrote: >> On 21/12/15 09:24, Ludovic Desroches wrote: >>> This driver supports the new version of the Atmel ADC device introduced >>> with the SAMA5D2 SoC family. >>> >>> Signed-off-by: Ludovic

Re: [RFD] CAT user space interface revisited

2015-12-31 Thread Marcelo Tosatti
On Tue, Dec 29, 2015 at 01:44:16PM +0100, Thomas Gleixner wrote: > Marcelo, > > On Wed, 23 Dec 2015, Marcelo Tosatti wrote: > > On Tue, Dec 22, 2015 at 06:12:05PM +, Yu, Fenghua wrote: > > > > From: Thomas Gleixner [mailto:t...@linutronix.de] > > > > > > > > I was not able to identify any exis

[PATCH v2 02/32] asm-generic: guard smp_store_release/load_acquire

2015-12-31 Thread Michael S. Tsirkin
Allow architectures to override smp_store_release and smp_load_acquire by guarding the defines in asm-generic/barrier.h with ifndef directives. This is in preparation to reusing asm-generic/barrier.h on architectures which have their own definition of these macros. Signed-off-by: Michael S. Tsirk

[PATCH v2 08/32] arm: reuse asm-generic/barrier.h

2015-12-31 Thread Michael S. Tsirkin
On arm smp_store_mb, read_barrier_depends, smp_read_barrier_depends, smp_store_release, smp_load_acquire, smp_mb__before_atomic and smp_mb__after_atomic match the asm-generic variants exactly. Drop the local definitions and pull in asm-generic/barrier.h instead. This is in preparation to refactori

[PATCH v2 09/32] arm64: reuse asm-generic/barrier.h

2015-12-31 Thread Michael S. Tsirkin
On arm64 nop, read_barrier_depends, smp_read_barrier_depends smp_store_mb(), smp_mb__before_atomic and smp_mb__after_atomic match the asm-generic variants exactly. Drop the local definitions and pull in asm-generic/barrier.h instead. This is in preparation to refactoring this code area. Signed-of

[PATCH v2 11/32] mips: reuse asm-generic/barrier.h

2015-12-31 Thread Michael S. Tsirkin
On mips dma_rmb, dma_wmb, smp_store_mb, read_barrier_depends, smp_read_barrier_depends, smp_store_release and smp_load_acquire match the asm-generic variants exactly. Drop the local definitions and pull in asm-generic/barrier.h instead. This is in preparation to refactoring this code area. Signe

[PATCH v2 13/32] x86: reuse asm-generic/barrier.h

2015-12-31 Thread Michael S. Tsirkin
As on most architectures, on x86 read_barrier_depends and smp_read_barrier_depends are empty. Drop the local definitions and pull the generic ones from asm-generic/barrier.h instead: they are identical. This is in preparation to refactoring this code area. Signed-off-by: Michael S. Tsirkin Acke

[PATCH v2 18/32] blackfin: define __smp_xxx

2015-12-31 Thread Michael S. Tsirkin
This defines __smp_xxx barriers for blackfin, for use by virtualization. smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h Signed-off-by: Michael S. Tsirkin Acked-by: Arnd Bergmann --- arch/blackfin/include/asm/barrier.h | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 17/32] arm: define __smp_xxx

2015-12-31 Thread Michael S. Tsirkin
This defines __smp_xxx barriers for arm, for use by virtualization. smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h This reduces the amount of arch-specific boiler-plate code. Signed-off-by: Michael S. Tsirkin Acked-by: Arnd Bergmann --- arch/arm/include/a

[PATCH v2 21/32] mips: define __smp_xxx

2015-12-31 Thread Michael S. Tsirkin
This defines __smp_xxx barriers for mips, for use by virtualization. smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h Note: the only exception is smp_mb__before_llsc which is mips-specific. We define both the __smp_mb__before_llsc variant (for use in asm/barrie

[PATCH v2 22/32] s390: define __smp_xxx

2015-12-31 Thread Michael S. Tsirkin
This defines __smp_xxx barriers for s390, for use by virtualization. Some smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h Note: smp_mb, smp_rmb and smp_wmb are defined as full barriers unconditionally on this architecture. Signed-off-by: Michael S. Tsirkin A

[PATCH v2 26/32] xtensa: define __smp_xxx

2015-12-31 Thread Michael S. Tsirkin
This defines __smp_xxx barriers for xtensa, for use by virtualization. smp_xxx barriers are removed as they are defined correctly by asm-generic/barriers.h Signed-off-by: Michael S. Tsirkin Acked-by: Arnd Bergmann --- arch/xtensa/include/asm/barrier.h | 4 ++-- 1 file changed, 2 insertions(+),

  1   2   3   >