Re: [RFC PATCH] perf: Add PERF_RECORD_SWITCH to indicate context switches

2015-06-12 Thread Adrian Hunter
On 12/06/2015 5:21 p.m., David Ahern wrote: On 6/12/15 4:34 AM, Adrian Hunter wrote: On 12/06/15 03:47, David Ahern wrote: On 6/11/15 8:15 AM, Peter Zijlstra wrote: This new PERF_RECORD_SWITCH event does not have those problems and it also has a couple of other small advantages. It is easier t

Re: [PATCH 6/9] VMware balloon: Do not limit the amount of frees and allocations in non-sleep mode.

2015-06-12 Thread dmitry.torok...@gmail.com
On Fri, Jun 12, 2015 at 03:40:42PM +, Philip Moltmann wrote: > Hi, > > > > > > Three improvements contribute to the overall faster speed: > > > - batched operations reduce the hypervisor overhead per page > > > - 2m instead of 4k buffer reduce the hypervisor overhead per page > > > - removing

[PATCH] netlink: add API to retrieve all group memberships

2015-06-12 Thread David Herrmann
This patch adds getsockopt(SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS) to retrieve all groups a socket is a member of. Currently, we have to use getsockname() and look at the nl.nl_groups bitmask. However, this mask is limited to 32 groups. Hence, similar to NETLINK_ADD_MEMBERSHIP and NETLINK_DROP_MEMBE

Re: [PATCH] x86: General protection fault after STR (32 bit systems only)

2015-06-12 Thread Srinivas Pandruvada
On Fri, 2015-06-12 at 08:07 +0200, Ingo Molnar wrote: > * Srinivas Pandruvada wrote: > > > Suspend to RAM process is returning to userspsace with DS set to KERNEL_DS > > after resume, this cause general protection fault. [...] > > But s2ram has no influence on 'returning to user-space'. So unles

Re: [Patch V2 2/3] usb: Introduce Xen pvUSB frontend

2015-06-12 Thread Greg KH
On Fri, Jun 12, 2015 at 04:10:00PM +0200, Juergen Gross wrote: > Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen > domU to communicate with a USB device assigned to that domU. The > communication is all done via the pvUSB backend in a driver domain > (usually Dom0) which is o

[PATCH] gpio: generic: add get_direction support

2015-06-12 Thread Philipp Zabel
Allow to determine the current direction configuration by reading back from the direction register. Signed-off-by: Philipp Zabel --- drivers/gpio/gpio-generic.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c index

Re: [PATCH RFC v4 1/4] MPILIB: add mpi_read_buf(), mpi_copy() and mpi_get_size() helpers

