[tip:x86/timers] x86/tsc: Validate TSC_ADJUST after resume

2016-12-15 Thread tip-bot for Thomas Gleixner
Commit-ID: 6a369583178d0b89c2c3919c4456ee22fee0f249 Gitweb: http://git.kernel.org/tip/6a369583178d0b89c2c3919c4456ee22fee0f249 Author: Thomas Gleixner AuthorDate: Tue, 13 Dec 2016 13:14:17 + Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 11:44:29 +0100 x86/tsc: Validate TS

[tip:x86/timers] x86/tsc: Force TSC_ADJUST register to value >= zero

2016-12-15 Thread tip-bot for Thomas Gleixner
Commit-ID: 5bae156241e05d25171b18ee43e49f103c3f8097 Gitweb: http://git.kernel.org/tip/5bae156241e05d25171b18ee43e49f103c3f8097 Author: Thomas Gleixner AuthorDate: Tue, 13 Dec 2016 13:14:17 + Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 11:44:29 +0100 x86/tsc: Force TSC_A

Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches

2016-12-15 Thread Bartosz Golaszewski
2016-12-14 18:36 GMT+01:00 Jonathan Cameron : > > > On 14 December 2016 16:58:21 GMT+00:00, Bartosz Golaszewski > wrote: >>2016-12-13 20:27 GMT+01:00 Rob Herring : >>> On Sun, Dec 11, 2016 at 11:21:44PM +0100, Bartosz Golaszewski wrote: Some boards are equipped with simple, GPIO-driven power

Re: [Intel-gfx] [PATCH] drm/i915: use udelay for very short delays

2016-12-15 Thread Nicholas Mc Guire
On Thu, Dec 15, 2016 at 10:27:59AM +0100, Daniel Vetter wrote: > On Thu, Dec 15, 2016 at 10:25:19AM +0100, Daniel Vetter wrote: > > On Thu, Dec 15, 2016 at 11:08:49AM +0200, Jani Nikula wrote: > > > On Thu, 15 Dec 2016, Nicholas Mc Guire wrote: > > > > Even on fast systems a 2 microsecond delay is

Re: [PATCH] drm/i915: use udelay for very short delays

2016-12-15 Thread Nicholas Mc Guire
On Thu, Dec 15, 2016 at 12:20:01PM +0200, Jani Nikula wrote: > On Thu, 15 Dec 2016, Ville Syrjälä wrote: > > On Thu, Dec 15, 2016 at 11:52:34AM +0200, Jani Nikula wrote: > >> On Thu, 15 Dec 2016, Nicholas Mc Guire wrote: > >> > On Thu, Dec 15, 2016 at 11:08:49AM +0200, Jani Nikula wrote: > >> >>

[PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h

2016-12-15 Thread Corentin Labbe
This patch move the define for IRNET_MINOR to include/linux/miscdevice.h It is better that all minor number definitions are in the same place. Signed-off-by: Corentin Labbe --- include/linux/miscdevice.h | 1 + net/irda/irnet/irnet_ppp.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) dif

[PATCH 1/5] irda: irproc.c: Remove unneeded linux/miscdevice.h include

2016-12-15 Thread Corentin Labbe
irproc.c does not use any miscdevice so this patch remove this unnecessary inclusion. Signed-off-by: Corentin Labbe --- net/irda/irproc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/irda/irproc.c b/net/irda/irproc.c index b9ac598..77cfdde 100644 --- a/net/irda/irproc.c +++ b/net/irda/

[PATCH 5/5] irda: irnet: add member name to the miscdevice declaration

2016-12-15 Thread Corentin Labbe
Since the struct miscdevice have many members, it is dangerous to init it without members name relying only on member order. This patch add member name to the init declaration. Signed-off-by: Corentin Labbe --- net/irda/irnet/irnet_ppp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

Re: [PATCH 00/26] drm/omap: Convert to use videomode from omap_video_timings

2016-12-15 Thread Tomi Valkeinen
On 14/12/16 23:32, Laurent Pinchart wrote: > Hi Peter, > > On Thursday 01 Sep 2016 14:22:54 Peter Ujfalusi wrote: >> Hi, >> >> The following series will convert the omapdrm stack to use the generic >> videmode instead of the private omap_video_timings struct for the panel >> information. >> >> Sin

RE: [PATCH v2 1/4] siphash: add cryptographically secure hashtable function

2016-12-15 Thread David Laight
From: Hannes Frederic Sowa > Sent: 14 December 2016 22:03 > On 14.12.2016 13:46, Jason A. Donenfeld wrote: > > Hi David, > > > > On Wed, Dec 14, 2016 at 10:56 AM, David Laight > > wrote: > >> ... > >>> +u64 siphash24(const u8 *data, size_t len, const u8 > >>> key[SIPHASH24_KEY_LEN]) > >> ... > >

Re: [PATCH v1 1/2] firmware: dmi_scan: Split out dmi_get_entry_point() helper

2016-12-15 Thread Jean Delvare
Hi Andy, On Fri, 2 Dec 2016 21:54:15 +0200, Andy Shevchenko wrote: > This is preparatory patch to pass DMI entry point to kexec'ed kernel. You are doing more than that. You are actually changing the logic. There is this comment in the code: * [...] If we * have

