[PATCH 3.12 42/64] powerpc: Make value-returning atomics fully ordered

2016-02-11 Thread Jiri Slaby
From: Boqun Feng 3.12-stable review patch. If anyone has any objections, please let me know. === commit 49e9cf3f0c04bf76ffa59242254110309554861d upstream. According to memory-barriers.txt: > Any atomic operation that modifies some state in memory and returns > information about t

[PATCH 3.12 38/64] ipv6: update skb->csum when CE mark is propagated

2016-02-11 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 34ae6a1aa0540f0f781dd265366036355fdc8930 ] When a tunnel decapsulates the outer header, it has to comply with RFC 6080 and eventually propagate CE mark into inner h

[PATCH 3.12 28/64] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2016-02-11 Thread Jiri Slaby
From: Vijay Pandurangan 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit ce8c839b74e3017996fad4e1b7ba2e2625ede82f ] Packets that arrive from real hardware devices have ip_summed == CHECKSUM_UNNECESSARY if the hardware verified the c

[PATCH 3.12 37/64] phonet: properly unshare skbs in phonet_rcv()

2016-02-11 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 7aaed57c5c2890634cfadf725173c7c68ea4cb4f ] Ivaylo Dimitrov reported a regression caused by commit 7866a621043f ("dev: add per net_device packet type chains"). skb-

[PATCH] MAINTAINERS: mmc: Add Adrian Hunter as the maintainer for SDHCI

2016-02-11 Thread Ulf Hansson
>From discussions on linux-mmc I have been encouraging someone to pick up the maintainer role for SDHCI. I am very pleased that Adrian Hunter volunteered and accepted the challenge! The SDHCI code is currently in quite poor quality, but we have agreed on a way forward to try to reach a point where

Re: [PATCH v2 3/8] arm: add device-tree SoC bindings for Axis Artpec-6

2016-02-11 Thread Arnd Bergmann
On Thursday 11 February 2016 15:04:37 Lars Persson wrote: > + > +The DMA configuration unit muxes dma request lines between single and burst > +alternatives. > + > +Required properties: > +- compatible: axis,artpec6-dmacfg > +- reg: Address and length of DMACFG register. > + > +Example: > + d

[PATCH 3.12 35/64] ipv6: tcp: add rcu locking in tcp_v6_send_synack()

2016-02-11 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 3e4006f0b86a5ae5eb0e8215f9a9e1db24506977 ] When first SYNACK is sent, we already hold rcu_read_lock(), but this is not true if a SYNACK is retransmitted, as a timer

Re: [PATCH v2 0/8] arm: Add Artpec-6 SoC

2016-02-11 Thread Arnd Bergmann
On Thursday 11 February 2016 15:04:34 Lars Persson wrote: > Basic support for the Axis Artpec-6 ARM SoC. Timers, interrupts, UARTs and > ethernet are wired up. > > Changes since v1: > - Corrected bindings for axis,artpec6-pll1-clock. > - Moved the uart aliases to the board dts. > - Kconfig cleanup

[PATCH 3.12 47/64] arm64: Clear out any singlestep state on a ptrace detach operation

2016-02-11 Thread Jiri Slaby
From: John Blackwood 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5db4fd8c52810bd9740c1240ebf89223b171aa70 upstream. Make sure to clear out any ptrace singlestep state when a ptrace(2) PTRACE_DETACH call is made on arm64 systems. Otherwis

[PATCH 3.12 36/64] tcp_yeah: don't set ssthresh below 2

2016-02-11 Thread Jiri Slaby
From: Neal Cardwell 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 83d15e70c4d8909d722c0d64747d8fb42e38a48f ] For tcp_yeah, use an ssthresh floor of 2, the same floor used by Reno and CUBIC, per RFC 5681 (equation 4). tcp_yeah_ss

[PATCH 3.12 33/64] bridge: Only call /sbin/bridge-stp for the initial network namespace

2016-02-11 Thread Jiri Slaby
From: Hannes Frederic Sowa 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit ff62198553e43cdffa9d539f6165d3e83f8a42bc ] [I stole this patch from Eric Biederman. He wrote:] > There is no defined mechanism to pass network namespace in

[PATCH 3.12 34/64] net: sctp: prevent writes to cookie_hmac_alg from accessing invalid memory

2016-02-11 Thread Jiri Slaby
From: Sasha Levin 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 320f1a4a175e7cd5d3f006f92b4d4d3e2cbb7bb5 ] proc_dostring() needs an initialized destination string, while the one provided in proc_sctp_do_hmac_alg() contains stack

[PATCH 3.12 51/64] mn10300: Select CONFIG_HAVE_UID16 to fix build failure

2016-02-11 Thread Jiri Slaby
From: Guenter Roeck 3.12-stable review patch. If anyone has any objections, please let me know. === commit c86576ea114a9a881cf7328dc7181052070ca311 upstream. mn10300 builds fail with fs/stat.c: In function 'cp_old_stat': fs/stat.c:163:2: error: 'old_uid_t' undeclared ipc/util.c:

[PATCH 3.12 65/65] dm thin: fix race condition when destroying thin pool workqueue

2016-02-11 Thread Jiri Slaby
From: Nikolay Borisov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 18d03e8c25f173f4107a40d0b8c24defb6ed69f3 upstream. When a thin pool is being destroyed delayed work items are cancelled using cancel_delayed_work(), which doesn't guarantee

Re: [kernel-hardening] [PATCH] arm64: vdso: Mark vDSO code as read-only

2016-02-11 Thread Ard Biesheuvel
Hi David, Nice find! On 10 February 2016 at 22:52, David Brown wrote: > Although the arm64 vDSO is cleanly separated by code/data with the > code being read-only in userspace mappings, the code page is still > writable from the kernel. There have been exploits (such as > http://itszn.com/blog/?

[PATCH 3.12 27/64] mISDN: avoid arch specific __builtin_return_address call

2016-02-11 Thread Jiri Slaby
From: Arnd Bergmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3e7a8716e20b759eec0ad88145255bb33174f0c8 upstream. Not all architectures are able to call __builtin_return_address(). On ARM, the mISDN code produces this warning: hardware/

[PATCH 3.12 26/64] RDMA/cxgb4: Fix gcc warning on 32-bit arch

2016-02-11 Thread Jiri Slaby
From: Paul Bolle 3.12-stable review patch. If anyone has any objections, please let me know. === commit 298589b1cb626adf4beba6dd8e3cd4b64e8799be upstream. Building mem.o for 32 bits x86 triggers a GCC warning: drivers/infiniband/hw/cxgb4/mem.c: In function '_c4iw_write_mem_d

[PATCH 3.12 32/64] unix: properly account for FDs passed over unix sockets

2016-02-11 Thread Jiri Slaby
From: willy tarreau 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 ] It is possible for a process to allocate and accumulate far more FDs than the process' limit by sending them over a unix

Re: [PATCH] x86, pci: Add quirk for unsizeable Broadwell EP bar

2016-02-11 Thread Bjorn Helgaas
On Wed, Feb 10, 2016 at 11:23:33PM +0100, Andi Kleen wrote: > On Fri, Feb 05, 2016 at 10:34:27AM -0600, Bjorn Helgaas wrote: > > On Fri, Feb 05, 2016 at 04:36:17AM +0100, Andi Kleen wrote: > > > > > But would actually anything use it? > > > > > > > > You mean, would anything actually use the lspci

Re: [PATCH v3 3/3] efi: implement interruptible runtime services

2016-02-11 Thread Matt Fleming
On Wed, 13 Jan, at 05:32:42PM, Sylvain Chouleur wrote: > From: Sylvain Chouleur > > This patch adds an implementation of EFI runtime services wappers which > allow interrupts and preemption during execution of BIOS code. > > It's needed by Broxton platform which requires the OS to do the write >

[PATCH 3.12 25/64] lkdtm: adjust recursion size to avoid warnings

2016-02-11 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7d196ac303652588c60350f0a581d71e2e7b1a50 upstream. When CONFIG_FRAME_WARN is set low (e.g. some ARM builds), the hard-coded stack buffer size used for kernel stack over run testi

[PATCH 3.12 20/64] xhci: refuse loading if nousb is used

2016-02-11 Thread Jiri Slaby
From: Oliver Neukum 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1eaf35e4dd592c59041bc1ed3248c46326da1f5f upstream. The module should fail to load. Signed-off-by: Oliver Neukum Signed-off-by: Jiri Slaby --- drivers/usb/host/xhci.c | 4

[PATCH 3.12 21/64] ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h

2016-02-11 Thread Jiri Slaby
From: Behan Webster 3.12-stable review patch. If anyone has any objections, please let me know. === commit aeea3592a13bf12861943e44fc48f1f270941f8d upstream. With compilers which follow the C99 standard (like modern versions of gcc and clang), "extern inline" does the wrong thing

Re: [PATCH 3.12 00/64] 3.12.54-stable review

2016-02-11 Thread Jiri Slaby
On 02/11/2016, 03:10 PM, Jiri Slaby wrote: > On 02/11/2016, 03:09 PM, Nikolay Borisov wrote: >> Hi Jiri, >> >> I think this commit should also be included: >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=18d03e8c25f173f4107a40d0b8c24defb6ed69f3 > > Hi, > > given it i

[PATCH 3.12 23/64] drm/radeon: cypress_dpm: Fix unused variable warning when CONFIG_ACPI=n

2016-02-11 Thread Jiri Slaby
From: Alex Deucher 3.12-stable review patch. If anyone has any objections, please let me know. === commit 936b32643cb03dcb34ef5dab81970229b1cc2a33 upstream. With CONFIG_ACPI=n the following build warning is seen: drivers/gpu/drm/radeon/cypress_dpm.c:302:31: warning: unused variab

[PATCHv2 08/28] mm: postpone page table allocation until do_set_pte()

