Re: [PATCH] stm: select CONFIG_SRCU

2015-11-16 Thread Russell King - ARM Linux
On Mon, Nov 16, 2015 at 10:14:35PM +0100, Arnd Bergmann wrote: > The newly added STM code uses SRCU, but does not ensure that > this code is part of the kernel: > > drivers/built-in.o: In function `stm_source_link_show': > include/linux/srcu.h:221: undefined reference to `__srcu_read_lock' > inclu

Re: [PATCH] usb: dwc2: hcd: fix periodic transfer schedule sequence

2015-11-16 Thread Caesar Wang
Hi, 在 2015年11月16日 23:25, Yunzhi Li 写道: When checking dwc2 host channel interrupts, handle qh in periodic_sched_queued list at first, then we could make sure CSPLIT packets scheduled in the same order as SSPLIT packets. Signed-off-by: Yunzhi Li This patch can fix some usb issues on my hand ma

[PATCH] dl2k: Implement suspend

2015-11-16 Thread Ondrej Zary
Add suspend/resume support to dl2k driver. Tested on Asus NX1101 (IP1000A) and D-Link DGE-550T (DL-2000). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 189 + 1 file changed, 128 insertions(+), 61 deletions(-) diff --git a/drivers/net/et

Re: [PATCH v2 07/11] mm: add find_get_entries_tag()

2015-11-16 Thread Dave Chinner
On Fri, Nov 13, 2015 at 05:06:46PM -0700, Ross Zwisler wrote: > Add find_get_entries_tag() to the family of functions that include > find_get_entries(), find_get_pages() and find_get_pages_tag(). This is > needed for DAX dirty page handling because we need a list of both page > offsets and radix t

[BUG] checkpatch: false positive for commits with quote characters

2015-11-16 Thread Brian Norris
Hi, What is the Blessed (TM) style for referencing commits that have quote characters in their subject line? e.g., this commit: commit 43163022927b6e7d202a7e6f939c3f392465494d Author: Brian Norris Date: Tue May 19 14:38:22 2015 -0700 mtd: m25p80: allow arbitrary OF matching for "jedec,spi

[PATCHv3] Input: xpad - Fix double URB submission races

2015-11-16 Thread Laura Abbott
The xpad driver has several races with respect to URB submission which make it easy to end up with submission while active: [ cut here ] WARNING: CPU: 3 PID: 3563 at drivers/usb/core/urb.c:339 usb_submit_urb+0x2ad/0x5a0() URB 8804078ac240 submitted while active CPU: 3 P

Re: [PATCH v3 5/5] x86/entry/64: Bypass enter_from_user_mode on non-context-tracking boots

