[PATCH net-next 12/24] rxrpc: Add RCU destruction for connections and calls

2016-07-05 Thread David Howells
Add RCU destruction for connections and calls as the RCU lookup from the transport socket data_ready handler is going to come along shortly. Whilst we're at it, move the cleanup workqueue flushing and RCU barrierage into the destruction code for the objects that need it (locals and connections) an

[PATCH net-next 13/24] rxrpc: Access socket accept queue under right lock

2016-07-05 Thread David Howells
The socket's accept queue (socket->acceptq) should be accessed under socket->call_lock, not under the connection lock. Signed-off-by: David Howells --- net/rxrpc/call_event.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event

[PATCH net-next 00/24] rxrpc: Improve conn/call lookup and fix call number generation [ver #2]

2016-07-05 Thread David Howells
git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rewrite-20160705 David --- David Howells (22): rxrpc: Fix processing of authenticated/encrypted jumbo pack

Re: [PATCH] i2c: tegra: Correct error path in probe

2016-07-05 Thread Jon Hunter
Wolfram, On 27/06/16 10:32, Laxman Dewangan wrote: > > On Monday 27 June 2016 02:58 PM, Jon Hunter wrote: >> Hi all, >> >> On 14/06/16 21:26, Jon Hunter wrote: >>> @@ -912,7 +912,7 @@ static int tegra_i2c_probe(struct platform_device >>> *pdev) >>> ret = tegra_i2c_init(i2c_dev); >>> i

[PATCH net-next 14/24] rxrpc: Call channels should have separate call number spaces

2016-07-05 Thread David Howells
Each channel on a connection has a separate, independent number space from which to allocate callNumber values. It is entirely possible, for example, to have a connection with four active calls, each with call number 1. Note that the callNumber values for any particular channel don't have to star

[PATCH net-next 15/24] rxrpc: Split client connection code out into its own file

2016-07-05 Thread David Howells
Split the client-specific connection code out into its own file. It will behave somewhat differently from the service-specific connection code, so it makes sense to separate them. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |7 + net/rxrpc/conn_client.c | 249

Re: [PATCH 3/3] reset: socfpga: use readl/writel_relaxed

2016-07-05 Thread Philipp Zabel
Am Dienstag, den 05.07.2016, 14:59 +0200 schrieb Arnd Bergmann: > On Tuesday, July 5, 2016 1:40:16 PM CEST Philipp Zabel wrote: > > Am Dienstag, den 05.07.2016, 13:20 +0200 schrieb Arnd Bergmann: > > > On Tuesday, July 5, 2016 12:17:52 PM CEST Philipp Zabel wrote: > > > > This just removes the rmb(

Re: [PATCH] mwifiex: fix unconditional error return in .add_virtual_intf callback

2016-07-05 Thread Javier Martinez Canillas
Hello Kalle, On 07/05/2016 09:09 AM, Kalle Valo wrote: > Javier Martinez Canillas writes: > >> The commit 7311ea850079 ("mwifiex: fix AP start problem for newly added >> interface") attempted to fix an issue when a new AP interface is added. >> >> But the patch didn't check the return value of t

Re: [PATCH 06/10] clk: samsung make clk-exynos-audss explicitly non-modular

2016-07-05 Thread Paul Gortmaker
[Re: [PATCH 06/10] clk: samsung make clk-exynos-audss explicitly non-modular] On 05/07/2016 (Tue 13:02) Geert Uytterhoeven wrote: > Hi Paul, > > On Mon, Jul 4, 2016 at 11:12 PM, Paul Gortmaker > wrote: > > We also delete the MODULE_LICENSE tags etc. since all that information > > is already con

[PATCH net-next 16/24] rxrpc: Split service connection code out into its own file

2016-07-05 Thread David Howells
Split the service-specific connection code out into into its own file. The client-specific code has already been split out. This will leave just the common code in the original file. Signed-off-by: David Howells --- net/rxrpc/Makefile |1 net/rxrpc/ar-internal.h | 13 +++- net/r

[PATCH net-next 06/24] rxrpc: Dup the main conn list for the proc interface

2016-07-05 Thread David Howells
The main connection list is used for two independent purposes: primarily it is used to find connections to reap and secondarily it is used to list connections in procfs. Split the procfs list out from the reap list. This allows the reap list to be phased out in stages as the client conns and serv

[PATCH net-next 05/24] rxrpc: Provide more refcount helper functions

2016-07-05 Thread David Howells
Provide refcount helper functions for connections so that the code doesn't touch conn->usage directly. Also provide queueing helper functions so that the queueing of local and connection objects can be fixed later. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h | 12 +++- n

[PATCH net-next 17/24] rxrpc: Move peer lookup from call-accept to new-incoming-conn

2016-07-05 Thread David Howells
Move the lookup of a peer from a call that's being accepted into the function that creates a new incoming connection. This will allow us to avoid incrementing the peer's usage count in some cases in future. Note that I haven't bother to integrate rxrpc_get_addr_from_skb() with rxrpc_extract_addr_

[PATCH net-next 09/24] rxrpc: Move usage count getting into rxrpc_queue_conn()

2016-07-05 Thread David Howells
Rather than calling rxrpc_get_connection() manually before calling rxrpc_queue_conn(), do it inside the queue wrapper. This allows us to do some important fixes: (1) If the usage count is 0, do nothing. This prevents connections from being reanimated once they're dead. (2) If rxrpc_queue

[PATCH net-next 10/24] rxrpc: Fix handling of connection failure in client call creation

2016-07-05 Thread David Howells
If rxrpc_connect_call() fails during the creation of a client connection, there are two bugs that we can hit that need fixing: (1) The call state should be moved to RXRPC_CALL_DEAD before the call cleanup phase is invoked. If not, this can cause an assertion failure later. (2) call->

[PATCH net-next 18/24] rxrpc: Maintain an extra ref on a conn for the cache list

2016-07-05 Thread David Howells
Overhaul the usage count accounting for the rxrpc_connection struct to make it easier to implement RCU access from the data_ready handler. The problem is that currently we're using a lock to prevent the garbage collector from trying to clean up a connection that we're contemplating unidling. We c

[PATCH net-next 08/24] rxrpc: Check that the client conns cache is empty before module removal

2016-07-05 Thread David Howells
Check that the client conns cache is empty before module removal and bug if not, listing any offending connections that are still present. Unfortunately, if there are connections still around, then the transport socket is still unexpectedly open and active, so we can't just unallocate the connecti

[PATCH net-next 11/24] rxrpc: Release a call's connection ref on call disconnection

2016-07-05 Thread David Howells
When a call is disconnected, clear the call's pointer to the connection and release the associated ref on that connection. This means that the call no longer pins the connection and the connection can be discarded even before the call is. As the code currently stands, the call struct is effective

[PATCH net-next 23/24] rxrpc: Use RCU to access a peer's service connection tree

2016-07-05 Thread David Howells
Move to using RCU access to a peer's service connection tree when routing an incoming packet. This is done using a seqlock to trigger retrying of the tree walk if a change happened. Further, we no longer get a ref on the connection looked up in the data_ready handler unless we queue the connectio

Re: [PATCHv4 wl-drv-next 2/2] mt7601u: use linux/bitfield.h

2016-07-05 Thread Kalle Valo
Jakub Kicinski writes: > Use the newly added linux/bitfield.h. > > Signed-off-by: Jakub Kicinski [...] > +#define MT76_SET FIELD_PUT > +#define MT76_GET FIELD_GET This define is useless now, I would just remove it entirely. But you can do that in a follow up patch. -- Kalle Valo

[PATCH net-next 22/24] rcu: Suppress sparse warnings for rcu_dereference_raw()

2016-07-05 Thread David Howells
From: Paul E. McKenney Data structures that are used both with and without RCU protection are difficult to write in a sparse-clean manner. If you mark the relevant pointers with __rcu, sparse will complain about all non-RCU uses, but if you don't mark those pointers, sparse will complain about a

[PATCH net-next 24/24] rxrpc: Kill off the call hash table

2016-07-05 Thread David Howells
The call hash table is now no longer used as calls are looked up directly by channel slot on the connection, so kill it off. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h | 13 +--- net/rxrpc/call_object.c | 173 --- 2 files changed, 2 i

[PATCH net-next 21/24] Introduce rb_replace_node_rcu()

2016-07-05 Thread David Howells
Implement an RCU-safe variant of rb_replace_node() and rearrange rb_replace_node() to do things in the same order. Signed-off-by: David Howells Acked-by: Peter Zijlstra (Intel) --- include/linux/rbtree.h |2 ++ include/linux/rbtree_augmented.h | 13 + lib/rbtree.c

[PATCH net-next 03/24] rxrpc: Check the source of a packet to a client conn

2016-07-05 Thread David Howells
When looking up a client connection to which to route a packet, we need to check that the packet came from the correct source so that a peer can't try to muck around with another peer's connection. Signed-off-by: David Howells --- net/rxrpc/conn_object.c |4 +++- 1 file changed, 3 insertion

[PATCH net-next 04/24] rxrpc: Avoid using stack memory in SG lists in rxkad

2016-07-05 Thread David Howells
From: Herbert Xu rxkad uses stack memory in SG lists which would not work if stacks were allocated from vmalloc memory. In fact, in most cases this isn't even necessary as the stack memory ends up getting copied over to kmalloc memory. This patch eliminates all the unnecessary stack memory uses

[PATCH net-next 20/24] rxrpc: Move data_ready peer lookup into rxrpc_find_connection()

2016-07-05 Thread David Howells
Move the peer lookup done in input.c by data_ready into rxrpc_find_connection(). Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |3 -- net/rxrpc/conn_object.c | 73 --- net/rxrpc/input.c | 30 ++- net/rxrpc/util

[PATCH net-next 07/24] rxrpc: Turn connection #defines into enums and put outside struct def

2016-07-05 Thread David Howells
Turn the connection event and state #define lists into enums and move outside of the struct definition. Whilst we're at it, change _SERVER to _SERVICE in those identifiers and add EV_ into the event name to distinguish them from flags and states. Also add a symbol indicating the number of states

[PATCH net-next 02/24] rxrpc: Fix some sparse errors

2016-07-05 Thread David Howells
Fix the following sparse errors: ../net/rxrpc/conn_object.c:77:17: warning: incorrect type in assignment (different base types) ../net/rxrpc/conn_object.c:77:17:expected restricted __be32 [usertype] call_id ../net/rxrpc/conn_object.c:77:17:got unsigned int [unsigned] [usertype] call_id

[PATCH net-next 19/24] rxrpc: Prune the contents of the rxrpc_conn_proto struct

2016-07-05 Thread David Howells
Prune the contents of the rxrpc_conn_proto struct. Most of the fields aren't used anymore. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h | 20 +++- net/rxrpc/call_object.c |2 +- net/rxrpc/conn_client.c | 11 --- net/rxrpc/conn_service.c |2 --

Re: [PATCH v3 0/4] sched,time: fix irq time accounting with nohz_idle

2016-07-05 Thread Rik van Riel
On Tue, 2016-07-05 at 16:02 +0300, Nikolay Borisov wrote: > > On 06/30/2016 10:35 PM, r...@redhat.com wrote: > > Currently irq time accounting only works in these cases: > > 1) purely ticke based accounting > > 2) nohz_full accounting, but only on housekeeping & nohz_full CPUs > > 3) architectures

