[PATCH 3.14 80/84] x86/nmi/64: Improve nested NMI comments

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 0b22930ebad563ae97ff3f8d7b9f12060b4c6e6b upstream. I found the nested NMI documentation to be difficult to follow. Improve the comments. Signed-off-by: Andy Lutomirski

[PATCH 3.14 79/84] x86/nmi/64: Switch stacks on userspace NMI entry

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 9b6e6a8334d56354853f9c255d1395c2ba570e0a upstream. Returning to userspace is tricky: IRET can fail, and ESPFIX can rearrange the stack prior to IRET. The NMI nesting fi

[PATCH 3.14 01/84] blk-mq: fix buffer overflow when reading sysfs file of pending

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Ming Lei commit 596f5aad2a704b72934e5abec1b1b4114c16f45b upstream. There may be lots of pending requests so that the buffer of PAGE_SIZE can't hold them at all. One typical example is scsi-mq

[PATCH 3.14 35/84] IB/qib: Change lkey table allocation to support more MRs

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit d6f1c17e162b2a11e708f28fa93f2f79c164b442 upstream. The lkey table is allocated with with a get_user_pages() with an order based on a number of index bits from a module

[PATCH 3.14 14/84] powerpc/mm: Fix pte_pagesize_index() crash on 4K w/64K hash

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 74b5037baa2011a2799e2c43adde7d171b072f9e upstream. The powerpc kernel can be built to have either a 4K PAGE_SIZE or a 64K PAGE_SIZE. However when built with a 4K PAGE_

[PATCH 3.14 37/84] IB/uverbs: Fix race between ib_uverbs_open and remove_one

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Yishai Hadas commit 35d4a0b63dc0c6d1177d4f532a9deae958f0662c upstream. Fixes: 2a72f212263701b927559f6850446421d5906c41 ("IB/uverbs: Remove dev_table") Before this commit there was a device lo

[PATCH 3.14 43/84] ipv6: Make MLD packets to only be processed locally

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Angga [ Upstream commit 4c938d22c88a9ddccc8c55a85e0430e9c62b1ac5 ] Before commit daad151263cf ("ipv6: Make ipv6_is_mld() inline and use it from ip6_mc_input().") MLD packets were only processe

[PATCH 3.14 76/84] Revert "iio: bmg160: IIO_BUFFER and IIO_TRIGGERED_BUFFER are required"

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- This reverts commit 279c039ca63acbd69e69d6d7ddfed50346fb2185 which was commit 06d2f6ca5a38abe92f1f3a132b331eee773868c3 upstream as it should not have been applied. Reported-by: Luis Henriques Cc: Ma

[PATCH 3.14 48/84] bridge: mdb: zero out the local br_ip variable before use

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Aleksandrov [ Upstream commit f1158b74e54f2e2462ba5e2f45a118246d9d5b43 ] Since commit b0e9a30dd669 ("bridge: Add vlan id to multicast groups") there's a check in br_ip_equal() for a ma

[PATCH 3.14 27/84] parisc: Use double word condition in 64bit CAS operation

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 1b59ddfcf1678de38a1f8ca9fb8ea5eebeff1843 upstream. The attached change fixes the condition used in the "sub" instruction. A double word comparison is needed. This fix

[PATCH 3.14 13/84] ALSA: hda - Use ALC880_FIXUP_FUJITSU for FSC Amilo M1437

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit a161574e200ae63a5042120e0d8c36830e81bde3 upstream. It turned out that the machine has a bass speaker, so take a correct fixup entry. Bugzilla: https://bugzilla.kernel.org/

[PATCH 3.14 03/84] rtlwifi: rtl8192cu: Add new device ID

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Adrien Schildknecht commit 1642d09fb9b128e8e538b2a4179962a34f38dff9 upstream. The v2 of NetGear WNA1000M uses a different idProduct: USB ID 0846:9043 Signed-off-by: Adrien Schildknecht Acked

[PATCH 3.14 08/84] arm64: head.S: initialise mdcr_el2 in el2_setup

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit d10bcd473301888f957ec4b6b12aa3621be78d59 upstream. When entering the kernel at EL2, we fail to initialise the MDCR_EL2 register which controls debug access and PMU capabilit

[PATCH 3.14 02/84] unshare: Unsharing a thread does not require unsharing a vm

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: "Eric W. Biederman" commit 12c641ab8270f787dfcce08b5f20ce8b65008096 upstream. In the logic in the initial commit of unshare made creating a new thread group for a process, contingent upon crea

[PATCH 3.14 12/84] ALSA: hda - Enable headphone jack detect on old Fujitsu laptops

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit bb148bdeb0ab16fc0ae8009799471e4d7180073b upstream. According to the bug report, FSC Amilo laptops with ALC880 can detect the headphone jack but currently the driver disable

