Re: [PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted

2016-10-18 Thread Christian Borntraeger
On 09/29/2016 05:51 PM, Christian Borntraeger wrote: > this implements the s390 backend for commit > "kernel/sched: introduce vcpu preempted check interface" > by reworking the existing smp_vcpu_scheduled into > arch_vcpu_is_preempted. We can then also get rid of the > local cpu_is_preempted functi

Re: [PATCH 1/1] usb: xhci: clean up error_bitmask usage

2016-10-18 Thread Mathias Nyman
Hi On 19.10.2016 03:53, Lu Baolu wrote: In xhci_handle_event(), when errors are detected, driver always sets a bit in error_bitmask (one member of the xhci private driver data). That means users have to retrieve and decode the value of error_bitmask in xhci private driver data if they want to kn

Re: [PATCH v4 0/5] implement vcpu preempted check

2016-10-18 Thread Christian Borntraeger
On 10/19/2016 12:20 PM, Pan Xinhui wrote: > change from v3: > add x86 vcpu preempted check patch If you want you could add the s390 patch that I provided for your last version. I also gave my Acked-by for all previous patches. > change from v2: > no code change, fix typos, update so

Re: [PATCH RESENT v2] rtc: cmos: remove all __exit_p annotations

2016-10-18 Thread Alexandre Belloni
On 18/10/2016 at 16:39:54 +0200, Corentin Labbe wrote : > I got the following stack trace under qemu: > [7.575243] BUG: unable to handle kernel NULL pointer dereference at > 0010 > [7.596098] IP: [] cmos_set_alarm+0x38/0x280 > [7.615699] PGD 3ccbe067 > [7.615923] PUD 3d

Re: [PATCH] rtc: asm9260: fix module autoload

2016-10-18 Thread Alexandre Belloni
On 14/10/2016 at 10:15:35 -0300, Javier Martinez Canillas wrote : > If the driver is built as a module, autoload won't work because the module > alias information is not filled so user-space can't match the registered > device with the corresponding module. > > Export the module alias information

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-18 Thread Vincent Guittot
On 18 October 2016 at 23:58, Joonwoo Park wrote: > > > On 10/18/2016 04:56 AM, Vincent Guittot wrote: >> >> Le Tuesday 18 Oct 2016 à 12:34:12 (+0200), Peter Zijlstra a écrit : >>> >>> On Tue, Oct 18, 2016 at 11:45:48AM +0200, Vincent Guittot wrote: On 18 October 2016 at 11:07, Peter Zijl

Re: [PATCH 1/1] MAINTAINERS: add a maintainer for the SPI NOR subsystem

2016-10-18 Thread Artem Bityutskiy
On Tue, 2016-10-18 at 11:46 -0700, Brian Norris wrote: > I could go with either method I suppose, but I don't personally like > the > idea of splitting out the various bits of MTD into *completely* > independent lines of development. As long as someone (not necessarily > me) can manage pulling the

Re: [PATCH] sched/fair: Do not decay new task load on first enqueue

2016-10-18 Thread Vincent Guittot
On 18 October 2016 at 14:15, Peter Zijlstra wrote: > On Tue, Oct 18, 2016 at 12:29:57PM +0100, Matt Fleming wrote: >> On Tue, 18 Oct, at 01:10:17PM, Peter Zijlstra wrote: >> > >> > I'm entirely lost as to which patch we're talking about by now ;-) >> >> Heh, this one from Vincent, >> >> https://

Re: [PATCH] Documentation/RCU: Fix minor typo

2016-10-18 Thread Paul E. McKenney
On Tue, Oct 18, 2016 at 12:43:24AM -0700, Josh Triplett wrote: > On Tue, Oct 18, 2016 at 12:54:03AM -0400, Pranith Kumar wrote: > > deference should actually be dereference. > > > > Signed-off-by: Pranith Kumar > > Good catch. > > Reviewed-by: Josh Triplett Applied, thank you both!

drm/i915: undefined STOP_MACHINE

2016-10-18 Thread Valentin Rothberg
Dear Chris, your commit 9f267eb8d2ea ("drm/i915: Stop the machine whilst capturing the GPU crash dump") has popped up in today's linux-next and adds a select from DRM_I915 on STOP_MACHINE, which is not defined anywhere in Kconfig. STOP_MACHINE has been removed a while ago (see https://lkml.org/lk

[PATCH v4 4/5] powerpc/spinlock: support vcpu preempted check

2016-10-18 Thread Pan Xinhui
This is to fix some lock holder preemption issues. Some other locks implementation do a spin loop before acquiring the lock itself. Currently kernel has an interface of bool vcpu_is_preempted(int cpu). It takes the cpu as parameter and return true if the cpu is preempted. Then kernel can break the

[PATCH v4 5/5] x86, kvm: support vcpu preempted check

2016-10-18 Thread Pan Xinhui
This is to fix some lock holder preemption issues. Some other locks implementation do a spin loop before acquiring the lock itself. Currently kernel has an interface of bool vcpu_is_preempted(int cpu). It takes the cpu as parameter and return true if the cpu is preempted. Then kernel can break the

[PATCH v4 3/5] kernel/locking: Drop the overload of {mutex,rwsem}_spin_on_owner