2016-02-11 Thread Kirill A. Shutemov
The idea (and most of code) is borrowed again: from Hugh's patchset on huge tmpfs[1]. Instead of allocation pte page table upfront, we postpone this until we have page to map in hands. This approach opens possibility to map the page as huge if filesystem supports this. Comparing to Hugh's patch I

[PATCHv2 14/28] thp: handle file pages in split_huge_pmd()

2016-02-11 Thread Kirill A. Shutemov
Splitting THP PMD is simple: just unmap it as in DAX case. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 8fd5a3c58353..4da4e915af61 100644 --- a/mm/huge_memory.c +++

[PATCHv2 22/28] page-flags: relax policy for PG_mappedtodisk and PG_reclaim

2016-02-11 Thread Kirill A. Shutemov
Therse flags are in use for file THP. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 19724e6ebd26..d0dfe4a5be33 100644 --- a/include/linux/pag

[PATCHv2 27/28] shmem: get_unmapped_area align huge page

2016-02-11 Thread Kirill A. Shutemov
From: Hugh Dickins Provide a shmem_get_unmapped_area method in file_operations, called at mmap time to decide the mapping address. It could be conditional on CONFIG_TRANSPARENT_HUGEPAGE, but save #ifdefs in other places by making it unconditional. shmem_get_unmapped_area() first calls the usual

[PATCHv2 04/28] mm: make remove_migration_ptes() beyond mm/migration.c

2016-02-11 Thread Kirill A. Shutemov
The patch makes remove_migration_ptes() available to be used in split_huge_page(). New parameter 'locked' added: as with try_to_umap() we need a way to indicate that caller holds rmap lock. We also shouldn't try to mlock() pte-mapped huge pages: pte-mapeed THP pages are never mlocked. Signed-off

[PATCHv2 09/28] rmap: support file thp

2016-02-11 Thread Kirill A. Shutemov
Naive approach: on mapping/unmapping the page as compound we update ->_mapcount on each 4k page. That's not efficient, but it's not obvious how we can optimize this. We can look into optimization later. PG_double_map optimization doesn't work for file pages since lifecycle of file pages is differe

Re: [PATCH v3 3/3] efi: implement interruptible runtime services

2016-02-11 Thread Sylvain Chouleur
2016-02-11 15:19 GMT+01:00 Matt Fleming : > Did you have any luck binding this driver to the other > Broxton-specific drivers? > > Additionally, you're going to want to make sure that > efi_enabled(EFI_OLD_MEMMAP) is false in efi_interruptible_init(), > otherwise you can't use the new EFI page tabl

[PATCHv2 05/28] thp: rewrite freeze_page()/unfreeze_page() with generic rmap walkers

2016-02-11 Thread Kirill A. Shutemov
freeze_page() and unfreeze_page() helpers evolved in rather complex beasts. It would be nice to cut complexity of this code. This patch rewrites freeze_page() using standard try_to_unmap(). unfreeze_page() is rewritten with remove_migration_ptes(). The result is much simpler. But the new variant

[PATCHv2 12/28] thp, vmstats: add counters for huge file pages

2016-02-11 Thread Kirill A. Shutemov
THP_FILE_ALLOC: how many times huge page was allocated and put page cache. THP_FILE_MAPPED: how many times file huge page was mapped. Signed-off-by: Kirill A. Shutemov --- include/linux/vm_event_item.h | 7 +++ mm/memory.c | 1 + mm/vmstat.c | 2 ++ 3 fil

[PATCHv2 15/28] thp: handle file COW faults

2016-02-11 Thread Kirill A. Shutemov
File COW for THP is handled on pte level: just split the pmd. Signed-off-by: Kirill A. Shutemov --- mm/memory.c | 5 + 1 file changed, 5 insertions(+) diff --git a/mm/memory.c b/mm/memory.c index 6c98ed8e3c4a..19eff2164e5b 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3334,6 +3334,11 @@ st

[PATCHv2 17/28] thp: skip file huge pmd on copy_huge_pmd()

2016-02-11 Thread Kirill A. Shutemov
File pmds can be safely skip on copy_huge_pmd(), we can re-fault them later. COW for file mappings handled on pte level. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/mm/huge_memory.

[PATCHv2 16/28] thp: handle file pages in mremap()

2016-02-11 Thread Kirill A. Shutemov
We need to mirror logic in move_ptes() wrt need_rmap_locks to get proper serialization file THP. Signed-off-by: Kirill A. Shutemov --- mm/mremap.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/mm/mremap.c b/mm/mremap.c index 8eeba02fc991..b43027a2598

[PATCHv2 25/28] truncate: handle file thp

2016-02-11 Thread Kirill A. Shutemov
For shmem/tmpfs we only need to tweak truncate_inode_page() and invalidate_mapping_pages(). Signed-off-by: Kirill A. Shutemov --- mm/truncate.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/mm/truncate.c b/mm/truncate.c index 7598b552ae03..40d3730a8e

