[PATCH 3.12 52/88] mac80211: mesh: flush mesh paths unconditionally

2016-07-14 Thread Jiri Slaby
From: Bob Copeland 3.12-stable review patch. If anyone has any objections, please let me know. === commit fe7a7c57629e8dcbc0e297363a9b2366d67a6dc5 upstream. Currently, the mesh paths associated with a nexthop station are cleaned up in the following code path: __sta_info_destr

[PATCH v2 1/2] Documentation: mmc: add description for new no-sd* and no-mmc

2016-07-14 Thread Shawn Lin
This patch adds description for no-sd, no-sdio, no-mmc. We expose these to DT as some of the controllers are unable to deal with special cmd type due to hw limitation. Signed-off-by: Shawn Lin --- Changes in v2: - amend the description of these properties and the commit msg Documentation/devi

[PATCH 3.12 60/88] x86/amd_nb: Fix boot crash on non-AMD systems

2016-07-14 Thread Jiri Slaby
From: Borislav Petkov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1ead852dd88779eda12cb09cc894a03d9abfe1ec upstream. Fix boot crash that triggers if this driver is built into a kernel and run on non-AMD systems. AMD northbridges users ca

[PATCH 3.12 59/88] kprobes/x86: Clear TF bit in fault on single-stepping

2016-07-14 Thread Jiri Slaby
From: Masami Hiramatsu 3.12-stable review patch. If anyone has any objections, please let me know. === commit dcfc47248d3f7d28df6f531e6426b933de94370d upstream. Fix kprobe_fault_handler() to clear the TF (trap flag) bit of the flags register in the case of a fault fixup on single-

[PATCH 3.12 55/88] powerpc/iommu: Remove the dependency on EEH struct in DDW mechanism

2016-07-14 Thread Jiri Slaby
From: "Guilherme G. Piccoli" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8445a87f7092bc8336ea1305be9306f26b846d93 upstream. Commit 39baadbf36ce ("powerpc/eeh: Remove eeh information from pci_dn") changed the pci_dn struct by removing its

Re: [PATCH] bonding:Fix perfomance drop if one bonding device in configuration is repeatedly restarted

2016-07-14 Thread Jay Vosburgh
Nicholas Krause wrote: >This fixes a issue with the following test caseL > >1. Created a alb bonding(bond0) with three of 1Gb interfaces >(eth0, eth1, eth2) under ipv4, set the bond0 ip address as >192.168.10.101, run command "iperf -s" as the server(x86_64). > >2. Run command "iperf -c 192.168.1

Re: [PATCH] iommu/vt-d: return error code in domain_context_mapping_one()

2016-07-14 Thread Joerg Roedel
On Wed, Jul 13, 2016 at 01:53:21PM +, Wei Yang wrote: > In 'commit <55d940430ab9> ("iommu/vt-d: Get rid of domain->iommu_lock")', > the error handling path is changed a little, which makes the function > always return 0. > > This path fixes this. > > Signed-off-by: Wei Yang Applied, thanks.

Re: [PATCH RFC 1/4] dma: imx-sdma - reduce transfer latency for DMA cyclic clients

2016-07-14 Thread Peter Senna Tschudin
On Thu, Jun 09, 2016 at 03:16:30PM +0300, Nandor Han wrote: > Having the SDMA driver use a tasklet for running the clients > callback introduce some issues: > - probability to have desynchronized data because of the > race condition created since the DMA transaction status > is retrieved

[PATCH 3.12 44/88] netfilter: x_tables: introduce and use xt_copy_counters_from_user

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit d7591f0c41ce3e67600a982bab6989ef0f07b3ce upstream The three variants use same copy&pasted code, condense this into a helper and use that. Make sure info.name is 0-termina

[PATCH 3.12 51/88] usb: musb: Ensure rx reinit occurs for shared_fifo endpoints

2016-07-14 Thread Jiri Slaby
From: Andrew Goodbody 3.12-stable review patch. If anyone has any objections, please let me know. === commit f3eec0cf784e0d6c47822ca6b66df3d5812af7e6 upstream. shared_fifo endpoints would only get a previous tx state cleared out, the rx state was only cleared for non shared_fifo e

[PATCH 3.12 45/88] crypto: ux500 - memmove the right size

2016-07-14 Thread Jiri Slaby
From: Linus Walleij 3.12-stable review patch. If anyone has any objections, please let me know. === commit 19ced623db2fe91604d69f7d86b03144c5107739 upstream. The hash buffer is really HASH_BLOCK_SIZE bytes, someone must have thought that memmove takes n*u32 words by mistake. Tests