[PATCH] Update Nanobone dts file to add external FRAM chip

2016-12-15 Thread Mark Jackson
>From v4.2+ the GPMC code has been changed to reset all the bootloader GPMC settings when the kernel starts. As such, this DTS file now needs the external FRAM defined. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 31 ++- 1 file changed, 30 ins

Re: Tearing down DMA transfer setup after DMA client has finished

2016-12-15 Thread Mark Brown
On Fri, Dec 09, 2016 at 07:23:17PM +0100, Mason wrote: > On 09/12/2016 18:56, Vinod Koul wrote: > > Right, but in that case the fallback would be PIO mode, and if that is > > not availble (IIRC some f your devices don't) then reject the usage with > > EAGAIN. > Maybe I'm missing something, but I

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-15 Thread Hannes Frederic Sowa
On 15.12.2016 03:06, Nicholas Piggin wrote: > On Wed, 14 Dec 2016 15:04:36 +0100 > Hannes Frederic Sowa wrote: > >> On 09.12.2016 17:03, Greg Kroah-Hartman wrote: >>> On Sat, Dec 10, 2016 at 01:56:53AM +1000, Nicholas Piggin wrote: On Fri, 9 Dec 2016 15:36:04 +0100 Stanislav Kozina w

Re: [PATCH 2/2] xilinx_dma: Add reset support

2016-12-15 Thread Ramiro Oliveira
Hi Laurent, Thank you for your feedback. On 12/14/2016 8:16 PM, Laurent Pinchart wrote: > Hi Ramiro, > > Thank you for the patch. > > On Wednesday 14 Dec 2016 17:18:24 Ramiro Oliveira wrote: >> Add a DT property to control an optional external reset line >> >> Signed-off-by: Ramiro Oliveira >>

Re: [PATCH v1 2/2] firmware: dmi_scan: Pass dmi_entry_point to kexec'ed kernel

2016-12-15 Thread Jean Delvare
Hi Andy, On Fri, 2 Dec 2016 21:54:16 +0200, Andy Shevchenko wrote: > Until now kexec'ed kernel has no clue where to look for DMI entry point. > > Pass it via kernel command line parameter in the same way as it's done for > ACPI > RSDP. I am no kexec expert but this confuses me. Shouldn't the s

Re: [RFD] sched/deadline: Support single CPU affinity

2016-12-15 Thread Tommaso Cucinotta
Hi Peter, On 13/12/2016 11:21, Peter Zijlstra wrote: On Thu, Nov 10, 2016 at 11:01:59AM +0100, Tommaso Cucinotta wrote: Just a note: if you want to recover arbitrary task affinities, you can re-cast your above test like this: for_each_processor(cpu) \sum U[t]/A[t] \leq 1 (or U_max), for ea

[tip:timers/urgent] tick/broadcast: Prevent NULL pointer dereference

2016-12-15 Thread tip-bot for Thomas Gleixner
Commit-ID: c1a9eeb938b5433947e5ea22f89baff3182e7075 Gitweb: http://git.kernel.org/tip/c1a9eeb938b5433947e5ea22f89baff3182e7075 Author: Thomas Gleixner AuthorDate: Thu, 15 Dec 2016 12:10:37 +0100 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 12:25:13 +0100 tick/broadcast: Prev

Re: [PATCH v2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2016-12-15 Thread Emmanuel Vadot
Hi Maxime, On Wed, 14 Dec 2016 16:30:13 +0100 Maxime Ripard wrote: > On Wed, Dec 14, 2016 at 03:57:24PM +0100, Emmanuel Vadot wrote: > > The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. > > This makes the original node (mmc2_pins_a) scrapped out of the dtb and > > result

[PATCH net-next] ixgbevf: fix 'Etherleak' in ixgbevf

2016-12-15 Thread Weilong Chen
Nessus report the vf appears to leak memory in network packets. Fix this by padding all small packets manually. And the CVE-2003-0001. https://ofirarkin.files.wordpress.com/2008/11/atstake_etherleak_report.pdf Signed-off-by: Weilong Chen --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 7

[tip:irq/urgent] genirq/affinity: Fix node generation from cpumask

2016-12-15 Thread tip-bot for Guilherme G. Piccoli
Commit-ID: c0af52437254fda8b0cdbaae5a9b6d9327f1fcd5 Gitweb: http://git.kernel.org/tip/c0af52437254fda8b0cdbaae5a9b6d9327f1fcd5 Author: Guilherme G. Piccoli AuthorDate: Wed, 14 Dec 2016 16:01:12 -0200 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 12:32:35 +0100 genirq/affinity

Re: [Intel-gfx] [PATCH] drm/i915: use udelay for very short delays

2016-12-15 Thread Daniel Vetter
On Thu, Dec 15, 2016 at 11:51 AM, Nicholas Mc Guire wrote: > On Thu, Dec 15, 2016 at 10:27:59AM +0100, Daniel Vetter wrote: >> On Thu, Dec 15, 2016 at 10:25:19AM +0100, Daniel Vetter wrote: >> > On Thu, Dec 15, 2016 at 11:08:49AM +0200, Jani Nikula wrote: >> > > On Thu, 15 Dec 2016, Nicholas Mc Gu

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2016-12-15 Thread Jon Hunter
On 29/11/16 11:33, Marek Szyprowski wrote: > Hi Stephen, > > Thanks for pointing to my patches, but I would like to clarify a few > things. > > On 2016-11-24 03:30, Stephen Boyd wrote: >> On 11/22, Jon Hunter wrote: >>> On 22/11/16 18:26, Kevin Hilman wrote: Jon Hunter writes: > Howeve

RFC: capabilities(7): notes for kernel developers

2016-12-15 Thread Michael Kerrisk (man-pages)
Hello all, Because the topic every now then comes up "which capability should I associate with the new feature that I'm adding to the kernel?", I propose to add the text below to the capabilities(7) man page [1] with some recommendations on how to go about choosing. I would be happy to get feed

[tip:smp/urgent] clocksource/dummy_timer: Move hotplug callback after the real timers

2016-12-15 Thread tip-bot for Thomas Gleixner
Commit-ID: 9bf11ecce5a2758e5a097c2f3a13d08552d0d6f9 Gitweb: http://git.kernel.org/tip/9bf11ecce5a2758e5a097c2f3a13d08552d0d6f9 Author: Thomas Gleixner AuthorDate: Thu, 15 Dec 2016 12:01:05 +0100 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 12:09:20 +0100 clocksource/dummy_ti

[PATCH 4/5] irda: irnet: Remove unused IRNET_MAJOR define

2016-12-15 Thread Corentin Labbe
The IRNET_MAJOR define is not used, so this patch remove it. Signed-off-by: Corentin Labbe --- net/irda/irnet/irnet_ppp.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/irda/irnet/irnet_ppp.h b/net/irda/irnet/irnet_ppp.h index 18fcead..ec092c9 100644 --- a/net/irda/irnet/irnet_ppp.h +

Re: [RFC v2 1/5] rcu: Introduce for_each_leaf_node_cpu()

2016-12-15 Thread Mark Rutland
On Thu, Dec 15, 2016 at 10:42:00AM +0800, Boqun Feng wrote: > There are some places inside RCU core, where we need to iterate all mask > (->qsmask, ->expmask, etc) bits in a leaf node, in order to iterate all > corresponding CPUs. The current code iterates all possible CPUs in this > leaf node and

Re: [PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h

2016-12-15 Thread Greg KH
On Thu, Dec 15, 2016 at 11:42:48AM +0100, Corentin Labbe wrote: > This patch move the define for IRNET_MINOR to include/linux/miscdevice.h > It is better that all minor number definitions are in the same place. > > Signed-off-by: Corentin Labbe > --- > include/linux/miscdevice.h | 1 + > net/ird

[tip:x86/urgent] x86/smpboot: Prevent false positive out of bounds cpumask access warning

2016-12-15 Thread tip-bot for Thomas Gleixner
Commit-ID: 427d77a32365d5f942d335248305a5c237baf63a Gitweb: http://git.kernel.org/tip/427d77a32365d5f942d335248305a5c237baf63a Author: Thomas Gleixner AuthorDate: Tue, 13 Dec 2016 19:32:28 +0100 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 11:32:31 +0100 x86/smpboot: Prevent

[tip:x86/urgent] ACPI/NUMA: Do not map pxm to node when NUMA is turned off

2016-12-15 Thread tip-bot for Boris Ostrovsky
Commit-ID: aec03f89e905dca9ce4b061e03ee1da3a3eb3432 Gitweb: http://git.kernel.org/tip/aec03f89e905dca9ce4b061e03ee1da3a3eb3432 Author: Boris Ostrovsky AuthorDate: Mon, 12 Dec 2016 23:18:29 -0500 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 11:32:32 +0100 ACPI/NUMA: Do not ma

Re: [PATCH 8/8] Makefile: drop -D__CHECK_ENDIAN__ from cflags

2016-12-15 Thread Greg Kroah-Hartman
On Thu, Dec 15, 2016 at 07:15:30AM +0200, Michael S. Tsirkin wrote: > That's the default now, no need for makefiles to set it. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/bluetooth/Makefile| 2 -- > drivers/net/can/Makefile

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-15 Thread Heikki Krogerus
On Wed, Dec 07, 2016 at 02:52:31PM +0200, Heikki Krogerus wrote: > Hi Oliver, > > On Wed, Dec 07, 2016 at 10:46:48AM +0100, Oliver Neukum wrote: > > On Fri, 2016-12-02 at 10:04 -0800, Guenter Roeck wrote: > > > > Hi, > > > > > At least for my part I very much concentrated on making sure that > >

Re: page allocation stall in kernel 4.9 when copying files from one btrfs hdd to another

2016-12-15 Thread admin
Hi, The source is a software raid 5 (md) of 4x 4TB Western Digital RE4 disks. The destinations is a hardware raid 5 enclosure containing 4x 8TB Seagate Archival disks connected using e-sata. I am currently trying Duncans suggestions. With them, the page allocation stall doesn't seem to appear

[PATCH 2/5] irda: irnet: Move linux/miscdevice.h include

2016-12-15 Thread Corentin Labbe
The only use of miscdevice is irda_ppp so no need to include linux/miscdevice.h for all irda files. This patch move the linux/miscdevice.h include to irnet_ppp.h Signed-off-by: Corentin Labbe --- net/irda/irnet/irnet.h | 1 - net/irda/irnet/irnet_ppp.h | 1 + 2 files changed, 1 insertion(+),

[tip:x86/urgent] x86/acpi: Use proper macro for invalid node

2016-12-15 Thread tip-bot for Boris Ostrovsky
Commit-ID: 4370a3ef39f3d07342a1ae9967701bd697c8d9df Gitweb: http://git.kernel.org/tip/4370a3ef39f3d07342a1ae9967701bd697c8d9df Author: Boris Ostrovsky AuthorDate: Mon, 12 Dec 2016 14:29:52 -0500 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 11:32:32 +0100 x86/acpi: Use proper

Re: [PATCH] drm/i915: use udelay for very short delays

2016-12-15 Thread Ville Syrjälä
On Thu, Dec 15, 2016 at 10:34:00AM +, Nicholas Mc Guire wrote: > On Thu, Dec 15, 2016 at 12:20:01PM +0200, Jani Nikula wrote: > > On Thu, 15 Dec 2016, Ville Syrjälä wrote: > > > On Thu, Dec 15, 2016 at 11:52:34AM +0200, Jani Nikula wrote: > > >> On Thu, 15 Dec 2016, Nicholas Mc Guire wrote: >

[tip:x86/urgent] x86/mm: Drop unused argument 'removed' from sync_global_pgds()

2016-12-15 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 5372e155a28f56122eb10db56d4130f481a89cd7 Gitweb: http://git.kernel.org/tip/5372e155a28f56122eb10db56d4130f481a89cd7 Author: Kirill A. Shutemov AuthorDate: Thu, 15 Dec 2016 02:44:03 +0300 Committer: Thomas Gleixner CommitDate: Thu, 15 Dec 2016 12:46:07 +0100 x86/mm: Drop unus

Re: Moratorium on coding style patches (was Re: [PATCH] include/linux/kernel.h: fixed coding style issues)

2016-12-15 Thread Måns Rullgård
Joe Perches writes: > On Wed, 2016-12-14 at 18:13 +, Måns Rullgård wrote: >> Alexey Dobriyan writes: >> > I call for a tree wide moratorium on pure coding style changes. > [] >> I'd relax this slightly and say don't do style >> patches unless as a prelude to some real work. > > And exclude d

[PATCH v2] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-15 Thread Bartlomiej Zolnierkiewicz
Add missing 2000MHz & 1900MHz OPPs (for A15 cores) and 1400MHz OPP (for A7 cores). Also update common Odroid-XU3 Lite/XU3/XU4 thermal cooling maps to account for new OPPs. Since new OPPs are not available on all Exynos5422/5800 boards modify dts files for Odroid-XU3 Lite (limited to 1.8 GHz / 1.3

[GIT PULL] pwm: Changes for v4.10-rc1

2016-12-15 Thread Thierry Reding
Hi Linus, The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.10-rc1 for you to fetch change

Re: [PATCH] drm/i915: use udelay for very short delays

2016-12-15 Thread Jani Nikula
On Thu, 15 Dec 2016, Nicholas Mc Guire wrote: > On Thu, Dec 15, 2016 at 12:20:01PM +0200, Jani Nikula wrote: >> On Thu, 15 Dec 2016, Ville Syrjälä wrote: >> > On Thu, Dec 15, 2016 at 11:52:34AM +0200, Jani Nikula wrote: >> >> On Thu, 15 Dec 2016, Nicholas Mc Guire wrote: >> >> > On Thu, Dec 15,

Re: [PATCH] drivers: staging: comedi: fix function prototypes

2016-12-15 Thread Ian Abbott
On 14/12/16 16:14, Hartley Sweeten wrote: On December 14, 2016 6:42 AM, Piotr Gregor wrote: Add names of parameters to function prototypes in comedi PCI. Checkpatch reports now no errors. Signed-off-by: Piotr Gregor --- drivers/staging/comedi/comedi_pci.h | 18 ++ 1 file chang

Re: [PATCH] drivers: staging: comedi: fix function prototypes

2016-12-15 Thread Ian Abbott
On 14/12/16 13:42, Piotr Gregor wrote: Add names of parameters to function prototypes in comedi PCI. Checkpatch reports now no errors. Signed-off-by: Piotr Gregor --- drivers/staging/comedi/comedi_pci.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/dri

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-15 Thread Nicholas Piggin
On Thu, 15 Dec 2016 12:19:02 +0100 Hannes Frederic Sowa wrote: > On 15.12.2016 03:06, Nicholas Piggin wrote: > > On Wed, 14 Dec 2016 15:04:36 +0100 > > Hannes Frederic Sowa wrote: > > > >> On 09.12.2016 17:03, Greg Kroah-Hartman wrote: > >>> On Sat, Dec 10, 2016 at 01:56:53AM +1000, Nichola

Big I/O requests are split into small ones due to unaligned ext4 partition boundary?

2016-12-15 Thread Dexuan Cui
Hi, when I run "mkfs.ext4 /dev/sdc2" in a Linux virtual machine on Hyper-V, where a disk IOPS=500 limit is applied by me [0], the command takes much more time, if the ext4 partition boundary is not properly aligned: Example 1 [1]: it takes ~7 minutes with average wMB/s = 0.3 (slow) Example 2 [2

Re: [PATCH 5/8] linux: drop __bitwise__ everywhere

2016-12-15 Thread Greg Kroah-Hartman
On Thu, Dec 15, 2016 at 07:15:20AM +0200, Michael S. Tsirkin wrote: > __bitwise__ used to mean "yes, please enable sparse checks > unconditionally", but now that we dropped __CHECK_ENDIAN__ > __bitwise is exactly the same. > There aren't many users, replace it by __bitwise everywhere. > > Signed-o

Re: Linux crashes when trying to online secondary core

2016-12-15 Thread Mark Rutland
On Thu, Dec 15, 2016 at 11:35:12AM +0100, Mason wrote: > On 14/12/2016 18:47, Mason wrote: > > On 14/12/2016 18:08, Thomas Gleixner wrote: > >> Does the patch below fix the issue? > >> diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > >> index 22acee76cf4c..2594c287b078 100644

Re: [RFC v2 4/5] rcu: Use for_each_leaf_node_cpu() in force_qs_rnp()

2016-12-15 Thread Mark Rutland
On Thu, Dec 15, 2016 at 10:42:03AM +0800, Boqun Feng wrote: > ->qsmask of an RCU leaf node is usually more sparse than the > corresponding cpu_possible_mask. So replace the > for_each_leaf_node_possible_cpu() in force_qs_rnp() with > for_each_leaf_node_cpu() to save several checks. > > [Note we ne

Re: [PATCH v2 3/5] MIPS: Only change $28 to thread_info if coming from user mode

2016-12-15 Thread Maciej W. Rozycki
On Tue, 13 Dec 2016, Matt Redfearn wrote: > diff --git a/arch/mips/include/asm/stackframe.h > b/arch/mips/include/asm/stackframe.h > index eebf39549606..e13164daf9c2 100644 > --- a/arch/mips/include/asm/stackframe.h > +++ b/arch/mips/include/asm/stackframe.h > @@ -216,12 +216,20 @@ >

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-15 Thread Oliver Neukum
On Thu, 2016-12-15 at 13:50 +0200, Heikki Krogerus wrote: > 1) Should we use "source" and "sink" instead of "device" and "host" > with the prefer_role attribute after all? I was uncomfortable with > that when we talked about it last time because the terms kept changing > with every new Type-C spec

Re: [PATCH] userns: suppress kmemleak message

2016-12-15 Thread Fubo Chen
On Thu, Nov 3, 2016 at 3:54 PM, Eric W. Biederman wrote: > Dmitry Torokhov writes: > >> We do not ever intend to unregister "user" sysctl table, unfortunately >> it leads kmemleak to believe that we are leaking memory: > > Sounds like an issue with kmemleak because we do retain references. > > So

Re: [RFD] sched/deadline: Support single CPU affinity

2016-12-15 Thread Peter Zijlstra
On Thu, Dec 15, 2016 at 12:30:43PM +0100, Tommaso Cucinotta wrote: > Hi Peter, > > On 13/12/2016 11:21, Peter Zijlstra wrote: > >On Thu, Nov 10, 2016 at 11:01:59AM +0100, Tommaso Cucinotta wrote: > >>Just a note: if you want to recover arbitrary task affinities, you can > >>re-cast your above tes

Re: [PATCH v2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2016-12-15 Thread Maxime Ripard
On Thu, Dec 15, 2016 at 12:35:33PM +0100, Emmanuel Vadot wrote: > > Hi Maxime, > > On Wed, 14 Dec 2016 16:30:13 +0100 > Maxime Ripard wrote: > > > On Wed, Dec 14, 2016 at 03:57:24PM +0100, Emmanuel Vadot wrote: > > > The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. > > >

Applied "ASoC: topology: kfree kcontrol->private_value before freeing kcontrol" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: topology: kfree kcontrol->private_value before freeing kcontrol has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "ASoC: atmel: tse850: rely on the ssc to register as a cpu dai by itself" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: atmel: tse850: rely on the ssc to register as a cpu dai by itself has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Applied "ASoC: samsung: add GPIOLIB dependency" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: samsung: add GPIOLIB dependency has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus dur

Applied "misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present" to the asoc tree

2016-12-15 Thread Mark Brown
The patch misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Re: [PATCH v6] mm: Add memory allocation watchdog kernel thread.

2016-12-15 Thread Tetsuo Handa
oducing a state tracking. Resuming this thread as an answer to Michal's question at [1] in order to focus on watchdog discussion. http://I-love.SAKURA.ne.jp/tmp/serial-20161215-4.txt.xz (second run with one-liner stall report per each second at [2]) showed that warn_alloc() not reporting __GFP_NOWA

Re: [PATCH 0/3] clkdev: add devm_get_clk_from_child()

2016-12-15 Thread Mark Brown
On Fri, Dec 09, 2016 at 12:25:48AM +, Kuninori Morimoto wrote: > Mark, I think I should re-post 2nd patch (3rd will be dropped) after > merge window ? There will be no branch dependency Should be fine without but obviously if it looks like it's gone AWOL then reposting would be good. signat

[PATCH v5 0/7] remoteproc: qcom: Add support of mss rproc for msm8996.

2016-12-15 Thread Avaneesh Kumar Dwivedi
This is patchset v5 having modifications as per comment on patchset v4. Major changes w.r.t. patchset v4 are as below. 1- Compatible string and private struct naming according to platform. 2- Separation of regulator and clock init. 3- Regulator Init implementation change.

[PATCH v5 1/7] remoteproc: qcom: Add private resource struct and new compatible.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Make provison for private resource specific to each compatible, so a private resource struct is introduced which will house clock, regulator etc. related info corresponding to each compatible to use later to initialize hardware. Also add new compatible in documentation. Signed-off-by: Avaneesh Kum

[PATCH v5 7/7] clk: qcom: Add GCC_MSS_RESET support

2016-12-15 Thread Avaneesh Kumar Dwivedi
Add support to use reset control framework for resetting MSS with hexagon v56 1.5.0. Signed-off-by: Avaneesh Kumar Dwivedi Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/gcc-msm8996.c | 1 + include/dt-bindings/clock/qcom,gcc-msm8996.h | 1 + 2 files changed, 2 insertions(+) d

Re: [PATCH v2 1/4] siphash: add cryptographically secure hashtable function

2016-12-15 Thread Hannes Frederic Sowa
On 15.12.2016 12:04, David Laight wrote: > From: Hannes Frederic Sowa >> Sent: 14 December 2016 22:03 >> On 14.12.2016 13:46, Jason A. Donenfeld wrote: >>> Hi David, >>> >>> On Wed, Dec 14, 2016 at 10:56 AM, David Laight >>> wrote: ... > +u64 siphash24(const u8 *data, size_t len, const u

Applied "ASoC: samsung: include gpio consumer.h" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: samsung: include gpio consumer.h has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus du

Applied "ASoC: samsung: Remove tests of member address" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: samsung: Remove tests of member address has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Re: Documenting the ioctl interfaces to discover relationships between namespaces

2016-12-15 Thread Andrei Vagin
On Sun, Dec 11, 2016 at 12:54:56PM +0100, Michael Kerrisk (man-pages) wrote: > [was: [PATCH 0/4 v3] Add an interface to discover relationships > between namespaces] > > Hello Andrei > > See below for my attempt to document the following. Hi Michael, Eric already did my work:). I have read this

RE: [PATCH v2 1/4] siphash: add cryptographically secure hashtable function

2016-12-15 Thread David Laight
From: Hannes Frederic Sowa > Sent: 15 December 2016 12:23 ... > Hmm? Even the Intel ABI expects alignment of unsigned long long to be 8 > bytes on 32 bit. Do you question that? Yes. The linux ABI for x86 (32 bit) only requires 32bit alignment for u64 (etc). David

[PATCH v5 6/7] remoteproc: qcom: Implement Hexagon core specific changes.

2016-12-15 Thread Avaneesh Kumar Dwivedi
This change introduces appropriate additional steps in reset sequence and stop routine corresponding to hexagon v56 1.5.0 on mss for msm8996. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c |

[PATCH v5 4/7] remoteproc: qcom: Modify regulator enable and disable interface.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Regulator enable/disable routine will get additional input parameter of regulator info and count, It will read regulator info and will do appropriate voltage and load configuration before turning them up/down. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 100 +++

[PATCH v5 2/7] remoteproc: qcom: Add and initialize proxy and active clocks.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Certain regulators and clocks need voting by rproc on behalf of hexagon only during restart operation but certain clocks and voltage need to be voted till hexagon is up, these regulators and clocks are identified as proxy and active resource respectively, whose handle is being obtained by supplying

[PATCH v5 5/7] remoteproc: qcom: Modify clock enable and disable interface.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Clock enable/disable routine will get additional input parameter of pointer of array of clock struct's and clock count, it will use these pre initialized values to turn them up/down. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 85 ++-

[PATCH v5 3/7] remoteproc: qcom: Add and initialize proxy and active regulators.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Certain regulators and clocks need voting by rproc on behalf of hexagon only during restart operation but certain clocks and voltage need to be voted till hexagon is up, these regulators and clocks are identified as proxy and active resource respectively, whose handle is being obtained by supplying

Re: [PATCH] genirq/affinity: fix node generation from cpumask

2016-12-15 Thread Balbir Singh
On 15/12/16 05:01, Guilherme G. Piccoli wrote: > Commit 34c3d9819fda ("genirq/affinity: Provide smarter irq spreading > infrastructure") introduced a better IRQ spreading mechanism, taking > account of the available NUMA nodes in the machine. > > Problem is that the algorithm of retrieving the n

[PATCH v3] dt-bindings: power: supply: bq24735: reverse the polarity of ac-detect

2016-12-15 Thread Peter Rosin
The ACOK pin on the bq24735 is active-high, of course meaning that when AC is OK the pin is high. However, all Tegra dts files have incorrectly specified active-high even though the signal is inverted on the Tegra boards. This has worked since the Linux driver has also inverted the meaning of the G

Re: Big I/O requests are split into small ones due to unaligned ext4 partition boundary?

2016-12-15 Thread Ming Lei
On Thu, Dec 15, 2016 at 7:47 PM, Dexuan Cui wrote: > Hi, when I run "mkfs.ext4 /dev/sdc2" in a Linux virtual machine on Hyper-V, > where a disk IOPS=500 limit is applied by me [0], the command takes much > more time, if the ext4 partition boundary is not properly aligned: > > Example 1 [1]: it ta

[PATCH] powerpc/8xx: Perf events on PPC 8xx

2016-12-15 Thread Christophe Leroy
This patch has been reworked since RFC version. In the RFC, this patch was preceded by a patch clearing MSR RI for all PPC32 at all time at exception prologs. Now MSR RI clearing is done only when this 8xx perf events functionality is compiled in, it is therefore limited to 8xx and merged inside th

Re: [RFC 04/10] kmod: provide wrappers for kmod_concurrent inc/dec

2016-12-15 Thread Petr Mladek
On Thu 2016-12-08 22:08:59, Luis R. Rodriguez wrote: > On Thu, Dec 08, 2016 at 12:29:42PM -0800, Kees Cook wrote: > > On Thu, Dec 8, 2016 at 11:48 AM, Luis R. Rodriguez > > wrote: > > > kmod_concurrent is used as an atomic counter for enabling > > > the allowed limit of modprobe calls, provide wr

Re: [PATCH v3] kvm: svm: Use the hardware provided GPA instead of page walk

2016-12-15 Thread David Hildenbrand
+++ b/arch/x86/kvm/x86.c @@ -4420,6 +4420,21 @@ int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt, } EXPORT_SYMBOL_GPL(kvm_write_guest_virt_system); +static int vcpu_is_mmio_gpa(struct kvm_vcpu *vcpu, unsigned long gva, + gpa_t gpa, bool write) +{ +

Re: [PATCH v2 1/4] siphash: add cryptographically secure hashtable function

2016-12-15 Thread Hannes Frederic Sowa
On 15.12.2016 13:28, David Laight wrote: > From: Hannes Frederic Sowa >> Sent: 15 December 2016 12:23 > ... >> Hmm? Even the Intel ABI expects alignment of unsigned long long to be 8 >> bytes on 32 bit. Do you question that? > > Yes. > > The linux ABI for x86 (32 bit) only requires 32bit alignmen

Re: [PATCH] powerpc/8xx: Perf events on PPC 8xx

2016-12-15 Thread Christophe LEROY
Note that this patch applies on top of the following patches: - powerpc/32: Remove FIX_SRR1 - [2/2] powerpc/8xx: Implement hw_breakpoint Christophe Le 15/12/2016 à 13:42, Christophe Leroy a écrit : This patch has been reworked since RFC version. In the RFC, this patch was preceded by a patch cl

Re: [PATCH v2] platform/x86: thinkpad_acpi: Initialize local in_tablet_mode and type

2016-12-15 Thread Henrique de Moraes Holschuh
On Wed, 14 Dec 2016, Darren Hart wrote: > linux-next reported in_tablet_mode and type may be used uninitialized > after: > > b31800283868 ("platform/x86: thinkpad_acpi: Move tablet detection into > separate function") > > This turns out to be a false positive as the pr_info call cannot be > reac

Re: move hyperv CHANNELMSG_UNLOAD from crashed kernel to kdump kernel

2016-12-15 Thread Olaf Hering
On Thu, Dec 15, Vitaly Kuznetsov wrote: > We actually need to read the reply and empty the message slot to make > unload happen. And reading on a different CPU may not work, see: > > http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2016-December/097330.html Does the following se

[PATCH] x86-64: Fix gcc-7 warning in relocs.c

2016-12-15 Thread Markus Trippelsdorf
gcc-7 warns: In file included from arch/x86/tools/relocs_64.c:17:0: arch/x86/tools/relocs.c: In function ‘process_64’: arch/x86/tools/relocs.c:953:2: warning: argument 1 null where non-null expected [-Wnonnull] qsort(r->offset, r->count, sizeof(r->offset[0]), cmp_relocs); ^~~~

Applied "ASoC: rsnd: don't double free kctrl" to the asoc tree

2016-12-15 Thread Mark Brown
The patch ASoC: rsnd: don't double free kctrl has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus durin

Re: [RFC 06/10] kmod: provide sanity check on kmod_concurrent access

2016-12-15 Thread Petr Mladek
On Thu 2016-12-08 11:48:50, Luis R. Rodriguez wrote: > Only decrement *iff* we're possitive. Warn if we've hit > a situation where the counter is already 0 after we're done > with a modprobe call, this would tell us we have an unaccounted > counter access -- this in theory should not be possible as

Re: [PATCH v2 0/3] Add Support for Cavium Cryptographic Accelerarion Unit

2016-12-15 Thread George Cherian
Hi, I got few review comments for this series from David Daney. I am reworking on this series and will sent v3 once it is done. So,kindly ignore this series Regards, -George On 12/13/2016 07:33 PM, George Cherian wrote: This series adds the support for Cavium Cryptographic Accelerarion Unit

Re: BUG: 'list_empty(&vgdev->free_vbufs)' is true!

2016-12-15 Thread Jiri Slaby
On 11/16/2016, 02:12 PM, Gerd Hoffmann wrote: > On Fr, 2016-11-11 at 17:28 +0100, Jiri Slaby wrote: >> On 11/09/2016, 09:01 AM, Gerd Hoffmann wrote: >>> On Di, 2016-11-08 at 22:37 +0200, Michael S. Tsirkin wrote: On Mon, Nov 07, 2016 at 09:43:24AM +0100, Jiri Slaby wrote: > Hi, > >

Re: [PATCH] crypto: algif_hash, avoid zero-sized array

2016-12-15 Thread Herbert Xu
On Thu, Dec 15, 2016 at 11:08:24AM +0100, Jiri Slaby wrote: > Ping. Crypto patches need to go through linux-crypto. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v3] kvm: svm: Use the hardware provided GPA instead of page walk

2016-12-15 Thread Paolo Bonzini
On 15/12/2016 13:42, David Hildenbrand wrote: > >> +++ b/arch/x86/kvm/x86.c >> @@ -4420,6 +4420,21 @@ int kvm_write_guest_virt_system(struct >> x86_emulate_ctxt *ctxt, >> } >> EXPORT_SYMBOL_GPL(kvm_write_guest_virt_system); >> >> +static int vcpu_is_mmio_gpa(struct kvm_vcpu *vcpu, unsigned lon

Re: [PATCH v3] kvm: svm: Use the hardware provided GPA instead of page walk

2016-12-15 Thread David Hildenbrand
+ * If the exit was due to a NPF we may already have a GPA. + * If the GPA is present, use it to avoid the GVA to GPA table walk. + * Note, this cannot be used on string operations since string + * operation using rep will only have the initial GPA from the NPF + * occurred.

[RFC][PATCH 2/4] sched/clock: Update static_key usage

2016-12-15 Thread Peter Zijlstra
sched_clock was still using the deprecated static_key interface. Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/clock.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) --- a/kernel/sched/clock.c +++ b/kernel/sched/clock.c @@ -78,19 +78,17 @@ EXPORT_SYMBOL_GPL(sched_

[RFC][PATCH 3/4] sched/clock: Delay switching sched_clock to stable

2016-12-15 Thread Peter Zijlstra
Currently we switch to the stable sched_clock if we guess the TSC is usable, and then switch back to the unstable path if it turns out TSC isn't stable during SMP bringup after all. Delay switching to the stable path until after SMP bringup is complete. This way we'll avoid switching during the ti

[RFC][PATCH 4/4] sched/clock: Provide better clock continuity

2016-12-15 Thread Peter Zijlstra
When switching between the unstable and stable variants it is currently possible that clock discontinuities occur. And while these will mostly be 'small', attempt to do better. As observed on my IVB-EP, the sched_clock() is ~1.5s ahead of the ktime_get_ns() based timeline at the point of switchov

[RFC][PATCH 0/4] sched_clock vs TSC wreckage

2016-12-15 Thread Peter Zijlstra
A few weeks ago Nicolas reported some impressive TSC wreckage on his i7-3820 running on an AsusTek Rampage IV Gene board [*]. These are a few patches that should hopefully allow us to do better in the face of such 'creativity'. [*] to be fair, Asus did in fact release a BIOS update that fixes th

[RFC][PATCH 1/4] clocksource: Add optional cs::mark_unstable() method

2016-12-15 Thread Peter Zijlstra
From: Thomas Gleixner PeterZ reported that we'd fail to mark the TSC unstable when the clocksource watchdog finds it unsuitable. Allow a clocksource to run a custom action when its being marked unstable and hook up the TSC unstable code. Reported-by: Peter Zijlstra (Intel) Signed-off-by: Peter

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-15 Thread Hannes Frederic Sowa
On 15.12.2016 13:03, Nicholas Piggin wrote: > On Thu, 15 Dec 2016 12:19:02 +0100 > Hannes Frederic Sowa wrote: > >> On 15.12.2016 03:06, Nicholas Piggin wrote: >>> On Wed, 14 Dec 2016 15:04:36 +0100 >>> Hannes Frederic Sowa wrote: >>> On 09.12.2016 17:03, Greg Kroah-Hartman wrote:

[PATCH net 2/3] dpaa_eth: remove redundant dependency on FSL_SOC

2016-12-15 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/Kconfig b/drivers/net/ethernet/freescale/dpaa/Kconfig index f3a3454..a654736 100644 --- a/drivers/net/ethernet/free

Re: [PATCH] trace: extend trace_clock to support arch_arm clock counter

2016-12-15 Thread Srinivas Ramana
On 12/12/2016 04:12 PM, Will Deacon wrote: On Mon, Dec 12, 2016 at 10:31:52AM +0530, Srinivas Ramana wrote: On 12/06/2016 05:43 PM, Will Deacon wrote: On Sun, Dec 04, 2016 at 02:06:23PM +0530, Srinivas Ramana wrote: On 12/02/2016 04:38 PM, Will Deacon wrote: On Fri, Dec 02, 2016 at 01:44:55PM

[PATCH] printk: Remove no longer used second struct cont

2016-12-15 Thread Geert Uytterhoeven
If CONFIG_PRINTK=n: kernel/printk/printk.c:1893: warning: ‘cont’ defined but not used Note that there are actually two different struct cont definitions and objects: the first one is used if CONFIG_PRINTK=y, the second one became unused by removing console_cont_flush(). Fixes: 5c2992ee7fd8a2

[PATCH v8] powerpc: Do not make the entire heap executable

2016-12-15 Thread Denys Vlasenko
On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18] .plt NOBITS 0002b00c 01aff8 84 00 WAX 0 0 4 [1

<    1   2   3   4   5   6   7   8   >