[PATCH v2] pci: drop link_reset

2017-01-24 Thread Michael S. Tsirkin
No hardware seems to actually call link_reset, and no driver implements it as more than a nop stub. This drops the mentions of the callback from everywhere. It's dropped from the documentation as well, but the doc really needs to be updated to reflect reality better (e.g. on pcie slot reset is

Re: [PATCH net] net: dsa: Keep a reference count on ethernet_dev

2017-01-24 Thread David Miller
From: Florian Fainelli Date: Sat, 21 Jan 2017 09:40:54 -0800 > of_find_net_device_by_node() just returns a reference to a net_device but does > not increment its reference count, which means that the master network device > can just vanish under our feet. > > Fixes:

Re: net: use-after-free in tw_timer_handler

2017-01-24 Thread Eric Dumazet
On Tue, Jan 24, 2017 at 7:06 AM, Dmitry Vyukov wrote: >> >> This code was changed a long time ago : >> >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ed2e923945892a8372ab70d2f61d364b0b6d9054 >> >> So I suspect a recent patch broke the logic. >>

Re: [patch] samples/bpf: silence shift wrapping warning

2017-01-24 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 23, 2017 at 10:44:34PM -0800, Alexei Starovoitov escreveu: > On Mon, Jan 23, 2017 at 5:27 AM, Arnaldo Carvalho de Melo > wrote: > > Em Sun, Jan 22, 2017 at 02:51:25PM -0800, Alexei Starovoitov escreveu: > >> On Sat, Jan 21, 2017 at 07:51:43AM +0300, Dan

[PATCH 12/12] mm: convert remove_migration_pte() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
remove_migration_pte() also can easily be converted to page_check_walk(). Signed-off-by: Kirill A. Shutemov --- mm/migrate.c | 103 --- 1 file changed, 41 insertions(+), 62 deletions(-) diff --git

[PATCH 07/12] mm: convert try_to_unmap_one() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_check_walk(), so we could drop the former. It also makes freeze_page() as we walk though rmap only once. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 16 +--- mm/rmap.c|

[PATCH 08/12] mm, ksm: convert write_protect_page() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_check_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov --- mm/ksm.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git

[PATCH 03/12] mm: fix handling PTE-mapped THPs in page_referenced()

2017-01-24 Thread Kirill A. Shutemov
For PTE-mapped THP page_check_address_transhuge() is not adequate: it cannot find all relevant PTEs, only the first one. It means we can miss some references of the page and it can result in suboptimal decisions by vmscan. Let's switch it to page_check_walk(). I don't think it's subject for

[PATCH 11/12] mm: drop page_check_address{,_transhuge}

2017-01-24 Thread Kirill A. Shutemov
All users are gone. Let's drop them. Signed-off-by: Kirill A. Shutemov --- include/linux/rmap.h | 36 -- mm/rmap.c| 138 --- 2 files changed, 174 deletions(-) diff --git

RE: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, January 24, 2017 4:30 PM > To: Shameerali Kolothum Thodi; Marc Zyngier; mark.rutl...@arm.com; > will.dea...@arm.com; eric.au...@redhat.com > Cc: linux-arm-ker...@lists.infradead.org; Linuxarm; linux-