[PATCH 3.12 48/88] net: alx: Work around the DMA RX overflow issue

2016-07-14 Thread Jiri Slaby
From: Feng Tang 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 881d0327db37ad917a367c77aff1afa1ee41e0a9 ] Note: This is a verified backported patch for stable 4.4 kernel, and it could also be applied to 4.3/4.2/4.1/3.18/3.16 Ther

Re: [PATCH] bindings: PCI: artpec: correct pci binding example

2016-07-14 Thread Arnd Bergmann
On Thursday, July 14, 2016 1:54:20 AM CEST Niklas Cassel wrote: > On 07/08/2016 11:39 AM, Arnd Bergmann wrote: > > On Friday, July 8, 2016 1:28:10 AM CEST Niklas Cassel wrote: > >> From: Niklas Cassel > >> > >> - Increase config size. When using a PCIe switch, > >>the previous config size onl

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-07-14 Thread Feng Tang
if you only want it to work, you can try an old patch https://bugzilla.kernel.org/attachment.cgi?id=76071 from a similar bug https://bugzilla.kernel.org/show_bug.cgi?id=41932 Alistair Buxton confirmed it work for 3.18 at least https://bugzilla.kernel.org/show_bug.cgi?id=107151#c16 Thanks, Feng O

[PATCH 3.12 43/88] Revert "netfilter: ensure number of counters is >0 in do_replace()"

2016-07-14 Thread Jiri Slaby
From: Bernhard Thaler 3.12-stable review patch. If anyone has any objections, please let me know. === commit d26e2c9ffa385dd1b646f43c1397ba12af9ed431 upstream. This partially reverts commit 1086bbe97a07 ("netfilter: ensure number of counters is >0 in do_replace()") in net/bridge/n

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-14 Thread Vlastimil Babka
On 07/14/2016 07:23 AM, Joonsoo Kim wrote: On Fri, Jul 08, 2016 at 11:11:47AM +0100, Mel Gorman wrote: On Fri, Jul 08, 2016 at 11:44:47AM +0900, Joonsoo Kim wrote: It doesn't stop reclaiming for the lower zones. It's reclaiming the LRU for the whole node that may or may not have lower zone page

[PATCH 3.12 46/88] sit: correct IP protocol used in ipip6_err

2016-07-14 Thread Jiri Slaby
From: Simon Horman 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit d5d8760b78d0cfafe292f965f599988138b06a70 ] Since 32b8a8e59c9c ("sit: add IPv4 over IPv4 support") ipip6_err() may be called for packets whose IP protocol is IPPROTO

[PATCH 3.12 47/88] ipmr/ip6mr: Initialize the last assert time of mfc entries.

2016-07-14 Thread Jiri Slaby
From: Tom Goff 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 70a0dec45174c976c64b4c8c1d0898581f759948 ] This fixes wrong-interface signaling on 32-bit platforms for entries created when jiffies > 2^31 + MFC_ASSERT_THRESH. Signed

[PATCH 3.12 41/88] netfilter: ensure number of counters is >0 in do_replace()

2016-07-14 Thread Jiri Slaby
From: Dave Jones 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1086bbe97a074844188c6c988fa0b1a98c3ccbb9 upstream. After improving setsockopt() coverage in trinity, I started triggering vmalloc failures pretty reliably from this code path:

[PATCH 3.12 49/88] usb: quirks: Add no-lpm quirk for Acer C120 LED Projector

2016-07-14 Thread Jiri Slaby
From: Hans de Goede 3.12-stable review patch. If anyone has any objections, please let me know. === commit 32cb0b37098f4beeff5ad9e325f11b42a6ede56c upstream. The Acer C120 LED Projector is a USB-3 connected pico projector which takes both its power and video data from USB-3. In c

[PATCH 3.12 42/88] netfilter: x_tables: do compat validation via translate_table

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 09d9686047dbbe1cf4faa558d3ecc4aae2046054 upstream. This looks like refactoring, but its also a bug fix. Problem is that the compat path (32bit iptables, 64bit kernel) lac

Re: IOMMU+DMAR causing NMIs-s

2016-07-14 Thread Joerg Roedel
On Wed, Jul 13, 2016 at 05:04:08PM -0600, Alex Williamson wrote: > With hpwdt disabled, can you reboot a few times and look for DMAR > faults in the dmesg to see if they're all consistent, ie. device 1e.0 > doing a read from 0xb000? Is there any correlation to radeon hanging > and one of those DMA

[PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Srinath Mannam
Generic phy support added in xhci platform driver. In the case of multiple phys to the xhci controller, this approach is helpful to pass multiple phandles to xhci platform driver from xhci device node. Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden diff --git a/d

[PATCH v16 14/15] perf tools: Don't warn about out of order event if write_backward is used

2016-07-14 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

Re: [PATCH v5 14/32] x86/mm/64: Enable vmapped stacks

2016-07-14 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Wed, Jul 13, 2016 at 12:53 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> This allows x86_64 kernels to enable vmapped stacks. There are a > >> couple of interesting bits. > > > >> --- a/arch/x86/Kconfig > >> +++ b/arch/x86/Kconfig > >> @@ -92,6

[PATCH v16 06/15] perf tools: Extract common code in mmap failure processing

2016-07-14 Thread Wang Nan
In perf_evlist__mmap_per_cpu() and perf_evlist__mmap_per_thread(), when mmap failure, successfully created maps should be cleared. Current code uses two loops __perf_evlist__munmap() for each function. This patch extracts common code to perf_evlist__munmap_nofree() and use previous introduced dec

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-14 Thread Arnd Bergmann
On Wednesday, July 13, 2016 11:18:04 PM CEST Thiago Jung Bauermann wrote: > Am Mittwoch, 13 Juli 2016, 21:59:18 schrieb Arnd Bergmann: > > On Wednesday, July 13, 2016 3:45:41 PM CEST Thiago Jung Bauermann wrote: > > > Am Mittwoch, 13 Juli 2016, 15:13:42 schrieb Arnd Bergmann: > > > > > > For secur

[PATCH 3.12 37/88] netfilter: arp_tables: simplify translate_compat_table args

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 832756f6fe8e4e82a63361119b7e2384e02f upstream. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Jiri Slaby --- net/ipv4/netfilter/ar

Re: [PATCH] iommu/iova: validate iova_domain input to put_iova_domain

2016-07-14 Thread Joerg Roedel
On Wed, Jul 13, 2016 at 02:49:32PM -0400, Nate Watterson wrote: > Passing a NULL or uninitialized iova_domain into put_iova_domain > will currently crash the kernel when the unconfigured iova_domain > data members are accessed. To prevent this from occurring, this patch > adds a check to make sure

[PATCH v16 13/15] perf tools: Enable overwrite settings

2016-07-14 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v16 10/15] perf tools: Setup backward mmap state machine

2016-07-14 Thread Wang Nan
Introduce a bkw_mmap_state state machine to evlist: .(forbid)_. | V NOTREADY --(0)--> RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | ^ |

[PATCH v16 12/15] perf tools: Make perf_evlist__{pause,resume} internal helpers

2016-07-14 Thread Wang Nan
There's no user of these two function outside evlist.c. Remove them from public namespace. Signed-off-by: Wang Nan Cc: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/evlist.c |

[PATCH v16 15/15] perf tools: Add --tail-synthesize option

2016-07-14 Thread Wang Nan
When working with overwritable ring buffer there's a inconvenience problem: if perf dumps data after a long period after it starts, non-sample events may lost, which makes following 'perf report' unable to identify proc name and mmap layout. For example: # perf record -m 4 -e raw_syscalls:* -g --

Re: [PATCH] kvm: x86: nVMX: maintain internal copy of current VMCS

2016-07-14 Thread Paolo Bonzini
On 14/07/2016 02:16, David Matlack wrote: > KVM maintains L1's current VMCS in guest memory, at the guest physical > page identified by the argument to VMPTRLD. This makes hairy > time-of-check to time-of-use bugs possible,as VCPUs can be writing > the the VMCS page in memory while KVM is emulati

[PATCH v16 02/15] tools lib fd array: Allow associating a pointer cookie with each entry

2016-07-14 Thread Wang Nan
Add a 'ptr' field to fdarray->priv array. This feature will be used by following commits, which introduce muiltiple 'struct perf_mmap' array for different types of mapping. Because of this, during fdarray__filter(), a simple 'idx' is not enough. Add a pointer cookie allows directly associate a 'st

[PATCH V2 RESEND] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]

2016-07-14 Thread xinhui
From: Pan Xinhui There is one filed gsm->num to store mux's index of gsm_mux[]. So use gsm->num to remove itself from gsm_mux[] instead of the for-loop traverse in gsm_cleanup_mux(). Signed-off-by: Pan Xinhui Reviewed-by: Alan Cox --- change from V1: lock is also held for the if() ---

[PATCH v16 08/15] perf tools: Map backward events to backward_mmap

