[PATCH 1/1] drivers: dma-contiguous: Ensure cma reserve region never cross the low/high mem boundary

2016-11-16 Thread Jason Liu
If the cma reserve region goes through the device-tree method, also need ensure the cma reserved region not cross the low/high mem boundary. This patch did the similar fix as commit:16195dd ("mm: cma: Ensure that reservations never cross the low/high mem boundary") Signed-off-by: Jason Liu Cc: Ma

Re: [PATCH resend v4] i2c: hibvt: add Hisilicon BVT I2C controller driver

2016-11-16 Thread Jiancheng Xue
Hi Wolfram, On 2016/10/21 16:17, Pan Wen wrote: > add Hisilicon BVT I2C controller driver support. > > Signed-off-by: Pan Wen > Acked-by: Rob Herring > --- > change log > v4: > Modify the default frequency to 100KHz. > v3: > Add a SoC specific compatible string. > v2: > 1)Fixed a compile error.

[PATCH v2] mtd: nand: nandsim: fix error check

2016-11-16 Thread Sudip Mukherjee
debugfs_create_dir() and debugfs_create_file() returns NULL on error or a pointer on success. They do not return the error value with ERR_PTR. So we should not check the return with IS_ERR_OR_NULL, instead we should just check for NULL. Signed-off-by: Sudip Mukherjee --- v2: nuked err drivers/

Re: [PATCH v2] perf/core: do not set cpuctx->cgrp for unscheduled cgroups

2016-11-16 Thread David Carrillo-Cisneros
Hi all, Ping on this patch. Is there any outstanding problem with it? Hopefully can make it to 4.9 Thanks, David

Re: [PATCH] vt: fix Scroll Lock LED trigger name