[PATCH] firmware: qemu config needs I/O ports

2016-02-11 Thread Arnd Bergmann
Not all machines have PCI style I/O port memory, or they do not allow mapping it using the ioport_map() function, whcih results in a build error with the newly added qemu firmware code: drivers/firmware/built-in.o: In function `fw_cfg_io_cleanup': qemu_fw_cfg.c:(.text+0x144): undefined reference t

[PATCHv2 23/28] radix-tree: implement radix_tree_maybe_preload_order()

2016-02-11 Thread Kirill A. Shutemov
The new helper is similar to radix_tree_maybe_preload(), but tries to preload number of nodes required to insert (1 << order) continuous naturally-aligned elements. This is required to push huge pages into pagecache. Signed-off-by: Kirill A. Shutemov --- include/linux/radix-tree.h | 1 + lib/r

[PATCH] ld-version: Drop the 4th and 5th version components

2016-02-11 Thread Maciej W. Rozycki
ch I hesitated doing here for simplicity. What was the original reason to add the 4th and 5th components? Maciej linux-mips-ld-version-fix.diff Index: linux-20160211/scripts/ld-version.sh === --- linux-20160211.orig/scripts/ld-

Re: [PATCH 1/2] sched/deadline: add per rq tracking of admitted bandwidth

2016-02-11 Thread Steven Rostedt
On Thu, 11 Feb 2016 14:05:45 +0100 luca abeni wrote: > Well, I never used the rq utilization to re-build the root_domain > utilization (and I never played with root domains too much... :)... > So, I do not really know. Maybe the code should do: > raw_spin_lock(&rq->lock); > raw_spi

[PATCHv2 13/28] thp: support file pages in zap_huge_pmd()

2016-02-11 Thread Kirill A. Shutemov
For file pages we don't deposit page table on mapping: no need to withdraw it. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 732bda42ca80..8fd5a3c58353 100644 --- a

[PATCHv2 28/28] shmem: add huge pages support

2016-02-11 Thread Kirill A. Shutemov
Here's basic implementation of huge pages support for shmem/tmpfs. It's all pretty streight-forward: - shmem_getpage() allcoates huge page if it can and try to inserd into radix tree with shmem_add_to_page_cache(); - shmem_add_to_page_cache() puts the page onto radix-tree if there's

Re: [PATCH v4 0/6] arm64 UEFI early FDT handling

2016-02-11 Thread Ganapatrao Kulkarni
adding RobH (sorry, accidentally dropped Rob id in previous email) On Thu, Feb 11, 2016 at 6:33 PM, Ganapatrao Kulkarni wrote: > Hi Ard, > > On Thu, Feb 11, 2016 at 5:44 PM, Ard Biesheuvel > wrote: >> On 11 February 2016 at 12:42, Robert Richter >> wrote: >>> (+RobH and MarkR) >>> >>> On 09.02.

[PATCHv2 10/28] mm: introduce do_set_pmd()

2016-02-11 Thread Kirill A. Shutemov
With postponed page table allocation we have chance to setup huge pages. do_set_pte() calls do_set_pmd() if following criteria met: - page is compound; - pmd entry in pmd_none(); - vma has suitable size and alignment; Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 8 --- mm/in

[PATCHv2 21/28] vmscan: split file huge pages before paging them out

2016-02-11 Thread Kirill A. Shutemov
This is preparation of vmscan for file huge pages. We cannot write out huge pages, so we need to split them on the way out. Signed-off-by: Kirill A. Shutemov --- mm/vmscan.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 18b37

[PATCHv2 26/28] shmem: prepare huge=N mount option and /proc/sys/vm/shmem_huge

2016-02-11 Thread Kirill A. Shutemov
From: Hugh Dickins Plumb in a new "huge=1" or "huge=0" mount option to tmpfs: I don't want to get into a maze of boot options, madvises and fadvises at this stage, nor extend the use of the existing THP tuning to tmpfs; though either might be pursued later on. We just want a way to ask a tmpfs f

[PATCHv2 20/28] thp: file pages support for split_huge_page()

2016-02-11 Thread Kirill A. Shutemov
Basic scheme is the same as for anon THP. Main differences: - File pages are on radix-tree, so we have head->_count offset by HPAGE_PMD_NR. The count got distributed to small pages during split. - mapping->tree_lock prevents non-lockless access to pages under split over radix-tree;

[PATCHv2 06/28] mm: do not pass mm_struct into handle_mm_fault

2016-02-11 Thread Kirill A. Shutemov
We always have vma->vm_mm around. Signed-off-by: Kirill A. Shutemov --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 2 +- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/avr32/mm/fault.c | 2 +- arch/cris/mm/fault.c

[PATCHv2 24/28] filemap: prepare find and delete operations for huge pages

2016-02-11 Thread Kirill A. Shutemov
For now, we would have HPAGE_PMD_NR entries in radix tree for every huge page. That's suboptimal and it will be changed to use Matthew's multi-order entries later. 'add' operation is not changed, because we don't need it to implement hugetmpfs: shmem uses its own implementation. Signed-off-by: Ki

[PATCHv2 18/28] thp: prepare change_huge_pmd() for file thp

2016-02-11 Thread Kirill A. Shutemov
change_huge_pmd() has assert which is not relvant for file page. For shared mapping it's perfectly fine to have page table entry writable, without explicit mkwrite. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/hug

[PATCHv2 19/28] thp: run vma_adjust_trans_huge() outside i_mmap_rwsem

2016-02-11 Thread Kirill A. Shutemov
vma_addjust_trans_huge() splits pmd if it's crossing VMA boundary. During split we munlock the huge page which requires rmap walk. rmap wants to take the lock on its own. Signed-off-by: Kirill A. Shutemov --- mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mm

[PATCHv2 07/28] mm: introduce fault_env

2016-02-11 Thread Kirill A. Shutemov
The idea borrowed from Peter's patch from patchset on speculative page faults[1]: Instead of passing around the endless list of function arguments, replace the lot with a single structure so we can change context without endless function signature changes. The changes are mostly mechanical with e

[PATCHv2 01/28] thp, dax: do not try to withdraw pgtable from non-anon VMA

2016-02-11 Thread Kirill A. Shutemov
DAX doesn't deposit pgtables when it maps huge pages: nothing to withdraw. It can lead to crash. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 8ca1718f7df3..2057a3b7cc24 10064

[PATCH 3.12 19/64] USB: cp210x: add ID for ELV Marble Sound Board 1

2016-02-11 Thread Jiri Slaby
From: Oliver Freyermuth 3.12-stable review patch. If anyone has any objections, please let me know. === commit f7d7f59ab124748156ea551edf789994f05da342 upstream. Add the USB device ID for ELV Marble Sound Board 1. Signed-off-by: Oliver Freyermuth Signed-off-by: Johan Hovold Sig

[PATCHv2 11/28] mm, rmap: account file thp pages

2016-02-11 Thread Kirill A. Shutemov
Let's add FileHugePages field into meminfo. NR_ANON_TRANSPARENT_HUGEPAGES is renames to NR_ANON_THPS. Signed-off-by: Kirill A. Shutemov --- drivers/base/node.c| 10 ++ fs/proc/meminfo.c | 5 +++-- include/linux/mmzone.h | 3 ++- mm/huge_memory.c | 2 +- mm/rmap.c

Re: [scsi 1/2] ufs: fix typo: MAZ to MAX

2016-02-11 Thread Martin K. Petersen
> "Tomas" == Tomas Winkler writes: Tomas> QUERY_DESC_GEOMETRY_MAZ_SIZE QUERY_DESC_GEOMETRY_MAX_SIZE Applied to 4.6/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

[PATCH 3.12 17/64] usb: xhci: fix config fail of FS hub behind a HS hub with MTT

2016-02-11 Thread Jiri Slaby
From: Chunfeng Yun 3.12-stable review patch. If anyone has any objections, please let me know. === commit 096b110a3dd3c868e4610937c80d2e3f3357c1a9 upstream. if a full speed hub connects to a high speed hub which supports MTT, the MTT field of its slot context will be set to 1 when

[PATCHv2 03/28] rmap: extend try_to_unmap() to be usable by split_huge_page()

2016-02-11 Thread Kirill A. Shutemov
The patch add support for two ttu_flags: - TTU_SPLIT_HUGE_PMD would split PMD if it's there, before trying to unmap page; - TTU_RMAP_LOCKED indicates that caller holds relevant rmap lock; Apart these flags, patch changes rwc->done to !page_mapcount() instead of !page_mapped(). try_to_unm

[PATCH 3.12 15/64] ASoC: arizona: Fix bclk for sample rates that are multiple of 4kHz

2016-02-11 Thread Jiri Slaby
From: Nikesh Oswal 3.12-stable review patch. If anyone has any objections, please let me know. === commit e73694d871867cae8471d2350ce89acb38bc2b63 upstream. For a sample rate of 12kHz the bclk was taken from the 44.1kHz table as we test for a multiple of 8kHz. This patch fixes thi

[PATCHv2 02/28] rmap: introduce rmap_walk_locked()

2016-02-11 Thread Kirill A. Shutemov
rmap_walk_locked() is the same as rmap_walk(), but caller takes care about relevant rmap lock. It's preparation to switch THP splitting from custom rmap walk in freeze_page()/unfreeze_page() to generic one. Signed-off-by: Kirill A. Shutemov --- include/linux/rmap.h | 1 + mm/rmap.c

[PATCHv2 00/28] huge tmpfs implementation using compound pages

2016-02-11 Thread Kirill A. Shutemov
Here is my implementation of huge pages support in tmpfs/shmem. It's more or less complete. I'm comfortable enough with this to run my workstation. And it hasn't crashed so far. :) The main difference with Hugh's approach[1] is that I continue with compound pages, where Hugh invents new way coupl

[PATCH 3.12 08/64] ALSA: timer: Fix race among timer ioctls

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit af368027a49a751d6ff4ee9e3f9961f35bb4fede upstream. ALSA timer ioctls have an open race and this may lead to a use-after-free of timer instance object. A simplistic fix is to

[PATCH 3.12 14/64] ASoC: wm8962: correct addresses for HPF_C_0/1

2016-02-11 Thread Jiri Slaby
From: Sachin Pandhare 3.12-stable review patch. If anyone has any objections, please let me know. === commit e9f96bc53c1b959859599cb30ce6fd4fbb4448c2 upstream. >From datasheet: R17408 (4400h) HPF_C_1 R17409 (4401h) HPF_C_0 17048 -> 17408 (0x4400) 17049 -> 17409 (0x4401) Signed-of

[PATCH 3.12 09/64] ALSA: timer: Fix double unlink of active_list

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit ee8413b01045c74340aa13ad5bdf905de32be736 upstream. ALSA timer instance object has a couple of linked lists and they are unlinked unconditionally at snd_timer_stop(). Meanwhil

[RFC v2 08/15] iommu/arm-smmu: implement iommu_get/put_single_reserved

2016-02-11 Thread Eric Auger
Implement the iommu_get/put_single_reserved API in arm-smmu. In order to track which physical address is already mapped we use the RB tree indexed by PA. Signed-off-by: Eric Auger --- v1 -> v2: - previously in vfio_iommu_type1.c --- drivers/iommu/arm-smmu.c | 114 +

[RFC v2 05/15] iommu/arm-smmu: implement alloc/free_reserved_iova_domain

2016-02-11 Thread Eric Auger
Implement alloc/free_reserved_iova_domain for arm-smmu. we use the iova allocator (iova.c). The iova_domain is attached to the arm_smmu_domain struct. A mutex is introduced to protect it. Signed-off-by: Eric Auger --- v1 -> v2: - formerly implemented in vfio_iommu_type1 --- drivers/iommu/arm-s

[PATCH 3.12 10/64] ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode

2016-02-11 Thread Jiri Slaby
From: Nicolas Boichat 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9586495dc3011a80602329094e746dbce16cb1f1 upstream. This reverts one hunk of commit ef44a1ec6eee ("ALSA: sound/core: use memdup_user()"), which replaced a number of kmalloc

[RFC v2 00/15] KVM PCIe/MSI passthrough on ARM/ARM64

2016-02-11 Thread Eric Auger
This series addresses KVM PCIe passthrough with MSI enabled on ARM/ARM64. It pursues the efforts done on [1], [2], [3]. It also aims at covering the same need on PowerPC platforms although the same kind of integration should be carried out. On x86 all accesses to the 1MB PA region [FEE0_h - FE

[RFC v2 04/15] iommu: add alloc/free_reserved_iova_domain

2016-02-11 Thread Eric Auger
Introduce alloc/free_reserved_iova_domain in the IOMMU API. alloc_reserved_iova_domain initializes an iova domain at a given iova base address and with a given size. This iova domain will be used to allocate iova within that window. Those IOVAs will be reserved for special purpose, typically MSI fr

Re: [PATCH] firmware: qemu config needs I/O ports

2016-02-11 Thread Gabriel L. Somlo
On Thu, Feb 11, 2016 at 03:23:51PM +0100, Arnd Bergmann wrote: > Not all machines have PCI style I/O port memory, or they do not allow > mapping it using the ioport_map() function, whcih results in a > build error with the newly added qemu firmware code: > > drivers/firmware/built-in.o: In functio

[RFC v2 12/15] msi: export msi_get_domain_info

2016-02-11 Thread Eric Auger
We plan to use msi_get_domain_info in VFIO module so let's export it. Signed-off-by: Eric Auger --- include/linux/msi.h | 4 kernel/irq/msi.c| 1 + 2 files changed, 5 insertions(+) diff --git a/include/linux/msi.h b/include/linux/msi.h index 03eda72..df19315 100644 --- a/include/linux/

Re: [PATCH RESEND] scsi: sim710: fix build warning

2016-02-11 Thread Martin K. Petersen
> "Sudip" == Sudip Mukherjee writes: Sudip> We are getting build warning about: "Section mismatch in Sudip> reference from the variable sim710_eisa_driver to the function Sudip> .init.text:sim710_eisa_probe() The variable sim710_eisa_driver Sudip> references the function __init sim710_eisa_pr

[RFC v2 15/15] irqchip/gicv2m/v3-its-pci-msi: IOMMU map the MSI frame when needed

2016-02-11 Thread Eric Auger
In case the msi_desc references a device attached to an iommu domain, the msi address needs to be mapped in the IOMMU. Else any MSI write transaction will cause a fault. gic_set_msi_addr detects that case and allocates an iova bound to the physical address page comprising the MSI frame. This iova

[RFC v2 14/15] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-02-11 Thread Eric Auger
Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu. Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel IOMMU featuring IRQ remapping HW. So to check IRQ remmapping capability, the msi domain needs to be checked instead. Signed-off-by: Eric Auger --- dr

[RFC v2 13/15] vfio/type1: also check IRQ remapping capability at msi domain

2016-02-11 Thread Eric Auger
On x86 IRQ remapping is abstracted by the IOMMU. On ARM this is abstracted by the msi controller. vfio_msi_parent_irq_remapping_capable allows to check whether interrupts are "safe" for a given device. There are if the device does not use MSI or if the device uses MSI and the msi-parent controller

[RFC v2 10/15] vfio: allow the user to register reserved iova range for MSI mapping

2016-02-11 Thread Eric Auger
The user is allowed to register a reserved IOVA range by using the DMA MAP API and setting the new flag: VFIO_DMA_MAP_FLAG_MSI_RESERVED_IOVA. It provides the base address and the size. This region is stored in the vfio_dma rb tree. At that point the iova range is not mapped to any target address ye

Re: [PATCH RESEND] scsi: ppa: use new parport device model

2016-02-11 Thread Martin K. Petersen
> "Sudip" == Sudip Mukherjee writes: Sudip> Modify ppa driver to use the new parallel port device model. Sudip> Signed-off-by: Sudip Mukherjee --- Sudip> Resending as there was no review or ACK for this change. This Sudip> has exactly same changes as done in scsi/imm.c which has already Su

[RFC v2 11/15] msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-02-11 Thread Eric Auger
Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING meant to tell the domain supports IRQ REMAPPING, also known as Interrupt Translation Service. On Intel HW this capability is abstracted on IOMMU side while on ARM it is abstracted on MSI controller side. GICv3 ITS HW is the f

[PATCH] powerpc/fsl_rio: update for port-write interface change

2016-02-11 Thread Alexandre Bounine
Platform-specific update following changes in port-write handler interface. This is a follow-up patch for [PATCH 22/30] rapidio: add global inbound port write interfaces Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Benjamin Herrenschmidt Cc: Aurelien Jacquiot Cc: Andre van Herk C

[PATCH v3 1/1] powerpc/86xx: Consolidate common platform code

2016-02-11 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- v2 -> v3 Use isync() as suggested by Denis Kirjanov v1 -> v2 Use appropriate [PATCH] prefix arch/powerpc/platforms/86xx/Makefile | 2 +- arch/powerpc/platforms/86xx/common.c | 43 ++ arch/powerpc/pla

Re: [PATCH 1/3] usb: USB Type-C Connector Class

2016-02-11 Thread Heikki Krogerus
Hi Felipe, > >> 4. partner_alt_modes - Lists partner's Alternate Modes when connected > > partner_alternate_modes ? (it's a file name, we can spell it out) > > >> 5. partner_type - Can be USB, Charger, Alt Mode or Accessory > >> 6. data_role - The current data role, host or device > >> 7. data_r

[PATCH 3.12 16/64] ASoC: compress: Fix compress device direction check

2016-02-11 Thread Jiri Slaby
From: Vinod Koul 3.12-stable review patch. If anyone has any objections, please let me know. === commit a1068045883ed4a18363a4ebad0c3d55e473b716 upstream. The detection of direction for compress was only taking into account codec capabilities and not CPU ones. Fix this by checking

Re: [PATCH 1/2] power/reset: versatile: support the actual versatile

2016-02-11 Thread Linus Walleij
Hi knock knock, On Mon, Jan 25, 2016 at 9:29 AM, Linus Walleij wrote: > While this driver is named after the Versatile family of > boards (ARM reference designs) the machine actually called > Versatile was not supported. This patch makes the driver > handle also that machine. We augment the regi

Re: [RFC][PATCH v3 4/4] printk: set may_schedule for some of console_trylock callers

2016-02-11 Thread Petr Mladek
On Sat 2016-01-23 17:15:13, Sergey Senozhatsky wrote: > console_unlock() allows to cond_resched() if its caller has > set `console_may_schedule' to 1, since > 'commit 8d91f8b15361 ("printk: do cond_resched() between lines while > outputting to consoles")'. > > The rules are: > -- console_lock() al