2016-07-14 Thread Wang Nan
In perf_evlist__mmap_per_evsel(), select backward_mmap for backward events. Utilize new perf_mmap APIs. Dynamically alloc backward_mmap. Remove useless functions. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan

[PATCH v16 03/15] perf tools: Update perf evlist mmap related APIs and helpers

2016-07-14 Thread Wang Nan
Currently, evlist mmap related helpers and APIs accept evlist and idx, and dereference 'struct perf_mmap' by evlist->mmap[idx]. This is unnecessary, and force each evlist contains only one mmap array. Following commits are going to introduce multiple mmap arrays to a evlist. This patch refators th

[PATCH v16 04/15] perf tools: Decouple record__mmap_read() and evlist.

2016-07-14 Thread Wang Nan
Perf evlist will have multiple mmap arrays. Update record__mmap_read(): it should read from 'struct perf_mmap' directly. Also, make record__mmap_read() ready to read from backward ring buffer. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu

[PATCH v16 01/15] perf tools: Drop redundant evsel->overwrite indicator

2016-07-14 Thread Wang Nan
From: Arnaldo Carvalho de Melo evsel->overwrite indicator means an event should be put into overwritable ring buffer. In current implementation, it equals to evsel->attr.write_backward. To reduce compliexity, remove evsel->overwrite, use evsel->attr.write_backward instead. In addition, in __perf

[PATCH v16 09/15] perf tools: Drop evlist->backward

2016-07-14 Thread Wang Nan
Now there's no real user of evlist->backward. Drop it. We are going to use evlist->backward_mmap as a container for backward ring buffer. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: p

