NULL derefs after failed suspend (i915, pm, ext4, slub)

2014-10-28 Thread Johan Hovold
Hi, I have had some problems with crashes involving suspend-to-disk after updating to v3.16. Below is a log with 3.16.6 from a failed suspend attempt after which I get a NULL deref in ext4 code. A couple of weeks ago I got something similar, with backtraces from ext4 (ext4_alloc_inode) and

Re: [PATCH v2 4/5] ARM: allow errata and XIP options to be enabled without ARCH_MULTIPLATFORM_STRICT

2014-10-28 Thread Russell King - ARM Linux
On Tue, Oct 28, 2014 at 03:24:38PM +0100, Arnd Bergmann wrote: > On Tuesday 28 October 2014 14:02:31 Russell King - ARM Linux wrote: > > On Tue, Oct 28, 2014 at 09:31:34PM +0800, Xia Kaixu wrote: > > > With the ARCH_MULTIPLATFORM_STRICT option, it becomes much easier to > > > enable the ERRATA

Re: [PATCH 5/7] fs: Convert show_fdinfo functions to void

2014-10-28 Thread Joe Perches
On Tue, 2014-10-28 at 10:11 -0400, Steven Rostedt wrote: > On Mon, 29 Sep 2014 16:08:25 -0700 > Joe Perches wrote: > > > seq_printf functions shouldn't really check the return value. > > Checking seq_is_full occasionally is used instead. > > > > Update vfs documentation. > > > > Signed-off-by:

Re: [PATCH] arm64: amd-seattle: Adding device tree for AMD Seattle platform

2014-10-28 Thread Alexander Graf
> Am 28.10.2014 um 14:07 schrieb Suravee Suthikulanit > : > >> On 10/27/2014 6:25 PM, Alexander Graf wrote: >> >> >>> On 27.10.14 15:29, Suravee Suthikulanit wrote: >>> On 10/26/2014 9:08 AM, Alexander Graf wrote: >> This option doesn't exist in upstream kernels, does it? Why not just

Re: [PATCH v2 5/5] ARM: use early console instead of early debug in allmodconfig kernels

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 14:05:36 Russell King - ARM Linux wrote: > On Tue, Oct 28, 2014 at 09:31:35PM +0800, Xia Kaixu wrote: > > The early debug could break something when booting 'allmodconfig' > > kernels. So we use early console instead of early debug. > > > > The early console didn't work

Re: [PATCH RFC 7/7] sched: energy_model: simple cpu frequency scaling policy

2014-10-28 Thread Peter Zijlstra
On Tue, Oct 21, 2014 at 11:07:31PM -0700, Mike Turquette wrote: > Unlike legacy CPUfreq governors, this policy does not implement its own > logic loop (such as a workqueue triggered by a timer), but instead uses > an event-driven design. Frequency is evaluated by entering > {en,de}queue_task_fair

[sched] [ INFO: suspicious RCU usage. ]

2014-10-28 Thread Fengguang Wu
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/urgent commit f6a2b544517d33f6a1e428567bda96fd859ce1c9 Author: Kirill Tkhai AuthorDate: Mon Oct 27 14:18:25 2014 +0400 Commit: Peter

Re: [PATCH v3 0/3] integrity: NULL pointer dereference fixes

2014-10-28 Thread Mimi Zohar
On Tue, 2014-10-28 at 13:31 +0200, Dmitry Kasatkin wrote: > Hi, > > Recently Jan Kara reported about possible NULL pointer dereference > in IMA and EVM setxattr hooks. This patchset fixes the problem. > > http://sourceforge.net/p/linux-ima/mailman/message/32957578 > > In this version of the

Re: [PATCH v2 4/5] ARM: allow errata and XIP options to be enabled without ARCH_MULTIPLATFORM_STRICT

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 14:02:31 Russell King - ARM Linux wrote: > On Tue, Oct 28, 2014 at 09:31:34PM +0800, Xia Kaixu wrote: > > With the ARCH_MULTIPLATFORM_STRICT option, it becomes much easier to > > enable the ERRATA options when we know at configuration time that we > > don't care about

Re: [PATCH v3 1/2] mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc

2014-10-28 Thread Frans Klaver
On Tue, Oct 28, 2014 at 11:53 AM, Zhou Wang wrote: > + > +static int hisi_nfc_probe(struct platform_device *pdev) > +{ > + int ret = 0, irq, buswidth, flag, max_chips = HINFC504_MAX_CHIP; > + struct device *dev = >dev; > + struct hinfc_host *host; > + struct nand_chip

Re: [PATCH v2 1/5] ARM: introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option

2014-10-28 Thread Russell King - ARM Linux
On Tue, Oct 28, 2014 at 03:18:48PM +0100, Arnd Bergmann wrote: > On Tuesday 28 October 2014 21:31:31 Xia Kaixu wrote: > > endmenu > > > > +config ARCH_MULTIPLATFORM_STRICT > > +bool "Only allow options that do not break other platforms" > > +depends on ARCH_MULTIPLATFORM > > +

Re: [PATCH v2 2/3] pinctrl: meson: add device tree bindings documentation

2014-10-28 Thread Linus Walleij
On Tue, Oct 14, 2014 at 11:21 PM, Beniamino Galvani wrote: > Add device tree bindings documentation for Amlogic Meson pinmux and > GPIO controller. > > Signed-off-by: Beniamino Galvani (...) > + gpio_ao: ao-bank@c1108030 { > + reg = <0xc8100014 0x4>, > +

Re: Boot problems on Malta with EVA (bisected to 12220dea07f1 "mm/slab: support slab merge")

2014-10-28 Thread Joonsoo Kim
2014-10-28 22:48 GMT+09:00 Joonsoo Kim : > 2014-10-28 22:24 GMT+09:00 Markos Chandras : >> On 10/28/2014 01:19 PM, Markos Chandras wrote: >>> On 10/28/2014 01:01 PM, Joonsoo Kim wrote: 2014-10-28 19:45 GMT+09:00 Markos Chandras : > Hi, > > It seems I am unable to boot my Malta

Re: [PATCH v2 1/5] ARM: introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 21:31:31 Xia Kaixu wrote: > endmenu > > +config ARCH_MULTIPLATFORM_STRICT > +bool "Only allow options that do not break other platforms" > +depends on ARCH_MULTIPLATFORM > +default y > + help > + There are several configuration

Re: [PATCH v2 1/3] pinctrl: add driver for Amlogic Meson SoCs

2014-10-28 Thread Linus Walleij
On Tue, Oct 14, 2014 at 11:21 PM, Beniamino Galvani wrote: > This is a driver for the pinmux and GPIO controller available in > Amlogic Meson SoCs. At the moment it only supports Meson8 devices, > however other SoC families like Meson6 and Meson8b (the Cortex-A5 > variant) appear to be similar,

[PATCH] Makefile: sort list of defconfig targets in make help output

2014-10-28 Thread Konstantin Khlebnikov
Without sorting this list is completely unreadable for ARCH=arm. Signed-off-by: Konstantin Khlebnikov --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52c1297..63f05dc 100644 --- a/Makefile +++ b/Makefile @@ -1234,7 +1234,7 @@ rpm:

Re: [PATCH 00/11] Add AXD Audio Processing IP driver

2014-10-28 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 01:18:28PM +, Qais Yousef wrote: > On 10/28/2014 11:55 AM, Clemens Ladisch wrote: > >Qais Yousef wrote: > >>AXD Audio Processing IP performs audio decoding, encoding, mixing, > >>equalisation, > >>synchronisation and playback. > >What exactly do you mean with

Re: [PATCH 09/11] drivers: char: axd: add sysfs setup files

2014-10-28 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 11:26:27AM +, Qais Yousef wrote: > +/* Control Device Sysfs Attributes */ > +/* version */ > +static ssize_t show_version(struct device *dev, struct device_attribute > *attr, > + char *buf) > +{ > + struct axd_cmd

Re: [PATCH 2/3] pinctrl: meson: add device tree bindings documentation

2014-10-28 Thread Linus Walleij
On Sun, Oct 26, 2014 at 7:25 PM, Beniamino Galvani wrote: > On Fri, Oct 24, 2014 at 01:53:28PM +0200, Linus Walleij wrote: >> >> I think it's better to use the compatible string to indicate different >> versions of the hardware and then have just have one big >> regs to cover all registers. > >

Re: [PATCH 09/11] drivers: char: axd: add sysfs setup files

2014-10-28 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 11:26:27AM +, Qais Yousef wrote: > lots of AXD configuration is exposed through sysfs, these > files create all the necessary nodes to allow setting up AXD Yet you don't document that interface through the required Documentation/ABI/ files? Why not? -- To unsubscribe

Re: [PATCH 5/7] fs: Convert show_fdinfo functions to void

2014-10-28 Thread Steven Rostedt
On Mon, 29 Sep 2014 16:08:25 -0700 Joe Perches wrote: > seq_printf functions shouldn't really check the return value. > Checking seq_is_full occasionally is used instead. > > Update vfs documentation. > > Signed-off-by: Joe Perches > > -#ifdef CONFIG_PROC_FS > -static int

Re: [PATCH 00/10] mm: improve usage of the i_mmap lock

2014-10-28 Thread Kirill A. Shutemov
On Fri, Oct 24, 2014 at 03:06:10PM -0700, Davidlohr Bueso wrote: > Davidlohr Bueso (10): > mm,fs: introduce helpers around the i_mmap_mutex > mm: use new helper functions around the i_mmap_mutex > mm: convert i_mmap_mutex to rwsem > mm/rmap: share the i_mmap_rwsem > uprobes: share the

Re: [PATCH 03/11] drivers: char: add AXD Audio Processing IP driver

2014-10-28 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 11:26:21AM +, Qais Yousef wrote: > AXD is Audio Processing IP by Imagination Technologies that can > perform decoding, encoding, equalisation, resampling, mixing, > synchronisation and audio playback. Isn't that a codec? Why is this a "char" driver and not one that

Re: [PATCH 1/3] pinctrl: add driver for Amlogic Meson SoCs

2014-10-28 Thread Linus Walleij
On Wed, Oct 22, 2014 at 10:06 PM, Beniamino Galvani wrote: > On Tue, Oct 21, 2014 at 03:39:25PM +0200, Linus Walleij wrote: >> > +static int meson_gpio_of_xlate(struct gpio_chip *chip, >> > + const struct of_phandle_args *gpiospec, >> > +

Re: [PATCH v2] sound: pci: pcxhr: convert timeval to ktime_t

2014-10-28 Thread Takashi Iwai
At Tue, 28 Oct 2014 14:27:44 +0200, Aya Mahfouz wrote: > > This patch is concerned with migrating the time variables in the pcxhr > module found in the sound driver. The changes are concerend with the > y2038 problem where timeval will overflow in the year 2038. ktime_t > was used instead of

Re: [PATCH 3.16 000/127] 3.16.7-stable review

2014-10-28 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 09:57:39AM -0400, Steven Rostedt wrote: > On Tue, Oct 28, 2014 at 11:51:01AM +0800, Greg Kroah-Hartman wrote: > > On Tue, Oct 28, 2014 at 11:33:55AM +0800, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 3.16.7 release. > > > There are

Re: [PATCH 02/11 V2] radeon: evergreen: Fix probable mask then right shift defect

2014-10-28 Thread Alex Deucher
On Mon, Oct 27, 2014 at 10:14 AM, Joe Perches wrote: > Precedence of & and >> is not the same and is not left to right. > shift has higher precedence and should be done after the mask. > > Add parentheses around the mask. > > Use the already #defined values instead of hardcoding. > >

Re: [PATCH v2 5/5] ARM: use early console instead of early debug in allmodconfig kernels

2014-10-28 Thread Russell King - ARM Linux
On Tue, Oct 28, 2014 at 09:31:35PM +0800, Xia Kaixu wrote: > The early debug could break something when booting 'allmodconfig' > kernels. So we use early console instead of early debug. > > The early console didn't work yet on OMAP4460 because of missing > earlycon support and I am working on

Re: [PATCH v2 4/5] ARM: allow errata and XIP options to be enabled without ARCH_MULTIPLATFORM_STRICT

2014-10-28 Thread Russell King - ARM Linux
On Tue, Oct 28, 2014 at 09:31:34PM +0800, Xia Kaixu wrote: > With the ARCH_MULTIPLATFORM_STRICT option, it becomes much easier to > enable the ERRATA options when we know at configuration time that we > don't care about the generic case. The previous configuration makes > XIP_KERNEL option

Re: [PATCH 3.16 000/127] 3.16.7-stable review

2014-10-28 Thread Steven Rostedt
On Tue, Oct 28, 2014 at 11:51:01AM +0800, Greg Kroah-Hartman wrote: > On Tue, Oct 28, 2014 at 11:33:55AM +0800, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.16.7 release. > > There are 127 patches in this series, all will be posted as a response > > to this

Re: [PATCH v2 3/5] ARM: restrict CPU_BIG_ENDIAN configuration option

2014-10-28 Thread Russell King - ARM Linux
On Tue, Oct 28, 2014 at 09:31:33PM +0800, Xia Kaixu wrote: > Some platforms don't work when CPU_BIG_ENDIAN is enabled. > So It can get a dependency on !ARCH_MULTIPLATFORM_STRICT. What if big endian wants to build a multiplatform kernel? This doesn't look right to me. Instead, we should be

Re: UKSM: What's maintainers think about it?

2014-10-28 Thread Timofey Titovets
2014-10-28 16:31 GMT+03:00 Marco A Benatto : > Hi All, > > I'm not mantainer at all, but I've being using UKSM for a long time and > remember > to port it to 3.16 family once. > UKSM seems good and stable and, at least for me, doesn't raised any errors. > AFAIK the only limitation I know (maybe I

Re: [RFC V3] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Will Deacon
On Tue, Oct 28, 2014 at 01:34:42AM +, Wang, Yalin wrote: > > From: Will Deacon [mailto:will.dea...@arm.com] > > > +++ b/arch/arm/include/asm/bitrev.h > > > @@ -0,0 +1,28 @@ > > > +#ifndef __ASM_ARM_BITREV_H > > > +#define __ASM_ARM_BITREV_H > > > + > > > +static __always_inline

Re: Boot problems on Malta with EVA (bisected to 12220dea07f1 "mm/slab: support slab merge")

2014-10-28 Thread Joonsoo Kim
2014-10-28 22:24 GMT+09:00 Markos Chandras : > On 10/28/2014 01:19 PM, Markos Chandras wrote: >> On 10/28/2014 01:01 PM, Joonsoo Kim wrote: >>> 2014-10-28 19:45 GMT+09:00 Markos Chandras : Hi, It seems I am unable to boot my Malta with EVA. The problem appeared in the 3.18

Re: [tip:x86/urgent] ix86: Fix build failure when !CONFIG_X86_IO_APIC

2014-10-28 Thread Jan Beulich
>>> On 28.10.14 at 12:18, wrote: > Commit-ID: a425cf83e39f99a70168c184e79cea8c67ba7c12 > Gitweb: > http://git.kernel.org/tip/a425cf83e39f99a70168c184e79cea8c67ba7c12 > Author: Jan Beulich > AuthorDate: Tue, 16 Sep 2014 13:44:24 +0100 > Committer: Ingo Molnar > CommitDate: Tue, 28

Re: CMA: test_pages_isolated failures in alloc_contig_range

2014-10-28 Thread Peter Hurley
[ +cc Andrew Morton ] On 10/28/2014 08:38 AM, Michal Nazarewicz wrote: > On Sun, Oct 26 2014, Laurent Pinchart > wrote: >> Hello, >> >> I've run into a CMA-related issue while testing a DMA engine driver with >> dmatest on a Renesas R-Car ARM platform. >> >> When allocating contiguous memory

[PATCH v2 3/5] ARM: restrict CPU_BIG_ENDIAN configuration option

2014-10-28 Thread Xia Kaixu
Some platforms don't work when CPU_BIG_ENDIAN is enabled. So It can get a dependency on !ARCH_MULTIPLATFORM_STRICT. Signed-off-by: Xia Kaixu --- arch/arm/mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index ae69809..d510448 100644 ---

[PATCH 12/32] perf probe: Use PARSE_OPT_EXCLUSIVE flag

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The perf probe command has some exclusive options. Use new PARSE_OPT_EXCLUSIVE flag to simplify the code and show more compact usage. $ perf probe -l -a foo Error: switch `a' cannot be used with switch `l' usage: perf probe [] 'PROBEDEF' ['PROBEDEF' ...] or:

[PATCH 11/32] perf tools: Add support for exclusive option

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Some options cannot be used at the same time. To handle such options add a new PARSE_OPT_EXCLUSIVE flag and show error message if more than one of them is used. Signed-off-by: Namhyung Kim Reviewed-by: Masami Hiramatsu Acked-by: Hemant Kumar Cc: David Ahern Cc: Hemant

[PATCH 10/32] perf kvm: Print kvm specific --help output

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The 'perf kvm stat record' tool is an alias of 'perf record' with predefined kvm related options. All options that passed to 'perf kvm stat record' are processed by the 'perf record' tool. So, 'perf kvm stat record --help' prints help of usage for the 'perf record' command.

Re: [PATCH] umount.2: Correct the description of MNT_DETACH

2014-10-28 Thread Michael Kerrisk (man-pages)
Hi Eric, I'm still hoping for a revised patch from you in the light of Andy's comments and question. Thanks, Michael On 09/30/2014 04:16 AM, Andy Lutomirski wrote: > On Mon, Sep 29, 2014 at 7:15 PM, Eric W. Biederman > wrote: >> Andy Lutomirski writes: >> >>> On Mon, Sep 29, 2014 at 6:04

[PATCH 07/32] perf tests: Use thread->mg->machine

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Instead of passing both thread and machine. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane

[PATCH 06/32] perf tests: Remove misplaced __maybe_unused

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'machine' parameter is used in this function, ditch the __maybe_unused annotation, not needed. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim

[PATCH v2 4/5] ARM: allow errata and XIP options to be enabled without ARCH_MULTIPLATFORM_STRICT

2014-10-28 Thread Xia Kaixu
With the ARCH_MULTIPLATFORM_STRICT option, it becomes much easier to enable the ERRATA options when we know at configuration time that we don't care about the generic case. The previous configuration makes XIP_KERNEL option fundamentally non-MULTIPLATFORM, but it's still valid to select it when

[GIT PULL 00/32] perf/core improvements and fixes

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit e53f6124af6516cee3063a3072767ee2717ff343: Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent (2014-10-24

Re: UKSM: What's maintainers think about it?

2014-10-28 Thread Marco A Benatto
Hi All, I'm not mantainer at all, but I've being using UKSM for a long time and remember to port it to 3.16 family once. UKSM seems good and stable and, at least for me, doesn't raised any errors. AFAIK the only limitation I know (maybe I has been fixed already) it isn't able to work together

[PATCH 19/32] perf tools: Make CPUINFO_PROC an array to support different kernel versions

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Wang Nan After kernel 3.7 (commit b4b8f770eb10a1bccaf8aa0ec1956e2dd7ed1e0a), /proc/cpuinfo replaces 'Processor' to 'model name'. This patch makes CPUINFO_PROC to an array and provides two choices for ARM, makes it compatible for different kernel version. v1 -> v2: minor changes as

Re: [PATCH v5 29/29] nios2: Build infrastructure

2014-10-28 Thread Arnd Bergmann
On Friday 24 October 2014 16:24:31 Ley Foon Tan wrote: > +DECLARE_EXPORT(__gcc_bcmp); > +DECLARE_EXPORT(__divdi3); > +DECLARE_EXPORT(__divsi3); > +DECLARE_EXPORT(__moddi3); > +DECLARE_EXPORT(__modsi3); > +DECLARE_EXPORT(__udivdi3); > +DECLARE_EXPORT(__udivmoddi4); > +DECLARE_EXPORT(__udivsi3); >

[PATCH 24/32] perf tools: Fix report -F symbol_to for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F symbol_to perf: Segmentation fault Checking that hist_entry::branch_info is valid and

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 18:43:04 Ley Foon Tan wrote: > On Sel, 2014-10-28 at 10:23 +0100, Arnd Bergmann wrote: > > On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: > > > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner > > > wrote: > > > > On Fri, 24 Oct 2014, Ley Foon Tan wrote: > > >

[PATCH V3] arm64: amd-seattle: Adding device tree for AMD Seattle platform

2014-10-28 Thread suravee.suthikulpanit
From: Suravee Suthikulpanit Initial revision of device tree for AMD Seattle platform Cc: Mark Rutland Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Suravee Suthikulpanit Signed-off-by: Thomas Lendacky Signed-off-by: Joel Schopp --- Change in V3: * Change sata compatible-id to

Re: [PATCH v3 19/19] usb: dwc3: add support for AMD NL platform

2014-10-28 Thread Felipe Balbi
Hi, almost there... On Tue, Oct 28, 2014 at 07:54:40PM +0800, Huang Rui wrote: > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h > index 8b94ad5..b08a2f9 100644 > --- a/drivers/usb/dwc3/core.h > +++ b/drivers/usb/dwc3/core.h > @@ -699,6 +699,7 @@ struct dwc3_scratchpad_array { >

[PATCH 16/32] perf tools: Build programs to copy 32-bit compatibility

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter perf tools copy VDSO out of memory. However, on 64-bit machines there may be 32-bit compatibility VDOs also. To copy those requires separate 32-bit executables. This patch adds to the build additional programs perf-read-vdso32 and perf-read-vdsox32 for 32-bit and x32

[PATCH 17/32] perf tools: Add support for 32-bit compatibility VDSOs

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter 'perf record' post-processes the event stream to create a list of build-ids for object files for which sample events have been recorded. That results in those object files being recorded in the build-id cache. In the case of VDSO, perf tools reads it from memory and copies

[PATCH 23/32] perf tools: Fix report -F mispredict for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F mispredict perf: Segmentation fault Checking that hist_entry::branch_info is valid and

[PATCH 28/32] perf tools: Add facility to export data in database-friendly way

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter This patch introduces an abstraction for exporting sample data in a database-friendly way. The abstraction does not implement the actual output. A subsequent patch takes this facility into use for extending the script interface. The abstraction is needed because static

Re: [PATCH] arm64: ARCH_PFN_OFFSET should be unsigned long

2014-10-28 Thread Will Deacon
On Tue, Oct 28, 2014 at 12:51:56PM +, Arnd Bergmann wrote: > On Tuesday 28 October 2014 12:36:11 Will Deacon wrote: > > On Tue, Oct 28, 2014 at 05:44:01AM +, Neil Zhang wrote: > > > pfns are unsigned long, but PHYS_PFN_OFFSET is phys_addr_t. This leads > > > to page_to_pfn() returning

[PATCH 31/32] perf probe: Trivial typo fix for --demangle

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Replace "Disable" with "Enable", since --demangle option enables symbol demangling, not disable it. perf probe has --demangle and --no-demangle options, but the command-line help (--help) shows only --demangle option. So it should explain about --demangle. Signed-off-by:

[PATCH 03/32] perf tools: A thread's machine can be found via thread->mg->machine

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So stop passing both machine and thread to several thread methods, reducing function signature length. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung

[PATCH 20/32] perf pmu: Add proper error handling to print_pmu_events()

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It was silently returning or printing "(null)" when no memory was available at various points. Fix it by checking and warning the user when that happens. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean

[PATCH 30/32] perf script: Add Python script to export to postgresql

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a Python script to export to a postgresql database. The script requires the Python pyside module and the Qt PostgreSQL driver. The packages needed are probably named "python-pyside" and "libqt4-sql-psql" The caller of the script must be able to create postgresql

[PATCH 08/32] perf tools: Add PARSE_OPT_DISABLED flag

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim In some cases, we need to reuse exising options with some of them disabled. To do that, add PARSE_OPT_DISABLED flag and set_option_flag() function. Signed-off-by: Namhyung Kim Acked-by: Hemant Kumar Cc: Alexander Yarygin Cc: David Ahern Cc: Hemant Kumar Cc: Ingo Molnar

[PATCH 05/32] perf callchains: Use thread->mg->machine

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The unwind__get_entries() already receives the thread parameter, from where it can obtain the matching machine structure, shorten the signature. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc:

[PATCH 14/32] perf tools: Ensure return negative value when write header error

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Wang Nan When 'perf record' write headers, it calls write_xxx in tools/perf/util/header.c, and check return value. It rolls back all working only when return value is negative. This patch ensures write_cpudesc() and write_total_mem() return negative number when error. Without this patch,

[PATCH 15/32] perf pmu: Let pmu's with no events show up on perf list

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter perf list only lists PMUs with events. Add a flag to cause a PMU to be also listed separately. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 32/32] perf probe: Add --quiet option to suppress output result message

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Add --quiet(-q) option to suppress output result message for --add, and --del options (Note that --lines/funcs/vars are not affected). This option is useful if you run the perf probe inside your scripts. Signed-off-by: Masami Hiramatsu Cc: Hemant Kumar Cc: Ingo Molnar

[PATCH 13/32] perf callchain: Use global caching provided by libunwind

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The libunwind provides two caching policy which are global and per-thread. As perf unwinds callchains in a single thread, it'd sufficient to use global caching. This speeds up my perf report from 14s to 7s on a ~260MB data file. Although the output sometimes contains a

[PATCH 21/32] perf tools: Fix report -F abort for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F abort perf: Segmentation fault Checking that hist_entry::branch_info is valid and display

[PATCH 26/32] perf tools: Fix report -F dso_to for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F dso_to perf: Segmentation fault Checking that hist_entry::branch_info is valid and display

[PATCH 25/32] perf tools: Fix report -F symbol_from for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F symbol_from perf: Segmentation fault Checking that hist_entry::branch_info is valid and

[PATCH 27/32] perf tools: Fix report -F dso_from for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F dso_from perf: Segmentation fault Checking that hist_entry::branch_info is valid and

[PATCH 09/32] perf tools: Export usage string and option table of perf record

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Those are shared with other builtin commands like kvm, script. So make it accessable from them. This is a preparation of later change that limiting possible options. Signed-off-by: Namhyung Kim Acked-by: Hemant Kumar Cc: Alexander Yarygin Cc: David Ahern Cc: Hemant

[PATCH 18/32] perf tools: Do not attempt to run perf-read-vdso32 if it wasn't built

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter popen() causes an error message to print if perf-read-vdso32 does not run. Avoid that by not trying to run it if it was not built. Ditto perf-read-vdsox32. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul

[PATCH 04/32] perf thread: Adopt resolve_callchain method from machine

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Shortening function signature lenght too, since a thread's machine can be obtained from thread->mg->machine, no need to pass thread, machine. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri

[PATCH 22/32] perf tools: Fix report -F in_tx for data without branch info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The branch field sorting code assumes hist_entry::branch_info is allocated, which is wrong and following perf session ends up with report segfault. $ perf record ls $ perf report -F in_tx perf: Segmentation fault Checking that hist_entry::branch_info is valid and display

[PATCH 29/32] perf scripting python: Extend interface to export data in a database-friendly way

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Use the new db_export facility to export data in a database-friendly way. A Python script selects the db_export mode by setting a global variable 'perf_db_export_mode' to True. The script then optionally implements functions to receive table rows. The functions are:

[PATCH 02/32] perf tools: Set thread->mg.machine in all places

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were setting this only in machine__init(), i.e. for the map_groups that holds the kernel module maps, not for the one used for a thread's executable mmaps. Now we are sure that we can obtain the machine where a thread is by going via thread->mg->machine, thus

[PATCH v2 2/5] ARM: change the corresponding arm/mach defconfigs

2014-10-28 Thread Xia Kaixu
The DEBUG_LL will get a dependency on !ARCH_MULTIPLATFORM_STRICT. So change the corresponding arm/mach defconfigs to disable ARCH_MULTIPLATFORM_STRICT and avoid break them. Signed-off-by: Xia Kaixu --- arch/arm/configs/bcm2835_defconfig | 1 + arch/arm/configs/moxart_defconfig | 1 +

[PATCH 01/32] perf tools powerpc: Cache the DWARF debug info

2014-10-28 Thread Arnaldo Carvalho de Melo
From: Sukadev Bhattiprolu Cache the DWARF debug info for DSO so we don't have to rebuild it for each address in the DSO. Note that dso__new() uses calloc() so don't need to set dso->dwfl to NULL. $ /tmp/perf.orig --version perf version 3.18.rc1.gc2661b8 $ /tmp/perf.new

[PATCH v2 5/5] ARM: use early console instead of early debug in allmodconfig kernels

2014-10-28 Thread Xia Kaixu
The early debug could break something when booting 'allmodconfig' kernels. So we use early console instead of early debug. The early console didn't work yet on OMAP4460 because of missing earlycon support and I am working on that. Signed-off-by: Xia Kaixu --- arch/arm/Kconfig.debug | 25

[PATCH v2 1/5] ARM: introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option

2014-10-28 Thread Xia Kaixu
The current allmodconfig kernel boot fails on OMAP4460. There are several configuration options that can only work on a subset of the available machines, and enabling them will break other machines that may be enabled in a multiplatform kernel. Now we introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT

[PATCH v2 0/5] ARM: get a strict multiplatform kernel that can run on any hardware

2014-10-28 Thread Xia Kaixu
The current allmodconfig kernel boot fails on OMAP4460. There are several configuration options that can only work on a subset of the available machines, and enabling them will break other machines that may be enabled in a multiplatform kernel. Now we introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT

Re: [PATCH v2 09/15] net: dsa: Add support for switch EEPROM access

2014-10-28 Thread Guenter Roeck
On 10/26/2014 09:52 AM, Guenter Roeck wrote: On some chips it is possible to access the switch eeprom. Add infrastructure support for it. Signed-off-by: Guenter Roeck --- [ ... ] @@ -603,6 +604,9 @@ static int dsa_of_probe(struct platform_device *pdev) if (pd->nr_chips >

Re: [PATCH v3 17/19] PCI: Add support for AMD Nolan USB3 DRD

2014-10-28 Thread Bjorn Helgaas
On Tue, Oct 28, 2014 at 5:54 AM, Huang Rui wrote: > This patch adds PCI id for USB3 Dual-Role Device of AMD Nolan (NL) SoC. > It will be used for PCI quirks and DWC3 device driver. > > Signed-off-by: Jason Chang > Signed-off-by: Huang Rui Acked-by: Bjorn Helgaas Please merge along with the

Re: [PATCH v5 07/29] nios2: I/O Mapping

2014-10-28 Thread Arnd Bergmann
On Friday 24 October 2014 16:24:09 Ley Foon Tan wrote: > +/* PCI is not supported in nios2, set this to 0. */ > +#define IO_SPACE_LIMIT 0 > + > +extern void outsb(unsigned long addr, const void *buf, int len); > +extern void outsw(unsigned long addr, const void *buf, int len); > +extern void

Re: [PATCHv2 6/6] net: fec: fix regression on i.MX28 introduced by rx_copybreak support

2014-10-28 Thread Lothar Waßmann
Hi, David Laight wrote: > From: Lothar Waßmann > > David Laight wrote: > > > From: Lothar Waßmann > > > > commit 1b7bde6d659d ("net: fec: implement rx_copybreak to improve rx > > > > performance") > > > > introduced a regression for i.MX28. The swap_buffer() function doing > > > > the endian

Re: [PATCH v3 18/19] PCI: Add quirk to prevent AMD NL USB3 DRD to bind with xHCI driver

2014-10-28 Thread Bjorn Helgaas
I suggest a subject like this: PCI: Prevent xHCI driver from claiming AMD Nolan USB3 DRD device On Tue, Oct 28, 2014 at 5:54 AM, Huang Rui wrote: > The AMD Nolan (NL) SoC contains a DesignWare USB3 Dual-Role Device that can > be operated either as a USB Host or a USB Device. In the AMD NL

Re: [PATCH] mmc:core: fix hs400 timing selection

2014-10-28 Thread Adrian Hunter
On 22/10/14 05:55, Chanho Min wrote: > According to JEDEC v5.01 spec (6.6.5), In order to switch to HS400 mode, > host should perform the following steps. > > 1. HS200 mode selection completed > 2. Set HS_TIMING to 0x01(High Speed) > 3. Host changes frequency to =< 52MHz > 4. Set the bus

[PATCHv3 2/9] net: fec: consistently use lower case chars as hex digits

2014-10-28 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec.h | 88 +- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 3047db4..e778b9e 100644 ---

[PATCHv3 5/9] net: fec: improve access to quirk flags by copying them into fec_enet_private struct

2014-10-28 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec.h |1 + drivers/net/ethernet/freescale/fec_main.c | 106 +++-- 2 files changed, 39 insertions(+), 68 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h

[PATCHv3 9/9] net: fec: fix regression on i.MX28 introduced by rx_copybreak support

2014-10-28 Thread Lothar Waßmann
commit 1b7bde6d659d ("net: fec: implement rx_copybreak to improve rx performance") introduced a regression for i.MX28. The swap_buffer() function doing the endian conversion of the received data on i.MX28 may access memory beyond the actual packet size in the DMA buffer. fec_enet_copybreak() does

Re: [PATCH v9 1/4] mfd: add support for Diolan DLN-2 devices

2014-10-28 Thread Octavian Purdila
On Mon, Oct 27, 2014 at 6:57 PM, Joe Perches wrote: > On Mon, 2014-10-27 at 18:31 +0200, Octavian Purdila wrote: >> This patch implements the USB part of the Diolan USB-I2C/SPI/GPIO >> Master Adapter DLN-2. Details about the device can be found here: > > trivia: > Thanks for the review Joe. >>

Re: kernel 3.17.1: fail to use USB3 device after resuming from suspend

2014-10-28 Thread Mathias Nyman
On 24.10.2014 00:13, Rafael J. Wysocki wrote: > On Thursday, October 23, 2014 10:15:50 PM Francis Moreau wrote: >> Hello, >> >> After resuming from a suspend (to RAM), I can't use an external USB hard >> drive anymore, the kernel seems to fail to detect it. >> >> Here is the kernel log when doing

[PATCHv3 7/9] net: fec: simplify loop counter handling in swap_buffer()

2014-10-28 Thread Lothar Waßmann
Eliminate the DIV_ROUND_UP() and change the loop counter increment to 4 instead. This results in saving 6 instructions in the functions assembly code. Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec_main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: Boot problems on Malta with EVA (bisected to 12220dea07f1 "mm/slab: support slab merge")

2014-10-28 Thread Markos Chandras
On 10/28/2014 01:19 PM, Markos Chandras wrote: > On 10/28/2014 01:01 PM, Joonsoo Kim wrote: >> 2014-10-28 19:45 GMT+09:00 Markos Chandras : >>> Hi, >>> >>> It seems I am unable to boot my Malta with EVA. The problem appeared in >>> the 3.18 merge window. I bisected the problem (between v3.17 and

[PATCHv3 6/9] net: fec: use swab32s() instead of cpu_to_be32()

2014-10-28 Thread Lothar Waßmann
when swap_buffer() is being called, we know for sure, that we need to byte swap the data. Also this function is called for swapping data in both directions. Thus cpu_to_be32() is semantically not correct for all use cases. Use swab32s() to reflect this. Signed-off-by: Lothar Waßmann ---

[PATCHv3 8/9] net: fec: remove unused return value from swap_buffer()

2014-10-28 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec_main.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index ddfc57d..e52864c 100644 ---

[PATCHv3 4/9] net: fec: declare bufdesc_ex flag as bool

2014-10-28 Thread Lothar Waßmann
fep->bufdesc_ex is used as boolean flag; thus declare it as such. Also remove an unnecessary initialization to 0. Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec.h |2 +- drivers/net/ethernet/freescale/fec_main.c |4 +--- 2 files changed, 2 insertions(+), 4

[PATCHv3 3/9] net: fec: properly parenthesize macro args

2014-10-28 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec.h | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index e778b9e..27e75cf 100644 ---

[PATCHv3 1/9] net: fec: indentation cleanup

2014-10-28 Thread Lothar Waßmann
consistently use TABs for indentation Signed-off-by: Lothar Waßmann --- drivers/net/ethernet/freescale/fec.h | 108 +- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h

<    3   4   5   6   7   8   9   10   11   12   >