2015-06-12 Thread Stephan Mueller
Am Donnerstag, 11. Juni 2015, 12:05:38 schrieb Tadeusz Struk: Hi Tadeusz, >+ */ >+void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) >+{ >+ uint8_t *buf, *p; >+ int n, ret; >+ >+ if (!nbytes) >+ return NULL; >+ >+ n = mpi_get_size(a); Shouldn't n be un

Re: [PATCH 01/15] ARM: kill off set_irq_flags usage

2015-06-12 Thread Hans Ulli Kroll
On Fri, 12 Jun 2015, Rob Herring wrote: > On Fri, Jun 12, 2015 at 9:05 AM, Hans Ulli Kroll > wrote: > > > > > > On Tue, 9 Jun 2015, Rob Herring wrote: > > > >> set_irq_flags is ARM specific with custom flags which have genirq > >> equivalents. Convert drivers to use the genirq interfaces direct

Re: [PATCH] parport: check exclusive access before register

2015-06-12 Thread Greg KH
On Fri, Jun 12, 2015 at 03:20:20PM +0530, Sudip Mukherjee wrote: > As of now we were starting the registration process and after the device > is registered we were checking if the device can be used by the > parport. Now lets check it first so that we do not need to go through > the registration pr

Re: [Patch V2 1/3] usb: Add Xen pvUSB protocol description

2015-06-12 Thread Greg KH
On Fri, Jun 12, 2015 at 04:09:59PM +0200, Juergen Gross wrote: > +enum usb_spec_version { > + USB_VER_UNKNOWN = 0, > + USB_VER_USB11, > + USB_VER_USB20, > + USB_VER_USB30, /* not supported yet */ > +}; > + You are defining a bunch of things in this .h file that start with "usb" ye

[PATCH] pwm-backlight: Avoid backlight flicker when probed from DT

2015-06-12 Thread Philipp Zabel
If the driver is probed from the device tree, and there is a phandle property set on it, and the enable GPIO is already configured as output, and the backlight is currently disabled, keep it disabled. If all these conditions are met, assume there will be some other driver that can enable the backli

Re: [PATCH V3 4/4] acpi, apei: use EFI memmap to map GHES memory

2015-06-12 Thread Borislav Petkov
On Thu, Jun 11, 2015 at 11:26:00AM -0700, Jonathan (Zhixiong) Zhang wrote: > From: "Jonathan (Zhixiong) Zhang" > > With ACPI APEI firmware first handling, generic hardware error > record is updated by firmware in GHES memory region. When firmware > updated GHES memory region with uncached access

[PATCH 00/12] media/subdevices: Remove unused compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
Remove no longer used compat control ops, as they are not used in their bridge drivers. Working tree can be found at https://github.com/ribalda/linux/tree/compat_control_clean Ricardo Ribalda Delgado (12): media/i2c/adv7343: Remove compat control ops media/i2c/adv7393: Remove compat control o

[PATCH 09/12] media/i2c/tvp7002: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp7002.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index 05077cf

[PATCH 04/12] media/i2c/saa717x: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/saa717x.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/saa717x.c b/drivers/media/i2c/saa717x.c index 7d51736

[PATCH 03/12] media/i2c/cs5345: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/cs5345.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/cs5345.c b/drivers/media/i2c/cs5345.c index 34b76a9e75

[PATCH 05/12] media/i2c/sr030pc30: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/sr030pc30.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/sr030pc30.c b/drivers/media/i2c/sr030pc30.c index b

[PATCH 12/12] media/radio/saa7706h: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/radio/saa7706h.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/media/radio/saa7706h.c b/drivers

[PATCH 11/12] pci/ivtv/ivtv-gpio: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/pci/ivtv/ivtv-gpio.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/pci/ivtv/ivtv-gpio.c b/drivers/media/pci/ivtv/ivt

[PATCH 10/12] i2c/wm8739: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/wm8739.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/wm8739.c b/drivers/media/i2c/wm8739.c index 3be73f6a40

[PATCH 01/12] media/i2c/adv7343: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7343.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/adv7343.c b/drivers/media/i2c/adv7343.c index 7c50833

[PATCH 08/12] media/i2c/tvp514x: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tvp514x.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 2

[PATCH 06/12] media/i2c/tda7432: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tda7432.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tda7432.c b/drivers/media/i2c/tda7432.c index cf93021

[PATCH 07/12] media/i2c/tlv320aic23: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/tlv320aic23b.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/tlv320aic23b.c b/drivers/media/i2c/tlv320aic23b.

[PATCH 02/12] media/i2c/adv7393: Remove compat control ops

2015-06-12 Thread Ricardo Ribalda Delgado
They are no longer used in old non-control-framework bridge drivers. Reported-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/adv7393.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/adv7393.c b/drivers/media/i2c/adv7393.c index 558f191

Re: [Xen-devel] [Patch V2 2/3] usb: Introduce Xen pvUSB frontend

2015-06-12 Thread David Vrabel
On 12/06/15 17:20, Greg KH wrote: > On Fri, Jun 12, 2015 at 04:10:00PM +0200, Juergen Gross wrote: >> Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen >> domU to communicate with a USB device assigned to that domU. The >> communication is all done via the pvUSB backend in a dr

Re: [PATCH v5 02/10] x86: Compile-time asm code validation

2015-06-12 Thread Josh Poimboeuf
On Fri, Jun 12, 2015 at 05:00:50PM +0100, Pedro Alves wrote: > On 06/12/2015 03:10 PM, Josh Poimboeuf wrote: > > That said, the kernel has much more custom features than other projects. > > There are some sneaky macros, like _ASM_EXTABLE and ALTERNATIVE, which > > hide code in various sections. Un

Re: RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Toshi Kani
On Fri, 2015-06-12 at 02:52 +0200, Luis R. Rodriguez wrote: > On Thu, Jun 11, 2015 at 05:23:16PM -0600, Toshi Kani wrote: > > On Thu, 2015-06-11 at 13:36 -0700, Luis R. Rodriguez wrote: > > : > > > Pending RIP MTRR patches > > > > > > > > > There are a few pending series so I

Re: [PATCH kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-12 Thread Alexey Kardashevskiy
On 06/13/2015 01:06 AM, Nishanth Aravamudan wrote: On 12.06.2015 [16:47:03 +1000], Gavin Shan wrote: On Fri, Jun 12, 2015 at 04:19:17PM +1000, Alexey Kardashevskiy wrote: The existing code puts all devices from a root PE to the same IOMMU group. However it is a possible situation when subordina

Re: [RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-12 Thread Alexei Starovoitov
On 6/11/15 10:35 PM, Wang Nan wrote: This is the 7th version which tries to introduce eBPF programs to perf. It enables 'perf record' to filter events using eBPF programs like: # perf record --event bpf-file.c sleep 1 and # perf record --event bpf-file.o sleep 1 This patch series is based

[BUG ?] delay always evaluates to 0

2015-06-12 Thread Nicholas Mc Guire
Hi ! commit 2c86c275015c ("Add ipw2100 wireless driver.") introduced drivers/net/wireless/ipw2100.c - line-numbers are from next-20150511 1410 static int ipw2100_hw_phy_off(struct ipw2100_priv *priv) 1411 { 1412 1413 #define HW_PHY_OFF_LOOP_DELAY (HZ / 5000) 141

[PATCH 1/1 linux-next] ocfs2: use swap() in dx_leaf_sort_swap()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/ocfs2/dir.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index a9513ff..ffecf89 100644 --- a/fs/ocfs2/dir.c +

[PATCH 1/1 linux-next] lib/bch.c: Use swap() in solve_linear_system() and gf_poly_gcd()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- lib/bch.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/lib/bch.c b/lib/bch.c index bc89dfe..7e3d325 100644 --- a/lib/bch.c ++

[PATCH 1/1 linux-next] ext4: use swap() in memswap()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/ext4/ioctl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 7ce8582..cb84512 100644 --- a/fs/ext4/ioctl

[PATCH 1/1 linux-next] lib/mpi: use swap() in mpi_powm()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- lib/mpi/mpi-pow.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/mpi/mpi-pow.c b/lib/mpi/mpi-pow.c index 5464c87..1acebfe 100644 --- a/li

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Toshi Kani
On Fri, 2015-06-12 at 08:59 +0100, Jan Beulich wrote: > >>> On 12.06.15 at 01:23, wrote: > > There are two usages on MTRRs: > > 1) MTRR entries set by firmware > > 2) MTRR entries set by OS drivers > > > > We can obsolete 2), but we have no control over 1). As UEFI firmwares > > also set this

