Re: [GIT PULL] FPGA changes for 4.10

2016-12-05 Thread atull
On Thu, 1 Dec 2016, Greg KH wrote: > On Wed, Nov 30, 2016 at 10:32:55AM -0600, Alan Tull wrote: > > Hi Greg, > > > > Please pull these changes for FPGA. > > > > Thanks! > > Alan > > > > The following changes since commit e663c5dbad2999aa824045c8e01fed459d1fc833: > > > > uio: pruss: add clk_d

Re: [RESEND][PATCH v4] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-12-05 Thread John Stultz
On Tue, Nov 22, 2016 at 4:57 PM, John Stultz wrote: > On Tue, Nov 8, 2016 at 4:12 PM, Andy Lutomirski wrote: >> On Tue, Nov 8, 2016 at 4:03 PM, Alexei Starovoitov >> wrote: >>> On Tue, Nov 08, 2016 at 03:51:40PM -0800, Andy Lutomirski wrote: I hate to say it, but I think I may see a pr

Re: [PATCH v2 1/2] devicetree: i2c-hid: Add Wacom digitizer + regulator support

2016-12-05 Thread Dmitry Torokhov
On Mon, Dec 05, 2016 at 05:59:08PM -0600, Rob Herring wrote: > On Thu, Dec 01, 2016 at 09:24:50AM -0800, Brian Norris wrote: > > Hi Benjamin and Rob, > > > > On Thu, Dec 01, 2016 at 03:34:34PM +0100, Benjamin Tissoires wrote: > > > On Nov 30 2016 or thereabouts, Brian Norris wrote: > > > > From: C

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Duc Dang
On Mon, Dec 5, 2016 at 3:52 PM, Duc Dang wrote: > Hi Jon, > > On Mon, Dec 5, 2016 at 3:27 PM, Jon Masters wrote: >> Duc, Aleksey, all, >> >> I have a question about this... >> >> On 12/05/2016 01:51 PM, Duc Dang wrote: >>> On Mon, Dec 5, 2016 at 5:05 AM, Aleksey Makarov >>> wrote: Check the

Re: [PATCH v1 0/4] perf report: Show inline stack

2016-12-05 Thread Jin, Yao
Any comments on this patch series? Thanks Jin Yao On 11/29/2016 10:55 PM, Jin Yao wrote: It would be useful for perf to support a mode to query the inline stack for callgraph addresses. This would simplify finding the right code in code that does a lot of inlining. For example, the c code:

Re: [RESEND][PATCH v4] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-12-05 Thread Andy Lutomirski
On Mon, Dec 5, 2016 at 4:28 PM, John Stultz wrote: > On Tue, Nov 22, 2016 at 4:57 PM, John Stultz wrote: >> On Tue, Nov 8, 2016 at 4:12 PM, Andy Lutomirski wrote: >>> On Tue, Nov 8, 2016 at 4:03 PM, Alexei Starovoitov >>> wrote: On Tue, Nov 08, 2016 at 03:51:40PM -0800, Andy Lutomirski wro