Re: [PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Srinath Mannam
++ Felipe Balbi Thanks & Regards, Srinath Mannam. On Thu, Jul 14, 2016 at 2:03 PM, Srinath Mannam wrote: > Generic phy support added in xhci platform driver. > In the case of multiple phys to the xhci controller, this approach > is helpful to pass multiple phandles to xhci platform driver from >

Re: [PATCH 3.12 81/88] KVM: x86: expose invariant tsc cpuid bit (v2)

2016-07-14 Thread Paolo Bonzini
On 14/07/2016 10:16, Jiri Slaby wrote: > From: Marcelo Tosatti > > 3.12-stable review patch. If anyone has any objections, please let me know. Why stable? The commit is in 3.16, but AFAICS it never went into other stable kernels. Paolo > === > > commit e4c9a5a17567f8ea975bdcfd

[PATCH v16 07/15] perf tools: Introduce backward_mmap array for evlist

2016-07-14 Thread Wang Nan
Add backward_mmap to evlist, free it together with normal mmap. Improve perf_evlist__pick_pc(), search backward_mmap if evlist->mmap is not available. This patch doesn't make alloc this array. It will be allocated conditionally in following commits. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho

[PATCH v16 11/15] perf record: Read from overwritable ring buffer

2016-07-14 Thread Wang Nan
Drive the evlist->bkw_mmap_state state machine during draining and when SIGUSR2 is received. Read backward ring buffer in record__mmap_read_all. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc:

[PATCH v16 05/15] perf tools: Record mmap cookie into fdarray private field

2016-07-14 Thread Wang Nan
Insetad of saving a index into fdarray entries private field, save the corresponding 'struct perf_mmap' pointer, and release them directly using perf_mmap__put(). Following commits introduce multiple mmap arrays to evlist. Without this patch, perf_evlist__munmap_filtered() is unable to retrive cor

[PATCH v16 00/15] perf tools: Support overwritable ring buffer

2016-07-14 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

[PATCH 3.12 35/88] netfilter: x_tables: validate all offsets and sizes in a rule

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 13631bfc604161a9d69cd68991dff8603edd66f9 upstream. Validate that all matches (if any) add up to the beginning of the target and that each match covers at least the base st

[PATCH 3.12 32/88] netfilter: x_tables: add compat version of xt_check_entry_offsets

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit fc1221b3a163d1386d1052184202d5dc50d302d1 upstream. 32bit rulesets have different layout and alignment requirements, so once more integrity checks get added to xt_check_ent

[PATCH 3.12 33/88] netfilter: x_tables: check standard target size too

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7ed2abddd20cf8f6bd27f65bd218f26fa5bf7f44 upstream. We have targets and standard targets -- the latter carries a verdict. The ip/ip6tables validation functions will access

[PATCH 3.12 36/88] netfilter: x_tables: don't reject valid target size on some architectures

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7b7eba0f3515fca3296b8881d583f7c1042f5226 upstream. Quoting John Stultz: In updating a 32bit arm device from 4.6 to Linus' current HEAD, I noticed I was having some tro

[PATCH 3.12 34/88] netfilter: x_tables: check for bogus target offset

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit ce683e5f9d045e5d67d1312a42b359cb2ab2a13c upstream. We're currently asserting that targetoff + targetsize <= nextoff. Extend it to also check that targetoff is >= sizeof(x

[PATCH 3.12 28/88] netfilter: x_tables: validate targets of jumps

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 36472341017529e2b12573093cc0f68719300997 upstream. When we see a jump also check that the offset gets us to beginning of a rule (an ipt_entry). The extra overhead is negi

[PATCH 3.12 31/88] netfilter: x_tables: assert minimum target size

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit a08e4e190b866579896c09af59b3bdca821da2cd upstream. The target size includes the size of the xt_entry_target struct. Signed-off-by: Florian Westphal Signed-off-by: Pablo

[PATCH 3.12 29/88] netfilter: x_tables: add and use xt_check_entry_offsets

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7d35812c3214afa5b37a675113555259cfd67b98 upstream. Currently arp/ip and ip6tables each implement a short helper to check that the target offset is large enough to hold one

[PATCH 3.12 19/88] KVM: x86: fix OOPS after invalid KVM_SET_DEBUGREGS

2016-07-14 Thread Jiri Slaby
From: Paolo Bonzini 3.12-stable review patch. If anyone has any objections, please let me know. === commit d14bdb553f9196169f003058ae1cdabe514470e6 upstream. MOV to DR6 or DR7 causes a #GP if an attempt is made to write a 1 to any of bits 63:32. However, this is not detected at K

[PATCH 3.12 17/88] macintosh/therm_windtunnel: Export I2C module alias information

2016-07-14 Thread Jiri Slaby
From: Javier Martinez Canillas 3.12-stable review patch. If anyone has any objections, please let me know. === commit cb0eefcc3271ea1d370476dd29685918b99c5a9f upstream. The I2C core always reports the MODALIAS uevent as "i2c: Signed-off-by: Michael Ellerman Cc: Oliver Neukum Sig

[PATCH 3.12 22/88] powerpc: Use privileged SPR number for MMCR2

2016-07-14 Thread Jiri Slaby
From: Thomas Huth 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8dd75ccb571f3c92c48014b3dabd3d51a115ab41 upstream. We are already using the privileged versions of MMCR0, MMCR1 and MMCRA in the kernel, so for MMCR2, we should better use the

[PATCH 3.12 18/88] drivers: macintosh: rack-meter: limit idle ticks to total ticks

2016-07-14 Thread Jiri Slaby
From: Aaro Koskinen 3.12-stable review patch. If anyone has any objections, please let me know. === commit c796d1d97c3035cf54d4d5a9e75abd094db80e76 upstream. Limit idle ticks to total ticks. This prevents the annoying rackmeter leds fully ON / OFF blinking state that happens on fu

[PATCH 3.12 30/88] netfilter: x_tables: kill check_entry helper

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit aa412ba225dd3bc36d404c28cdc3d674850d80d0 upstream. Once we add more sanity testing to xt_check_entry_offsets it becomes relvant if we're expecting a 32bit 'config_compat'

[PATCH 3.12 26/88] fix d_walk()/non-delayed __d_free() race

2016-07-14 Thread Jiri Slaby
From: Al Viro 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d56c25e3bb0726a5c5e16fc2d9e38f8ed763085 upstream. Ascend-to-parent logics in d_walk() depends on all encountered child dentries not getting freed without an RCU delay. Unfortunat

[PATCH 3.12 25/88] wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel

2016-07-14 Thread Jiri Slaby
From: Prasun Maiti 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d5fdff46c4b2b9534fa2f9fc78e90a48e0ff724 upstream. iwpriv app uses iw_point structure to send data to Kernel. The iw_point structure holds a pointer. For compatibility Kernel

[PATCH 3.12 14/88] udp: prevent skbs lingering in tunnel socket queues

2016-07-14 Thread Jiri Slaby
From: Hannes Frederic Sowa 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit e5aed006be918af163eb397e45aa5ea6cefd5e01 ] In case we find a socket with encapsulation enabled we should call the encap_recv function even if just a udp hea

[PATCH 3.12 20/88] ARM: fix PTRACE_SETVFPREGS on SMP systems

2016-07-14 Thread Jiri Slaby
From: Russell King 3.12-stable review patch. If anyone has any objections, please let me know. === commit e2dfb4b880146bfd4b6aa8e138c0205407cebbaf upstream. PTRACE_SETVFPREGS fails to properly mark the VFP register set to be reloaded, because it undoes one of the effects of vfp_fl