Re: [PATCH] mwifiex: fix unconditional error return in .add_virtual_intf callback

2016-07-05 Thread Kalle Valo
Javier Martinez Canillas writes: > The commit 7311ea850079 ("mwifiex: fix AP start problem for newly added > interface") attempted to fix an issue when a new AP interface is added. > > But the patch didn't check the return value of the functions doing the > firmware calls and returned an error ev

Re: [PATCH] gpio: of: Allow overriding the device node

2016-07-05 Thread Alexandre Courbot
On Tue, Jul 5, 2016 at 9:11 PM, Thierry Reding wrote: > From: Thierry Reding > > When registering a GPIO chip, drivers can override the device tree node > associated with the chip by setting the chip's ->of_node field. If set, > this field is supposed to take precedence over the ->parent->of_node

Re: [PATCH 1/4] sched,time: count actually elapsed irq & softirq time

2016-07-05 Thread Rik van Riel
On Tue, 2016-07-05 at 14:40 +0200, Frederic Weisbecker wrote: > On Thu, Jun 30, 2016 at 03:35:47PM -0400, r...@redhat.com wrote: > > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > > index 3d60e5d76fdb..018bae2ada36 100644 > > --- a/kernel/sched/cputime.c > > +++ b/kernel/sched/cputi

PCI bus error on startup while booting