[PATCH 1/1 linux-next] nfsd: use swap() in sort_pacl_range()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/nfsd/nfs4acl.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/nfs4acl.c b/fs/nfsd/nfs4acl.c index 7e10e2a..eb5accf 100644 --- a/fs/nf

[PATCH 1/1 linux-next] ocfs2: use swap() in ocfs2_double_lock()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/ocfs2/namei.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index a150748..af9c4c8 100644 --- a/fs

[PATCH 1/1 linux-next] ext4: use swap() in mext_page_double_lock()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/ext4/move_extent.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 370420b..8c04afb 100

[PATCH 1/1 linux-next] ocfs2: use swap() in swap_refcount_rec()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/ocfs2/refcounttree.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c index 6f66268..c8e1dce

[PATCH 1/1 linux-next] sound: oss/sb_audio: use swap() in sb_audio_close()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- sound/oss/sb_audio.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sound/oss/sb_audio.c b/sound/oss/sb_audio.c index 048439a..dc91072 100644

[PATCH 1/1 linux-next] pnfs/flexfiles: use swap() in ff_layout_sort_mirrors()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- fs/nfs/flexfilelayout/flexfilelayout.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfi

[PATCH 1/1 linux-next] ALSA: gus: use swap() in snd_ics_put_double()

2015-06-12 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- sound/isa/gus/gus_mixer.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sound/isa/gus/gus_mixer.c b/sound/isa/gus/gus_mixer.c index 0dd4341.

RE: [PATCH 1/1] perf,tools: add time out to force stop endless mmap processing

2015-06-12 Thread Liang, Kan
> > On 6/12/15 8:42 AM, Liang, Kan wrote: > > > >> > >> On 6/11/15 12:47 PM, Andi Kleen wrote: > Can you elaborate on an example? I don't see how this can happen > reading a maps file. And it does not read maps for all threads only > thread group leaders. > >>> > >>> This is with a

Re: [PATCH 0/5] Add Mediatek MT8173 subsystem clocks support

2015-06-12 Thread Matthias Brugger
On Thursday, June 11, 2015 04:52:12 PM Stephen Boyd wrote: > On 06/08, Sascha Hauer wrote: > > On Fri, Jun 05, 2015 at 05:59:12PM -0700, Stephen Boyd wrote: > > > And similar things could be done for the reset driver. > > > > The problem I see with this approach is that we scatter the code for a >

Re: [PATCH v5 2/2] x86_64: fix KASan shadow region page tables