2016-10-18 Thread Pan Xinhui
An over-committed guest with more vCPUs than pCPUs has a heavy overload in the two spin_on_owner. This blames on the lock holder preemption issue. Kernel has an interface bool vcpu_is_preempted(int cpu) to see if a vCPU is currently running or not. So break the spin loops on true condition. test-

[PATCH v4 0/5] implement vcpu preempted check

2016-10-18 Thread Pan Xinhui
change from v3: add x86 vcpu preempted check patch change from v2: no code change, fix typos, update some comments change from v1: a simplier definition of default vcpu_is_preempted skip mahcine type check on ppc, and add config. remove dedicated macro. add o

[PATCH v4 2/5] locking/osq: Drop the overload of osq_lock()

2016-10-18 Thread Pan Xinhui
An over-committed guest with more vCPUs than pCPUs has a heavy overload in osq_lock(). This is because vCPU A hold the osq lock and yield out, vCPU B wait per_cpu node->locked to be set. IOW, vCPU B wait vCPU A to run and unlock the osq lock. Kernel has an interface bool vcpu_is_preempted(int cpu

[PATCH v4 1/5] kernel/sched: introduce vcpu preempted check interface

2016-10-18 Thread Pan Xinhui
This patch support to fix lock holder preemption issue. For kernel users, we could use bool vcpu_is_preempted(int cpu) to detech if one vcpu is preempted or not. The default implementation is a macro defined by false. So compiler can wrap it out if arch dose not support such vcpu pteempted check.

Re: [PATCH] um: remove hppfs MAINTAINERS entry

2016-10-18 Thread Dan Carpenter
On Tue, Oct 18, 2016 at 11:02:49PM +0200, Richard Weinberger wrote: > > Acked-by: Richard Weinberger > Oh, hm... I was thinking you could take this through your git tree and pass it on down the line. regards, dan carpenter

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-18 Thread Kuninori Morimoto
Hi Rob Thank you for your feedback > > Do you mean "on this sample" ? or in general ? > > Indeed this sample is definitely for sound, so type is very clear > > without property. > > But in general, for example HDMI, it want to know port type. > > Anyway, I can remove above "type" from this new s

Re: [REVIEW][PATCH] exec: Don't exec files the userns root can not read.

2016-10-18 Thread Amir Goldstein
On Wed, Oct 19, 2016 at 12:15 AM, Eric W. Biederman wrote: > > When the user namespace support was merged the need to prevent > ptracing an executable that is not readable was overlooked. > > Correct this oversight by not letting exec succeed if during exec an > executable is not readable and the

Re: [PATCH v9 2/2] ARM: dts: add TOPEET itop elite based board

2016-10-18 Thread Krzysztof Kozlowski
On Wed, Oct 19, 2016 at 4:15 AM, Ayaka wrote: > > > 從我的 iPad 傳送 > >> Krzysztof Kozlowski 於 2016年10月19日 上午1:37 寫道: >> >>> On Wed, Oct 19, 2016 at 01:18:49AM +0800, Randy Li wrote: >>> The TOPEET itop exynos 4412 have three versions base board. The >>> Elite version is the cheap one without too muc

Re: [Xen-devel] [PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-18 Thread Juergen Gross
On 18/10/16 18:40, Boris Ostrovsky wrote: > On 10/18/2016 12:08 PM, Juergen Gross wrote: >> On 14/10/16 22:02, Boris Ostrovsky wrote: >>> On 10/14/2016 03:51 PM, Konrad Rzeszutek Wilk wrote: On Fri, Oct 14, 2016 at 03:43:19PM -0400, Boris Ostrovsky wrote: > On 10/14/2016 03:19 PM, Konrad R

Re: [PATCH] staging: greybus: audio: Rename cport with intf_id

2016-10-18 Thread Vaibhav Agarwal
On Mon, Oct 17, 2016 at 9:01 PM, Johan Hovold wrote: > On Sun, Oct 16, 2016 at 03:29:14PM +0530, Pankaj Bharadiya wrote: >> gb_audio_manager_module_descriptor's cport field is actually used to >> manage and pass interface id to user space. >> >> Thus rename gb_audio_manager_module_descriptor's 'cp

Intel H81 Chipset PCIe configuration question

2016-10-18 Thread Steve Kenton
A while back I posted about a motherboard network controller that disappeared when the firmware on a PCIe card was upgraded which converted the card from a 32-bit BAR to a 64-bit BAR. That seems to be a BIOS bug rather than a kernel issue. But, I would really like to be able to upgrade the systems

Re: [PATCH] mm/hugetlb: Use the right pte val for compare in hugetlb_cow

2016-10-18 Thread Aneesh Kumar K.V
Andrew Morton writes: > On Tue, 18 Oct 2016 21:12:45 +0530 "Aneesh Kumar K.V" > wrote: > >> We cannot use the pte value used in set_pte_at for pte_same comparison, >> because archs like ppc64, filter/add new pte flag in set_pte_at. Instead >> fetch the pte value inside hugetlb_cow. We are compa

Re: [lkp] [tcp] 3613b3dbd1: netpipe.bigger_5M_Mbps.avg -5.5% regression

2016-10-18 Thread Eric Dumazet
On Wed, Oct 19, 2016 at 3:54 AM, kernel test robot wrote: > > FYI, we noticed a -5.5% regression of netpipe.bigger_5M_Mbps.avg due to > commit: > > commit 3613b3dbd1ade9a6a626dae1f608c57638eb5e8a ("tcp: prepare skbs for > better sack shifting") > https://git.kernel.org/pub/scm/linux/kernel/git/t

Re: [PATCH 4/4] i2c: digicolor: Fix module autoload

2016-10-18 Thread Baruch Siach
Hi Javier Martinez Canillas, On Tue, Oct 18, 2016 at 06:01:48PM -0300, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. >

[PATCH 2/5] selftests: ftrace: Fix test cases to enable tracing

2016-10-18 Thread Masami Hiramatsu
Fix some test cases to enable tracing before starting trace test. This can avoid false-positive failure when previous testcase fails while disabling tracing. Signed-off-by: Masami Hiramatsu --- .../selftests/ftrace/test.d/event/event-enable.tc |1 + .../selftests/ftrace/test.d/event/event-p

[PATCH 5/5] selftests: ftrace: Add a testcase for types of kprobe event

2016-10-18 Thread Masami Hiramatsu
Add a testcase for types of kprobe event. This checks kprobe event can accept and correctly expressed the arguments typed as s32, u32, x32 and bitfield. Here is the test result. - # ./ftracetest test.d/kprobe/kprobe_args_type.tc === Ftrace unit tests === [1] Kprobes event arguments wit

[PATCH 4/5] selftests: ftrace: Add a testcase for function filter glob match

2016-10-18 Thread Masami Hiramatsu
Add function filter glob matching test case. This checks whether the kernel supports glob matching (front match, end match, middle match, side match, character class and '?'). Here is the test result. - ./ftracetest test.d/ftrace/func-filter-glob.tc === Ftrace unit tests === [1] ftrace

[PATCH 3/5] selftests: ftrace: Introduce TMPDIR for temporary files

2016-10-18 Thread Masami Hiramatsu
Introduce TMPDIR variable which is removed after each test is done, so that the test script can put their temporary files in that. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ftrace

[PATCH 1/5] ftrace: Support full glob matching

2016-10-18 Thread Masami Hiramatsu
Use glob_match() to support flexible glob wildcards (*,?) and character classes ([) for ftrace. Since the full glob matching is slower than the current partial matching routines(*pat, pat*, *pat*), this leaves those routines and just add MATCH_GLOB for complex glob expression. e.g. [root@loca

[PATCH 0/5] ftrace: selftests: Add full glob matching and update ftracetest

2016-10-18 Thread Masami Hiramatsu
Hi, Here is a series of patches to add full glob matching support in ftrace and update ftracetest to test the glob matching and hexadecimal types. The first patch is same one as I sent before (https://lkml.org/lkml/2016/10/5/149) I've added patches for updating ftracetest to test this feature and

Re: tg3 BUG: spinlock lockup suspected

2016-10-18 Thread Siva Reddy Kallam
On Mon, Oct 17, 2016 at 6:35 PM, Meelis Roos wrote: >> > Now I reproduced the bug even with 4.7-rc1 so it is older than 4.7. Will >> > test further. >> >> It gets stranger and stranger - my old 4.7 image worked fine, freshly >> compiled 4.7 exhibits the same problem. >> >> Toolchain has not change

Re: [lkp] [ipc/sem.c] 5864a2fd30: aim9.shared_memory.ops_per_sec -13.0%

2016-10-18 Thread Manfred Spraul
Hi, as discussed before: The root cause for the performance regression is the smp_mb() that was added into the fast path. I see two options: 1) switch to full spin_lock()/spin_unlock() for the rare codepath, then the fast path doesn't need the smp_mb() anymore. 2) confirm that no arch needs th

[PATCH 2/2] ipc/sem: Add hysteresis.

2016-10-18 Thread Manfred Spraul
sysv sem has two lock modes: One with per-semaphore locks, one lock mode with a single global lock for the whole array. When switching from the per-semaphore locks to the global lock, all per-semaphore locks must be scanned for ongoing operations. The patch adds a hysteresis for switching from the

[PATCH 1/2] ipc/sem.c: Avoid using spin_unlock_wait()

2016-10-18 Thread Manfred Spraul
a) The ACQUIRE in spin_lock() applies to the read, not to the store, at least for powerpc. This forces to add a smp_mb() into the fast path. b) The memory barrier provided by spin_unlock_wait() is right now arch dependent. Therefore: Use spin_lock()/spin_unlock() instead of spin_unlock_wait(). A

[PATCH] i2c: uniphier[-f]: fix bool logic calculation

2016-10-18 Thread Masahiro Yamada
This code is working, but it should not depend on how "bool" is typedef'ed, or the bit position of I2C_M_RD. Signed-off-by: Masahiro Yamada --- drivers/i2c/busses/i2c-uniphier-f.c | 2 +- drivers/i2c/busses/i2c-uniphier.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [RFC][PATCHv3 0/6] printk: use printk_safe to handle printk() recursive calls

2016-10-18 Thread Sergey Senozhatsky
On (10/19/16 00:40), Sergey Senozhatsky wrote: [..] > Deadlock scenarios that printk_safe can handle: > > a) printk recursion from logbuf_lock spin_lock section in printk() > printk() > raw_spin_lock(&logbuf_lock); > WARN_ON(1); > raw_spin_unlock(&logbuf_lock); > > b) printk from se

