Re: [PATCH] time: Avoid signed overflow in timekeeping_delta_to_ns()

2016-11-14 Thread Laurent Vivier
On 14/11/2016 20:42, Chris Metcalf wrote: > This bugfix was originally made in commit 35a4933a8959 ("time: > Avoid signed overflow in timekeeping_get_ns()"). When the code was > refactored in commit 6bd58f09e1d8 ("time: Add cycles to nanoseconds > translation") the signed overflow fix was lost.

Re: [PATCH 1/2] Staging: fsl-mc: include: mc: Kernel type 's16' preferred over 'int16_t'

2016-11-14 Thread Shiva Kerdel
-Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, November 14, 2016 4:06 AM To: Stuart Yoder Cc: Shiva Kerdel ; de...@driverdev.osuosl.org; gre...@linuxfoundation.org; linux- ker...@vger.kernel.org; Nipun Gupta ; tred...@nvidia.com; Laurentiu Tudor

Re: [PATCH RFC tip/core/rcu] SRCU rewrite

2016-11-14 Thread Peter Zijlstra
On Mon, Nov 14, 2016 at 10:36:36AM -0800, Paul E. McKenney wrote: > SRCU uses two per-cpu counters: a nesting counter to count the number of > active critical sections, and a sequence counter to ensure that the nesting > counters don't change while they are being added together in > srcu_readers_ac

[PATCH] [media] ir-hix5hd2: make hisilicon,power-syscon property deprecated

2016-11-14 Thread Jiancheng Xue
From: Ruqiang Ju The clock of IR can be provided by the clock provider and controlled by common clock framework APIs. Signed-off-by: Ruqiang Ju Signed-off-by: Jiancheng Xue --- .../devicetree/bindings/media/hix5hd2-ir.txt | 6 +++--- drivers/media/rc/ir-hix5hd2.c |

Re: [RFC][PATCH 5/7] kref: Implement kref_put_lock()

