[PATCH v3 0/3] ARM: power: qcom_smbb: Add otg regulator

2015-12-09 Thread Tim Bird
Add a regulator to control the OTG chargepath switch. I'm re-sending this (v3) because my v2 submission yesterday failed to include the AUTHOR OF THE DRIVER(!!), Courtney Cavin. Changes since v2 - add the driver author to the To: list! Changes since v1 - switch supply name to have dashes inste

[PATCH v3 2/3] power: qcom_smbb: Add otg regulator for control of vbus

2015-12-09 Thread Tim Bird
Add a regulator to control the OTG chargepath switch. This is used by USB code to control VBUS direction - out for host mode on the OTG port, and in for charging mode. Signed-off-by: Tim Bird --- Changes since v1: - changed name of supply to remove underscores --- drivers/power/qcom_smbb.c | 7

[PATCH v3 1/3] dt-binding: power: Add otg regulator binding

2015-12-09 Thread Tim Bird
Add a binding for the regulator which controls the OTG chargepath switch. The OTG switch gets its power from pm8941_5vs1, and that should be expressed as a usb-otg-in-supply property in the DT node for the charger driver. The regulator name is "otg". Signed-off-by: Tim Bird --- Changes since v1

[PATCH v3 3/3] ARM: dts: qcom: add charger otg regulator

2015-12-09 Thread Tim Bird
Add the otg regulator provided by the charger block. Signed-off-by: Tim Bird --- arch/arm/boot/dts/qcom-pm8941.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index b0d4439..1b80100 100644 --- a/arch/arm/boot/d

Re: [PATCH v4] fs: clear file privilege bits when mmap writing

2015-12-09 Thread Jan Kara
On Tue 08-12-15 15:28:18, Kees Cook wrote: > Normally, when a user can modify a file that has setuid or setgid bits, > those bits are cleared when they are not the file owner or a member > of the group. This is enforced when using write and truncate but not > when writing to a shared mmap on the fi

[PATCH -mm] net: drop tcp_memcontrol.c

2015-12-09 Thread Vladimir Davydov
tcp_memcontrol.c only contains legacy memory.tcp.kmem.* file definitions and mem_cgroup->tcp_mem init/destroy stuff. This doesn't belong to network subsys. Let's move it to memcontrol.c. This also allows us to reuse generic code for handling legacy memcg files. Signed-off-by: Vladimir Davydov ---

Fwd: [PATCH] char:misc minor is overflowing

2015-12-09 Thread Nitin Gupta
Hi, Is there any modification / improvement needed in this patch ? --- Original Message --- Sender : Shivnandan Kumar Engineer/SRI-Noida-Advance Solutions - System 1 R&D Group/Samsung Electronics Date : Nov 20, 2015 15:35 (GMT+05:30) Title : [PATCH] char:misc minor is overflowing When a

Re: [PATCH 07/12] x86/entry/64: Always run ptregs-using syscalls on the slow path

2015-12-09 Thread Brian Gerst
On Wed, Dec 9, 2015 at 1:21 AM, Andy Lutomirski wrote: > On Tue, Dec 8, 2015 at 9:45 PM, Andy Lutomirski wrote: >> On Tue, Dec 8, 2015 at 8:43 PM, Brian Gerst wrote: >>> On Mon, Dec 7, 2015 at 4:51 PM, Andy Lutomirski wrote: 64-bit syscalls currently have an optimization in which they are

Re: [PATCH v2 1/3] dt-binding: power: Add otg regulator binding

2015-12-09 Thread Tim Bird
On 12/08/2015 08:11 PM, Rob Herring wrote: > On Tue, Dec 08, 2015 at 04:40:16PM -0800, Tim Bird wrote: >> Add a binding for the regulator which controls the OTG chargepath switch. >> The OTG switch gets its power from pm8941_5vs1, and that should be >> expressed as a usb-otg-in-supply property in t

isolate_lru_page on !head pages

2015-12-09 Thread Michal Hocko
Hi Kirill, while looking at the issue reported by Minchan [1] I have noticed that there is nothing to prevent from "isolating" a tail page from LRU because isolate_lru_page checks PageLRU which is PAGEFLAG(LRU, lru, PF_HEAD) so it is checked on the head page rather than the given page directly but

[PATCH] x86/entry/64: Remove duplicate syscall table for fast path

2015-12-09 Thread Brian Gerst
Instead of using a duplicate syscall table for the fast path, create stubs for the syscalls that need pt_regs that save the extra registers if a flag for the slow path is not set. Signed-off-by: Brian Gerst To: Andy Lutomirski Cc: Andy Lutomirski Cc: the arch/x86 maintainers Cc: Linux Kernel M

Re: [PATCH] net : To avoid execution of extra instructions in NET RX path when rps_map is not set but rps_needed is true.

2015-12-09 Thread Eric Dumazet
On Wed, 2015-12-09 at 16:05 +0530, Rahul Jain wrote: > From: Ashutosh Kaushik > > The patch fixes the issues with check of global flag "rps_needed" Hi Rahul I have no issue here. What is the issue exactly ? You provide no perf numbers, so it is hard to guess what 'problem' you intend to fix.

