Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks

2016-04-06 Thread Sjoerd Simons
On Wed, 2016-04-06 at 15:11 +0200, Geert Uytterhoeven wrote: > CC Mike, Stephen, linux-clk (this time with the new Mike) > > On Wed, Apr 6, 2016 at 2:52 PM, Sjoerd Simons > wrote: > > > > clk_get on a disabled clock node will return EPROBE_DEFER, which > > can > > cause drivers to be deferred fo

Re: [PATCH RFC] select_idle_sibling experiments

2016-04-06 Thread Chris Mason
On Wed, Apr 06, 2016 at 09:27:24AM +0200, Mike Galbraith wrote: > > On Tue, 2016-04-05 at 14:08 -0400, Chris Mason wrote: > > > Now, on to the patch. I pushed some code around and narrowed the > > problem down to select_idle_sibling() We have cores going into and out > > of idle fast enough tha

Re: [PATCH v2 09/30] Add tile-specific parity functions

2016-04-06 Thread Chris Metcalf
On 4/6/2016 5:08 AM, zengzhao...@163.com wrote: From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- arch/tile/include/asm/bitops.h | 26 ++ 1 file changed, 26 insertions(+) Since all the code you are adding here is architecture-independent, I think it would make more

Re: [PATCH] csiostor: Fix backwards locking in the function __csio_unreg_rnode

2016-04-06 Thread Bastien Philbert
On 2016-04-06 03:48 AM, Julian Calaby wrote: > Hi Bastien, > > On Wed, Apr 6, 2016 at 7:19 AM, Bastien Philbert > wrote: >> This fixes backwards locking in the function __csio_unreg_rnode to >> properly lock before the call to the function csio_unreg_rnode and >> not unlock with spin_unlock_irq

[PATCH v2] sched/fair: Fix asym packing to select correct cpu

2016-04-06 Thread Srikar Dronamraju
When asymmetric packing is set in the sched_domain and target cpu is busy, update_sd_pick_busiest() may not select the busiest runqueue. When target cpu is busy, find_busiest_group() will ignore checks for asym packing and may continue to load balance using the currently selected not-the-busiest ru

Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks

2016-04-06 Thread Geert Uytterhoeven
CC Mike, Stephen, linux-clk (this time with the new Mike) On Wed, Apr 6, 2016 at 2:52 PM, Sjoerd Simons wrote: > clk_get on a disabled clock node will return EPROBE_DEFER, which can > cause drivers to be deferred forever if such clocks are referenced in > their clocks property. Is this a side ef

Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks

2016-04-06 Thread Geert Uytterhoeven
CC Mike, Stephen, linux-clk On Wed, Apr 6, 2016 at 2:52 PM, Sjoerd Simons wrote: > clk_get on a disabled clock node will return EPROBE_DEFER, which can > cause drivers to be deferred forever if such clocks are referenced in > their clocks property. Is this a side effect of commit 3e5dd6f6e690048

Re: [Xen-devel] [PATCH] xen: Add comment for missing FROZEN notifier transitions

2016-04-06 Thread David Vrabel
On 04/04/16 13:32, Anna-Maria Gleixner wrote: > Xen guests do not offline/online CPUs during suspend/resume and > therefore FROZEN notifier transitions are not required. Add this > explanation as a comment in the code to get not confused why > CPU_TASKS_FROZEN masked transitions are not considered.

Re: [PATCH] ASN.1: fix open failure check on headername

2016-04-06 Thread David Howells
Colin King wrote: > From: Colin Ian King > > The check for a failed open on headername is incorrectly checking > on the out FILE pointer rather than the hdr. Fix this. > > Signed-off-by: Colin Ian King Applied, thanks. David

[PATCH net] net: sched: do not requeue a NULL skb

2016-04-06 Thread Lars Persson
A failure in validate_xmit_skb_list() triggered an unconditional call to dev_requeue_skb with skb=NULL. This slowly grows the queue discipline's qlen count until all traffic through the queue stops. Fixes: 55a93b3ea780 ("qdisc: validate skb without holding lock") Signed-off-by: Lars Persson ---

Re: [PATCH] sched/deadline: No need to check NULL later_mask

2016-04-06 Thread Xunlei Pang
On 2016/04/06 at 17:30, Peter Zijlstra wrote: > On Sat, Apr 02, 2016 at 06:14:28PM +0800, Xunlei Pang wrote: >> Your proposal is very nice! >> >> At the sched_init() stage we only have one (to be "idle") task and with irq >> disabled, >> no scheduling will happen, and the cpu_possible_mask was alr

[PATCH] rtmutex: Consider deadline tasks in try_to_take_rt_mutex()

2016-04-06 Thread Xunlei Pang
If mutliple tasks contest try_to_take_rt_mutex(), it should let the high-priority task acquire the lock, but it misses the deadline tasks in the following condition: if (task->prio >= rt_mutex_top_waiter(lock)->prio) return 0; Deadline tasks all have "-1" prio, so above logic will alwa

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