2015-06-12 Thread Andrey Ryabinin
2015-06-09 12:42 GMT+03:00 Alexander Popov : > Physical addresses in KASan shadow region page tables need fixup similarly > to the other page tables. Current code doesn't do it which causes > kernel halt if phys_base is not zero. > So let's initialize KASan shadow region page tables in kasan_early_

Re: [PATCH v3 2/2] arm64: dts: mt8173: Add I2C device node

2015-06-12 Thread Matthias Brugger
On Friday, June 12, 2015 08:28:51 PM Daniel Kurtz wrote: > Hi Eddie, > > On Fri, Jun 12, 2015 at 5:27 PM, Eddie Huang wrote: > > Add MT8173 I2C device nodes, include I2C controllers and pins. > > MT8173 has six I2C controllers, from i2c0 to i2c6, exclude i2c5. > > The 6th I2C controller register

Re: [PATCH 4/5] clk: mediatek: Add subsystem clocks of MT8173

2015-06-12 Thread Matthias Brugger
On Thursday, May 21, 2015 03:12:55 PM James Liao wrote: > Most multimedia subsystem clocks will be accessed by multiple > drivers, so it's a better way to manage these clocks in CCF. > This patch adds clock support for MM, IMG, VDEC, VENC and VENC_LT > subsystems. > > Signed-off-by: James Liao >

Re: latency histogram with BPF

2015-06-12 Thread Alexei Starovoitov
On 6/12/15 7:33 AM, Daniel Wagner wrote: On 06/12/2015 08:12 AM, Daniel Wagner wrote: On 06/12/2015 12:08 AM, Alexei Starovoitov wrote: On 6/11/15 12:25 AM, Daniel Wagner wrote: If you have any suggestions on where to look, I'm all ears. My stack traces look like: Running with 10*40 (== 400) ta

Re: [PATCH 1/1 linux-next] pnfs/flexfiles: use swap() in ff_layout_sort_mirrors()

2015-06-12 Thread Joe Perches
On Fri, 2015-06-12 at 18:58 +0200, Fabian Frederick wrote: > Use kernel.h macro definition. A lot of these conversions seem to be for bubble sorts. Maybe it'd be useful to add a generic one somewhere. > diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c > b/fs/nfs/flexfilelayout/flexfilelayout.

[PATCH RFC V2] coccinelle: flag constants being passed for jiffies

2015-06-12 Thread Nicholas Mc Guire
A number of functions takes a jiffies value as timeout. Passing in a constant makes the timeout HZ dependent which is wrong. Checking for coccinelle constants only yields many false positives so they are filtered for digits only. A numeric value of 1 is though commonly in use for "shortest possib

Re: [PATCH 2/3] ACPI: add BAD_MADT_GICC_ENTRY() macro

2015-06-12 Thread Al Stone
On 06/12/2015 08:52 AM, Lorenzo Pieralisi wrote: > On Thu, Jun 11, 2015 at 08:45:10PM +0100, al.st...@linaro.org wrote: >> From: Al Stone >> >> The BAD_MADT_ENTRY() macro is designed to work for all of the subtables >> of the MADT. In the ACPI 5.1 version of the spec, the struct for the >> GICC s

Re: latency histogram with BPF

2015-06-12 Thread Alexei Starovoitov
On 6/11/15 11:58 PM, Wangnan (F) wrote: Is it possible to make 'uapi/linux/bpf.h' hold something useful for eBPF programming, so we can get rid from bpf_helpers? that won't be right. uapi headers suppose to have things needed for both kernel and user space, not user space only. I think it's bet

[PATCH] cgroup: add documentation for the PIDs controller

2015-06-12 Thread Aleksa Sarai
The attached patch adds documentation concerning the PIDs controller. This should be applied alongside the rest of this patchset[1]. [1]: https://lkml.org/lkml/2015/6/9/320 8<- Add documentation derived from kernel/cgrou

[PATCH] irqchip: bcm2835: Add FIQ support

2015-06-12 Thread Noralf Trønnes
Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønnes --- arch/arm/mach-bcm/Kconfig | 1 + drivers/irqchip/irq-bcm2835.c | 53 +++

Re: Audio crackles with 4.1-rc1

2015-06-12 Thread Mihai Donțu
On Fri, 12 Jun 2015 16:13:16 +0200 Takashi Iwai wrote: > For your convenience, below is the combined patch for 4.1. > > Jonathan, could you also try this patch and see whether you still get > the noise? > > --- > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index 0

Re: [PATCH 1/1] perf,tools: add time out to force stop endless mmap processing