Re: [PATCH v4 0/8] cpufreq: add generic cpufreq driver support for Exynos542x/5800 platforms

2015-12-09 Thread Javier Martinez Canillas
Hello Bartlomiej, On 12/07/2015 03:18 PM, Bartlomiej Zolnierkiewicz wrote: > Hi, > > This patch series adds generic cpufreq-dt driver support for > Exynos542x/5800 (using the new CPU clock type which allows it). > > It has been tested on Exynos5422 based ODROID-XU3 Lite board. > I tested on an

Re: [PATCH-v8] serial: 8250_dw: Add support for big-endian MMIO accesses

2015-12-09 Thread Heikki Krogerus
Hi Noam, On Sun, Oct 18, 2015 at 12:01:48PM +0300, Noam Camus wrote: > diff --git a/drivers/tty/serial/8250/8250_dw.c > b/drivers/tty/serial/8250/8250_dw.c > index a0cdbf3..880f712 100644 > --- a/drivers/tty/serial/8250/8250_dw.c > +++ b/drivers/tty/serial/8250/8250_dw.c > @@ -63,6 +63,9 @@ struc

[PATCH v3 2/4] printk/nmi: Use IRQ work only when ready

2015-12-09 Thread Petr Mladek
NMIs could happen at any time. This patch makes sure that the safe printk() in NMI will schedule IRQ work only when the related structs are initialized. All pending messages are flushed when the IRQ work is being initialized. Signed-off-by: Petr Mladek --- kernel/printk/nmi.c | 13 -

[PATCH v3 4/4] printk/nmi: Increase the size of NMI buffer and make it configurable

2015-12-09 Thread Petr Mladek
Testing has shown that the backtrace sometimes does not fit into the 4kB temporary buffer that is used in NMI context. The warnings are gone when I double the temporary buffer size. This patch doubles the buffer size and makes it configurable. Note that this problem existed even in the x86-specif

[PATCH v3 0/4] Cleaning printk stuff in NMI context

2015-12-09 Thread Petr Mladek
This patch set generalizes the already existing solution for printing NMI messages. The main idea comes from Peter Zijlstra. Changes against v2: + fixed compilation problems reported by 0-day build robot + MN10300 and Xtensa architectures will get handled separately + dropped the patch th

[PATCH v3 3/4] printk/nmi: Warn when some message has been lost in NMI context

2015-12-09 Thread Petr Mladek
We could not resize the temporary buffer in NMI context. Let's warn if a message is lost. This is rather theoretical. printk() should not be used in NMI. The only sensible use is when we want to print backtrace from all CPUs. The current buffer should be enough for this purpose. Signed-off-by: Pe

Re: [PATCH-v8] serial: 8250_dw: Add support for big-endian MMIO accesses

2015-12-09 Thread Heikki Krogerus
On Wed, Dec 09, 2015 at 03:19:39PM +0200, Heikki Krogerus wrote: > Hi Noam, > > On Sun, Oct 18, 2015 at 12:01:48PM +0300, Noam Camus wrote: > > diff --git a/drivers/tty/serial/8250/8250_dw.c > > b/drivers/tty/serial/8250/8250_dw.c > > index a0cdbf3..880f712 100644 > > --- a/drivers/tty/serial/825

[PATCH v3 1/4] printk/nmi: Generic solution for safe printk in NMI

2015-12-09 Thread Petr Mladek
printk() takes some locks and could not be used a safe way in NMI context. The chance of a deadlock is real especially when printing stacks from all CPUs. This particular problem has been addressed on x86 by the commit a9edc8809328 ("x86/nmi: Perform a safe NMI stack trace on all CPUs"). This pat

Re: occasional kernel hang on shutdown - kernel/cgroup_pids.c

2015-12-09 Thread Michal Hocko
[CCing Tejun] Seems to be the same issue as reported here? http://lkml.kernel.org/r/20151208145851.GJ9837@bark On Tue 08-12-15 08:53:52, Norbert Preining wrote: > Dear all > > (please Cc) > > running 4.4-rc4 (written as rc3+ but only the tag commit is missing), > but I think also earlier in the

Re: [PATCH 3.19.y-ckt 084/164] thermal: exynos: Fix unbalanced regulator disable on probe failure

2015-12-09 Thread Krzysztof Kozlowski
W dniu 03.12.2015 o 01:58, Kamal Mostafa pisze: > 3.19.8-ckt11 -stable review patch. If anyone has any objections, please let > me know. > > -- > > From: Krzysztof Kozlowski > > commit 824ead03b78403a21449cb7eb153a4344cd3b4c8 upstream. > > During probe if the regulator could

Re: [PATCH 2/2] drm: use dev_name as default unique name in drm_dev_alloc()