[PATCH 3.12 16/88] ipv6: Skip XFRM lookup if dst_entry in socket cache is valid

2016-07-14 Thread Jiri Slaby
From: Jakub Sitnicki 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 00bc0ef5880dc7b82f9c320dead4afaad48e47be ] At present we perform an xfrm_lookup() for each UDPv6 message we send. The lookup involves querying the flow cache (flo

RE: [PATCH v5 3/3] mfd: lpc_ich: Add support for Intel Apollo Lake GPIO pinctrl in non-ACPI system

2016-07-14 Thread Tan, Jui Nee
> -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: Tuesday, June 28, 2016 4:19 PM > To: Tan, Jui Nee > Cc: heikki.kroge...@linux.intel.com; andriy.shevche...@linux.intel.com; > t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.or

[PATCH 3.12 12/88] perf/x86: Fix undefined shift on 32-bit kernels

2016-07-14 Thread Jiri Slaby
From: Andrey Ryabinin 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6d6f2833bfbf296101f9f085e10488aef2601ba5 upstream. Jim reported: UBSAN: Undefined behaviour in arch/x86/events/intel/core.c:3708:12 shift exponent 35 is to

[PATCH 3.12 27/88] netfilter: x_tables: don't move to non-existent next rule

2016-07-14 Thread Jiri Slaby
From: Florian Westphal 3.12-stable review patch. If anyone has any objections, please let me know. === commit f24e230d257af1ad7476c6e81a8dc3127a74204e upstream. Ben Hawkes says: In the mark_source_chains function (net/ipv4/netfilter/ip_tables.c) it is possible for a user-suppli

[PATCH 3.12 24/88] ecryptfs: forbid opening files without mmap handler

2016-07-14 Thread Jiri Slaby
From: Jann Horn 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2f36db71009304b3f0b95afacd8eba1f9f046b87 upstream. This prevents users from triggering a stack overflow through a recursive invocation of pagefault handling that involves mapping

[PATCH 3.12 11/88] perf/x86: Honor the architectural performance monitoring version

2016-07-14 Thread Jiri Slaby
From: "Palik, Imre" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2c33645d366d13b969d936b68b9f4875b1fdddea upstream. Architectural performance monitoring, version 1, doesn't support fixed counters. Currently, even if a hypervisor advertise

[PATCH 3.12 13/88] netlink: Fix dump skb leak/double free

2016-07-14 Thread Jiri Slaby
From: Herbert Xu 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 92964c79b357efd980812c4de5c1fd2ec8bb5520 ] When we free cb->skb after a dump, we do it after releasing the lock. This means that a new dump could have started in the

[PATCH 3.12 21/88] powerpc: Fix definition of SIAR and SDAR registers

2016-07-14 Thread Jiri Slaby
From: Thomas Huth 3.12-stable review patch. If anyone has any objections, please let me know. === commit d23fac2b27d94aeb7b65536a50d32bfdc21fe01e upstream. The SIAR and SDAR registers are available twice, one time as SPRs 780 / 781 (unprivileged, but read-only), and one time as th

[PATCH 3.12 09/88] sparc: Harden signal return frame checks.

2016-07-14 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit d11c2a0de2824395656cf8ed15811580c9dd38aa ] All signal frames must be at least 16-byte aligned, because that is the alignment we explicitly create when we build

[PATCH 3.12 23/88] parisc: Fix pagefault crash in unaligned __get_user() call

2016-07-14 Thread Jiri Slaby
From: Helge Deller 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8b78f260887df532da529f225c49195d18fef36b upstream. One of the debian buildd servers had this crash in the syslog without any other information: Unaligned handler failed, ret

[PATCH 3.12 02/88] MIPS: Fix 64k page support for 32 bit kernels.

2016-07-14 Thread Jiri Slaby
From: Ralf Baechle 3.12-stable review patch. If anyone has any objections, please let me know. === commit d7de413475f443957a0c1d256e405d19b3a2cb22 upstream. TASK_SIZE was defined as 0x7fff8000UL which for 64k pages is not a multiple of the page size. Somewhere further down the ma

[PATCH 3.12 07/88] sparc/PCI: Fix for panic while enabling SR-IOV

2016-07-14 Thread Jiri Slaby
From: Babu Moger 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit d0c31e02005764dae0aab130a57e9794d06b824d ] We noticed this panic while enabling SR-IOV in sparc. mlx4_core: Mellanox ConnectX core driver v2.2-1 (Jan 1 2015) mlx4_c

[PATCH 3.12 05/88] sparc64: Fix bootup regressions on some Kconfig combinations.