2015-11-16 Thread Frederic Weisbecker
On Mon, Nov 16, 2015 at 11:10:55AM -0800, Andy Lutomirski wrote: > On Nov 13, 2015 7:26 AM, "Frederic Weisbecker" wrote: > > > > On Thu, Nov 12, 2015 at 12:59:04PM -0800, Andy Lutomirski wrote: > > > On CONFIG_CONTEXT_TRACKING kernels that have context tracking > > > disabled at runtime (which inc

Re: [PATCHv2] arm64: Fix R/O permissions in mark_rodata_ro

2015-11-16 Thread Laura Abbott
On 11/14/2015 11:38 PM, Ard Biesheuvel wrote: On 12 November 2015 at 21:21, Laura Abbott wrote: The permissions in mark_rodata_ro trigger a build error with STRICT_MM_TYPECHECKS. Fix this by introducing PAGE_KERNEL_ROX for the same reasons as PAGE_KERNEL_RO. Forgive the bikeshedding but perha

Re: [Patch v4 2/2] media: v4l: ti-vpe: Document CAL driver

2015-11-16 Thread Benoit Parrot
Rob Herring wrote on Mon [2015-Nov-16 09:26:16 -0600]: > On Sun, Nov 15, 2015 at 05:53:48PM -0600, Benoit Parrot wrote: > > Device Tree bindings for the Camera Adaptation Layer (CAL) driver > > Bindings are for h/w blocks, not drivers... OK I'll fix that. > > > > > Signed-off-by: Benoit Parro

[PATCH V4 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-16 Thread Yang Shi
Save and restore FP/LR in BPF prog prologue and epilogue, save SP to FP in prologue in order to get the correct stack backtrace. However, ARM64 JIT used FP (x29) as eBPF fp register, FP is subjected to change during function call so it may cause the BPF prog stack base address change too. Use x25

RE: [PATCH v4] block: create ioctl to discard-or-zeroout a range of blocks

2015-11-16 Thread Seymour, Shane M
> v4: Check the start/len arguments for overflows prior to feeding the page > cache bogus numbers (that it'll ignore anyway). > Signed-off-by: Darrick J. Wong Reviewed-by: Shane Seymour -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

[PATCH v3 2/5] clk: qcom: Add IPQ4019 Global Clock Controller support

2015-11-16 Thread Matthew McClintock
From: Varadarajan Narayanan This patch adds support for the global clock controller found on the IPQ4019 based devices. This includes UART, I2C, SPI etc. Signed-off-by: Pradeep Banavathi Signed-off-by: Senthilkumar N L Signed-off-by: Varadarajan Narayanan Signed-off-by: Matthew McClintock --

Re: [PATCH v2 08/11] dax: add support for fsync/sync

2015-11-16 Thread Dave Chinner
On Fri, Nov 13, 2015 at 05:06:47PM -0700, Ross Zwisler wrote: > To properly handle fsync/msync in an efficient way DAX needs to track dirty > pages so it is able to flush them durably to media on demand. > > The tracking of dirty pages is done via the radix tree in struct > address_space. This ra

Re: [RFC] User space to kernel space copy optimization

2015-11-16 Thread Jiang, Dave
On Mon, 2015-11-16 at 21:53 +, Sinan Kaya wrote: > One of the things I'm interested in is to use a memcpy capable DMA > engine HW to optimize user space and kernel space parameter copying. Have you looked at why NET_DMA was deprecated and using DMA engine to do kernel->user copy could be a p

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Jacob Pan
On Mon, 16 Nov 2015 14:31:17 -0800 "Paul E. McKenney" wrote: > Just out of curiosity, what is the purpose of the forced idle state? > Thermal control or some such? yes. for thermal control or power capping. I have some description in cover letter. https://lwn.net/Articles/664405/ Thanks, Jacob -

Re: [PATCHSET 0/9] perf report: Support folded callchain output (v5)

2015-11-16 Thread Namhyung Kim
Hi Brendan and Arnaldo, On Thu, Nov 12, 2015 at 09:50:21AM -0800, Brendan Gregg wrote: > On Sun, Nov 8, 2015 at 9:45 PM, Namhyung Kim wrote: > > Hello, > > > > This is what Brendan requested on the perf-users mailing list [1] to > > support FlameGraphs [2] more efficiently. This patchset adds a

Re: [PATCH v2 11/11] xfs: add support for DAX fsync/msync

2015-11-16 Thread Dave Chinner
On Fri, Nov 13, 2015 at 05:06:50PM -0700, Ross Zwisler wrote: > To properly support the new DAX fsync/msync infrastructure filesystems > need to call dax_pfn_mkwrite() so that DAX can properly track when a user > write faults on a previously cleaned address. They also need to call > dax_fsync() in

Re: [PATCH v5 05/10] xen/blkfront: negotiate number of queues/rings to be used with backend

2015-11-16 Thread Bob Liu
On 11/17/2015 05:27 AM, Konrad Rzeszutek Wilk wrote: >> /* Common code used when first setting up, and when resuming. */ >> static int talk_to_blkback(struct xenbus_device *dev, >> @@ -1527,10 +1582,9 @@ static int talk_to_blkback(struct xenbus_device *dev, >> { >> const char *message = NU

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Doug Anderson
Alan, On Mon, Nov 16, 2015 at 12:31 PM, Alan Stern wrote: > On Mon, 16 Nov 2015, Doug Anderson wrote: > >> Alan, >> >> On Mon, Nov 16, 2015 at 11:31 AM, Alan Stern >> wrote: >> > On Mon, 16 Nov 2015, Doug Anderson wrote: >> > >> >> --- >> >> >> >> usb: dwc2: host: Fix missing device insertions

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Jacob Pan
On Mon, 16 Nov 2015 14:31:17 -0800 "Paul E. McKenney" wrote: > > Either one works but my concern is that users may not realize the > > intricate CONFIG_ options and how they translate into energy > > savings. Consulted with Josh, it seems we could add a check here to > > recognize the forced idle

Re: [PATCH 3/3] doc: dt: mtd: stop referring to driver code for spi-nor IDs

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 02:34:52PM -0800, Brian Norris wrote: > Pull the supported chip names from drivers/mtd/devices/m25p80.c and stop > pointing readers to Linux code. > > Also (although I see this habit repeated throughout the > Documentation/devicetree/bindings/ tree), stop using the title "d

Re: [PATCH v2 2/5] devicetree: Add bindings for the ATH79 USB phy

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 10:22:01PM +0100, Alban Bedel wrote: > Signed-off-by: Alban Bedel Acked-by: Rob Herring > --- > .../devicetree/bindings/phy/phy-ath79-usb.txt | 18 > ++ > 1 file changed, 18 insertions(+) > create mode 100644 Documentation/devicetree/bindings/

Re: [RFC] User space to kernel space copy optimization

2015-11-16 Thread Sinan Kaya
On 11/16/2015 5:57 PM, Jiang, Dave wrote: >> One of the things I'm interested in is to use a memcpy capable DMA >> > engine HW to optimize user space and kernel space parameter copying. > Have you looked at why NET_DMA was deprecated and using DMA engine to > do kernel->user copy could be a problem

Re: [PATCH v2 1/5] pinctrl: qcom: ipq4019: Add IPQ4019 pinctrl support

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 03:02:01PM -0600, Matthew McClintock wrote: > From: Varadarajan Narayanan > > Add pinctrl driver support for IPQ4019 platform > > Signed-off-by: Sricharan R > Signed-off-by: Mathieu Olivari > Signed-off-by: Varadarajan Narayanan > Signed-off-by: Matthew McClintock > -

Re: [PATCH v4 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 07:30:23PM +, Punit Agrawal wrote: > The dynamic power consumption of a device is proportional to the > square of voltage (V) and the clock frequency (f). It can be expressed as > > Pdyn = dynamic-power-coefficient * V^2 * f. > > The coefficient represents the running

[PATCH 1/2] x86: Add a __copy_from_user_nmi

2015-11-16 Thread Andi Kleen
From: Andi Kleen Add a inlined __ variant of copy_from_user_nmi. The inlined variant allows the user to: - batch the access_ok check for multiple accesses - avoid having a pagefault_disable/enable on every access if the caller already ensures disabled page faults due to its context. - get all th

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Paul E. McKenney
On Mon, Nov 16, 2015 at 02:32:11PM -0800, Josh Triplett wrote: > On Mon, Nov 16, 2015 at 01:51:26PM -0800, Jacob Pan wrote: > > On Mon, 16 Nov 2015 16:06:57 +0100 (CET) > > Thomas Gleixner wrote: > > > > > > -0 [000]30.093474: bprint: > > > > __tick_nohz_idle_enter: JPAN: tick_n

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Paul E. McKenney
On Mon, Nov 16, 2015 at 03:15:03PM -0800, Jacob Pan wrote: > On Mon, 16 Nov 2015 14:31:17 -0800 > "Paul E. McKenney" wrote: > > > > Either one works but my concern is that users may not realize the > > > intricate CONFIG_ options and how they translate into energy > > > savings. Consulted with Jo

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Ross Zwisler
On Tue, Nov 17, 2015 at 09:14:12AM +1100, Dave Chinner wrote: > On Mon, Nov 16, 2015 at 03:05:26PM +0100, Jan Kara wrote: > > On Mon 16-11-15 14:37:14, Jan Kara wrote: > > > On Fri 13-11-15 18:32:40, Dan Williams wrote: > > > > On Fri, Nov 13, 2015 at 4:43 PM, Andreas Dilger > > > > wrote: > > >

Re: [PATCH] Doc: f2fs: Fix typos in Documentation/filesystems/f2fs.txt

2015-11-16 Thread Jaegeuk Kim
On Mon, Nov 16, 2015 at 08:35:16AM -0800, Randy Dunlap wrote: > On 11/16/15 03:46, Masanari Iida wrote: > > This patch fix some typos in Documentation/filesystems/f2fs.txt > > > > Signed-off-by: Masanari Iida > > --- > > Documentation/filesystems/f2fs.txt | 8 > > 1 file changed, 4 inse

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Arjan van de Ven
On 11/16/2015 3:28 PM, Paul E. McKenney wrote: Is this mostly an special-purpose embedded thing, or do you expect distros to be enabling this? If the former, I suggest CONFIG_RCU_NOCB_CPU_ALL, but if distros are doing this for general-purpose workloads, I instead suggest CONFIG_RCU_FAST_NO_HZ.

[PATCH 2/2] x86, perf: Optimize stack walk user accesses

2015-11-16 Thread Andi Kleen
From: Andi Kleen Change the perf user stack walking to use the new __copy_from_user_nmi, and split each access into word sized transfer sizes. This allows to inline the complete access and optimize it all into a single load. The main advantage is that this avoids the overhead of double page faul

Re: [PATCH RESEND 3/4] ARM: BCM: Add SMP support for Broadcom NSP

2015-11-16 Thread kbuild test robot
Hi Kapil, [auto build test ERROR on: arm-soc/for-next] [also build test ERROR on: v4.4-rc1 next-20151116] url: https://github.com/0day-ci/linux/commits/Kapil-Hali/dt-bindings-add-SMP-enable-method-for-Broadcom-NSP/20151105-135452 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Jacob Pan
On Mon, 16 Nov 2015 15:32:38 -0800 Arjan van de Ven wrote: > On 11/16/2015 3:28 PM, Paul E. McKenney wrote: > > > Is this mostly an special-purpose embedded thing, or do you expect > > distros to be enabling this? If the former, I suggest > > , but if distros are doing this for > > general-purp

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Dave Chinner
On Mon, Nov 16, 2015 at 04:29:27PM -0700, Ross Zwisler wrote: > On Tue, Nov 17, 2015 at 09:14:12AM +1100, Dave Chinner wrote: > > On Mon, Nov 16, 2015 at 03:05:26PM +0100, Jan Kara wrote: > > > On Mon 16-11-15 14:37:14, Jan Kara wrote: > > > > On Fri 13-11-15 18:32:40, Dan Williams wrote: > > > > >

Re: [PATCH] ftrace/x86: Fix missing ops arg on static function tracing

2015-11-16 Thread Namhyung Kim
Hi Steve, On Mon, Nov 16, 2015 at 10:54:53AM -0500, Steven Rostedt wrote: > On Sat, 14 Nov 2015 18:32:28 +0900 > Namhyung Kim wrote: > > > The commit f1ab00af816e ("ftrace/x86: Get rid of ftrace_caller_setup") > > moved code that loads ftrace_ops into 3rd parameter but it missed to do > > for st

Re: [PATCH 4/4] m68knommu: Add missing initialization of max_pfn and {min,max}_low_pfn

2015-11-16 Thread Greg Ungerer
Hi Geert, On 16/11/15 23:05, Geert Uytterhoeven wrote: > On Mon, Nov 16, 2015 at 1:18 PM, Greg Ungerer wrote: >>> --- a/arch/m68k/kernel/setup_no.c >>> +++ b/arch/m68k/kernel/setup_no.c >>> @@ -238,11 +238,14 @@ void __init setup_arch(char **cmdline_p) >>> * Give all the memory to the bo

Re: [PATCH 4/4] m68knommu: Add missing initialization of max_pfn and {min,max}_low_pfn

2015-11-16 Thread Greg Ungerer
Hi Geert, On 15/11/15 21:04, Geert Uytterhoeven wrote: > If max_pfn is not initialized, the block layer may use wrong DMA masks. > > Replace open-coded shifts by PFN_DOWN() while we're at it. > > Signed-off-by: Geert Uytterhoeven Tested and working fine on m68knommu. So: Tested-By: Greg Unger

Re: [PATCH] dl2k: Implement suspend

2015-11-16 Thread Francois Romieu
Ondrej Zary : [...] > diff --git a/drivers/net/ethernet/dlink/dl2k.c > b/drivers/net/ethernet/dlink/dl2k.c > index ccca479..23d13c5 100644 > --- a/drivers/net/ethernet/dlink/dl2k.c > +++ b/drivers/net/ethernet/dlink/dl2k.c [..] > @@ -522,6 +515,28 @@ rio_open (struct net_device *dev) > macc

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Ross Zwisler
On Mon, Nov 16, 2015 at 12:34:55PM -0800, Dan Williams wrote: > On Mon, Nov 16, 2015 at 11:48 AM, Ross Zwisler > wrote: > > On Mon, Nov 16, 2015 at 09:28:59AM -0800, Dan Williams wrote: > >> On Mon, Nov 16, 2015 at 6:05 AM, Jan Kara wrote: > >> > On Mon 16-11-15 14:37:14, Jan Kara wrote: > [..] >

Re: [PATCH v3 5/5] x86/entry/64: Bypass enter_from_user_mode on non-context-tracking boots

2015-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2015 at 2:50 PM, Frederic Weisbecker wrote: > On Mon, Nov 16, 2015 at 11:10:55AM -0800, Andy Lutomirski wrote: >> On Nov 13, 2015 7:26 AM, "Frederic Weisbecker" wrote: >> > >> > On Thu, Nov 12, 2015 at 12:59:04PM -0800, Andy Lutomirski wrote: >> > > On CONFIG_CONTEXT_TRACKING kern

Re: irq_fpu_usable() is false in ndo_start_xmit() for UDP packets

2015-11-16 Thread Jason A. Donenfeld
Hi Hannes, Thanks for your response. On Mon, Nov 16, 2015 at 11:27 PM, Hannes Frederic Sowa wrote: > Use the irqsoff tracer to find the problematic functions which disable > interrupts and try to work around it in case of UDP. This could benefit > the whole stack. I didn't know about the irqsof

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Paul E. McKenney
On Mon, Nov 16, 2015 at 03:40:46PM -0800, Jacob Pan wrote: > On Mon, 16 Nov 2015 15:32:38 -0800 > Arjan van de Ven wrote: > > > On 11/16/2015 3:28 PM, Paul E. McKenney wrote: > > > > > Is this mostly an special-purpose embedded thing, or do you expect > > > distros to be enabling this? If the f

Re: [PATCH v4 2/2] video: fbdev: pxafb: initial devicetree conversion

2015-11-16 Thread kbuild test robot
Hi Robert, [auto build test ERROR on v4.4-rc1] [also build test ERROR on next-20151116] url: https://github.com/0day-ci/linux/commits/Robert-Jarzmik/video-fbdev-pxafb-loosen-the-platform-data-bond/20151117-053946 config: arm-spitz_defconfig (attached as .config) reproduce: wget

Re: irq_fpu_usable() is false in ndo_start_xmit() for UDP packets

2015-11-16 Thread Jason A. Donenfeld
On Tue, Nov 17, 2015 at 12:57 AM, Jason A. Donenfeld wrote: > 2. irq_fpu_usable() is FALSE for UDP! Since in_interrupt() is always > true in ndo_start_xmit, this means that in this case, both > interrupted_user_mode() and interrupted_kernel_fpu_idle() are false! > Investigating further, will repor

[PATCH] lib/kobject: fix memory leak in error path of kset_create_and_add()

2015-11-16 Thread Nicolai Stange
In kset_create_and_add(), the name duped into the kset's kobject by kset_create() gets leaked if the call to kset_register() fails. Indeed, triggering failure by invoking kset_create_and_add() with a duplicate name makes kmemleak reporting unreferenced object 0x8800b4a1f428 (size 16): c

Re: [PATCH] leds: ktd2692: Add missing of_node_put

2015-11-16 Thread Ingi Kim
Hi Rob, Jacek You're right, It is better to remove "return 0" Thanks for the review. On 2015년 11월 16일 23:30, Jacek Anaszewski wrote: > On 11/16/2015 03:09 PM, Rob Herring wrote: >> On Mon, Nov 16, 2015 at 4:00 AM, Jacek Anaszewski >> wrote: >>> Hi Ingi, Rob, >>> >>> With this patch we will be l

Re: [PATCH 1/2] irqchip: Add brcm,bcm6345-l1-intc device tree binding

2015-11-16 Thread Rob Herring
On Mon, Nov 16, 2015 at 07:12:36PM +, Simon Arlott wrote: > Add device tree binding for the BCM6345 interrupt controller. > > This controller is similar to the SMP-capable BCM7038 and > the BCM3380 but with packed interrupt registers. > > Signed-off-by: Simon Arlott > --- > On 16/11/15 15:34

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Jacob Pan
On Mon, 16 Nov 2015 23:01:12 +0100 (CET) Thomas Gleixner wrote: > > For the second case, which is much more rare, I think we do have > > next timer exactly one tick away. Just don't know why tick will > > continue into idle loop. > > Well, it should not be hard to figure that out. There are no

Re: [PATCHSET 0/9] perf report: Support folded callchain output (v5)

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 17, 2015 at 08:09:42AM +0900, Namhyung Kim escreveu: > On Thu, Nov 12, 2015 at 09:50:21AM -0800, Brendan Gregg wrote: > > Thanks, I tested it, it works! > Thank you for testing. > Arnaldo, could you please take a look at this? I will, haven't yet because I saw a WIP, thought that y

[PATCH v2] pstore-ram: add Device Tree bindings

2015-11-16 Thread Greg Hackmann
ramoops is one of the remaining places where ARM vendors still rely on board-specific shims. Device Tree lets us replace those shims with generic code. These bindings mirror the ramoops module parameters, with two small differences: (1) dump_oops becomes an optional "no-dump-oops" property, sinc

Re: [PATCH 2/4] m68k/mm: m54xx - Add missing initialization of max_pfn

2015-11-16 Thread Greg Ungerer
Hi Geert, On 15/11/15 21:04, Geert Uytterhoeven wrote: > If max_pfn is not initialized, the various /proc/kpage* files are empty, > and selftests/vm/mlock2-tests will fail. max_pfn is also used by the > block layer to calculate DMA masks. > > Signed-off-by: Geert Uytterhoeven > --- > Compile-tes

Re: [PATCH 0/4] m68k/mm: Add missing initialization of max_pfn and {min,max}_low_pfn

2015-11-16 Thread Greg Ungerer
Hi Geert, On 15/11/15 21:04, Geert Uytterhoeven wrote: > This patch series adds missing initialization of max_pfn, min_low_pfn, > and max_low_pfn on various m68k platforms. > > This was exposed by failing selftests/vm/mlock2-tests. > > Note that several other architectures lack a proper initiali

Re: [PATCH v2] tools lib traceevents: Fix output of %llu for 64 bit values read on 32 bit machines

2015-11-16 Thread Namhyung Kim
On Mon, Nov 16, 2015 at 05:25:16PM -0500, Steven Rostedt wrote: > > When a long value is read on 32 bit machines for 64 bit output, the parsing > needs to change "%lu" into "%llu", as the value is read natively. > > Unfortunately, if "%llu" is already there, the code will add another "l" to > it

[PATCH] x86, perf: Handle multiple umask bits for BDW CYCLE_ACTIVITY.*

2015-11-16 Thread Andi Kleen
From: Andi Kleen The earlier constraint fix for Broadwell CYCLE_ACTIVITY.* forced umask 8 to counter 2. For this it used UEVENT, to match the complete umask. The event list for Broadwell has an additional STALLS_L1D_PENDIND event that uses umask 8, but also sets other bits in the umask. The ear

Re: [PATCHSET 0/9] perf report: Support folded callchain output (v5)

2015-11-16 Thread Namhyung Kim
On Mon, Nov 16, 2015 at 09:09:33PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 17, 2015 at 08:09:42AM +0900, Namhyung Kim escreveu: > > On Thu, Nov 12, 2015 at 09:50:21AM -0800, Brendan Gregg wrote: > > > Thanks, I tested it, it works! > > > Thank you for testing. > > > Arnaldo, could

Re: [PATCH 2/6] serial: fsl-lpuart: move SERIAL_EARLYCON dependency to console

2015-11-16 Thread Stefan Agner
FWIW, Acked-by: Stefan Agner On 2015-11-16 07:48, Arnd Bergmann wrote: > The newly added earlycon support for lpuart adds a > 'select SERIAL_EARLYCON' statement for the tty driver, but that > only uses earlycon when console support is present, and otherwise > results in a pointless build error:

Re: [PATCH] mm: fix incorrect behavior when process virtual address space limit is exceeded

2015-11-16 Thread Michal Hocko
On Mon 16-11-15 21:52:10, Michal Hocko wrote: > [CCing Cyril] > > On Mon 16-11-15 18:36:19, Piotr Kwapulinski wrote: > > When a new virtual memory area is added to the process's virtual address > > space and this vma causes the process's virtual address space limit > > (RLIMIT_AS) to be exceeded t

Re: [PATCH] m68k: Wire up mlock2

2015-11-16 Thread Greg Ungerer
Hi Geert, On 15/11/15 21:09, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven I see no problems. Acked-by: Greg Ungerer Regards Greg > This depends on series "[PATCH 0/4] m68k/mm: Add missing initialization of > max_pfn and {min,max}_low_pfn" to work. > > arch/m68k/include/as

Re: [PATCH] brcmnand: Clear EXT_ADDR error registers in PIO mode

2015-11-16 Thread Brian Norris
+ bcm-kernel-feedback-list On Mon, Nov 16, 2015 at 10:05:39PM +, Simon Arlott wrote: > If an error occurs in flash above 4GB in PIO mode then the EXT_ADDR > registers will be set to the location of the error and never cleared. > > Reset them to 0 before reading. > > Signed-off-by: Simon Arlo

[PATCH] ftrace/x86: Add comment on static function tracing

2015-11-16 Thread Namhyung Kim
There was a confusion between update_ftrace_function() and static function tracing trampoline regarding 3rd parameter (ftrace_ops). Add a comment for clarification. Suggested-by: Steven Rostedt Signed-off-by: Namhyung Kim --- arch/x86/kernel/mcount_64.S | 6 ++ 1 file changed, 6 insertions(

Re: [lkp] [panic] [ BUG: bad unlock balance detected! ]

2015-11-16 Thread Andrew Morton
On Mon, 16 Nov 2015 11:12:50 +0800 kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 08d78658f393fefaa2e6507ea052c6f8ef4002a2 ("panic: release stale > console lock to always get the logbuf prin

Re: [PATCH v4 3/3] sched: optimize migration by forcing rmb() and updating to be called once

2015-11-16 Thread Byungchul Park
On Mon, Nov 16, 2015 at 01:53:51PM +0100, Peter Zijlstra wrote: > On Wed, Nov 11, 2015 at 08:51:47AM +0900, Byungchul Park wrote: > > On Tue, Nov 10, 2015 at 01:16:47PM +0100, Peter Zijlstra wrote: > > > So the problem is that as soon as that ->cpu store comes through, the > > > other rq->lock can

Re: [PATCH 3/3] ASoC: samsung: pass filter function as pointer

2015-11-16 Thread Krzysztof Kozlowski
On 14.11.2015 02:24, Arnd Bergmann wrote: > As we are now passing the filter data as pointers to the drivers, > we can take the final step and also pass the filter function the > same way. I'm keeping this change separate, as there it's less > obvious that this is a net win. > > Upsides of this ar

[PATCH v3 0/8] dwc2: Fix uframe scheduler + speed up the interrupt handler quite a bit

2015-11-16 Thread Douglas Anderson
This series now effectively has two purposes: 1. Speed up dwc2 interrupt latency. 2. Start fixing up the microframe scheduler. ...the two things were separate series in the past but they ended up running into each other, so now they're combined. To summarize what we have here: 1. usb: dwc2: rock

[PATCH v3 1/8] usb: dwc2: rockchip: Make the max_transfer_size automatic

2015-11-16 Thread Douglas Anderson
Previously we needed to set the max_transfer_size to explicitly be 65535 because the old driver would detect that our hardware could support much bigger transfers and then would try to do them. This wouldn't work since the DMA alignment code couldn't support it. Later in commit e8f8c14d9da7 ("usb

[PATCH v3 2/8] usb: dwc2: host: Get aligned DMA in a more supported way

2015-11-16 Thread Douglas Anderson
All other host controllers who want aligned buffers for DMA do it a certain way. Let's do that too instead of working behind the USB core's back. This makes our interrupt handler not take forever and also rips out a lot of code, simplifying things a bunch. This also has the side effect of removi

[PATCH v3 7/8] usb: dwc2: host: Add a delay before releasing periodic bandwidth

2015-11-16 Thread Douglas Anderson
We'd like to be able to use HCD_BH in order to speed up the dwc2 host interrupt handler quite a bit. However, according to the kernel doc for usb_submit_urb() (specifically the part about "Reserved Bandwidth Transfers"), we need to keep a reservation active as long as a device driver keeps submitt

[PATCH v3 5/8] usb: dwc2: host: Keep track of and use our scheduled microframe

2015-11-16 Thread Douglas Anderson
The microframe scheduler did a lot of work to pick the proper microframe. Then dwc2_sched_periodic_split() went ahead and ignored which microframe we picked if it ever needed to re-assign things. Let's keep track of the uframe and then we'll always use it. Signed-off-by: Douglas Anderson --- Ch

[PATCH v3 6/8] usb: dwc2: host: Assume all devices are on one single_tt hub

2015-11-16 Thread Douglas Anderson
Until we have logic to determine which devices share the same TT let's add logic to assume that all devices on a given dwc2 controller are on one single_tt hub. This is better than the previous code that assumed that all devices were on one multi_tt hub, since single_tt hubs appear (in my experien

[PATCH v3 8/8] usb: dwc2: host: Giveback URB in tasklet context

2015-11-16 Thread Douglas Anderson
In commit 94dfd7edfd5c ("USB: HCD: support giveback of URB in tasklet context") support was added to give back the URB in tasklet context. Let's take advantage of this in dwc2. This speeds up the dwc2 interrupt handler considerably. Note that this requires the change ("usb: dwc2: host: Add a dela

[PATCH v3 3/8] usb: dwc2: host: Add scheduler tracing

2015-11-16 Thread Douglas Anderson
In preparation for future changes to the scheduler let's add some tracing that makes it easy for us to see what's happening. By default this tracing will be off. Note that I've chosen to point tracing at ftrace rather than the console since performance is pretty critical for these traces and ftra

[PATCH v3 4/8] usb: dwc2: host: Rewrite the microframe scheduler

2015-11-16 Thread Douglas Anderson
The old microframe scheduler was hard to follow and had some bugs in it. Specifically, I made some code to visualize what was happening and found: Add W (280 us): WW|WW| | | | | | Add B (260 us): WW|WW|BB|BB

[PATCHv2 1/3] ion: Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
This adds a base set of devicetree bindings for the Ion memory manager. This supports setting up the generic set of heaps and their properties. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/devicetree.txt | 50 ++ 1 file changed, 50 insertions(+) creat

[PATCHv2 3/3] NOMERGE: Sample driver

2015-11-16 Thread Laura Abbott
Small sample driver to show what setup would look like with the dt bindings Signed-off-by: Laura Abbott --- drivers/staging/android/ion/Kconfig | 6 ++ drivers/staging/android/ion/Makefile| 1 + drivers/staging/android/ion/ion_of_sample.c | 96 + 3

[PATCHv2 0/3] Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
Hi, This is another attempt at devicetree bindings for Ion. The big complaint from v1 was that too much unnecessary data was being pushed into devicetree. v2 takes a different approach of using just compatbile strings for the heaps. This gets closer to the devicetree philosophy of describing jus

[PATCHv2 2/3] staging: ion: Add files for parsing the devicetree

2015-11-16 Thread Laura Abbott
Devicetree is the preferred mechanism for platform definition these days. Add a set of files for supporting Ion with devicetree. This is a set of functions for drivers to call to parse the Ion devicetree along with definitons for defining heaps. Signed-off-by: Laura Abbott --- drivers/staging/

RE: [PATCH] KVM: x86: always set accessed bit in shadow PTEs

2015-11-16 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2015-11-13: > Commit 7a1638ce4220 ("nEPT: Redefine EPT-specific link_shadow_page()", > 2013-08-05) says: > > Since nEPT doesn't support A/D bit, we should not set those bit > when building the shadow page table. > but this is not necessary. Even though nEPT doesn't

[PATCH] staging: drop kbuild workaround dummy module from top dir

2015-11-16 Thread Paul Gortmaker
This is essentially a revert of 86f69fe9c069dd8608d238581eea259caa1dfc99 ("Staging: workaround build system bug"), but to call it a revert would imply it was wrong -- rather it seems more like it is just no longer required anymore. It doesn't list the full details of the failing use case, but the

Re: [PATCH RFC] ioctl based CAT interface

2015-11-16 Thread Marcelo Tosatti
On Mon, Nov 16, 2015 at 02:39:03PM -0200, Marcelo Tosatti wrote: > On Mon, Nov 16, 2015 at 10:07:56AM +0100, Peter Zijlstra wrote: > > On Fri, Nov 13, 2015 at 03:33:04PM -0200, Marcelo Tosatti wrote: > > > On Fri, Nov 13, 2015 at 05:51:00PM +0100, Peter Zijlstra wrote: > > > > On Fri, Nov 13, 2015

Re: CGroup Namespaces (v4)

2015-11-16 Thread Serge E. Hallyn
On Mon, Nov 16, 2015 at 04:24:27PM -0600, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > On Mon, Nov 16, 2015 at 09:50:55PM +0100, Richard Weinberger wrote: > >> Am 16.11.2015 um 21:46 schrieb Serge E. Hallyn: > >> > On Mon, Nov 16, 2015 at 09:41:15PM +0100, Richard Weinberger wrote:

Re: [PATCH 1/3] ASoC: samsung: pass DMA channels as pointers

2015-11-16 Thread Krzysztof Kozlowski
On 14.11.2015 02:22, Arnd Bergmann wrote: > ARM64 allmodconfig produces a bunch of warnings when building the > samsung ASoC code: > > sound/soc/samsung/dmaengine.c: In function 'samsung_asoc_init_dma_data': > sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of > differe

[GIT PULL] optimize 64-by-32 ddivision for constant divisors on 32-bit machines

2015-11-16 Thread Nicolas Pitre
Arnd, Please pull the following branch: git://git.linaro.org/people/nicolas.pitre/linux div64 This contains those patches I've initially posted here: https://lkml.org/lkml/2015/11/2/715 Only changes to those posted patches are cosmetic improvements such as the use of ilog2() r

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: > This patch introduces a new BPF script to test BPF prologue. The new > script probes at null_lseek, which is the function pointer when we try > to lseek on '/dev/null'. > > null_lseek is chosen because it is a function pointer, so we d

Re: [PATCH v2 0/3] nvdimm: Add an IOCTL pass thru for DSM calls

2015-11-16 Thread Dan Williams
On Mon, Nov 16, 2015 at 1:10 PM, Jerry Hoemann wrote: > On Mon, Nov 16, 2015 at 11:00:20AM -0800, Dan Williams wrote: >> On Mon, Nov 16, 2015 at 10:38 AM, Jerry Hoemann >> wrote: >> > >> > The NVDIMM code in the kernel supports an IOCTL interface to user >> > space based upon the Intel Example D

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wangnan (F)
On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is c

Re: [PATCHSET 0/9] perf report: Support folded callchain output (v5)

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 17, 2015 at 09:22:45AM +0900, Namhyung Kim escreveu: > On Mon, Nov 16, 2015 at 09:09:33PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Nov 17, 2015 at 08:09:42AM +0900, Namhyung Kim escreveu: > > > On Thu, Nov 12, 2015 at 09:50:21AM -0800, Brendan Gregg wrote: > > > > Thanks, I te

[Fedora][libata][4.4-rc0/rc1] Disk cache/write error? - FLUSH CACHE EXT / WRITE FPDMA QUEUED

2015-11-16 Thread Shawn Starr
Hello devs, Something unusual happened today, disk locked up, went into bad state, rebooted with sysctl magic key, BIOS reported disk showed no OS found, hard powered off machine then everything was normal. Any changes recently in libata that might have caused the disk to perform a bad operati

Re: PM: after suspend/resume the system,can not suspends again

2015-11-16 Thread Cao Minh Hiep
Dear Ulf Hansson Thanks for your feedback! On 2015年11月17日 06:12, Ulf Hansson wrote: On 16 November 2015 at 10:13, Cao Minh Hiep wrote: Dear Ulf Hansson, I am Hiep from Jinzai Solution (a Japanese Company) We have tested PM driver on Rcar-Gen2 (Lager, Koelsch Board) at Linux v4.3. I would lik

Re: [PATCH 2/3] ASoC: s3c24xx-i2s: pass DMA channels as platform data

2015-11-16 Thread Krzysztof Kozlowski
On 14.11.2015 02:23, Arnd Bergmann wrote: > This is a minor cleanup to make the s3c2412-i2s and s3c24xx-i2s > drivers independent of the mach/dma.h header file and to allow > removing the dependency on the specific dmaengine driver in the > next patch. > > As a side not, only the s3c24xx-i2s drive

Re: [PATCH 1/7] phy: brcmstb-sata: add missing of_node_put

2015-11-16 Thread Brian Norris
On Mon, Nov 16, 2015 at 12:33:14PM +0100, Julia Lawall wrote: > for_each_available_child_of_node performs an of_node_get on each iteration, > so a return from the middle of the loop requires an of_node_put. > > A simplified version of the semantic patch that finds this problem is as > follows (htt

Re: CGroup Namespaces (v4)

2015-11-16 Thread Serge E. Hallyn
On Mon, Nov 16, 2015 at 07:13:49PM -0600, Serge E. Hallyn wrote: > On Mon, Nov 16, 2015 at 04:24:27PM -0600, Eric W. Biederman wrote: > > "Serge E. Hallyn" writes: > > > > > On Mon, Nov 16, 2015 at 09:50:55PM +0100, Richard Weinberger wrote: > > >> Am 16.11.2015 um 21:46 schrieb Serge E. Hallyn:

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-16 Thread Josh Triplett
On Mon, Nov 16, 2015 at 03:26:40PM -0800, Paul E. McKenney wrote: > On Mon, Nov 16, 2015 at 02:32:11PM -0800, Josh Triplett wrote: > > On Mon, Nov 16, 2015 at 01:51:26PM -0800, Jacob Pan wrote: > > > On Mon, 16 Nov 2015 16:06:57 +0100 (CET) > > > Thomas Gleixner wrote: > > > > > > > > -

[git pull] fs-cache regression

2015-11-16 Thread Al Viro
fs-cache fix + adding a warning about obnoxiou^Wmoderation of list given in MAINTAINERS. Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus Shortlog: Geert Uytterhoeven (2): FS-Cache: Add missing initialization of ret in cachefiles_write_page() MAIN

RE: [PATCH] kvm/vmx: EPTP switching test

2015-11-16 Thread Zhang, Yang Z
Michael S. Tsirkin wrote on 2015-11-16: > This patch adds a new parameter: eptp_switching_test, which enables > testing EPT switching on VMX if supported by hardware. All EPT > entries are initialized to the same value so this adds no useful > functionality by itself, but can be used to test VMFUN

[PATCH] ARM: sunxi: Re-enable SID driver in sunxi_defconfig

2015-11-16 Thread Timo Sigurdsson
Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem framework") moved the the sunxi SID driver to a new framework, but left sunxi_defconfig with the deprecated config symbol EEPROM_SUNXI_SID instead of the new symbold NVMEM_SUNXI_SID. Hence, re-enable the driver in sunxi_defconfig.

RE: [PATCH v2 5/7] ACPI / x86: introduce acpi_os_readable() support

2015-11-16 Thread Zheng, Lv
Hi, Yu > From: Zheng, Lv > Sent: Wednesday, November 11, 2015 1:07 PM > > Hi, Yu > > > From: Chen, Yu C > > Sent: Tuesday, November 10, 2015 5:43 PM > > > > Hi, Lv > > Sorry for my late feedback on the patch, one minor nit below: > > > > > From: Zheng, Lv > > > Sent: Tuesday, November 10, 2015 4

[PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-16 Thread Timo Sigurdsson
Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem framework") moved the the sunxi SID driver to a new framework, but left multi_v7_defconfig with the deprecated config symbol EEPROM_SUNXI_SID instead of the new symbold NVMEM_SUNXI_SID. Hence, re-enable the driver in multi_v7_defc

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread John Youn
On 11/16/2015 3:14 PM, Doug Anderson wrote: > Alan, > > On Mon, Nov 16, 2015 at 12:31 PM, Alan Stern > wrote: >> On Mon, 16 Nov 2015, Doug Anderson wrote: >> >>> Alan, >>> >>> On Mon, Nov 16, 2015 at 11:31 AM, Alan Stern >>> wrote: On Mon, 16 Nov 2015, Doug Anderson wrote: > ---

Re: [PATCH] cpufreq: do not mark s3c2410_plls_add as __init

2015-11-16 Thread Krzysztof Kozlowski
On 17.11.2015 07:17, Arnd Bergmann wrote: > On Monday 16 November 2015 23:36:42 Rafael J. Wysocki wrote: >> >> This should go in through the Samsung tree, so I'll leave it for them to pick >> it up (at least for the time being). > > Ok, fair enough. Kukjin or Krzysztof, can you pick this up? Sure

<    4   5   6   7   8   9   10   11   >