Re: selinux: should execmem disable shmat(..., SHM_EXEC)?

2016-10-27 Thread Stephen Smalley
On 10/26/2016 04:31 PM, Topi Miettinen wrote: > Hi, > > Maybe this is a stupid question and I didn't test this with SELinux, but > it looks to me that SELinux execmem does not prevent process from > getting writable and executable memory mappings by using shmat(..., > SHM_EXEC). Shouldn't this be

Re: [PATCH 4/9] pinctrl: meson: allow gpio to request irq

2016-10-27 Thread Jerome Brunet
On Wed, 2016-10-26 at 16:44 +0200, Linus Walleij wrote: > On Wed, Oct 26, 2016 at 4:23 PM, Jerome Brunet > wrote: > > > > [Me] > > > > > > We usually refer to the local numberspace on the GPIO controller > > > as "offsets", so line offsets 0...31 on a gpiochip with 31 lines. > > > > > > The ngp

Re: [PATCH v10 19/19] docs: Sample driver to demonstrate how to use Mediated device framework.

2016-10-27 Thread Jonathan Corbet
On Thu, 27 Oct 2016 02:59:26 +0530 Kirti Wankhede wrote: > The Sample driver creates mdev device that simulates serial port over PCI > card. > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: I857f8f12f8b275f2498dfe8c628a5cdc7193b1b2 > --- > Documentation/vfio-mdev/Makefi

Re: [PATCH] powerpc: process.c: fix Kconfig typo

2016-10-27 Thread Michael Ellerman
Valentin Rothberg writes: > s/ALIVEC/ALTIVEC/ > > Signed-off-by: Valentin Rothberg Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/39715bf972ed4fee18fe5409609 cheers

multi-threads libvmmalloc fork test hang

2016-10-27 Thread Xiong Zhou
# description nvml test suite vmmalloc_fork test hang. $ ps -eo stat,comm | grep vmma S+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork dmesg: [ 2

Re: [RFC PATCH 00/13] of: Make drivers/of/resolver.c more readable

2016-10-27 Thread Rob Herring
On Tue, Oct 25, 2016 at 4:02 PM, Frank Rowand wrote: > On 10/25/16 13:58, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> drivers/of/resolve.c is a bit difficult to read. Clean it up so >> that review of future overlay related patches will be easier. > > < snip > > > Hi Pantelis, > > C

Re: [PATCH] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-10-27 Thread Hannes Reinecke
On 10/27/2016 01:51 PM, Bjorn Helgaas wrote: > On Thu, Oct 27, 2016 at 07:42:27AM +0200, Hannes Reinecke wrote: >> On 10/26/2016 09:43 PM, Bjorn Helgaas wrote: >>> Hi Johannes, >>> >>> On Wed, Oct 26, 2016 at 03:53:34PM +0200, Johannes Thumshirn wrote: The Read Completion Boundary bit must onl

Re: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 04:02:03PM +0200, Grzegorz Andrejczuk wrote: > Add cpu feature for ring 3 monitor/mwait. > Set HWCAP2 1st bit during init. > > Signed-off-by: Grzegorz Andrejczuk > --- > arch/x86/include/asm/cpufeatures.h | 2 ++ > arch/x86/kernel/cpu/intel.c| 4 > 2 files ch

Re: [Qemu-devel] [PATCH v9 04/12] vfio iommu: Add support for mediated devices

2016-10-27 Thread Alex Williamson
On Thu, 27 Oct 2016 18:01:51 +0530 Kirti Wankhede wrote: > On 10/27/2016 12:50 PM, Alexey Kardashevskiy wrote: > > On 18/10/16 08:22, Kirti Wankhede wrote: > >> VFIO IOMMU drivers are designed for the devices which are IOMMU capable. > >> Mediated device only uses IOMMU APIs, the underlying har

[PATCH 1/2] iopoll: Avoid namespace collision within macros

2016-10-27 Thread Ramesh Shanmugasundaram
Renamed variable "timeout" to "__timeout" to avoid namespace collision. Signed-off-by: Ramesh Shanmugasundaram --- include/linux/iopoll.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index 1c30014..e237d01 100644 ---

[PATCH] Input: gpio-keys - use module_platform_driver macro

2016-10-27 Thread Slawomir Stepien
The gpio_keys_init() and gpio_keys_exit() are not doing anything more then just register and unregister. Replace these functions with module_platform_driver. Signed-off-by: Slawomir Stepien --- drivers/input/keyboard/gpio_keys.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-)

Re: [PATCH v2 03/10] pwm: imx: Rewrite imx_pwm_*_v1 code to facilitate switch to atomic pwm operation

2016-10-27 Thread Lukasz Majewski
Hi Boris, > On Thu, 27 Oct 2016 08:29:39 +0200 > Lukasz Majewski wrote: > > > The code has been rewritten to remove "generic" calls to > > imx_pwm_{enable|disable|config}. > > > > Such approach would facilitate switch to atomic PWM (a.k.a > > ->apply()) implementation. > > > > Suggested-by: St

[PATCHv3 0/3] z3fold: background page compaction

2016-10-27 Thread Vitaly Wool
The coming patchset is another take on z3fold page layout optimization problem. The previous solution [1] used shrinker to solve the issue of in-page space fragmentation but after some discussions the decision was made to rewrite background page layout optimization using good old work queues. The