2016-07-14 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 49fa5230462f9f2c4e97c81356473a6bdf06c422 ] The system call tracing bug fix mentioned in the Fixes tag below increased the amount of assembler code in the seque

[PATCH 3.12 06/88] sparc64: Fix sparc64_set_context stack handling.

2016-07-14 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 397d1533b6cce0ccb5379542e2e6d079f6936c46 ] Like a signal return, we should use synchronize_user_stack() rather than flush_user_windows(). Reported-by: Ilya Ma

[PATCH] Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU

2016-07-14 Thread Amadeusz Sławiński
When we retrieve imtu value from userspace we should use 16 bit pointer cast instead of 32 as it's defined that way in headers. Fixes setsockopt calls on big-endian platforms. Signed-off-by: Amadeusz Sławiński --- net/bluetooth/l2cap_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] mm: fix pgalloc_stall on unpopulated zone

2016-07-14 Thread Mel Gorman
On Thu, Jul 14, 2016 at 10:11:19AM +0900, Minchan Kim wrote: > > The patch means that the vmstat accounting and tracepoint data is also > > out of sync. One thing I wanted to be able to do was > > > > 1. Observe that there are alloc stalls on DMA32 or some other low zone > > 2. Activate mm_vmscan_

Re: [PATCH net-next 1/2] devlink: fix build error for CONFIG_MODULES=n

2016-07-14 Thread Jiri Pirko
Thu, Jul 14, 2016 at 10:12:43AM CEST, a...@arndb.de wrote: >On Thursday, July 14, 2016 8:21:11 AM CEST Jiri Pirko wrote: >> >diff --git a/include/trace/events/devlink.h b/include/trace/events/devlink.h >> >index 333c32ac9bfa..26f92d3c7e9c 100644 >> >--- a/include/trace/events/devlink.h >> >+++ b/in

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月12日 16:26, Arnd Bergmann wrote: On Tuesday, July 12, 2016 3:04:42 PM CEST Wan Zongshun wrote: Ideally, this should just go away once we use SPARSE_IRQ. This platform also can use SPARSE_IRQ? this just a simple irq map and no more irq number in this Soc. SPARSE_IRQ is implied b

Re: [PATCH v2] x86 / hibernate: Use hlt_play_dead() when resuming from hibernation

2016-07-14 Thread Ingo Molnar
* Rafael J. Wysocki wrote: > A new version here. > > I prefer this one, because it only adds any overhead if hibernation is > actually > used, but then it is a bit more of a hack. > > If you prefer the previous one, please let me know. > > --- > arch/x86/include/asm/smp.h |1 + > arch/x

Re: [PATCH] mm: fix pgalloc_stall on unpopulated zone

2016-07-14 Thread Minchan Kim
On Thu, Jul 14, 2016 at 09:51:53AM +0100, Mel Gorman wrote: > On Thu, Jul 14, 2016 at 10:11:19AM +0900, Minchan Kim wrote: > > > The patch means that the vmstat accounting and tracepoint data is also > > > out of sync. One thing I wanted to be able to do was > > > > > > 1. Observe that there are a

[PATCH v7 3/5] usb: dwc3: make usb2 phy utmi interface configurable in DT

2016-07-14 Thread William Wu
Add snps,phyif-utmi-width devicetree property to configure the UTMI+ PHY with an 8- or 16-bit interface. UTMI+ PHY interface is a hardware property, and it's platform dependent. Normally,the PHYIF can be configured during coreconsultant. But for some specific USB cores(e.g. rk3399 SoC DWC3), the de

