Re: [PATCH 04/10] ARM: dts: Add MSHC2 dt node for Exynos3250 SoC

2016-03-14 Thread Krzysztof Kozlowski
On 14.03.2016 17:28, Chanwoo Choi wrote: > On 2016년 03월 14일 15:22, Krzysztof Kozlowski wrote: >> On 14.03.2016 11:04, Chanwoo Choi wrote: >>> This patch adds the MSHC2 (Mobile Storage Host Controller) Device Tree node >>> for >>> Exynos3250 SoC. >>> >>> Cc: Kukjin Kim >>> Cc: Krzysztof Kozlowski

Re: [PATCH] x86: don't assume all fb devices are PCI devices

2016-03-14 Thread Vitaly Kuznetsov
Bjorn Helgaas writes: > On Fri, Mar 11, 2016 at 03:39:18PM +0100, Vitaly Kuznetsov wrote: >> When booting Hyper-V Generation 2 guests KASAN reports the following >> out-of-bounds access: >> >> BUG: KASAN: slab-out-of-bounds in fb_is_primary_device+0x58/0x70 at addr >> 880079cf0eb0 >> Read

RE: [RESEND PATCH V4 4/4] coresight-stm: adding driver for CoreSight STM component

2016-03-14 Thread Michael Williams
Reviewed-by: Michael Williams This resend addresses my earlier concerns. > -Original Message- > From: Chunyan Zhang [mailto:zhang.chun...@linaro.org] > Sent: 08 March 2016 06:34 > To: mathieu.poir...@linaro.org; alexander.shish...@linux.intel.com > Cc: Mike Leach; Michael Williams; Al Gr

[PATCH] i2c: immediately mark ourselves as registered

2016-03-14 Thread Wolfram Sang
Mark the i2c bus as registered right after the the bus_register call, not at the end of init. Otherwise, we can't register our own dummy driver. Reported-by: Thierry Reding Signed-off-by: Wolfram Sang Fixes: 95026658c46ea2 ("i2c: do not use internal data from driver core") --- drivers/i2c/i2c-c

Re: [PATCH] scripts/gdb: Account for changes in module data structure

2016-03-14 Thread Kieran Bingham
On 13/03/16 19:27, Jan Kiszka wrote: > From: Jan Kiszka > > Commit 7523e4dc50 factored out the module_layout structure. Adjust the > symbol loader and the lsmod command to this. > > Signed-off-by: Jan Kiszka Testing this has shown me that the module ko search path can find old modules versions

Re: [PATCH v6 net-next 08/10] net: mvneta: bm: add support for hardware buffer management

2016-03-14 Thread Jesper Dangaard Brouer
On Mon, 14 Mar 2016 09:39:03 +0100 Gregory CLEMENT wrote: > diff --git a/drivers/net/ethernet/marvell/mvneta.c > b/drivers/net/ethernet/marvell/mvneta.c > index b0ae69f84493..2847c0c291de 100644 > --- a/drivers/net/ethernet/marvell/mvneta.c > +++ b/drivers/net/ethernet/marvell/mvneta.c [...] >

Re: [PATCH V5 02/10] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header

2016-03-14 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 12:26:00PM +0700, Suravee Suthikulpanit wrote: > Hi, > > On 03/12/2016 08:22 PM, Peter Zijlstra wrote: > >On Tue, Feb 23, 2016 at 08:12:36AM -0600, Suravee Suthikulpanit wrote: > >>From: Suravee Suthikulpanit > >> > >>First, this patch move arch/x86/events/amd/iommu.h to >

Re: [PATCH 06/10] ARM: dts: Add MSHC0 dt node for eMMC device for exynos3250-artik5 module

2016-03-14 Thread Krzysztof Kozlowski
On 14.03.2016 17:15, Chanwoo Choi wrote: > On 2016년 03월 14일 15:57, Krzysztof Kozlowski wrote: >> On 14.03.2016 11:04, Chanwoo Choi wrote: >>> From: Jaehoon Chung >>> >>> This patch adds MSHC (Mobile Storage Host Controller) dt node for Exynos3250 >>> SoC. MSHC is an interface between the system an

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-14 Thread Peter Ujfalusi
On 2016-03-12 14:42, Pali Rohár wrote: > Hi Sebastian! Commenting calling lp55xx_reset_device function did not > helped. Still getting that error. > > Tony, Peter, Jarkko: can you reproduce this problem? I'm really stucked > here... do not know where is problem or how to fix it. What we know tha

[PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-03-14 Thread Wang Nan
Add new ioctl() to pause/resume ring-buffer output. In some situations we want to read from ring buffer only when we ensure nothing can write to the ring buffer during reading. Without this patch we have to turn off all events attached to this ring buffer to achieve this. This patch is for suppor

[PATCH 2/5] perf core: Set event's default overflow_handler

2016-03-14 Thread Wang Nan
Set a default event->overflow_handler in perf_event_alloc() so don't need checking event->overflow_handler in __perf_event_overflow(). Following commits can give a different default overflow_handler. No extra performance introduced into hot path because in the original code we still need reading t

[PATCH 4/5] perf core: Add backward attribute to perf event

2016-03-14 Thread Wang Nan
In perf_event_attr a new bit 'write_backward' is appended to indicate this event should write ring buffer from its end to beginning. In perf_output_begin(), prepare ring buffer according this bit. This patch introduces small overhead into perf_output_begin(): an extra memory read and a conditiona

[PATCH 0/5] perf core: Support overwrite ring buffer

2016-03-14 Thread Wang Nan
Previous patch set at [1] has a problem when using hw_breakpoints on ARM and ARM64. This new version fix that by introducing is_default_overflow_handler() to replace all '!overflow_handler' checking. [1] http://lkml.kernel.org/g/1457322619-170254-1-git-send-email-wangn...@huawei.com Wang Nan (5)

[PATCH 5/5] perf core: Reduce perf event output overhead by new overflow handler

2016-03-14 Thread Wang Nan
By creating onward and backward specific overflow handlers and setting them according to event's backward setting, normal sampling events don't need checking backward setting of an event any more. This is the last patch of backward writing patchset. After this patch, there's no extra overhead intr

[PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-14 Thread Wang Nan
Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits will utilize the 'backward' flag. This patch doesn't introduce any extra performance overhead since we use always_inline. Signed-off-by: Wang Nan

Re: [PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Daniel Vetter
On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > > > >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> + if (pcie_port_runtime_suspend_allowed(dev)) { > >> + pm_runtime_allow(&dev->dev); > > > > PCI drivers typically have left this decision up to the userspace.

RE: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-14 Thread Yangbo Lu
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Monday, March 14, 2016 6:26 AM > To: linuxppc-...@lists.ozlabs.org > Cc: Yangbo Lu; devicet...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; linux- > c...@vger.kernel.org; lin

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-14 Thread Mauro Carvalho Chehab
Em Mon, 14 Mar 2016 09:22:37 +0200 Sakari Ailus escreveu: > Hi Shuah, > > On Sat, Mar 12, 2016 at 06:48:09PM -0700, Shuah Khan wrote: > > Add GFP flags to media_create_pad_link(), media_create_intf_link(), > > media_devnode_create(), and media_add_link() that could get called > > in atomic conte

gdb/scripts: Module symbol search paths

2016-03-14 Thread Kieran Bingham
Hi Jan, Whilst testing the modules update patch you sent, I discovered (due to having rebased to v4.5) that the module search path will end up picking an incorrect version of the .ko file if an earlier version exists.: (gdb) lx-symbols /opt/root/ubuntu-vivid.x86_64 loading vmlinux (gdb) c Contin

[PATCH-vs-togreg v2 1/2] iio: ina2xx-adc: update the CALIB. register when RShunt changes

2016-03-14 Thread Marc Titinger
The user (or an init script) may setup RShunt via sysfs after the driver was initialized, for instance based on the EEPROM contents of a modular probe. The calibration register must be set accordingly. Signed-off-by: Marc Titinger --- v2 of http://www.spinics.net/lists/linux-iio/msg23402.html:

Re: [PATCH 09/10] ARM: dts: Add MSHC2 dt node for SD card for exynos3250-artik5-devel board

2016-03-14 Thread Chanwoo Choi
On 2016년 03월 14일 18:44, Krzysztof Kozlowski wrote: > On 14.03.2016 17:48, Chanwoo Choi wrote: >> On 2016년 03월 14일 17:31, Krzysztof Kozlowski wrote: >>> On 14.03.2016 11:04, Chanwoo Choi wrote: From: Jaehoon Chung This patch adds MSHC (Mobile Storage Host Controller) dt node for

Re: [PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Mika Westerberg
On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > > > >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> + if (pcie_port_runtime_suspend_allowed(dev)) { > >> + pm_runtime_allow(&dev->dev); > > > > PCI drivers typically have left this decision up to the userspace.

[GIT PULL] LED subsystem updates for 4.6

2016-03-14 Thread Jacek Anaszewski
Hi Linus, Please pull LED updates for 4.6 merge cycle. The following changes since commit b562e44f507e863c6792946e4e1b1449fbbac85d: Linux 4.5 (2016-03-13 21:28:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git tags/

Re: ext4_file_open: Inconsistent encryption contexts (commit ff978b09f973) breaking Docker

2016-03-14 Thread Miklos Szeredi
On Mon, Mar 14, 2016 at 05:47:14PM +1100, Daniel Axtens wrote: > Hi all, > > To make sure I wasn't crazy, I installed a mainline kernel on my x86 laptop. > > It also doesn't work there, but I do get a far more detailed set of > backtraces, which I've added below. It also means it's not powerpc >

Re: [PATCH v10 11/12] arm64: factor work_pending state machine to C

2016-03-14 Thread Mark Rutland
Hi, On Fri, Mar 04, 2016 at 03:02:47PM -0500, Chris Metcalf wrote: > On 03/04/2016 11:38 AM, Will Deacon wrote: > >Hi Chris, > > > >On Wed, Mar 02, 2016 at 03:09:35PM -0500, Chris Metcalf wrote: > >>Currently ret_fast_syscall, work_pending, and ret_to_user form an ad-hoc > >>state machine that can

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-14 Thread Ingo Molnar
* Matt Fleming wrote: > diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c > index 8fee5b6f8f66..af74849e8c0f 100644 > --- a/arch/x86/mm/pageattr.c > +++ b/arch/x86/mm/pageattr.c > @@ -1055,7 +1055,7 @@ static int populate_pud(struct cpa_data *cpa, unsigned > long start, pgd_t *pgd, >

[PATCH] x86/mm/pat: Fix boot crash when 1GB pages are not supported by cpu

2016-03-14 Thread Matt Fleming
Scott reports that with the new separate EFI page tables he's seeing the following error on boot, caused by setting reserved bits in the page table structures (fault code is PF_RSVD | PF_PROT), swapper/0: Corrupted page table at address 17b102020 PGD 17b0e5063 PUD 140e3 Bad pagetable: 00

[GIT PULL] EFI urgent fix for v4.6 queue

2016-03-14 Thread Matt Fleming
Scott has reported another bug in the EFI mapping code which caused page faults during SetVirtualAddressMap() because we're using 1GB pages at the PUD level even though they may not be supported by the cpu. This patch is against tip/efi/core even though the bug has existed since populate_pud() was

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-14 Thread Ric Wheeler
On 03/13/2016 07:30 PM, Dave Chinner wrote: On Fri, Mar 11, 2016 at 04:44:16PM -0800, Linus Torvalds wrote: On Fri, Mar 11, 2016 at 4:35 PM, Theodore Ts'o wrote: At the end of the day it's about whether you trust the userspace program or not. There's a big difference between "give the user ro

Re: [PATCH v6 net-next 09/10] net: add a hardware buffer management helper API

2016-03-14 Thread Jesper Dangaard Brouer
I've not fully understood the hardware support part. But I do think this generalization is very interesting work, and would like to cooperate. If my use-case can fit into this, where my use-case is in the extreme 100Gbit/s area. There is some potential for performance improvements, if the API fr

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-14 Thread Takashi Iwai
On Mon, 14 Mar 2016 11:13:58 +0100, Mauro Carvalho Chehab wrote: > > Em Mon, 14 Mar 2016 09:22:37 +0200 > Sakari Ailus escreveu: > > > Hi Shuah, > > > > On Sat, Mar 12, 2016 at 06:48:09PM -0700, Shuah Khan wrote: > > > Add GFP flags to media_create_pad_link(), media_create_intf_link(), > > > me

Re: gdb/scripts: Module symbol search paths

2016-03-14 Thread Jan Kiszka
Hi Kieran, On 2016-03-14 11:20, Kieran Bingham wrote: > Hi Jan, > > Whilst testing the modules update patch you sent, I discovered (due to > having rebased to v4.5) that the module search path will end up picking > an incorrect version of the .ko file if an earlier version exists.: > > > (gdb)

[PATCH] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

2016-03-14 Thread Tiffany Lin
Change-Id: Idac449fae5059a3ce255340e6da491f8bd83af7a --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c index f38c076..109f687 1006

[PATCH v7 0/7] SLAB support for KASAN

2016-03-14 Thread Alexander Potapenko
This patch set implements SLAB support for KASAN Unlike SLUB, SLAB doesn't store allocation/deallocation stacks for heap objects, therefore we reimplement this feature in mm/kasan/stackdepot.c. The intention is to ultimately switch SLUB to use this implementation as well, which will save a lot of

[PATCH v7 3/7] mm, kasan: Added GFP flags to KASAN API

2016-03-14 Thread Alexander Potapenko
Add GFP flags to KASAN hooks for future patches to use. This patch is based on the "mm: kasan: unified support for SLUB and SLAB allocators" patch originally prepared by Dmitry Chernenkov. Signed-off-by: Alexander Potapenko --- v4: - fix kbuild compilation error (missing parameter for kasan_kmal

[PATCH v7 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2

2016-03-14 Thread Alexander Potapenko
Signed-off-by: Alexander Potapenko Acked-by: Andrey Ryabinin --- lib/test_kasan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 90ad74f..82169fb 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -294,6 +294,8 @@ static noinline void __init

[PATCH v7 5/7] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB

2016-03-14 Thread Alexander Potapenko
Implement the stack depot and provide CONFIG_STACKDEPOT. Stack depot will allow KASAN store allocation/deallocation stack traces for memory chunks. The stack traces are stored in a hash table and referenced by handles which reside in the kasan_alloc_meta and kasan_free_meta structures in the alloca

[PATCH v7 1/7] kasan: Modify kmalloc_large_oob_right(), add kmalloc_pagealloc_oob_right()

2016-03-14 Thread Alexander Potapenko
Rename kmalloc_large_oob_right() to kmalloc_pagealloc_oob_right(), as the test only checks the page allocator functionality. Also reimplement kmalloc_large_oob_right() so that the test allocates a large enough chunk of memory that still does not trigger the page allocator fallback. Signed-off-by:

[PATCH v7 4/7] arch, ftrace: For KASAN put hard/soft IRQ entries into separate sections

2016-03-14 Thread Alexander Potapenko
KASAN needs to know whether the allocation happens in an IRQ handler. This lets us strip everything below the IRQ entry point to reduce the number of unique stack traces needed to be stored. Move the definition of __irq_entry to so that the users don't need to pull in . Also introduce the __softi

[PATCH v7 7/7] mm: kasan: Initial memory quarantine implementation

2016-03-14 Thread Alexander Potapenko
Quarantine isolates freed objects in a separate queue. The objects are returned to the allocator later, which helps to detect use-after-free errors. Freed objects are first added to per-cpu quarantine queues. When a cache is destroyed or memory shrinking is requested, the objects are moved into th

[PATCH v7 2/7] mm, kasan: SLAB support

2016-03-14 Thread Alexander Potapenko
Add KASAN hooks to SLAB allocator. This patch is based on the "mm: kasan: unified support for SLUB and SLAB allocators" patch originally prepared by Dmitry Chernenkov. Signed-off-by: Alexander Potapenko --- v3: - minor description changes - store deallocation info in kasan_slab_free() v4: -

Re: gdb/scripts: Module symbol search paths

2016-03-14 Thread Kieran Bingham
On 14/03/16 10:36, Jan Kiszka wrote: > Hi Kieran, > > On 2016-03-14 11:20, Kieran Bingham wrote: >> Hi Jan, >> >> Whilst testing the modules update patch you sent, I discovered (due to >> having rebased to v4.5) that the module search path will end up picking >> an incorrect version of the .ko fil

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-14 Thread Maxime Ripard
On Sat, Mar 12, 2016 at 08:52:22AM +0100, Danny Milosavljevic wrote: > Hi, > > does anyone know the answer to the questions below? > > > The other direction (making two controls which both do the same and update > > each other's value) doesn't seem to be easily available. > > > Should I write

Re: [PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-03-14 Thread Rob Clark
On Mon, Mar 14, 2016 at 3:59 AM, Kieran Bingham wrote: > On 14/03/16 01:07, Rob Clark wrote: >> On Sun, Mar 13, 2016 at 5:12 PM, Kieran Bingham >> wrote: >>> On 04/02/16 05:09, Archit Taneja wrote: On 02/03/2016 07:55 PM, Luis Henriques wrote: > This fixes the following build f

Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-14 Thread Maxime Ripard
Hi, On Sat, Mar 12, 2016 at 12:48:02PM +0800, Vishnu Patekar wrote: > Hello Linus, > > > On Wed, Mar 9, 2016 at 10:55 AM, Linus Walleij > wrote: > > On Sat, Mar 5, 2016 at 10:42 PM, Vishnu Patekar > > wrote: > > > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T > >> interr

Re: [kbuild-all] kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds

2016-03-14 Thread Fengguang Wu
Hi Thomas, On Mon, Mar 14, 2016 at 08:53:55AM +0100, Thomas Gleixner wrote: > Fenguang, > > On Mon, 14 Mar 2016, kbuild test robot wrote: > > > Hi Thomas, > > > > FYI, the error/warning still remains. > > > make.cross ARCH=m68k > > >arch/m68k/include/asm/irq.h:25:17: error: expec

[GIT pull] timer updates for 4.6

2016-03-14 Thread Thomas Gleixner
Linus, please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus The timer department delivers this time: - Support for cross clock domain timestamps in the core code plus a first user. That allows more pr

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-14 Thread Sakari Ailus
Hi Mauro, On Mon, Mar 14, 2016 at 07:13:58AM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 14 Mar 2016 09:22:37 +0200 > Sakari Ailus escreveu: > > > Hi Shuah, > > > > On Sat, Mar 12, 2016 at 06:48:09PM -0700, Shuah Khan wrote: > > > Add GFP flags to media_create_pad_link(), media_create_intf_li

Re: gdb/scripts: Module symbol search paths

2016-03-14 Thread Jan Kiszka
On 2016-03-14 11:48, Kieran Bingham wrote: > On 14/03/16 10:36, Jan Kiszka wrote: >> Hi Kieran, >> >> On 2016-03-14 11:20, Kieran Bingham wrote: >>> Hi Jan, >>> >>> Whilst testing the modules update patch you sent, I discovered (due to >>> having rebased to v4.5) that the module search path will en

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-03-14 Thread Peter Chen
On Wed, Mar 09, 2016 at 05:16:50PM -0600, Li Yang wrote: > On Tue, Mar 8, 2016 at 9:40 PM, Bjorn Andersson > wrote: > > On Tue, Mar 8, 2016 at 11:52 AM, Li Yang wrote: > >> On Wed, Mar 2, 2016 at 4:59 PM, Li Yang wrote: > >>> On Mon, Feb 22, 2016 at 4:07 PM, Bjorn Andersson > >>> wrote: >

mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-03-14 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b562e44f507e863c6792946e4e1b1449fbbac85d commit: c1a0e9bc885d46e519fd87d35af6a7937abfb986 MIPS: Allow compact branch policy to be changed date: 5 months ago

Re: [patch] kexec: potetially using uninitialized variable

2016-03-14 Thread Dan Carpenter
On Fri, Mar 11, 2016 at 11:38:19PM +0800, Minfei Huang wrote: > I think we can modify the logic a bit to make code simple. Thus gcc will > not complain about any more, and the logic is earier. This is a Smatch warning, not a GCC warning. If you think the new code is clearer, that's fine but don't

Re: gdb/scripts: Module symbol search paths

2016-03-14 Thread Kieran Bingham
On 14/03/16 10:55, Jan Kiszka wrote: > On 2016-03-14 11:48, Kieran Bingham wrote: >> On 14/03/16 10:36, Jan Kiszka wrote: >>> Hi Kieran, >>> >>> On 2016-03-14 11:20, Kieran Bingham wrote: Hi Jan, Whilst testing the modules update patch you sent, I discovered (due to having rebas

[GIT pull] irq updates for 4.6

2016-03-14 Thread Thomas Gleixner
Linus, please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus The 4.6 pile of irq updates contains: - Support for IPI irqdomains to support proper integration of IPIs to and from coprocessors. The first user

[PATCH v2 0/2] net: thunderx: Performance enhancement changes

2016-03-14 Thread sunil . kovvuri
From: Sunil Goutham Below patches attempts to improve performance by reducing no of atomic operations while allocating new receive buffers and reducing cache misses by adjusting nicvf structure elements. Changes from v1: No changes, resubmitting a fresh as per David's suggestion. Sunil Goutham

[PATCH v2 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-14 Thread sunil . kovvuri
From: Sunil Goutham Instead of calling get_page() for every receive buffer carved out of page, set page's usage count at the end, to reduce no of atomic calls. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nic.h |1 + drivers/net/ethernet/cavium/thunder/nicv

[GIT PULL] core kernel resource handling changes to support NVDIMM error injection, for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest core-resources-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-resources-for-linus # HEAD: bc94b99636dc7be439a9fb9c00065e2e2627 Merge tag 'v4.5-rc6' into core/resources, to resolve conflict This tree introduces a

[PATCH v2 2/2] net: thunderx: Adjust nicvf structure to reduce cache misses

2016-03-14 Thread sunil . kovvuri
From: Sunil Goutham Adjusted nicvf structure such that all elements used in hot path like napi, xmit e.t.c fall into same cache line. This reduced no of cache misses and resulted in ~2% increase in no of packets handled on a core. Also modified elements with :1 notation to boolean, to be consist

[PATCH 1/5] Staging: comedi: Fix type issues in s626.c

2016-03-14 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a type issues found by the checkpatch.pl tool. i.e Prefer kernel type 'u8' over 'uint8_t' Prefer kernel type 'u16' over 'uint16_t' Prefer kernel type 'u32' over 'uint32_t' Prefer kernel type 's16' over 'int16_t' Prefer kernel type 's

[PATCH 2/5] Staging: comedi: Fix Block comment issues in s626.c

2016-03-14 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a Block comments issues found by the checkpatch.pl tool. i.e. Block comments use a trailing */ on a separate line Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/s626.c | 42 ++---

[PATCH 4/5] Staging: comedi: fix CHECK issue in ni_tio.c

2016-03-14 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the ni_tio.c file that fixes up a CHECK issues found by the checkpatch.pl tool. i.e. Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON(). Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/ni_tio.c | 1

[PATCH 5/5] Staging: comedi: Fix type issue in ni_tio.c

2016-03-14 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the ni_tio.c file that fixes up a type issues found by the checkpatch.pl tool. i.e. Prefer kernel type 'u64' over 'uint64_t' Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/ni_tio.c | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH 3/5] Staging: comedi: Fix WARNING issue in s626.c

2016-03-14 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a line over 80 characters issues found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/s626.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/c

[GIT PULL] locking changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest locking-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-for-linus # HEAD: 38460a2178d225b39ade5ac66586c3733391cf86 locking/csd_lock: Use smp_cond_acquire() in csd_lock_wait() Various updates: - Futex s

[PATCH v2] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

2016-03-14 Thread Tiffany Lin
In v4l2-compliance utility, test VIDIOC_CREATE_BUFS will check whether reserved filed of v4l2_create_buffers filled with zero Reserved field is filled with zero in v4l_create_bufs. This patch copy reserved field of v4l2_create_buffer from kernel space to user space Signed-off-by: Tiffany Lin ---

Re: [PATCH 1/4 v3] drm: Add support of ARC PGU display controller

2016-03-14 Thread Alexey Brodkin
Hi Daniel, On Mon, 2016-03-14 at 08:00 +0100, Daniel Vetter wrote: > On Fri, Mar 11, 2016 at 06:42:36PM +0300, Alexey Brodkin wrote: > > > > ARC PGU could be found on some development boards from Synopsys. > > This is a simple byte streamer that reads data from a framebuffer > > and sends data to

[GIT PULL] Rename dma_*_writecombine() to dma_*_wc()

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest mm-pat-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git mm-pat-for-linus # HEAD: f6e45661f9be546811b62b2b01f32f4bf0c436c0 dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc() This is a tree-wide API rename, to move the dma

Re: [BUG] sched: leaf_cfs_rq_list use after free

2016-03-14 Thread Peter Zijlstra
On Sat, Mar 12, 2016 at 06:42:57PM +0900, Kazuki Yamaguchi wrote: > 2e91fa7 cgroup: keep zombies associated with their original cgroups So the below hackery yields: [ 192.814857] [ cut here ] [ 192.820025] WARNING: CPU: 38 PID: 3539 at ../kernel/sched/fair.c:288 enqueu

Re: [patch] kexec: potetially using uninitialized variable

2016-03-14 Thread Minfei Huang
On 03/14/16 at 01:58pm, Dan Carpenter wrote: > On Fri, Mar 11, 2016 at 11:38:19PM +0800, Minfei Huang wrote: > > I think we can modify the logic a bit to make code simple. Thus gcc will > > not complain about any more, and the logic is earier. > > This is a Smatch warning, not a GCC warning. If y

Re: [PATCH] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

2016-03-14 Thread Mauro Carvalho Chehab
Em Mon, 14 Mar 2016 18:41:46 +0800 Tiffany Lin escreveu: > Change-Id: Idac449fae5059a3ce255340e6da491f8bd83af7a We don't need change-id at the Kernel, but we do need a proper patch description. Regards, Mauro > --- > drivers/media/v4l2-core/v4l2-compat-ioctl32.c |3 ++- > 1 file changed,

[PATCH 1/2] iio: mma8452: add i2c_device_id for mma8451

2016-03-14 Thread Martin Kepplinger
This was forgotten about and is added for consistency now Signed-off-by: Martin Kepplinger --- drivers/iio/accel/mma8452.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 305ed0e..d0eeba0 100644 --- a/drivers/iio/accel/mma8452.c

[PATCH 2/2] iio: mma8452: use runtime pm instead of device specific autosleep

2016-03-14 Thread Martin Kepplinger
What is this autosleep? --- It slows down the device after x seconds of inactivity. The thing is, we have really achieved almost the same by runtime pm. differnces are: autosleep * uses more power during inactivity * the first read after inactivity slightly faster * complic

Re: [PATCHSET RFC cgroup/for-4.6] cgroup, sched: implement resource group and PRIO_RGRP

2016-03-14 Thread Peter Zijlstra
On Fri, Mar 11, 2016 at 10:41:18AM -0500, Tejun Heo wrote: > * A rgroup is a cgroup which is invisible on and transparent to the > system-level cgroupfs interface. > > * A rgroup can be created by specifying CLONE_NEWRGRP flag, along with > CLONE_THREAD, during clone(2). A new rgroup is creat

[GIT PULL] Read-only kernel memory handling enhancements for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest mm-readonly-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git mm-readonly-for-linus # HEAD: 11bf9b865898961cee60a41c483c9f27ec76e12e ARM/vdso: Mark the vDSO code read-only after init This tree adds two (security related) enh

[GIT pull] cpu hotplug updates for 4.6

2016-03-14 Thread Thomas Gleixner
Linus, please pull the latest smp-hotplug-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-hotplug-for-linus This is the first part of the ongoing cpu hotplug rework: - Initial implementation of the state machine - Runs all online and prepare down

Re: [PATCH v2] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-14 Thread Gabriele Mazzotta
2016-03-12 0:49 GMT+01:00 Gabriele Mazzotta : > Some BIOSes unconditionally send an ACPI notification to RBTN when the > system is resuming from suspend. This makes dell-rbtn send an input > event to userspace as if a function key was pressed. Prevent this by > ignoring all the notifications receiv

[PATCH 1/2] iio: mma8452: add i2c_device_id for mma8451

2016-03-14 Thread Martin Kepplinger
This was forgotten about and is added for consistency now Signed-off-by: Martin Kepplinger --- I'm sorry, I messed up the first patch. Understandable though, given it's complexity. drivers/iio/accel/mma8452.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/accel/mma8452.c b/dri

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-14 Thread Matt Fleming
On Mon, 14 Mar, at 11:30:19AM, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c > > index 8fee5b6f8f66..af74849e8c0f 100644 > > --- a/arch/x86/mm/pageattr.c > > +++ b/arch/x86/mm/pageattr.c > > @@ -1055,7 +1055,7 @@ static int popula

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-14 Thread Tomeu Vizoso
x27;t the printout "Enhanced/Alternate descriptors" mean that I'm using >> Enhanced/Alternate descriptors? > > > yes this means that you have the Databook 3.70a and, from the HW > capability register, the driver will use the Enhanced/Alternate > descriptors.

[PATCH] netfilter: nf_conntrack: consolidate lock/unlock into unlock_wait

2016-03-14 Thread Nicholas Mc Guire
The spin_lock()/spin_unlock() is synchronizing on the nf_conntrack_locks_all_lock which is equivalent to spin_unlock_wait() but the later should be more efficient. Signed-off-by: Nicholas Mc Guire --- Patch was compile tested with: x86_64_defconfig (implies CONFIG_NETFILTER=y) Simple run test

Re: [PATCH v2] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-14 Thread Pali Rohár
On Monday 14 March 2016 12:34:31 Gabriele Mazzotta wrote: > 2016-03-12 0:49 GMT+01:00 Gabriele Mazzotta : > > Some BIOSes unconditionally send an ACPI notification to RBTN when the > > system is resuming from suspend. This makes dell-rbtn send an input > > event to userspace as if a function key wa

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-14 Thread Maxime Ripard
On Fri, Mar 11, 2016 at 04:48:26PM +0530, Vinod Koul wrote: > > > But this nees to be property for clients and not driver. Client can then > > > program these > > > > Yes, totally. The question here is how the clients give that > > information to the driver. > > For this part am not worried. If w

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-14 Thread Mauro Carvalho Chehab
Em Mon, 14 Mar 2016 12:52:54 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On Mon, Mar 14, 2016 at 07:13:58AM -0300, Mauro Carvalho Chehab wrote: > > Em Mon, 14 Mar 2016 09:22:37 +0200 > > Sakari Ailus escreveu: > > > > > Hi Shuah, > > > > > > On Sat, Mar 12, 2016 at 06:48:09PM -0700, Shuah

Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC

2016-03-14 Thread Suravee Suthikulpanit
Hi, On 03/10/2016 04:46 AM, Radim Krčmář wrote: 2016-03-04 14:46-0600, Suravee Suthikulpanit: From: Suravee Suthikulpanit When a vcpu is loaded/unloaded to a physical core, we need to update information in the Physical APIC-ID table accordingly. Signed-off-by: Suravee Suthikulpanit --- diff

[GIT PULL] perf updates for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus # HEAD: ced30bc9129777d715057d06fc8dbdfd3b81e94d Merge tag 'perf-core-for-mingo-20160310' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/l

Re: [PATCH v4 1/5] x86/paravirt: Add _safe to the read_msr and write_msr PV hooks

2016-03-14 Thread Borislav Petkov
On Sat, Mar 12, 2016 at 10:08:48AM -0800, Andy Lutomirski wrote: > These hooks match the _safe variants, so name them accordingly. > This will make room for unsafe PV hooks. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/include/asm/paravirt.h | 33 + >

Re: [PART1 RFC v2 10/10] svm: Manage vcpu load/unload when enable AVIC

2016-03-14 Thread Suravee Suthikulpanit
Hi, On 03/10/2016 09:01 PM, Radim Krčmář wrote: Well, we haven't reached an agreement on is_running yet. The situation: if we don't unset vcpu1.is_running when vcpu1 is scheduled out and vcpu2 gets scheduled on vcpu1's physical core, then vcpu2 would receive a doorbell intended to vcpu1. That

[GIT PULL] RAS changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest ras-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras-core-for-linus # HEAD: eb1af3b71f9d83e45f2fd2fd649356e98e1c582c EDAC/sb_edac: Fix computation of channel address Various RAS updates: - AMD MCE support updates

[PATCH] ARM: dts: dra7: Correct clock tree for sys_32k_ck

2016-03-14 Thread Keerthy
This is w.r.t J6/J6eco: 32clk is pseudo (erratum i856) - clock source. Errata i856 for the AM572x (DRA7xx) points out that the 32.768KHz external crystal is not enabled at power up. Instead the CPU falls back to using an emulation for the 32KHz clock which is SYSCLK1/610. SYSCLK1 is usually 20MHz

Possible race at user mode helper in request_firmware

2016-03-14 Thread clingutla
Hello, I see possible race in _request_firmware_load function, on which I wanted to take your opinion. When system is going to low power mode, device_cache_fw_images() is called from pm notifier which schedules async workers to cache devices firmware. If more than 2 async requests falls unde

NVMEM usage question

2016-03-14 Thread Eddie Huang
Hi, Mediatek PMIC chip have some spare registers used to store information. The value of these registers will exist until user unplug battery or battery depletion. One of our usage example is store battery utilization in these spare registers. We want to implement NVMEM driver to read/write sparse

Re: [PATCH v4 2/5] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2016-03-14 Thread Borislav Petkov
On Sat, Mar 12, 2016 at 10:08:49AM -0800, Andy Lutomirski wrote: > This demotes an OOPS and likely panic due to a failed non-"safe" MSR > access to a WARN_ONCE and, for RDMSR, a return value of zero. If > panic_on_oops is set, then failed unsafe MSR accesses will still > oops and panic. > > To be

RE: [lkp] [ALSA] ca53fbf3a6: WARNING: CPU: 0 PID: 151 at sound/hda/hdac_i915.c:129 pin2port+0x2a/0x40 [snd_hda_core]()

2016-03-14 Thread Yang, Libin
Hi Takashi, > -Original Message- > From: Takashi Iwai [mailto:ti...@suse.de] > Sent: Monday, March 14, 2016 3:23 PM > To: kernel test robot > Cc: l...@01.org; LKML; Wu, Fengguang; Yang, Libin; Lin, Mengdong > Subject: Re: [lkp] [ALSA] ca53fbf3a6: WARNING: CPU: 0 PID: 151 at > sound/hda/hda

Re: [PATCH] ARM: dts: dra7: Correct clock tree for sys_32k_ck

2016-03-14 Thread Keerthy
On Monday 14 March 2016 05:29 PM, Keerthy wrote: This is w.r.t J6/J6eco: 32clk is pseudo (erratum i856) - clock source. Errata i856 for the AM572x (DRA7xx) points out that the 32.768KHz external crystal is not enabled at power up. Instead the CPU falls back to using an emulation for the 32KHz c

[PATCH v2] ARM: dts: dra7: Correct clock tree for sys_32k_ck

2016-03-14 Thread Keerthy
This is w.r.t J6/J6eco: 32clk is pseudo (erratum i856) - clock source. Errata i856 for the AM572x (DRA7xx) points out that the 32.768KHz external crystal is not enabled at power up. Instead the CPU falls back to using an emulation for the 32KHz clock which is SYSCLK1/610. SYSCLK1 is usually 20MHz

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-14 Thread Ingo Molnar
* Matt Fleming wrote: > On Mon, 14 Mar, at 11:30:19AM, Ingo Molnar wrote: > > > > * Matt Fleming wrote: > > > > > diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c > > > index 8fee5b6f8f66..af74849e8c0f 100644 > > > --- a/arch/x86/mm/pageattr.c > > > +++ b/arch/x86/mm/pageattr.c >

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-14 Thread Sakari Ailus
Hi Mauro, On Mon, Mar 14, 2016 at 08:46:33AM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 14 Mar 2016 12:52:54 +0200 > Sakari Ailus escreveu: > > > Hi Mauro, > > > > On Mon, Mar 14, 2016 at 07:13:58AM -0300, Mauro Carvalho Chehab wrote: > > > Em Mon, 14 Mar 2016 09:22:37 +0200 > > > Sakari Ail

Re: [BUG] sched: leaf_cfs_rq_list use after free

2016-03-14 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 12:20:57PM +0100, Peter Zijlstra wrote: > So I would suggest TJ to revert that patch and queue it for stable. > > It it clearly borken, because cgroup_exit() is called from preemptible > context, so _obviously_ we can (and clearly will) schedule after that, > which is somew

Re: [PATCHv3 09/13] scripts/gdb: Add meminfo command

2016-03-14 Thread Kieran Bingham
On 13/03/16 19:08, Jan Kiszka wrote: > On 2016-03-13 19:16, Kieran Bingham wrote: >> On 13/03/16 16:34, Jan Kiszka wrote: >>> On 2016-03-03 12:41, Kieran Bingham wrote: Provide an equivalent of /proc/meminfo which should be available from core dumps, or crashed kernels. This should allo

Re: [PATCH] i2c: i2c-core: do not use bus internal data

2016-03-14 Thread Sudeep Holla
On Mon, Mar 14, 2016 at 9:27 AM, Thierry Reding wrote: > On Mon, Mar 14, 2016 at 10:18:19AM +0100, Thierry Reding wrote: >> On Mon, Mar 07, 2016 at 05:19:17PM +0530, Sudip Mukherjee wrote: >> > The variable p is a data structure which is used by the driver core >> > internally and it is not expect

<    1   2   3   4   5   6   7   8   9   >