[PATCH 3.14 07/84] arm64: compat: fix vfp save/restore across signal handlers in big-endian

2015-09-29 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit bdec97a855ef1e239f130f7a11584721c9a1bf04 upstream. When saving/restoring the VFP registers from a compat (AArch32) signal frame, we rely on the compat registers forming a pr

[PATCH 3.14 00/84] 3.14.54-stable review

2015-09-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.14.54 release. There are 84 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Oct 1 14:52:55 UTC 2015. Anything receiv

Re: [PATCH 14/17] fs/nilfs2: remove unnecessary new_valid_dev check

2015-09-29 Thread Ryusuke Konishi
On 2015/09/28 23:33, Yaowei Bai wrote: > As new_valid_dev always returns 1, so !new_valid_dev check is not > needed, remove it. > > Signed-off-by: Yaowei Bai Acked-by: Ryusuke Konishi > --- > fs/nilfs2/namei.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/fs/nilfs2/namei.c b/f

[PATCH net-next 4/6] net: switchdev: pass callback to dump operation

2015-09-29 Thread Vivien Didelot
Similar to the notifier_call callback of a notifier_block, change the function signature of switchdev dump operation to: int switchdev_port_obj_dump(struct net_device *dev, enum switchdev_obj_id id, void *obj, int (*cb)(void *obj)

Re: [PATCH v2 1/1] net sysfs: Print link speed as signed integer

2015-09-29 Thread Jeremy Harris
On 28/09/15 14:05, Alexander Stein wrote: Otherwise 4294967295 (MBit/s) (-1) will be printed when there is no link. Documentation/ABI/testing/sysfs-class-net does not state if this shall be signed or unsigned. Also remove the now unused variable fmt_udec. [...] - ret = spr

[PATCH net-next 2/6] net: switchdev: move dev in switchdev_fdb_dump

2015-09-29 Thread Vivien Didelot
The FDB dump callback requires the related net_device so move it to the struct switchdev_fdb_dump superset instead of using a callback param. With this done, it'll be simpler to change the dump function signature. Signed-off-by: Vivien Didelot --- net/switchdev/switchdev.c | 4 +++- 1 file chan

Re: [PATCH v3 4/5] regulators: tps65912: Add regulator driver for the TPS65912 PMIC

2015-09-29 Thread Mark Brown
On Fri, Sep 25, 2015 at 03:10:04PM -0500, Andrew F. Davis wrote: > On 09/25/2015 01:05 PM, Mark Brown wrote: > >On Thu, Sep 24, 2015 at 09:52:53AM -0500, Andrew F. Davis wrote: > >>+ match = of_match_device(tps65912_regulator_of_match_table, &pdev->dev); > >>+ if (!match) > >>+ retur

[PATCH net-next 3/6] net: switchdev: remove dev from switchdev_obj cb

2015-09-29 Thread Vivien Didelot
The net_device associated to a dump operation does not have to be passed to the callback. switchdev stores it in a superset struct, if needed. Also some drivers (such as DSA drivers) may not have easy access to it. This will simplify pushing the callback function down to the drivers. Signed-off-

Re: [PATCH v4 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-29 Thread Punit Agrawal
Punit Agrawal writes: > Punit Agrawal writes: > >> The System Control Processor (SCP) provides access to SoC sensors via >> the System Control and Power Interface (SCPI) Message Protocol. Add >> bindings to allow probing of these sensors. Also support referencing >> of the sensors for setting up

Re: [PATCH v3 7/7] clocksource: cosmetic: Drop OF 'dependency' from symbols

2015-09-29 Thread Hanjun Guo
On 09/28/2015 10:49 PM, Marc Zyngier wrote: Seeing the 'of' characters in a symbol that is being called from ACPI seems to freak out people. So let's do a bit of pointless renaming so that these folks do feel at home. Signed-off-by: Marc Zyngier --- arch/arm/kernel/time.c

[PATCH net-next 0/6] net: switchdev: use specific switchdev_obj_*

2015-09-29 Thread Vivien Didelot
This patchset changes switchdev add, del, dump operations from this: int (*switchdev_port_obj_add)(struct net_device *dev, struct switchdev_obj *obj, struct switchdev_trans *trans); int (*switchdev_port_obj

[PATCH net-next 1/6] net: switchdev: remove dev in port_vlan_dump_put

2015-09-29 Thread Vivien Didelot
The static switchdev_port_vlan_dump_put function don't need the net_device parameter, so remove it. Signed-off-by: Vivien Didelot --- net/switchdev/switchdev.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c in

Re: [RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:29 +0200 Peter Zijlstra wrote: > TASK_DEAD is special in that the final schedule call from do_exit() > must be done with preemption disabled. > > This leads to a violation of our new scheduling invariant which states > that the preempt count should be 2. Move the check

Re: [RFC][PATCH 01/11] sched: Simplify INIT_PREEMPT_COUNT

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 11:00:49AM -0400, Steven Rostedt wrote: > > [ Resend, with the Cc list back ] You seem to have a hard time with these buttons today ;-) > Hmm, I just looked closer and I'm wondering if this still works? > > We have: > > #ifdef CONFIG_PREEMPT_COUNT > #define PREEMPT_DISA

Re: [RFC][PATCH 03/11] sched: Robustify preemption leak checks

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 11:28:28 +0200 Peter Zijlstra wrote: > When we warn about a preempt_count leak; reset the preempt_count to > the known good value such that the problem does not ripple forward. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/exit.c |4 +++- > kernel/sched

Re: AMD-IOMMU and problem with __init(data)?

2015-09-29 Thread Joerg Roedel
As expected it is no bug in the AMD IOMMU driver, but in your code. On Wed, Sep 23, 2015 at 09:04:31PM +0200, Alexander Holler wrote: > struct _annotated_initcall { > initcall_t initcall; > unsigned driver_id; > unsigned *dependencies; > struct device_driver *driver; > };

[PATCH] perf tool: Fix shadowed declaration in parse-events.c

2015-09-29 Thread Jiri Olsa
On Tue, Sep 29, 2015 at 11:52:59AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > > >>> > > > >> > > > >>Do I need to send new ones based on your patch below now? > > > > > > > >that'd be great.. also please make sure you don't reintroduce it > > > > > > > > > > I saw Ingo just accepted ACME's

Re: [PATCH 1/2] iommu/vt-d: break the for loop if an empty ir_ioapic entry found

2015-09-29 Thread Baoquan He
On 09/29/15 at 03:50pm, Joerg Roedel wrote: > On Tue, Sep 29, 2015 at 03:26:08PM +0800, Baoquan He wrote: > > No need to continue the loop after it has been found. > > > > Signed-off-by: Baoquan He > > --- > > drivers/iommu/intel_irq_remapping.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 d

Re: [PATCH 09/17] fs/hpfs: remove unnecessary new_valid_dev check

2015-09-29 Thread Mikulas Patocka
Hi I suppose that you should remove the function new_valid_dev at all. Mikulas On Mon, 28 Sep 2015, Yaowei Bai wrote: > As new_valid_dev always returns 1, so !new_valid_dev check is not > needed, remove it. > > Signed-off-by: Yaowei Bai > --- > fs/hpfs/namei.c | 2 -- > 1 file changed, 2 de

Re: [PATCH v4 6/7] blk-mq: fix freeze queue race

2015-09-29 Thread Tejun Heo
Hello, On Tue, Sep 29, 2015 at 09:01:31AM -0600, Jens Axboe wrote: > I think that would be very useful, it seems sort of half-assed if the caller > side has to provide serialization for that. Yeah, the thing is init/exit are usually caller synchronized but percpu_rwsem's kill/reinit are more of m

Re: [PATCH v3 3/7] irqchip/gic: Convert the GIC driver to ACPI probing

2015-09-29 Thread Hanjun Guo
On 09/28/2015 10:49 PM, Marc Zyngier wrote: Now that we have a basic infrastructure to register irqchips and call them on discovery of a matching entry in MADT, convert the GIC driver to this new probing method. It ends up being a code deletion party, which is a rather good thing. Signed-off-by

Re: [PATCH v4 6/7] blk-mq: fix freeze queue race

2015-09-29 Thread Jens Axboe
On 09/28/2015 08:48 AM, Tejun Heo wrote: Hello, On Sun, Sep 27, 2015 at 10:06:05PM +0900, Akinobu Mita wrote: void blk_mq_finish_init(struct request_queue *q) { + mutex_lock(&q->mq_freeze_lock); percpu_ref_switch_to_percpu(&q->mq_usage_counter); + mutex_unlock(&q->mq_freeze_l

Re: Voltage setting on chained regulators, how?

2015-09-29 Thread Mark Brown
On Tue, Sep 29, 2015 at 10:00:44AM +0200, Sascha Hauer wrote: > On Fri, Sep 25, 2015 at 09:47:26AM -0700, Mark Brown wrote: > > I suspect you always want the LDO in there to clean the supply up, it's > > just a more serious issue when more power is being drawn. > I just had a look at the i.MX6 da

Re: [RFC][PATCH 01/11] sched: Simplify INIT_PREEMPT_COUNT

2015-09-29 Thread Steven Rostedt
[ Resend, with the Cc list back ] On Tue, 29 Sep 2015 16:35:59 +0200 Peter Zijlstra wrote: > On Tue, Sep 29, 2015 at 10:37:29AM -0400, Steven Rostedt wrote: > > On Tue, 29 Sep 2015 11:28:26 +0200 > > Peter Zijlstra wrote: > > > > > As per commit d86ee4809d03 ("sched: optimize cond_resched()")

Re: [PATCH] regmap: Add HCI support

2015-09-29 Thread Mark Brown
On Fri, Sep 25, 2015 at 09:34:03PM +0200, Marcel Holtmann wrote: Please fix your mail client to word wrap within paragraphs, it makes your mails much easier to read. I've reformatted your text for legibility. > > +/* > > + * Register map access API - HCI support > I do not think we can consider

Re: [Intel-gfx] [RFC 4/6] drm/i915: Add i915 perf event for Haswell OA unit

2015-09-29 Thread kbuild test robot
Hi Robert, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: i386-defconfig (attached as .config) reproduce: git checkout a1d59679ae8f3e7e7659e9723ae3fc69af2532e6 # save the attached .config to linux build tree make ARCH=i386 All warnings (new one

Re: [PATCH 04/17] fs/btrfs: remove unnecessary new_valid_dev check

2015-09-29 Thread David Sterba
On Mon, Sep 28, 2015 at 09:39:00PM +0800, Yaowei Bai wrote: > As new_valid_dev always returns 1, so !new_valid_dev check is not > needed, remove it. > > Signed-off-by: Yaowei Bai Acked-by: David Sterba -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [PATCH V2 1/3] EDAC, amd64_edac: Extend scrub rate programmability feature for F15hM60h

2015-09-29 Thread Aravind Gopalakrishnan
On 9/29/2015 6:45 AM, Borislav Petkov wrote: @@ -216,12 +223,17 @@ static int set_scrub_rate(struct mem_ctl_info *mci, u32 bw) if (pvt->fam == 0xf) min_scrubrate = 0x0; + else if (pvt->fam == 0x15 && pvt->model == 0x60) + min_scrubrate = 0x6; /* E

Re: [PATCH] sched/fair: Skip wake_affine() for core siblings

2015-09-29 Thread Mike Galbraith
On Mon, 2015-09-28 at 18:36 +0300, Kirill Tkhai wrote: > --- > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 4df37a4..dfbe06b 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -4930,8 +4930,13 @@ select_task_rq_fair(struct task_struct *p, int > prev_cpu, int sd_

Re: [PATCH v8 00/41] Richacls

2015-09-29 Thread Andreas Grünbacher
2015-09-28 19:46 GMT+02:00 J. Bruce Fields : > On Mon, Sep 28, 2015 at 07:10:06PM +0200, Andreas Grünbacher wrote: >> 2015-09-28 18:35 GMT+02:00 J. Bruce Fields : >> > On Mon, Sep 28, 2015 at 12:08:51AM +0200, Andreas Gruenbacher wrote: >> >> Open issues in nfs: >> >> >> >> * When a user or group n

Re: [tip:perf/core] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-29 Thread Arnaldo Carvalho de Melo
gt;>>gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16) > > >>>>>>Copyright (C) 2010 Free Software Foundation, Inc. > > >>>>>>This is free software; see the source for copying conditions. There > > >>>>>>is NO > > >>&g

Re: [RFC][PATCH 01/11] sched: Simplify INIT_PREEMPT_COUNT

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 10:43:32AM -0400, Steven Rostedt wrote: > > [ Resend with a "Reply-all" this time! ] > > On Tue, 29 Sep 2015 11:28:26 +0200 > Peter Zijlstra wrote: > > > As per commit d86ee4809d03 ("sched: optimize cond_resched()") we need > > PREEMPT_ACTIVE to avoid cond_resched() from

Re: [PATCH v9 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-09-29 Thread Sergei Shtylyov
On 09/29/2015 06:01 AM, Chunfeng Yun wrote: add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-xhci.txt| 52 ++ 1 file changed, 52 insertions(+) create mode

Re: [PATCH 0/3] blk-mq & nvme: introduce .map_changed

2015-09-29 Thread Jens Axboe
On 09/29/2015 08:26 AM, Keith Busch wrote: On Mon, 28 Sep 2015, Ming Lei wrote: This patchset introduces .map_changed callback into 'struct blk_mq_ops', and use this callback to get NVMe notified about the mapping changed event, then NVMe can update the irq affinity hint for its queues. I thin

[PATCH 1/8] kernel/trace: report_latency in trace_sched_wakeup.c can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes report_latency return bool to improve readability, indicating whether this new latency should be reported/recorded. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/trace_sched_wakeup.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH 7/8] kernel/trace: is_legal_op can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes is_legal_op return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/trace_events_filter.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH 0/8] cleanups for trace

2015-09-29 Thread Yaowei Bai
This patchset just make some functions return bool to improve readability and/or simplicity. No functional change. Yaowei Bai (8): kernel/trace: report_latency in trace_sched_wakeup.c can be boolean kernel/trace: report_latency in trace_irqsoff.c can be boolean kernel/trace: rb_is_reader_pa

[PATCH 2/8] kernel/trace: report_latency in trace_irqsoff.c can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes report_latency return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/trace_irqsoff.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trac

Re: First kernel patch (optimization)

2015-09-29 Thread Eric Curtin
On 29 September 2015 at 14:51, Austin S Hemmelgarn wrote: > On 2015-09-26 09:28, Eric Curtin wrote: >> >> Hi Dimitry, >> >>> Is it Debian-derivative by any chance? Their capslock setup is wonky >>> because CapsLock key does no actually set up as a CapsLock but another >>> modifier. Also is it in X

[PATCH 8/8] kernel/trace: ftrace_event_is_function can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes ftrace_event_is_function return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/trace.h| 2 +- kernel/trace/trace_export.c | 2 +- 2 files cha

[PATCH 6/8] kernel/trace: rb_event_is_commit can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes rb_event_is_commit return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/ring_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[PATCH 5/8] kernel/ring_buffer: rb_per_cpu_empty can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes rb_per_cpu_empty return bool to improve readability. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/ring_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index fc9ce12..a22

[PATCH 3/8] kernel/trace: rb_is_reader_page can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes rb_is_reader_page return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/trace/ring_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[RESEND PATCH v2 1/1] ASoC: dwc: fix dma stop transferring issue

2015-09-29 Thread yitian
Designware I2S uses tx empty and rx available signals as the DMA handshaking signals. during music playing, if XRUN occurs, i2s_stop() function will be executed and both tx and rx irq are masked, when music continues to be played, i2s_start() is executed but both tx and rx irq are not unmasked whic

[PATCH 4/8] kernel/ring_buffer: ring_buffer_empty{cpu} can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes ring_buffer_empty and ring_buffer_empty_cpu return bool to improve readability. No functional change. Signed-off-by: Yaowei Bai --- include/linux/ring_buffer.h | 4 ++-- kernel/trace/ring_buffer.c | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a

Re: [RFC][PATCH 01/11] sched: Simplify INIT_PREEMPT_COUNT

2015-09-29 Thread Steven Rostedt
[ Resend with a "Reply-all" this time! ] On Tue, 29 Sep 2015 11:28:26 +0200 Peter Zijlstra wrote: > As per commit d86ee4809d03 ("sched: optimize cond_resched()") we need > PREEMPT_ACTIVE to avoid cond_resched() from working before the > scheduler is setup. > > However, keeping preemption disab

Re: [PATCH v9 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-09-29 Thread Sergei Shtylyov
Hello. On 09/29/2015 06:01 AM, Chunfeng Yun wrote: add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Acked-by: Rob Herring Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 68 ++ 1 file changed, 68 insertion

Re: [PATCH v3 2/7] irqchip/acpi: Add probing infrastructure for ACPI-based irqchips

2015-09-29 Thread Hanjun Guo
On 09/28/2015 10:49 PM, Marc Zyngier wrote: DT enjoys a rather nice probing infrastructure for irqchips, while ACPI is so far stuck into a very distant past. This patch introduces a declarative API, allowing irqchips to be self-contained and be called when a particular entry is matched in the MA

[PATCH v3 1/1] Introducing domain transition mechanism into Smack.

2015-09-29 Thread Zbigniew Jasinski
This feature consists of two, new kernel interfaces: - /relabel-possible - for setting transition privilege This flag can be set only by process to itself and only with CAP_MAC_ADMIN capability. With this flag on, process can change it's label without CAP_MAC_ADMIN but only once. After label chan

[RFC 6/6] drm/i915: add oa_event_min_timer_exponent sysctl

2015-09-29 Thread Robert Bragg
The minimal sampling period is now configurable via a dev.i915.oa_event_min_timer_exponent sysctl parameter. Following the precedent set by perf, the default is the minimum that won't (on its own) exceed the default kernel.perf_event_max_sample_rate default of 10 samples/s. Signed-off-by: Rob

[PATCH linux-next v3 1/1] ASoC: ad193x: add support to ad1934

2015-09-29 Thread Cyrille Pitchen
The AD1934 codec has no DAC feature. Hence it register mapping is slightly different from the register mapping of other members of the AD193x family. Some ASoC controls and widgets are related to the DAC feature so are not relevant in the case of an AD1934 codec. Signed-off-by: Cyrille Pitchen -

Re: [PATCH v3 1/7] acpi: Add early device probing infrastructure

2015-09-29 Thread Hanjun Guo
On 09/28/2015 10:49 PM, Marc Zyngier wrote: IRQ controllers and timers are the two types of device the kernel requires before being able to use the device driver model. ACPI so far lacks a proper probing infrastructure similar to the one we have with DT, where we're able to declare IRQ chips and

[PATCH v2 0/1] Introducing domain transition mechanism into Smack

2015-09-29 Thread Zbigniew Jasinski
This patch introduce domain transition mechanism into Smack. The idea was to give a process limited ability to change its Smack label without giving that process CAP_MAC_ADMIN capabilities. Moreover, this ability is granted without any additional Smack policy rules. This feature consists of two,

[RFC 5/6] drm/i915: Add dev.i915.perf_event_paranoid sysctl option

2015-09-29 Thread Robert Bragg
Consistent with the kernel.perf_event_paranoid sysctl option that can allow non-root users to access system wide cpu metrics, this can optionally allow non-root users to access system wide OA counter metrics from Gen graphics hardware. Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/i915_pe

Re: [RFC][PATCH 02/11] sched: Create preempt_count invariant

2015-09-29 Thread Steven Rostedt
On Tue, 29 Sep 2015 15:02:01 +0200 Peter Zijlstra wrote: > On Tue, Sep 29, 2015 at 02:55:13PM +0200, Frederic Weisbecker wrote: > > On Tue, Sep 29, 2015 at 11:28:27AM +0200, Peter Zijlstra wrote: > > > #define init_task_preempt_count(p) do { \ > > > - task_thread_info(p)->preempt_count = PREEMPT

[RESEND PATCH 1/1] ASoC: dwc: correct irq clear method

2015-09-29 Thread yitian
from Designware I2S datasheet, irq is cleared by reading from TOR/ROR registers, rather than by writing into them. Signed-off-by: Yitian Bu --- sound/soc/dwc/designware_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/dwc/de

[RFC 4/6] drm/i915: Add i915 perf event for Haswell OA unit

2015-09-29 Thread Robert Bragg
Gen graphics hardware can be set up to periodically write snapshots of performance counters into a circular buffer via its Observation Architecture and this patch exposes that capability to userspace via the i915 perf interface. Cc: Chris Wilson Signed-off-by: Robert Bragg Signed-off-by: Zhenyu

[RFC 2/6] drm/i915: rename OACONTROL GEN7_OACONTROL

2015-09-29 Thread Robert Bragg
OACONTROL changes quite a bit for gen8, with some bits split out into a per-context OACTXCONTROL register Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/i915_cmd_parser.c | 4 ++-- drivers/gpu/drm/i915/i915_reg.h| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a

[RFC 3/6] drm/i915: Add static '3D' Haswell OA unit config

2015-09-29 Thread Robert Bragg
Adds a static OA unit, MUX + B Counter configuration for basic '3D' metrics on Haswell. This is autogenerated from an internal XML description of metric sets. Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/i915_drv.h| 5 ++ drivers/gpu/drm/i

Re: [PATCH v5 1/2] PM / sleep: Go direct_complete if driver has no callbacks

2015-09-29 Thread Alan Stern
On Tue, 29 Sep 2015, Tomeu Vizoso wrote: > If a suitable prepare callback cannot be found for a given device and > its driver has no PM callbacks at all, assume that it can go direct to > complete when the system goes to sleep. > > The reason for this is that there's lots of devices in a system t

[RFC 1/6] drm/i915: Add i915 perf infrastructure

2015-09-29 Thread Robert Bragg
This adds a DRM_IOCTL_I915_PERF_OPEN ioctl comparable to perf_event_open that opens a file descriptor for an event source. Based on our initial experience aiming to use the core perf infrastructure, this interface is inspired by perf, but focused on exposing metrics about work running on Gen graph

[RFC 0/6] Non perf based Gen Graphics OA unit driver

2015-09-29 Thread Robert Bragg
After some recent progress enabling the Observation Architecture unit for Gen8+, we can hopefully paint a fairly complete picture of the requirements for supporting the unit from Haswell to Skylake and so I'm looking again at the challenges in upstreaming this work. Considering this, it looked lik

Re: [PATCH RESEND] ARM: dts: Fix Makefile target for sun4i-a10-itead-iteaduino-plus

2015-09-29 Thread Josh Boyer
On Sun, Sep 6, 2015 at 7:20 AM, Maxime Ripard wrote: > On Fri, Sep 04, 2015 at 08:49:34AM -0400, Josh Boyer wrote: >> Commit 79ae3e66f8d (ARM: dts: sun4i: Add Iteaduino Plus A10) added a new >> make target for the sun4i-a10-itead-iteaduino-plus dts file, but mistakenly >> used .dts instead of the

Re: [PATCH 2/2] arm64/efi: Don't pad between EFI_MEMORY_RUNTIME regions

2015-09-29 Thread Matt Fleming
On Sun, 27 Sep, at 12:40:14PM, Borislav Petkov wrote: > On Sun, Sep 27, 2015 at 09:06:44AM +0200, Ingo Molnar wrote: > > Could we please re-list all the arguments pro and contra of 1:1 physical > > mappings, > > in a post that also explains the background so that more people can chime > > in, no

Re: [RFC PATCH 0/3] iommu: Add range flush operation

2015-09-29 Thread Russell King - ARM Linux
On Tue, Sep 29, 2015 at 03:20:38PM +0100, Robin Murphy wrote: > A single callback doesn't really generalise well enough: If we wanted to > implement this in the ARM SMMU drivers to optimise the unmap() case [ask > Will how long he spends waiting for a software model to tear down an entire > VFIO do

Re: [PATCH] Patch to integrate RapidDisk and RapidCache RAM Drive / Caching modules into the kernel

2015-09-29 Thread Austin S Hemmelgarn
On 2015-09-28 12:45, Petros Koutoupis wrote: Christoph, See my replies below On 9/28/15 11:29 AM, Christoph Hellwig wrote: Hi Petros, On Mon, Sep 28, 2015 at 09:12:13AM -0500, Petros Koutoupis wrote: 1. Unlike the already mainline ramdisk driver, RapidDisk is designed to be managed dyna

Re: [RFC][PATCH 03/11] sched: Robustify preemption leak checks

2015-09-29 Thread Frederic Weisbecker
On Tue, Sep 29, 2015 at 04:24:00PM +0200, Peter Zijlstra wrote: > On Tue, Sep 29, 2015 at 03:25:53PM +0200, Frederic Weisbecker wrote: > > On Tue, Sep 29, 2015 at 11:28:28AM +0200, Peter Zijlstra wrote: > > > > + if (unlikely(in_atomic_preempt_off() && prev->state != TASK_DEAD)) { > > >

Re: [PATCH v2 0/7] hwrng: Add support for STMicroelectronics' RNG IP

2015-09-29 Thread Lee Jones
On Fri, 18 Sep 2015, Lee Jones wrote: > On Fri, 18 Sep 2015, Herbert Xu wrote: > > On Fri, Sep 18, 2015 at 03:53:50PM +0100, Lee Jones wrote: > > > On 18 September 2015 at 15:07, Herbert Xu > > > wrote: > > > > On Thu, Sep 17, 2015 at 02:45:50PM +0100, Lee Jones wrote: > > > >> v1 => v2: > > > >>

Re: [RFC][PATCH 03/11] sched: Robustify preemption leak checks

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 03:25:53PM +0200, Frederic Weisbecker wrote: > On Tue, Sep 29, 2015 at 11:28:28AM +0200, Peter Zijlstra wrote: > > + if (unlikely(in_atomic_preempt_off() && prev->state != TASK_DEAD)) { > > __schedule_bug(prev); > > + preempt_count_set(PREEMPT_DISABL

Re: [RFC PATCH 0/3] iommu: Add range flush operation

2015-09-29 Thread Robin Murphy
Hi Tomasz, On 29/09/15 06:25, Tomasz Figa wrote: Currently the IOMMU subsystem provides 3 basic operations: iommu_map(), iommu_map_sg() and iommu_unmap(). iommu_map() can be used to map memory page by page, however it involves flushing the caches (CPU and IOMMU) for every mapped page separately,

Re: [PATCH cgroup/for-4.3-fixes] cgroup, writeback: don't enable cgroup writeback on traditional hierarchies

2015-09-29 Thread Tejun Heo
Hello, Artem. On Tue, Sep 29, 2015 at 02:37:36PM +0300, Artem Bityutskiy wrote: > On Sat, 2015-09-26 at 18:14 -0400, Tejun Heo wrote: > > Hello, Artem. > > > > Thanks a lot for the debug dump. Can you please test whether the > > below patch fixes the issue? > > Hi, > > I've tested this, 7 out

Re: [PATCH 0/3] blk-mq & nvme: introduce .map_changed

2015-09-29 Thread Keith Busch
On Mon, 28 Sep 2015, Ming Lei wrote: This patchset introduces .map_changed callback into 'struct blk_mq_ops', and use this callback to get NVMe notified about the mapping changed event, then NVMe can update the irq affinity hint for its queues. I think this is going the wrong direction. Shouldn

[PATCH] mm: swap: Use swap_lock to prevent parallel swapon activations instead of i_mutex

2015-09-29 Thread Mel Gorman
Jerome Marchand reported a lockdep warning as follows [ 6819.501009] = [ 6819.501009] [ INFO: inconsistent lock state ] [ 6819.501009] 4.2.0-rc1-shmacct-babka-v2-next-20150709+ #255 Not tainted [ 6819.501009] - [ 6

[PATCH -mm 1/3] mm/oom_kill: remove the wrong fatal_signal_pending()

2015-09-29 Thread Oleg Nesterov
The fatal_signal_pending() was added to suppress unnecessary "sharing same memory" message, but it can't 100% help anyway because it can be false-negative; SIGKILL can be already dequeued. And worse, it can be false-positive due to exec or coredump. exec is mostly fine, but coredump is not. It is

[PATCH -mm 2/3] mm/oom_kill: cleanup the "kill sharing same memory"

2015-09-29 Thread Oleg Nesterov
Purely cosmetic, but the complex "if" condition looks annoying to me. Especially because it is not consistent with OOM_SCORE_ADJ_MIN check which adds another if/continue. Signed-off-by: Oleg Nesterov --- mm/oom_kill.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-)

[PATCH -mm 3/3] mm/oom_kill: fix the wrong task->mm == mm checks in

2015-09-29 Thread Oleg Nesterov
Both "child->mm == mm" and "p->mm != mm" checks in oom_kill_process() are wrong. ->mm can be if task is the exited group leader. This means in particular that "kill sharing same memory" loop can miss a process with a zombie leader which uses the same ->mm. Note: the process_has_mm(child, p->mm) ch

[PATCH -mm 0/3] mm/oom_kill: ensure we actually kill all tasks sharing the same mm

2015-09-29 Thread Oleg Nesterov
Michal, Tetsuo, David, sorry for delay. I'll try to read and answer your emails in "can't oom-kill zap the victim's memory" thread later. Let me send some initial changes which imo makes sense regardless, but if we want to zap the victim's memory we need to ensure that all tasks which share this -

[PATCH 2/3] kernel/audit: audit_string_contains_control can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes audit_string_contains_control return bool to improve readability due to this particular function only using either one or zero as its return value. Signed-off-by: Yaowei Bai --- include/linux/audit.h | 2 +- kernel/audit.c| 6 +++--- 2 files changed, 4 insertions(+), 4 d

Re: [PATCH 3.10 08/56] Input: synaptics - fix handling of disabling gesture mode

2015-09-29 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2015 at 06:57:22AM -0700, Dmitry Torokhov wrote: > On September 29, 2015 6:46:56 AM PDT, Greg Kroah-Hartman > wrote: > >3.10-stable review patch. If anyone has any objections, please let me > >know. > > Please drop. Ok, also dropped from 3.14, 4.1, and 4.2-stable trees. thanks

[PATCH 3/3] kernel/audit: audit_tree_match can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes audit_tree_match return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- kernel/audit.h | 2 +- kernel/audit_tree.c | 6 +++--- 2 files changed, 4 insertions(+

[PATCH 1/3] kernel/audit: audit_dummy_context can be boolean

2015-09-29 Thread Yaowei Bai
This patch makes audit_dummy_context return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/audit.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/a

Re: [PATCH 1/2] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-29 Thread Matt Fleming
On Tue, 29 Sep, at 12:41:23PM, Ard Biesheuvel wrote: > > OK, fair enough. I agree that setting the flag for 32-bit would be > semantically correct. I will leave it to Matt to comment whether it is > reasonable in terms of changes to other parts of the code. It should be pretty minimal. Let me tak

Re: [PATCH 21/25] mm: implement new mprotect_key() system call

2015-09-29 Thread Dave Hansen
On 09/28/2015 11:39 PM, Michael Ellerman wrote: > On Mon, 2015-09-28 at 12:18 -0700, Dave Hansen wrote: >> From: Dave Hansen >> >> mprotect_key() is just like mprotect, except it also takes a >> protection key as an argument. On systems that do not support >> protection keys, it still works, but

Re: [PATCH v2 1/9] dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation

2015-09-29 Thread Arnd Bergmann
On Tuesday 29 September 2015 14:42:15 Peter Griffin wrote: > On Tue, 29 Sep 2015, Arnd Bergmann wrote: > > On Tuesday 29 September 2015 13:11:55 Peter Griffin wrote: > > > Does it? I didn't think it did. > > > > > > Using the instance number as a DT property defers the decision over what > > > fi

Re: [RFC][PATCH 02/11] sched: Create preempt_count invariant

2015-09-29 Thread Peter Zijlstra
On Tue, Sep 29, 2015 at 03:11:56PM +0200, Thomas Gleixner wrote: > On Tue, 29 Sep 2015, Peter Zijlstra wrote: > > + /* > > +* Still have preempt_count() == 2, from: > > +* > > +* schedule() > > +*preempt_disable();// 1 > > +*__schedule(

<    2   3   4   5   6   7   8   9   10   11   >