[RFC v2 06/15] iommu/arm-smmu: add a reserved binding RB tree

2016-02-11 Thread Eric Auger
we will need to track which host physical addresses are mapped to reserved IOVA. In that prospect we introduce a new RB tree indexed by physical address. This RB tree only is used for reserved IOVA bindings. It is expected this RB tree will contain very few bindings. Those generally correspond to

[RFC v2 03/15] vfio: introduce VFIO_IOVA_RESERVED vfio_dma type

2016-02-11 Thread Eric Auger
We introduce a vfio_dma type since we will need to discriminate legacy vfio_dma's from new reserved ones. Since those latter are not mapped at registration, some treatments need to be reworked: removal, replay. Currently they are unplugged. In subsequent patches they will be reworked. Signed-off-b

[RFC v2 01/15] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-02-11 Thread Eric Auger
Introduce new DOMAIN_ATTR_MSI_MAPPING domain attribute. If supported, this means the MSI addresses need to be mapped in the IOMMU. ARM SMMUS and FSL PAMU, at least expose this attribute. x86 IOMMUs typically don't expose the attribute since on x86, MSI write transaction addresses always are within

[RFC v2 02/15] vfio: expose MSI mapping requirement through VFIO_IOMMU_GET_INFO

2016-02-11 Thread Eric Auger
This patch allows the user-space to retrieve whether msi write transaction addresses must be mapped. This is returned through the VFIO_IOMMU_GET_INFO API and its new flag: VFIO_IOMMU_INFO_REQUIRE_MSI_MAP. Signed-off-by: Bharat Bhushan Signed-off-by: Eric Auger --- RFC v1 -> v1: - derived from

