[PATCH 1/4] pci: Allow lockless access path to PCI mmconfig

2017-03-02 Thread Andi Kleen
From: Andi Kleen The Intel uncore driver can do a lot of PCI config accesses to read performance counters. I had a situation on a 4S system where it was spending 40+% of CPU time grabbing the pci_cfg_lock due to that. For 64bit x86 with MMCONFIG there isn't really any reason to take a lock. The

[GIT PULL] sched.h split-up

2017-03-02 Thread Ingo Molnar
Linus, Please pull the sched.h splitup git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched-core-for-linus # HEAD: 5eca1c10cbaa9c366c18ca79f81f21c731e3dcc7 sched/headers: Clean up The point of these changes is to significantly reduce the header footprin

[PATCH 2/4] thp: fix MADV_DONTNEED vs. numa balancing race

2017-03-02 Thread Kirill A. Shutemov
In case prot_numa, we are under down_read(mmap_sem). It's critical to not clear pmd intermittently to avoid race with MADV_DONTNEED which is also under down_read(mmap_sem): CPU0: CPU1: change_huge_pmd(prot_numa=1)

Re: [RFC v0 1/2] interconnect: Add generic interconnect controller API

2017-03-02 Thread Saravana Kannan
On 03/01/2017 10:22 AM, Georgi Djakov wrote: This patch introduce a new API to get the requirement and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect controllers

[PATCH 4/4] perf/x86/intel/uncore: Enable forced mmconfig for Intel uncore

2017-03-02 Thread Andi Kleen
From: Andi Kleen On Intel systems some uncore counters are located in PCI config space. On 4S systems with many uncore events being sampled at a high frequency we can see significant overhead from the type 1 accesses: both from the IO port accesses and also from lock contention on the locks prote

[PATCH 2/2] drm/panel: add innolux,p079zca panel driver

2017-03-02 Thread Chris Zhong
Support Innolux P079ZCA 7.85" 768x1024 TFT LCD panel, it is a MIPI DSI panel. Signed-off-by: Chris Zhong --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile| 1 + drivers/gpu/drm/panel/panel-innolux-p079zca.c | 322

[PATCH v3 0/2] Add i2c dt-binding and device node for Mediatek MT2701 Soc

2017-03-02 Thread Jun Gao
This patch series based on v4.10-rc2, include MT2701 i2c dt-binding and device node. changes since v2: - Modify commit message - Revise dt-binding documentation changes since v1: - Modify commit message Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists

[PATCH] capabilities: do not audit log BPRM_FCAPS on set*id

2017-03-02 Thread Richard Guy Briggs
The audit subsystem is adding a BPRM_FCAPS record when auditing setuid application execution (SYSCALL execve). This is not expected as it was supposed to be limited to when the file system actually had capabilities in an extended attribute. It lists all capabilities making the event really ugly to

[PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-02 Thread Jun Gao
From: Jun Gao Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/i2

[PATCH v3 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-03-02 Thread Jun Gao
From: Jun Gao Add MT2701 i2c device node. Signed-off-by: Jun Gao --- arch/arm/boot/dts/mt2701-evb.dts | 44 ++ arch/arm/boot/dts/mt2701.dtsi| 42 2 files changed, 86 insertions(+) diff --git a/arch/arm/boot/dts/m

Re: pull-request: wireless-drivers 2017-03-02

2017-03-02 Thread David Miller
From: Kalle Valo Date: Thu, 02 Mar 2017 11:15:42 +0200 > only one patch this time, the new version of ath10k patch we reverted > earlier. I was supposed to send you this earlier but it got delayed > because I'm on vacation, so sorry about that. I'm hoping this is ok to > take also even the merge

Re: [PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-02 Thread Steven Rostedt
On Thu, 2 Mar 2017 16:12:15 -0800 Todd Brandt wrote: > Early trace callgraphs can be extremely large on systems with > several seconds of boot time. The max_depth parameter limits how > deep the graph trace goes and reduces the output size. This > parameter is the same as the max_graph_depth fil

[PATCH] refcount: add refcount_t API kernel-doc comments

2017-03-02 Thread David Windsor
This adds kernel-doc comments for the new refcount_t API. v2: incorporate fixes from Peter Zijlstra and Ingo Molnar Signed-off-by: David Windsor --- lib/refcount.c | 122 +++-- 1 file changed, 110 insertions(+), 12 deletions(-) diff --git a/l

Re: [PATCH 3/3] nvmem: core: Allow allocating several anonymous nvmem devices

2017-03-02 Thread Moritz Fischer
On Thu, Mar 2, 2017 at 12:03 PM, Boris Brezillon wrote: > On Thu, 2 Mar 2017 20:50:23 +0100 > Alban wrote: > >> Currently the nvmem core expect the config to provide a name and ID >> that are then used to create the device name. When no device name is >> given 'nvmem' is used. However if there i

Re: [PATCH v4 23/23] drm/rockchip: dw-mipi-dsi: add reset control

2017-03-02 Thread Brian Norris
+ devicetree Hi, On Fri, Feb 24, 2017 at 12:55:06PM +, John Keeping wrote: > In order to fully reset the state of the MIPI controller we must assert > this reset. > > This is slightly more complicated than it could be in order to maintain > compatibility with device trees that do not specify

Re: [PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-02 Thread Todd Brandt
On Thu, 2017-03-02 at 20:09 -0500, Steven Rostedt wrote: > On Thu, 02 Mar 2017 16:54:57 -0800 > Todd Brandt wrote: > > > > BTW I had one other question for you, is it possible to move the ftrace > > module's initialization further up the queue? ATM it initializes at > > about 600ms into boot, wh

[PATCH 1/2] uapi: introduce __kernel_uapi_size_t

2017-03-02 Thread Dmitry V. Levin
__kernel_uapi_size_t is a pure UAPI type, in defined(__KERNEL__) code it's always the same as __kernel_size_t. It's also the same as __kernel_size_t on all architectures except x32 where sizeof(size_t) < sizeof(__kernel_size_t). __kernel_uapi_size_t can be used as a size_t replacement in UAPI hea

[PATCH 2/4] pci: Add generic pci_bus_force_mmconfig interface

2017-03-02 Thread Andi Kleen
From: Andi Kleen x86 traditionally used mmconfig only for extended config space accesses with offsets larger than 256. For lower offsets it uses the classic Type 1 IO port access. This is quite slow and also requires taking a global spin lock to protect the Type 1 IO port mailbox. IIRC (I added

[PATCH v3 2/2] x86/uapi: fix asm/signal.h userspace compilation error

2017-03-02 Thread Dmitry V. Levin
Replace size_t with __kernel_uapi_size_t to fix the following asm/signal.h userspace compilation error: /usr/include/asm/signal.h:126:2: error: unknown type name 'size_t' size_t ss_size; Signed-off-by: Dmitry V. Levin Link: http://lkml.kernel.org/r/20170302001853.ga27...@altlinux.org --- arch

Re: [PATCH 1/9] mm: fix 100% CPU kswapd busyloop on unreclaimable nodes

2017-03-02 Thread Minchan Kim
Hi Johannes, On Tue, Feb 28, 2017 at 04:39:59PM -0500, Johannes Weiner wrote: > Jia He reports a problem with kswapd spinning at 100% CPU when > requesting more hugepages than memory available in the system: > > $ echo 4000 >/proc/sys/vm/nr_hugepages > > top - 13:42:59 up 3:37, 1 user, load a

[PATCH 1/2] dt-bindings: Add INNOLUX P079ZCA panel bindings

2017-03-02 Thread Chris Zhong
The Innolux P079ZCA is a 7.85" panel with a 768X1024 resolution and connected to DSI using four lanes. Signed-off-by: Chris Zhong --- .../bindings/display/panel/innolux,p079zca.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bi

Re: PPro arch_cpu_idle: NMI watchdog: Watchdog detected hard LOCKUP on cpu 1

2017-03-02 Thread Meelis Roos
> > > > > This is on my trusty IBM PC365, dual Pentium Pro. 4.10 worked fine, > > > > > 4.10.0-09686-g9e314890292c and 4.10.0-10770-g2d6be4abf514 exhibit a > > > > > problem. Ocassionally NMI watchdog kicks in and discovers one of the > > > > > CPUs in LOCKUP. The system keeps running fine. The

[GIT PULL] Power management turbostat utility updates for v4.11-rc1

2017-03-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-turbostat-4.11-rc1 with top-most commit 6bff9c609f3df4e325da08783f691cab9316d643 Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux on top of commit 02

Re: [PATCH v5 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-03-02 Thread Andy Lutomirski
On Thu, Mar 2, 2017 at 4:48 PM, Mickaël Salaün wrote: > > On 02/03/2017 17:36, Andy Lutomirski wrote: >> On Wed, Mar 1, 2017 at 3:28 PM, Mickaël Salaün wrote: >>> >>> >>> On 01/03/2017 23:20, Andy Lutomirski wrote: On Wed, Mar 1, 2017 at 2:14 PM, Mickaël Salaün wrote: > > On 28/02/2

Re: [PATCH 1/9] mm: fix 100% CPU kswapd busyloop on unreclaimable nodes

2017-03-02 Thread Shakeel Butt
On Tue, Feb 28, 2017 at 1:39 PM, Johannes Weiner wrote: > Jia He reports a problem with kswapd spinning at 100% CPU when > requesting more hugepages than memory available in the system: > > $ echo 4000 >/proc/sys/vm/nr_hugepages > > top - 13:42:59 up 3:37, 1 user, load average: 1.09, 1.03, 1.01

Re: [RESEND PATCH v6 3/6] i2c: designware: MASTER mode as separated driver

2017-03-02 Thread kbuild test robot
Hi Luis, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on next-20170302] [cannot apply to v4.10] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Luis-Oliveira/i2c-designware

Re: [PATCH] virtio-console: avoid DMA from stack

2017-03-02 Thread Jan Dakinevich
I also faced with the same issue. Could you clarify it for me whether it is safe to allocate memory inside console driver handler? For example, what would happen if put_chars was triggered by fail in another memory allocation? On 02/01/2017 11:02 AM, Omar Sandoval wrote: > From: Omar Sandoval >

Re: [PATCH v2] i2c: designwear: Fix clk warning on suspend/resume

2017-03-02 Thread John Stultz
On Tue, Feb 14, 2017 at 7:30 AM, Jarkko Nikula wrote: > On 14.02.2017 06:05, John Stultz wrote: >> >> On my HiKey board, I'm seeing clk warnings on suspend/resume, >> which seem to be caused by runtime pm suspending the device, >> then the same suspend hook being called again on suspend time. >> >

[PATCH v2 2/3] ARM: dts: bcm5301x: Add TWD WD Support to DT

2017-03-02 Thread Jon Mason
From: Jon Mason Add support for the ARM TWD Watchdog to the bcm5301x device tree. The ARM TWD timer allocated the register space for the WDT, so this patch necessitated shrinking that. Also, the GIC masks were added for these. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm5301x.dtsi | 15

[PATCH 2/7] staging: media: Add blank line after a declaration

2017-03-02 Thread simran singhal
Add blank line after a declaration. Problem found using checkpatch. This patch fixes these warning messages found by checkpatch.pl: WARNING : Missing a blank line after declarations. Signed-off-by: simran singhal --- drivers/staging/media/atomisp/i2c/gc2235.c | 7 +++ 1 file changed, 7 inse

Re: [PATCH v5 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-03-02 Thread Mickaël Salaün
On 03/03/2017 01:55, Andy Lutomirski wrote: > On Thu, Mar 2, 2017 at 4:48 PM, Mickaël Salaün wrote: >> >> On 02/03/2017 17:36, Andy Lutomirski wrote: >>> On Wed, Mar 1, 2017 at 3:28 PM, Mickaël Salaün wrote: On 01/03/2017 23:20, Andy Lutomirski wrote: > On Wed, Mar 1, 2017 at

Re: [kernel-hardening] [PATCH v5 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-03-02 Thread Mickaël Salaün
On 02/03/2017 11:22, Djalal Harouni wrote: > On Wed, Feb 22, 2017 at 2:26 AM, Mickaël Salaün wrote: >> The seccomp(2) syscall can be use to apply a Landlock rule to the >> current process. As with a seccomp filter, the Landlock rule is enforced >> for all its future children. An inherited rule t

[PATCH] qla2xxx: Fix ql_dump_buffer

2017-03-02 Thread Joe Perches
Recent printk changes for KERN_CONT cause this logging to be defectively emitted on multiple lines. Fix it. Also reduces object size a trivial amount. $ size drivers/scsi/qla2xxx/qla_dbg.o* textdata bss dec hex filename 39125 0 0 3912598d5 drivers/scsi/qla2

Re: ftrace_graph_filter not working correctly since v4.10

2017-03-02 Thread Namhyung Kim
On Thu, Mar 02, 2017 at 01:05:51PM -0500, Steven Rostedt wrote: > > Namhyung, > > Just an FYI... Thanks, Steve. I'll do more testing next time.. Namhyung > > > On Thu, 2 Mar 2017 12:49:40 -0500 > Steven Rostedt wrote: > > > On Wed, 1 Mar 2017 22:47:30 -0500 > > Steven Rostedt wrote: >

Re: [PATCH 0/2] fix the traced mt-exec deadlock

2017-03-02 Thread Eric W. Biederman
Oleg Nesterov writes: > Eric, > > our discussion was a bit confusing, and it seems that we did not > fully convince each other. So let me ask what do you finally think > about this fix. > > Let me repeat. Even if I do not agree with some of your objections, > I do agree that 1/2 does not look nic

[GIT PULL] Additional ACPI update for v4.11-rc1

2017-03-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-extra-4.11-rc1 with top-most commit 0cb3b79efabd4174ddeee40c2c1e5499ba67e067 Merge branch 'acpi-apei' on top of commit 43e31e40473a00c936ffb9c2eebedc0566c92e89 Merge tag 'acpi-4.11-

[PATCH v2] sched/rt: Document why has_pushable_tasks() isn't called with a runqueue lock

2017-03-02 Thread Steven Rostedt
From: Steven Rostedt (VMware) While reviewing the RT scheduling IPI logic, I was thinking that it was a bug that has_pushable_tasks(rq) was not called under the runqueue lock. But then I realized that there isn't a case where a race would cause a problem, as to update has_pushable_tasks() would

Re: [PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-02 Thread Todd Brandt
On Thu, 2017-03-02 at 19:39 -0500, Steven Rostedt wrote: > On Thu, 2 Mar 2017 19:38:27 -0500 > Steven Rostedt wrote: > > > On Thu, 2 Mar 2017 16:12:15 -0800 > > Todd Brandt wrote: > > > > > Early trace callgraphs can be extremely large on systems with > > > several seconds of boot time. The ma

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-02 Thread Steve Longerbeam
On 03/02/2017 03:48 PM, Steve Longerbeam wrote: On 03/02/2017 08:02 AM, Sakari Ailus wrote: Hi Steve, On Wed, Feb 15, 2017 at 06:19:16PM -0800, Steve Longerbeam wrote: v4l2_pipeline_inherit_controls() will add the v4l2 controls from all subdev entities in a pipeline to a given video device

[RFC PATCH kernel] gcc-goto.sh: Allow to pass with CONFIG_DEBUG_INFO_SPLIT=y

2017-03-02 Thread Alexey Kardashevskiy
With just CONFIG_DEBUG_INFO=y, the makefile adds "-g" to KBUILD_CFLAGS/KBUILD_AFLAGS and the test passes. However, if CONFIG_DEBUG_INFO_SPLIT is also enabled, the makefile adds "-gsplit-dwarf" instead which makes the test fail with $?==1 because of objcopy trying to split the debug info: objcopy:

Re: [PATCH 1/3] cpufreq: schedutil: move cached_raw_freq to struct sugov_policy

2017-03-02 Thread Rafael J. Wysocki
On Thursday, March 02, 2017 02:03:20 PM Viresh Kumar wrote: > cached_raw_freq applies to the entire cpufreq policy and not individual > CPUs. Apart from wasting per-cpu memory, it is actually wrong to keep it > in struct sugov_cpu as we may end up comparing next_freq with a stale > cached_raw_freq

Re: [PATCH v5 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-03-02 Thread Mickaël Salaün
On 02/03/2017 17:36, Andy Lutomirski wrote: > On Wed, Mar 1, 2017 at 3:28 PM, Mickaël Salaün wrote: >> >> >> On 01/03/2017 23:20, Andy Lutomirski wrote: >>> On Wed, Mar 1, 2017 at 2:14 PM, Mickaël Salaün wrote: On 28/02/2017 21:01, Andy Lutomirski wrote: > On Tue, Feb 21, 2017 at 5

Re: [PATCH] netvsc: fix use-after-free in netvsc_change_mtu()

2017-03-02 Thread David Miller
From: Dexuan Cui Date: Thu, 2 Mar 2017 13:00:53 + > 'nvdev' is freed in rndis_filter_device_remove -> netvsc_device_remove -> > free_netvsc_device, so we mustn't access it, before it's re-created in > rndis_filter_device_add -> netvsc_device_add. > > Signed-off-by: Dexuan Cui Applied.

[PATCH] usb: dwc2: Make sure we disconnect the gadget state

2017-03-02 Thread John Stultz
I had seen some odd behavior with HiKey's usb-gadget interface that I finally seemed to have chased down. Basically every other time I pluged in the OTG port, the gadget interface would properly initialize. The other times, I'd get a big WARN_ON in dwc2_hsotg_init_fifo() about the fifo_map not bein

Re: [PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-02 Thread Steven Rostedt
On Thu, 2 Mar 2017 19:38:27 -0500 Steven Rostedt wrote: > On Thu, 2 Mar 2017 16:12:15 -0800 > Todd Brandt wrote: > > > Early trace callgraphs can be extremely large on systems with > > several seconds of boot time. The max_depth parameter limits how > > deep the graph trace goes and reduces th

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-02 Thread Byungchul Park
On Thu, Mar 02, 2017 at 02:40:31PM +0100, Peter Zijlstra wrote: > [*] A while ago someone, and I cannot find the email just now, asked if > we could not implement the RECLAIM_FS inversion stuff with a 'fake' lock It looks interesting to me. > like we use for other things like workqueues etc. I th

Re: [PATCH v3 2/7] arm: dts: Add the burst and esc clock frequency properties for exynos3250 dts

2017-03-02 Thread Andi Shyti
Hi Hoegeun, On Thu, Mar 02, 2017 at 07:20:14PM +0900, Hoegeun Kwon wrote: > The OF graph is not needed because the panel is a child of dsi. So > added the burst and esc clock frequency properties to the parent (DSI > node), taking into account the bisectability problem so that remove > the OF grap

Conversion of w83627ehf to hwmon_device_register_with_info ?

2017-03-02 Thread Peter Hüwe
Hi, is anybody else working on the conversion of the w83627ehf to the new hwmon_device_register_with_info interface? Otherwise I will probably update the driver to this interface within the next days - but since it's a lot of work I wanted to check for duplication first. Do you think it makes

Re: [PATCH v3 0/7] Fix the parse_dt of exynos dsi and remove the OF graph

2017-03-02 Thread Andi Shyti
Hi Hoegeun, > Hoegeun Kwon (7): > arm64: dts: exynos: Add the burst and esc clock frequency properties > for exynos5433 dts > arm: dts: Add the burst and esc clock frequency properties for > exynos3250 dts > arm: dts: Add the burst and esc clock frequency properties for > exynos4

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-02 Thread Byungchul Park
On Thu, Mar 02, 2017 at 02:40:31PM +0100, Peter Zijlstra wrote: > On Wed, Mar 01, 2017 at 01:28:43PM +0100, Peter Zijlstra wrote: > > On Wed, Mar 01, 2017 at 02:43:23PM +0900, Byungchul Park wrote: > > > > It's an optimization, but very essential and important optimization. > > Since its not for

[PATCH v4 1/3] perf: probe: factor out the ftrace README scanning

2017-03-02 Thread Naveen N. Rao
Simplify and separate out the ftrace README scanning logic into a separate helper. This is used subsequently to scan for all patterns of interest and to cache the result. Since we are only interested in availability of probe argument type x, we will only scan for that. Signed-off-by: Naveen N. Ra

Re: [PATCH v2 4/5] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-03-02 Thread Naveen N. Rao
On 2017/02/24 05:11PM, Arnaldo Carvalho de Melo wrote: > Em Sat, Feb 25, 2017 at 02:29:17AM +0900, Masami Hiramatsu escreveu: > > On Fri, 24 Feb 2017 00:46:08 +0530 > > "Naveen N. Rao" wrote: > > > Thanks. I hope that's an Ack for this patchset? > > > > OK, for 1/5, 2/5, 3/5, and 5/5; > > > > Ac

[PATCH v2] ARM: ptdump: Add domain to output

2017-03-02 Thread Kees Cook
This adds the memory domain (on non-LPAE) to the PMD and PTE dumps. This isn't in the regular PMD bit struct because I couldn't find a clean way to fall back to retain some of the PMD bits when reporting PTE. So this is special-cased for now. New output example: ---[ Modules ]--- 0x7f00-0x7f0

[PATCH v2 0/3] ARM: dts: BCM5301X: GIC_PPI bug, TWD WD and i2c Support

2017-03-02 Thread Jon Mason
Changes in v2: * Rafal discovered an issue with the GIC_PPI flags being incorrect. Since there was a dependency on that DT entry in this series, I added a patch to correct the issue and reworked the TWD patch with the changes. These seemed to have been lost sometime last year. See https:/

[PATCH v2 1/3] ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags

2017-03-02 Thread Jon Mason
GIC_PPI flags were misconfigured for the timers, resulting in errors like: [0.00] GIC: PPI11 is secure or misconfigured Changing them to being edge triggered corrects the issue Suggested-by: Rafał Miłecki Signed-off-by: Jon Mason Fixes: d27509f1 ("ARM: BCM5301X: add dts files for BCM470

Re: [PATCH v2 1/1] serial: 8250_dw: Allow hardware flow control to be used

2017-03-02 Thread James Hogan
On Wed, Mar 01, 2017 at 08:50:20PM +0200, Andy Shevchenko wrote: > On Wed, 2017-03-01 at 18:02 +, James Hogan wrote: > > On 11 January 2017 at 19:48, Jason Uy wrote: > > > In the most common use case, the Synopsys DW UART driver does not > > > set the set_termios callback function.  This preve

[PATCH] ftrace: add ftrace_graph_max_depth kernel parameter

2017-03-02 Thread Todd Brandt
Early trace callgraphs can be extremely large on systems with several seconds of boot time. The max_depth parameter limits how deep the graph trace goes and reduces the output size. This parameter is the same as the max_graph_depth file in debugfs. Signed-off-by: Todd Brandt --- Documentation/ad

[PATCH v6 2/4] switchtec: Add user interface documentation

2017-03-02 Thread Logan Gunthorpe
This adds standard documentation for the sysfs switchtec attributes and a RST formatted text file which documents the char device interface. Jonathan Corbet has indicated he will move this to a new user-space developer documentation book once it's created. Signed-off-by: Logan Gunthorpe Signed-of

Re: v4.10: kernel stack frame pointer .. has bad value (null)

2017-03-02 Thread Josh Poimboeuf
On Fri, Feb 24, 2017 at 11:04:39PM -0600, Josh Poimboeuf wrote: > On Thu, Feb 23, 2017 at 09:10:39PM +0100, Pavel Machek wrote: > > Hi! > > > > > > > > > > Somehow, startup_32_smp() is on the stack twice. The stack unwind > > > > > > led > > > > > > to the startup_32_smp() frame at 0xf50cdf9c r

Re: ARM64 perf stacktraces on tracepoint events

2017-03-02 Thread Kim Phillips
On Thu, 2 Mar 2017 10:44:11 + Mark Rutland wrote: > [Adding James, Takahiro-san, and Will, for stacktracing and arm64 perf] > > On Wed, Mar 01, 2017 at 04:42:17PM -0800, Joel Fernandes wrote: > > Hi, > > > > On 3.18 kernel running on an arm64 device, I tried running: > > perf record -a -g -

[PATCH] USB: misc: ldusb: Fixed coding style issues

2017-03-02 Thread Milian Reichardt
Fixed multiple coding style issues. Signed-off-by: Milian Reichardt --- drivers/usb/misc/ldusb.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index 3bc5356832db..77b76b468307 100644 --- a/

Re: [PATCH 24/26] ocfs2: reduce stack size with KASAN

2017-03-02 Thread Joe Perches
On Thu, 2017-03-02 at 23:59 +0100, Arnd Bergmann wrote: > KASAN decides that passing a pointer to _m into an extern function > (_mlog_printk) is potentially dangerous, as that function might > keep a reference to that pointer after it goes out of scope, > or it might not know the correct length of

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-02 Thread Josh Poimboeuf
On Thu, Mar 02, 2017 at 11:49:49PM +0100, Arnd Bergmann wrote: > On Thu, Mar 2, 2017 at 2:03 AM, Josh Poimboeuf wrote: > > On Wed, Mar 01, 2017 at 11:42:54PM +0100, Arnd Bergmann wrote: > >> On Wed, Mar 1, 2017 at 5:53 PM, Josh Poimboeuf wrote: > >> > On Wed, Mar 01, 2017 at 04:27:29PM +0100, Arn

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-02 Thread Byungchul Park
On Thu, Mar 02, 2017 at 02:41:03PM +0100, Peter Zijlstra wrote: > On Wed, Jan 18, 2017 at 10:17:32PM +0900, Byungchul Park wrote: > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > > index a6c8db1..7890661 100644 > > --- a/lib/Kconfig.debug > > +++ b/lib/Kconfig.debug > > @@ -1042,6 +1042,19

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-03-02 Thread Russell King - ARM Linux
On Thu, Mar 02, 2017 at 09:01:24PM +, Abel Vesa wrote: > On Tue, Feb 28, 2017 at 11:54:29AM +, Abel Vesa wrote: > > On Tue, Feb 28, 2017 at 11:46:38AM +, Russell King - ARM Linux wrote: > > > On Tue, Feb 28, 2017 at 11:22:27AM +, Abel Vesa wrote: > > > > On Tue, Feb 28, 2017 at 11:5

Re: [PATCH v3 5/9] fput: Don't reinvent the wheel but use existing llist API

2017-03-02 Thread Byungchul Park
On Tue, Feb 14, 2017 at 06:44:44PM +0100, Oleg Nesterov wrote: > On 02/14, Byungchul Park wrote: > > > > Although llist provides proper APIs, they are not used. Make them used. > > Reviewed-by: Oleg Nesterov Hello, Al Viro Sorry for my mistake at the previous spin. I should have been more caref

Re: [RFC v0 1/2] interconnect: Add generic interconnect controller API

2017-03-02 Thread Randy Dunlap
On 03/01/17 10:22, Georgi Djakov wrote: > > diff --git a/drivers/interconnect/Kconfig b/drivers/interconnect/Kconfig > new file mode 100644 > index ..103524b59905 > --- /dev/null > +++ b/drivers/interconnect/Kconfig > @@ -0,0 +1,10 @@ > +menuconfig INTERCONNECT > + bool "On-Chip In

[PATCH] extcon: int3496: add dependency on X86 as it's Intel specific

2017-03-02 Thread Peter Robinson
Add dependency on X86 so it doesn't show up on other arches and add a option for compile test so it still gets build coverage. Signed-off-by: Peter Robinson --- drivers/extcon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kcon

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-02 Thread Steve Longerbeam
On 03/02/2017 08:02 AM, Sakari Ailus wrote: Hi Steve, On Wed, Feb 15, 2017 at 06:19:16PM -0800, Steve Longerbeam wrote: v4l2_pipeline_inherit_controls() will add the v4l2 controls from all subdev entities in a pipeline to a given video device. Signed-off-by: Steve Longerbeam --- drivers/me

[PATCH net] rxrpc: Fix potential NULL-pointer exception

2017-03-02 Thread David Howells
Fix a potential NULL-pointer exception in rxrpc_do_sendmsg(). The call state check that I added should have gone into the else-body of the if-statement where we actually have a call to check. Found by CoverityScan CID#1414316 ("Dereference after null check"). Fixes: 540b1c48c37a ("rxrpc: Fix dea

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-02 Thread Byungchul Park
On Thu, Mar 02, 2017 at 06:39:49AM -0800, Matthew Wilcox wrote: > On Thu, Mar 02, 2017 at 01:45:35PM +0900, byungchul.park wrote: > > From: Matthew Wilcox [mailto:wi...@infradead.org] > > > On Tue, Feb 28, 2017 at 07:15:47PM +0100, Peter Zijlstra wrote: > > > > (And we should not be returning to us

Re: [PATCH] drm/arcpgu: use .mode_fixup instead of .atomic_check

2017-03-02 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 08:27:54PM +0300, Alexey Brodkin wrote: > Since we cannot always generate exactly requested pixel clock > there's not much sense in checking requested_clock == clk_round_rate(). > In that case for quite some modes we'll be getting -EINVAL and no video > output at all. > > B

[PATCH v7 4/4] switchtec: Add IOCTLs to the Switchtec driver

2017-03-02 Thread Logan Gunthorpe
This patch introduces a couple of special IOCTLs which are provided to: * Inform userspace of firmware partition locations * Pass event counts and allow userspace to wait on events * Translate between PFF numbers used by the switch to port numbers. Signed-off-by: Logan Gunthorpe Signed-off-by:

[PATCH v7 3/4] switchtec: Add sysfs attributes to the Switchtec driver

2017-03-02 Thread Logan Gunthorpe
This patch adds a few read-only sysfs attributes which provide some device information that is exposed from the devices. Primarily component and device names and versions. These are documented in Documentation/ABI/testing/sysfs-class-switchtec. Signed-off-by: Logan Gunthorpe Signed-off-by: Stephe

[PATCH v6 0/4] New Microsemi PCI Switch Management Driver

2017-03-02 Thread Logan Gunthorpe
Hi, Hopefully this is the last change necessary. The new code to handle unbind follows Jason's suggestions and is a lot easier to reason about. It's also been tested interrupting a number of operations. Thanks, Logan -- Changes since v5: * Reworked cleanup during unbind again. This time we fo

Re: [PATCH v6 0/4] New Microsemi PCI Switch Management Driver

2017-03-02 Thread Logan Gunthorpe
Hey, Ah, sorry, sorry. I noticed another minor mistake. I'll send a v7 in a second. Thanks, Logan On 02/03/17 04:07 PM, Logan Gunthorpe wrote: > Hi, > > Hopefully this is the last change necessary. The new code to handle > unbind follows Jason's suggestions and is a lot easier to reason about.

[PATCH v6 1/4] MicroSemi Switchtec management interface driver

2017-03-02 Thread Logan Gunthorpe
Microsemi's "Switchtec" line of PCI switch devices is already well supported by the kernel with standard PCI switch drivers. However, the Switchtec device advertises a special management endpoint with a separate PCI function address and class code. This endpoint enables some additional functionalit

[PATCH v7 1/4] MicroSemi Switchtec management interface driver

2017-03-02 Thread Logan Gunthorpe
Microsemi's "Switchtec" line of PCI switch devices is already well supported by the kernel with standard PCI switch drivers. However, the Switchtec device advertises a special management endpoint with a separate PCI function address and class code. This endpoint enables some additional functionalit

[PATCH v7 2/4] switchtec: Add user interface documentation

2017-03-02 Thread Logan Gunthorpe
This adds standard documentation for the sysfs switchtec attributes and a RST formatted text file which documents the char device interface. Jonathan Corbet has indicated he will move this to a new user-space developer documentation book once it's created. Signed-off-by: Logan Gunthorpe Signed-of

[PATCH v7 0/4] New Microsemi PCI Switch Management Driver

2017-03-02 Thread Logan Gunthorpe
Because getting it right correctly the first time is appearantly hard and I caught this mistake while reading the email I had just sent :( I'm very sorry about the extra noise. Logan -- Changes since v6: * I screwed up the device_unregister path and left a potential use after free bug in. I'

[PATCH v6 3/4] switchtec: Add sysfs attributes to the Switchtec driver

2017-03-02 Thread Logan Gunthorpe
This patch adds a few read-only sysfs attributes which provide some device information that is exposed from the devices. Primarily component and device names and versions. These are documented in Documentation/ABI/testing/sysfs-class-switchtec. Signed-off-by: Logan Gunthorpe Signed-off-by: Stephe

[PATCH v6 4/4] switchtec: Add IOCTLs to the Switchtec driver

2017-03-02 Thread Logan Gunthorpe
This patch introduces a couple of special IOCTLs which are provided to: * Inform userspace of firmware partition locations * Pass event counts and allow userspace to wait on events * Translate between PFF numbers used by the switch to port numbers. Signed-off-by: Logan Gunthorpe Signed-off-by:

[PATCH 0/3] cpufreq: intel_pstate: Fixes related to the passive mode

2017-03-02 Thread Rafael J. Wysocki
Hi, This series fixes some passive mode behavior related to limits and the cpu_frequency tracepoint. It depends on https://patchwork.kernel.org/patch/9594447/ (which is in linux-next already), but it doesn't depend on the other series I posted yesterday (https://patchwork.kernel.org/patch/9597147

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-02 Thread Arnd Bergmann
On Thu, Mar 2, 2017 at 2:03 AM, Josh Poimboeuf wrote: > On Wed, Mar 01, 2017 at 11:42:54PM +0100, Arnd Bergmann wrote: >> On Wed, Mar 1, 2017 at 5:53 PM, Josh Poimboeuf wrote: >> > On Wed, Mar 01, 2017 at 04:27:29PM +0100, Arnd Bergmann wrote: >> >> > I see no apparent reason for the ud2. >> >> I

[RFC PATCH v2 00/32] x86: Secure Encrypted Virtualization (AMD)

2017-03-02 Thread Brijesh Singh
This RFC series provides support for AMD's new Secure Encrypted Virtualization (SEV) feature. This RFC is build upon Secure Memory Encryption (SME) RFCv4 [1]. SEV is an extension to the AMD-V architecture which supports running multiple VMs under the control of a hypervisor. When enabled, SEV hard

[PATCH v4 2/3] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-03-02 Thread Naveen N. Rao
We indicate support for accepting sym+offset with kretprobes through a line in ftrace README. Parse the same to identify support and choose the appropriate format for kprobe_events. Signed-off-by: Naveen N. Rao --- tools/perf/util/probe-event.c | 12 +--- tools/perf/util/probe-file.c |

Re: [PATCH v3 2/9] bcache: Don't reinvent the wheel but use existing llist API

2017-03-02 Thread Byungchul Park
On Tue, Feb 14, 2017 at 04:26:23PM +0900, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. + koverstr...@google.com + jkos...@suse.cz I am not sure who I should cc for this subsystem.. Could you check this patch? Thanks, Byungchul > > Signed-off-b

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Tejun Heo
Hello, On Thu, Mar 02, 2017 at 02:50:00PM +0200, Andy Shevchenko wrote: > > I thought about that and did not do it because here we are remapping > > resources that are _not_ PCI bus resources (ie it is not PCI BARs we > > are remapping), keeping the devm_* prefix would be more consistent > > to th

Re: [PATCH v4 13/36] [media] v4l2: add a frame timeout event

2017-03-02 Thread Steve Longerbeam
On 03/02/2017 07:53 AM, Sakari Ailus wrote: Hi Steve, On Wed, Feb 15, 2017 at 06:19:15PM -0800, Steve Longerbeam wrote: Add a new FRAME_TIMEOUT event to signal that a video capture or output device has timed out waiting for reception or transmit completion of a video frame. Signed-off-by: St

[PATCH net v5 1/2] net: ethernet: bgmac: init sequence bug

2017-03-02 Thread Jon Mason
Fix a bug in the 'bgmac' driver init sequence that blind writes for init sequence where it should preserve most bits other than the ones it is deliberately manipulating. The code now checks to see if the adapter needs to be brought out of reset (where as before it was doing an IDM write to bring i

Re: [PATCH] jump_label: Fix anonymous union initialization

2017-03-02 Thread Boris Ostrovsky
On 03/02/2017 04:42 PM, Steven Rostedt wrote: > On Thu, 2 Mar 2017 16:07:19 -0500 > Jason Baron wrote: > >> On 02/28/2017 11:32 AM, Boris Ostrovsky wrote: >>> Pre-4.6 gcc do not allow direct static initialization of members of >>> anonymous structs/unions. After commit 3821fd35b58d ("jump_label: >

Re: [PATCH 24/26] ocfs2: reduce stack size with KASAN

2017-03-02 Thread Arnd Bergmann
On Thu, Mar 2, 2017 at 11:40 PM, Joe Perches wrote: > On Thu, 2017-03-02 at 23:22 +0100, Arnd Bergmann wrote: >> On Thu, Mar 2, 2017 at 6:46 PM, Joe Perches wrote: >> > On Thu, 2017-03-02 at 17:38 +0100, Arnd Bergmann wrote: >> > > The internal logging infrastructure in ocfs2 causes special warni

Re: [PATCH] objtool: fix another gcc jump table detection issue

2017-03-02 Thread Arnd Bergmann
On Thu, Mar 2, 2017 at 11:57 PM, Josh Poimboeuf wrote: > > Arnd Bergmann reported a (false positive) objtool warning: > > drivers/infiniband/sw/rxe/rxe_resp.o: warning: objtool: > rxe_responder()+0xfe: sibling call from callable instruction with changed > frame pointer > > The issue is in find

[PATCH net v5 2/2] net: ethernet: bgmac: mac address change bug

2017-03-02 Thread Jon Mason
From: Hari Vyas ndo_set_mac_address() passes struct sockaddr * as 2nd parameter to bgmac_set_mac_address() but code assumed u8 *. This caused two bytes chopping and the wrong mac address was configured. Signed-off-by: Hari Vyas Signed-off-by: Jon Mason Fixes: 4e209001b86 ("bgmac: write mac ad

Re: [PATCH v3 1/9] llist: Provide a safe version for llist_for_each

2017-03-02 Thread Byungchul Park
On Tue, Feb 14, 2017 at 03:45:44PM +0800, Huang, Ying wrote: > Byungchul Park writes: > > > Sometimes we have to dereference next field of llist node before entering > > loop becasue the node might be deleted or the next field might be > > modified within the loop. So this adds the safe version o

[PATCH net v5 0/2] net: ethernet: bgmac: bug fixes

2017-03-02 Thread Jon Mason
Changes in v5: * Rebased to the latest code and fixed up a compile error due to the mac_addr struct going away (found by David Miller) Changes in v4: * Added the udelays from the previous code (per David Miller) Changes in v3: * Reworked the init sequence patch to only remove the device reset i

Re: [Outreachy kernel] [PATCH 5/5] staging: rtl8712: Remove unnecessary cast on void pointer

2017-03-02 Thread SIMRAN SINGHAL
On Fri, Mar 3, 2017 at 3:26 AM, Julia Lawall wrote: >> @@ -635,7 +635,7 @@ void r8712_reordering_ctrl_timeout_handler(void >> *pcontext) >> { >> unsigned long irql; >> struct recv_reorder_ctrl *preorder_ctrl = >> - (struct recv_reorder_ctrl *)pcontext; >>

Re: [PATCH fixes v3] pinctrl: Really force states during suspend/resume

2017-03-02 Thread Florian Fainelli
On 03/02/2017 12:54 AM, Andy Shevchenko wrote: > On Wed, Mar 1, 2017 at 8:32 PM, Florian Fainelli wrote: >> In case a platform only defaults a "default" set of pins, but not a >> "sleep" set of pins, and this particular platform suspends and resumes >> in a way that the pin states are not preserve

Re: [PATCH 24/26] ocfs2: reduce stack size with KASAN

2017-03-02 Thread Arnd Bergmann
On Thu, Mar 2, 2017 at 6:46 PM, Joe Perches wrote: > On Thu, 2017-03-02 at 17:38 +0100, Arnd Bergmann wrote: >> The internal logging infrastructure in ocfs2 causes special warning code to >> be >> used with KASAN, which produces rather large stack frames: > >> fs/ocfs2/super.c: In function 'ocfs2

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-02 Thread Arnd Bergmann
On Thu, Mar 2, 2017 at 7:25 PM, Josh Poimboeuf wrote: >> It was on the current linux-next, so that commit should certainly be >> included. >> >> > Can you attach the object file? > > Here's the preliminary fix for this one (still needs more testing): It fixes the warning for me. Arnd

<    1   2   3   4   5   6   7   8   9   >