2016-04-06 Thread Petr Mladek
On Fri 2016-03-25 14:34:52, Josh Poimboeuf wrote: > This is a horrible way to detect whether a task has been preempted. > Come up with something better: task flag? or is there already an > existing mechanism? What about using kallsyms_lookup_size_offset() to check the address. It is more heavywei

Re: [PATCH v7 0/3] gpio: dwapb: add gpio-signaled acpi event support for power button

2016-04-06 Thread Andy Shevchenko
On Wed, Apr 6, 2016 at 10:07 AM, qiujiang wrote: > This patchset adds gpio-signaled acpi events support for power button on > hisilicon > D02 board. > > The three patches respectively: > - remove name from dwapb_port_property > - convert device node to fwnode > - add gpio-

Re: [PATCH v7 2/3] gpio: dwapb: convert device node to fwnode

2016-04-06 Thread Andy Shevchenko
On Wed, Apr 6, 2016 at 10:07 AM, qiujiang wrote: > This patch converts device node to fwnode for dwapb driver, so > as to provide a unified fwnode for DT and ACPI bindings. > > Acked-by: Andy Shevchenko > Signed-off-by: qiujiang > static struct dwapb_platform_data * > -dwapb_gpio_get_pdata_of(

Re: [PATCH v3 13/16] zsmalloc: migrate head page of zspage

2016-04-06 Thread Chulmin Kim
On 2016년 03월 30일 16:12, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. To begin with, it supports only head page migration for easy review(later patches will support tail page migration). For migration, it supports three functions * zs_page_isolate It isolates

[PATCH v2 1/2] sched/rtmutex/deadline: Fix a PI crash for deadline tasks

2016-04-06 Thread Xunlei Pang
A crash happened while I'm playing with deadline PI rtmutex. BUG: unable to handle kernel NULL pointer dereference at 0018 IP: [] rt_mutex_get_top_task+0x1f/0x30 PGD 232a75067 PUD 230947067 PMD 0 Oops: [#1] SMP CPU: 1 PID: 10994 Comm: a.out Not tainted Cal

[PATCH v2 2/2] rtmutex: Kill pi_waiters_leftmost from task_struct

2016-04-06 Thread Xunlei Pang
Current code use pi_waiters_leftmost to record the leftmost waiter, but actually it can be get directly from task_struct::pi_waiters using rb_first(). The performance penalty introduced by rb_first() should be fine, because normally there aren't that many rtmutexes chained together for one task. W

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

2016-04-06 Thread Felipe Balbi
Hi, Jun Li writes: >> >> On 6 April 2016 at 15:19, Peter Chen wrote: >> >> > On Fri, Apr 01, 2016 at 03:21:50PM +0800, Baolin Wang wrote: >> >> >> >> >> >> @@ -563,6 +564,8 @@ struct usb_gadget_ops { >> >> >> struct usb_ep *(*match_ep)(struct usb_gadget *, >> >> >> s

Re: [PATCH v7 1/3] gpio: dwapb: remove name from dwapb_port_property

2016-04-06 Thread Andy Shevchenko
On Wed, Apr 6, 2016 at 10:07 AM, qiujiang wrote: > This patch removed the name property from dwapb_port_property. > The name property is redundant because we can get those info > from dwapb_gpio dev and pp->idx property. Where idx is used in such replacements? > --- a/drivers/gpio/gpio-dwapb.c >

Re: [PATCH] PKCS#7: fix missing break on OID_sha224 case

2016-04-06 Thread David Howells
Colin King wrote: > From: Colin Ian King > > The OID_sha224 case is missing a break and it falls through > to the -ENOPKG error default. Since HASH_ALGO_SHA224 seems > to be supported, this looks like an unintentional missing break. > > Fixes: 07f081fb5057 ("PKCS#7: Add OIDs for sha224, sha28

Re: [PATCH net-next 2/3] net: dsa: make the FDB add function return void

2016-04-06 Thread Andrew Lunn
On Tue, Apr 05, 2016 at 11:14:54PM -0400, Vivien Didelot wrote: > Hi Andrew, > > Andrew Lunn writes: > > >>mutex_lock(&ps->smi_mutex); > >> - ret = _mv88e6xxx_port_fdb_load(ds, port, fdb->addr, fdb->vid, state); > >> + if (_mv88e6xxx_port_fdb_load(ds, port, fdb->addr, fdb->vid, state)) > >

[PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks

2016-04-06 Thread Sjoerd Simons
clk_get on a disabled clock node will return EPROBE_DEFER, which can cause drivers to be deferred forever if such clocks are referenced in their clocks property. Update the various disabled external clock nodes to default to a frequency of 0, but don't disable them to prevent this. Signed-off-by:

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-06 Thread Kishon Vijay Abraham I
Hi, On Friday 01 April 2016 07:05 PM, Vivek Gautam wrote: > Hi, > > > On Fri, Apr 1, 2016 at 6:05 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Friday 01 April 2016 04:59 PM, Vivek Gautam wrote: >>> Adding vendor specific directories in phy to group >>> phy drivers under their respective ve

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

2016-04-06 Thread Jun Li
> -Original Message- > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Wednesday, April 06, 2016 8:22 PM > To: Jun Li ; Baolin Wang ; Peter > Chen > Cc: Greg KH ; Sebastian Reichel > ; Dmitry Eremin-Solenikov ; David > Woodhouse ; Peter Chen ; > Alan Stern ; r.bald...@samsung.com; Y

Re: [PATCH 2/3] phy: rcar-gen3-usb2: Add vbus-supply to handle VBUS on/off

2016-04-06 Thread Kishon Vijay Abraham I
Hi, On Wednesday 06 April 2016 05:55 AM, Yoshihiro Shimoda wrote: > Hi, > >> From: Kishon Vijay Abraham I >> Sent: Tuesday, April 05, 2016 7:54 PM >> >> Hi, >> >> On Thursday 03 March 2016 03:39 PM, Yoshihiro Shimoda wrote: >>> To handle the VBUS on/off by a regulator driver, this patch adds >>>

[PATCH 0/2] perf probe fixes for ppc64le

2016-04-06 Thread Naveen N. Rao
This patchset fixes three issues found with perf probe on ppc64le: 1. 'perf test kallsyms' failure on ppc64le (reported by Michael Ellerman). This was due to the symbols being fixed up during symbol table load. This is fixed in patch 2 by delaying symbol fixup until later. 2. perf probe function of

Re: [PATCH v10 4/9] phy: Add Tegra XUSB pad controller support

2016-04-06 Thread Kishon Vijay Abraham I
Hi, On Friday 04 March 2016 09:49 PM, Thierry Reding wrote: > From: Thierry Reding > > Add a new driver for the XUSB pad controller found on NVIDIA Tegra SoCs. > This hardware block used to be exposed as a pin controller, but it turns > out that this isn't a good fit. The new driver and DT bindi

[PATCH] neigh: remove duplicated log msg

2016-04-06 Thread Abdelmajid Mlayeh
From: Abdelmajid MLAYEH This will be printed anyways by neigh_suspect Signed-off-by: Abdelmajid Mlayeh --- net/core/neighbour.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index f18ae91..bf20118 100644 --- a/net/core/neighbour.c +++ b/net/core

Re: [PATCH v2 1/3] mmc: sdhci: introduce sdhci_compute_clock_config

2016-04-06 Thread Adrian Hunter
On 04/04/16 18:27, Ludovic Desroches wrote: > In order to remove the SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST and to > reduce code duplication, put the code relative to the SD clock > configuration in a function which can be used by hosts for the > implementation of the set_clock() callback. > >

Re: [RFC PATCH] mm, oom: move GFP_NOFS check to out_of_memory

2016-04-06 Thread Michal Hocko
On Tue 05-04-16 20:12:51, Tetsuo Handa wrote: [...] > What I can observe under OOM livelock condition is a three-way dependency > loop. > > (1) An OOM victim (which has TIF_MEMDIE) is unable to make forward progress > due to blocked at unkillable lock waiting for other thread's memory >

Re: [PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-04-06 Thread Sergei Shtylyov
Hello. On 4/6/2016 9:44 AM, Lu Baolu wrote: +struct intel_mux_dev { + struct device *dev; + char*extcon_name; + char*cable_name; + int (*cable_set_cb)(struct intel_mux_dev *mux); + int (*cable_unset_cb)(struct intel

Re: [patch] remove unnecessary code in hyperv.c

2016-04-06 Thread Radim Krčmář
2016-04-06 10:21+0800, rhett rhett: > 8499907b52c9cebf3c1a4aaa63b84bd9c3c1ff3d > arch/x86/kvm/hyperv.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c > index 01bd7b7..e831032 100644 > --- a/arch/x86/kvm/hyperv.c > +++ b/arch/x86/kvm/hyperv.c

Re: [PART1 RFC v3 12/12] svm: Manage vcpu load/unload when enable AVIC

2016-04-06 Thread Radim Krčmář
2016-04-06 10:40+0700, Suravee Suthikulpanit: > On 04/05/2016 09:56 PM, Radim Krčmář wrote: >>I meant to change the place where we remember that is_running must not >>be true. Something like >> >> svm_vcpu_blocking(struct kvm_vcpu *vcpu): >> vcpu->is_blocking = true; >> avic_se

Re: [PATCH v10 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini

[PATCH 1/2] perf/powerpc: Fix kprobe and kretprobe handling with kallsyms

2016-04-06 Thread Naveen N. Rao
So far, we used to treat probe point offsets as being offset from the LEP. However, userspace applications (objdump/readelf) always show disassembly and offsets from the function GEP. This is confusing to the user as we will end up probing at an address different from what the user expects when loo

[PATCH 2/2] tools/perf: Fix kallsyms perf test on ppc64le

2016-04-06 Thread Naveen N. Rao
ppc64le functions have a Global Entry Point (GEP) and a Local Entry Point (LEP). While placing a probe, we always prefer the LEP since it catches function calls through both the GEP and the LEP. In order to do this, we fixup the function entry points during elf symbol table lookup to point to the L

Re: [PATCH] staging: rts5208: ensure braces on all arms of if stmt

2016-04-06 Thread Dan Carpenter
On Tue, Apr 05, 2016 at 05:29:17PM +0100, Nicholas Sim wrote: > Added braces on if arm of if statement where else arm already needs braces > as suggested for clarity in Documentation/CodingStyle > > Signed-off-by: Nicholas Sim > --- > drivers/staging/rts5208/ms.c | 3 ++- > 1 file changed, 2 ins

Re: [PATCH v10 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall

RE: AP firmware for TI wl1251 wifi chip (wl1251-fw-ap.bin)

2016-04-06 Thread Machani, Yaniv
On Wed, Apr 06, 2016 at 15:12:43, Pali Rohár wrote: > > > > For other TI wilink chips there are -ap.bin firmware files > > > > (wl1271-fw-ap.bin and wl128x-fw-ap.bin) which support AP mode. > > > > But for > > > > wl1251 firmware file with guessed name "wl1251-fw-ap.bin" is > > > > missing. > > >

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-04-06 Thread Yury Norov
Hi Geert, On Wed, Apr 06, 2016 at 08:51:50AM +0200, Geert Uytterhoeven wrote: > Hi Yuri, > > On Wed, Apr 6, 2016 at 12:08 AM, Yury Norov wrote: > > This version is rebased on kernel v4.6-rc2, and has fixes in signal > > subsystem. > > It works with updated glibc [1] (though very draft), and tes

Re: [PREEMPT-RT] [PATCH] MIPS: Remove no longer needed work_on_cpu() call

2016-04-06 Thread Ralf Baechle
On Tue, Apr 05, 2016 at 03:26:11PM +0200, Anna-Maria Gleixner wrote: > On Mon, 4 Apr 2016, Ralf Baechle wrote: > > > On Mon, Apr 04, 2016 at 02:18:03PM +0200, Anna-Maria Gleixner wrote: > > > > > Since commit 1cf4f629d9d2 ("cpu/hotplug: Move online calls to > > > hotplugged cpu") it is ensured t

RE: [PATCH] usb: dwc3: add debugfs node to dump FIFO/Queue available space

2016-04-06 Thread Felipe Balbi
Hi, (please make sure to break your lines at 80-characters. Documentation/email-clients.txt has several tips for different email clients ;-)) "Du, Changbin" writes: >> > @@ -648,6 +687,12 @@ int dwc3_debugfs_init(struct dwc3 *dwc) >> >goto err1; >> >} >> > >> > + file = debugfs

Re: [PATCH v10 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: This new delivery type which is for ARM shares the same value with HVM_PARAM_CALLBACK_TYPE_VECTOR which is for x86. val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 8 stands the interrupt mode is edge(1) or level(0) and bit 9 stands the

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

2016-04-06 Thread Felipe Balbi
Hi, Jun Li writes: >> -Original Message- >> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- >> ow...@vger.kernel.org] On Behalf Of Baolin Wang >> Sent: Wednesday, April 06, 2016 6:47 PM >> To: Peter Chen >> Cc: Felipe Balbi ; Greg KH ; >> Sebastian Reichel ; Dmitry Eremin-Solen

Re: [PATCH v10 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall

Re: [PATCH] s390/kexec: Consolidate crash_map/unmap_reserved_pages() and arch_kexec_protect(unprotect)_crashkres()

2016-04-06 Thread Xunlei Pang
On 2016/03/31 at 11:52, Xunlei Pang wrote: > Hi Bao, > > On 2016/03/31 at 10:52, Baoquan He wrote: >> On 03/31/16 at 10:43am, Minfei Huang wrote: >>> On 03/30/16 at 08:30pm, Baoquan He wrote: Hi Xunlei, I have two questions. One is do we still need Minfei's patch if this pa

[PATCH] arch:blackfin:adis162** cleanup

2016-04-06 Thread Valentin Rothberg
Remove dead #if blocks referencing previously removed Kconfig options. Signed-off-by: Valentin Rothberg --- arch/blackfin/mach-bf537/boards/stamp.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/board

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

2016-04-06 Thread Jun Li
Hi > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Baolin Wang > Sent: Wednesday, April 06, 2016 6:47 PM > To: Peter Chen > Cc: Felipe Balbi ; Greg KH ; > Sebastian Reichel ; Dmitry Eremin-Solenikov > ; David Woodhouse

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Julien Grall
Hi Shannon, Sorry to come late in the review process. On 01/04/2016 16:49, Shannon Zhao wrote: Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile

[PATCH 2/7] cpufreq: Loongson1: Update cpufreq of Loongson1B

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung - Rename the file to loongson1-cpufreq.c - Use kcalloc() instead of kzalloc() - Use devm_kzalloc() instead of global structure - Use dev_get_platdata() to access the platform_data field instead of referencing it directly - Remove superfluous error messages Signed-off-by: Ke

Re: AP firmware for TI wl1251 wifi chip (wl1251-fw-ap.bin)

2016-04-06 Thread Pali Rohár
On Wednesday 06 April 2016 13:30:22 Machani, Yaniv wrote: > On Mon, Apr 04, 2016 at 15:39:44, Pali Rohár wrote: > > > In linux-firmware repository [1] is missing AP firmware for TI > > > wl1251 chip. There is only STA firmware wl1251-fw.bin which > > > supports managed and ad-hoc modes. > > > > >

Re: [PATCH RFC] sched/fair: let cpu's cfs_rq to reflect task migration

2016-04-06 Thread Vincent Guittot
On 6 April 2016 at 10:37, Morten Rasmussen wrote: > On Tue, Apr 05, 2016 at 06:00:40PM +0100, Dietmar Eggemann wrote: >> @@ -2893,8 +2906,12 @@ static void attach_entity_load_avg(struct cfs_rq >> *cfs_rq, struct sched_entity *s >> se->avg.last_update_time = cfs_rq->avg.last_update_time; >

[PATCH 5/7] gpio: Loongson1: add Loongson1 GPIO driver

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung This patch adds GPIO driver for Loongson1B. Signed-off-by: Kelvin Cheung --- drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-loongson1.c | 102 ++ 3 files changed, 110 insertions(+) c

[PATCH 1/7] clk: Loongson1: Update clocks of Loongson1B

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung - Rename the file to clk-loongson1.c - Add AC97, DMA and NAND clock - Update clock names - Remove superfluous error messages Signed-off-by: Kelvin Cheung --- drivers/clk/Makefile| 2 +- drivers/clk/clk-loongson1.c | 163

[PATCH 6/7] MIPS: Loongson1B: Some updates/fixes for LS1B

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung - Add DMA device - Add NAND device - Add GPIO device - Add LED device - Update the defconfig and rename it to loongson1b_defconfig - Fix ioremap size - Other minor fixes Signed-off-by: Kelvin Cheung --- arch/mips/Kconfig | 2 + arch/mips/co

[PATCH 3/7] dmaengine: Loongson1: add Loongson1 dmaengine driver

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung This patch adds DMA Engine driver for Loongson1B. Signed-off-by: Kelvin Cheung --- drivers/dma/Kconfig | 9 + drivers/dma/Makefile| 1 + drivers/dma/loongson1-dma.c | 546 3 files changed, 556 insertions(+) c

[PATCH 0/7] MIPS: Loongson1B: add NAND, DMA and GPIO support

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung This patchset is to add NAND, DMA and GPIO support for Loongson1B, and moreover, include some updates/fixes. This applies on top of mips-for-linux-next. Thanks! Kelvin Cheung (7): clk: Loongson1: Update clocks of Loongson1B cpufreq: Loongson1: Update cpufreq of Loongson

Re: [BUG] lib: zram lz4 compression/decompression still broken on big endian

2016-04-06 Thread Sergey Senozhatsky
Cc Chanho Min, Kyungsik Lee Hello, On (04/06/16 10:39), Rui Salvaterra wrote: > > may we please ask you to test the patch first? quite possible there > > is nothing to fix there; I've no access to mips h/w but the patch > > seems correct to me. > > > > LZ4_READ_LITTLEENDIAN_16 does get_unaligned

[PATCH 7/7] MAINTAINERS: add Loongson1 architecture entry

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung This patch adds Loongson1 architecture entry. --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 03e00c7..f6032a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7271,6 +7271,15 @@ S: Supported F: Documentati

[PATCH 4/7] mtd: nand: add Loongson1 NAND driver

2016-04-06 Thread Keguang Zhang
From: Kelvin Cheung This patch adds NAND driver for Loongson1B. Signed-off-by: Kelvin Cheung --- drivers/mtd/nand/Kconfig | 8 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/loongson1_nand.c | 522 ++ 3 files changed, 531 insertions

Re: Bug with paravirt ops and livepatches

2016-04-06 Thread Miroslav Benes
On Wed, 6 Apr 2016, Chris J Arges wrote: > I think this approach needs more thought and my code has bug(s). And indeed there is... long (*__kvm_arch_vm_ioctl)(struct file *filp, unsigned long ioctl, unsigned long arg) = NULL; Use a different name than __kvm_arch_vm_ioctl and (ideally) make it

Re: [PATCH] perf/x86/intel/pt: Don't die on VMXON

2016-04-06 Thread Alexander Shishkin
Borislav Petkov writes: > On Wed, Apr 06, 2016 at 01:52:15PM +0200, Peter Zijlstra wrote: >> Borislav tells me this ought to be boot_cpu_has(X86_FEATURE_VMX) >> >> > + /* Intel SDM, 36.5 "Tracing post-VMXON" */ >> > + rdmsrl(MSR_IA32_VMX_MISC, reg); >> > + if (reg & BI

RE: [LINUX PATCH v2] gpio_keys: Added support to read the IRQ_FLAGS from devicetree

2016-04-06 Thread Nava kishore Manne
Hi Linus walleij, One of Our gpio-controller was supporting only edge rising interrupts. For that reason I implementing the below logic to read the interrupt trigger level from the DT. If it is wrong could you please provide the pointer to solve this issue? Regards, Navakishore. >

Re: [PATCH] [RFC] fix potential access after free: return value of blk_check_plugged() must be used schedule() safe

2016-04-06 Thread Lars Ellenberg
On Wed, Apr 06, 2016 at 01:10:57PM +1000, NeilBrown wrote: > On Wed, Apr 06 2016, Shaohua Li wrote: > > > On Tue, Apr 05, 2016 at 03:36:57PM +0200, Lars Ellenberg wrote: > >> blk_check_plugged() will return a pointer > >> to an object linked on current->plug->cb_list. > >> > >> That list may "at

Re: [PATCH] mmc: Remove some redundant debug prints

2016-04-06 Thread Jisheng Zhang
On Wed, 6 Apr 2016 19:38:30 +0800 Baolin Wang wrote: > This patch removes some redundant debug prints, since we have added some > tracepoints to help with performance analysis of MMC subsystem. I think the debug prints you removed are useful for debugging mmc err, how is this purpose achieved

Re: [rfc patch 2/2] rt/locking/hotplug: Fix rt_spin_lock_slowlock() migrate_disable() bug

2016-04-06 Thread Mike Galbraith
It'll take a hotplug beating seemingly as well as any non-rt kernel, but big box NAKed it due to jitter, which can mean 1.0 things.. duh. -Mike

[PATCH] sched/cpuacct: Check for NULL when using task_pt_regs()

2016-04-06 Thread Anton Blanchard
Hi Peter, > Ah, so sometihng like: > > struct pt_regs *regs = task_pt_regs(); > int index = CPUACCT_USAGE_SYSTEM; > > if (regs && user_mode(regs)) > index = CPUACCT_USAGE_USER; > > should work, right? Looks good, and the patch below does fix the oops for me. An

Re: [PATCH v2 07/14] USB: ch341: add support for parity, frame length, stop bits

2016-04-06 Thread One Thousand Gnomes
On Sat, 2 Apr 2016 19:07:16 +0200 Grigori Goronzy wrote: > With the new reinitialization method, configuring parity, different > frame lengths and different stop bit settings work as expected on > both CH340G and CH341A. This has been extensively tested with a > logic analyzer. > > Tested-by:

Re: [PATCH] ARM: dts: ls1021a: add SCFG MSI dts node

2016-04-06 Thread Alexander Stein
On Wednesday 06 April 2016 19:02:07, Minghuan Lian wrote: > Add SCFG MSI dts node and add msi-parent property to PCIe dts node > that points to the corresponding MSI node. > > Signed-off-by: Minghuan Lian > --- > arch/arm/boot/dts/ls1021a.dtsi | 16 > 1 file changed, 16 insertio

Re: [PATCH v2 01/14] USB: ch341: improve documentation

2016-04-06 Thread One Thousand Gnomes
On Sat, 2 Apr 2016 19:07:10 +0200 Grigori Goronzy wrote: > Signed-off-by: Grigori Goronzy > --- > drivers/usb/serial/ch341.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c > index c73808f..43e4594 100644 > ---

Re: [PATCH] mm: slub: replace kick_all_cpus_sync with synchronize_sched in kmem_cache_shrink

2016-04-06 Thread Michal Hocko
On Fri 01-04-16 15:30:17, Vladimir Davydov wrote: > When we call __kmem_cache_shrink on memory cgroup removal, we need to > synchronize kmem_cache->cpu_partial update with put_cpu_partial that > might be running on other cpus. Currently, we achieve that by using > kick_all_cpus_sync, which works as

Re: [PATCH 10/10] arch: fix has_transparent_hugepage()

2016-04-06 Thread Gerald Schaefer
On Tue, 5 Apr 2016 14:02:49 -0700 (PDT) Hugh Dickins wrote: > I've just discovered that the useful-sounding has_transparent_hugepage() > is actually an architecture-dependent minefield: on some arches it only > builds if CONFIG_TRANSPARENT_HUGEPAGE=y, on others it's also there when > not, but on

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

2016-04-06 Thread Jun Li
Hi > -Original Message- > From: Baolin Wang [mailto:baolin.w...@linaro.org] > Sent: Wednesday, April 06, 2016 7:31 PM > To: Jun Li > Cc: ba...@kernel.org; gre...@linuxfoundation.org; s...@kernel.org; > dbarysh...@gmail.com; dw...@infradead.org; peter.c...@freescale.com; > st...@rowland.ha

Re: [PATCH] perf/x86/intel/pt: Don't die on VMXON

2016-04-06 Thread Borislav Petkov
On Wed, Apr 06, 2016 at 01:52:15PM +0200, Peter Zijlstra wrote: > Borislav tells me this ought to be boot_cpu_has(X86_FEATURE_VMX) > > > + /* Intel SDM, 36.5 "Tracing post-VMXON" */ > > + rdmsrl(MSR_IA32_VMX_MISC, reg); > > + if (reg & BIT(14)) Also, I needz to consu

Re: [PATCH] perf/x86/intel/pt: Don't die on VMXON

2016-04-06 Thread Peter Zijlstra
On Wed, Apr 06, 2016 at 02:10:49PM +0300, Alexander Shishkin wrote: > >> + /* may be already stopped by a PMI*/ > >> + if (!(ctl & RTIT_CTL_TRACEEN)) > >> + return; > >> + > >> + ctl ^= RTIT_CTL_TRACEEN; > > > > Would that not be much less confusing when written like |= ? > > This one'

[RFC PATCH] PM / wakeirq: fix wakeirq setting after wakup re-configuration from sysfs

2016-04-06 Thread Grygorii Strashko
Now wakeirq stops working for device if wakeup option for this device will be reconfigured through sysfs, like: echo disabled > /sys/devices/platform/extcon_usb1/power/wakeup echo enabled > /sys/devices/platform/extcon_usb1/power/wakeup Once above set of commands is executed the device's wakeup_s

[PATCH v1] net: cdc_ncm: update datagram size after changing mtu

2016-04-06 Thread Robert Dobrowolski
From: Rafal Redzimski Current implementation updates the mtu size and notify cdc_ncm device using USB_CDC_SET_MAX_DATAGRAM_SIZE request about datagram size change instead of changing rx_urb_size. Whenever mtu is being changed, datagram size should also be updated. Cc: Signed-off-by: Rafal Redz

RE: [tip:sched/core] sched/cpuacct: Split usage accounting into user_usage and sys_usage

2016-04-06 Thread Zhao Lei
Hi, Anton and Peter > -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Wednesday, April 06, 2016 7:08 PM > To: Anton Blanchard > Cc: Ingo Molnar ; Srikar Dronamraju > ; t...@linutronix.de; efa...@gmx.de; > hte...@gmail.com; linux-kernel@vger.kernel.org; t...

Re: [PATCH v10 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao Reviewed-by: Julien Grall Regards, -- Julien Grall

Re: [PATCH v10 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -

Re: [PATCH v10 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien

Re: [PATCH v10 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards,

[PATCH] mmc: Remove some redundant debug prints

2016-04-06 Thread Baolin Wang
This patch removes some redundant debug prints, since we have added some tracepoints to help with performance analysis of MMC subsystem. Signed-off-by: Baolin Wang --- drivers/mmc/core/core.c | 52 --- 1 file changed, 52 deletions(-) diff --git a/dr

[PATCH] Fixes some checkpatch.pl warnings

2016-04-06 Thread Manav Batra
CHECK: Alignment should match open parenthesis WARNING: line over 80 characters Signed-off-by: Manav Batra --- drivers/staging/rts5208/ms.c | 66 ++-- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/drivers/staging/rts5208/ms.c b/drivers/st

RE: [PATCH] usb: dwc3: add debugfs node to dump FIFO/Queue available space

2016-04-06 Thread Du, Changbin
> > This can be used to check some special issues, like whether data is > > successfully copied from memory to fifo when a trb is blocked. > > > > Signed-off-by: Du, Changbin > > --- > > drivers/usb/dwc3/core.h| 5 + > > drivers/usb/dwc3/debugfs.c | 45 > +

[patch] ASoC: Intel: sst: fix a loop timeout in sst_hsw_stream_reset()

2016-04-06 Thread Dan Carpenter
In the original code we ended the loop with tries set to -1 instead of zero. Signed-off-by: Dan Carpenter --- Not tested. diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c index ac60f13..9156522 100644 --- a/sound/soc/intel/haswell/sst-haswell-ip

Re: [PATCH v3 06/10] sysctl: drop away useless label

2016-04-06 Thread Andy Shevchenko
On Tue, 2016-04-05 at 15:17 -0700, Andrew Morton wrote: > On Tue,  5 Apr 2016 16:56:15 +0300 Andy Shevchenko linux.intel.com> wrote: > > > > > We have no locking in bin_uuid(). Thus, we may remove the out label > > and use > > return statements directly. > > > Sure, but we may add locking or r

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:48, Shannon Zhao wrote: This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus notifier of

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

2016-04-06 Thread Baolin Wang
On 6 April 2016 at 16:26, Jun Li wrote: > Hi > >> + */ >> +static enum usb_charger_type >> +usb_charger_get_type_by_others(struct usb_charger *uchger) { >> + if (uchger->type != UNKNOWN_TYPE) >> + return uchger->type; >> + >> + if (uchger->psy) { >> + union power_su

RE: AP firmware for TI wl1251 wifi chip (wl1251-fw-ap.bin)

2016-04-06 Thread Machani, Yaniv
On Mon, Apr 04, 2016 at 15:39:44, Pali Rohár wrote: > > In linux-firmware repository [1] is missing AP firmware for TI > > wl1251 chip. There is only STA firmware wl1251-fw.bin which supports > > managed and ad-hoc modes. > > > > For other TI wilink chips there are -ap.bin firmware files > > (w

[PATCH 02/27] mm, vmstat: Add infrastructure for per-node vmstats

2016-04-06 Thread Mel Gorman
VM statistic counters for reclaim decisions are zone-based. If the kernel is to reclaim on a per-node basis then we need to track per-node statistics but there is no infrastructure for that. The most notable change is that the old node_page_state is renamed to sum_zone_node_page_state. The new nod

[PATCH 01/27] mm, page_alloc: Use ac->classzone_idx instead of zone_idx(preferred_zone)

2016-04-06 Thread Mel Gorman
ac->classzone_idx is determined by the index of the preferred zone and cached to avoid repeated calculations. wake_all_kswapds() should use it instead of using zone_idx() within a loop. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner Acked-by: Vlastimil Babka --- mm/page_alloc.c | 2 +- 1

[PATCH 0/5] arm64: Fix behavior of maxcpus=n

2016-04-06 Thread Suzuki K Poulose
This series is an attempt at fixing the maxcpus=n behavior on arm64. So far we have disabled hotplugging a CPU > n, when maxcpus=n is in effect, due to following reasons. 1) Possible cpu feature incompatibilities with the new CPU in heterogeneous systems. 2) New CPU requiring an errata work

PG_reserved and compound pages

2016-04-06 Thread Frank Mehnert
Hi, Linux 4.5 introduced additional checks to ensure that compound pages are never marked as reserved. In our code we use PG_reserved to ensure that the kernel does never swap out such pages, e.g. int i; struct page *pages = alloc_pages(GFP_HIGHUSER | __GFP_COMP, 4); for (i = 0; i < 16; i++

[PATCH 10/27] mm, vmscan: Clear congestion, dirty and need for compaction on a per-node basis

2016-04-06 Thread Mel Gorman
Congested and dirty tracking of a node and whether reclaim should stall is still based on zone activity. This patch considers whether the kernel should stall based on node-based reclaim activity. Signed-off-by: Mel Gorman --- mm/vmscan.c | 24 1 file changed, 12 insertio

[PATCH 24/27] mm, page_alloc: Remove fair zone allocation policy

2016-04-06 Thread Mel Gorman
The fair zone allocation policy interleaves allocation requests between zones to avoid an age inversion problem whereby new pages are reclaimed to balance a zone. Reclaim is now node-based so this should no longer be an issue and the fair zone allocation policy is not free. This patch removes it.

[PATCH 09/27] mm, vmscan: By default have direct reclaim only shrink once per node

2016-04-06 Thread Mel Gorman
Direct reclaim iterates over all zones in the zonelist and shrinking them but this is in conflict with node-based reclaim. In the default case, only shrink once per node. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner --- mm/vmscan.c | 23 +++ 1 file changed, 11 inserti

[PATCH 08/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps

2016-04-06 Thread Mel Gorman
kswapd goes through some complex steps trying to figure out if it should stay awake based on the classzone_idx and the requested order. It is unnecessarily complex and passes in an invalid classzone_idx to balance_pgdat(). What matters most of all is whether a larger order has been requsted and wh

Re: [PATCH 1/1] powerpc/mm: Add memory barrier in __hugepte_alloc()

2016-04-06 Thread Michal Hocko
On Wed 06-04-16 15:39:17, Aneesh Kumar K.V wrote: > Michal Hocko writes: > > > [ text/plain ] > > On Tue 05-04-16 12:05:47, Sukadev Bhattiprolu wrote: > > [...] > >> diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c > >> index d991b9e..081f679 100644 > >> --- a/arch/power

<    2   3   4   5   6   7   8   9   10   >