Re: [PATCH v6 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-05 Thread Shuah Khan
On 12/05/2016 04:21 PM, Laurent Pinchart wrote: > Hi Shuah, > > On Monday 05 Dec 2016 15:44:30 Shuah Khan wrote: >> On 11/30/2016 03:01 PM, Shuah Khan wrote: >>> Change ALSA driver to use Media Controller API to share media resources >>> with DVB, and V4L2 drivers on a AU0828 media device. >>> >>>

[PATCH] PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend

2016-12-05 Thread Tony Lindgren
I noticed some wakeirq flakeyness with consumer drivers not using autosuspend. For drivers not using autosuspend, the wakeirq may never get unmasked in rpm_suspend() because of irq desc->depth. We are configuring dedicated wakeirqs to start with IRQ_NOAUTOEN as we naturally don't want them running

Re: linux-next: build failure after merge of the sound-asoc tree

2016-12-05 Thread Kuninori Morimoto
_VOICECODEC dependency for > CQ0093VC") > > I have used the sound-asoc tree from next-20161205 for today. As I indicated on cover letter, this patch is based on git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git :: for-mfd-next Especially this commit

Re: [v3 PATCH] netlink: Do not schedule work from sk_destruct

2016-12-05 Thread David Miller
From: Herbert Xu Date: Mon, 5 Dec 2016 15:28:21 +0800 > It is wrong to schedule a work from sk_destruct using the socket > as the memory reserve because the socket will be freed immediately > after the return from sk_destruct. > > Instead we should do the deferral prior to sk_free. > > This pat

Re: [PATCH v8 1/6] powerpc/qspinlock: powerpc support qspinlock

2016-12-05 Thread Boqun Feng
On Mon, Dec 05, 2016 at 10:19:21AM -0500, Pan Xinhui wrote: > This patch add basic code to enable qspinlock on powerpc. qspinlock is > one kind of fairlock implementation. And seen some performance improvement > under some scenarios. > > queued_spin_unlock() release the lock by just one write of N

[PATCHv3] mfd: cpcap: Add minimal support

2016-12-05 Thread Tony Lindgren
Many Motorola phones like droid 4 are using a custom PMIC called CPCAP or 6556002. We can support it's core features quite easily with regmap_spi and regmap_irq. The children of cpcap, such as regulators, ADC and USB, can be just regular device drivers and defined in the dts file. They get probed

Re: [PATCHv4 05/10] arm64: Use __pa_symbol for kernel symbols

2016-12-05 Thread Florian Fainelli
On 11/29/2016 10:55 AM, Laura Abbott wrote: > __pa_symbol is technically the marco that should be used for kernel > symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which > will do bounds checking. As part of this, introduce lm_alias, a > macro which wraps the __va(__pa(...)) idiom used

[PATCH] usbip: add missing compile time generated files to .gitignore

2016-12-05 Thread Shuah Khan
Add the following files to .gitignore compile libsrc/libusbip_la-sysfs_utils.lo libsrc/libusbip_la-usbip_device_driver.lo libsrc/libusbip_la-usbip_host_common.lo Signed-off-by: Shuah Khan --- tools/usb/usbip/.gitignore | 4 1 file changed, 4 insertions(+) diff --git a/tools/usb/usbip/.git

Re: [PATCH] drm/i915: Remove instructions to file a bug report.

2016-12-05 Thread Matt Turner
On Sat, Dec 3, 2016 at 1:52 AM, Jani Nikula wrote: > On Sat, 03 Dec 2016, Matt Turner wrote: >> From these instructions, users assume that /sys/class/drm/card0/error >> contains all the information a developer needs to diagnose and fix a GPU >> hang. >> >> In fact it doesn't, and we have no tools

Re: [patch net v3] net: fec: fix compile with CONFIG_M5272

2016-12-05 Thread David Miller
From: Nikita Yushchenko Date: Mon, 5 Dec 2016 20:41:01 +0300 > Commit 4dfb80d18d05 ("net: fec: cache statistics while device is down") > introduced unconditional statistics-related actions. I do not see this commit in any of my trees: [davem@localhost net-next]$ git describe 4dfb80d18d05 fatal

Re: i8042 error at booting an Intel Cherry Trail-based device

2016-12-05 Thread Marcos Paulo de Souza
Hi Takashi, On Fri, Dec 02, 2016 at 11:55:07AM +0100, Takashi Iwai wrote: > On Thu, 01 Dec 2016 08:19:46 +0100, > Takashi Iwai wrote: > > > > On Thu, 01 Dec 2016 03:29:23 +0100, > > Dmitry Torokhov wrote: > > > > > > Hi Takashi, > > > > > > On Mon, Nov 28, 2016 at 02:56:36PM +0100, Takashi Iwai

Re: [PATCH v5 11/14] ASoC: add simple-graph-card document

2016-12-05 Thread Kuninori Morimoto
Hi Rob > I'd expect the top level node to be the card node that knows how to find > all the components. The graph should reflect the data flow. For example, > the data goes to audio DSP to I2S host to codec to amp. Do you mean, is this OK for OF graph ? in driver point of view, "I2S" is sound

Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config

2016-12-05 Thread Boqun Feng
On Mon, Dec 05, 2016 at 10:19:22AM -0500, Pan Xinhui wrote: > pSeries/powerNV will use qspinlock from now on. > > Signed-off-by: Pan Xinhui > --- > arch/powerpc/platforms/pseries/Kconfig | 8 > 1 file changed, 8 insertions(+) > > diff --git a/arch/powerpc/platforms/pseries/Kconfig > b

[RFC PATCH 0/6] CPUID and FPU fixes

2016-12-05 Thread Andy Lutomirski
Our CPUID-less FPU detection code was terminally broken and, as far as I can tell, it's been broken for a long, long time. This series tries to improve the situation. Thoughts? Andy Lutomirski (5): x86/cpu: Factor out application of forced cpu caps x86/cpu: Re-apply forced caps every time cp

[RFC PATCH 2/6] x86/cpu: Factor out application of forced cpu caps

2016-12-05 Thread Andy Lutomirski
There are multiple call sites that apply forced CPU caps. Factor them into a helper. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/cpu/common.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/comm

[RFC PATCH 6/6] x86/fpu: Fix the "Giving up, no FPU found" test

2016-12-05 Thread Andy Lutomirski
We would never print "Giving up, no FPU found" because X86_FEATURE_FPU was in REQUIRED_MASK on non-FPU-emulating builds, so the boot_cpu_has() test didn't do anything. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/fpu/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] device-dax: fail all private mapping attempts

2016-12-05 Thread Hugh Dickins
On Wed, 16 Nov 2016, Dan Williams wrote: > The device-dax implementation originally tried to be tricky and allow > private read-only mappings, but in the process allowed writable > MAP_PRIVATE + MAP_NORESERVE mappings. For simplicity and predictability > just fail all private mapping attempts sin

[RFC PATCH 1/6] x86/CPU: Add X86_FEATURE_CPUID

2016-12-05 Thread Andy Lutomirski
From: Borislav Petkov Add a synthetic CPUID flag denoting whether the CPU sports the CPUID instruction or not. This will come useful later when accomodating CPUID-less CPUs. Signed-off-by: Borislav Petkov Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/cpufeatures.h | 2 +- arch/x86/k

[RFC PATCH 3/6] x86/cpu: Re-apply forced caps every time cpu caps are re-read

2016-12-05 Thread Andy Lutomirski
Calling get_cpu_cap() will reset a bunch of CPU features. This will cause the system to lose track of force-set and force-cleared featueres in the words that are reset until the end of CPU initialization. This can cause X86_FEATURE_FPU, for example, to change back and forth during boot and potent

[RFC PATCH 5/6] x86/fpu: Fix CPUID-less FPU detection

2016-12-05 Thread Andy Lutomirski
The old code didn't work at all because it adjusted the current caps instead of the forced caps. Anything it did would be undone later during cpu identification. Fix that and, while we're at it, improve the logging and don't bother running it if CPUID is available. Signed-off-by: Andy Lutomirski

[RFC PATCH 4/6] x86/fpu: Fix "x86/fpu: Legacy x87 FPU detected" message

2016-12-05 Thread Andy Lutomirski
That message isn't at all clear -- what does "Legacy x87" even mean? Clarify it. If there's no FPU, say "x86/fpu: No FPU detected". If there's an FPU that doesn't have XSAVE, say "x86/fpu: Pre-XSAVE x87 FPU detected". Signed-off-by: Andy Lutomirski --- arch/x86/kernel/fpu/xstate.c | 7 ++-

Re: [PATCH v8 1/6] powerpc/qspinlock: powerpc support qspinlock

2016-12-05 Thread Pan Xinhui
correct waiman's address. 在 2016/12/6 08:47, Boqun Feng 写道: On Mon, Dec 05, 2016 at 10:19:21AM -0500, Pan Xinhui wrote: This patch add basic code to enable qspinlock on powerpc. qspinlock is one kind of fairlock implementation. And seen some performance improvement under some scenarios. queued

Re: [net-next][PATCH 02/18] RDS: mark few internal functions static to make sparse build happy

2016-12-05 Thread Santosh Shilimkar
On 12/5/2016 1:45 AM, Sergei Shtylyov wrote: Hello! On 12/5/2016 9:57 AM, Santosh Shilimkar wrote: [...] -void rds_walk_conn_path_info(struct socket *sock, unsigned int len, +static void rds_walk_conn_path_info(struct socket *sock, unsigned int len, struct rds_info_iterator

Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-12-05 Thread Scott Wood
On Wed, 2016-09-21 at 10:11 +0200, Christophe Leroy wrote: > Today there are two implementations of hugetlbpages which are managed > by exclusive #ifdefs: > * FSL_BOOKE: several directory entries points to the same single hugepage > * BOOK3S: one upper level directory entry points to a table of hug

Re: [PATCH v8 3/6] powerpc: lib/locks.c: Add cpu yield/wake helper function

2016-12-05 Thread Boqun Feng
On Mon, Dec 05, 2016 at 10:19:23AM -0500, Pan Xinhui wrote: > Add two corresponding helper functions to support pv-qspinlock. > > For normal use, __spin_yield_cpu will confer current vcpu slices to the > target vcpu(say, a lock holder). If target vcpu is not specified or it > is in running state,

Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config

2016-12-05 Thread Pan Xinhui
在 2016/12/6 08:58, Boqun Feng 写道: On Mon, Dec 05, 2016 at 10:19:22AM -0500, Pan Xinhui wrote: pSeries/powerNV will use qspinlock from now on. Signed-off-by: Pan Xinhui --- arch/powerpc/platforms/pseries/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/platfor

[PATCH v2 2/2] soc: zte: pm_domains: Add support for zx296718 board

2016-12-05 Thread Baoyou Xie
This patch introduces the power domain driver of zx296718 which belongs to zte's 2967 family. Signed-off-by: Baoyou Xie --- drivers/soc/zte/Makefile | 2 +- drivers/soc/zte/zx296718_pm_domains.c | 182 ++ 2 files changed, 183 insertions(+), 1 deleti

[PATCH] drivers: net: cpsw-phy-sel: Clear RGMII_IDMODE on "rgmii" links

2016-12-05 Thread Alexandru Gagniuc
Support for setting the RGMII_IDMODE bit was added in commit: "drivers: net: cpsw-phy-sel: add support to configure rgmii internal delay" However, that commit did not add the symmetrical clearing of the bit by way of setting it in "mask". Add it here. Note that the documentation marks clearing thi

RE: [PATCH 01/12] phy: rcar-gen3-usb2: Replace the deprecated extcon API

2016-12-05 Thread Yoshihiro Shimoda
Hi, > From: Chanwoo Choi > Sent: Wednesday, November 30, 2016 2:57 PM > > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Signed-off-by: Chanwoo Choi Thank you for the patch! Acked-by: Yoshihiro Shimoda Best regards, Y

[PATCH] fonts: keep non-Sparc fonts listed together

2016-12-05 Thread Randy Dunlap
From: Randy Dunlap Keep fonts together and indented (in menu) as much as possible. This moves the Sparc font choices to the end of the menu since they have different dependencies. Signed-off-by: Randy Dunlap Cc: Geert Uytterhoeven --- lib/fonts/Kconfig | 16 1 file changed,

RE: [PATCH 12/12] usb: renesas_usbhs: Replace the deprecated extcon API

2016-12-05 Thread Yoshihiro Shimoda
Hi, > From: Chanwoo Choi > Sent: Wednesday, November 30, 2016 2:58 PM > > This patch replaces the deprecated extcon API as following: > - extcon_get_cable_state_() -> extcon_get_state() > > Signed-off-by: Chanwoo Choi Thank you for the patch! Acked-by: Yoshihiro Shimoda Best regards, Yoshih

[PATCH v2 1/2] soc: zte: pm_domains: Prepare for supporting ARMv8 2967 family

2016-12-05 Thread Baoyou Xie
The ARMv8 2967 family (296718, 296716 etc) uses different value for controlling the power domain on/off registers, Choose the value depending on the compatible. Multiple domains are prepared for the family, they'are privated by the drivers of boards. This patch prepares the common functions. Sig

Re: [PATCH 1/2] Documentation/core-api/device_link: Add initial documentation

2016-12-05 Thread Luis R. Rodriguez
On Sun, Dec 04, 2016 at 01:10:04PM +0100, Lukas Wunner wrote: > Document device links as introduced in v4.10 with commits: > 4bdb35506b89 ("driver core: Add a wrapper around >__device_release_driver()") > 9ed9895370ae ("driver core: Functional dependencies tracking >

[PATCH] net: ethernet: ti: cpsw: fix early budget split

2016-12-05 Thread Ivan Khoronzhuk
The budget split function requires the phy speed to be known. While ndo open a phy speed identification is postponed till the moment link is up. Hence, move it to appropriate callback, when link is up. Reported-by: Grygorii Strashko Fixes: 8feb0a196507 ("net: ethernet: ti: cpsw: split tx budget a

[RFC PATCH v3] mm: use READ_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Xishi Qiu
A compiler could re-read "old_flags" from the memory location after reading and calculation "flags" and passes a newer value into the cmpxchg making the comparison succeed while it should actually fail. Signed-off-by: Xishi Qiu Suggested-by: Christian Borntraeger --- mm/mmzone.c | 2 +- 1 file

Re: [PATCH v3 -next 2/2] ARM: dts: sunxi: add support for Orange Pi Zero board

2016-12-05 Thread Alexey Kardashevskiy
E OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +/dts-v1/; > +#include "sun8i-h3.dtsi" > +#include "sunxi-common-regulators.dtsi" > + > +#include > +#include > +#include > + > +/ { > + model = "Xunlong Oran

Re: [RESEND][PATCH v4] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-12-05 Thread Serge E. Hallyn
On Mon, Dec 05, 2016 at 04:36:51PM -0800, Andy Lutomirski wrote: > On Mon, Dec 5, 2016 at 4:28 PM, John Stultz wrote: > > On Tue, Nov 22, 2016 at 4:57 PM, John Stultz wrote: > >> On Tue, Nov 8, 2016 at 4:12 PM, Andy Lutomirski > >> wrote: > >>> On Tue, Nov 8, 2016 at 4:03 PM, Alexei Starovoitov

Re: [PATCH v3 -next 1/2] ARM: sunxi: add support for H2+ SoC

2016-12-05 Thread Alexey Kardashevskiy
On 05/12/16 20:19, Maxime Ripard wrote: > On Fri, Dec 02, 2016 at 11:05:12PM +0800, Icenowy Zheng wrote: >> Allwinner H2+ is a quad-core Cortex-A7 SoC. >> >> It is very like H3, that they share the same SoC ID (0x1680), and H3 >> memory maps as well as drivers works well on the SoC. >> >> Signed-of

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-05 Thread Wangnan (F)
On 2016/12/6 5:48, Arnaldo Carvalho de Melo wrote: Em Mon, Dec 05, 2016 at 07:02:48PM -0200, Arnaldo Carvalho de Melo escreveu: Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: yeah. it's kinda high. I'm guessing rpm llvm libs are in debug mode. Try llvm-config --build-m

[PATCH] virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()

2016-12-05 Thread Andy Lutomirski
With CONFIG_VMAP_STACK=y, virtnet_set_mac_address() can be passed a pointer to the stack and it will OOPS. Copy the address to the heap to prevent the crash. Cc: Michael S. Tsirkin Cc: Jason Wang Cc: Laura Abbott Reported-by: zbys...@in.waw.pl Signed-off-by: Andy Lutomirski --- Very lightly

Re: [PATCH v8 2/6] powerpc: pSeries/Kconfig: Add qspinlock build config

2016-12-05 Thread Pan Xinhui
在 2016/12/6 09:24, Pan Xinhui 写道: 在 2016/12/6 08:58, Boqun Feng 写道: On Mon, Dec 05, 2016 at 10:19:22AM -0500, Pan Xinhui wrote: pSeries/powerNV will use qspinlock from now on. Signed-off-by: Pan Xinhui --- arch/powerpc/platforms/pseries/Kconfig | 8 1 file changed, 8 insertions(

Re: [PATCHv13 0/3] rdmacg: IB/core: rdma controller support

2016-12-05 Thread Parav Pandit
ok. Thanks Tejun. Parav On Tue, Dec 6, 2016 at 1:05 AM, Tejun Heo wrote: > Parav, it's a bit too late for this cycle. Let's target v4.11. I'll > review the patches after the merge window. Please ping me if I don't. > > Thanks. > > -- > tejun

Re: [PATCH v9 00/12] Add Mediated device support

2016-12-05 Thread Jike Song
On 12/06/2016 01:44 AM, Gerd Hoffmann wrote: > Hi, > >> Just want to share that we have published a KVMGT implementation >> based on this v9 patchset, to: >> >> https://github.com/01org/gvt-linux/tree/gvt-next-kvmgt >> >> It doesn't utilize common routines introduced by 05+ patches yet. >>

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Jon Masters
Hi Duc, all, So after regenerating the initrd override (I must have fat fingered) it is now detecting the correct bit width on boot (attached dmesg log). HOWEVER while the console does come up, the use of "earlycon" on the command line (with no parameters) doesn't result in the early SPCR console

Re: [PATCH] virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()

2016-12-05 Thread Jason Wang
On 2016年12月06日 10:10, Andy Lutomirski wrote: With CONFIG_VMAP_STACK=y, virtnet_set_mac_address() can be passed a pointer to the stack and it will OOPS. Copy the address to the heap to prevent the crash. Cc: Michael S. Tsirkin Cc: Jason Wang Cc: Laura Abbott Reported-by: zbys...@in.waw.pl S

[PATCH 00/10] vtime: Delay cputime accounting to tick

2016-12-05 Thread Frederic Weisbecker
This follows up Martin Schwidefsky's patch which propose to delay cputime accounting to the tick in order to minimize the calls to account_system_time() and alikes as these functions can carry quite some overhead: http://lkml.kernel.org/r/2016112728.13a0a3db@mschwide The set includes

[PATCH 03/10] cputime: Allow accounting system time using cpustat index

2016-12-05 Thread Frederic Weisbecker
In order to prepare for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE to delay cputime accounting to the tick, let's provide APIs to account system time to precise contexts: hardirq, softirq, pure system, ... Inspired-by: Martin Schwidefsky Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman

[FIX][PATCH 01/10] powerpc32: Fix stale scaled stime on context switch

2016-12-05 Thread Frederic Weisbecker
On context switch with powerpc32, the cputime is accumulated in the thread_info struct. So the switching-in task must move forward its start time snapshot to the current time in order to later compute the delta spent in system mode. This is what we do for the normal cputime by initializing the sta

[PATCH 04/10] cputime: Export account_guest_time

2016-12-05 Thread Frederic Weisbecker
In order to prepare for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE to delay cputime accounting to the tick, let's allow archs to account cputime directly to gtime. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu

[PATCH 07/10] powerpc/vtime: Accumulate cputime and account only on tick/task switch

2016-12-05 Thread Frederic Weisbecker
Currently CONFIG_VIRT_CPU_ACCOUNTING_NATIVE accounts the cputime on any context boundary: irq entry/exit, guest entry/exit, context switch, etc... Calling functions such as account_system_time(), account_user_time() and such can be costly, especially if they are called on many fastpath such as twi

[PATCH 06/10] powerpc: Migrate stolen_time field to accounting structure

2016-12-05 Thread Frederic Weisbecker
That in order to gather all cputime accumulation to the same place. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Tony Luck Cc: Fenghua Yu Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Stani

[PATCH 09/10] s390/cputime: delayed accounting of system time

2016-12-05 Thread Frederic Weisbecker
From: Martin Schwidefsky The account_system_time() function is called with a cputime that occurred while running in the kernel. The function detects which context the CPU is currently running in and accounts the time to the correct bucket. This forces the arch code to account the cputime for hard

[PATCH 10/10] vtime: Rename vtime_account_user() to vtime_flush()

2016-12-05 Thread Frederic Weisbecker
CONFIG_VIRT_CPU_ACCOUNTING_NATIVE used to accumulate user time and account it on ticks and context switches only through the vtime_account_user() function. Now this model has been generalized on the 3 archs for all kind of cputime (system, irq, ...) and all the cputime flushing happens under vtime

[PATCH 08/10] ia64: Accumulate cputime and account only on tick/task switch

2016-12-05 Thread Frederic Weisbecker
Currently CONFIG_VIRT_CPU_ACCOUNTING_NATIVE accounts the cputime on any context boundary: irq entry/exit, guest entry/exit, context switch, etc... Calling functions such as account_system_time(), account_user_time() and such can be costly, especially if they are called on many fastpath such as twi

[PATCH 05/10] powerpc: Prepare accounting structure for cputime flush on tick

2016-12-05 Thread Frederic Weisbecker
In order to prepare for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE to delay cputime accounting to the tick, provide finegrained accumulators to powerpc in order to store the cputime until flushing. While at it, normalize the name of several fields according to common cputime naming. Cc: Benjamin Herrensch

[FIX][PATCH 02/10] ia64: Fix wrong start cputime assignment on task switch

2016-12-05 Thread Frederic Weisbecker
On task switch we must initialize the current cputime of the next task using the value of the previous task which got freshly updated. But we are confusing that with doing the opposite, which should result in wrong cputime accounting. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael El

Re: [PATCH 2/2] mm: page_alloc: High-order per-cpu page allocator v5

2016-12-05 Thread Joonsoo Kim
On Mon, Dec 05, 2016 at 09:57:39AM +, Mel Gorman wrote: > On Mon, Dec 05, 2016 at 12:06:19PM +0900, Joonsoo Kim wrote: > > On Fri, Dec 02, 2016 at 09:04:49AM +, Mel Gorman wrote: > > > On Fri, Dec 02, 2016 at 03:03:46PM +0900, Joonsoo Kim wrote: > > > > > @@ -1132,14 +1134,17 @@ static void

[PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties

2016-12-05 Thread Andrew Jeffery
Whilst describing a device and not a bus, simple-mfd is modelled on simple-bus where child nodes are iterated and registered as platform devices. Some complex devices, e.g. the Aspeed LPC controller, can benefit from address space mapping such that child nodes can use the regs property to describe

[PATCH v3 4/6] mfd: dt: Add bindings for the Aspeed LPC Host Controller (LHC)

2016-12-05 Thread Andrew Jeffery
The LPC bus pinmux configuration on fifth generation Aspeed SoCs depends on bits in both the System Control Unit and the LPC Host Controller. The Aspeed LPC Host Controller is described as a child node of the LPC host-range syscon device for arbitration of access by the host controller and pinmux

[PATCH v3 1/6] mfd: dt: Fix "indicates" typo in mfd bindings document

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- Documentation/devicetree/bindings/mfd/mfd.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/mfd.txt b/Documentation/devicetree/bindings/mfd/mfd.txt index af9d6931a1a2..f1fceeda12f1 100644 --- a/Document

[PATCH v3 0/6] mfd: dt: Add bindings for the Aspeed MFDs

2016-12-05 Thread Andrew Jeffery
Hi Lee, Here's a series describing the bindings for some MFDs in the Aspeed SoCs. I expect there will be discussion about how I've gone about this with adding a ranges property to the MFD bindings: The motivation here is to allow re-use of the standard regs property to describe resources used insi

[PATCH v3 6/6] mfd: dt: Move syscon bindings to syscon subdirectory

2016-12-05 Thread Andrew Jeffery
The use of syscons is growing, lets collate them in their own part of the bindings tree. Signed-off-by: Andrew Jeffery --- Documentation/devicetree/bindings/mfd/{ => syscon}/aspeed-scu.txt | 0 Documentation/devicetree/bindings/mfd/{ => syscon}/atmel-gpbr.txt | 0 Documentation/d

[PATCH v3 3/6] mfd: dt: Add Aspeed Low Pin Count Controller bindings

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- .../devicetree/bindings/mfd/aspeed-lpc.txt | 111 + 1 file changed, 111 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/aspeed-lpc.txt diff --git a/Documentation/devicetree/bindings/mfd/aspeed-lpc.txt b/Docume

[PATCH v3 5/6] mfd: dt: Add bindings for the Aspeed SoC Display Controller (GFX)

2016-12-05 Thread Andrew Jeffery
The Aspeed SoC Display Controller is presented as a syscon device to arbitrate access by display and pinmux drivers. Video pinmux configuration on fifth generation SoCs depends on bits in both the System Control Unit and the Display Controller. Signed-off-by: Andrew Jeffery Acked-by: Rob Herring

Re: [PATCH] virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()

2016-12-05 Thread Michael S. Tsirkin
On Mon, Dec 05, 2016 at 06:10:58PM -0800, Andy Lutomirski wrote: > With CONFIG_VMAP_STACK=y, virtnet_set_mac_address() can be passed a > pointer to the stack and it will OOPS. Copy the address to the heap > to prevent the crash. > > Cc: Michael S. Tsirkin > Cc: Jason Wang > Cc: Laura Abbott >

[PATCH] ipmi: bt-bmc: Use a regmap for register access

2016-12-05 Thread Andrew Jeffery
The registers for the bt-bmc device live under the Aspeed LPC controller. Devicetree bindings have recently been introduced for the LPC controller where the "host" portion of the LPC register space is described as a syscon device. Future devicetrees describing the bt-bmc device should nest its node

RE: [PATCH] pci-hyperv: use kmalloc to allocate hypercall params buffer

2016-12-05 Thread Long Li
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, December 5, 2016 8:53 AM > To: Long Li > Cc: KY Srinivasan ; Haiyang Zhang > ; Bjorn Helgaas ; > de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; linux- > p...@vger.kernel.org >

[PATCH v3 0/4] pinctrl: aspeed: Implement remaining pins

2016-12-05 Thread Andrew Jeffery
Hi all, This is v3 of the series implementing the remainder of the pinmux tables for the AST2400 and AST2500 SoCs. v2 of the series can be found here: https://lkml.org/lkml/2016/11/2/263 Cheers, Andrew Significant changes since v2: * The fix for touching bit SCU90[6] has been applied, so

[PATCH v3 1/4] pinctrl: aspeed: Read and write bits in LPC and GFX controllers

2016-12-05 Thread Andrew Jeffery
The System Control Unit IP block in the Aspeed SoCs is typically where the pinmux configuration is found, but not always. A number of pins depend on state in one of LPC Host Control (LHC) or SoC Display Controller (GFX) IP blocks, so the Aspeed pinmux drivers should have the means to adjust these a

[PATCH v3 2/4] pinctrl: aspeed-g4: Add mux configuration for all pins

2016-12-05 Thread Andrew Jeffery
The patch introducing the g4 pinctrl driver implemented a smattering of pins to flesh out the implementation of the core and provide bare-bones support for some OpenPOWER platforms. Now, update the bindings document to reflect the complete functionality and implement the necessary pin configuration

[PATCH v3 3/4] pinctrl: aspeed-g5: Add mux configuration for all pins

2016-12-05 Thread Andrew Jeffery
The patch introducing the g5 pinctrl driver implemented a smattering of pins to flesh out the implementation of the core and provide bare-bones support for some OpenPOWER platforms and the AST2500 evaluation board. Now, update the bindings document to reflect the complete functionality and implemen

[PATCH v3 4/4] pinctrl: aspeed: Fix kerneldoc return descriptions

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c index 782c5c97f853..76f62bd45f02 100644 --- a/drivers/pinct

[PATCH v1 1/4] scsi: ufs: add support for UFS HCI 2.1

2016-12-05 Thread Subhash Jadavani
From: Yaniv Gardi The UFS HCI v2.1 includes a few additional registers. This change updates the HCI register, the UFS version register content and the Interrupt Status register. Signed-off-by: Yaniv Gardi Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 29 +

[PATCH v1 2/4] scsi: ufs-qcom: add probe_defer in case phy driver not probed yet

2016-12-05 Thread Subhash Jadavani
From: Yaniv Gardi In case UFS driver is probed before the phy driver does, the UFS driver should return a PROBE_DEFER code. Signed-off-by: Yaniv Gardi Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufs-qcom.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH v1 3/4] scsi: ufs: add quirk to increase host PA_SaveConfigTime

2016-12-05 Thread Subhash Jadavani
The maximum value PA_SaveConfigTime is 250 (10us) but this is not enough for some vendors. Gear switch from PWM to HS may fail even with this max. PA_SaveConfigTime. Gear switch can be issued by host controller as an error recovery and any software delay will not help on this case so we need to inc

[PATCH v1 4/4] scsi: ufs-qcom: fix bug with read/modify write of UFS_CFG1

2016-12-05 Thread Subhash Jadavani
ufs_qcom_print_hw_debug_reg_all() function is having a bug where it might incorrectly modify undesired bits in UFS_CFG1 register, this change fixes it. Reviewed-by: Venkat Gopalakrishnan Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufs-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH] sd: make ->no_write_same independent of reported ->max_ws_blocks

2016-12-05 Thread Martin K. Petersen
> "Nicolai" == Nicolai Stange writes: Nicolai, Nicolai> Due to reported problems with Write Same on ATA devices, commit Nicolai> 0ce1b18c42a5 ("libata: Some drives failing on SCT Write Same") Nicolai> strived to report non-support for Write Same on non-zoned ATA Nicolai> devices. Nicolai> H

[PATCHSET 00/10] perf sched timehist: Introduce --idle-hist option (v1)

2016-12-05 Thread Namhyung Kim
Hi, This patchset implements the idle hist feature which analyze reason of system idle. Sometimes I need to investigate what makes CPUs to go idle even though I have jobs to do. It may be due to I/O, waiting on lock or whatever. To identify the reasons it only accounts events related to idle ta

[PATCH 01/10] perf sched: Cleanup option processing

2016-12-05 Thread Namhyung Kim
The -D/--dump-raw-trace option is in the parent option so no need to repeat it. Also move -f/--force option to parent as it's common to handle data file. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/p

[PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-05 Thread Namhyung Kim
Sometimes samples have tid of 0 but non-0 pid. It ends up having a new thread of 0 tid/pid (instead of referring idle task) since tid is used to search matching task. But I guess it's wrong to use 0 as a tid when pid is set. This patch uses tid only if it has a non-zero value or same as pid (of

[PATCH 05/10] perf sched timehist: Cleanup idle_max_cpu handling

2016-12-05 Thread Namhyung Kim
It treats the idle_max_cpu little bit confusingly IMHO. Let's make it more straight forward. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 5f69

[PATCH 08/10] perf sched timehist: Skip non-idle events when necessary

2016-12-05 Thread Namhyung Kim
Sometimes it only focuses on idle-related events like upcoming idle-hist feature. In this case we don't want to see other event to reduce noise. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --gi

[PATCH 10/10] perf sched timehist: Show callchains for idle stat

2016-12-05 Thread Namhyung Kim
When --idle-hist option is used with --summary, it now shows idle stats with callchains like below: Idle stats by callchain: CPU 0: 902.195 msec Idle time (msec) Count Callchains -- 370

[PATCH 07/10] perf sched timehist: Save callchain when entering idle

2016-12-05 Thread Namhyung Kim
In order to investigate reason of idle, it needs to keep the callchains when entering to idle. This can be identified sched_switch event having next_pid as 0. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 29 + 1 file changed, 29 insertions(+) diff --

[PATCH 09/10] perf sched timehist: Add -I/--idle-hist option

2016-12-05 Thread Namhyung Kim
The --idle-hist option is to analyze system idle state so which process makes cpu to go idle. If this option is specified, non-idle events will be skipped and processes switching to/from idle will be shown. This option is mostly useful when used with --summary(-only) option. In the idle-time sum

[PATCH 02/10] perf tools: Introduce callchain_cursor__copy()

2016-12-05 Thread Namhyung Kim
The callchain_cursor__copy() function is to save current callchain captured by a cursor. It'll be used to keep callchains when switching to idle task for each cpu. Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 27 +++ tools/perf/util/callchain.h | 3 +++

[PATCH 06/10] perf sched timehist: Introduce struct idle_time_data

2016-12-05 Thread Namhyung Kim
The struct idle_time_data is to keep idle stats with callchains entering to the idle task. The normal thread_runtime calculation is done transparently since it extends the struct thread_runtime. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 31 +++ 1 f

[PATCH 04/10] perf sched timehist: Split is_idle_sample()

2016-12-05 Thread Namhyung Kim
The is_idle_sample() function actually does more than determining whether sample come from idle task. Split the callchain part into save_task_callchain() to make it clearer. Also checking prev_pid from trace data looks unnecessary since it should be always same as sample->pid. Signed-off-by: Nam

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Michael S. Tsirkin
On Thu, Dec 01, 2016 at 09:40:23PM +0800, Cao jin wrote: > > > On 12/01/2016 12:51 PM, Michael S. Tsirkin wrote: > > On Wed, Nov 30, 2016 at 09:04:13PM -0700, Alex Williamson wrote: > >> On Sun, 27 Nov 2016 19:34:17 +0800 > >> Cao jin wrote: > >> > > >>> @@ -1187,10 +1200,30 @@ static pci_ers_r

Re: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > Sometimes samples have tid of 0 but non-0 pid. It ends up having a Any idea how that happens? > new thread of 0 tid/pid (instead of referring idle task) since tid is > used to search matching task. But I guess it's wrong to use 0 as a > tid when pid is

[PATCH v4 1/6] arm: dts: aspeed-g4: Add syscon and pin controller nodes

2016-12-05 Thread Andrew Jeffery
The pin controller's child nodes expose the functions currently implemented in the the g4 pin controller driver. Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 750 +++ 1 file changed, 750 insertions(+) diff

[PATCH v4 0/6] aspeed: Integrate pinctrl and gpio drivers

2016-12-05 Thread Andrew Jeffery
Hello, This picks up some work from a while back that adds pinctrl and GPIO support to the Aspeed devicetrees. See the previous series: https://lkml.org/lkml/2016/8/30/74 Since v3 two new patches have been added, describing the Low Pin Count bus and SoC Display Controller nodes. These are es

[PATCH v4 2/6] arm: dts: aspeed-g4: Add gpio controller to devicetree

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index b00dfc7a3bf7..20b75667286f 100644 --- a/arch/arm/boot/dts/aspee

[PATCH v4 3/6] arm: dts: aspeed-g5: Add SoC Display Controller node

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-g5.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index dd94d9361fda..c7ff3ea4bf37 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/a

<    1   2   3   4   5   6   7   8   9   >