2016-07-05 Thread Abhishek Bhatia
Please cc me on any communication I am not subscribed to the list [1.] One line summary of the problem: PCI bus error on startup while booting into login screen (Kubuntu 16.04) [2.] Full description of the problem/report: With a HP Pavilion Notebook - 15-ab549tx, and Kubuntu 16.04, the problem is

Re: [PATCH] arm64: dts: Fix rtc by providing rtc_src clock

2016-07-05 Thread Javier Martinez Canillas
Hello Alim, On 07/05/2016 06:05 AM, Alim Akhtar wrote: > Add rtc source clock as exynos7 needs source (32.768KHz) clock > for rtc block. Without this currently rtc driver probe is broken > on this SoC, thats because rtc-s3c driver expect rtc_src clock to > be provided for _s3c6410-rtc_ type rtc co

Re: [PATCH v3 0/4] sched,time: fix irq time accounting with nohz_idle

2016-07-05 Thread Nikolay Borisov
On 06/30/2016 10:35 PM, r...@redhat.com wrote: > Currently irq time accounting only works in these cases: > 1) purely ticke based accounting > 2) nohz_full accounting, but only on housekeeping & nohz_full CPUs > 3) architectures with native vtime accounting > > On nohz_idle CPUs, which are proba

Re: [PATCH 3/3] reset: socfpga: use readl/writel_relaxed

2016-07-05 Thread Arnd Bergmann
On Tuesday, July 5, 2016 1:40:16 PM CEST Philipp Zabel wrote: > Am Dienstag, den 05.07.2016, 13:20 +0200 schrieb Arnd Bergmann: > > On Tuesday, July 5, 2016 12:17:52 PM CEST Philipp Zabel wrote: > > > This just removes the rmb()/wmb() pair between register read and > > > write. Since no relevant re

Re: [PATCH] perf: fix pmu::filter_match for SW-led groups

2016-07-05 Thread Mark Rutland
On Tue, Jul 05, 2016 at 02:04:26PM +0200, Peter Zijlstra wrote: > On Tue, Jul 05, 2016 at 10:44:48AM +0100, Mark Rutland wrote: > > My bad; I assumed that for both PMUs we'd start at the root, and thus > > would need to re-sort in order to get the current CPU's PMU ordered > > first, much like curr

Re: [PATCH] sched/core: really pretend early bootup to be a normal task