2016-11-16 Thread Samuel Thibault
Hello, Greg Kroah-Hartman, on Wed 16 Nov 2016 08:24:42 +0100, wrote: > > static struct kbd_led_trigger kbd_led_triggers[] = { > > - KBD_LED_TRIGGER(VC_SCROLLOCK, "kbd-scrollock"), > > + KBD_LED_TRIGGER(VC_SCROLLOCK, "kbd-scrolllock"), > > KBD_LED_TRIGGER(VC_NUMLOCK, "kbd-numlock"), > >

[PATCH -tip v3 0/9] ftrace: selftests: Add full glob matching and update ftracetest

2016-11-16 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series of patches to add full glob matching support in ftrace, and update ftracetest to fix bugs and add test for the glob matching and hexadecimal types. Previous version is here: https://lkml.org/lkml/2016/10/30/16 I've fix some bugs related to ftrace kconfi

[PATCH -tip v3 1/9] ftrace: Support full glob matching

2016-11-16 Thread Masami Hiramatsu
Use glob_match() to support flexible glob wildcards (*,?) and character classes ([) for ftrace. Since the full glob matching is slower than the current partial matching routines(*pat, pat*, *pat*), this leaves those routines and just add MATCH_GLOB for complex glob expression. e.g. [root@loca

[PATCH -tip v3 2/9] selftests: ftrace: Initialize ftrace before each test

2016-11-16 Thread Masami Hiramatsu
Reset ftrace to initial state before running each test. This fixes some test cases to enable tracing before starting trace test. This can avoid false-positive failure when previous testcase fails while disabling tracing. Signed-off-by: Masami Hiramatsu Suggested-by: Steven Rostedt --- Changes

[PATCH -tip v3 3/9] selftests: ftrace: Add --quiet option not to show error logs on screen

2016-11-16 Thread Masami Hiramatsu
Since the verbose error logs scrolls out previous test results --quiet option suppress to show such message. e.g. # ./ftracetest -q === Ftrace unit tests === [1] Basic trace file check [PASS] [2] Basic test for tracers [PASS] [3] Basic trace clock test [PASS] [4] Basic event tracin

[PATCH -tip v3 5/9] selftests: ftrace: Fix trigger-mod to run without syscall trace

2016-11-16 Thread Masami Hiramatsu
Since histogram trigger id.syscall depends on CONFIG_FTRACE_SYSCALLS, a testcase in trigger-modifier test fails if that config is disabled. Fix this bug by using flexible pattern to check the histogram output. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/trigger/trigger-hist-mod.tc

[PATCH -tip v3 8/9] selftests: ftrace: Add a testcase for function filter glob match

2016-11-16 Thread Masami Hiramatsu
Add function filter glob matching test case. This checks whether the kernel supports glob matching (front match, end match, middle match, side match, character class and '?'). Here is the test result. - ./ftracetest test.d/ftrace/func-filter-glob.tc === Ftrace unit tests === [1] ftrace

[PATCH -tip v3 4/9] selftests: ftrace: Check whether snapshot trigger is supported correctly

2016-11-16 Thread Masami Hiramatsu
If "snapshot" special file doesn't exist, that kernel does not support snapshot and snapshot trigger too. In that case snapshot trigger test results to unsupported instead of fail. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/trigger/trigger-snapshot.tc |5 + 1 file changed

[PATCH -tip v3 6/9] selftests: ftrace: Hide ftracetest logs from git

2016-11-16 Thread Masami Hiramatsu
Hide ftracetest result log directory from git. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/.gitignore |1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/ftrace/.gitignore diff --git a/tools/testing/selftests/ftrace/.gitignore b/tools/tes

Re: [PATCH] printk, locking/atomics, kref: Introduce new %pAr and %pAk format string options for atomic_t and 'struct kref'

2016-11-16 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Nov 15, 2016 at 12:37 AM, Ingo Molnar wrote: > > +atomic variables such atomic_t or struct kref: > > + > > + %pAratomic_t count > > + %pAkstruct kref count > > Not a huge fan. That "r" makes sense to you ("raw" atomic), but it > makes no se

[PATCH -tip v3 7/9] selftests: ftrace: Introduce TMPDIR for temporary files

2016-11-16 Thread Masami Hiramatsu
Introduce TMPDIR variable which is removed after each test is done, so that the test script can put their temporary files in that. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ftrace

Re: [PATCH] vt: fix Scroll Lock LED trigger name

2016-11-16 Thread Greg Kroah-Hartman
On Wed, Nov 16, 2016 at 09:10:04AM +0100, Samuel Thibault wrote: > Hello, > > Greg Kroah-Hartman, on Wed 16 Nov 2016 08:24:42 +0100, wrote: > > > static struct kbd_led_trigger kbd_led_triggers[] = { > > > - KBD_LED_TRIGGER(VC_SCROLLOCK, "kbd-scrollock"), > > > + KBD_LED_TRIGGER(VC_SCROLLOCK, "kbd

[PATCH -tip v3 9/9] selftests: ftrace: Add a testcase for types of kprobe event

2016-11-16 Thread Masami Hiramatsu
Add a testcase for types of kprobe event. This checks kprobe event can accept and correctly expressed the arguments typed as s32, u32, x32 and bitfield. Here is the test result. - # ./ftracetest test.d/kprobe/kprobe_args_type.tc === Ftrace unit tests === [1] Kprobes event arguments wit

Re: [linux-sunxi] Re: [PATCH v3 1/2] drm/bridge: dumb-vga-dac: Support a VDD regulator supply

2016-11-16 Thread Archit Taneja
Hi, On 11/15/2016 08:29 AM, Chen-Yu Tsai wrote: Hi, On Wed, Nov 2, 2016 at 9:33 AM, Chen-Yu Tsai wrote: On Mon, Oct 31, 2016 at 2:28 PM, Rob Herring wrote: On Sat, Oct 29, 2016 at 07:06:10PM +0800, Chen-Yu Tsai wrote: Some dumb VGA DACs are active components which require external power. A

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Greg KH
On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: > On Tue, Nov 15, 2016 at 12:03 AM, Peter Zijlstra wrote: > > On Tue, Nov 15, 2016 at 08:33:22AM +0100, Greg KH wrote: > >> On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: > > > >> > --- a/drivers/block/drbd/drbd_req.c > >>

RE: [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-16 Thread Sriram Dash
>From: Rob Herring [mailto:r...@kernel.org] >On Mon, Nov 14, 2016 at 10:56:54AM +0530, Sriram Dash wrote: >> Adds qoriq usb 3.0 phy driver support for LS1043A platform. >> Describes the qoriq usb 2.0 phy driver binding, currently used for >> LS1043A platform. >> >> Signed-off-by: Sriram Dash >> --

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Ingo Molnar
* Kees Cook wrote: > On Tue, Nov 15, 2016 at 11:16 AM, Peter Zijlstra wrote: > > > > > > On 15 November 2016 19:06:28 CET, Kees Cook wrote: > > > >>I'll want to modify this in the future; I have a config already doing > >>"Bug on data structure corruption" that makes the warn/bug choice. > >>I

[tip:timers/core] Kconfig: Introduce the "imply" keyword

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: 237e3ad0f195d8fd34f1299e45f04793832a16fc Gitweb: http://git.kernel.org/tip/237e3ad0f195d8fd34f1299e45f04793832a16fc Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:05 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:33 +0100 Kconfig: Introduce the

[PATCH] ARM: zynq: Fix pmu register description coding style

2016-11-16 Thread Michal Simek
Drop the space before/after '<' and '>'; and separate the entries to be a bit more readable. Reported-by: Julia Cartwright Signed-off-by: Michal Simek --- arch/arm/boot/dts/zynq-7000.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/a

[tip:timers/core] timer: Move sys_alarm from timer.c to itimer.c

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: 74ba181e61c6accf9066d6980f44588de2f854f6 Gitweb: http://git.kernel.org/tip/74ba181e61c6accf9066d6980f44588de2f854f6 Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:08 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:34 +0100 timer: Move sys_alarm

[tip:timers/core] Kconfig: Regenerate *.c_shipped files after previous changes

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: 32ce5ac867bf4ba8350a751216d087f574a38133 Gitweb: http://git.kernel.org/tip/32ce5ac867bf4ba8350a751216d087f574a38133 Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:06 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:33 +0100 Kconfig: Regenerate *.

[tip:timers/core] ptp_clock: Allow for it to be optional

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: d1cbfd771ce8297fa11e89f315392de6056a2181 Gitweb: http://git.kernel.org/tip/d1cbfd771ce8297fa11e89f315392de6056a2181 Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:07 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:34 +0100 ptp_clock: Allow for i

[tip:timers/core] posix_cpu_timers: Move the add_device_randomness() call to a proper place

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: 53d3eaa31508222e445b489f3c3ac4c63542a4ef Gitweb: http://git.kernel.org/tip/53d3eaa31508222e445b489f3c3ac4c63542a4ef Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:09 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:34 +0100 posix_cpu_timers: Move

[tip:timers/core] posix-timers: Make them configurable

2016-11-16 Thread tip-bot for Nicolas Pitre
Commit-ID: baa73d9e478ff32d62f3f9422822b59dd9a95a21 Gitweb: http://git.kernel.org/tip/baa73d9e478ff32d62f3f9422822b59dd9a95a21 Author: Nicolas Pitre AuthorDate: Fri, 11 Nov 2016 00:10:10 -0500 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:26:35 +0100 posix-timers: Make the

Re: [PATCH v2] staging: slicoss: fix different address space warnings

2016-11-16 Thread Sergio Paracuellos
On Wed, Nov 16, 2016 at 8:05 AM, Greg KH wrote: > On Wed, Nov 16, 2016 at 05:07:37AM +0100, Sergio Paracuellos wrote: >> This patch fix the following sparse warnings in slicoss driver: >> warning: incorrect type in assignment (different address spaces) >> >> Changes in v2: >> * Remove IOMEM_GET_FI

Re: [PATCH for-next 03/11] IB/hns: Optimize the logic of allocating memory using APIs

2016-11-16 Thread Leon Romanovsky
On Tue, Nov 15, 2016 at 03:52:46PM +, Salil Mehta wrote: > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Wednesday, November 09, 2016 7:22 AM > > To: Salil Mehta > > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; > > mehta.salil@gmail.com; linu

[tip:perf/urgent] perf/core: Do not set cpuctx->cgrp for unscheduled cgroups

2016-11-16 Thread tip-bot for David Carrillo-Cisneros
Commit-ID: 864c2357ca898c6171fe5284f5ecc795c8ce27a8 Gitweb: http://git.kernel.org/tip/864c2357ca898c6171fe5284f5ecc795c8ce27a8 Author: David Carrillo-Cisneros AuthorDate: Tue, 1 Nov 2016 11:52:58 -0700 Committer: Ingo Molnar CommitDate: Tue, 15 Nov 2016 14:18:22 +0100 perf/core: Do not

[tip:smp/hotplug] x86/mcheck: Move threshold_create_device()

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 0943637293a05aa3d8fb47bc30c7c0104480829a Gitweb: http://git.kernel.org/tip/0943637293a05aa3d8fb47bc30c7c0104480829a Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:41 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:16 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Explicit cleanup on failure in mce_amd

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: ec553abb318d75b1eafd275c71125569fa13b33b Gitweb: http://git.kernel.org/tip/ec553abb318d75b1eafd275c71125569fa13b33b Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:42 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:17 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Be prepared for a rollback back to the ONLINE state

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 7f34b935e8bf2f5304fce273a8fa98c63886d686 Gitweb: http://git.kernel.org/tip/7f34b935e8bf2f5304fce273a8fa98c63886d686 Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:43 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:17 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Split threshold_cpu_callback into two callbacks

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 4d7b02d58c4000597d08930193d7aed81fba6b7c Gitweb: http://git.kernel.org/tip/4d7b02d58c4000597d08930193d7aed81fba6b7c Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:44 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:17 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Reorganize the hotplug callbacks

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 39f152ffbfedb42b57b6e0c896eeae51dbe83b7a Gitweb: http://git.kernel.org/tip/39f152ffbfedb42b57b6e0c896eeae51dbe83b7a Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:45 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:18 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Move CPU_ONLINE and CPU_DOWN_PREPARE to hotplug state machine

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 8c0eeac819c85e4c1143f7a874d87b4594739208 Gitweb: http://git.kernel.org/tip/8c0eeac819c85e4c1143f7a874d87b4594739208 Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:46 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:18 +0100 x86/mcheck

[tip:smp/hotplug] x86/mcheck: Move CPU_DEAD to hotplug state machine

2016-11-16 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 0e285d36bd2bfee0b95433ccc9065c878164f5b2 Gitweb: http://git.kernel.org/tip/0e285d36bd2bfee0b95433ccc9065c878164f5b2 Author: Sebastian Andrzej Siewior AuthorDate: Thu, 10 Nov 2016 18:44:47 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:34:18 +0100 x86/mcheck

Re: [PATCH v2 6/7] mtd: nand: raw: make BBT code more generic

2016-11-16 Thread Peter Pan
Hi Boris, I found a bug during my review. Please see below. On Sun, Oct 16, 2016 at 10:35 PM, Boris Brezillon wrote: > BBT support is currently tightly tied to raw NAND, though this is the kind > of code we could share across all NAND based devices, no matter what > physical interface is to comm

Re: [PATCH] perf/x86/uncore: remove event_list for snb client uncore IMC

2016-11-16 Thread Ingo Molnar
* kan.li...@intel.com wrote: > From: Kan Liang > > A BUG was found by perf_fuzzer after enabled KASAN. > [ 205.748005] BUG: KASAN: slab-out-of-bounds in > snb_uncore_imc_event_del+0x6c/0xa0 at addr 8800caa43768 > Reported-by: Vince Weaver > Tested-by: Vince Weaver > Signed-off-by: Kan

Re: [PATCH v2 6/7] mtd: nand: raw: make BBT code more generic

2016-11-16 Thread Boris Brezillon
On Wed, 16 Nov 2016 16:43:58 +0800 Peter Pan wrote: > Hi Boris, > > I found a bug during my review. Please see below. > > On Sun, Oct 16, 2016 at 10:35 PM, Boris Brezillon > wrote: > > BBT support is currently tightly tied to raw NAND, though this is the kind > > of code we could share across

RE: [PATCH v3] mmc: sdhci-of-esdhc: fixup PRESENT_STATE read

2016-11-16 Thread Y.B. Lu
> -Original Message- > From: Michael Walle [mailto:mich...@walle.cc] > Sent: Monday, November 14, 2016 11:12 PM > To: linux-kernel@vger.kernel.org > Cc: linux-...@vger.kernel.org; Ulf Hansson; Adrian Hunter; yangbo lu; > Michael Walle > Subject: [PATCH v3] mmc: sdhci-of-esdhc: fixup PRESENT

[PATCH] remoteproc: adsp-pil: fix recursive dependency

2016-11-16 Thread Arnd Bergmann
The newly added driver tries to 'select' a symbol that it has an implicit dependency on, which confuses Kconfig: subsection "Kconfig recursive dependency limitations" drivers/remoteproc/Kconfig:3: symbol REMOTEPROC is selected by QCOM_ADSP_PIL As REMOTEPROC is itself user-visible, we clearly sh

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Greg KH
On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: > So what I'd love to see is to have a kernel option that re-introduces some > historic root (and other) holes that can be exploited deterministically - > obviously default disabled. Ick, I don't want to have to support nasty #ifdefs f

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Oliver Neukum
On Mon, 2016-11-14 at 06:34 -0800, Guenter Roeck wrote: > >>> +int typec_connect(struct typec_port *port, struct > typec_connection *con) > >>> +{ > >>> + int ret; > >>> + > >>> + if (!con->partner && !con->cable) > >>> + return -EINVAL; > >>> + > >>> + port->connected = 1; > >>> +

Re: [PATCH 1/3] arm: hisi: add ARCH_MULTI_V5 support

2016-11-16 Thread wenpan
Hi Martyo< Does this confict with your patcho< If noto< I hope this could be merged first. Besides could you tell me the link to your related patch? Thanks, Pan On 2016/10/17 21:48, Arnd Bergmann wrote: > On Monday, October 17, 2016 8:07:03 PM CEST Pan Wen wrote: >> Add support for some HiSil

[PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-11-16 Thread Xunlei Pang
We met the DMAR fault both on hpsa P420i and P421 SmartArray controllers under kdump, it can be steadily reproduced on several different machines, the dmesg log is like: HP HPSA Driver (v 3.4.16-0) hpsa :02:00.0: using doorbell to reset controller hpsa :02:00.0: board ready after hard reset

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Ingo Molnar
* Greg KH wrote: > On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: > > So what I'd love to see is to have a kernel option that re-introduces some > > historic root (and other) holes that can be exploited deterministically - > > obviously default disabled. > > Ick, I don't want to

[PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
To support device tree usage for ftmac100. Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/ftmac100.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index dce5f7b..81dd9e1 100644 --- a/

[PATCHv0 1/1] fbdev: add Intel FPGA FRAME BUFFER driver

2016-11-16 Thread Ong, Hean Loong
From: Ong Hean Loong This patch enables the display port IP driver for Intel Arria 10 SOCFPGA Golden Hardware Reference Design (GHRD). The driver requires enabling the options such as Coheherent Memory Allocation, Intel FPGA Frame Buffer, Frame Buf

Re: [PATCH v12 3/3] drm/fence: add out-fences support

2016-11-16 Thread Chris Wilson
On Tue, Nov 15, 2016 at 10:06:41PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Support DRM out-fences by creating a sync_file with a fence for each CRTC > that sets the OUT_FENCE_PTR property. > > We use the out_fence pointer received in the OUT_FENCE_PTR prop to send > the sync_fi

Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-11-16 Thread Xunlei Pang
Ccing David On 2016/11/16 at 17:02, Xunlei Pang wrote: > We met the DMAR fault both on hpsa P420i and P421 SmartArray controllers > under kdump, it can be steadily reproduced on several different machines, > the dmesg log is like: > HP HPSA Driver (v 3.4.16-0) > hpsa :02:00.0: using doorbell to

[PATCH] gpio: max77620: add compatible string to device id list

2016-11-16 Thread Shardar Shariff Md
From: Venkat Reddy Talla Adding max20024 compatible string to the device id list to support both max77620 and max20024 devices. Signed-off-by: Venkat Reddy Talla --- drivers/gpio/gpio-max77620.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpi

Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell

2016-11-16 Thread Johan Hovold
On Mon, Nov 14, 2016 at 06:25:01PM +, Lee Jones wrote: > On Tue, 01 Nov 2016, Johan Hovold wrote: > > > Make sure to drop the reference taken by bus_find_device_by_name() > > before returning from mfd_clone_cell(). > > > > Fixes: a9bbba996302 ("mfd: add platform_device sharing support for mfd

Re: [PATCH v7 0/6] perf annotate: Cross arch support + few fixes

2016-11-16 Thread Naveen N. Rao
On 2016/09/21 09:17PM, Ravi Bangoria wrote: > Currently Perf annotate support code navigation (branches and calls) > only when run on the same architecture where perf.data was recorded. > But, for example, record on powerpc server and annotate on client's > x86 desktop is not supported. > > This p

Re: [PATCH v2] ARM: dts: da850: add the mstpri and ddrctl nodes

2016-11-16 Thread Sekhar Nori
On Tuesday 15 November 2016 04:30 PM, Bartosz Golaszewski wrote: > Add the nodes for the MSTPRI configuration and DDR2/mDDR memory > controller drivers to da850.dtsi. > > Signed-off-by: Bartosz Golaszewski Applied to v4.10/dt Thanks, Sekhar

Re: [PATCH 1/2] ovl: use kernel facility for copying attributes

2016-11-16 Thread Miklos Szeredi
On Tue, Nov 15, 2016 at 5:54 PM, Quorum Laval wrote: > Replace ovl_copyattr() by fsstack_copy_attr_all() and drop the definition of > the former. This isn't trivially correct, fsstack_copy_attr_all() copies more than ovl_copyattr(). We need a better explanation for why it is correct to copy all

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Greg KH
On Wed, Nov 16, 2016 at 10:07:37AM +0100, Ingo Molnar wrote: > > * Greg KH wrote: > > > On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: > > > So what I'd love to see is to have a kernel option that re-introduces > > > some > > > historic root (and other) holes that can be exploite

Re: [PATCH 2/2] ovl: use kernel facility for updating access time

2016-11-16 Thread Miklos Szeredi
On Tue, Nov 15, 2016 at 5:54 PM, Quorum Laval wrote: > Use fsstack_copy_attr_atime() instead of direct assignement. This one's correct, but what's the point? Thanks, Miklos

[tip:ras/core] x86/mce/AMD: Reset Threshold Limit after logging error

2016-11-16 Thread tip-bot for Yazen Ghannam
Commit-ID: 18807ddb7f88d4ac3797302bafb18143d573e66f Gitweb: http://git.kernel.org/tip/18807ddb7f88d4ac3797302bafb18143d573e66f Author: Yazen Ghannam AuthorDate: Tue, 15 Nov 2016 15:13:53 -0600 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 09:57:11 +0100 x86/mce/AMD: Reset Thr

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-16 Thread Felipe Balbi
Hi, John Youn writes: > On 11/14/2016 3:00 PM, John Youn wrote: >> On 11/11/2016 3:12 PM, Christian Lamparter wrote: >>> On Friday, November 11, 2016 2:20:42 PM CET John Youn wrote: On 11/11/2016 2:05 PM, Christian Lamparter wrote: > On Friday, November 11, 2016 1:22:16 PM CET John You

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-16 Thread Michal Simek
On 15.11.2016 17:03, Zubair Lutfullah Kakakhel wrote: > Hi, > > On 11/15/2016 12:49 PM, Michal Simek wrote: >> On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: >>> Add a global structure to house various variables. >>> And cleanup read/write handling by using jump label api. >>> >>> Signed-of

[PATCH v4] tools/power/acpi: Remove direct kernel source include reference

2016-11-16 Thread Lv Zheng
ACPICA tools trickily uses integer types, and trickily includes kernel include directory directly, which breaks tools build for some cross compilers. This patch improves ACPICA tools build to make it a bit more robust in such situation by splitting include/acpi into a separate output directory. Th

Re: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm

2016-11-16 Thread Lukas Wunner
On Thu, Nov 10, 2016 at 12:56:14AM +0100, Rafael J. Wysocki wrote: > The idea, roughly, is that if there is a single on/off switch acting > on multiple devices, you can (a) set up a PM domain tracking all of > those device's runtime PM invocations and (b) maintaining a reference > counter of device

Re: [PATCH 1/3] arm: hisi: add ARCH_MULTI_V5 support

2016-11-16 Thread Wei Xu
Hi Pan, On 2016/11/16 8:56, wenpan wrote: > Hi Marty, > Does this confict with your patch? If not,I hope this could be merged first. > Besides could you tell me the link to your related patch? This is the link: https://patchwork.kernel.org/patch/9334743/ BR, Wei > > Thanks, > Pan > > On 201

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Heikki Krogerus
On Tue, Nov 15, 2016 at 04:19:10PM -0800, Badhri Jagan Sridharan wrote: > Hi, > > At present I am using the uevent in the userspace to infer > the Presence of a port on the remote end through the > appearance of usbc*-partner. > > Userspace uses this info to decide on when to show a USB > notific

Re: [RFC][PATCH 2/2] fsnotify: handle permission events without holding fsnotify_mark_srcu[0]

2016-11-16 Thread Jan Kara
On Mon 14-11-16 17:09:47, Amir Goldstein wrote: > On Mon, Nov 14, 2016 at 3:20 PM, Jan Kara wrote: > > On Mon 14-11-16 13:48:27, Amir Goldstein wrote: > >> Handling fanotify events does not entail dereferencing fsnotify_mark > >> beyond the point of fanotify_should_send_event(). > >> > >> For the

[PATCH] drm/sun4i: Only count TCON endpoints as valid outputs

2016-11-16 Thread Chen-Yu Tsai
The sun4i DRM driver counts the number of endpoints it found and registers the whole DRM pipeline if any endpoints are found. However, if the TCON and its child endpoints (LCD panels, TV encoder, HDMI encoder, MIPI DSI encoder, etc.) aren't found, that means we don't have any usable CRTCs, and the

[PATCH] drm/sun4i: tcon: Initialize regmap after enabling bus clocks

2016-11-16 Thread Chen-Yu Tsai
If we attempt to read/write the TCON registers before the bus clock is enabled, those accesses get ignored. In practice this almost never occurs because U-boot had already enabled the bus clock as part of its firmware provided framebuffer (simplefb). Fixes: 9026e0d122ac ("drm: Add Allwinner A10 D

[PATCH v2] iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor

2016-11-16 Thread Ooi, Joyce
There are 2 usage types (Magnetic Flux and Heading data field) for HID compass sensor, thus the values of offset, scale, and sensitivity should be separated according to their respective usage type. The changes made are as below: 1. Hysteresis: A struct hid_sensor_common rot_attributes is created i

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Oliver Neukum
On Wed, 2016-11-16 at 11:30 +0200, Heikki Krogerus wrote: > On Tue, Nov 15, 2016 at 04:19:10PM -0800, Badhri Jagan Sridharan wrote: > > Is that too costly to have ? > > Greg, could you give your opinion. In this case we do have attribute > files that the user space can poll. Data role is the USB

[PATCH] platform: asus-nb-wmi: Make use of dmi->ident

2016-11-16 Thread Marcos Paulo de Souza
as other drives also do, like fujitsu, intel, hp and samsung. Signed-off-by: Marcos Paulo de Souza --- drivers/platform/x86/asus-nb-wmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 26e4cbc..c3abfc8 100644 ---

[tip:locking/core 12/12] drivers/gpu/drm/i915/i915_gem_shrinker.c:230:2: warning: 'mutex_trylock_recursive' is deprecated

2016-11-16 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core head: 0f5225b024d4bffd682aab008c35862e8fdc1865 commit: 0f5225b024d4bffd682aab008c35862e8fdc1865 [12/12] locking/mutex, drm: Introduce mutex_trylock_recursive() config: i386-randconfig-a0-201646 (attached as .config)

Re: [PATHCv10 1/2] usb: USB Type-C connector class

2016-11-16 Thread Greg KH
On Wed, Nov 16, 2016 at 11:30:35AM +0200, Heikki Krogerus wrote: > On Tue, Nov 15, 2016 at 04:19:10PM -0800, Badhri Jagan Sridharan wrote: > > Hi, > > > > At present I am using the uevent in the userspace to infer > > the Presence of a port on the remote end through the > > appearance of usbc*-par

[PATCH v5] pwm: add pwm driver for HiSilicon BVT SOCs

2016-11-16 Thread Jian Yuan
From: yuanjian Add PWM driver for the PWM controller found on HiSilicon BVT SOCs, like Hi3519V100, Hi3516CV300, etc. The PWM controller is primarily in charge of controlling P-Iris lens. Reviewed-by: Jiancheng Xue Signed-off-by: Jian Yuan --- Change Log: v5: remove the generic compatible stri

Re: [PATCH v7 04/16] drivers: iommu: make of_iommu_set/get_ops() DT agnostic

2016-11-16 Thread Lorenzo Pieralisi
Hi Joerg, On Mon, Nov 14, 2016 at 06:25:16PM +, Robin Murphy wrote: > On 14/11/16 15:52, Joerg Roedel wrote: > > On Mon, Nov 14, 2016 at 12:00:47PM +, Robin Murphy wrote: > >> If we've already made the decision to move away from bus ops, I don't > >> see that it makes sense to deliberately

Re: [upstream-release] [PATCH 1/2] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2016-11-16 Thread Scott Wood
On 11/15/2016 06:39 AM, Sriram Dash wrote: >> From: Scott Wood >> On 11/13/2016 11:27 PM, Sriram Dash wrote: >>> diff --git a/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >>> b/Documentation/devicetree/bindings/phy/phy-qoriq-usb3.txt >>> new file mode 100644 >>> index 000..d934c80 >

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-16 Thread Jerome Brunet
On Tue, 2016-11-15 at 09:03 -0800, Florian Fainelli wrote: > On 11/15/2016 08:30 AM, Andrew Lunn wrote: > > > > On Tue, Nov 15, 2016 at 03:29:12PM +0100, Jerome Brunet wrote: > > > > > > On some platforms, energy efficient ethernet with rtl8211 devices > > > is > > > causing issue, like throughpu

Re: [PATCH] mxs-auart: count FIFO overrun errors

2016-11-16 Thread Greg Kroah-Hartman
On Tue, Nov 15, 2016 at 12:05:29PM +0100, Wolfgang Ocker wrote: > The mxs-auart driver does not count FIFO overrun errors. These errors never > appear in /proc/tty/driver/ttyAPP. This is because the OERR status bit is > masked by read_status_mask in the rx interrupt function, but the > AUART_STAT_O

Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell

2016-11-16 Thread Lee Jones
On Wed, 16 Nov 2016, Johan Hovold wrote: > On Mon, Nov 14, 2016 at 06:25:01PM +, Lee Jones wrote: > > On Tue, 01 Nov 2016, Johan Hovold wrote: > > > > > Make sure to drop the reference taken by bus_find_device_by_name() > > > before returning from mfd_clone_cell(). > > > > > > Fixes: a9bbba9

Re: [PATCH 02/11] hisi_sas: alloc queue id of slot according to device id

2016-11-16 Thread John Garry
On 16/11/2016 01:41, Zhangfei Gao wrote: On Mon, Nov 7, 2016 at 8:48 PM, John Garry wrote: From: Xiang Chen Currently slots are allocated from queues in a round-robin fashion. This causes a problem for internal commands in device mode. For this mode, we should ensure that the internal abort c

[PATCH net-next v6] cadence: Add LSO support.

2016-11-16 Thread Rafal Ozieblo
New Cadence GEM hardware support Large Segment Offload (LSO): TCP segmentation offload (TSO) as well as UDP fragmentation offload (UFO). Support for those features was added to the driver. --- Changed in v2: macb_lso_check_compatibility() changed to macb_features_check() (with little modifications)

Re: [PATCH] edac: mpc85xx: implement "remove" for mpc85xx_pci_err_driver

2016-11-16 Thread Borislav Petkov
On Wed, Nov 16, 2016 at 02:26:14PM +0800, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Tested on a T4240QDS board. > > If we execute the below steps without this patch: > > 1. modprobe mpc85xx_edac [The first insmod, everything is well.] > 2. modprobe -r mpc85xx_edac > 3. modprobe

Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell

2016-11-16 Thread Johan Hovold
On Wed, Nov 16, 2016 at 09:59:44AM +, Lee Jones wrote: > On Wed, 16 Nov 2016, Johan Hovold wrote: > > > On Mon, Nov 14, 2016 at 06:25:01PM +, Lee Jones wrote: > > > On Tue, 01 Nov 2016, Johan Hovold wrote: > > > > > > > Make sure to drop the reference taken by bus_find_device_by_name() >

[PATCH] block: deal with stale req count of plug list

2016-11-16 Thread Ming Lei
In both legacy and mq path, req count of plug list is computed before allocating request, so the number can be stale when falling back to slept allocation, also the new introduced wbt can sleep too. This patch deals with the case by checking if plug list becomes empty, and fixes the KASAN report o

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Peter Zijlstra
On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: > > What should we do about things like this (bpf_prog_put() and callbacks > from kernel/bpf/syscall.c): > > > static void bpf_prog_uncharge_memlock(struct bpf_prog *prog) > { > struct user_struct *user = prog->aux->user; > >

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 09:21:51AM +0100, Greg KH wrote: > > What should we do about things like this (bpf_prog_put() and callbacks > > from kernel/bpf/syscall.c): > > > > > > static void bpf_prog_uncharge_memlock(struct bpf_prog *prog) > > { > > struct user_struct *user = prog->aux->user

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Daniel Borkmann
On 11/16/2016 09:21 AM, Greg KH wrote: On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: On Tue, Nov 15, 2016 at 12:03 AM, Peter Zijlstra wrote: On Tue, Nov 15, 2016 at 08:33:22AM +0100, Greg KH wrote: On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: --- a/drivers/b

[tip:locking/core 12/12] drivers/gpu/drm/msm/msm_gem_shrinker.c:23:2: warning: 'mutex_trylock_recursive' is deprecated

2016-11-16 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core head: 0f5225b024d4bffd682aab008c35862e8fdc1865 commit: 0f5225b024d4bffd682aab008c35862e8fdc1865 [12/12] locking/mutex, drm: Introduce mutex_trylock_recursive() config: arm64-defconfig (attached as .config) compiler:

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: > > * Kees Cook wrote: > > > On Tue, Nov 15, 2016 at 11:16 AM, Peter Zijlstra > > wrote: > > > > > > > > > On 15 November 2016 19:06:28 CET, Kees Cook wrote: > > > > > >>I'll want to modify this in the future; I have a config alread

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Greg KH
On Wed, Nov 16, 2016 at 11:10:42AM +0100, Peter Zijlstra wrote: > On Wed, Nov 16, 2016 at 09:21:51AM +0100, Greg KH wrote: > > > What should we do about things like this (bpf_prog_put() and callbacks > > > from kernel/bpf/syscall.c): > > > > > > > > > static void bpf_prog_uncharge_memlock(struct

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Greg KH
On Wed, Nov 16, 2016 at 11:11:43AM +0100, Daniel Borkmann wrote: > On 11/16/2016 09:21 AM, Greg KH wrote: > > On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: > > > On Tue, Nov 15, 2016 at 12:03 AM, Peter Zijlstra > > > wrote: > > > > On Tue, Nov 15, 2016 at 08:33:22AM +0100, Greg KH wr

Re: [PATCH v6 0/3] x86/kvm: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-16 Thread Thomas Gleixner
On Fri, 11 Nov 2016, He Chen wrote: > This patch series is going to add two new AVX512 features to KVM guest. > Since these two features are defined as scattered features in kernel, > some extra modification in kernel is included. I merged the first two patches into git://git.kernel.org/pub/sc

[tip:x86/cpufeature] x86/cpuid: Cleanup cpuid_regs definitions

2016-11-16 Thread tip-bot for He Chen
Commit-ID: 47f10a36003eaf493125a5e6687dd1ff775bfd8c Gitweb: http://git.kernel.org/tip/47f10a36003eaf493125a5e6687dd1ff775bfd8c Author: He Chen AuthorDate: Fri, 11 Nov 2016 17:25:34 +0800 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 11:13:09 +0100 x86/cpuid: Cleanup cpuid_reg

[tip:x86/cpufeature] x86/cpuid: Provide get_scattered_cpuid_leaf()

2016-11-16 Thread tip-bot for He Chen
Commit-ID: 47bdf3378d62a627cfb8a54e1180c08d67078b61 Gitweb: http://git.kernel.org/tip/47bdf3378d62a627cfb8a54e1180c08d67078b61 Author: He Chen AuthorDate: Fri, 11 Nov 2016 17:25:35 +0800 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 11:13:09 +0100 x86/cpuid: Provide get_scatt

Re: [PATCH v7 06/11] x86, paravirt: Add interface to support kvm/xen vcpu preempted check

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 12:19:09PM +0800, Pan Xinhui wrote: > Hi, Peter. > I think we can avoid a function call in a simpler way. How about below > > static inline bool vcpu_is_preempted(int cpu) > { > /* only set in pv case*/ > if (pv_lock_ops.vcpu_is_preempted) >

Re: [PATCH] usbnet: prevent device rpm suspend in usbnet_probe function

2016-11-16 Thread Kai-Heng Feng
On Mon, Nov 14, 2016 at 3:34 PM, Kai-Heng Feng wrote: > On Fri, Nov 11, 2016 at 10:44 PM, Mathias Nyman > wrote: >> On 10.11.2016 13:22, Oliver Neukum wrote: >>> >>> On Thu, 2016-11-10 at 12:09 +0100, Bjørn Mork wrote: Kai-Heng Feng writes: > > On Wed, Nov 9, 2016 at 8:32 PM, B

Re: [PATCH] staging: slicoss: fix different address space warnings

2016-11-16 Thread Dan Carpenter
This can't be right... ->shmem_data is set in slic_init_adapter() and it's not iomem. regards, dan carpenter

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
On 11/15/2016 11:46 AM, Sekhar Nori wrote: > On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: >> This adds the device tree node for the usb otg >> controller present in the da850 family of SoC's. >> This also enables the otg usb controller for the lcdk board. >> >> Signed-off-by: Alex

[PATCH v2] net/phy/vitesse: Configure RGMII skew on VSC8601, if needed

2016-11-16 Thread Alexandru Gagniuc
With RGMII, we need a 1.5 to 2ns skew between clock and data lines. The VSC8601 can handle this internally. While the VSC8601 can set more fine-grained delays, the standard skew settings work out of the box. The same heuristic is used to determine when this skew should be enabled as in vsc824x_conf

  1   2   3   4   5   6   7   8   9   10   >