2015-12-09 Thread Boris Brezillon
On Tue, 8 Dec 2015 23:12:12 +0100 Nicolas Iooss wrote: > The following code pattern exists in some DRM drivers: > > ddev = drm_dev_alloc(&driver, parent_dev); > drm_dev_set_unique(ddev, dev_name(parent_dev)); > > (Sometimes dev_name(ddev->dev) is used, which is the same.) > > As sugge

Re: [PATCH] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Prarit Bhargava
On 12/08/2015 07:12 PM, Seiichi Ikarashi wrote: > On 2015-12-09 03:33, Prarit Bhargava wrote: >> Intel RAPL initialized on several systems where the BIOS lock bit (msr >> 0x610, bit 63) was set. This occured because the return value of >> rapl_read_data_raw() was being checked, rather than the v

[PATCH v2 1/1] drm: modes: fix DRM modes analysis regression

2015-12-09 Thread LABBE Corentin
My latest commit introduce some case where a valid mode, could be rejected. simple_strtox functions stop at first non-digit character, but kstrtox not. So args like "video=HDMI-A-1:720x480-16@60" will be reject when checking 16@. The proper solution is to store digits in a specific buffer. Fixes:

[PATCH v2 0/1] drm: modes: fix DRM modes analysis regression

2015-12-09 Thread LABBE Corentin
Hello Changes since v1 - Fix a memory leak when returning after an error of kstrtox LABBE Corentin (1): drm: modes: fix DRM modes analysis regression drivers/gpu/drm/drm_modes.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) -- 2.4.10 -- To unsubscribe

Re: [PATCH 3.16.y-ckt 059/126] thermal: exynos: Fix unbalanced regulator disable on probe failure

2015-12-09 Thread Krzysztof Kozlowski
W dniu 09.12.2015 o 18:37, Luis Henriques pisze: > 3.16.7-ckt21 -stable review patch. If anyone has any objections, please let > me know. > > -- > > From: Krzysztof Kozlowski > > commit 824ead03b78403a21449cb7eb153a4344cd3b4c8 upstream. > > During probe if the regulator could

[PATCH v2] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Prarit Bhargava
Intel RAPL initialized on several systems where the BIOS lock bit (msr 0x610, bit 63) was set. This occured because the return value of rapl_read_data_raw() was being checked, rather than the value of the variable passed in, locked. This patch properly implments the rapl_read_data_raw() call to c

[PATCH] module: check vermagic match exactly when load modules

2015-12-09 Thread Xie XiuQi
Usually, checking kernel version will be ignore when loading modules if CONFIG_MODVERSIONS option is enable. This could potentially lead to a mismatch with the running kernel. With this option, we prevent to load the modules which vermagic is not match exactly with the running kernel. It could be

Re: [PATCH RESEND 2/3] drm/i915: check for return value

2015-12-09 Thread Daniel Vetter
t; -Daniel > > Hi Daniel, > It is still not there in linux-next. Still applies cleanly on > next-20151209. Sorry, this must have fallen through the cracks somehow. Applied now for real. Thanks, Daniel > > regards > sudip > > > > > > --- > > &

[PATCH] lightnvm: fix bio submission issue

2015-12-09 Thread Wenwei Tao
put bio when submission fails, since we get it before submission. And return error when backend device driver doesn't provide a submit_io method, thus we can end IO properly. Signed-off-by: Wenwei Tao --- drivers/lightnvm/gennvm.c | 2 +- drivers/lightnvm/rrpc.c | 4 +++- 2 files changed, 4 in

Re: [PATCH 1/2] clk: samsung: exynos5422: add missing parent GSCL block clocks

2015-12-09 Thread Krzysztof Kozlowski
W dniu 09.12.2015 o 19:14, Sylwester Nawrocki pisze: > Adding Stephen and linux-clk at Cc. > > On 09/12/15 05:49, Krzysztof Kozlowski wrote: >> On 08.12.2015 22:46, Marek Szyprowski wrote: This patch adds clocks, which are required for preserving parent clock configuration on GSCL power

Re: [PATCH] char:misc minor is overflowing

2015-12-09 Thread One Thousand Gnomes
On Wed, 09 Dec 2015 12:51:33 + (GMT) Nitin Gupta wrote: > Hi, > > Is there any modification / improvement needed in this patch ? > > --- Original Message --- > Sender : Shivnandan Kumar > Engineer/SRI-Noida-Advance Solutions - System 1 R&D Group/Samsung Electronics > Date : Nov 20,

Re: [PATCH v2 2/2] ARM: dts: exynos542x: add GSCL block parent clock management to pm domain

2015-12-09 Thread Krzysztof Kozlowski
W dniu 09.12.2015 o 17:07, Marek Szyprowski pisze: > Add support for restoring GScaler parent clocks configuration when GSCL > power domain is turned on. > > Signed-off-by: Marek Szyprowski > --- > arch/arm/boot/dts/exynos5420.dtsi | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) C