2015-06-12 Thread David Ahern
On 6/12/15 11:05 AM, Liang, Kan wrote: On 6/12/15 8:42 AM, Liang, Kan wrote: On 6/11/15 12:47 PM, Andi Kleen wrote: Can you elaborate on an example? I don't see how this can happen reading a maps file. And it does not read maps for all threads only thread group leaders. This is with a str

Re: [PATCH v3 1/4] VFIO: platform: add reset struct and lookup table

2015-06-12 Thread Eric Auger
Hi Alex, On 06/12/2015 04:19 PM, Alex Williamson wrote: > On Fri, 2015-06-12 at 15:41 +0200, Eric Auger wrote: >> Hi Alex, >> On 06/11/2015 11:11 PM, Alex Williamson wrote: >>> On Thu, 2015-06-11 at 14:08 +0200, Eric Auger wrote: This patch introduces the vfio_platform_reset_combo struct that

Re: [LINUX RFC v3 1/2] devicetree: Add DT bindings documentation for Zynq Ultrascale+ MPSoC GQSPI controller

2015-06-12 Thread Mark Brown
On Wed, Jun 10, 2015 at 04:08:20PM +0530, Ranjit Waghmode wrote: > Add bindings documentation for GQSPI controller driver used by > Zynq Ultrascale+ MPSoC Applied both, thanks. signature.asc Description: Digital signature

Re: [PATCH 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-12 Thread Alan Stern
On Fri, 12 Jun 2015, Lu Baolu wrote: > Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports > Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed > root hub. The intention of that change was to avoid touching usb core > internal field, a.k.a. lpm_capable, and l

[PATCH] checkpatch: Emit an error when there's a diff in a changelog

2015-06-12 Thread Joe Perches
People often put diff snippets in changelogs. This causes problems when one tries to apply a file containing both the changelog and the diff because patch(1) tries to apply the diff which it found in the changelog. Warn once when what seems to be a diff snippet in the changelog exists. Suggested

[PATCH RESENT] phy: tusb1210: make better use of gpiod API

2015-06-12 Thread Uwe Kleine-König
Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) which appeared in v3.17-rc1, the gpiod_get* functions take an additional parameter that allows to specify direction and initial value for output. Furthermore there is devm_gpiod_get_optional which is designed to get optional g

Re: [PATCH 0/5 v2] Fixes for leapsecond expiring early ABS_TIME CLOCK_REALTIME timers

2015-06-12 Thread John Stultz
On Fri, Jun 12, 2015 at 7:52 AM, Dave Jones wrote: > On Thu, Jun 11, 2015 at 03:54:52PM -0700, John Stultz wrote: > > So this is a second round at trying to address the issue, trying > > to integrate feedback from Ingo and Thomas, trying to simplify > > what I can. I've also split out the chang

Re: [PATCH v3 01/10] tracing: Update cond flag when enabling or disabling a trigger

2015-06-12 Thread Steven Rostedt
Why v3 in the subject? On Mon, 8 Jun 2015 16:32:00 -0500 Tom Zanussi wrote: > When a trigger is enabled, the cond flag should be set beforehand, > otherwise a trigger that's expecting to process a trace record > (e.g. one with post_trigger set) could be invoked without one. > > Likewise a tri

Re: [PATCH 0/5 v2] Fixes for leapsecond expiring early ABS_TIME CLOCK_REALTIME timers

2015-06-12 Thread John Stultz
On Fri, Jun 12, 2015 at 10:58 AM, John Stultz wrote: > On Fri, Jun 12, 2015 at 7:52 AM, Dave Jones wrote: >> On Thu, Jun 11, 2015 at 03:54:52PM -0700, John Stultz wrote: >> > So this is a second round at trying to address the issue, trying >> > to integrate feedback from Ingo and Thomas, trying

Re: [Xen-devel] [Patch V2 2/3] usb: Introduce Xen pvUSB frontend

2015-06-12 Thread Greg KH
On Fri, Jun 12, 2015 at 05:33:46PM +0100, David Vrabel wrote: > On 12/06/15 17:20, Greg KH wrote: > > On Fri, Jun 12, 2015 at 04:10:00PM +0200, Juergen Gross wrote: > >> Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen > >> domU to communicate with a USB device assigned to tha

Re: [PATCH 0/5 v2] Fixes for leapsecond expiring early ABS_TIME CLOCK_REALTIME timers

2015-06-12 Thread Thomas Gleixner
On Fri, 12 Jun 2015, John Stultz wrote: > Well, noticing the -tip merge messages in my inbox, it may actually > make it for 4.2 (after all the push-back from last time, I expected > there would still be more), but still not something I'm wanting to > aggressively push to -stable. Yes, I decided to

Re: [PATCH] x86: General protection fault after STR (32 bit systems only)