Re: [PATCH 2/3] clk: hisilicon: add CRG driver for Hi3516CV300 SoC

2016-10-18 Thread Jiancheng Xue
在 2016/10/19 10:45, Rob Herring 写道: > On Tue, Oct 18, 2016 at 9:38 PM, Jiancheng Xue > wrote: >> >> >> 在 2016/10/18 23:58, Rob Herring 写道: >>> On Mon, Oct 17, 2016 at 08:07:04PM +0800, Pan Wen wrote: Add CRG driver for Hi3516CV300 SoC. CRG(Clock and Reset Generator) module generates cl

Re: [PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-18 Thread Dan Williams
[ adding Ashok and David for potential iommu comments ] On Tue, Oct 18, 2016 at 2:42 PM, Stephen Bates wrote: > This patch follows from an RFC we did earlier this year [1]. This > patchset applies cleanly to v4.9-rc1. > > Updates since RFC > - > Rebased. > Included the iopmem

Re: [PATCH resend 4.9] hw_random: Don't use a stack buffer in add_early_randomness()

2016-10-18 Thread Herbert Xu
On Mon, Oct 17, 2016 at 10:06:27AM -0700, Andy Lutomirski wrote: > hw_random carefully avoids using a stack buffer except in > add_early_randomness(). This causes a crash in virtio_rng if > CONFIG_VMAP_STACK=y. > > Reported-by: Matt Mullins > Tested-by: Matt Mullins > Fixes: d3cc7996473a ("hwrn

[REVIEW][PATCH] mount: In propagate_umount handle overlapping mount propagation trees

2016-10-18 Thread Eric W. Biederman
Adrei Vagin pointed out that time to executue propagate_umount can go non-linear (and take a ludicrious amount of time) when the mount propogation trees of the mounts to be unmunted by a lazy unmount overlap. While investigating the horrible performance I realized that in the case overlapping mou

[PATCH] tools: hv: clean up code, remove unnecessary header files and link flags

2016-10-18 Thread Weibing Zhang
Remove unnecessary header files and netlink related code as the daemons do not use netlink to communicate with the kernel now. Fix a compile warning in snprintf. Pthread is also not needed. Signed-off-by: Weibing Zhang --- tools/hv/Makefile | 3 +-- tools/hv/hv_fcopy_daemon.c | 7 --

Re: [PATCH v2] ARM: dts: rockchip: temporarily remove emmc hs200 speed from rk3288-veyron-speedy.

2016-10-18 Thread Vagrant Cascadian
On 2016-10-18, Paul Kocialkowski wrote: > Le mardi 18 octobre 2016 à 11:21 +0200, Heiko Stübner a écrit : >> Am Sonntag, 16. Oktober 2016, 21:49:43 schrieb Paul Kocialkowski: >> > Le mardi 27 septembre 2016 à 13:53 -0700, Vagrant Cascadian a écrit : >> > > >> > > This essentially mimics what was d

Re: [patch] power: supply: lp8788: remove an unneeded NULL check

2016-10-18 Thread Sebastian Reichel
Hi Dan, On Fri, Oct 14, 2016 at 10:33:28AM +0300, Dan Carpenter wrote: > We checked that "pdata->chg_params" is non-NULL earlier in this function > so when we add "i" to it, it's still non-NULL. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/power/supply/lp8788-charger.c > b/drivers

Re: [PATCH 0/2] power: supply: Fix module autoload for some platform drivers

2016-10-18 Thread Sebastian Reichel
Hi Javier, On Mon, Oct 17, 2016 at 04:13:34PM -0300, Javier Martinez Canillas wrote: > Hello Sebastian, > > I noticed that module autoload won't be working for some of the power > supply platform drivers. This patch series contains fixes for these. > > Best regards, > Javier > > > Javier Marti

Re: [PATCH 0/4] power: reset: Fix module autoload for some platform drivers

2016-10-18 Thread Sebastian Reichel
Hi Javier, On Mon, Oct 17, 2016 at 03:36:11PM -0300, Javier Martinez Canillas wrote: > I noticed that module autoload won't be working in a some of the reset > platform drivers This patch series contains the fixes for these. > > Best regards, > Javier > > > Javier Martinez Canillas (4): > pow

Re: [PATCH] crypto: ccm - avoid scatterlist for MAC encryption

2016-10-18 Thread Herbert Xu
On Mon, Oct 17, 2016 at 06:21:14PM +0100, Ard Biesheuvel wrote: > > Annoyingly, all this complication with scatterlists etc is for doing > asynchronous crypto via DMA capable crypto accelerators, and the > networking code (ipsec as well as mac80211, afaik) only allow > synchronous in the first plac

Re: [PATCH] dmaengine: dmatest: Restore "memcpy" as default mode

2016-10-18 Thread Vinod Koul
On Tue, Oct 18, 2016 at 11:14:08AM -0700, Dave Jiang wrote: > On 09/15/2016 08:48 AM, Vinod Koul wrote: > > On Wed, Sep 14, 2016 at 08:40:38PM +0300, Eugeniy Paltsev wrote: > >> Commit 0d4cb44da6ca0e8 ("dmaengine: dmatest: Add support for > >> scatter-gather DMA mode") changes default "dmatest" beh

Re: [PATCH] mm/hugetlb: Use the right pte val for compare in hugetlb_cow

2016-10-18 Thread Hillf Danton
On Tuesday, October 18, 2016 11:43 PM Aneesh Kumar K.V wrote: > > We cannot use the pte value used in set_pte_at for pte_same comparison, > because archs like ppc64, filter/add new pte flag in set_pte_at. Instead > fetch the pte value inside hugetlb_cow. We are comparing pte value to > make sure t

Re: [PATCH] dt-bindings: usb: atmel: fix a couple of copy-paste style typos

2016-10-18 Thread Rob Herring
On Tue, Oct 18, 2016 at 01:05:18PM +0200, Peter Rosin wrote: > Signed-off-by: Peter Rosin > --- > Documentation/devicetree/bindings/usb/atmel-usb.txt | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Acked-by: Rob Herring

Re: [RFC PATCH] mtd: nand: Add OX820 NAND Support

2016-10-18 Thread Rob Herring
On Tue, Oct 18, 2016 at 11:09:27AM +0200, Neil Armstrong wrote: > Add NAND driver to support the Oxford Semiconductor OX820 NAND Controller. > This is a simple memory mapped NAND controller with single chip select and > software ECC. > > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindi

Re: [PATCH] power: max17040: Change register transaction length from 8 bits to 16 bits

2016-10-18 Thread Sebastian Reichel
Hi, On Wed, Sep 21, 2016 at 10:17:34PM +0800, Liu Xiang wrote: > According to the datasheet, MAX17040 has six 16-bit registers. > Register reads and writes are only valid if all 16 bits are transferred. > Any write command that is terminated early is ignored. > So it's better to change register tr

Re: [PATCH] power: bq27xxx_battery: don't update poll_interval param if same

2016-10-18 Thread Sebastian Reichel
Hi, On Fri, Sep 30, 2016 at 09:45:30PM -0700, Matt Ranostay wrote: > To avoid canceling the delayed workqueue needlessly, and scheduling an > immediate polling. Check if the new poll_interval value is different > than the previous setting. > > Cc: Tony Lindgren > Cc: Sebastian Reichel > Signed-

Re: [PATCH 08/15] power: improve function-level documentation

2016-10-18 Thread Sebastian Reichel
Hi Julia, On Sat, Oct 01, 2016 at 09:46:25PM +0200, Julia Lawall wrote: > In drivers/power/supply/ab8500_fg.c, fix two typos and adjust the function > name in two cases to correspond to the names of the defined functions. > > In drivers/power/supply/power_supply_core.c, change two variable names

Re: [PATCH v2] arm64: kernel: numa: fix ACPI boot cpu numa node mapping

2016-10-18 Thread Leizhen (ThunderTown)
On 2016/10/18 16:39, Hanjun Guo wrote: > On 2016/10/17 22:56, Lorenzo Pieralisi wrote: >> Commit 7ba5f605f3a0 ("arm64/numa: remove the limitation that cpu0 must >> bind to node0") removed the numa cpu<->node mapping restriction whereby >> logical cpu 0 always corresponds to numa node 0; removing

Re: [PATCH 2/3] clk: hisilicon: add CRG driver for Hi3516CV300 SoC

2016-10-18 Thread Rob Herring
On Tue, Oct 18, 2016 at 9:38 PM, Jiancheng Xue wrote: > > > 在 2016/10/18 23:58, Rob Herring 写道: >> On Mon, Oct 17, 2016 at 08:07:04PM +0800, Pan Wen wrote: >>> Add CRG driver for Hi3516CV300 SoC. CRG(Clock and Reset >>> Generator) module generates clock and reset signals used >>> by other module b

Re: [PATCH v2] mm: exclude isolated non-lru pages from NR_ISOLATED_ANON or NR_ISOLATED_FILE.

2016-10-18 Thread Ming Ling
二, 10月 18, 2016 at 02:52:47下午 +0200, Michal Hocko wrote: hi, > On Tue 18-10-16 15:29:50, Minchan Kim wrote: > > On Mon, Oct 17, 2016 at 10:42:45AM +0200, Michal Hocko wrote: > [...] > > > Sure, what do you think about the following? I haven't marked it for > > > stable because there was no bug repo

Re: [PATCH 2/3] clk: hisilicon: add CRG driver for Hi3516CV300 SoC

2016-10-18 Thread Jiancheng Xue
在 2016/10/18 23:58, Rob Herring 写道: > On Mon, Oct 17, 2016 at 08:07:04PM +0800, Pan Wen wrote: >> Add CRG driver for Hi3516CV300 SoC. CRG(Clock and Reset >> Generator) module generates clock and reset signals used >> by other module blocks on SoC. >> >> Signed-off-by: Pan Wen >> --- >> .../devi

[PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-10-18 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not b

[PATCH v18 2/4] usb: gadget: Support for the usb charger framework

2016-10-18 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. It will report to the usb charger when the gadget state is changed, then the usb charger can do the power things. Signed-off-by: Baolin Wang Reviewed-by: Li Ju

[PATCH v18 4/4] power: wm831x_power: Support USB charger current limit management

2016-10-18 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others. Signed-off-

[PATCH v18 1/4] usb: gadget: Introduce the usb charger framework

2016-10-18 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from the

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-18 Thread Rob Herring
On Tue, Oct 18, 2016 at 8:36 PM, Kuninori Morimoto wrote: > > Hi Rob > >> > + type = "sound"; >> >> I'm still not convinced this is necessary. This is implied either by >> the fact there is only one port or perhaps the compatible string. > > Do you mean "on this sample" ? or in gener

linux-next: Tree for Oct 19

2016-10-18 Thread Stephen Rothwell
Hi all, Changes since 20161018: The drm-intel tree lost its build failures. The akpm-current tree still had its build failures for which I applied 2 patches. Non-merge commits (relative to Linus' tree): 1218 1521 files changed, 58816 insertions(+), 23659 dele

[PATCH v18 3/4] usb: gadget: Integrate with the usb gadget supporting for usb charger

2016-10-18 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger can implement the usb_charger_plug_by_gadget() function, usb_charger_exit() function and dev_to_uchger() function by getting 'struct usb_charger' from 'struct gadget'. Signed-off-by: Baolin Wang Reviewed-by: Li Jun Tested-b

Re: [PATCH net-next 00/15] ethernet: use core min/max MTU checking

2016-10-18 Thread Jarod Wilson
On Tue, Oct 18, 2016 at 06:28:20PM -0400, Jarod Wilson wrote: > On Tue, Oct 18, 2016 at 11:33:27AM -0400, David Miller wrote: > > From: Jarod Wilson > > Date: Mon, 17 Oct 2016 16:29:43 -0400 > > > > > On Mon, Oct 17, 2016 at 04:03:41PM -0400, David Miller wrote: > > >> From: Jarod Wilson > > >>

[PATCH net-next 6/6] net: use core MTU range checking in misc drivers

2016-10-18 Thread Jarod Wilson
firewire-net: - set min/max_mtu - remove fwnet_change_mtu nes: - set max_mtu - clean up nes_netdev_change_mtu xpnet: - set min/max_mtu - remove xpnet_dev_change_mtu hippi: - set min/max_mtu - remove hippi_change_mtu batman-adv: - set max_mtu - remove batadv_interface_change_mtu - initialization

[PATCH net-next 5/6] net: use core MTU range checking in virt drivers

2016-10-18 Thread Jarod Wilson
hyperv_net: - set min/max_mtu virtio_net: - set min/max_mtu - remove virtnet_change_mtu vmxnet3: - set min/max_mtu CC: net...@vger.kernel.org CC: virtualizat...@lists.linux-foundation.org CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: "Michael S. Tsirkin" CC: Shrikrishna Khare CC: "VMware, Inc

[PATCH net-next 4/6] net: use core MTU range checking in core net infra

2016-10-18 Thread Jarod Wilson
geneve: - Merge __geneve_change_mtu back into geneve_change_mtu, set max_mtu - This one isn't quite as straight-forward as others, could use some closer inspection and testing macvlan: - set min/max_mtu tun: - set min/max_mtu, remove tun_net_change_mtu vxlan: - Merge __vxlan_change_mtu back in

[PATCH net-next 2/6] net: use core MTU range checking in wireless drivers

2016-10-18 Thread Jarod Wilson
- set max_mtu in wil6210 driver - set max_mtu in atmel driver - set min/max_mtu in cisco airo driver, remove airo_change_mtu - set min/max_mtu in ipw2100/ipw2200 drivers, remove libipw_change_mtu - set min/max_mtu in p80211netdev, remove wlan_change_mtu CC: net...@vger.kernel.org CC: linux-wirel..

[PATCH net-next 1/6] net: use core MTU range checking in USB NIC drivers

2016-10-18 Thread Jarod Wilson
- Remove stale new_mtu <= 0 check in usbnet.c - Set appropriate max_mtu for different r8152 driven variants - Set max_mtu in lan78xx driver CC: net...@vger.kernel.org CC: Woojung Huh CC: Microchip Linux Driver Support CC: Hayes Wang CC: Oliver Neukum Signed-off-by: Jarod Wilson --- drivers/n

[PATCH net-next 3/6] net: use core MTU range checking in WAN drivers

2016-10-18 Thread Jarod Wilson
- set min/max_mtu in all hdlc drivers, remove hdlc_change_mtu - sent max_mtu in lec driver, remove lec_change_mtu CC: net...@vger.kernel.org CC: Krzysztof Halasa CC: Krzysztof Halasa CC: Jan "Yenya" Kasprzak CC: Francois Romieu CC: Kevin Curtis CC: Zhao Qiang Signed-off-by: Jarod Wilson ---

[PATCH net-next 0/6] net: use core MTU range checking everywhere

2016-10-18 Thread Jarod Wilson
This stack of patches should get absolutely everything in the kernel converted from doing their own MTU range checking to the core MTU range checking. Jarod Wilson (6): net: use core MTU range checking in USB NIC drivers net: use core MTU range checking in wireless drivers net: use core MTU

[PATCH v7, 4/8] usb: Add MediaTek USB3 DRD driver

2016-10-18 Thread Chunfeng Yun
This patch adds support for the MediaTek USB3 controller integrated into MT8173. It currently supports High-Speed Peripheral Only mode. Super-Speed Peripheral, Dual-Role Device and Host Only (xHCI) modes will be added in the next patchs. Signed-off-by: Chunfeng Yun --- drivers/usb/Kconfig

[PATCH v7, 3/8] usb: xhci-mtk: make IPPC register optional

2016-10-18 Thread Chunfeng Yun
Make IPPC register optional to support host side of dual-role mode, due to it is moved into common glue layer for simplification. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 38 +++--- drivers/usb/host/xhci-mtk.h |1 + 2 files changed, 32 i

[PATCH v7, 5/8] usb: mtu3: Super-Speed Peripheral mode support

2016-10-18 Thread Chunfeng Yun
add super-speed funtion for peripheral mode Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h| 13 ++- drivers/usb/mtu3/mtu3_core.c | 202 drivers/usb/mtu3/mtu3_gadget.c | 45 +--- drivers/usb/mtu3/mtu3_gadget_ep0.c | 90

[PATCH v7, 0/8] Add MediaTek USB3 DRD Driver

2016-10-18 Thread Chunfeng Yun
These patches introduce the MediaTek USB3 dual-role controller driver. The driver can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only (xHCI) modes. It works well with Mass Storage, RNDIS and g_zero on FS/HS and SS. And it is tested on MT8173 platform which only contains USB2

[PATCH v7, 2/8] dt-bindings: mt8173-mtu3: add devicetree bindings

2016-10-18 Thread Chunfeng Yun
add a DT binding doc for MediaTek USB3 DRD driver Signed-off-by: Chunfeng Yun Acked-by: Rob Herring --- .../devicetree/bindings/usb/mt8173-mtu3.txt| 87 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt8173-mtu3.txt dif

[PATCH v7, 8/8] arm64: dts: mediatek: add USB3 DRD driver

2016-10-18 Thread Chunfeng Yun
USB3 DRD driver is added for MT8173-EVB, and xHCI driver becomes its subnode Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 63 ++- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 29 +--- 2 files changed, 74 insertions(+), 18 dele

[PATCH v7, 6/8] usb: mtu3: host only mode support

2016-10-18 Thread Chunfeng Yun
supports host only mode and the code is ported from host/xhci-mtk.c IPPC register shared between host and device is moved into common glue layer. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/Kconfig |9 ++ drivers/usb/mtu3/Makefile| 11 +- drivers/usb/mtu3/mtu3.h | 47 ++

[PATCH v7, 7/8] usb: mtu3: dual-role mode support

2016-10-18 Thread Chunfeng Yun
support dual-role mode; there are two ways to switch between host and device modes, one is by idpin, another is by debugfs which depends on user input. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/Kconfig | 15 +- drivers/usb/mtu3/Makefile | 11 +- drivers/usb/mtu3/mtu3.h

[PATCH v7, 1/8] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-10-18 Thread Chunfeng Yun
Some resources, such as IPPC register etc, shared with device driver are moved into common glue layer when xHCI driver is the host side of dual-role mode and they should be changed as optional properties if they are required ones before. For clarity, add a new part of binding to support host side o

Re: ppc64 qemu test failure since commit f9aa67142 ("powerpc/64s: Consolidate Alignment 0x600 interrupt")

2016-10-18 Thread Michael Ellerman
On Tue, 2016-11-10 at 07:47:56 UTC, Nicholas Piggin wrote: > On Mon, 10 Oct 2016 07:15:11 -0700 > Guenter Roeck wrote: > > > On 10/09/2016 10:49 PM, Nicholas Piggin wrote: > > > On Sun, 9 Oct 2016 08:21:21 -0700 > > > Guenter Roeck wrote: > > > > > >> Nicholas, > > >> > > >> some of my qemu te

Re: powerpc/pseries: Fix stack corruption in htpe code

2016-10-18 Thread Michael Ellerman
On Thu, 2016-06-10 at 13:33:21 UTC, Laurent Dufour wrote: > This commit fixes a stack corruption in the pseries specific code dealing > with the huge pages. > > In __pSeries_lpar_hugepage_invalidate() the buffer used to pass arguments > to the hypervisor is not large enough. This leads to a stack

[PATCH v7 4/6] x86/syscalls/32: Wire up arch_prctl on x86-32

2016-10-18 Thread Kyle Huey
Hook up arch_prctl to call do_arch_prctl on x86-32, and in 32 bit compat mode on x86-64. This allows us to have arch_prctls that are not specific to 64 bits. On UML, simply stub out this syscall. Signed-off-by: Kyle Huey --- arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/kernel/process_

[PATCH v7 5/6] x86/cpufeature: Detect CPUID faulting support

2016-10-18 Thread Kyle Huey
Intel supports faulting on the CPUID instruction beginning with Ivy Bridge. When enabled, the processor will fault on attempts to execute the CPUID instruction with CPL>0. This will allow a ptracer to emulate the CPUID instruction. Bit 31 of MSR_PLATFORM_INFO advertises support for this feature. I

[PATCH v7 2/6] x86/arch_prctl/64: Rename do_arch_prctl to do_arch_prctl_64

2016-10-18 Thread Kyle Huey
In order to introduce new arch_prctls that are not 64 bit only, rename the existing 64 bit implementation to do_arch_prctl_64. Also rename the second argument to arch_prctl, which will no longer always be an address. Signed-off-by: Kyle Huey Reviewed-by: Andy Lutomirski --- arch/x86/include/asm

[PATCH v7 3/6] x86/arch_prctl: Add do_arch_prctl_common

2016-10-18 Thread Kyle Huey
Add do_arch_prctl_common to handle arch_prctls that are not specific to 64 bits. Call it from the syscall entry point, but not any of the other callsites in the kernel, which all want one of the existing 64 bit only arch_prctls. Signed-off-by: Kyle Huey --- arch/x86/include/asm/proto.h | 1 + ar

[PATCH v7 6/6] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID

2016-10-18 Thread Kyle Huey
Intel supports faulting on the CPUID instruction beginning with Ivy Bridge. When enabled, the processor will fault on attempts to execute the CPUID instruction with CPL>0. Exposing this feature to userspace will allow a ptracer to trap and emulate the CPUID instruction. When supported, this featur

[PATCH v7 1/6] x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl

2016-10-18 Thread Kyle Huey
Signed-off-by: Kyle Huey --- arch/x86/kernel/process_64.c | 3 ++- arch/x86/um/syscalls_64.c| 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index b3760b3..2718cf9 100644 --- a/arch/x86/kernel/process_64.c +++

[PATCH v7 0/6] x86/arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction

2016-10-18 Thread Kyle Huey
rr (http://rr-project.org/), a userspace record-and-replay reverse- execution debugger, would like to trap and emulate the CPUID instruction. This would allow us to a) mask away certain hardware features that rr does not support (e.g. RDRAND) and b) enable trace portability across machines by provi

Re: linux-next: build warnings after merge of the drm-intel tree

2016-10-18 Thread Zhenyu Wang
On 2016.10.19 10:57:53 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the drm-intel tree, today's linux-next build (x86_64 > allmodconfig) produced these warnings: > > drivers/gpu/drm/i915/gvt/execlist.c: In function > 'release_shadow_batch_buffer': > drivers/gpu/drm/i915/gvt/execlis

Re: [PATCH] clocksource: arm_arch_timer: Don't assume clock runs in suspend

2016-10-18 Thread Stephen Boyd
On 10/18/2016 06:36 PM, Brian Norris wrote: > I believe we do not on either rk3288 or rk3399. We'd have to be powering > off almost the entire system before we'd be able to gate the 24 MHz > oscillator, AIUI. > Great! That avoids a major headache. -- Qualcomm Innovation Center, Inc. is a member

Re: [PATCH 1/8] tools lib bpf: add error functions

2016-10-18 Thread Wangnan (F)
On 2016/10/19 6:52, Joe Stringer wrote: On 16 October 2016 at 14:18, Eric Leblond wrote: The include of err.h is not explicitely needed in exported functions and it was causing include conflict with some existing code due to redefining some macros. To fix this, let's have error handling func

Re: [RFC][PATCHv3 1/6] printk: use vprintk_func in vprintk()

2016-10-18 Thread Sergey Senozhatsky
On (10/18/16 12:49), Steven Rostedt wrote: > On Wed, 19 Oct 2016 00:40:40 +0900 > Sergey Senozhatsky wrote: > > > vprintk(), just like printk(), better be using per-cpu printk_func > > instead of direct vprintk_emit() call. Just in case if vprintk() > > will ever be called from NMI, or from any o

Re: [RFC][PATCHv3 2/6] printk: rename nmi.c and exported api

2016-10-18 Thread Sergey Senozhatsky
On (10/18/16 12:49), Steven Rostedt wrote: > On Wed, 19 Oct 2016 00:40:41 +0900 > Sergey Senozhatsky wrote: > > > A preparation patch for printk_safe work. No functional change. > > - rename nmi.c to print_safe.c > > - rename exported functions to have `safe' prefix. > > > > Signed-off-by: Serge

Re: [RFC][PATCHv3 0/6] printk: use printk_safe to handle printk() recursive calls

2016-10-18 Thread Sergey Senozhatsky
On (10/18/16 19:07), Peter Zijlstra wrote: > > This patch set extends a lock-less NMI per-cpu buffers idea to > > handle recursive printk() calls. The basic mechanism is pretty much the > > same -- at the beginning of a deadlock-prone section we switch to lock-less > > printk callback, and

[PATCH 2/2] sched/fair: avoid unnecessary hrtick rearm when it's possible

2016-10-18 Thread Joonwoo Park
At present, scheduler rearms hrtick always when the nr_running is low enough to matter. We can also skip rearming of hrtick when newly enqueued or dequeued task is on a different cgroup than current task's because as long as enqueue/dequeue didn't change nr_running of current task's cfs_rq, curren

[PATCH 1/2] sched/fair: rearm hrtick timer when it's senseful

2016-10-18 Thread Joonwoo Park
When a new cfs task enqueued, fair scheduler rearms current cfs task's hrtick expiration time with decreased slice. But the slice stops decreasing eventually when it reached sched_min_granularity. Consequently cfs scheduler also stops rearming of hrtick timer because hrtick expiration time for the

  1   2   3   4   5   6   7   8   9   >