2016-07-05 Thread Konstantin Khlebnikov
On 05.07.2016 15:41, Peter Zijlstra wrote: On Tue, Jul 05, 2016 at 02:23:23PM +0300, Konstantin Khlebnikov wrote: Commit 1b537c7d1e58 ("sched/core: Remove check of p->sched_class") placed "current->sched_class = &fair_sched_class" before call of init_idle() which immediately set sched_class back

Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver

2016-07-05 Thread Bruno Prémont
On Tue, 5 Jul 2016 11:25:10 +0200 Maxime Ripard wrote: > On Tue, Jul 05, 2016 at 04:33:31PM +0800, Icenowy Zheng wrote: > > > > > > 05.07.2016, 13:26, "Michael Haas" : > > > Hi, > > > > > > nice work! Is this in any way related to Bruno Prémonts driver for the > > > axp20x? > > > > > > I've got

Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver

2016-07-05 Thread Bruno Prémont
On Tue, 05 Jul 2016 16:47:38 +0800 Icenowy Zheng wrote: > I read the datasheet of axp20x, and then found that this driver does > not support backup RTC battery. > (But maybe backup battery do not need a driver -- at least on IBM PC > it has no driver) A driver is needed to enable/disable the RTC b

Email

2016-07-05 Thread Richard Sun
Hello, My name is Mr. Richard Sun from Hong Kong. I want you to be my partner in a business project. Contact me back via my private e-mail address for more details; ricadt...@ymail.com Thank you. Mr. Richard Sun.

Re: [PATCH v2 0/6] Intel Integrated Sensor Hub Support (ISH)

2016-07-05 Thread Grant Likely
On 22/06/16 06:40, Srinivas Pandruvada wrote: Change log v2: - Overview in documentation show analogy with usbhid implementation - sparse errors for statics. Also pointed by Jiri - Clearly marking exported function header file. Clean up all exports unused inteface functions - Changed to tristate

Re: [PATCH] sched/core: really pretend early bootup to be a normal task

2016-07-05 Thread Peter Zijlstra
On Tue, Jul 05, 2016 at 02:23:23PM +0300, Konstantin Khlebnikov wrote: > Commit 1b537c7d1e58 ("sched/core: Remove check of p->sched_class") placed > "current->sched_class = &fair_sched_class" before call of init_idle() which > immediately set sched_class back to idle_sched_class. > > This patch re

Re: [PATCH 1/4] sched,time: count actually elapsed irq & softirq time