2015-06-12 Thread Andy Lutomirski
On Fri, Jun 12, 2015 at 8:48 AM, Brian Gerst wrote: > On Fri, Jun 12, 2015 at 4:36 AM, Ingo Molnar wrote: >> >> * H. Peter Anvin wrote: >> >>> %es is used implicitly by string instructions. >> >> Ok, so we are probably better off reloading ES as well early, right >> when we return from the firmw

Re: [PATCH v2 5/5] arm64: add KASan support

2015-06-12 Thread Andrey Ryabinin
2015-06-11 16:39 GMT+03:00 Linus Walleij : > On Fri, May 15, 2015 at 3:59 PM, Andrey Ryabinin > wrote: > >> This patch adds arch specific code for kernel address sanitizer >> (see Documentation/kasan.txt). > > I looked closer at this again ... I am trying to get KASan up for > ARM(32) with some t

Re: [PATCH v3 2/3] sparc: time: Replace update_persistent_clock() with CONFIG_RTC_SYSTOHC

2015-06-12 Thread David Miller
From: Alexandre Belloni Date: Fri, 12 Jun 2015 10:42:38 +0200 > I would like to take that patch as part of the series once you have > acked it. Sure: Acked-by: David S. Miller -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.

Re: [PATCH v7 06/10] trace: Add lock-free tracing_map

2015-06-12 Thread Steven Rostedt
On Mon, 8 Jun 2015 16:32:05 -0500 Tom Zanussi wrote: > Add tracing_map, a special-purpose lock-free map for tracing. > > tracing_map is designed to aggregate or 'sum' one or more values > associated with a specific object of type tracing_map_elt, which What is "elt"? I don't see it explained a

RE: [PATCH 1/1] perf,tools: add time out to force stop endless mmap processing

2015-06-12 Thread Liang, Kan
> > On 6/12/15 11:05 AM, Liang, Kan wrote: > >> > >> On 6/12/15 8:42 AM, Liang, Kan wrote: > >>> > > On 6/11/15 12:47 PM, Andi Kleen wrote: > >> Can you elaborate on an example? I don't see how this can > happen > >> reading a maps file. And it does not read maps for all threads

Re: linux-next: build failure after merge of the arm-soc tree

2015-06-12 Thread Kevin Hilman
Michael Ellerman writes: > Hi all, > > After merging the arm-soc tree, today's linux-next build > (arm_multi_v7_defconfig) > failed like this: > > scripts/Makefile.build:258: recipe for target > 'arch/arm/mach-socfpga/platsmp.o' failed > arch/arm/mach-socfpga/platsmp.c:66:23: error: 'socfpg

[PATCH 02/10] x86/intel_cqm: Modify hot cpu notification handling

2015-06-12 Thread Vikas Shivappa
This patch modifies hot cpu notification handling in Intel cache monitoring: - to add a new cpu to the cqm_cpumask(which has one cpu per package) during cpu start, it uses the existing package<->core map instead of looping through all cpus in cqm_cpumask. - to search for the next online sibl

[PATCH 04/10] x86/intel_rdt: Cache Allocation documentation and cgroup usage guide

2015-06-12 Thread Vikas Shivappa
Adds a description of Cache allocation technology, overview of kernel implementation and usage of Cache Allocation cgroup interface. Cache allocation is a sub-feature of Resource Director Technology(RDT) Allocation or Platform Shared resource control which provides support to control Platform shar

[PATCH 08/10] x86/intel_rdt: Implement scheduling support for Intel RDT

2015-06-12 Thread Vikas Shivappa
Adds support for IA32_PQR_ASSOC MSR writes during task scheduling. For Cache Allocation, MSR write would let the task fill in the cache 'subset' represented by the cgroup's cache_mask. The high 32 bits in the per processor MSR IA32_PQR_ASSOC represents the CLOSid. During context switch kernel imp

[PATCH 10/10] x86/intel_rdt: Intel haswell Cache Allocation enumeration

2015-06-12 Thread Vikas Shivappa
Cache Allocation on hsw(haswell) needs to be enumerated separately as HSW does not have support for CPUID enumeration for Cache Allocation. Cache Allocation is only supported on certain HSW SKUs. This patch does a probe test for hsw CPUs by writing a CLOSid(Class of service id) into high 32 bits of

[PATCH 03/10] x86/intel_rapl: Modify hot cpu notification handling for RAPL

2015-06-12 Thread Vikas Shivappa
This patch modifies the hot cpu notification handling in Intel Running Average Power Limit(RAPL) driver. - to add a cpu reader to the rapl_cpumask(which has one cpu per package set) it uses the existing package<->core map instead of looping through all cpus in rapl_cpumask. - to search for