[PATCH 0/2] x86/vdso: small fixups for map_vdso

2016-10-27 Thread Dmitry Safonov
The first one is a fixup for arch_prctl constants uapi visability, the second is code simplification. Dmitry Safonov (2): x86/prctl/uapi: remove ifdef for CHECKPOINT_RESTORE x86/vdso: set vdso pointer only after success arch/x86/entry/vdso/vma.c | 10 +++--- arch/x86/include/uapi

[PATCH 2/2] x86/vdso: set vdso pointer only after success

2016-10-27 Thread Dmitry Safonov
Those pointers were initialized before call to _install_special_mapping after the commit f7b6eb3fa072 ("x86: Set context.vdso before installing the mapping"). This is not required anymore as special mappings have their vma name and don't use arch_vma_name() after commit a62c34bd2a8a ("x86, mm: Impr

Re: [PATCH] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when #sound-dai-cells = <0>

2016-10-27 Thread Mark Brown
On Thu, Oct 27, 2016 at 12:42:48PM +0100, Jon Medhurst (Tixy) wrote: > - int id = args->args[0]; > + int id = args->args_count ? args->args[0] : 0; Please write normal if statements for legibility. signature.asc Description: PGP signature

[PATCH 2/2] mm: unexport __get_user_pages_unlocked()

2016-10-27 Thread Lorenzo Stoakes
This patch unexports the low-level __get_user_pages_unlocked() function and replaces invocations with calls to more appropriate higher-level functions. In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with get_user_pages_unlocked() since we can now pass gup_flags. In async_

Re: Getting interrupt every million cache misses

2016-10-27 Thread Peter Zijlstra
On Thu, Oct 27, 2016 at 11:11:04AM +0200, Pavel Machek wrote: > How to work around rowhammer, break my system _and_ make kernel perf > maintainers scream at the same time: (:-) ) > > I think I got the place now. Let me try... Lol ;-) > > diff --git a/arch/x86/events/core.c b/arch/x86/events/cor

Re: [RFC v1 00/14] Bus1 Kernel Message Bus

2016-10-27 Thread Michael Kerrisk
[CC += linuux-api]@vger.kernel.org Hi David, Could you please CC linux-api@ on all future iterations of this patch! Cheers, Michael On Wed, Oct 26, 2016 at 9:17 PM, David Herrmann wrote: > Hi > > This proposal introduces bus1.ko, a kernel messaging bus. This is not a > request > for inclus

Re: [PATCH v6: 1/4] x86/msr: Add R3MWAIT register and bit to msr-info.h

2016-10-27 Thread Thomas Gleixner
On Thu, 27 Oct 2016, Grzegorz Andrejczuk wrote: > Intel Xeon Phi x200 (codenamed Knights Landing) has MSR > MISC_THD_FEATURE_ENABLE 0x140. Oh well. I just reviewed another patch which names this register: MSR_MISC_FEATURE_ENABLES and that's how it's named in this document: http://www.intel.c

[PATCH v3 1/4] dt/bindings: Add binding for the DA8xx MUSB driver

2016-10-27 Thread Alexandre Bailon
From: Petr Kulhavy DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

Re: [GIT PULL] kbuild changes for v4.9-rc1

2016-10-27 Thread Nicholas Piggin
On Thu, 27 Oct 2016 16:14:28 +0300 Kalle Valo wrote: > Nicholas Piggin writes: > > > On Thu, 27 Oct 2016 11:10:03 +0300 > > Kalle Valo wrote: > > > >> (Adding Thorsten because of a serious regression and Steven because he > >> tried to fix something in the same commit) > >> > >> Nicholas Pi

[PATCH] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when #sound-dai-cells = <0>

2016-10-27 Thread Jon Medhurst (Tixy)
If a DAI specifies "#sound-dai-cells = <0>" in device-tree then hdmi_of_xlate_dai_name() will be called with zero args, which it isn't implemented to cope with. The resulting use of an uninitialised variable for the id will usually result in an error like: asoc-simple-card sound: parse error -11

Re: [PATCH 1/2] mm/memblock: prepare a capability to support memblock near alloc

2016-10-27 Thread Leizhen (ThunderTown)
On 2016/10/27 15:22, Michal Hocko wrote: > On Thu 27-10-16 10:41:24, Leizhen (ThunderTown) wrote: >> >> >> On 2016/10/26 17:31, Michal Hocko wrote: >>> On Wed 26-10-16 11:10:44, Leizhen (ThunderTown) wrote: On 2016/10/25 21:23, Michal Hocko wrote: > On Tue 25-10-16 10:59:17, Zh

Re: [PATCH v2 5/7] [media] ir-lirc-codec: don't wait any transmitting time for tx only devices

2016-10-27 Thread Sean Young
On Thu, Oct 27, 2016 at 04:44:01PM +0900, Andi Shyti wrote: > Hi Sean, > > it's been a while :) > > I was going through your review fixing what needs to be fixed, > but... > > > > @@ -153,7 +153,7 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, > > > const char __user *buf, > > > } >

Re: [PATCH v3] ARM: davinci: da8xx: Fix some redefined symbol warnings