[PATCH 3.12 12/64] ALSA: hrtimer: Fix stall by hrtimer_cancel()

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2ba1fe7a06d3624f9a7586d672b55f08f7c670f3 upstream. hrtimer_cancel() waits for the completion from the callback, thus it must not be called inside the callback itself. This wa

Re: USB Ethernet gadget on Nokia n900

2016-02-11 Thread Pali Rohár
On Tuesday 19 January 2016 21:58:19 Pali Rohár wrote: > On Tuesday 07 July 2015 13:46:59 Tony Lindgren wrote: > > * Pali Rohár [150707 00:48]: > > > On Monday 06 July 2015 06:53:18 Tony Lindgren wrote: > > > > * Pali Rohár [150706 06:27]: > > > > > On Tuesday 28 October 2014 23:26:41 Tony Lindgre

[PATCH 3.12 07/64] ALSA: timer: Harden slave timer list handling

2016-02-11 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit b5a663aa426f4884c71cd8580adae73f33570f0d upstream. A slave timer instance might be still accessible in a racy way while operating the master instance as it lacks of locking.

[PATCH 3.12 11/64] ALSA: pcm: Fix snd_pcm_hw_params struct copy in compat mode

2016-02-11 Thread Jiri Slaby
From: Nicolas Boichat 3.12-stable review patch. If anyone has any objections, please let me know. === commit 43c54b8c7cfe22f868a751ba8a59abf1724160b1 upstream. This reverts one hunk of commit ef44a1ec6eee ("ALSA: sound/core: use memdup_user()"), which replaced a number of kmalloc