[PATCH 01/10] cpumask: Introduce cpumask_any_online_but

2015-06-12 Thread Vikas Shivappa
There is currently no cpumask helper function to pick a "random" cpu from a mask which is also online. cpumask_any_online_but() does that which is similar to cpumask_any_but() but also returns a cpu that is online. Signed-off-by: Vikas Shivappa --- include/linux/cpumask.h | 18 +

[PATCH 09/10] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-06-12 Thread Vikas Shivappa
This patch adds hot cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with the values of existin

[PATCH 05/10] x86/intel_rdt: Add support for Cache Allocation detection

2015-06-12 Thread Vikas Shivappa
This patch adds support for Cache Allocation Technology feature found in future Intel Xeon processors. Cache allocation is a sub-feature of Intel Resource Director Technology(RDT) which enables sharing of processor resources. This patch includes CPUID enumeration routines for Cache allocation and

[PATCH 07/10] x86/intel_rdt: Add support for cache bit mask management

2015-06-12 Thread Vikas Shivappa
The change adds a file cache_mask to the RDT cgroup which represents the cache bit mask(CBM) for the cgroup. cache_mask is specific to the Cache allocation sub-feature of RDT. The tasks in the RDT cgroup would get to fill the L3 cache represented by the cgroup's cache_mask file. Update to the CBM

[PATCH V9 00/10] New cpumask API and Intel Cache Allocation support

2015-06-12 Thread Vikas Shivappa
This patch has some preparatory patches which add a new API cpumask_any_online_but and change hot cpu handling code in existing cache monitoring and RAPL kernel code. This improves hot cpu notification handling by not looping through all online cpus which could be expensive in large systems. Cach

[PATCH 06/10] x86/intel_rdt: Add new cgroup and Class of service management

2015-06-12 Thread Vikas Shivappa
This patch adds a cgroup subsystem for Intel Resource Director Technology(RDT) feature and Class of service(CLOSid) management which is part of common RDT framework. This cgroup would eventually be used by all sub-features of RDT and hence be associated with the common RDT framework as well as sub

Re: [PATCH] x86: General protection fault after STR (32 bit systems only)

2015-06-12 Thread Srinivas Pandruvada
On Fri, 2015-06-12 at 11:11 -0700, Andy Lutomirski wrote: > On Fri, Jun 12, 2015 at 8:48 AM, Brian Gerst wrote: > > On Fri, Jun 12, 2015 at 4:36 AM, Ingo Molnar wrote: > >> > >> * H. Peter Anvin wrote: > >> > >>> %es is used implicitly by string instructions. > >> > >> Ok, so we are probably bet

Re: perf: aux area related crash and warnings

2015-06-12 Thread Vince Weaver
On Thu, 11 Jun 2015, Vince Weaver wrote: > and while I was trying to cut and paste that, the locked haswell just took > down the network switch so I can't get the rest until tomorrow. here are the full dumps if anyone is interested the warning is reproducible, the spinlock disaster is not. [36

Re: [PATCH v3 4/5] input: synaptics - make image sensors and cr48 sensors report widths

2015-06-12 Thread Gabriele Mazzotta
On Thursday 11 June 2015 17:40:14 Dmitry Torokhov wrote: > HI Gabriele, > > On Sun, Mar 22, 2015 at 03:43:55PM +0100, Gabriele Mazzotta wrote: > > The driver was not reporting widths for image sensors and cr48 sensors > > despite it was calculating them. > > > > Link: https://bugzilla.kernel.org/

[PATCH v3 3/9] VMware balloon: add batching to the vmw_balloon.

2015-06-12 Thread Philip P. Moltmann
From: Xavier Deguillard Introduce a new capability to the driver that allow sending 512 pages in one hypervisor call. This reduce the cost of the driver when reclaiming memory. Signed-off-by: Xavier Deguillard Acked-by: Dmitry Torokhov Signed-off-by: Philip P. Moltmann --- drivers/misc/vmw_b

[PATCH v3 2/9] VMware balloon: Add support for balloon capabilities.

2015-06-12 Thread Philip P. Moltmann
From: Xavier Deguillard In order to extend the balloon protocol, the hypervisor and the guest driver need to agree on a set of supported functionality to use. Signed-off-by: Xavier Deguillard Acked-by: Dmitry Torokhov Signed-off-by: Philip P. Moltmann Acked-by: Andy King --- drivers/misc/vm

[PATCH v3 5/9] VMware balloon: Show capabilities of balloon and resulting capabilities in the debug-fs node.