2016-10-27 Thread Alexandre Bailon
On 10/27/2016 01:54 PM, Sekhar Nori wrote: > On Thursday 27 October 2016 05:13 PM, Sekhar Nori wrote: >> On Wednesday 26 October 2016 06:09 PM, Alexandre Bailon wrote: >>> Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, >>> but da8xx-cfgchip.h intend to replace them. >>> The usb-da8xx.c

[PATCH RFC 1/2] livepatch: add klp-convert tool and integrate with module build

2016-10-27 Thread Josh Poimboeuf
This still needs to be split up into several patches. It does several things: - Create a klp_module_reloc struct and KLP_MODULE_RELOC macro which gives livepatch modules a way to specify which local and unexported symbols they need. - Create a klp-convert tool which reads the klp_module_relo

[PATCH v3 2/4] usb: musb: core: added helper function for parsing DT

2016-10-27 Thread Alexandre Bailon
From: Petr Kulhavy This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy Acked-by: Sergei Shtylyov Signed-off-by: Alexandre Bailon Tested-by: David Lechner --- drivers/usb/musb/musb_core.c | 19 +++ drivers/usb/musb/musb_core.h |

Re: [PATCH v1] memcg: Prevent caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-10-27 Thread Thomas Garnier
On Thu, Oct 27, 2016 at 12:25 AM, Michal Hocko wrote: > The patch is marked for memcg but I do not see any direct relation. > I am not familiar with this code enough probably but if this really is > memcg kmem related, please do not forget to CC Vladimir > Yes, the next iteration should be closer

Re: Getting interrupt every million cache misses

2016-10-27 Thread Pavel Machek
On Thu 2016-10-27 10:28:01, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 10:54:16PM +0200, Pavel Machek wrote: > > Hi! > > > > I'd like to get an interrupt every million cache misses... to do a > > printk() or something like that. As far as I can tell, modern hardware > > should allow me to do

[PATCH RFC 2/2] livepatch: update sample module to use klp relocations

2016-10-27 Thread Josh Poimboeuf
Signed-off-by: Josh Poimboeuf --- samples/livepatch/livepatch-sample.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/samples/livepatch/livepatch-sample.c b/samples/livepatch/livepatch-sample.c index e34f871..478d102 100644 --- a/samples/livepatch/livepatch-

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-27 Thread Grozdan
On Thu, Oct 27, 2016 at 11:26 AM, Jan Kara wrote: > On Wed 26-10-16 10:12:38, Jens Axboe wrote: >> On 10/26/2016 10:04 AM, Paolo Valente wrote: >> > >> >>Il giorno 26 ott 2016, alle ore 17:32, Jens Axboe ha >> >>scritto: >> >> >> >>On 10/26/2016 09:29 AM, Christoph Hellwig wrote: >> >>>On Wed, O

Re: [PATCH] drm/sun4i: Add a few formats

2016-10-27 Thread Maxime Ripard
Hi, On Tue, Oct 25, 2016 at 08:42:26AM +0800, Chen-Yu Tsai wrote: > On Mon, Oct 24, 2016 at 10:40 PM, Maxime Ripard > wrote: > > Hi, > > > > On Fri, Oct 21, 2016 at 11:15:32AM +0800, Chen-Yu Tsai wrote: > >> On Tue, Oct 18, 2016 at 4:46 PM, Maxime Ripard > >> wrote: > >> > The planes can do more

[PATCH RFC 0/2] livepatch: patch creation tooling proposal

2016-10-27 Thread Josh Poimboeuf
Here's what I've been working on in preparation for my talk about "livepatch module creation tooling" at next week's Linux Plumbers Conference. I'm posting this code now as a sneak preview. Hopefully we can get the conversation started here, as the microconference agenda is packed and there might

Re: Build regressions/improvements in v4.9-rc1

2016-10-27 Thread Thomas Petazzoni
Hello, On Thu, 27 Oct 2016 09:07:55 +, Alexey Brodkin wrote: > > axs101 is using a 770 core, while the toolchain is built for the HS38 > > core. I'm somewhat surprised that a single ARC toolchain cannot produce > > code for both 770 and HS38, but it seems to be the case. > > > > So you need

Re: [PATCH] drivers: mfd: ti_am335x_tscadc: increase ADC ref clock to 24MHz

2016-10-27 Thread Mugunthan V N
On Monday 24 October 2016 11:32 AM, Mugunthan V N wrote: > Increase ADC reference clock from 3MHz to 24MHz so that the > sampling rates goes up from 100K samples per second to 800K > samples per second on AM335x and AM437x SoC. > > Also increase opendelay for touchscreen configuration to > equaliz