2016-07-05 Thread Frederic Weisbecker
On Thu, Jun 30, 2016 at 03:35:47PM -0400, r...@redhat.com wrote: > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > index 3d60e5d76fdb..018bae2ada36 100644 > --- a/kernel/sched/cputime.c > +++ b/kernel/sched/cputime.c > @@ -79,40 +79,50 @@ void irqtime_account_irq(struct task_struct *

Re: [PATCH] lpfc: Fix possible NULL pointer dereference

2016-07-05 Thread Johannes Thumshirn
On Tue, Jun 28, 2016 at 01:28:19PM -0700, Tyrel Datwyler wrote: > On 06/15/2016 06:00 AM, Johannes Thumshirn wrote: > > Check for the existance of pciob->vport before accessing it. > > piocb mispelled. Oops > > > > > Signed-off-by: Johannes Thumshirn > > --- > > drivers/scsi/lpfc/lpfc_sli.c

Re: More parallel atomic_open/d_splice_alias fun with NFS and possibly more FSes.

2016-07-05 Thread Al Viro
On Tue, Jul 05, 2016 at 02:22:48AM -0400, Oleg Drokin wrote: > > + if (!(open_flags & O_CREAT) && !d_unhashed(dentry)) { s/d_unhashed/d_in_lookup/ in that. > So we come racing here from multiple threads (say 3 or more - we have seen > this > in the older crash reports, so totally possible) >

Re: [RFC PATCH v1] irqchip: add support for SMP irq router

2016-07-05 Thread Sebastian Frias
On 07/04/2016 02:11 PM, Mason wrote: > > In the patch subject, do you mean SMP as in Symmetric Multi Processor? As in Sigma Multimedia Processor :-) The prefix for Sigma's chips is SMP. I can change that to "Tango" if it is confusing. > > Is that the address you intend to submit with? Yes. >

[PATCH] PM / hibernate: Image data protection during restoration

2016-07-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make it possible to protect all pages holding image data during hibernate image restoration by marking them read-only (so as to catch attempts to write to those pages after image data have been stored in them). This adds overhead to image restoration code (it may cause la

[PATCH] perf: use right filename to test

2016-07-05 Thread Song Shan Gong
When trying to read buildid from file in function tools/perf/util/symbol.c:dso_load(), perf used wrong filename to test. The variable 'name' has just allocated and uninitialized before this sentence.Obviously, the test 'is_regular_file()' is for the latter 'filename__read_build_id()', so the right

Re: Tool for sampling /proc/net/softnet_stat statistics

2016-07-05 Thread Jesper Dangaard Brouer
On Tue, 8 Mar 2016 10:50:56 +0100 Jesper Dangaard Brouer wrote: > On Mon, 7 Mar 2016 12:54:13 -0500 > Willem de Bruijn wrote: > > > On Mon, Mar 7, 2016 at 10:36 AM, Jesper Dangaard Brouer > > wrote: > > > Hi Google, > > > > > > While playing with RPS, I needed to read stats from > > > /proc/

Re: [PATCH 0/2] KVM: MMU: support VMAs that got remap_pfn_range-ed

2016-07-05 Thread Paolo Bonzini
On 05/07/2016 07:41, Neo Jia wrote: > On Thu, Jun 30, 2016 at 03:01:49PM +0200, Paolo Bonzini wrote: >> The vGPU folks would like to trap the first access to a BAR by setting >> vm_ops on the VMAs produced by mmap-ing a VFIO device. The fault handler >> then can use remap_pfn_range to place some

[V3 PATCH 1/2] x86/panic: Replace smp_send_stop() with kdump friendly version

2016-07-05 Thread Hidehiro Kawai
This patch fixes one of the problems reported by Daniel Walker (https://lkml.org/lkml/2015/6/24/44). If crash_kexec_post_notifiers boot option is specified, other CPUs are stopped by smp_send_stop() instead of machine_crash_shutdown() in crash_kexec() path. This behavior change leads two problems

usb: memory allocation WARNING in hcd_buffer_alloc

2016-07-05 Thread Dmitry Vyukov
Hello, The following program trigger the following WARNING: [ cut here ] WARNING: CPU: 0 PID: 6263 at mm/page_alloc.c:3584[< inline >] __alloc_pages_slowpath mm/page_alloc.c:3584 WARNING: CPU: 0 PID: 6263 at mm/page_alloc.c:3584[< none >] __alloc_pages_no

[V3 PATCH 2/2] kexec: Use core_param for crash_kexec_post_notifiers boot option

2016-07-05 Thread Hidehiro Kawai
crash_kexec_post_notifiers ia a boot option which controls whether the 1st kernel calls panic notifiers or not before booting the 2nd kernel. However, there is no need to limit it to being modifiable only at boot time. So, use core_param instead of early_param. Signed-off-by: Hidehiro Kawai Cc:

[V3 PATCH 0/2] kexec: crash_kexec_post_notifiers boot option related fixes

2016-07-05 Thread Hidehiro Kawai
This is the update version of the patch which I posted one year ago (https://lkml.org/lkml/2015/7/23/864). Because I couldn't received positive opinions against the previous version, I had changed the approach to another one which utilizes kexec purgatory. Then I'm back here. PATCH 1/2 is a bugf

[PATCH] gpio: of: Allow overriding the device node

2016-07-05 Thread Thierry Reding
From: Thierry Reding When registering a GPIO chip, drivers can override the device tree node associated with the chip by setting the chip's ->of_node field. If set, this field is supposed to take precedence over the ->parent->of_node field, but the code doesn't actually do that. Commit 762c2e46c

Re: [PATCH 2/3] ARM: dts: imx6sx: Add UDOO Neo support

2016-07-05 Thread Fabio Estevam
On Tue, Jul 5, 2016 at 1:04 AM, Andreas Färber wrote: > +/dts-v1/; > + > +#include "imx6sx-udoo-neo.dtsi" > + > +/ { > + model = "UDOO Neo Basic"; This should be something like: model = "Udoo i.MX6 SoloX UDOO Neo Basic"; > + compatible = "fsl,imx6sx"; compatible = "udoo,imx6sx-udo

Re: [PATCH] perf: fix pmu::filter_match for SW-led groups

2016-07-05 Thread Peter Zijlstra
On Tue, Jul 05, 2016 at 10:44:48AM +0100, Mark Rutland wrote: > My bad; I assumed that for both PMUs we'd start at the root, and thus > would need to re-sort in order to get the current CPU's PMU ordered > first, much like currently with rotation. > > I guess I'm having difficulty figuring out the

dccp: potential deadlock in dccp_v4_ctl_send_reset

2016-07-05 Thread Dmitry Vyukov
Hello, While running syzkaller fuzzer I've got the following deadlock report: = [ INFO: inconsistent lock state ] 4.7.0-rc5+ #28 Not tainted - inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor/354 [HC0[0]:SC0[0]:HE1:S

[PATCH] [linux-next] workqueue: Fix a typo in workqueue.txt

2016-07-05 Thread Masanari Iida
This patch fix a spelling typo in workqueue.txt Signed-off-by: Masanari Iida --- Documentation/workqueue.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/workqueue.txt b/Documentation/workqueue.txt index 5e0e05c5183e..c49e3178178d 100644 --- a/Documentation/w

[PATCHv4 wl-drv-next 1/2] add basic register-field manipulation macros

2016-07-05 Thread Jakub Kicinski
Common approach to accessing register fields is to define structures or sets of macros containing mask and shift pair. Operations on the register are then performed as follows: field = (reg >> shift) & mask; reg &= ~(mask << shift); reg |= (field & mask) << shift; Defining shift and mask sepa

[PATCHv4 wl-drv-next 0/2] register-field manipulation macros

2016-07-05 Thread Jakub Kicinski
Hi! This set moves to a global header file macros which I find very useful and worth popularising. The basic problem is that since C bitfields are not very dependable accessing subfields of registers becomes slightly inconvenient. It is nice to have the necessary mask and shift operations wrapped

[PATCHv4 wl-drv-next 2/2] mt7601u: use linux/bitfield.h

2016-07-05 Thread Jakub Kicinski
Use the newly added linux/bitfield.h. Signed-off-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/dma.h | 2 - drivers/net/wireless/mediatek/mt7601u/mt7601u.h | 5 +- drivers/net/wireless/mediatek/mt7601u/util.h| 77 - 3 files changed, 4 insertions(+

[PATCH] kernel/watchdog: use nmi registers snapshot in hardlockup handler

2016-07-05 Thread Konstantin Khlebnikov
NMI handler doesn't call set_irq_regs(), so get_irq_regs() returns NULL or stale snapshot from beginning of IRQ interrupted by NMI. Registers from argument are always here and points to interrupted instruction and state. Signed-off-by: Konstantin Khlebnikov Cc: Jiri Kosina --- kernel/watchdog.c

[PATCH] memory: samsung: exynos-srom: fix wrong count of registers

2016-07-05 Thread Seung-Woo Kim
This patch fixes wrong count of array for srom registers from probe function. Signed-off-by: Seung-Woo Kim --- drivers/memory/samsung/exynos-srom.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/samsung/exynos-srom.c b/drivers/memory/samsung/exynos-srom.c

Re: [PATCH 3/3] reset: socfpga: use readl/writel_relaxed

2016-07-05 Thread Philipp Zabel
Am Dienstag, den 05.07.2016, 13:20 +0200 schrieb Arnd Bergmann: > On Tuesday, July 5, 2016 12:17:52 PM CEST Philipp Zabel wrote: > > This just removes the rmb()/wmb() pair between register read and > > write. Since no relevant reads follow the rmb and no relevant writes > > precede the wmb, they sh

is pid_namespace leak in v3.10?

2016-07-05 Thread Xishi Qiu
I find pid_namespace leak by "cat /proc/slabinfo | grep pid_namespace". The kernel version is RHEL 7.1 (kernel v3.10 stable). The following is the test case, after several times, the count of pid_namespace become very large, is it correct? I also test mainline, and the count will increase too, but

mm: GPF in find_get_pages_tag

2016-07-05 Thread Dmitry Vyukov
Hello, The following program triggers GPF in find_get_pages_tag if run in parallel loop for minutes: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN Modules linked in: CPU: 2 PID: 3

Re: [PATCH] mcb: Added bar descriptor support for non PCI bus MCB carrier

2016-07-05 Thread Johannes Thumshirn
On Tue, Jun 28, 2016 at 04:25:48PM +0200, Andreas Werner wrote: > Added support for the bar descriptor. This type is used for FPGAs > connect to the LPC or to a non PCI bus. > > The Bar descriptor could have a maximum of 6 BARs. Each of the > devices within the FPGA could be mapped to a different

Re: [PATCH] mcb: Added support for LPC or non PCI based MCB carrier

2016-07-05 Thread Johannes Thumshirn
On Fri, Jun 24, 2016 at 03:47:58PM +0200, Andreas Werner wrote: > Add support for MCB bases FPGAs connected to the LPC or > non PCI Bus. > > This driver currently supports the SC24 board. The FPGA > is connected to the LPC bus and is identified using the BIOS > DMI string. > > Signed-off-by: Andr

[PATCH] Staging: gdm724x: gdm_tty: Fixed a checkpatch check issue.

2016-07-05 Thread Samuele Baisi
Removed a blankline after an opening bracket. Signed-off-by: Samuele Baisi --- drivers/staging/gdm724x/gdm_tty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index eb7e252..ae39663 100644 --- a/drivers/staging/gdm724x/g

Re: [PATCH v23 06/22] richacl: In-memory representation and helper functions

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > A richacl consists of an NFSv4 acl and an owner, group, and other mask. > These three masks correspond to the owner, group, and other file > permission bits, but they contain NFSv4 permissions instead of POSIX > permissions. > > Each

Re: [PATCH 1/5] mmu: mark spte present if the x bit is set

2016-07-05 Thread Wanpeng Li
2016-07-05 18:50 GMT+08:00 Paolo Bonzini : > > > On 05/07/2016 05:06, Wanpeng Li wrote: >> 2016-06-29 4:49 GMT+08:00 Paolo Bonzini : >> [...] >>> >>> I think another way to write it is "(pte & 0xull) && >>> !is_mmio_spte(pte)", since non-present/non-MMIO SPTEs never use bits >> >> I misunde

Re: [PATCHv3 wl-drv-next 1/2] add basic register-field manipulation macros

2016-07-05 Thread Jakub Kicinski
On Tue, 5 Jul 2016 10:56:13 +, David Laight wrote: > From: Jakub Kicinski > > Sent: 01 July 2016 22:27 > > > > C bitfields are problematic and best avoided. Developers > > interacting with hardware registers find themselves searching > > for easy-to-use alternatives. Common approach is to de

[PATCH] sched/core: really pretend early bootup to be a normal task

2016-07-05 Thread Konstantin Khlebnikov
Commit 1b537c7d1e58 ("sched/core: Remove check of p->sched_class") placed "current->sched_class = &fair_sched_class" before call of init_idle() which immediately set sched_class back to idle_sched_class. This patch reverts this piece because after commit de9b8f5dcbd9 ("sched: Fix crash trying to d

[PATCH 1/5] ACPI: Add documentation describing ACPICA release automation

2016-07-05 Thread Lv Zheng
This patch adds documentation on ACPICA release automation into the kernel Documentation/acpi folder. Signed-off-by: Lv Zheng --- Documentation/acpi/linuxized-acpica.txt | 251 +++ 1 file changed, 251 insertions(+) create mode 100644 Documentation/acpi/linuxized-acp

[PATCH 3/5] ACPI / debugger: Add AML debugger documentation

2016-07-05 Thread Lv Zheng
This patch adds AML debugger documentation. Signed-off-by: Lv Zheng --- Documentation/acpi/aml-debugger.txt | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/acpi/aml-debugger.txt diff --git a/Documentation/acpi/aml-debugger.txt b/Do

Re: [PATCH v23 05/22] vfs: Add permission flags for setting file attributes

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > Richacls support permissions that allow to take ownership of a file, > change the file permissions, and set the file timestamps.  Support that > by introducing new permission mask flags and by checking for those mask > flags in inode_c

[PATCH 2/5] ACPI / debugger: Fix regressions that AML debugger stops working

2016-07-05 Thread Lv Zheng
The FIFO unlocking mechanism in acpi_dbg has been messed up by the following commit: Commit: 287980e49ffc0f6d911601e7e352a812ed27768e Subject: remove lots of IS_ERR_VALUE abuses It converts !IS_ERR_VALUE(ret) into !ret. This patch fixes the regression. Fixes: 287980e49ffc ("remove lots of IS_E

[PATCH 4/5] ACPI / button: Add SW_ACPI_LID for new usage model

2016-07-05 Thread Lv Zheng
There are many AML tables reporting wrong initial lid state, and some of them never reports lid state. As a proxy layer acting between, ACPI button driver is not able to handle all such cases, but need to re-define the usage model of the ACPI lid. That is: 1. It's initial state is not reliable; 2.

[PATCH 5/5] ACPI: Add configuration item to configure ACPICA error logs out

2016-07-05 Thread Lv Zheng
Sometimes, we need to disable ACPICA error logs to leave only ACPICA debug logs enabled for debugging purpose. This is useful when ACPICA error logs become a flood. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=114201 Signed-off-by: Lv Zheng --- drivers/acpi/Kconfig|7 ++

Re: [PATCH 3/3] reset: socfpga: use readl/writel_relaxed

2016-07-05 Thread Arnd Bergmann
On Tuesday, July 5, 2016 12:17:52 PM CEST Philipp Zabel wrote: > This just removes the rmb()/wmb() pair between register read and > write. Since no relevant reads follow the rmb and no relevant writes > precede the wmb, they should be safe to remove. > > Signed-off-by: Philipp Zabel We should on

[PATCH 0/5] ACPI: ACPI documentations and trivial fixes

2016-07-05 Thread Lv Zheng
This patch adds ACPI documentations related to: 1. AML debugger 2. Control method LID device 3. ACPICA release process This patch also contains several trivial fixes detected during the documentation work. Lv Zheng (5): ACPI: Add documentation describing ACPICA release automation ACPI / debugg

Re: [PATCH v23 04/22] vfs: Make the inode passed to inode_change_ok non-const

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > We will need to call iop->permission and iop->get_acl from > inode_change_ok() for additional permission checks, and both take a > non-const inode. > > Signed-off-by: Andreas Gruenbacher > Reviewed-by: J. Bruce Fields > Reviewed-by:

Re: [PATCH v23 02/22] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > Richacls distinguish between creating non-directories and directories. To > support that, add an isdir parameter to may_create(). When checking > inode_permission() for create permission, pass in an additional > MAY_CREATE_FILE or MAY_

RE: [PATCHv3 wl-drv-next 1/2] add basic register-field manipulation macros

2016-07-05 Thread David Laight
From: Jakub Kicinski > Sent: 01 July 2016 22:27 > > C bitfields are problematic and best avoided. Developers > interacting with hardware registers find themselves searching > for easy-to-use alternatives. Common approach is to define > structures or sets of macros containing mask and shift pair.

Re: [PATCH v23 03/22] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > Normally, deleting a file requires MAY_WRITE access to the parent > directory.  With richacls, a file may be deleted with MAY_DELETE_CHILD access > to the parent directory or with MAY_DELETE_SELF access to the file. > > To support tha

[GIT PULL] extcon next for 4.8

2016-07-05 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v4.8. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 33688abb2802ff3a230bd2441f765477b94cc89e: Linux 4.7-rc4 (2016-06-19 21:30:02

Re: [PATCH 06/10] clk: samsung make clk-exynos-audss explicitly non-modular

2016-07-05 Thread Geert Uytterhoeven
Hi Paul, On Mon, Jul 4, 2016 at 11:12 PM, Paul Gortmaker wrote: > We also delete the MODULE_LICENSE tags etc. since all that information > is already contained at the top of the file in the comments. But the unstructured information at the top of the file is much more difficult to grep for... G

Re: [PATCH v23 01/22] vfs: Add IS_ACL() and IS_RICHACL() tests

2016-07-05 Thread Jeff Layton
On Thu, 2016-06-30 at 15:46 +0200, Andreas Gruenbacher wrote: > The vfs does not apply the umask for file systems that support acls. > The test used for this used to be called IS_POSIXACL().  Switch to a new > IS_ACL() test to check for either posix acls or richacls instead.  Add a > new MS_RICHACL

RE: [PATCH 1/2] qe/ic: move qe_ic_init from platforms to irqchip

2016-07-05 Thread Qiang Zhao
On 07/05/2016 11:19 AM, Jason Cooper wrote: > -Original Message- > From: Jason Cooper [mailto:ja...@lakedaemon.net] > Sent: Tuesday, July 05, 2016 11:19 AM > To: Qiang Zhao > Cc: o...@buserror.net; t...@linutronix.de; marc.zyng...@arm.com; linuxppc- > d...@lists.ozlabs.org; linux-kernel@v

Re: [PATCH 31/31] mm, vmstat: Remove zone and node double accounting by approximating retries

2016-07-05 Thread Mel Gorman
On Tue, Jul 05, 2016 at 04:07:23PM +0800, Hillf Danton wrote: > > + /* > > +* Would the allocation succeed if we reclaimed the whole > > +* available? This is approximate because there is no > > +* accurate count of reclaimable pages per zone. > > +

Re: [RFC] mips: Add MXU context switching support

2016-07-05 Thread Maciej W. Rozycki
On Tue, 5 Jul 2016, PrasannaKumar Muralidharan wrote: > >> + asm volatile(".word 0x700803ee\n\t"); > >> + tsk->thread.mxu.xr[15] = reg_val; > >> +} > > > > Not using an output operand with asms here? > > I think the instruction saves the xr* register value to reg_val > without need f

Re: [PATCH 3/5] mmu: don't set the present bit unconditionally

2016-07-05 Thread Paolo Bonzini
On 05/07/2016 07:50, Wanpeng Li wrote: >> > This needs a comment: >> > >> > /* >> > * There are two cases in which execonly is false: 1) for >> > * non-EPT page tables, in which case we need to set the >> > * P bit; 2) for EPT page tables where an X-- page table

Re: [PATCH 1/5] mmu: mark spte present if the x bit is set

2016-07-05 Thread Paolo Bonzini
On 05/07/2016 05:06, Wanpeng Li wrote: > 2016-06-29 4:49 GMT+08:00 Paolo Bonzini : > [...] >> >> I think another way to write it is "(pte & 0xull) && >> !is_mmio_spte(pte)", since non-present/non-MMIO SPTEs never use bits > > I misunderstand it here, this will also treat -W- EPT SPTEs as

Re: [PATCH 21/31] mm, page_alloc: Wake kswapd based on the highest eligible zone

2016-07-05 Thread Mel Gorman
On Tue, Jul 05, 2016 at 02:57:38PM +0800, Hillf Danton wrote: > > > > The ac_classzone_idx is used as the basis for waking kswapd and that is > > based > > on the preferred zoneref. If the preferred zoneref's highest zone is lower > > than what is available on other nodes, it's possible that kswa

RE: [PATCH v14 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-05 Thread Dexuan Cui
> From: Joe Perches [mailto:j...@perches.com] > Sent: Tuesday, July 5, 2016 17:39 > To: Dexuan Cui ; da...@davemloft.net; > gre...@linuxfoundation.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com; V

Re: [PATCH 12/31] mm, vmscan: make shrink_node decisions more node-centric

2016-07-05 Thread Mel Gorman
On Tue, Jul 05, 2016 at 03:24:36PM +0900, Minchan Kim wrote: > > diff --git a/mm/vmscan.c b/mm/vmscan.c > > index 2f898ba2ee2e..b8e0f76b6e00 100644 > > --- a/mm/vmscan.c > > +++ b/mm/vmscan.c > > @@ -2226,10 +2226,11 @@ static inline void init_tlb_ubc(void) > > /* > > * This is a basic per-zone

Re: [PATCH 11/31] mm: vmscan: do not reclaim from kswapd if there is any eligible zone

2016-07-05 Thread Mel Gorman
On Tue, Jul 05, 2016 at 03:11:17PM +0900, Minchan Kim wrote: > > - if (i < 0) > > - goto out; > > + /* > > +* Only reclaim if there are no eligible zones. Check from > > +* high to low zone to avoid prematurely clearing pgdat > > +

<    1   2   3   4   5   6   7   8   >