2015-06-12 Thread Philip P. Moltmann
This helps with debugging vmw_balloon behavior, as it is clear what functionality is enabled. Acked-by: Andy King Signed-off-by: Xavier Deguillard --- drivers/misc/vmw_balloon.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/

[PATCH v3 0/9] Third revision of the performance improvment patch to the VMWare balloon driver

2015-06-12 Thread Philip P. Moltmann
This is the third revision fo the path to the VMWare balloon driver. The original was send to linux-kernel@vger.kernel.org on 4/14/15 10.29 am PST. Please refer to the original change for an overview. v1: - Initial implementation v2 - Address suggestions by Dmitry Totoknov - Use UINT_MAX as "i

[PATCH v3 7/9] VMware balloon: Support 2m page ballooning.

2015-06-12 Thread Philip P. Moltmann
2m ballooning significantly reduces the hypervisor side (and guest side) overhead of ballooning and unballooning. hypervisor only: balloon unballoon 4 KB 2 GB/s 2.6 GB/s 2 MB 54 GB/s 767 GB/s Use 2 MB pages as the hypervisor is alwys 64bit and 2 MB is the smallest supported super-page

[PATCH v3 4/9] VMware balloon: Update balloon target on each lock/unlock.

2015-06-12 Thread Philip P. Moltmann
From: Xavier Deguillard Instead of waiting for the next GET_TARGET command, we can react faster by exploiting the fact that each hypervisor call also returns the balloon target. Signed-off-by: Xavier Deguillard Acked-by: Dmitry Torokhov Signed-off-by: Philip P. Moltmann Acked-by: Andy King -

[PATCH v3 6/9] VMware balloon: Do not limit the amount of frees and allocations in non-sleep mode.

2015-06-12 Thread Philip P. Moltmann
When VMware's hypervisor requests a VM to reclaim memory this is preferrably done via ballooning. If the balloon driver does not return memory fast enough, more drastic methods, such as hypervisor-level swapping are needed. These other methods cause performance issues, e.g. hypervisor-level swapp

[PATCH v3 1/9] VMware balloon: partially inline vmballoon_reserve_page.

2015-06-12 Thread Philip P. Moltmann
From: Xavier Deguillard This split the function in two: the allocation part is inlined into the inflate function and the lock part is kept into his own function. This change is needed in order to be able to allocate more than one page before doing the hypervisor call. Signed-off-by: Xavier Degu

[PATCH v3 8/9] VMware balloon: Treat init like reset

2015-06-12 Thread Philip P. Moltmann
Unify the behavior of the first start of the balloon and a reset. Also on unload, declare that the balloon driver does not have any capabilities anymore. Acked-by: Andy King Signed-off-by: Xavier Deguillard --- drivers/misc/vmw_balloon.c | 53 -- 1 fi

[PATCH v3 9/9] VMware balloon: Enable notification via VMCI

2015-06-12 Thread Philip P. Moltmann
Get notified immediately when a balloon target is set, instead of waiting for up to one second. The up-to 1 second gap could be long enough to cause swapping inside of the VM that receives the VM. Acked-by: Andy King Signed-off-by: Xavier Deguillard Tested-by: Siva Sankar Reddy B --- drivers/

Re: [PATCH v3 2/4] pagemap: add mmap-exclusive bit for marking pages mapped only here

2015-06-12 Thread Mark Williamson
This looks good from our side - thanks! Reviewed-by: mwilliam...@undo-software.com Tested-by: mwilliam...@undo-software.com On Tue, Jun 9, 2015 at 9:00 PM, Konstantin Khlebnikov wrote: > From: Konstantin Khlebnikov > > This patch sets bit 56 in pagemap if this page is mapped only once. > It all

Re: [PATCH v3 1/4] pagemap: check permissions and capabilities at open time

2015-06-12 Thread Mark Williamson
This looks good from our side - thanks! Reviewed-by: mwilliam...@undo-software.com Tested-by: mwilliam...@undo-software.com On Tue, Jun 9, 2015 at 9:00 PM, Konstantin Khlebnikov wrote: > From: Konstantin Khlebnikov > > This patch moves permission checks from pagemap_read() into pagemap_open().

Re: [PATCH v3 3/4] pagemap: hide physical addresses from non-privileged users

2015-06-12 Thread Mark Williamson
This looks good from our side - thanks! Reviewed-by: mwilliam...@undo-software.com Tested-by: mwilliam...@undo-software.com On Tue, Jun 9, 2015 at 9:00 PM, Konstantin Khlebnikov wrote: > From: Konstantin Khlebnikov > > This patch makes pagemap readable for normal users back but hides physical >

<    1   2   3   4   5   6   7   8   >