Re: [PATCH 0/8] efi: Pass secure boot mode to kernel [ver #6]

2017-01-24 Thread Ard Biesheuvel
On 11 January 2017 at 15:05, Ard Biesheuvel wrote: > On 11 January 2017 at 15:01, Matt Fleming wrote: >> On Thu, 08 Dec, at 12:30:08PM, David Howells wrote: >>> >>> Here's a set of patches that can determine the secure boot state of the >>>

Re: [PATCH 01/12] uprobes: split THPs before trying replace them

2017-01-24 Thread Rik van Riel
On Tue, 2017-01-24 at 19:28 +0300, Kirill A. Shutemov wrote: > For THPs page_check_address() always fails. It's better to split them > first before trying to replace. > > Signed-off-by: Kirill A. Shutemov > Cc: Oleg Nesterov > Cc: Peter Zijlstra

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-24 Thread Vivien Didelot
Hi Gregory, Gregory CLEMENT writes: > Hi David, > > On ven., janv. 20 2017, David Miller wrote: > >> From: Gregory CLEMENT >> Date: Thu, 19 Jan 2017 22:49:32 +0100 >> >>> I created a new family for

Re: [PATCH] vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null

2017-01-24 Thread Alex Williamson
On Tue, 24 Jan 2017 17:50:26 +0100 Greg Kurz wrote: > The recently added mediated VFIO driver doesn't know about powerpc iommu. > It thus doesn't register a struct iommu_table_group in the iommu group > upon device creation. The iommu_data pointer hence remains null. > > This

Re: [PATCH v1] MAINTAINERS: Add myself to X86 PLATFORM DRIVERS as a co-maintainer

2017-01-24 Thread Darren Hart
On Tue, Jan 24, 2017 at 05:25:40PM +0200, Andy Shevchenko wrote: > For last few months Darren and I are co-maintaining PDx86 subsystem. > Make this fact official by updating MAINTAINERS database. > > Cc: Darren Hart > Signed-off-by: Andy Shevchenko

[PATCH 10/12] mm: convert page_mapped_in_vma() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_check_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov --- mm/page_check.c | 30 ++ mm/rmap.c | 26 -- 2 files

[PATCH 06/12] mm: convert page_mkclean_one() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_check_walk(), so we could drop the former. PMD handling here is future-proofing, we don't have users yet. ext4 with huge pages will be the first. Signed-off-by: Kirill A. Shutemov ---

Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi

2017-01-24 Thread Peter Zijlstra
On Wed, Dec 28, 2016 at 02:31:06PM +0100, Jiri Olsa wrote: > This patch fixes following WARNING: > > WARNING: CPU: 15 PID: 15768 at arch/x86/events/core.c:1256 > x86_pmu_start+0x1b3/0x1c0 > ... > Call Trace: > >dump_stack+0x86/0xc3 >__warn+0xcb/0xf0 >

Re: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Robin Murphy
On 24/01/17 16:29, Marc Zyngier wrote: > On 24/01/17 16:14, Shameerali Kolothum Thodi wrote: >> Let's contemplate this for a moment. If we're on the affected ITS, > we're >> using the physical address of the GITS_TRANSLATER register. What >> guarantees that this is not going to

Re: [PATCH v3 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-24 Thread Boris Ostrovsky
On 01/24/2017 11:23 AM, Juergen Gross wrote: > On 24/01/17 14:47, Boris Ostrovsky wrote: >> On 01/23/2017 01:59 PM, Boris Ostrovsky wrote: >>> On 01/23/2017 05:09 AM, Juergen Gross wrote: Handling of multiple concurrent Xenstore accesses through xenbus driver either from the kernel or

Re: [PATCH v4 2/5] ia64: reuse append_elf_note() and final_note() functions

2017-01-24 Thread Hari Bathini
On Friday 20 January 2017 11:17 AM, Michael Ellerman wrote: Hari Bathini writes: Get rid of multiple definitions of append_elf_note() & final_note() functions. Reuse these functions compiled under CONFIG_CRASH_CORE Also, define Elf_Word and use it instead of

Re: x86: WARNING: kernel stack frame pointer in kworker has bad value

2017-01-24 Thread Dmitry Vyukov
On Tue, Jan 24, 2017 at 4:48 PM, Josh Poimboeuf wrote: > On Tue, Jan 24, 2017 at 02:37:28PM +0100, Dmitry Vyukov wrote: >> On Mon, Jan 23, 2017 at 11:50 PM, Josh Poimboeuf wrote: >> > On Mon, Jan 23, 2017 at 07:43:18PM +0100, Dmitry Vyukov wrote: >> >>

Re: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Marc Zyngier
On 24/01/17 16:14, Shameerali Kolothum Thodi wrote: > Let's contemplate this for a moment. If we're on the affected ITS, we're > using the physical address of the GITS_TRANSLATER register. What > guarantees that this is not going to conflict with an IOVA that DMA is >

[PATCH 00/12] Fix few rmap-related THP bugs

2017-01-24 Thread Kirill A. Shutemov
The patch fixes handing PTE-mapped THPs in page_referenced() and page_idle_clear_pte_refs(). To achieve that I've intrdocued new helper -- page_check_walk() -- which replaces all page_check_address{,_transhuge}() and covers all THP cases. Patchset overview: - First patch fixes one uprobe bug

Re: [PATCH][V3][net-next] net: sctp: fix array overrun read on sctp_timer_tbl

2017-01-24 Thread Xin Long
On Tue, Jan 24, 2017 at 5:25 PM, Colin King wrote: > From: Colin Ian King > > Table sctp_timer_tbl is missing a TIMEOUT_RECONF string so > add this in. Also compare timeout with the size of the array > sctp_timer_tbl rather than

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-01-24 Thread Vivek Gautam
Hi, On Tue, Jan 24, 2017 at 7:45 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 24 January 2017 07:35 PM, Vivek Gautam wrote: >> On Tue, Jan 24, 2017 at 3:03 PM, Kishon Vijay Abraham I >> wrote: >>> Hi, >>> >>> On Friday 20 January 2017 03:12 AM, Stephen

[PATCH] perf/x86/intel/rapl: Rename rapl_cpu_prepare() to rapl_cpu_starting()

2017-01-24 Thread Yasuaki Ishimatsu
rapl_cpu_prepare() must be called after logical package id of CPU is set by topology_update_package_map(). But when onlining hot-added CPU, rapl_cpu_prepare() is called before setting logical package id of the hot-added CPU. So cpu_to_rapl_pmu() in rapl_cpu_prepare() finds a rapl_pmu of wrong

Re: [PATCH 08/22] rtc: Add device tree probing to the Gemini driver

2017-01-24 Thread Alexandre Belloni
On 22/01/2017 at 13:19:50 +0100, Linus Walleij wrote : > This adds bindings and simple probing for the Cortina Systems Gemini > SoC RTC. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Florian

Re: [PATCH net] net: dsa: Keep a reference count on ethernet_dev

2017-01-24 Thread Florian Fainelli
On 01/24/2017 09:39 AM, David Miller wrote: > From: Florian Fainelli > Date: Sat, 21 Jan 2017 09:40:54 -0800 > >> of_find_net_device_by_node() just returns a reference to a net_device but >> does >> not increment its reference count, which means that the master network

Re: [PATCH V7 05/10] acpi: apei: handle SEA notification type for ARMv8

2017-01-24 Thread James Morse
Hi Tyler, On 20/01/17 20:58, Baicar, Tyler wrote: > On 1/19/2017 10:57 AM, James Morse wrote: >> On 18/01/17 23:51, Baicar, Tyler wrote: >>> On 1/18/2017 7:50 AM, James Morse wrote: On 12/01/17 18:15, Tyler Baicar wrote: > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c

Re: [PATCH 0/6 v3] kvmalloc

2017-01-24 Thread Eric Dumazet
On Tue, 2017-01-24 at 16:17 +0100, Michal Hocko wrote: > On Thu 12-01-17 16:37:11, Michal Hocko wrote: > Are there any more comments? I would really appreciate to hear from > networking folks before I resubmit the series. I do not see any issues right now. I am happy to see this thing finally

Re: [PATCH] Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()

2017-01-24 Thread Stephen Hemminger
On Tue, 24 Jan 2017 06:54:46 + Dexuan Cui wrote: > +static inline void > +init_cached_read_index(struct vmbus_channel *channel) > +{ > + struct hv_ring_buffer_info *rbi = >inbound; > + > + rbi->cached_read_index = rbi->ring_buffer->read_index; > +} Looks good

RE: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Tuesday, January 24, 2017 3:50 PM > To: Shameerali Kolothum Thodi; Robin Murphy; mark.rutl...@arm.com; > will.dea...@arm.com; eric.au...@redhat.com > Cc: linux-arm-ker...@lists.infradead.org; Linuxarm; linux-

[PATCH] tile: fix build failure

2017-01-24 Thread Sudip Mukherjee
From: Sudip Mukherjee The build of tilegx allmodconfig was failing with errors like: ../arch/tile/include/asm/div64.h:5:15: error: unknown type name 'u64' static inline u64 mul_u32_u32(u32 a, u32 b) ^~~ ../arch/tile/include/asm/div64.h:5:31: error:

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-24 Thread Gregory CLEMENT
Hi David, On ven., janv. 20 2017, David Miller wrote: > From: Gregory CLEMENT > Date: Thu, 19 Jan 2017 22:49:32 +0100 > >> I created a new family for this switch and filled the ops structure >> by selecting which seems the more

[patch 3/4] kvmclock: export kvmclock clocksource pointer

2017-01-24 Thread Marcelo Tosatti
To be used by KVM PTP driver. Signed-off-by: Marcelo Tosatti --- arch/x86/include/asm/kvmclock.h |6 ++ arch/x86/kernel/kvmclock.c |3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) v2: export kvmclock clocksource structure directly (Paolo) Index:

Re: [PATCH 1/1] IB/cxgb3: fix misspelling in header guard

2017-01-24 Thread Doug Ledford
On Sun, 2017-01-22 at 15:55 +0200, Leon Romanovsky wrote: > On Sun, Jan 22, 2017 at 02:41:22PM +0100, Nicolas Iooss wrote: > > > > Use CXGB3_... instead of CXBG3_... > > > > Signed-off-by: Nicolas Iooss > > --- > >  include/uapi/rdma/cxgb3-abi.h | 2 +- > >  1 file

Re: [PATCH 4/9] drm: Add DRM support for tiny LCD displays

2017-01-24 Thread Jani Nikula
On Tue, 24 Jan 2017, Noralf Trønnes wrote: > Den 23.01.2017 10.28, skrev Daniel Vetter: >> On Sun, Jan 22, 2017 at 07:11:12PM +0100, Noralf Trønnes wrote: >>> tinydrm provides helpers for very simple displays that can use >>> CMA backed framebuffers and need flushing on

Re: [PATCH v3 1/3] of: Support parsing phandle argument lists through a nexus node

2017-01-24 Thread Rob Herring
On Tue, Jan 24, 2017 at 12:36 AM, Frank Rowand wrote: > Hi Stephen, > > Sorry I did not get to v1 and v2 in a timely manner. > > > On 01/23/17 12:48, Stephen Boyd wrote: >> Platforms like 96boards have a standardized connector/expansion >> slot that exposes signals like

Re: [PATCH 31/37] misc: Add host side pci driver for pci test function device

2017-01-24 Thread Christoph Hellwig
On Thu, Jan 12, 2017 at 03:56:20PM +0530, Kishon Vijay Abraham I wrote: > Add PCI endpoint test driver that can verify base address > register, legacy interrupt/MSI interrupt and read/write/copy > buffers between host and device. The corresponding pci-epf-test > function driver should be used on

[PATCH v4 0/2] modversions: redefine kcrctab entries as 32-bit values

2017-01-24 Thread Ard Biesheuvel
This v4 is a followup to [0] 'modversions: redefine kcrctab entries as relative CRC pointers', but since relative CRC pointers do not work in modules, and are actually only needed by powerpc with CONFIG_RELOCATABLE=y, I have made it a Kconfig selectable feature instead. Patch #1 introduces the

Re: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Robin Murphy
On 24/01/17 16:14, Shameerali Kolothum Thodi wrote: > > >> -Original Message- >> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >> Sent: Tuesday, January 24, 2017 3:50 PM >> To: Shameerali Kolothum Thodi; Robin Murphy; mark.rutl...@arm.com; >> will.dea...@arm.com; eric.au...@redhat.com

[PATCH 05/12] mm, rmap: check all VMAs that PTE-mapped THP can be part of

2017-01-24 Thread Kirill A. Shutemov
Current rmap code can miss a VMA that maps PTE-mapped THP if the first suppage of the THP was unmapped from the VMA. We need to walk rmap for the whole range of offsets that THP covers, not only the first one. vma_address() also need to be corrected to check the range instead of the first

Re: [PATCH 4/9] drm: Add DRM support for tiny LCD displays

2017-01-24 Thread Noralf Trønnes
Den 23.01.2017 10.28, skrev Daniel Vetter: On Sun, Jan 22, 2017 at 07:11:12PM +0100, Noralf Trønnes wrote: tinydrm provides helpers for very simple displays that can use CMA backed framebuffers and need flushing on changes. Signed-off-by: Noralf Trønnes Looks all pretty.

Re: [PATCH RFC 0/3] optimize kswapd when it does reclaim for hugepage

2017-01-24 Thread Michal Hocko
On Tue 24-01-17 15:49:01, Jia He wrote: > If there is a server with uneven numa memory layout: > available: 7 nodes (0-6) > node 0 cpus: 0 1 2 3 4 5 6 7 > node 0 size: 6603 MB > node 0 free: 91 MB > node 1 cpus: > node 1 size: 12527 MB > node 1 free: 157 MB > node 2 cpus: > node 2 size: 15087 MB >

RE: [RFC 2/4] irqchip, gicv3-its:Workaround for HiSilicon erratum 161010801

2017-01-24 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, January 24, 2017 4:43 PM > To: Marc Zyngier; Shameerali Kolothum Thodi; mark.rutl...@arm.com; > will.dea...@arm.com; eric.au...@redhat.com > Cc: linux-arm-ker...@lists.infradead.org; Linuxarm; linux-

Re: [PATCH RFC 1/3] mm/hugetlb: split alloc_fresh_huge_page_node into fast and slow path

2017-01-24 Thread Michal Hocko
On Tue 24-01-17 15:49:02, Jia He wrote: > This patch split alloc_fresh_huge_page_node into 2 parts: > - fast path without __GFP_REPEAT flag > - slow path with __GFP_REPEAT flag > > Thus, if there is a server with uneven numa memory layout: > available: 7 nodes (0-6) > node 0 cpus: 0 1 2 3 4 5 6 7

Re: [PATCH v4 1/4] lib: Update LZ4 compressor module

2017-01-24 Thread Sven Schmidt
On Mon, Jan 23, 2017 at 04:23:57PM -0800, Andrew Morton wrote: > On Sun, 22 Jan 2017 20:35:14 +0100 Sven Schmidt > <4ssch...@informatik.uni-hamburg.de> wrote: > > > This patch updates LZ4 kernel module to LZ4 v1.7.3 by Yann Collet. > > The kernel module is inspired by the previous work by Chanho

Re: [PATCH] srcu: Implement more-efficient reader counts

2017-01-24 Thread Paul E. McKenney
On Mon, Jan 23, 2017 at 07:26:45PM -0800, Lance Roy wrote: > > Yeah, we did have this same conversation awhile back, didn't we? > > > > Back then, did I think to ask if this could be minimized or even prevented > > by adding memory barriers appropriately? ;-) > > > >

[PATCH 1/2] staging: lustre: libcfs: use octal permissions

2017-01-24 Thread Ernestas Kulik
Using octal permissions instead of symbolic ones is preferred. Signed-off-by: Ernestas Kulik --- drivers/staging/lustre/lnet/libcfs/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/module.c

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-24 Thread Pavel Machek
> >>Right. > >> > >>Before reverting, can you please try if this patch works or not? > > > >Not really. Revert now. Sorry. > > > >Are you sure? This does not look equivalent to me at all. > > > >"name" file handling moved from drivers to the core, which added some > >crazy checks what name can

[PATCH v3] mm: add arch-independent testcases for RODATA

2017-01-24 Thread Jinbum Park
This patch makes arch-independent testcases for RODATA. Both x86 and x86_64 already have testcases for RODATA, But they are arch-specific because using inline assembly directly. and cacheflush.h is not suitable location for rodata-test related things. Since they were in cacheflush.h, If someone

Re: [RFC] net: ipv6: return the first matched rt6_info for multicast packets in find_rr_leaf()

2017-01-24 Thread Rajasekar Kumar
On Fri, Jan 20, 2017 at 11:58:04AM -0500, David Miller wrote: > From: Rajasekar Kumar > Date: Wed, 18 Jan 2017 20:43:37 +0530 > > > There is a performance issue when large number of interfaces are > > enabled with VRRP protocol in 2 router nodes which are connected > > to each

[PATCH v4 2/2] modversions: treat symbol CRCs as 32 bit quantities

2017-01-24 Thread Ard Biesheuvel
The modversion symbol CRCs are emitted as ELF symbols, which allows us to easily populate the kcrctab sections by relying on the linker to associate each kcrctab slot with the correct value. This has a couple of downsides: - Given that the CRCs are treated as memory addresses, we waste 4 bytes

[PATCH v4 1/2] kbuild: modversions: add infrastructure for emitting relative CRCs

2017-01-24 Thread Ard Biesheuvel
This add the kbuild infrastructure that will allow architectures to emit vmlinux symbol CRCs as 32-bit offsets to other locations in the kernel where the actual values are stored. This works around problems with CRCs being mistaken for relocatable symbols on kernels that self relocate at runtime

Re: [PATCH] ata: pata_of_platform: using of_property_read_u32() helper

2017-01-24 Thread Tejun Heo
On Tue, Jan 24, 2017 at 08:08:29PM +0800, Kefeng Wang wrote: > Using better of_property_read_u32() than generic of_get_property(). > > Cc: Bartlomiej Zolnierkiewicz > Cc: Hans de Goede > Cc: Tejun Heo > Signed-off-by: Kefeng Wang

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

2017-01-24 Thread Paul Kocialkowski
Le jeudi 15 décembre 2016 à 18:50 +0100, Peter Rosin a écrit : > The bindings are fine. > > The Tegra dts files are buggy, but the driver is also buggy, so those > two bugs cancel each other. So, the option is to either introduce > regressions by fixing the two bugs thus creating a flag day where

[PATCH 02/12] mm: introduce page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
The patch introduce new interface to check if a page is mapped into a vma. It aims to address shortcomings of page_check_address{,_transhuge}. Existing interface is not able to handle PTE-mapped THPs: it only finds the first PTE. The rest lefted unnoticed. page_check_walk() iterates over all

[PATCH 04/12] mm: fix handling PTE-mapped THPs in page_idle_clear_pte_refs()

2017-01-24 Thread Kirill A. Shutemov
For PTE-mapped THP page_check_address_transhuge() is not adequate: it cannot find all relevant PTEs, only the first one.i Let's switch it to page_check_walk(). I don't think it's subject for stable@: it's not fatal. Signed-off-by: Kirill A. Shutemov Cc:

[PATCH 09/12] mm, uprobes: convert __replace_page() to page_check_walk()

2017-01-24 Thread Kirill A. Shutemov
For consistency, it worth converting all page_check_address() to page_check_walk(), so we could drop the former. Signed-off-by: Kirill A. Shutemov --- kernel/events/uprobes.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff

[PATCH 01/12] uprobes: split THPs before trying replace them

2017-01-24 Thread Kirill A. Shutemov
For THPs page_check_address() always fails. It's better to split them first before trying to replace. Signed-off-by: Kirill A. Shutemov Cc: Oleg Nesterov Cc: Peter Zijlstra --- kernel/events/uprobes.c | 4 ++-- 1 file

Re: How to ensure other module/driver is initialized?

2017-01-24 Thread Ian Pilcher
On 01/24/2017 07:02 AM, Linus Walleij wrote: On Thu, Dec 15, 2016 at 8:50 PM, Ian Pilcher wrote: I maintain an out-of-tree kernel module that enables the front-panel LEDs on the Thecus N5550 NAS. https://github.com/ipilcher/n5550/blob/master/modules/n5550_board.c

[PATCH] phy: fix rockchip-inno-usb2 build errors

2017-01-24 Thread Randy Dunlap
: Chanwoo Choi <cw00.c...@samsung.com> Cc: Heiko Stuebner <he...@sntech.de> --- drivers/phy/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-next-20170124.orig/drivers/phy/Kconfig +++ linux-next-20170124/drivers/phy/Kconfig @@ -363,6 +363,7 @@ config PHY_ROCKCHIP_INNO_U

[PATCH] vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null

2017-01-24 Thread Greg Kurz
The recently added mediated VFIO driver doesn't know about powerpc iommu. It thus doesn't register a struct iommu_table_group in the iommu group upon device creation. The iommu_data pointer hence remains null. This causes a kernel oops when userspace tries to set the iommu type of a container

Re: [PATCH] tile: fix build failure

2017-01-24 Thread Chris Metcalf
On 1/24/2017 11:39 AM, Sudip Mukherjee wrote: From: Sudip Mukherjee The build of tilegx allmodconfig was failing with errors like: ../arch/tile/include/asm/div64.h:5:15: error: unknown type name 'u64' static inline u64 mul_u32_u32(u32 a, u32 b) ^~~

Re: [PATCH 00/17] Report power supply from hid-logitech-dj and others

2017-01-24 Thread Bastien Nocera
On Mon, 2017-01-23 at 15:35 +0100, Bastien Nocera wrote: > On Tue, 2017-01-17 at 15:35 +0100, Benjamin Tissoires wrote: > > Hey guys, > > > > I tried to revive the in-kernel battery support for HID++ devices. > > I was thinking of doing just a few patches, but in the end I had to > > do > >

[patch 2/4] KVM: x86: add KVM_HC_CLOCK_OFFSET hypercall

2017-01-24 Thread Marcelo Tosatti
Add a hypercall to retrieve the host realtime clock and the TSC value used to calculate that clock read. Used to implement clock synchronization between host and guest. Signed-off-by: Marcelo Tosatti --- Documentation/virtual/kvm/hypercalls.txt | 33

[patch 4/4] PTP: add kvm PTP driver

2017-01-24 Thread Marcelo Tosatti
Add a driver with gettime method returning hosts realtime clock. This allows Chrony to synchronize host and guest clocks with high precision (see results below). chronyc> sources MS Name/IP address Stratum Poll Reach LastRx Last sample

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-24 Thread Mark Rutland
On Wed, Jan 18, 2017 at 09:25:32PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The counter frequency detection call(arch_timer_detect_rate) combines two > ways to get counter frequency: system coprocessor register and MMIO timer. > But in a specific timer init code, we

[PATCH] cris: migrate exception table users off module.h and onto extable.h

2017-01-24 Thread Paul Gortmaker
This file was only including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and avoid all the extra header content in module.h that we don't really need to compile this file. Reported-by: kbuild test

[PATCH] staging: fbtft: remove duplicate entries of ili9225

2017-01-24 Thread Amitesh Singh
There are multiple entries for ili9225 display defined in flexfb_chip_table array. remove duplicate entries and keep single entry. Signed-off-by: Amitesh Singh --- drivers/staging/fbtft/flexfb.c | 16 1 file changed, 16 deletions(-) diff --git

Re: [PATCH 0/2] Support bpf prologue for arm64

2017-01-24 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 24, 2017 at 10:30:13AM +, He Kuang escreveu: > Two patches here makes bpf prologue available for arm64. Thanks, looks good, applied, - Arnaldo > He Kuang (2): > perf probe: Fix wrong register name for arm64 > perf tools: Introduce regs_query_register_offset() for arm64 > >

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

2017-01-24 Thread Tejun Heo
Hello, Mel. On Mon, Jan 23, 2017 at 11:04:29PM +, Mel Gorman wrote: > On Mon, Jan 23, 2017 at 03:55:01PM -0500, Tejun Heo wrote: > > Hello, Mel. > > > > On Mon, Jan 23, 2017 at 08:04:12PM +, Mel Gorman wrote: > > > What is the actual mechanism that does that? It's not something that > >

Re: [PATCH v5 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-01-24 Thread Mathieu Poirier
On Tue, Jan 24, 2017 at 04:58:42PM +0800, Baoyou Xie wrote: > This patch adds watchdog controller driver for ZTE's zx2967 family. > > Signed-off-by: Baoyou Xie > --- > drivers/watchdog/Kconfig | 10 ++ > drivers/watchdog/Makefile | 1 + >

Re: [PATCHv2 perf/core 0/7] Libbpf improvements

2017-01-24 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 22, 2017 at 05:11:21PM -0800, Joe Stringer escreveu: > Patch 1 fixes an issue when using drastically different BPF map definitions > inside ELFs from a client using libbpf, vs the map definition libbpf uses. > > Patches 2-4 add some simple, useful helper functions for setting prog

Re: [PATCH v3 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-24 Thread Juergen Gross
On 24/01/17 14:47, Boris Ostrovsky wrote: > On 01/23/2017 01:59 PM, Boris Ostrovsky wrote: >> On 01/23/2017 05:09 AM, Juergen Gross wrote: >>> Handling of multiple concurrent Xenstore accesses through xenbus driver >>> either from the kernel or user land is rather lame today: xenbus is >>> capable

Re: [PATCH RFC 2/3] mm, vmscan: limit kswapd loop if no progress is made

2017-01-24 Thread Michal Hocko
On Tue 24-01-17 15:49:03, Jia He wrote: > Currently there is no hard limitation for kswapd retry times if no progress > is made. Yes, because the main objective of the kswapd is to balance all memory zones. So having a hard limit on retries doesn't make any sense. > Then kswapd will take 100%

[patch 0/4] KVM virtual PTP driver (v5)

2017-01-24 Thread Marcelo Tosatti
This patchset implements a virtual PTP driver which allows guest to sync its clock to the host clock with high precision (error is < 1us on an idle guest). Changelog from v4 Drop PTP_SYS_OFFSET emulation via ->crosstimestamp callback (Richard). Emulate ->gettime directly without TSC offset

[patch 1/4] KVM: x86: provide realtime host clock via vsyscall notifiers

2017-01-24 Thread Marcelo Tosatti
Expose the realtime host clock and save the TSC value used for the clock calculation. Signed-off-by: Marcelo Tosatti --- arch/x86/kvm/x86.c | 36 1 file changed, 36 insertions(+) v2: unify nsec_base (Radim) Index:

[PATCH 2/2] staging: lustre: llite: use octal permissions

2017-01-24 Thread Ernestas Kulik
Using octal permissions instead of symbolic ones is preferred. Signed-off-by: Ernestas Kulik --- drivers/staging/lustre/lustre/llite/dir.c | 2 +- drivers/staging/lustre/lustre/llite/file.c | 2 +- drivers/staging/lustre/lustre/llite/llite_lib.c | 4 ++--

Re: [PATCH net-next v5] bridge: multicast to unicast

2017-01-24 Thread David Miller
From: Linus Lüssing Date: Sat, 21 Jan 2017 21:01:32 +0100 > From: Felix Fietkau > > Implements an optional, per bridge port flag and feature to deliver > multicast packets to any host on the according port via unicast > individually. This is done by

Re: [PATCH] bpf: don't kfree an uninitialized im_node

2017-01-24 Thread Alexei Starovoitov
On Tue, Jan 24, 2017 at 6:16 AM, Colin King wrote: > From: Colin Ian King > > There are some error exit paths to the label 'out' that end up > kfree'ing an uninitialized im_node. Fix this by inititializing > im_node to NULL to avoid kfree'ing

Re: [patch 4/4] PTP: add kvm PTP driver

2017-01-24 Thread Richard Cochran
On Tue, Jan 24, 2017 at 03:09:42PM -0200, Marcelo Tosatti wrote: > Add a driver with gettime method returning hosts realtime clock. > This allows Chrony to synchronize host and guest clocks with > high precision (see results below). > > chronyc> sources > MS Name/IP address Stratum Poll

[PATCH 4.9 094/130] ARM: dts: imx6qdl-nitrogen6_max: fix sgtl5000 pinctrl init

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Gary Bisson commit 6ab5c2b662e2dcbb964099bf7f19e9dbc9ae5a41 upstream. This patch fixes the following error: sgtl5000 0-000a: Error reading chip id -6

[PATCH 4.9 096/130] ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit f0e8faa7a5e894b0fc99d24be1b18685a92ea466 upstream. This function clearly never worked and always returns true, as pointed out by gcc-7:

[PATCH 4.9 044/130] mmc: sdhci-acpi: Only powered up enabled acpi child devices

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit e1d070c3793a2766122865a7c2142853b48808c5 upstream. Commit e5bbf30733f9 ("mmc: sdhci-acpi: Ensure connected devices are powered when probing")

[PATCH 4.9 103/130] xprtrdma: Make FRWR send queue entry accounting more accurate

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit 8d38de65644d900199f035277aa5f3da4aa9fc17 upstream. Verbs providers may perform house-keeping on the Send Queue during each signaled send completion.

[PATCH 4.9 084/130] libceph: remove now unused ceph_*{en,de}crypt*() functions

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 2b1e1a7cd0a615d57455567a549f9965023321b5 upstream. Signed-off-by: Ilya Dryomov Reviewed-by: Sage Weil

[PATCH 4.9 102/130] libceph: make sure ceph_aes_crypt() IV is aligned

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 124f930b8cbc4ac11236e6eb1c5f008318864588 upstream. ... otherwise the crypto stack will align it for us with a GFP_ATOMIC allocation and a memcpy() --

[PATCH 4.9 093/130] ARM: dts: omap2: Add an empty chosen node to top level DTSI

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 3d37d41a148c32389ed360e10a9f8a7cd37ce166 upstream. Commit d1f3156fc8c7 ("ARM: dts: omap2: Remove skeleton.dtsi usage") removed the

[PATCH 4.9 097/130] ARM: 8613/1: Fix the uaccess crash on PB11MPCore

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit 90f92c631b210c1e97080b53a9d863783281a932 upstream. The following patch was sketched by Russell in response to my crashes on the PB11MPCore after

[PATCH 4.9 047/130] mtd: nand: lpc32xx: fix invalid error handling of a requested irq

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Vladimir Zapolskiy commit cf9e1672a66c49ed8903c01b4c380a2f2dc91b40 upstream. Semantics of NR_IRQS is different on machines with SPARSE_IRQ option disabled or enabled, in the

Re: [PATCH v3 3/13] mmc: sunxi: Always set signal delay to 0 for A64

2017-01-24 Thread Ulf Hansson
On 16 January 2017 at 17:56, Maxime Ripard wrote: > Experience have shown that the using the autocalibration could severely > degrade the performances of the MMC bus. > > Allwinner is using in its BSP a delay set to 0 for all the modes but HS400. > Remove the

[PATCH 4.9 101/130] ceph: fix endianness bug in frag_tree_split_cmp

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Layton commit fe2ed42517533068ac03eed5630fffafff27eacf upstream. sparse says: fs/ceph/inode.c:308:36: warning: incorrect type in argument 1 (different base

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-24 Thread Miroslav Lichvar
On Tue, Jan 24, 2017 at 06:32:43AM +0100, Richard Cochran wrote: > On Mon, Jan 23, 2017 at 09:06:20PM -0200, Marcelo Tosatti wrote: > > Can you please describe what problem exists with this scheme? > > This new kernel code exists just because chrony doesn't implement the > PRECISE ioctl. Instead

[PATCH 4.9 070/130] arm64/ptrace: Preserve previous registers for short regset write

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit 9a17b876b573441bfb3387ad55d98bf7184daf9d upstream. Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers,

[PATCH 4.9 072/130] arm64/ptrace: Preserve previous registers for short regset write - 3

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit a672401c00f82e4e19704aff361d9bad18003714 upstream. Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers,

[PATCH 4.9 074/130] arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit ad9e202aa1ce571b1d7fed969d06f66067f8a086 upstream. We cannot preserve partial fields for hardware breakpoints, because the values written by userspace

[PATCH 4.9 073/130] arm64/ptrace: Avoid uninitialised struct padding in fpr_set()

2017-01-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit aeb1f39d814b2e21e5e5706a48834bfd553d0059 upstream. This patch adds an explicit __reserved[] field to user_fpsimd_state to replace what was previously

Re: [PATCH v4 1/3] mmc: dt-bindings: update Mediatek MMC bindings

2017-01-24 Thread Ulf Hansson
+Rob, devicetree On 21 January 2017 at 09:55, Yong Mao wrote: > From: yong mao > > Add description for mediatek,hs200-cmd-int-delay > Add description for mediatek,hs400-cmd-int-delay > Add description for mediatek,hs400-cmd-resp-sel-rising > >

  1   2   3   4   5   6   7   8   9   10   >