[RFC v2 09/15] iommu/arm-smmu: relinquish reserved resources on domain deletion

2016-02-11 Thread Eric Auger
arm_smmu_unmap_reserved releases all reserved binding resources: destroy all bindings, free iova, free iova_domain. This happens on domain deletion. Signed-off-by: Eric Auger --- drivers/iommu/arm-smmu.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) d

[RFC v2 07/15] iommu: iommu_get/put_single_reserved

2016-02-11 Thread Eric Auger
This patch introduces iommu_get/put_single_reserved. iommu_get_single_reserved allows to allocate a new reserved iova page and map it onto the physical page that contains a given physical address. It returns the iova that is mapped onto the provided physical address. Hence the physical address pas

[PATCH 3.12 03/64] ALSA: hda - Set SKL+ hda controller power at freeze() and thaw()

2016-02-11 Thread Jiri Slaby
From: Xiong Zhang 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3e6db33aaf1d42a30339f831ec4850570d6cc7a3 upstream. It takes three minutes to enter into hibernation on some OEM SKL machines and we see many codec spurious response after thaw(

Re: [PATCH v2 0/7] irqchip: introduce the Alpine MSIX driver

2016-02-11 Thread Antoine Tenart
Hello Marc, On Thu, Feb 11, 2016 at 01:41:48PM +, Marc Zyngier wrote: > On 10/02/16 13:22, Antoine Tenart wrote: > > > > This series introduce the Alpine MSIX driver, and enables it in both > > the Alpine v1 and Alpine v2 device trees. > > > > This series depends on "[PATCH v2 0/3] arm64: in

Re: USB Ethernet gadget on Nokia n900

2016-02-11 Thread Pali Rohár
On Thursday 11 February 2016 15:43:47 Pali Rohár wrote: > On Tuesday 19 January 2016 21:58:19 Pali Rohár wrote: > > On Tuesday 07 July 2015 13:46:59 Tony Lindgren wrote: > > > * Pali Rohár [150707 00:48]: > > > > On Monday 06 July 2015 06:53:18 Tony Lindgren wrote: > > > > > * Pali Rohár [150706

Re: [PATCH] bonding: Return correct error code

2016-02-11 Thread David Miller
From: Amitoj Kaur Chawla Date: Sun, 7 Feb 2016 10:56:25 +0530 > The return value of kzalloc on failure of allocation of memory should > be -ENOMEM and not -1. > > Found using Coccinelle. A simplified version of the semantic patch > used is: ... > The single call site only checks that the return

<    1   2   3   4   5   6   7   8   9   >