Re: [PATCH v2 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-09 Thread Ondrej Zary
On Tuesday 08 December 2015 03:05:11 Finn Thain wrote: > > On Sun, 6 Dec 2015, Ondrej Zary wrote: > > > Add I/O register mapping for NCR53C400A and enable PDMA mode to > > improve performance and fix non-working IRQ. > > > > Tested with HP C2502 (and user-space enabler). > > > > Signed-off-by:

Re: [PATCH perf/core 00/22] perf refcnt debugger API and fixes

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:10:48AM +0900, Masami Hiramatsu escreveu: > Hi Arnaldo, > > Here is a series of patches for perf refcnt debugger and > some fixes. > > In this series I've replaced all atomic reference counters > with the refcnt interface, including dso, map, map_groups, > thread, cpu_m

Re: [PATCH] perf/tui: Change default selection background color to yellow

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 10:55:16AM +0100, Borislav Petkov escreveu: > Hey acme, > > it seems you've forgotten this one. > > I still need it please :-) Applying it now, thanks for the reminder. - Arnaldo > On Thu, Mar 05, 2015 at 11:32:13AM +0100, Ingo Molnar wrote: > > > > Boris reported tha

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

2015-12-09 Thread Dan Carpenter
Everyone knows I didn't test it but it's an obvious one line fix for memory corruption. If no one uses the code, at least this is harmless and silences a static checker warning. In olden times we used to say, "Oh this bounds checking is crap but it's root only so let's leave it alone." But these

Re: [PATCH 0/7] perf stat: Change event enable code

2015-12-09 Thread Adrian Hunter
On 08/12/15 15:53, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 08, 2015 at 09:29:51AM +0200, Adrian Hunter escreveu: >> On 07/12/15 23:09, Arnaldo Carvalho de Melo wrote: >>> Em Thu, Dec 03, 2015 at 10:06:39AM +0100, Jiri Olsa escreveu: while testing ftrace:function event I noticed we create

Re: [PATCH] netfilter: Initialize local variables to NULL, to prevent using them when uninitialized.

2015-12-09 Thread Pablo Neira Ayuso
We already have this: http://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/commit/?id=8e662164abb4a8fde701a46e1431980f9e325742 We'll be sending this today to David to avoid this annoyance. Thanks for you patch anyway. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
On Tue 08-12-15 18:25:31, Sebastian Frias wrote: > Hi, > > We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. > > The driver maps kmalloc'ed memory to user space. This sounds like a terrible idea to me. Why don't you simply use the page allocator directly? Try to imagine wh

Re: [PATCH 01/20] drm: use __u{32,64} instead of uint{32,64}_t in virtgpu_drm.h

2015-12-09 Thread Gabriel Laskar
On Mon, 7 Dec 2015 13:29:41 + Emil Velikov wrote: > On 5 December 2015 at 21:03, Dave Airlie wrote: > > On 5 December 2015 at 00:22, Emil Velikov wrote: > > > >> On 30 November 2015 at 14:10, Gabriel Laskar wrote: > >> > >>> Signed-off-by: Gabriel Laskar > >>> CC: Emil Velikov > >>

Re: [PATCH 3.16.y-ckt 059/126] thermal: exynos: Fix unbalanced regulator disable on probe failure

2015-12-09 Thread Luis Henriques
On Wed, Dec 09, 2015 at 10:22:37PM +0900, Krzysztof Kozlowski wrote: > W dniu 09.12.2015 o 18:37, Luis Henriques pisze: > > 3.16.7-ckt21 -stable review patch. If anyone has any objections, please > > let me know. > > > > -- > > > > From: Krzysztof Kozlowski > > > > commit 824e

Re: [Questions] perf c2c: What's the current status of perf c2c?

2015-12-09 Thread Peter Zijlstra
On Wed, Dec 09, 2015 at 06:02:44AM -0500, Joe Mario wrote: > Yes, that would be a great enhancement, This is hardly new though; I've outlined the very same the first time the c2c thing got mentioned. > but is it any reason to hold up the current implementation? I just wonder how much of c2c is s

Re: [PATCH 2/3] irqchip/gic: support RealView variant setup

2015-12-09 Thread Marc Zyngier
Hi Linus, On 23/10/15 23:15, Linus Walleij wrote: > The ARM RealView PB11MPCore reference design has some special > bits in a system controller register to set up the GIC in one > of three modes: legacy, new with DCC, new without DCC. The > register is also used to enable FIQ. > > Since the platf

[no subject]

2015-12-09 Thread Fabrice Triboix
unsubscribe Company registration number: 08121803 Place of registration: England This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, pleas

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Marc Gonzalez
On 09/12/2015 14:55, Michal Hocko wrote: > On Tue 08-12-15 18:25:31, Sebastian Frias wrote: >> Hi, >> >> We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. >> >> The driver maps kmalloc'ed memory to user space. > > This sounds like a terrible idea to me. Why don't you simply

Re: [PATCH 3/3] irqchip/gic: assign irqchip dynamically

2015-12-09 Thread Marc Zyngier
On 23/10/15 23:15, Linus Walleij wrote: > Instead of having the irqchip being a static struct, make it part > of the per-instance data so we can assign it a dynamic name. This > has the usable side effect of displaying the GIC with an instance > number as GIC0, GIC1 ... GICn in /proc/interrupts, wh

Re: [PATCH perf/core 14/22] perf: Fix dso__load_sym to put dso

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:18AM +0900, Masami Hiramatsu escreveu: > +++ b/tools/perf/util/symbol-elf.c > @@ -1045,6 +1045,8 @@ int dso__load_sym(struct dso *dso, struct map *map, > /* kmaps already got it */ > map__put(curr_map); >

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

2015-12-09 Thread One Thousand Gnomes
On Wed, 9 Dec 2015 16:45:12 +0300 Dan Carpenter wrote: > Everyone knows I didn't test it but it's an obvious one line fix for > memory corruption. If no one uses the code, at least this is harmless > and silences a static checker warning. > > In olden times we used to say, "Oh this bounds check

use-after-free in inet6_destroy_sock

2015-12-09 Thread Dmitry Vyukov
Hello, The following program causes use-after-free in inet6_destroy_sock: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include #include #include int cfd = -1; void *thr(void *arg) { cfd = syscall(SYS_socket, PF_

Re: [v7] serial: 8250_dw: Add support for big-endian MMIO accesses

2015-12-09 Thread Andy Shevchenko
On Wed, Dec 9, 2015 at 12:57 AM, Noam Camus wrote: > From: Greg KH > Sent: Sunday, October 18, 2015 8:57 AM > >> Please make it against my tty-testing branch of tty.git on > git.kernel.org, that is the issue here, you are working against a > "clean" tree, not one with all of the other tty/serial

Re: [PATCH 0/2] ARM: dts: Use MMC pwrseq instead regulators for IGEP WiFi init

2015-12-09 Thread Agustí Fontquerni
> I guess will be interesting cc'ing the ISEE people. Added Agusti and Pau. > > Thanks, > Enric Thank you. Ack. We will try with new versions (wilink8) Agusti -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 2/2] keys, trusted: seal with a policy

2015-12-09 Thread Jarkko Sakkinen
On Tue, Dec 08, 2015 at 06:56:17PM -0500, Mimi Zohar wrote: > On Tue, 2015-12-08 at 22:24 +0200, Jarkko Sakkinen wrote: > > On Tue, Dec 08, 2015 at 01:01:02PM +0200, Jarkko Sakkinen wrote: > > > On Tue, Dec 08, 2015 at 09:35:05AM +1100, James Morris wrote: > > > > On Mon, 7 Dec 2015, Jarkko Sakkine

Re: [PATCH perf/core 15/22] perf: Fix map_groups__clone to put cloned map

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:20AM +0900, Masami Hiramatsu escreveu: > Fix map_groups__clone to put cloned map after > inserting it to the map_groups. Thanks, applied! - Arnaldo > Refcnt debugger shows: > > [0] > Unreclaimed map: 0x2a27ee0 > Refcount +1 => 1 at > ./pe

Re: [PATCH perf/core 16/22] perf: Fix __cmd_top and perf_session__process_events to put the idle thread

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:23AM +0900, Masami Hiramatsu escreveu: > Since perf_session__register_idle_thread() got the idle thread, > caller functions have to put it afterwards. > Note that since the thread was already inserted to the session > list, it will be released when the session is relea

Re: [PATCH] MIPS: Fix DMA contiguous allocation

2015-12-09 Thread Qais Yousef
On 12/09/2015 11:36 AM, Mel Gorman wrote: On Tue, Dec 08, 2015 at 02:19:39PM -0800, Andrew Morton wrote: On Tue, 8 Dec 2015 10:18:50 + Qais Yousef wrote: --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c @@ -145,7 +145,7 @@ static void *mips_dma_alloc_coherent(struct devic

Re: [PATCH 7/8] mm: memcontrol: account "kmem" consumers in cgroup2 memory controller

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 02:30:38PM +0300, Vladimir Davydov wrote: > On Tue, Dec 08, 2015 at 01:34:24PM -0500, Johannes Weiner wrote: > > The original cgroup memory controller has an extension to account slab > > memory (and other "kernel memory" consumers) in a separate "kmem" > > counter, once the

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
On Wed 09-12-15 15:07:50, Marc Gonzalez wrote: > On 09/12/2015 14:55, Michal Hocko wrote: > > On Tue 08-12-15 18:25:31, Sebastian Frias wrote: > >> Hi, > >> > >> We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. > >> > >> The driver maps kmalloc'ed memory to user space. > >

[PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Boris Ostrovsky
Adding the rtc platform device in a Xen PV guests causes an IRQ conflict because these guests do not have a legacy PIC. In a single VCPU Xen PV guest we should have: /proc/interrupts: CPU0 0: 4934 xen-percpu-virq timer0 1: 0 xen-percpu-ipi spinlock0 2:

Re: [PATCH perf/core 17/22] perf: Fix __machine__addnew_vdso to put dso after add to dsos

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:25AM +0900, Masami Hiramatsu escreveu: > Fix __machine__addnew_vdso to put dso after add to dsos because > the dso is already gotten by the dsos via __dsos__add(). > > This function is called finally from machine__findnew_vdso() > which locks machine->dsos.lock. And b

Re: [PATCH -mm] net: drop tcp_memcontrol.c

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 03:50:00PM +0300, Vladimir Davydov wrote: > tcp_memcontrol.c only contains legacy memory.tcp.kmem.* file definitions > and mem_cgroup->tcp_mem init/destroy stuff. This doesn't belong to > network subsys. Let's move it to memcontrol.c. This also allows us to > reuse generic c

Re: [PATCH v2] usb: Use memdup_user to reuse the code

2015-12-09 Thread gre...@linuxfoundation.org
On Wed, Dec 09, 2015 at 08:02:53AM +, Pathak, Rahul (R.) wrote: > Hello Alan, > > Should I resend this patch version with the tear line correction? Why wouldn't you? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

Re: [PATCH v2 1/3] dt-binding: power: Add otg regulator binding

2015-12-09 Thread Rob Herring
On Wed, Dec 9, 2015 at 6:55 AM, Tim Bird wrote: > On 12/08/2015 08:11 PM, Rob Herring wrote: >> On Tue, Dec 08, 2015 at 04:40:16PM -0800, Tim Bird wrote: >>> Add a binding for the regulator which controls the OTG chargepath switch. >>> The OTG switch gets its power from pm8941_5vs1, and that shoul

Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration

2015-12-09 Thread Johannes Weiner
On Tue, Dec 08, 2015 at 01:56:42PM -0800, David Rientjes wrote: > On Tue, 8 Dec 2015, Johannes Weiner wrote: > > > /home/hannes/src/linux/linux/mm/page_alloc.c: In function ‘build_zonelists’: > > /home/hannes/src/linux/linux/mm/page_alloc.c:4171:16: warning: comparison > > between ‘enum zone_type

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Jan Beulich
>>> On 09.12.15 at 15:32, wrote: > --- a/arch/x86/kernel/rtc.c > +++ b/arch/x86/kernel/rtc.c > @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) > } > #endif > > + if (paravirt_enabled()) > + return -ENODEV; What about Xen Dom0? Jan -- To unsubscribe from this li

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Eric Dumazet
On Wed, Dec 9, 2015 at 6:15 AM, Dmitry Vyukov wrote: > Hello, > > The following program causes use-after-free in inet6_destroy_sock: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > #include > #include > #include > #include

Re: [PATCH] cpufreq: tegra: add regulator dependency for T124

2015-12-09 Thread Mark Brown
On Wed, Dec 09, 2015 at 12:03:27PM +, Jon Hunter wrote: > On 08/12/15 21:52, Arnd Bergmann wrote: > > My first attempt was to implement a helper for this function > > for regulator_sync_voltage, but Mark Brown explained: > >We don't do this for *all* regulator API functions - there's some

Re: [PATCH v10 0/17] Add Analogix Core Display Port Driver

2015-12-09 Thread Heiko Stübner
Hi Yakir, Am Mittwoch, 9. Dezember 2015, 11:49:10 schrieb Yakir Yang: > Thanks a lot for great debugging. > > On 12/08/2015 11:33 PM, Heiko Stübner wrote: > > Hi Yakir, > > > > Am Montag, 7. Dezember 2015, 14:37:19 schrieb Yakir Yang: > >> The Samsung Exynos eDP controller and Rockchip RK328

[PATCH v2] MIPS: fix DMA contiguous allocation

2015-12-09 Thread Qais Yousef
Recent changes to how GFP_ATOMIC is defined seems to have broken the condition to use mips_alloc_from_contiguous() in mips_dma_alloc_coherent(). I couldn't bottom out the exact change but I think it's this one d0164adc89f6 (mm, page_alloc: distinguish between being unable to sleep, unwilling to s

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-12-09 Thread Radim Krčmář
2015-12-09 08:19+, Wu, Feng: >> -Original Message- >> From: Radim Krčmář [mailto:rkrc...@redhat.com] >> Sent: Tuesday, November 17, 2015 3:03 AM >> To: Wu, Feng >> Cc: pbonz...@redhat.com; k...@vger.kernel.org; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH] KVM: x86: Add lowest-p

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Sebastian Frias
On 12/09/2015 03:32 PM, Michal Hocko wrote: On Wed 09-12-15 15:07:50, Marc Gonzalez wrote: On 09/12/2015 14:55, Michal Hocko wrote: On Tue 08-12-15 18:25:31, Sebastian Frias wrote: Hi, We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. The driver maps kmalloc'ed memory

RE: [tip:perf/core] perf: Add pmu specific data for perf task context

2015-12-09 Thread Liang, Kan
> > On Wed, Feb 18, 2015 at 09:15:06AM -0800, tip-bot for Yan, Zheng wrote: > > +find_get_context(struct pmu *pmu, struct task_struct *task, > > + struct perf_event *event) > > { > > struct perf_event_context *ctx, *clone_ctx = NULL; > > struct perf_cpu_context *cpuctx; > > +

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Marcelo Ricardo Leitner
On Wed, Dec 09, 2015 at 06:43:28AM -0800, Eric Dumazet wrote: > On Wed, Dec 9, 2015 at 6:15 AM, Dmitry Vyukov wrote: > > Hello, > > > > The following program causes use-after-free in inet6_destroy_sock: > > > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > > #include > > #i

Re: [PATCH v2] MIPS: fix DMA contiguous allocation

2015-12-09 Thread Mel Gorman
On Wed, Dec 09, 2015 at 02:54:05PM +, Qais Yousef wrote: > Recent changes to how GFP_ATOMIC is defined seems to have broken the condition > to use mips_alloc_from_contiguous() in mips_dma_alloc_coherent(). > > I couldn't bottom out the exact change but I think it's this one > > d0164adc89f6 (

Re: [PATCH perf/core 18/22] perf stat: Fix cmd_stat to release cpu_map

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:27AM +0900, Masami Hiramatsu escreveu: > Fix cmd_stat() to release cpu_map objects (aggr_map and > cpus_aggr_map) afterwards. > > refcnt debugger shows that the cmd_stat initializes cpu_map > but not puts it. > > # ./perf stat -v ls > > REFCNT: BUG:

Re: [patch] blk-integrity: checking for NULL instead of IS_ERR

2015-12-09 Thread Jens Axboe
On 12/09/2015 03:21 AM, Dan Carpenter wrote: We recently changed bio_integrity_alloc() to return ERR_PTRs instead of NULL but these calls were missed. Fixes: 06c1e3902aa7 ('blk-integrity: empty implementation when disabled') Signed-off-by: Dan Carpenter Thanks, applied. -- Jens Axboe -- To

Re: [PATCH] regmap: speed up the regcache_init()

2015-12-09 Thread Mark Brown
On Wed, Dec 09, 2015 at 11:17:22AM +0800, Xiubo Li wrote: > Yes, usually when the register cache is not used, the number of the > defaults should be zero, but for some drivers like drv2267.c/led_lp8860.c > will add the defaults register values though the cache type is > REGCACHE_NONE for some reas

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Sander Eikelenboom
On 2015-12-09 15:42, Jan Beulich wrote: On 09.12.15 at 15:32, wrote: --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) } #endif + if (paravirt_enabled()) + return -ENODEV; What about Xen Dom0? Jan

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Eric Dumazet
On Wed, Dec 9, 2015 at 6:59 AM, Marcelo Ricardo Leitner wrote: > On Wed, Dec 09, 2015 at 06:43:28AM -0800, Eric Dumazet wrote: > >> I can certainly send a patch, but maybe someone already cooked it and >> is testing it ? > > Speaking for me, I don't have it yet, at least not that fast. ;) > > But

Re: [PATCH 1/4] arm64: dts: prepare foundation-v8.dts to cope with GICv3

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > To prepare the ARM foundation model to support GICv3, we adjust > the #address-cells property of the current GICv2 node to be > compatible with the two cells required for GICv3 later. > > Signed-off-by: Andre Przywara Acked-by: Marc Zyngier M.

Re: [PATCH 2/4] arm64: dts: Foundation model: increate GICC region to allow EOImode=1

2015-12-09 Thread Marc Zyngier
Hey Andre, On 13/10/15 10:37, Andre Przywara wrote: > Recent commits made the GIC driver use EOImode=1 for all GICs > that advertise the proper GICC region size. > To let the model benefit from the blessings of that mode, increase > the GICC region to its actual size of 8K. > > Signed-off-by: And

Re: [PATCH 3/4] arm64: dts: split Foundation model dts to put the GIC separately

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > The ARMv8 Foundation model can be run with a GICv2 or a GICv3. > To prepare for the GICv3 version of the .dts without code duplication, > move most of the nodes of the existing DT (except the GIC) into an > include file and just keep that include statement

Re: [PATCH 4/4] arm64: dts: add .dts for GICv3 Foundation model

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > The ARMv8 Foundation model sports a command line parameter to use > a GICv3 emulation instead of the default GICv2 interrupt controller. > Add a new .dts file which reuses most of the definitions of the > existing model while just adding the required prope

[PATCH] genksyms: Handle string literals with spaces in reference files

2015-12-09 Thread Michal Marek
The reference files use spaces to separate tokens, however, we must preserve spaces inside string literals. Currently the only case in the tree is struct edac_raw_error_desc in : $ KBUILD_SYMTYPES=1 make -s drivers/edac/amd64_edac.symtypes $ mv drivers/edac/amd64_edac.{symtypes,symref} $ KBUILD_SY

Applied "regmap: fix the warning about unused variable" to the regmap tree

2015-12-09 Thread Mark Brown
The patch regmap: fix the warning about unused variable has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups

2015-12-09 Thread Linus Walleij
Hi Dmitry, Sorry for me being so damned slow. On Fri, Nov 27, 2015 at 6:37 PM, Dmitry Torokhov wrote: > On Tue, Nov 17, 2015 at 02:43:14PM +0100, Linus Walleij wrote: >> On Wed, Nov 11, 2015 at 8:45 PM, Dmitry Torokhov >> wrote: >> >> > We should not fall back to the legacy unnamed gpio lookup

Re: [PATCH perf/core 19/22] perf: fix hists_evsel to release hists

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:29AM +0900, Masami Hiramatsu escreveu: > Since hists__init doesn't set the destructor of > hists_evsel (which is an extended evsel structure), > when hists_evsel is released, the extended part of > the hists_evsel is not deleted (note that the > hists_evsel object itse

Re: [PATCH v2] printk: help pr_debug and pr_devel to optimize out arguments

2015-12-09 Thread Aaron Conole
Arnd Bergmann writes: > On Friday 04 December 2015 16:51:42 Aaron Conole wrote: >> --- a/include/linux/printk.h >> +++ b/include/linux/printk.h >> @@ -106,13 +106,14 @@ struct va_format { >> >> /* >> * Dummy printk for disabled debugging statements to use whilst maintaining >> - * gcc's forma

Re: [tip:perf/core] perf: Add pmu specific data for perf task context

2015-12-09 Thread Peter Zijlstra
On Wed, Dec 09, 2015 at 02:59:21PM +, Liang, Kan wrote: > > diff --git a/kernel/events/core.c b/kernel/events/core.c index > > 36babfd..97aa610 100644 > > --- a/kernel/events/core.c > > +++ b/kernel/events/core.c > > @@ -3508,11 +3515,6 @@ retry: > > if (!ctx) > >

Re: [PATCH perf/core 20/22] perf: Fix maps__fixup_overlappings to put used maps

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:31AM +0900, Masami Hiramatsu escreveu: > Since the __map_groups__insert got the given map, we don't > need to keep it. So put the maps. > > Refcnt debugger shows that the map_groups__fixup_overlappings > got a map twice but the group released it once. This pattern > u

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-09 Thread Linus Walleij
On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: > The PL061 supports interrupts and those can be wakeup interrupts. We > need to provide support for configuring those interrupts as wakeup > sources. > > This patch adds irq_set_wake callback for PL061 so that GPIO interrupts > can be configur

Re: [PATCH v2] pinctrl: mvebu: complain about missing group after checking variant

2015-12-09 Thread Linus Walleij
On Sat, Nov 28, 2015 at 11:26 AM, Sebastian Hesselbarth wrote: > Common MVEBU pinctrl driver core gets an array of controls to modify > a specific set of registers and an array of modes for each pingroup > from each of the different SoC families of MVEBU. > > Some SoC families comprise different

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Boris Ostrovsky
On 12/09/2015 10:00 AM, Sander Eikelenboom wrote: On 2015-12-09 15:42, Jan Beulich wrote: On 09.12.15 at 15:32, wrote: --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) } #endif +if (paravirt_enabled()) +return -

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-09 Thread Sudeep Holla
On 09/12/15 15:08, Linus Walleij wrote: On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: The PL061 supports interrupts and those can be wakeup interrupts. We need to provide support for configuring those interrupts as wakeup sources. This patch adds irq_set_wake callback for PL061 so th

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
On Wed 09-12-15 15:53:22, Sebastian Frias wrote: [...] > 2) Now that VM_RESERVED was removed, is there another recommended flag to > replace it for the purposes above? VM_IO + potentially others depending on your usecase. > 3) Since it was working before, we suppose that something that was > prev

Re: [PATCH] powerpc/nvram: Fix a memory leak in err path

2015-12-09 Thread Nathan Fontenot
On 12/09/2015 04:00 AM, xinhui wrote: > > If kmemdup fails, We need kfree *buff* first then return -ENOMEM. > Otherwise there is a memory leak. > > Signed-off-by: Pan Xinhui Reviewed-by: Nathan Fontenot > --- > arch/powerpc/kernel/nvram_64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH perf/core 21/22] perf: Fix machine.vmlinux_maps to make sure to clear the old one

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:33AM +0900, Masami Hiramatsu escreveu: > Fix machine.vmlinux_maps to make sure to clear the old one > if it is renewal. This can leak the previous maps on the > vmlinux_maps because those are just overwritten. > > Signed-off-by: Masami Hiramatsu > --- > tools/perf/u

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Vitaly Kuznetsov
Sander Eikelenboom writes: > On 2015-12-09 15:42, Jan Beulich wrote: > On 09.12.15 at 15:32, wrote: >>> --- a/arch/x86/kernel/rtc.c >>> +++ b/arch/x86/kernel/rtc.c >>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) >>> } >>> #endif >>> >>> + if (paravirt_enabled()) >>> +

[PATCH] of/irq: move of_msi_map_rid declaration to the correct ifdef section

2015-12-09 Thread Rob Herring
In checking fixes for of_irq_find_parent declaration location, I found that of_msi_map_rid is also wrong. of_msi_map_rid is not implemented for Sparc, so it should not be in the Sparc specific section of the header. Move it to just depend on OF_IRQ. Cc: Frank Rowand Signed-off-by: Rob Herring --

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