2016-11-14 Thread Peter Zijlstra
On Mon, Nov 14, 2016 at 12:35:48PM -0800, Kees Cook wrote: > On Mon, Nov 14, 2016 at 9:39 AM, Peter Zijlstra wrote: > > Because home-rolling your own is _awesome_, stop doing it. Provide > > kref_put_lock(), just like kref_put_mutex() but for a spinlock. > > > > Signed-off-by: Peter Zijlstra (Inte

Re: [RFC][PATCH 0/7] kref improvements

2016-11-14 Thread Peter Zijlstra
On Tue, Nov 15, 2016 at 08:27:42AM +0100, Greg KH wrote: > On Mon, Nov 14, 2016 at 06:39:46PM +0100, Peter Zijlstra wrote: > > This series unfscks kref and then implements it in terms of refcount_t. > > > > x86_64-allyesconfig compile tested and boot tested with my regular config. > > > > refcoun

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

2016-11-14 Thread Peter Zijlstra
On Tue, Nov 15, 2016 at 08:28:55AM +0100, Greg KH wrote: > On Mon, Nov 14, 2016 at 10:16:55AM -0800, Christoph Hellwig wrote: > > On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: > > > Since we need to change the implementation, stop exposing internals. > > > > > > Provide kref_read

Re: [RFC][PATCH 0/7] kref improvements

2016-11-14 Thread Ingo Molnar
* Greg KH wrote: > On Mon, Nov 14, 2016 at 06:39:46PM +0100, Peter Zijlstra wrote: > > This series unfscks kref and then implements it in terms of refcount_t. > > > > x86_64-allyesconfig compile tested and boot tested with my regular config. > > > > refcount_t is as per the previous thread, it

Re: [PATCH v2] tile: handle __ro_after_init like parisc does

2016-11-14 Thread Heiko Carstens
On Mon, Nov 14, 2016 at 01:12:05PM -0800, Kees Cook wrote: > At some point here, I want to collect all the arch maintainers and > discuss the options for correctly reflecting the three data > memory-protection needs we have: > > - always read-only > - read-only after init > - read-only except duri

Re: [RFC PATCH] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-11-14 Thread Juergen Gross
On 15/11/16 08:15, Jan Beulich wrote: On 15.11.16 at 07:33, wrote: >> On 15/11/16 01:11, Alex Thorlton wrote: >>> Hey everyone, >>> >>> We're having problems with large systems hitting a BUG in >>> xen_memory_setup, due to extra e820 entries created in the >>> XENMEM_machine_memory_map callba

Re: Linux 4.4.32

2016-11-14 Thread Greg KH
diff --git a/Makefile b/Makefile index 7c6f28e7a2f6..fba9b09a1330 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 31 +SUBLEVEL = 32 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c index bbe568712

Linux 4.8.8

2016-11-14 Thread Greg KH
I'm announcing the release of the 4.8.8 kernel. All users of the 4.8 kernel series must upgrade. The updated 4.8.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.8.y and can be browsed at the normal kernel.org git web browser:

Linux 4.4.32

2016-11-14 Thread Greg KH
I'm announcing the release of the 4.4.32 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.8.8

2016-11-14 Thread Greg KH
diff --git a/Makefile b/Makefile index 4d0f28cb481d..8f18daa2c76a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 8 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Psychotic Stoned Sheep diff --git a/arch/powerpc/include/asm/checksum.h b/arch/powerpc/include/a

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-14 Thread Ingo Molnar
* Namhyung Kim wrote: > > > By default it shows the individual schedule events, including the time > > > between > > > sched-in events for the task, the task scheduling delay (time between > > > wakeup > > > and actually running) and run time for the task: > > > > > >time cpu tas

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

2016-11-14 Thread Greg KH
On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: > Since we need to change the implementation, stop exposing internals. > > Provide kref_read() to read the current reference count; typically > used for debug messages. > > Kills two anti-patterns: > > atomic_read(&kref->refco

Re: [RFC][PATCH 0/7] kref improvements

2016-11-14 Thread Greg KH
On Mon, Nov 14, 2016 at 06:39:46PM +0100, Peter Zijlstra wrote: > This series unfscks kref and then implements it in terms of refcount_t. > > x86_64-allyesconfig compile tested and boot tested with my regular config. > > refcount_t is as per the previous thread, it BUGs on over-/underflow and > s

[PATCH] reset: hisilicon: add a polarity cell for reset line specifier

2016-11-14 Thread Jiancheng Xue
Add a polarity cell for reset line specifier. If the reset line is asserted when the register bit is 1, the polarity is normal. Otherwise, it is inverted. Signed-off-by: Jiancheng Xue --- .../devicetree/bindings/clock/hisi-crg.txt | 11 --- arch/arm/boot/dts/hi3519.dtsi

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

2016-11-14 Thread Greg KH
On Mon, Nov 14, 2016 at 10:16:55AM -0800, Christoph Hellwig wrote: > On Mon, Nov 14, 2016 at 06:39:48PM +0100, Peter Zijlstra wrote: > > Since we need to change the implementation, stop exposing internals. > > > > Provide kref_read() to read the current reference count; typically > > used for debu

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

2016-11-14 Thread Alexander Stein
On Monday 14 November 2016 16:12:27, Michael Walle wrote: > Since commit 87a18a6a5652 ("mmc: mmc: Use ->card_busy() to detect busy > cards in __mmc_switch()") the ESDHC driver is broken: > mmc0: Card stuck in programming state! __mmc_switch > mmc0: error -110 whilst initialising MMC card > > S

[PATCH] perf/ring_buffer: Fix invalid page order

2016-11-14 Thread Takao Indoh
In rb_alloc_aux_page(), a page order is set to MAX_ORDER when order is greater than MAX_ORDER, but page order should be less than MAX_ORDER, therefore alloc_pages_node fails at least once. This patch fixes page order so that it can be always less than MAX_ORDER. Signed-off-by: Takao Indoh --- ke

Re: [PATCH v11 10/22] vfio iommu type1: Add support for mediated devices

2016-11-14 Thread Alexey Kardashevskiy
On 15/11/16 17:33, Kirti Wankhede wrote: > > > On 11/15/2016 10:47 AM, Alexey Kardashevskiy wrote: >> On 08/11/16 17:52, Alexey Kardashevskiy wrote: >>> On 05/11/16 08:10, Kirti Wankhede wrote: VFIO IOMMU drivers are designed for the devices which are IOMMU capable. Mediated device only

Re: Patch procedure

2016-11-14 Thread Greg KH
On Mon, Nov 14, 2016 at 12:16:08PM -0500, feas wrote: > Here is how I am going about making the patches. It is basically > what I have picked up from kernel newbies among other sites > and videos on making patches. I would be greatful for any > pointers on what seems to be the problem(s) with why i

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

2016-11-14 Thread Adrian Hunter
On 14/11/16 17:12, Michael Walle wrote: > Since commit 87a18a6a5652 ("mmc: mmc: Use ->card_busy() to detect busy > cards in __mmc_switch()") the ESDHC driver is broken: > mmc0: Card stuck in programming state! __mmc_switch > mmc0: error -110 whilst initialising MMC card > > Since this commit _

Re: [Intel-gfx] [PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-11-14 Thread David Weinehall
On Mon, Nov 14, 2016 at 12:44:25PM +0200, Jani Nikula wrote: > On Thu, 06 Oct 2016, Tomeu Vizoso wrote: > > diff --git a/drivers/gpu/drm/i915/intel_display.c > > b/drivers/gpu/drm/i915/intel_display.c > > index 23a6c7213eca..7412a05fa5d9 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +

Re: [RFC PATCH] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-11-14 Thread Jan Beulich
>>> On 15.11.16 at 07:33, wrote: > On 15/11/16 01:11, Alex Thorlton wrote: >> Hey everyone, >> >> We're having problems with large systems hitting a BUG in >> xen_memory_setup, due to extra e820 entries created in the >> XENMEM_machine_memory_map callback. The change in the patch gets things >>

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

2016-11-14 Thread Greg KH
On Mon, Nov 14, 2016 at 12:46:50PM -0800, Guenter Roeck wrote: > On Mon, Nov 14, 2016 at 02:32:35PM +0200, Heikki Krogerus wrote: > > Hi Greg, > > > > On Mon, Nov 14, 2016 at 10:51:48AM +0100, Greg KH wrote: > > > On Mon, Sep 19, 2016 at 02:16:56PM +0300, Heikki Krogerus wrote: > > > > The purpose

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

2016-11-14 Thread Rafal Ozieblo
> > > If UFO is in use it should not silently disable UDP checksums. > > > > > > If you cannot support UFO with proper checksumming, then you cannot > > > enable support for that feature. > > > > According Cadence Gigabit Ethernet MAC documentation: > > > > "Hardware will not calculate the UDP

Re: [PATCH v7 2/5] mm: remove x86-only restriction of movable_node

2016-11-14 Thread Aneesh Kumar K.V
Reza Arbab writes: > In commit c5320926e370 ("mem-hotplug: introduce movable_node boot > option"), the memblock allocation direction is changed to bottom-up and > then back to top-down like this: > > 1. memblock_set_bottom_up(true), called by cmdline_parse_movable_node(). > 2. memblock_set_bottom

[PATCH] lkdtm: Prevent the compiler from optimising lkdtm_CORRUPT_STACK()

2016-11-14 Thread Michael Ellerman
At least on powerpc with GCC 6, the compiler is smart enough to optimise lkdtm_CORRUPT_STACK() into an empty function that just returns. If we print the buffer after we've written to it that prevents the compiler from optimising away data and the memset(). Signed-off-by: Michael Ellerman --- dr

Re: [PATCH] thermal/powerclamp: add back module device table

2016-11-14 Thread Greg Kroah-Hartman
On Mon, Nov 14, 2016 at 11:08:45AM -0800, Jacob Pan wrote: > Commit 3105f234e0aba43e44e277c20f9b32ee8add43d4 replaced module > cpu id table with a cpu feature check, which is logically correct. > But we need the module device table to allow module auto loading. > > Fixes:3105f234 thermal/powerclam

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-14 Thread Namhyung Kim
Hi Ingo, On Tue, Nov 15, 2016 at 07:42:14AM +0100, Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > Hello, > > > > This patchset is a rebased version of David's sched timehist work [1]. > > I plan to improve perf sched command more and think that having > > timehist command before the work l

[PATCH] clk: qcom: smd-rpm: Add msm8974 clocks

2016-11-14 Thread Bjorn Andersson
This adds all RPM based clocks for msm8974 except cxo and gfx3d_clk_src. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + drivers/clk/qcom/clk-smd-rpm.c | 71 ++ include/dt-bindings/clock/qcom,rpmcc.h

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-14 Thread Linus Walleij
On Tue, Nov 15, 2016 at 1:47 AM, Tony Lindgren wrote: > 8< > From tony Mon Sep 17 00:00:00 2001 > From: Tony Lindgren > Date: Tue, 25 Oct 2016 08:33:35 -0700 > Subject: [PATCH] pinctrl: core: Use delayed work for hogs > > Having the pin control framework call pin

Re: [PATCH v12 12/22] vfio: Add notifier callback to parent's ops structure of mdev

2016-11-14 Thread Jike Song
On 11/14/2016 11:42 PM, Kirti Wankhede wrote: > Add a notifier calback to parent's ops structure of mdev device so that per > device notifer for vfio module is registered through vfio_mdev module. > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: Iafa6f1721aecdd6e50eb93b153

Re: [kbuild-all] [Patch v6.1] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-14 Thread Fengguang Wu
Hi He Chen, On Tue, Nov 15, 2016 at 02:02:23PM +0800, He Chen wrote: On Tue, Nov 15, 2016 at 04:24:39AM +0800, kbuild test robot wrote: Hi He, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.9-rc5] [cannot apply to next-20161114] [if your patch is applied to the wrong

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-14 Thread Ingo Molnar
* Namhyung Kim wrote: > Hello, > > This patchset is a rebased version of David's sched timehist work [1]. > I plan to improve perf sched command more and think that having > timehist command before the work looks good. It seems David is busy > these days, so I'm retrying it by myself. > > Thi

Re: [PATCH] xen-platform: use builtin_pci_driver

2016-11-14 Thread Juergen Gross
On 14/11/16 13:52, Geliang Tang wrote: > Use builtin_pci_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang Reviewed-by: Juergen Gross > --- > drivers/xen/platform-pci.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/xen/platform-pci.

Re: [PATCH v2] f2fs: don't wait writeback for datas during checkpoint

2016-11-14 Thread Chao Yu
Hi Jaegeuk, On 2016/11/15 7:32, Jaegeuk Kim wrote: > Hi Chao, > > On Mon, Nov 14, 2016 at 07:04:12PM +0800, Chao Yu wrote: >> Normally, while committing checkpoint, we will wait on all pages to be >> writebacked no matter the page is data or metadata, so in scenario where >> there are lots of dat

[PATCH v2] kvm: x86: don't print warning messages for unimplemented msrs

2016-11-14 Thread Bandan Das
Change unimplemented msrs messages to use pr_debug. If CONFIG_DYNAMIC_DEBUG is set, then these messages can be enabled at run time or else -DDEBUG can be used at compile time to enable them. These messages will still be printed if ignore_msrs=1. Signed-off-by: Bandan Das --- v2: use kvm_debug_ra

Re: [PATCH v11 10/22] vfio iommu type1: Add support for mediated devices

2016-11-14 Thread Kirti Wankhede
On 11/15/2016 10:47 AM, Alexey Kardashevskiy wrote: > On 08/11/16 17:52, Alexey Kardashevskiy wrote: >> On 05/11/16 08:10, Kirti Wankhede wrote: >>> VFIO IOMMU drivers are designed for the devices which are IOMMU capable. >>> Mediated device only uses IOMMU APIs, the underlying hardware can be >>

Re: [RFC PATCH] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-11-14 Thread Juergen Gross
On 15/11/16 01:11, Alex Thorlton wrote: > Hey everyone, > > We're having problems with large systems hitting a BUG in > xen_memory_setup, due to extra e820 entries created in the > XENMEM_machine_memory_map callback. The change in the patch gets things > working, but Boris and I wanted to get opi

Re: [PATCH -tip v2 2/6] selftests: ftrace: Initialize ftrace before each test

2016-11-14 Thread Masami Hiramatsu
On Mon, 14 Nov 2016 13:12:00 -0500 Steven Rostedt wrote: > On Sun, 30 Oct 2016 15:54:10 +0900 > Masami Hiramatsu wrote: > > > 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 fa

Re: kvm: deadlock between kvm_vm_ioctl_get_dirty_log/kvm_hv_set_msr_common/kvm_create_pit

2016-11-14 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 7:27 AM, Dmitry Vyukov wrote: > Hello, > > The following program produces a deadlocked, unkillable process: > https://gist.githubusercontent.com/dvyukov/fb7e93f6618f4eccb84d419ea6cec491/raw/a14b60250e593eb1b61f50cead41059dc49ceff2/gistfile1.txt > > > # cat /proc/9362/task/*

kvm: deadlock between kvm_vm_ioctl_get_dirty_log/kvm_hv_set_msr_common/kvm_create_pit

2016-11-14 Thread Dmitry Vyukov
Hello, The following program produces a deadlocked, unkillable process: https://gist.githubusercontent.com/dvyukov/fb7e93f6618f4eccb84d419ea6cec491/raw/a14b60250e593eb1b61f50cead41059dc49ceff2/gistfile1.txt # cat /proc/9362/task/*/stack [] __synchronize_srcu+0x2f8/0x4a0 kernel/rcu/srcu.c:448 []

[PATCH] kvm: x86: don't print warning messages for unimplemented msrs

2016-11-14 Thread Bandan Das
Change unimplemented msrs messages to use pr_debug. If CONFIG_DYNAMIC_DEBUG is set, then these messages can be enabled at run time or else -DDEBUG can be used at compile time to enable them. These messages will still be printed if ignore_msrs=1. Signed-off-by: Bandan Das --- This is a follow up

[GIT PULL] arch/tile bugfix for 4.9-rc6

2016-11-14 Thread Chris Metcalf
Linus, Please pull the following change for 4.9-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git stable This just fixes an incompatibility with tile __ro_after_init. Chris Metcalf (1): tile: handle __ro_after_init like parisc does arch/tile/include/asm/ca

Re: [PATCH 2/3] qemu: Implement virtio-pstore device

2016-11-14 Thread Namhyung Kim
On Fri, Nov 11, 2016 at 12:50:03AM +0200, Michael S. Tsirkin wrote: > On Fri, Sep 16, 2016 at 07:05:47PM +0900, Namhyung Kim wrote: > > On Tue, Sep 13, 2016 at 06:57:10PM +0300, Michael S. Tsirkin wrote: > > > On Sat, Aug 20, 2016 at 05:07:43PM +0900, Namhyung Kim wrote: > > > > + > > > > +/* the i

Re: [RFC PATCH] x86/debug: Dump more detailed segfault info

2016-11-14 Thread Ingo Molnar
* Borislav Petkov wrote: > On Sun, Nov 13, 2016 at 12:25:52PM +0100, Borislav Petkov wrote: > > Hmm, enabling all *PRINTK* options from your .config doesn't change > > anything for my qemu guest here. Lemme try with your full config. > > Same with your .config: > > [ 115.694717] strsep[3027]:

Re: perf: fuzzer KASAN slab-out-of-bounds in snb_uncore_imc_event_del

2016-11-14 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 6:57 AM, Vince Weaver wrote: > On Mon, 14 Nov 2016, Vince Weaver wrote: > >> Anyway as per the suggestion at Linux Plumbers I enabled KASAN and on my >> haswell machine it falls over in a few minutes of running the perf_fuzzer. >> >> [ 205.740194] >> =

[PATCH v5 2/5] wcn36xx: Transition driver to SMD client

2016-11-14 Thread Bjorn Andersson
The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD channel, as such it should be a SMD client. This patch makes this transition, now that we have the necessary frameworks available. Signed-off-by: Bjorn Andersson --- Changes since v4: - Added Kconfig dependency to handle depende

[PATCH v5 4/5] wcn36xx: Implement print_reg indication

2016-11-14 Thread Bjorn Andersson
Some firmware versions sends a "print register indication", handle this by printing out the content. Cc: Nicolas Dechesne Signed-off-by: Bjorn Andersson --- Changes since v4: - None drivers/net/wireless/ath/wcn36xx/hal.h | 16 drivers/net/wireless/ath/wcn36xx/smd.c | 30 +

[PATCH v5 3/5] wcn36xx: Implement firmware assisted scan

2016-11-14 Thread Bjorn Andersson
Using the software based channel scan mechanism from mac80211 keeps us offline for 10-15 second, we should instead issue a start_scan/end_scan on each channel reducing this time. Signed-off-by: Bjorn Andersson --- Changes since v4: - None drivers/net/wireless/ath/wcn36xx/main.c| 64 +++

[PATCH v5 1/5] soc: qcom: smem_state: Fix include for ERR_PTR()

2016-11-14 Thread Bjorn Andersson
The correct include file for getting errno constants and ERR_PTR() is linux/err.h, rather than linux/errno.h, so fix the include. Fixes: e8b123e60084 ("soc: qcom: smem_state: Add stubs for disabled smem_state") Acked-by: Andy Gross Signed-off-by: Bjorn Andersson --- Kalle, please merge this pat

[PATCH v5 5/5] wcn36xx: Don't use the destroyed hal_mutex

2016-11-14 Thread Bjorn Andersson
ieee80211_unregister_hw() might invoke operations to stop the interface, that uses the hal_mutex. So don't destroy it until after we're done using it. Signed-off-by: Bjorn Andersson --- With this patch I can successfully (although with a SMD send timeout in the shutdown path) start and stop the

[PATCH v5 2/4] x86: add support for earlyprintk via USB3 debug port

2016-11-14 Thread Lu Baolu
Add support for early printk by writing debug messages to the USB3 debug port. Users can use this type of early printk by specifying kernel parameter of "earlyprintk=xdbc". This gives users a chance of providing debug output. The hardware for USB3 debug port requires DMA memory blocks. This requ

Re: [PATCH v18 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-11-14 Thread Archit Taneja
Hi, On 11/14/2016 07:11 PM, Jitao Shi wrote: This patch adds drm_bridge driver for parade DSI to eDP bridge chip. Thanks for the incorporating the fixes. I have commented on one issue below. The only thing that seems to be left now is the firmware update bits, right? Can we get the firmware

Re: [Patch v6.1] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-14 Thread He Chen
On Tue, Nov 15, 2016 at 04:24:39AM +0800, kbuild test robot wrote: > Hi He, > > [auto build test ERROR on kvm/linux-next] > [also build test ERROR on v4.9-rc5] > [cannot apply to next-20161114] > [if your patch is applied to the wrong git tree, please drop us a note to > he

[PATCH v5 0/4] usb: early: add support for early printk through USB3 debug port

2016-11-14 Thread Lu Baolu
xHCI debug capability (DbC) is an optional but standalone functionality provided by an xHCI host controller. With DbC hardware initialized, the system will present a debug device through the USB3 debug port (normally the first USB3 port). The debug device is fully compliant with the USB framework a

[PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2016-11-14 Thread Lu Baolu
xHCI debug capability (DbC) is an optional but standalone functionality provided by an xHCI host controller. Software learns this capability by walking through the extended capability list of the host. xHCI specification describes DbC in section 7.6. This patch introduces the code to probe and ini

[PATCH v5 4/4] usb: doc: add document for USB3 debug port usage

2016-11-14 Thread Lu Baolu
Add Documentation/usb/usb3-debug-port.rst. This document includes the user guide for USB3 debug port. Cc: linux-...@vger.kernel.org Signed-off-by: Lu Baolu --- Documentation/usb/usb3-debug-port.rst | 95 +++ 1 file changed, 95 insertions(+) create mode 100644 Doc

[PATCH v5 3/4] usb: serial: usb_debug: add support for dbc debug device

2016-11-14 Thread Lu Baolu
This patch add dbc debug device support in usb_debug driver. Signed-off-by: Lu Baolu Acked-by: Johan Hovold --- drivers/usb/serial/usb_debug.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/us

Re: perf: fuzzer KASAN slab-out-of-bounds in snb_uncore_imc_event_del

2016-11-14 Thread Vince Weaver
On Mon, 14 Nov 2016, Vince Weaver wrote: > Anyway as per the suggestion at Linux Plumbers I enabled KASAN and on my > haswell machine it falls over in a few minutes of running the perf_fuzzer. > > [ 205.740194] > == > [ 205.74800

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-11-14 Thread Namhyung Kim
On Tue, Nov 15, 2016 at 07:06:28AM +0200, Michael S. Tsirkin wrote: > On Tue, Nov 15, 2016 at 01:50:21PM +0900, Namhyung Kim wrote: > > On Thu, Nov 10, 2016 at 06:39:55PM +0200, Michael S. Tsirkin wrote: > > [SNIP] > > > > +struct virtio_pstore_fileinfo { > > > > + __virtio64 id;

Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for e5500/e6500

2016-11-14 Thread Scott Wood
On Fri, 2016-10-07 at 11:00 +0200, David Engraf wrote: > Am 27.09.2016 um 01:08 schrieb Scott Wood: > > > > On Mon, 2016-09-26 at 10:48 +0200, David Engraf wrote: > > > > > > Am 25.09.2016 um 08:20 schrieb Scott Wood: > > > > > > > > > > > > On Mon, Aug 22, 2016 at 04:46:43PM +0200, David Engra

[PATCH v2 1/2] Input: synaptics-rmi4 - add support for F55 sensor tuning

2016-11-14 Thread Guenter Roeck
Sensor tuning support is needed to determine the number of enabled tx and rx electrodes for use in F54 functions. The number of enabled electrodes is not identical to the total number of electrodes as reported with F55:Query0 and F55:Query1. It has to be calculated by analyzing F55:Ctrl1 (sensor r

[PATCH v2 2/2] Input: synaptics-rmi4 - Propagate correct number of rx and tx electrodes to F54

2016-11-14 Thread Guenter Roeck
F54 diagnostics report functions provide data based on the number of enabled rx and tx electrodes, which is not identical to the number of electrodes reported with F54:Query0 and F54:Query1. Those values report the number of supported electrodes, not the number of enabled electrodes. The number of

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:30 PM, Dmitry Vyukov wrote: > > On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: >> >>> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >>> >>> Hello, >>> >>> The following program triggers WARNING in em_jmp_far: >>> https://gist.githubusercontent.com/dvyukov/16b

Re: [PATCH 00/34] perf clang: Builtin clang and perfhook support

2016-11-14 Thread Wangnan (F)
On 2016/11/15 13:21, Alexei Starovoitov wrote: On Mon, Nov 14, 2016 at 9:03 PM, Wangnan (F) wrote: On 2016/11/15 12:57, Alexei Starovoitov wrote: On Mon, Nov 14, 2016 at 8:05 PM, Wang Nan wrote: This is version 2 of perf builtin clang patch series. Compare to v1, add an exciting feature:

Re: [PATCH v6 0/9] tpm: cleanup/fixes in existing event log support

2016-11-14 Thread Nayna
On 11/15/2016 07:45 AM, Jarkko Sakkinen wrote: On Mon, Nov 14, 2016 at 04:25:14PM -0800, Jarkko Sakkinen wrote: On Mon, Nov 14, 2016 at 02:33:23PM -0800, Jarkko Sakkinen wrote: On Mon, Nov 14, 2016 at 05:00:47AM -0500, Nayna Jain wrote: This patch set includes the cleanup and bug fixes patch

kvm: WARNING in rtc_status_pending_eoi_check_valid

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in rtc_status_pending_eoi_check_valid: https://gist.githubusercontent.com/dvyukov/1bd04c1b36a0c2da13c6da386e1e8c08/raw/c22c7dfa28604bd2920e1c135cfff2cb2acf8bed/gistfile1.txt On commit a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (Nov 13) Disabled LAPIC

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: > > Hello, > > The following program triggers WARNING in em_jmp_far: > https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt > > > WARNING: CPU: 1 PID: 15748 a

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: > >> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers WARNING in em_jmp_far: >> https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d32

Re: [PATCH v3] soc: qcom: Add SoC info driver

2016-11-14 Thread Bjorn Andersson
On Mon 14 Nov 06:30 PST 2016, Imran Khan wrote: > On 11/8/2016 1:05 AM, Bjorn Andersson wrote: > > On Mon 07 Nov 06:35 PST 2016, Imran Khan wrote: > > > > > > > > [..] > > > +static void socinfo_populate(struct soc_device_attribute *soc_dev_attr) > +{ > +u32 soc_version

Re: [PATCH v12 09/22] vfio iommu type1: Add task structure to vfio_dma

2016-11-14 Thread Alexey Kardashevskiy
On 15/11/16 02:42, Kirti Wankhede wrote: > Add task structure to vfio_dma structure. > During DMA_UNMAP, same task who mapped it or other task who shares same > address space is allowed to unmap, otherwise unmap fails. > QEMU maps few iova ranges initially, then fork threads and from the child > th

Re: [PATCH 00/34] perf clang: Builtin clang and perfhook support

2016-11-14 Thread Alexei Starovoitov
On Mon, Nov 14, 2016 at 9:03 PM, Wangnan (F) wrote: > > > On 2016/11/15 12:57, Alexei Starovoitov wrote: >> >> On Mon, Nov 14, 2016 at 8:05 PM, Wang Nan wrote: >>> >>> This is version 2 of perf builtin clang patch series. Compare to v1, >>> add an exciting feature: jit compiling perf hook functio

Re: [PATCH v2 2/2] ARM: dts: apq8064: add support to pm8821

2016-11-14 Thread Bjorn Andersson
On Mon 14 Nov 09:52 PST 2016, Srinivas Kandagatla wrote: Acked-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Srinivas Kandagatla > --- > arch/arm/boot/dts/qcom-apq8064.dtsi | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-apq8

Re: [PATCH v11 10/22] vfio iommu type1: Add support for mediated devices

2016-11-14 Thread Alexey Kardashevskiy
On 08/11/16 17:52, Alexey Kardashevskiy wrote: > On 05/11/16 08:10, Kirti Wankhede wrote: >> VFIO IOMMU drivers are designed for the devices which are IOMMU capable. >> Mediated device only uses IOMMU APIs, the underlying hardware can be >> managed by an IOMMU domain. >> >> Aim of this change is: >

Re: [PATCH] tpm: drop chip->is_open and chip->duration_adjusted

2016-11-14 Thread Jarkko Sakkinen
On Mon, Nov 14, 2016 at 09:30:01PM -0700, Jason Gunthorpe wrote: > On Mon, Nov 14, 2016 at 03:44:58PM -0800, Jarkko Sakkinen wrote: > > Use atomic bitops for chip->flags so that we do not need chip->is_open > > and chip->duration_adjusted anymore. > > I don't know if it s a really great idea to us

Re: [PATCH 3/3] soc: fsl: make guts driver explicitly non-modular

2016-11-14 Thread Scott Wood
On Sun, 2016-11-13 at 14:03 -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/soc/fsl/Kconfig:config FSL_GUTS > drivers/soc/fsl/Kconfig:bool > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove

kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in em_jmp_far: https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt WARNING: CPU: 1 PID: 15748 at arch/x86/kvm/emulate.c:2128 em_jmp_far+0x4a7/0x530 Kernel panic - not

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-11-14 Thread Michael S. Tsirkin
On Tue, Nov 15, 2016 at 01:50:21PM +0900, Namhyung Kim wrote: > Hi Michael, > > On Thu, Nov 10, 2016 at 06:39:55PM +0200, Michael S. Tsirkin wrote: > > On Sat, Aug 20, 2016 at 05:07:42PM +0900, Namhyung Kim wrote: > > > The virtio pstore driver provides interface to the pstore subsystem so > > > t

Re: [PATCH 00/34] perf clang: Builtin clang and perfhook support

2016-11-14 Thread Wangnan (F)
On 2016/11/15 12:57, Alexei Starovoitov wrote: On Mon, Nov 14, 2016 at 8:05 PM, Wang Nan wrote: This is version 2 of perf builtin clang patch series. Compare to v1, add an exciting feature: jit compiling perf hook functions. This features allows script writer report result through BPF map in

Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-11-14 Thread Peter Chen
On Tue, Nov 15, 2016 at 08:35:13AM +1100, NeilBrown wrote: > On Mon, Nov 14 2016, Mark Brown wrote: > > > On Mon, Nov 14, 2016 at 03:21:13PM +1100, NeilBrown wrote: > >> On Thu, Nov 10 2016, Baolin Wang wrote: > > > >> > Fourth, we need integrate all charger plugin/out > >> > event in one framewor

Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration

2016-11-14 Thread Naoya Horiguchi
On Mon, Nov 14, 2016 at 02:45:03PM +0300, Kirill A. Shutemov wrote: > On Tue, Nov 08, 2016 at 08:31:50AM +0900, Naoya Horiguchi wrote: > > This patch prepares thp migration's core code. These code will be open when > > unmap_and_move() stops unconditionally splitting thp and get_new_page() > > sta

Re: [PATCH 00/34] perf clang: Builtin clang and perfhook support

2016-11-14 Thread Alexei Starovoitov
On Mon, Nov 14, 2016 at 8:05 PM, Wang Nan wrote: > This is version 2 of perf builtin clang patch series. Compare to v1, > add an exciting feature: jit compiling perf hook functions. This > features allows script writer report result through BPF map in a > customized way. looks great. > SEC("pe

kvm: GPF in kvm_ioapic_set_irq

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers GPF in kvm_ioapic_set_irq: https://gist.githubusercontent.com/dvyukov/9070377a9fdd685d4496972363b35ec5/raw/bfa9fc85736b6d4993138b945ddfa1b7f3432afc/gistfile1.txt general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN Dumping ftrace buffer: (ftrace

Re: [PATCH v3 05/46] perf/x86/intel/cmt: add per-package locks

2016-11-14 Thread David Carrillo-Cisneros
> Also, "monr" is a horribly 'word'. What makes it so bad? (honest question) . Some alternatives: - res_mon, resm, rmon (Resource Monitor) - rmnode, rnode, rmon_node (Resource Monitoring node, similar to Resource Monitor ID, but to reflect that it's a node in a tree/hierarchy) - rdt_mon, rdtm (s

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-11-14 Thread Namhyung Kim
Hi Michael, On Thu, Nov 10, 2016 at 06:39:55PM +0200, Michael S. Tsirkin wrote: > On Sat, Aug 20, 2016 at 05:07:42PM +0900, Namhyung Kim wrote: > > The virtio pstore driver provides interface to the pstore subsystem so > > that the guest kernel's log/dump message can be saved on the host > > machi

Disable all network protocols on an interface?

2016-11-14 Thread Ed Swierk
I have a Linux kernel 4.4 system hosting a number of kvm VMs. Physical interface eth0 connects to an 802.1Q trunk port on an external switch. Each VM has a virtual interface (e1000 or virtio-net) connected to the physical NIC through a macvtap interface and a VLAN interface; traffic between the

mm: BUG in munlock_vma_pages_range

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers BUG in munlock_vma_pages_range: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include int main() { mmap((void*)0x20105000ul, 0xc0ul, 0x2ul, 0x2172ul, -1, 0); mremap((void*)0x201fd000ul, 0x4000ul, 0xc0ul, 0x3ul, 0x203ful

Re: [PATCH 00/34] perf clang: Builtin clang and perfhook support

2016-11-14 Thread Wangnan (F)
On 2016/11/15 12:05, Wang Nan wrote: $ sudo -s # ulimit -l unlimited # perf record -e ./count_syscalls.c echo "Haha" Start count, perfpid=25209 Haha [ perf record: Woken up 1 times to write data ] syscall 8count: 6 syscall 11 count: 1 syscall 4count: 6 sy

Re: [PATCH] tpm: drop chip->is_open and chip->duration_adjusted

2016-11-14 Thread Jason Gunthorpe
On Mon, Nov 14, 2016 at 03:44:58PM -0800, Jarkko Sakkinen wrote: > Use atomic bitops for chip->flags so that we do not need chip->is_open > and chip->duration_adjusted anymore. I don't know if it s a really great idea to use atomic bit ops for things that do not need to be atomic.. It makes the lo

[PATCH 06/34] tools lib bpf: Add private field for bpf_object

2016-11-14 Thread Wang Nan
Like other classes defined in libbpf.h (like map and program), allow 'object' class has its own private data. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Li Zefan --- tools/lib/bpf/libbpf.c | 23 +++ tools/lib/bpf/libbpf.h | 5 + 2

[PATCH 11/34] tools build: Add feature detection for LLVM

2016-11-14 Thread Wang Nan
Check if basic LLVM compiling environment is ready. Use llvm-config to detect include and library directories. Avoid using 'llvm-config --cxxflags' because its result contain some unwanted flags like --sysroot (if LLVM is built by yocto). Use '?=' to set LLVM_CONFIG, so explicitly passing LLVM_CO

[PATCH 01/34] perf tools: Fix kernel version error in ubuntu

2016-11-14 Thread Wang Nan
On ubuntu the internal kernel version code is different from what can be retrived from uname: $ uname -r 4.4.0-47-generic $ cat /lib/modules/`uname -r`/build/include/generated/uapi/linux/version.h #define LINUX_VERSION_CODE 263192 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

[PATCH 08/34] perf tools: Introduce perf hooks

2016-11-14 Thread Wang Nan
Perf hooks allow hooking user code at perf events. They can be used for manipulation of BPF maps, taking snapshot and reporting results. In this patch two perf hook points are introduced: record_start and record_end. To avoid buggy user actions, a SIGSEGV signal handler is introduced into 'perf re

[PATCH 15/34] perf clang: Use real file system for #include

2016-11-14 Thread Wang Nan
Utilize clang's OverlayFileSystem facility, allow CompilerInstance to access real file system. With this patch '#include' directive can be used. Add a new getModuleFromSource for real file. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa

[PATCH 05/34] tools lib bpf: Add missing bpf map functions

2016-11-14 Thread Wang Nan
Add more BPF map operations to libbpf. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Li Zefan --- tools/lib/bpf/bpf.c | 56 + tools/lib/bpf/bpf.h | 7 +++ 2 files changed, 63 insertions(+) diff --git a

[PATCH 10/34] perf llvm: Extract helpers in llvm-utils.c

2016-11-14 Thread Wang Nan
Following commits will use builtin clang to compile BPF script. llvm__get_kbuild_opts() and llvm__get_nr_cpus() are extracted to help building '-DKERNEL_VERSION_CODE' and '-D__NR_CPUS__' macros. Doing object dumping in bpf loader, so futher builtin clang compiling needn't consider it. Signed-off-

  1   2   3   4   5   6   7   8   9   10   >