Re: [PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-27 Thread Sagi Grimberg
You do realise that local filesystems can silently change the location of file data at any point in time, so there is no such thing as a "stable mapping" of file data to block device addresses in userspace? If you want remote access to the blocks owned and controlled by a filesystem, then you n

Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing

2016-10-27 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 04:53:39PM -0200, Arnaldo Carvalho de Melo wrote: > Em Wed, Oct 26, 2016 at 10:51:16AM +0200, Peter Zijlstra escreveu: > > On Wed, Oct 26, 2016 at 01:51:59AM +0200, Alexis Berlemont wrote: > > > > -ENOCHANGELOG > > Yeah, please add one explaining why we want this, how we c

Re: complete_all and "forever" completions

2016-10-27 Thread Daniel Wagner
On Wed, Oct 26, 2016 at 09:15:19AM +, Nicholas Mc Guire wrote: > On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > > On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > > > Or do we need something like this in > > > do_wait_for_common(): > > > > > > if (x->done

Re: [PATCH] f2fs: use BIO_MAX_PAGES for bio allocation

2016-10-27 Thread Chao Yu
On 2016/10/19 2:48, Jaegeuk Kim wrote: > We don't need to allocate bio partially in order to maximize sequential > writes. We are going to allocate bio with max size supposing that there will be more opportunity to merge small IOs into one bio. Otherwise, if MAX_BIO_BLOCKS is smaller than BIO_MAX

Re: UBIFS LEB properties tree with odd addresses

2016-10-27 Thread Richard Weinberger
Naga Sureshkumar Relli, On 26.10.2016 14:11, Naga Sureshkumar Relli wrote: > Hi Richard, > > -Original Message- > From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Wednesday, October 26, 2016 2:44 AM > To: Naga Sureshkumar Relli ; Christoph Hellwig > > Cc: dw...@infradead.org; c

Re: [PATCH v6: 2/4] x86: Add enabling of the R3MWAIT during boot

2016-10-27 Thread Thomas Gleixner
On Thu, 27 Oct 2016, Grzegorz Andrejczuk wrote: > +#ifdef CONFIG_X86_64 > +static int phi_r3mwait_disabled __read_mostly; > + > +static int __init phir3mwait_disable(char *__unused) > +{ > + phi_r3mwait_disabled = 1; > + pr_warn("x86/phir3mwait: Disabled ring 3 MWAIT for Xeon Phi"); Why wo

Re: [PATCH V3] mfd: wm8994-core: Don't use managed regulator bulk get API

2016-10-27 Thread Viresh Kumar
On 27-10-16, 10:14, Charles Keepax wrote: > On Thu, Oct 27, 2016 at 09:09:30AM +0530, Viresh Kumar wrote: > > The kernel WARNs and then crashes today if wm8994_device_init() fails > > after calling devm_regulator_bulk_get(). > > > > That happens because there are multiple devices involved here and

Re: [Y2038] [PATCH v2 2/4] input: evdev: Replace timeval with timespec64

2016-10-27 Thread Arnd Bergmann
On Thursday, October 27, 2016 11:34:33 AM CEST Peter Hutterer wrote: > > @@ -257,17 +264,20 @@ static void __pass_event(struct evdev_client *client, > > > > static void evdev_pass_values(struct evdev_client *client, > > const struct input_value *vals, unsigned int count, >

Re: [PATCH v8 00/16] re-enable DAX PMD support

2016-10-27 Thread Ross Zwisler
On Wed, Oct 19, 2016 at 01:34:19PM -0600, Ross Zwisler wrote: > DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based > locking. This series allows DAX PMDs to participate in the DAX radix tree > based locking scheme so that they can be re-enabled. > > Changes since v7: > -

[patch v1 1/2] drivers/platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86

2016-10-27 Thread vadimp
From: Vadim Pasternak Move module mlx-platform.c from arch/x86/platform/mellanox/ to drivers/platform/x86/. Remove folder arch/x86/platform/mellanox/ and update relevant Makefile and Kconfig. Signed-off-by: Vadim Pasternak --- MAINTAINERS | 2 +- arch/x86/Kconfi

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-10-27 Thread Linus Walleij
On Tue, Oct 25, 2016 at 6:45 PM, Tony Lindgren wrote: I need some DT person to take a look at this binding and ACK it. > +For pin controller hardware with a large number of identical registers naming > +each bit both can be unmaintainable. Further there can be a large number of > similar > +pin

Re: [PATCH (net.git) 2/3] stmmac: fix PTP support for GMAC4

2016-10-27 Thread Giuseppe CAVALLARO
Hello Rayagond ! On 10/27/2016 12:25 PM, Rayagond Kokatanur wrote: +static int dwmac4_wrback_get_rx_timestamp_status(void *desc, u32 ats) > { > struct dma_desc *p = (struct dma_desc *)desc; > + int ret = -EINVAL; > + > + /* Get the status from normal w/b descriptor */ > +

[patch v1 2/2] drivers/platform/x86: add mlxcpld-hotplug driver registration to mlx-platform driver

2016-10-27 Thread vadimp
From: Vadim Pasternak Add calls for mlxcpld-hotplug platform driver registration/unregistration and add platform hotplug data configurations. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 100 +++- 1 file changed, 98 insertions(+), 2 d

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-27 Thread Peter Zijlstra
On Thu, Oct 27, 2016 at 12:07:26AM +0100, Mel Gorman wrote: > > but I consider PeterZ's > > patch the fix to that, so I wouldn't worry about it. > > > > Agreed. Peter, do you plan to finish that patch? I was waiting for you guys to hash out the 32bit issue. But if we're now OK with having this f

Re: [PATCH 1/2] mm: add locked parameter to get_user_pages_remote()

2016-10-27 Thread Michal Hocko
On Thu 27-10-16 10:51:40, Lorenzo Stoakes wrote: > This patch adds a int *locked parameter to get_user_pages_remote() to allow > VM_FAULT_RETRY faulting behaviour similar to get_user_pages_[un]locked(). > > Taking into account the previous adjustments to get_user_pages*() functions > allowing for

Re: [RFC PATCH 01/13] of: Remove comments that state the obvious

2016-10-27 Thread Rob Herring
On Tue, Oct 25, 2016 at 3:58 PM, wrote: > From: Frank Rowand > > Remove comments that state the obvious, to reduce clutter I'm probably not the best reviewer, have you ever seen a comment in my code. :) > > Signed-off-by: Frank Rowand > --- > drivers/of/resolver.c | 31 ++

[PATCH 2/7] lightnvm: do not decide on device blocks

2016-10-27 Thread Javier González
Device blocks should be marked by the device and considered as bad blocks by the media manager. Thus, do not make assumptions on which blocks are going to be used by the device. In doing so we might lose valid blocks from the free list. Signed-off-by: Javier González --- drivers/lightnvm/gennvm.

Re: [RFC PATCH v2 9/9] drm: mali-dp: Add writeback out-fence support

2016-10-27 Thread Gustavo Padovan
2016-10-27 Brian Starkey : > On Wed, Oct 26, 2016 at 07:43:57PM -0200, Gustavo Padovan wrote: > > 2016-10-26 Brian Starkey : > > > > > If userspace has asked for an out-fence for the writeback, we add a > > > fence to malidp_mw_job, to be signaled when the writeback job has > > > completed. > > >

Re: Getting interrupt every million cache misses

2016-10-27 Thread Pavel Machek
Hi! > > I'd like to get an interrupt every million cache misses... to do a > > printk() or something like that. As far as I can tell, modern hardware > > should allow me to do that. AFAICT performance events subsystem can do > > something like that, but I can't figure out where the code is / what

Re: [RFC PATCH 13/13] of: Remove unused variable overlay_symbols

2016-10-27 Thread Pantelis Antoniou
Hi Frank, > On Oct 25, 2016, at 23:59 , frowand.l...@gmail.com wrote: > > From: Frank Rowand > > This unused variable is a reminder that symbols in overlays are > not available to subsequent overlays. If such a feature is > desired then there are several ways it could be implemented. > Plea

Re: [PATCH net-next] ibmveth: v1 calculate correct gso_size and set gso_type

2016-10-27 Thread Thomas Falcon
On 10/25/2016 07:09 PM, Jon Maxwell wrote: > We recently encountered a bug where a few customers using ibmveth on the > same LPAR hit an issue where a TCP session hung when large receive was > enabled. Closer analysis revealed that the session was stuck because the > one side was advertising a ze

[PATCH] checkkconfigsymbols.py: support git's "^" syntax

2016-10-27 Thread Valentin Rothberg
Support git's "^" syntax for diffing two commits, for instance via "--diff HEAD^^^..HEAD". Signed-off-by: Michael Ellermann Signed-off-by: Valentin Rothberg --- scripts/checkkconfigsymbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkkconfigsymbols.py b/sc

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-27 Thread Mathieu Poirier
On 27 October 2016 at 08:03, Antoine Tenart wrote: > Hello Mathieu, > > On Wed, Oct 26, 2016 at 10:29:59AM -0600, Mathieu Poirier wrote: >> >> Please find my comments below. > > Thanks for the comments. I expected more distant reviews, on the overall > architecture to know if this could fit the ne

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-27 Thread Mel Gorman
On Thu, Oct 27, 2016 at 11:44:49AM +0200, Peter Zijlstra wrote: > On Thu, Oct 27, 2016 at 10:07:42AM +0100, Mel Gorman wrote: > > > Something like so could work I suppose, but then there's a slight > > > regression in the page_unlock() path, where we now do an unconditional > > > spinlock; iow. we

[PATCH 1/7] lightnvm: enable to send hint to erase command

2016-10-27 Thread Javier González
Erases might be subject to host hints. An example is multi-plane programming to erase blocks in parallel. Enable targets to specify this hints. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 9 ++--- drivers/lightnvm/gennvm.c| 5 ++--- drivers/lightnvm/rrpc.c | 2

Re: [RFC PATCH 02/13] of: Remove excessive printks to reduce clutter

2016-10-27 Thread Rob Herring
On Tue, Oct 25, 2016 at 3:58 PM, wrote: > From: Frank Rowand Maybe some should be debug? > Signed-off-by: Frank Rowand > --- > drivers/of/resolver.c | 28 > 1 file changed, 28 deletions(-) > > diff --git a/drivers/of/resolver.c b/drivers/of/resolver.c > index 4ff

Re: [PATCH v3] ARM: davinci: da8xx: Fix some redefined symbol warnings

2016-10-27 Thread Sekhar Nori
On Wednesday 26 October 2016 06:09 PM, Alexandre Bailon wrote: > Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, > but da8xx-cfgchip.h intend to replace them. > The usb-da8xx.c is using both headers, causing redefined symbol warnings. Looks like this is not true for v4.9-rc2 and so I do

Re: Build regressions/improvements in v4.9-rc1

2016-10-27 Thread Thomas Petazzoni
Hello, On Thu, 27 Oct 2016 11:32:11 +0200, Arnd Bergmann wrote: > A couple of other architectures do this as well: > > $ git grep -w LIBGCC arch/*/Makefile > arch/arc/Makefile:LIBGCC:= $(shell $(CC) $(cflags-y) > --print-libgcc-file-name) > arch/arc/Makefile:libs-y+= arc

[PATCH 4/7] lightnvm: drop reserve and release LUN callbacks

2016-10-27 Thread Javier González
On target initialization, targets use callbacks to the media manager to configure the LUNs they use. In order to simplify the flow, drop this callbacks and manage everything internally on the media manager. By making use of the newly introduce LUN management structure, the media manager knows whic

Re: [PATCH] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-10-27 Thread Lyude Paul
as well, can someone confirm this patch made it to the ibm-acpi-devel list? When I originally sent this I realized I wasn't subscribed to the list, so I'm guessing I might need to resend. On Tue, 2016-10-25 at 18:12 -0400, Lyude wrote: > For whatever reason, the X1 Yoga doesn't support the normal

[PATCH v3 0/4] Add DT support for DA8xx

2016-10-27 Thread Alexandre Bailon
Changes in v2: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Changes in v3: * Fix few mistakes in DT binding sample * Only build the device table if DT is enabled Alexandre Bailon (1): ARM: dts: da850: Add the usb otg device node Petr Kulhavy (3): dt/bindings: Add

Re: [PATCH] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-10-27 Thread Johannes Thumshirn
On Thu, Oct 27, 2016 at 06:51:52AM -0500, Bjorn Helgaas wrote: > On Thu, Oct 27, 2016 at 07:42:27AM +0200, Hannes Reinecke wrote: > > On 10/26/2016 09:43 PM, Bjorn Helgaas wrote: > > > Hi Johannes, > > > > > > On Wed, Oct 26, 2016 at 03:53:34PM +0200, Johannes Thumshirn wrote: > > >> The Read Comp

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-27 Thread Antoine Tenart
On Thu, Oct 27, 2016 at 08:49:29AM -0600, Mathieu Poirier wrote: > > I agree - something like this should have attracted more reviews. I > suggest providing a better explanation, i.e what you are doing and why > in more details. I reviewed your set and I'm still not sure of > exactly what it doe

Re: [PATCH 1/2] PCI: hisi: add PCIe driver support for HiSilicon STB SoCs

2016-10-27 Thread Rob Herring
On Fri, Oct 21, 2016 at 09:45:36AM +0800, Ruqiang Ju wrote: > Add PCIe controller drvier for HiSilicon STB SoCs, > the controller is based on the DesignWare's PCIe core. > > Signed-off-by: Ruqiang Ju > --- > .../bindings/pci/hisilicon-histb-pcie.txt | 66 +++ > drivers/pci/host/Kconfig

[PATCH 3/7] lightnvm: manage block list on LUN owner

2016-10-27 Thread Javier González
LUNs can be exclusively owned by a target through the media manager's reserve_lun function. In this case, the target should implement its own provisioning and manage internally the free/used/bad block list. This patch introduces a LUN management structure that can be passed on to LUN exclusive own

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-10-27 Thread Petr Mladek
On Mon 2016-10-24 09:55:29, Jacob Pan wrote: > On Mon, 24 Oct 2016 17:48:07 +0200 > Petr Mladek wrote: > > > On Fri 2016-10-21 13:21:18, Jacob Pan wrote: > > > On Mon, 17 Oct 2016 14:32:52 +0200 > > > Petr Mladek wrote: > > > > > > > From: Sebastian Andrzej Siewior > > > > > > > Hi Sebastian,

[PATCH v3 3/4] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-10-27 Thread Alexandre Bailon
From: Petr Kulhavy This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Tested-by: David Lechner --- drivers/usb/musb/da8xx.c | 46 ++ 1 file changed, 46 insertions(+) dif

Re: [RFC PATCH v2 8/9] drm: writeback: Add out-fences for writeback connectors

2016-10-27 Thread Brian Starkey
Hi Gustavo, On Wed, Oct 26, 2016 at 07:40:29PM -0200, Gustavo Padovan wrote: 2016-10-26 Brian Starkey : Add the OUT_FENCE_PTR property to writeback connectors, to enable userspace to get a fence which will signal once the writeback is complete. A timeline is added to drm_connector for use by

Re: [PATCH 2/5] Documentation: devicetree: net: add NS2 bindings to amac

2016-10-27 Thread Andrew Lunn
On Wed, Oct 26, 2016 at 03:35:58PM -0400, Jon Mason wrote: > Signed-off-by: Jon Mason > --- > Documentation/devicetree/bindings/net/brcm,amac.txt | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/brcm,amac.txt > b/Documentation

Re: [PATCH (net.git) 2/3] stmmac: fix PTP support for GMAC4

2016-10-27 Thread Rayagond Kokatanur
Hi Giuseppe, On Wed, Oct 26, 2016 at 12:26 PM, Giuseppe Cavallaro wrote: > Due to bad management of the descriptors, when use ptp4l, > kernel panics as shown below: > --- > Unable to handle kernel NULL pointer dereference at virtual > addr

Re: [PATCH v2 2/9] dt-bindings: interrupt-controller: add DT binding for meson GPIO interrupt controller

2016-10-27 Thread Jerome Brunet
On Thu, 2016-10-27 at 10:32 +0100, Mark Rutland wrote: > On Wed, Oct 26, 2016 at 04:42:35PM -0500, Rob Herring wrote: > > > > On Wed, Oct 19, 2016 at 05:21:13PM +0200, Jerome Brunet wrote: > > > > > > > > > This commit adds the device tree bindings description for > > > Amlogic's GPIO > > > inte

Re: [GIT PULL] kbuild changes for v4.9-rc1

2016-10-27 Thread Nicholas Piggin
On Thu, 27 Oct 2016 11:10:03 +0300 Kalle Valo wrote: > (Adding Thorsten because of a serious regression and Steven because he > tried to fix something in the same commit) > > Nicholas Piggin writes: > > > On Wed, 19 Oct 2016 16:38:14 +0200 > > Michal Marek wrote: > > > >> Dne 18.10.2016 v 0

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-27 Thread Pantelis Antoniou
Hi Antoine, > On Oct 26, 2016, at 17:57 , Antoine Tenart > wrote: > > The overlay manager is an in-kernel library helping to handle dt overlay > loading when using capes. > All in all a nice idea. Comments inline. > Signed-off-by: Antoine Tenart > --- > drivers/of/Kconfig

[PATCHv3 2/3] z3fold: change per-pool spinlock to rwlock

2016-10-27 Thread Vitaly Wool
Mapping/unmapping goes with no actual modifications so it makes sense to only take a read lock in map/unmap functions. This change gives up to 10% performance gain and lower latencies in fio sequential read/write tests, e.g. before: Run status group 0 (all jobs): WRITE: io=2700.0GB, aggrb=3234.

[GIT PULL] SCSI fixes for 4.9-rc2

2016-10-27 Thread James Bottomley
Two small fixes: one is a fatal section mismatch (reference to init after it's discarded) and the other two are iscsi locking fixes. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Arnd Bergmann (1): scsi: NCR5380

Re: [PATCH v7] spi: sun4i: Allow transfers larger than FIFO size

2016-10-27 Thread Mark Brown
On Wed, Oct 26, 2016 at 10:55:28AM +0200, Maxime Ripard wrote: > On Wed, Oct 26, 2016 at 12:00:30AM -0700, Alexandru Gagniuc wrote: > > When DMA finally takes over, this fallback path is not mutually exclusive. > I definitely agree, and we had this patch in the CHIP kernel for quite > some time,

Re: [RFC 0/8] Define coherent device memory node

2016-10-27 Thread Balbir Singh
On 27/10/16 03:28, Jerome Glisse wrote: > On Wed, Oct 26, 2016 at 06:26:02PM +0530, Anshuman Khandual wrote: >> On 10/26/2016 12:22 AM, Jerome Glisse wrote: >>> On Tue, Oct 25, 2016 at 11:01:08PM +0530, Aneesh Kumar K.V wrote: Jerome Glisse writes: > On Tue, Oct 25, 2016 at 10:29:3

Re: [PATCH] sparc64: Make SLUB the default allocator

2016-10-27 Thread David Miller
From: Nitin Gupta Date: Wed, 26 Oct 2016 15:27:56 -0700 > SLUB has better debugging support. > > Signed-off-by: Nitin Gupta ... > @@ -7,7 +7,9 @@ CONFIG_LOG_BUF_SHIFT=18 > CONFIG_BLK_DEV_INITRD=y > CONFIG_PERF_EVENTS=y > # CONFIG_COMPAT_BRK is not set > -CONFIG_SLAB=y > +CONFIG_SLUB_DEBUG=y

Re: [RFC v1 05/14] bus1: util - pool utility library

2016-10-27 Thread Peter Zijlstra
On Thu, Oct 27, 2016 at 02:59:07PM +0200, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 09:18:01PM +0200, David Herrmann wrote: > > +/* insert slice into the free tree */ > > +static void bus1_pool_slice_link_free(struct bus1_pool_slice *slice, > > + struct bus1_po

Re: [RFC 0/8] Define coherent device memory node

2016-10-27 Thread Jerome Glisse
On Thu, Oct 27, 2016 at 12:33:05PM +0530, Anshuman Khandual wrote: > On 10/27/2016 10:08 AM, Anshuman Khandual wrote: > > On 10/26/2016 09:32 PM, Jerome Glisse wrote: > >> On Wed, Oct 26, 2016 at 04:43:10PM +0530, Anshuman Khandual wrote: > >>> On 10/26/2016 12:22 AM, Jerome Glisse wrote: > On

Re: [Xen-devel] [PATCH 8/8] xen/pvh: Enable CPU hotplug

2016-10-27 Thread Andrew Cooper
On 27/10/16 15:25, Boris Ostrovsky wrote: > > > On 10/14/2016 03:01 PM, Boris Ostrovsky wrote: >> On 10/14/2016 02:41 PM, Andrew Cooper wrote: >>> On 14/10/16 19:05, Boris Ostrovsky wrote: PVH guests don't receive ACPI hotplug interrupts and therefore need to monitor xenstore for CPU hotp

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-27 Thread Pantelis Antoniou
Hi Antoine, > On Oct 26, 2016, at 17:57 , Antoine Tenart > wrote: > > The overlay manager is an in-kernel library helping to handle dt overlay > loading when using capes. > Code related comments > Signed-off-by: Antoine Tenart > --- > drivers/of/Kconfig | 2 + > d

Re: [PATCH v7 6/6] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID

2016-10-27 Thread Thomas Gleixner
On Tue, 18 Oct 2016, Kyle Huey wrote: > When supported, this feature is controlled by toggling bit 0 of > MSR_MISC_FEATURES_ENABLES. It is documented in detail in Section 2.3.2 of > http://www.intel.com/content/dam/www/public/us/en/documents/application-notes/virtualization-technology-flexmigration

Re: [PATCH v7, 0/8] Add MediaTek USB3 DRD Driver

2016-10-27 Thread Greg Kroah-Hartman
On Wed, Oct 19, 2016 at 10:28:19AM +0800, Chunfeng Yun wrote: > These patches introduce the MediaTek USB3 dual-role controller > driver. > > The driver can be configured as Dual-Role Device (DRD), > Peripheral Only and Host Only (xHCI) modes. It works well > with Mass Storage, RNDIS and g_zero on

Re: [RFC PATCH 0/5] add support for DMO embedded controller

2016-10-27 Thread Greg KH
On Thu, Oct 27, 2016 at 12:47:11PM +0200, Zahari Doychev wrote: > This patch series adds support for the Data Modul Embedded Controller(dmec) > which is implemented within an on board FPGA found on Data Modul embedded > CPU modules. > > The dmec is connected to the host through the LPC bus and its

Re: [PATCH 2/2] mm: unexport __get_user_pages_unlocked()

2016-10-27 Thread Michal Hocko
On Thu 27-10-16 10:51:41, Lorenzo Stoakes wrote: > This patch unexports the low-level __get_user_pages_unlocked() function and > replaces invocations with calls to more appropriate higher-level functions. > > In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with > get_user_p

Re: [PATCH v8 0/3] ARM: dts: imx6q: Add Engicam i.CoreM6 dts

2016-10-27 Thread Jagan Teki
Hi Shawn, On Fri, Oct 21, 2016 at 1:35 PM, Jagan Teki wrote: > From: Jagan Teki > > This is series add dts support for Engicam I.Core M6 qdl modules. just > rebased on top of linux-next. > > Jagan Teki (3): > ARM: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual initial support > ARM: dts: imx6q:

[PATCHv3 1/3] z3fold: make counters atomic

2016-10-27 Thread Vitaly Wool
This patch converts pages_nr per-pool counter to atomic64_t. It also introduces a new counter, unbuddied_nr, which is atomic64_t, too, to track the number of unbuddied (compactable) z3fold pages. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 33 + 1 file changed, 2

Re: [RFC v1 05/14] bus1: util - pool utility library

2016-10-27 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 09:18:01PM +0200, David Herrmann wrote: All small nits.. > +void bus1_pool_deinit(struct bus1_pool *pool) > +{ > + struct bus1_pool_slice *slice; > + > + if (!pool || !pool->f) > + return; > + > + while ((slice = list_first_entry_or_null(&pool->slic

Re: [PATCH] [media] dvb: avoid warning in dvb_net

2016-10-27 Thread Jarod Wilson
On Thu, Oct 27, 2016 at 05:09:28PM +0200, Arnd Bergmann wrote: > On Thursday, October 27, 2016 10:13:27 AM CEST Jarod Wilson wrote: > > On Thu, Oct 27, 2016 at 03:57:41PM +0200, Arnd Bergmann wrote: > > > With gcc-5 or higher on x86, we can get a bogus warning in the > > > dvb-net code: > > > > >

Re: [RFC v1 02/14] bus1: provide stub cdev /dev/bus1

2016-10-27 Thread Tom Gundersen
On Thu, Oct 27, 2016 at 11:11 AM, Arnd Bergmann wrote: > On Thursday, October 27, 2016 1:54:05 AM CEST Tom Gundersen wrote: >> On Thu, Oct 27, 2016 at 1:19 AM, Andy Lutomirski wrote: >> > This may have been covered elsewhere, but could this use syscalls instead? >> >> Yes, syscalls would work ess

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-27 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 09:18:02PM +0200, David Herrmann wrote: > Messages can be destined for multiple queues, hence, we need to be > careful that all queues get a consistent order of incoming messages. We > define the concept of `global order' to provide a basic set of > guarantees. This global o

[PATCH v2] f2fs: replace a build-time warning with runtime WARN_ON

2016-10-27 Thread Arnd Bergmann
gcc is unsure about the use of last_ofs_in_node, which might happen without a prior initialization: fs/f2fs//git/arm-soc/fs/f2fs/data.c: In function ‘f2fs_map_blocks’: fs/f2fs/data.c:799:54: warning: ‘last_ofs_in_node’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (prea

[PATCH v4] Remove duplicated defines (was [PATCH v3] Fix some potential warnings)

2016-10-27 Thread Alexandre Bailon
Remove duplicated defines before they cause warning. Change in V2: Update the d830 evm board file to use the da8xx-cfgchip.h These changes are required as I'm sending this patch apart from the series "[PATCH/RFT v2 00/17] Add DT support for ohci-da8xx" Changes in v3: * Change the patch descriptio

<    1   2   3   4   5   6   7   8   9   >