[PATCH v7 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-07-14 Thread William Wu
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - use '-' instead of '_' in dts (Rob He

[PATCH v7 1/5] usb: dwc3: of-simple: add compatible for rockchip rk3399

2016-07-14 Thread William Wu
Rockchip platform merely enable usb3 clocks and populate its children. So we can use this generic glue layer to support Rockchip dwc3. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - None Changes in v5: - change compatible from "rockchip,dwc3" to "rockchip,rk3399-dwc3" (Hei

[PATCH v7 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-07-14 Thread William Wu
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respectively. Signed-off-by: William Wu --- Changes in v7: - None Changes in v6: - use '-' instead of '_' in dts (Rob He

[PATCH v7 0/5] support rockchip dwc3 driver

2016-07-14 Thread William Wu
This series add support for rockchip dwc3 driver, and add additional optional properties for specific platforms (e.g., rockchip rk3399 platform). William Wu (5): usb: dwc3: of-simple: add compatible for rockchip rk3399 usb: dwc3: add dis_u2_freeclk_exists_quirk usb: dwc3: make usb2 phy utmi

[PATCH v7 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-07-14 Thread William Wu
This patch adds the devicetree documentation required for Rockchip USB3.0 core wrapper consisting of USB3.0 IP from Synopsys. It supports DRD mode, and could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: William Wu Acked-by: Rob Herring --- Changes in v7: -

Re: [PATCH 08/31] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-14 Thread Mel Gorman
On Thu, Jul 14, 2016 at 02:23:32PM +0900, Joonsoo Kim wrote: > > > > > > > And, I'd like to know why max() is used for classzone_idx rather than > > > > > min()? I think that kswapd should balance the lowest zone requested. > > > > > > > > > > > > > If there are two allocation requests -- one zo

Re: [PATCH] Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU

2016-07-14 Thread Marcel Holtmann
Hi Amadeusz, > When we retrieve imtu value from userspace we should use 16 bit pointer > cast instead of 32 as it's defined that way in headers. Fixes setsockopt > calls on big-endian platforms. > > Signed-off-by: Amadeusz Sławiński > --- > net/bluetooth/l2cap_sock.c | 2 +- > 1 file changed, 1 i

[PATCH] Enclose multiple statements macros in a do while loop

2016-07-14 Thread Sunbing
The formatting of macros definetion in ks7010/michael_mic.c is not consistent with the general kernel coding style. Fix it by the result of scripts/checkpatch.pl. No functional changes. Signed-off-by: Sunbing --- drivers/staging/ks7010/michael_mic.c | 20 +--- 1 file changed, 1

RE: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-14 Thread Grumbach, Emmanuel
> > Prarit Bhargava writes: > > > On 07/13/2016 03:24 AM, Luca Coelho wrote: > > > >> I totally agree with Emmanuel and Kalle. We should not change this. > >> It is a design decision to return an error when the interface is > >> down, this is very common with other subsystems as well. > > > > Pl

Re: System freezes after OOM

2016-07-14 Thread Michal Hocko
On Wed 13-07-16 11:21:41, Mikulas Patocka wrote: > > > On Wed, 13 Jul 2016, Milan Broz wrote: > > > On 07/13/2016 02:50 PM, Michal Hocko wrote: > > > On Wed 13-07-16 13:10:06, Michal Hocko wrote: > > >> On Tue 12-07-16 19:44:11, Mikulas Patocka wrote: > > > [...] > > >>> As long as swapping is i

Re: [PART2 PATCH v4 07/11] iommu/amd: Introduce amd_iommu_update_ga()

2016-07-14 Thread Suravee Suthikulpanit
Hi Radim, On 7/13/16 21:14, Radim Krčmář wrote: [I pasted v3 reviews prefixed with a pipe where I think they still apply.] 2016-07-13 08:20-0500, Suravee Suthikulpanit: From: Suravee Suthikulpanit Introduces a new IOMMU API, amd_iommu_update_ga(), which allows KVM (SVM) to update existing po

Re: [PATCH 2/2] dmi-id: add dmi/id/oem group for exporting oem strings to sysfs

2016-07-14 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc7] [also build test ERROR on next-20160713] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Allen-Hung/dmi-id-export-oem-strings-to-sysfs/20160714-161631

Re: [PATCH 05/34] mm, vmscan: begin reclaiming pages on a per-node basis

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:34 AM, Mel Gorman wrote: This patch makes reclaim decisions on a per-node basis. A reclaimer knows what zone is required by the allocation request and skips pages from higher zones. In many cases this will be ok because it's a GFP_HIGHMEM request of some description. On 64-bit

Re: [PATCH 3.12 81/88] KVM: x86: expose invariant tsc cpuid bit (v2)

2016-07-14 Thread Jiri Slaby
On 07/14/2016, 10:40 AM, Paolo Bonzini wrote: > > > On 14/07/2016 10:16, Jiri Slaby wrote: >> From: Marcelo Tosatti >> >> 3.12-stable review patch. If anyone has any objections, please let me know. > > Why stable? The commit is in 3.16, but AFAICS it never went into other > stable kernels. H

[RFC 1/3] watchdog: change watchdog_need_worker logic

2016-07-14 Thread Rasmus Villemoes
If the driver indicates that the watchdog is running, the framework should feed it until userspace opens the device, regardless of whether the driver has set max_hw_heartbeat_ms. This patch only affects the case where wdd->max_hw_heartbeat_ms is zero, wdd->timeout is non-zero, the watchdog is not

<    1   2   3   4   5   6   7   8   9   10   >