[PATCH v4 0/2] kconfig: warn of unhandled characters in Kconfig commands

2015-07-12 Thread Andreas Ruprecht
This patchset changes the lexer file to emit a warning if any unhandled characters are found in the input. So far, Kconfig options like +config FOO bool [...] (note the wrong '+'!) were parsed without a warning. As simply adding a warning for '.' produces lots of warnings as occasionally

[PATCH v4 1/2] kconfig: warn of unhandled characters in Kconfig commands

2015-07-12 Thread Andreas Ruprecht
In Kconfig, definitions of options take the following form: " ...". COMMANDs and PARAMs are treated slightly different by the underlying parser. While commit 2e0d737fc76f ("kconfig: don't silently ignore unhandled characters") introduced a warning for unsupported characters around PARAMs, it doe

[PATCH v4 2/2] kconfig: Regenerate shipped zconf.{hash,lex}.c files

2015-07-12 Thread Andreas Ruprecht
Update the shipped files generated by flex and gperf to support the explicit use of "---help---" and to emit warnings for unsupported characters on COMMAND tokens. As I could not find out which flex/gperf version was used to generate the previous version, I used flex 2.5.35 and gperf 3.0.4 from U

[4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-12 Thread Jörg Otte
4.2.0-rc1-00201-g59c3cb5 introducued a null pointer derefence and a system freeze when Xorg is started ( 4.2.0-rc1-00062-gc4b5fd3 was fine) : BUG: unable to handle kernel NULL pointer dereference at 0009 IP: [] 0xbd3447bb PGD 0 Oops: [#1] SMP CPU: 1 PID: 1290 Comm: Xorg No

Re: [PATCH 5/7] locking/pvqspinlock: Add pending bit support

2015-07-12 Thread Peter Zijlstra
On Sat, Jul 11, 2015 at 04:36:56PM -0400, Waiman Long wrote: > Like the native qspinlock, using the pending bit when it is lightly > loaded to acquire the lock is faster than going through the PV queuing > process which is even slower than the native queuing process. It also > avoids loading two ad

Re: [PATCH 6/7] locking/qspinlock: A fairer queued unfair lock

2015-07-12 Thread Peter Zijlstra
On Sat, Jul 11, 2015 at 04:36:57PM -0400, Waiman Long wrote: > For a virtual guest with the qspinlock patch, a simple unfair byte lock > will be used if PV spinlock is not configured in or the hypervisor > isn't either KVM or Xen. Why do we care about this case enough to add over 300 lines of cod

Re: [PATCH 3/7] locking/pvqspinlock: Implement wait-early for overcommitted guest

2015-07-12 Thread Peter Zijlstra
On Sat, Jul 11, 2015 at 04:36:54PM -0400, Waiman Long wrote: > In an overcommitted guest where some vCPUs have to be halted to make > forward progress in other areas, it is highly likely that a vCPU > later in the spinlock queue will be spinning while the ones earlier in > the queue would have been

Re: [PATCH 4/7] locking/pvqspinlock: Collect slowpath lock statistics

2015-07-12 Thread Peter Zijlstra
On Sat, Jul 11, 2015 at 04:36:55PM -0400, Waiman Long wrote: > This patch enables the accumulation of kicking and waiting related > PV qspinlock statistics when the new QUEUED_LOCK_STAT configuration > option is selected. It also enables the collection of kicking and > wakeup latencies which have a

[PATCH] ARM: dts: Add STM32429i-EVAL board support

2015-07-12 Thread Maxime Coquelin
Main features of STM32429i-EVAL evaluation kit are: - STM32F429 Cortex-M4 MCU @180MHz * 2MB internal Flash * 256KB internal RAM - 32MB SDRAM - 16MB NOR Flash - 2MB SRAM - 4.3" TFT LCD with resistive touchscreen - SDCard connector (SDIO compatible) - 1x USB 2.0 OTG + 1x USB 1.1 OTG - E

[PATCH] ftrace: Format MCOUNT_ADDR address as type unsigned long

2015-07-12 Thread Minfei Huang
From: Minfei Huang Always we use type unsigned long to format the ip address, since the value of ip address is never the negative. This patch uses type unsigned long, instead of long, to format the ip address. The code is more clearly to be viewed by using type unsigned long, although it is corr

3.18.18 - synaptics.c regression

2015-07-12 Thread Nick Warne
I am just building 3.18.18, and GCC threw up a warning about 'missing curly braces' in drivers/input/mouse/synaptics.c Looking at the file, line 152 has the min_max_pnpid_table[3].board_id’ stuff missing: *snip* { (const char * const []){"LEN0034", "LEN0036", "LEN0037",

[PATCH] Fix ARM LPC32XX platform broken by older commit

2015-07-12 Thread Martin Devera
In commit a71b092a9c68685a270ebdde7b5986ba8787e575 __handle_domain_irq was introduced by Marc Zyngier. It tests hwirq on zero and rejects it. At least LPC32XX uses IRQ 0 as chained entry for SIC1. Thus all SIC1 connected devices doesn't work just now. This patch fixes it - not sure whether it is co

Re: [PATCH 2/3] PCI: host: pcie-designware: add support for suspend and resume

2015-07-12 Thread Jingoo Han
On Friday, July 03, 2015 8:04 PM, Kishon Vijay Abraham I wrote: > > Certain platforms require MSE bit to be cleared to set the master > in standby mode. (In DRA7xx TRM_vE, section 24.9.4.5.2.2.1 PCIe This patch is a work-around specific for DRA7xx chips? If so, please move this patch to 'pci-dra7

Re: [PATCH v2] backlight: lp855x: use private data for regulator control

2015-07-12 Thread Jingoo Han
On Saturday, July 11, 2015 6:11 AM, Kim, Milo wrote: > On 7/11/2015 5:52 AM, Kim, Milo wrote: > > Hi Paul, > > > > On 7/11/2015 5:49 AM, Sean Paul wrote: > >> On Fri, Jul 10, 2015 at 4:43 PM, Kim, Milo wrote: > >>> Hi Paul, > >>> > >>> > >>> On 7/11/2015 12:01 AM, Sean Paul wrote: > > On

Re: [PATCH 7/7] lib/vsprintf.c: Include clk.h

2015-07-12 Thread Geert Uytterhoeven
On Sat, Jul 11, 2015 at 1:03 AM, Stephen Boyd wrote: > This file uses the clk API so it should include clk.h directly > instead of indirectly including it through clk-provider.h. > > Cc: Geert Uytterhoeven > Signed-off-by: Stephen Boyd Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH 6/7] simplefb: Include clk.h

2015-07-12 Thread Geert Uytterhoeven
On Sat, Jul 11, 2015 at 1:03 AM, Stephen Boyd wrote: > This driver uses the consumer API, so include clk.h explicitly > instead of impliclty through the provider API. > > Cc: Luc Verhaegen > Cc: Hans de Goede > Cc: Geert Uytterhoeven > Cc: Maxime Ripard > Cc: David Herrmann > Cc: Tomi Valkein

[RFC v4 02/25] char/nvram: Use bitwise OR to obtain Atari video mode data

2015-07-12 Thread Finn Thain
Signed-off-by: Finn Thain Acked-by: Geert Uytterhoeven --- drivers/char/nvram.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/char/nvram.c === --- linux.orig/drivers/char/nvram.c 2015-07-12 20:2

[RFC v4 04/25] m68k/atari: Replace nvram_{read,write}_byte with arch_nvram_ops

2015-07-12 Thread Finn Thain
By implementing an arch_nvram_ops struct, any platform can re-use the drivers/char/nvram module without needing any arch-specific code in that module. Atari does so here. Atari has one user of nvram_check_checksum() whereas the other platforms (i.e. x86 and ARM platforms) have none at all. Replace

[RFC v4 08/25] char/nvram: Allow the set_checksum and initialize ioctls to be omitted

2015-07-12 Thread Finn Thain
The drivers/char/nvram module has previously only supported RTC "CMOS" NVRAM, for which it provides appropriate checksum ioctls. Make these ioctls optional so the module can be re-used with other kinds of NVRAM. The ops struct methods that implement the ioctls now return error codes so that a mult

[RFC v4 05/25] char/nvram: Re-order functions to remove forward declarations and #ifdefs

2015-07-12 Thread Finn Thain
Also give functions more sensible names: nvram_misc_* for misc device ops, nvram_proc_* for proc file ops and nvram_module_* for init and exit functions. This makes them distict from nvram_ops members. Signed-off-by: Finn Thain --- drivers/char/nvram.c | 194 ++-

[RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-12 Thread Finn Thain
Move the m68k-specific code elsewhere to make the driver generic. Signed-off-by: Finn Thain --- BTW, I didn't change the SCSI ID location in NVRAM. This code says 16 whereas atari_scsi says 14. Which one is correct? Changes since v3: - Move the vmode fix to a separate patch as requested by Gee

[RFC v4 25/25] m68k: Dispatch nvram_ops calls to Atari or Mac functions

2015-07-12 Thread Finn Thain
A multi-platform kernel binary needs to decide at run-time how to dispatch the arch_nvram_ops calls. Add platform-independent arch_nvram_ops, for use when multiple platform-specific NVRAM ops implementations are needed. Enable CONFIG_HAVE_ARCH_NVRAM_OPS for Macs. Signed-off-by: Finn Thain ---

[RFC v4 21/25] powerpc: Adopt nvram module for PPC64

2015-07-12 Thread Finn Thain
Adopt nvram module to reduce code duplication. The IOC_NVRAM_GET_OFFSET ioctl as implemented on PPC64 validates the offset returned by pmac_get_partition(). Add this test to the nvram module. Note that the old PPC32 generic_nvram module lacked this test. So when CONFIG_PPC32 && CONFIG_PPC_PMAC, t

[RFC v4 20/25] char/generic_nvram: Remove as unused

2015-07-12 Thread Finn Thain
And thus eliminate some twisted CONFIG_GENERIC_NVRAM logic. Signed-off-by: Finn Thain --- drivers/char/Makefile|6 - drivers/char/generic_nvram.c | 176 --- 2 files changed, 1 insertion(+), 181 deletions(-) Index: linux/drivers/char/Makefile

[RFC v4 19/25] powerpc: Remove CONFIG_GENERIC_NVRAM and adopt CONFIG_HAVE_ARCH_NVRAM_OPS

2015-07-12 Thread Finn Thain
Switch PPC32 kernels from the generic_nvram module to the nvram module. Also fix a theoretical bug where CHRP omits the chrp_nvram_init() call when CONFIG_NVRAM_MODULE=m. As before, when CONFIG_PPC && !CONFIG_PPC_PMAC, the IOC_NVRAM_GET_OFFSET ioctl is unimplemented. For the nvram module, unimple

[RFC v4 23/25] m68k/mac: Use macros for RTC accesses not magic numbers

2015-07-12 Thread Finn Thain
Signed-off-by: Finn Thain --- This is intended to improve code style and not affect code behaviour. I've tested this on a Quadra 650. I don't know the meanings of the 4 undocumented write protect register bits 0x55, so I decided against defining 4 macros for those bits. --- arch/m68k/mac/misc

[RFC v4 22/25] m68k/mac: Adopt naming and calling conventions for PRAM routines

2015-07-12 Thread Finn Thain
Adopt the existing *_read_byte and *_write_byte naming convention. Rename via_pram_readbyte and via_pram_writebyte to avoid confusion. Adjust calling conventions of mac_pram_* functions to match the arch_nvram_ops struct methods. Signed-off-by: Finn Thain --- Changes since v1: - Don't introduce

[RFC v4 17/25] powerpc, fbdev: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-07-12 Thread Finn Thain
Make use of arch_nvram_ops in device drivers so that the nvram_* function exports can be removed. Since they are no longer global symbols, rename the PPC32 nvram_* functions appropriately. Add the missing CONFIG_NVRAM test to imsttfb to avoid a build failure. Signed-off-by: Finn Thain --- arc

[RFC v4 13/25] powerpc: Cleanup nvram includes

2015-07-12 Thread Finn Thain
The nvram_read_byte() and nvram_write_byte() definitions in asm/nvram.h duplicate those in linux/nvram.h. Get rid of the former to prepare for adoption of struct arch_nvram_ops (which is defined in linux/nvram.h for general use). Signed-off-by: Finn Thain --- arch/powerpc/include/asm/nvram.h

[RFC v4 24/25] m68k/mac: Fix PRAM accessors

2015-07-12 Thread Finn Thain
Signed-off-by: Finn Thain --- Tested on a PowerBook 520 and Quadra 650. Changes since v2: - Make use of the RTC_* macros from the previous patch and add a few more besides. --- arch/m68k/mac/misc.c | 39 +-- include/uapi/linux/pmu.h |2 ++ 2 files

[RFC v4 18/25] nvram: Drop nvram_* symbol exports and prototypes

2015-07-12 Thread Finn Thain
Drivers now use the arch_nvram_ops calls so remove the function exports and prototypes. nvram_check_checksum() is unused so remove it. Signed-off-by: Finn Thain --- arch/m68k/atari/nvram.c |6 +++--- drivers/char/nvram.c| 27 +-- include/linux/nvram.h |8

[RFC v4 15/25] powerpc: Implement arch_nvram_ops.get_size() and remove old nvram_* exports

2015-07-12 Thread Finn Thain
Implement arch_nvram_ops for PPC32 and make use of it in the generic_nvram misc device module so that the nvram_* function exports can be removed. Signed-off-by: Finn Thain --- arch/powerpc/include/asm/nvram.h |3 --- arch/powerpc/kernel/setup_32.c | 10 +++--- drivers/char/generic_

[RFC v4 14/25] powerpc: Add missing ppc_md.nvram_size for CHRP and PowerMac

2015-07-12 Thread Finn Thain
Add the nvram_size() function to those PowerPC platforms that don't already have one: CHRP and PowerMac. This means that the ppc_md.nvram_size() function can be used to implement arch_nvram_ops.get_size() Since we are addressing inconsistencies here, also rename chrp_nvram_read and chrp_nvram_writ

[RFC v4 12/25] char/nvram: Add "devname:nvram" module alias

2015-07-12 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/char/nvram.c |1 + 1 file changed, 1 insertion(+) Index: linux/drivers/char/nvram.c === --- linux.orig/drivers/char/nvram.c 2015-07-12 20:25:05.0 +1000 +++ linux/drivers/char/nv

[RFC v4 16/25] powerpc: Implement nvram sync ioctl

2015-07-12 Thread Finn Thain
Add the powerpc-specific sync() method to struct nvram_ops and implement the corresponding ioctl in the nvram module. This allows the nvram module to replace the generic_nvram module. Signed-off-by: Finn Thain --- On PPC32, the IOC_NVRAM_SYNC ioctl call always returns 0, even for those platform

[RFC v4 06/25] char/nvram: Adopt arch_nvram_ops

2015-07-12 Thread Finn Thain
Different platforms and architectures offer different NVRAM sizes and access methods. E.g. PPC32 has byte-at-a-time read/write functions whereas PPC64 has byte-range read/write functions. Adopt the nvram_ops struct so the nvram module can call such functions as are defined by the various platforms

[RFC v4 10/25] char/nvram: Use generic fixed_size_llseek()

2015-07-12 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/char/nvram.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) Index: linux/drivers/char/nvram.c === --- linux.orig/drivers/char/nvram.c 2015-07-12 20:25:03.0

[RFC v4 07/25] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-07-12 Thread Finn Thain
Make use of arch_nvram_ops in the thinkpad_acpi driver so that the nvram_* function exports can be removed. This patch series was tested on a ThinkPad T43. Signed-off-by: Finn Thain Acked-by: Henrique de Moraes Holschuh Reviewed-by: Darren Hart --- drivers/platform/x86/thinkpad_acpi.c | 20

[RFC v4 11/25] m68k/atari: Implement arch_nvram_ops methods and enable CONFIG_HAVE_ARCH_NVRAM_OPS

2015-07-12 Thread Finn Thain
Atari RTC NVRAM has a checksum so implement the remaining arch_nvram_ops methods for the set_checksum and initialize ioctls. Enable CONFIG_HAVE_ARCH_NVRAM_OPS. Signed-off-by: Finn Thain --- This re-enables the nvram module for Atari. Changes since v3: - Use bool (and select) instead of def_boo

[RFC v4 00/25] Re-use nvram module

2015-07-12 Thread Finn Thain
The generic NVRAM module, drivers/char/generic_nvram, implements a /dev/nvram misc device. It is used only by 32-bit PowerPC platforms and isn't generic enough to be more widely used. The RTC NVRAM module, drivers/char/nvram, also implements a /dev/nvram misc device. It is used by x86, ARM and m6

[RFC v4 09/25] char/nvram: Implement NVRAM read/write methods

2015-07-12 Thread Finn Thain
Refactor the RTC "CMOS" NVRAM functions so that they can be used as arch_nvram_ops methods. Checksumming logic is moved from the misc device operations to the nvram read/write operations. This makes the misc device implementation more generic. This also preserves the locking semantics such that "r

[RFC v4 01/25] scsi/atari_scsi: Dont select CONFIG_NVRAM

2015-07-12 Thread Finn Thain
On powerpc, setting CONFIG_NVRAM=n builds a kernel with no NVRAM support. Setting CONFIG_NVRAM=m enables the /dev/nvram misc device module without enabling NVRAM support in drivers. Setting CONFIG_NVRAM=y enables the misc device (built-in) and also enables NVRAM support in drivers. m68k shares the

[PATCH 2/2] Add clock support for NXP LPC32XX SPI

2015-07-12 Thread Martin Devera
Clock support for SPIs on LPC32XX SoC. --- arch/arm/mach-lpc32xx/clock.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index dd5d6f5..672c9b3 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-l

[PATCH 1/2] Add NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
This SPI device is found at least on NXP LPC32XX ARM family. It has 64 entry FIFO and is quite fast when using only IRQ. The driver uses generic SPI and OF frameworks to minimize its size. It is tested in HW (SPI flash with JFFS2). --- .../devicetree/bindings/spi/spi_lpc32xx.txt| 32 +++

[PATCH] Cleanup of NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
Debug code is removed. --- drivers/spi/spi-lpc32xx.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/spi/spi-lpc32xx.c b/drivers/spi/spi-lpc32xx.c index 5c6b1ca..11b2c21 100644 --- a/drivers/spi/spi-lpc32xx.c +++ b/drivers/spi/spi-lpc32xx.c @@ -71,15 +71,6 @@ struct

cpu_hotplug vs oom_notify_list: possible circular locking dependency detected

2015-07-12 Thread Marcin Ślusarz
[28954.363492] == [28954.363492] [ INFO: possible circular locking dependency detected ] [28954.363494] 4.1.2 #56 Not tainted [28954.363494] --- [28954.363495] pm-suspend/16647 is trying to acqui

Re: [RFC Patch V1 08/12] PCI: Use helper functions to access fields in struct msi_desc

2015-07-12 Thread Jingoo Han
On Thursday, July 09, 2015 5:01 PM, Jiang Liu wrote: > > Use helper functions to access fields in struct msi_desc, so we could > easily refine msi_desc later. > > Signed-off-by: Jiang Liu For pcie-designware.c, Acked-by: Jingoo Han Best regards, Jingoo Han > --- > drivers/pci/host/pci-keys

Re: [PATCH v2 1/4] tools: iio: Move printf failure messages to stderr

2015-07-12 Thread Cristina Georgiana Opriceana
On Sat, Jul 11, 2015 at 12:42 AM, Hartmut Knaack wrote: > Cristina Opriceana schrieb am 10.07.2015 um 12:56: >> Replace printf error messages with fprintf(stderr, ...) in order >> to ensure consistency and to make faults easier to identify. >> This patch uses coccinelle to detect and apply the cha

E-m@il paccылки дешево

2015-07-12 Thread Беата
MAIL PEKLAMA OT 1500 PYB vip.tacanuu...@mail.ru -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v3 0/5]

2015-07-12 Thread Taeung Song
Changes in v3: - builtin-config.c: Add a config variable ’kmem.default’ with a default value into ‘struct default_configset’ which has default config variables and values. - cmd_config(): Add a option ‘—global’ and ‘—local’ to enable config file location to be selected

[PATCH v3 1/5] perf tools: Add 'perf-config' command

2015-07-12 Thread Taeung Song
The perf configuration file contains many variables which can make the perf command's action more effective. But looking through state of configuration is difficult and there's no knowing what kind of other variables except variables in perfconfig.example exist. So This patch adds 'perf-config' com

[PATCH v3 4/5] perf config: Add a option 'remove' to perf-config.

2015-07-12 Thread Taeung Song
A option 'remove' is to remove specific config variables. For the syntax examples, # perf config -r | --remove [section.name ...] Signed-off-by: Taeung Song --- tools/perf/Documentation/perf-config.txt | 6 ++ tools/perf/builtin-config.c | 25 - 2 f

[PATCH v3 2/5] perf config: Add functions which can get or set perf config variables.

2015-07-12 Thread Taeung Song
This patch consists of functions which can get, set specific config variables. For the syntax examples, perf config [options] [section.name[=value] ...] display key-value pairs of specific config variables # perf config report.queue-size report.children set specific config variables

[PATCH v3 3/5] perf config: Add a option 'list-all' to perf-config.

2015-07-12 Thread Taeung Song
A option 'list-all' is to display both current config variables and all possible config variables with default values. The syntax examples are like below perf config [options] display all perf config with default values. # perf config -a | --list-all Signed-off-by: Taeung Song ---

[PATCH v3 5/5] perf config: Add '--system' and '--global' options to be able to select which config file to be used.

2015-07-12 Thread Taeung Song
Which config file is used is decided at only perf_config(). That's why a config file to be used can't be selected among system and global config file when perf-config commands get or set it. So add '--system' and '--global' options to select which config file to be used when getting, setting or et

[PATCH] x86/mm: Assign the initail value to the pmd_idx

2015-07-12 Thread Minfei Huang
From: Minfei Huang The variable pmd_idx is undefined, when we try to start the loop to calculate the page. Assign the proper value which indexes the start address to make it work well. Signed-off-by: Minfei Huang --- arch/x86/mm/init_32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ar

[PATCH] Staging: vt6655: Remove do { } while (0) from single-statement macros in upc.h.

2015-07-12 Thread Nicholas Parkanyi
This patch fixes checkpatch.pl warnings in upc.h regarding single-statement macros embedded within do { } while (0) blocks. Signed-off-by: Nicholas Parkanyi --- drivers/staging/vt6655/upc.h | 36 1 file changed, 12 insertions(+), 24 deletions(-) diff --git

Re: [PATCH v2 1/4] tools: iio: Move printf failure messages to stderr

2015-07-12 Thread Julia Lawall
> Yes, I could have included all in a single patch, but I tried to > automatize this task and build a rather generic semantic patch in > coccinelle for the substitutions. Had I included all in one patch, the > changes with coccinelle wouldn't have been differentiated from the > other ones. If that

Re: [PATCH][v2] asus-rbtn: new driver for asus radio button for Windows 8

2015-07-12 Thread Corentin Chary
On Fri, Jul 10, 2015 at 3:52 AM, Alex Hung wrote: > On Fri, Jul 10, 2015 at 4:52 AM, Darren Hart wrote: >> On Tue, Jul 07, 2015 at 04:25:18PM +0200, Pali Rohár wrote: >>> On Monday 06 July 2015 15:43:28 Darren Hart wrote: >>> > On Mon, Jul 06, 2015 at 09:35:40AM +0800, Alex Hung wrote: >>> > > AT

Re: [PATCH v2 1/4] tools: iio: Move printf failure messages to stderr

2015-07-12 Thread Hartmut Knaack
Cristina Georgiana Opriceana schrieb am 12.07.2015 um 13:38: > On Sat, Jul 11, 2015 at 12:42 AM, Hartmut Knaack wrote: >> Cristina Opriceana schrieb am 10.07.2015 um 12:56: >>> Replace printf error messages with fprintf(stderr, ...) in order >>> to ensure consistency and to make faults easier to i

[PATCH] Staging: vt6655: Replace C99 comments in rf.h and rf.c.

2015-07-12 Thread Nicholas Parkanyi
This patch replaces C99 comments in rf.h and rf.c, with C89 comments, fixing the checkpatch.pl errors. Signed-off-by: Nicholas Parkanyi --- drivers/staging/vt6655/rf.c | 532 ++-- drivers/staging/vt6655/rf.h | 24 +- 2 files changed, 278 insertions(+), 27

Re: [PATCH RFC V2 3/5] perf,tool: partial time support

2015-07-12 Thread Jiri Olsa
On Tue, Jul 07, 2015 at 06:19:03AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > When multiple events are sampled it may not be needed to collect fine > grained time stamps on all events. The sample sites are usually nearby. > It's enough to have time stamps on the regular reference eve

Re: [PATCH v2 1/4] tools: iio: Move printf failure messages to stderr

2015-07-12 Thread Cristina Georgiana Opriceana
On Sun, Jul 12, 2015 at 4:07 PM, Hartmut Knaack wrote: > Cristina Georgiana Opriceana schrieb am 12.07.2015 um 13:38: >> On Sat, Jul 11, 2015 at 12:42 AM, Hartmut Knaack wrote: >>> Cristina Opriceana schrieb am 10.07.2015 um 12:56: Replace printf error messages with fprintf(stderr, ...) in o

Re: [PATCH v2 1/4] media: pxa_camera: fix the buffer free path

2015-07-12 Thread Guennadi Liakhovetski
Hi Robert, On Sun, 5 Jul 2015, Robert Jarzmik wrote: > From: Robert Jarzmik > > Fix the error path where the video buffer wasn't allocated nor > mapped. In this case, in the driver free path don't try to unmap memory > which was not mapped in the first place. Have I missed your reply to my com

Automated search for inline bloat

2015-07-12 Thread Denys Vlasenko
The scripts are in attached tarball. Is there interest in putting them in, say, scripts/inline_bloat/ in the kernel tree? Inline hunting. There are outrageously big inlines in kernel. Finding them by hand is inefficient, if you want to handle

Re: [PATCH v2 3/4] media: pxa_camera: trivial move of dma irq functions

2015-07-12 Thread Guennadi Liakhovetski
On Sun, 5 Jul 2015, Robert Jarzmik wrote: > From: Robert Jarzmik > > This moves the dma irq handling functions up in the source file, so that > they are available before DMA preparation functions. It prepares the > conversion to DMA engine, where the descriptors are populated with these > functi

[PATCH v2 04/13] gpio: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 12/13] ARM: remove ununsed set_irq_flags

2015-07-12 Thread Rob Herring
Now that all users of set_irq_flags and custom flags are converted to genirq functions, the ARM specific set_irq_flags can be removed. Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Tested-by: Kevin Hilman --- arch/arm/include/asm/hw_irq.h | 6 -- arc

[PATCH v2 10/13] pinctrl: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 13/13] arm64: remove ununsed set_irq_flags

2015-07-12 Thread Rob Herring
Now that all users of set_irq_flags and custom flags are converted to genirq functions, the ARM specific set_irq_flags can be removed. Signed-off-by: Rob Herring Acked-by: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/include/asm/hardirq.h | 5 - 1

[PATCH v2 09/13] PCI: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 08/13] mfd: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 05/13] gpu/drm: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 11/13] sh: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 06/13] irqchip: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 01/13] ARM: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 07/13] memory: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 03/13] dma: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 02/13] clk: kill off set_irq_flags usage

2015-07-12 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -> !IRQ_NOREQUEST IRQF_PROBE -> !IRQ_NOPROBE IRQF_NOAUTOEN -> IRQ_NOAUTOEN For

[PATCH v2 00/13] Kill off set_irq_flags

2015-07-12 Thread Rob Herring
This series converts all users of ARM specific set_irq_flags to use common genirq functions. set_irq_flags is just a wrapper around irq_modify_status, so this simply removes the wrapper to directly call irq_modify_status (or other helpers) and the translation from ARM specific flags to genirq flags

Re: [PATCH v3 2/5] perf config: Add functions which can get or set perf config variables.

2015-07-12 Thread Jiri Olsa
On Sun, Jul 12, 2015 at 02:10:56PM +0900, Taeung Song wrote: > This patch consists of functions > which can get, set specific config variables. > For the syntax examples, > >perf config [options] [section.name[=value] ...] > >display key-value pairs of specific config variables ># per

Re: [PATCH v2 09/13] PCI: kill off set_irq_flags usage

2015-07-12 Thread Jingoo Han
On Sunday, July 12, 2015 11:27 PM, Rob Herring wrote: > > set_irq_flags is ARM specific with custom flags which have genirq > equivalents. Convert drivers to use the genirq interfaces directly, so we > can kill off set_irq_flags. The translation of flags is as follows: > > IRQF_VALID -> !IRQ_NORE

Re: [PATCH v2 3/4] media: pxa_camera: trivial move of dma irq functions

2015-07-12 Thread Robert Jarzmik
Guennadi Liakhovetski writes: >> diff --git a/drivers/media/platform/soc_camera/pxa_camera.c >> b/drivers/media/platform/soc_camera/pxa_camera.c >> index c0c0f0f..1ab4f9d 100644 >> --- a/drivers/media/platform/soc_camera/pxa_camera.c >> +++ b/drivers/media/platform/soc_camera/pxa_camera.c >> @@

Re: [PATCH v2 1/4] media: pxa_camera: fix the buffer free path

2015-07-12 Thread Robert Jarzmik
Guennadi Liakhovetski writes: > Hi Robert, > > On Sun, 5 Jul 2015, Robert Jarzmik wrote: > >> From: Robert Jarzmik >> >> Fix the error path where the video buffer wasn't allocated nor >> mapped. In this case, in the driver free path don't try to unmap memory >> which was not mapped in the first

Re: [RFC] freeing unlinked file indefinitely delayed

2015-07-12 Thread Al Viro
On Wed, Jul 08, 2015 at 10:41:43AM -0500, Ben Myers wrote: > The bug rings a bell for me so I will stick my neck out instead of > lurking. Don't you need to sample that link count under the filesystems > internal lock in order to avoid an unlink/iget race? I suggest creating > a helper to prune

[PATCH] bug: Fix build error in V4.2-RC1

2015-07-12 Thread Larry Finger
If CONFIG_BUG is not defined, then macro __WARN is not defined. This shows as the following build error: CC [M] drivers/media/v4l2-core/videobuf2-core.o drivers/media/v4l2-core/videobuf2-core.c: In function ‘vb2_warn_zero_bytesused’: drivers/media/v4l2-core/videobuf2-core.c:1253:2: error: impli

Re: [PATCH 1/4] media: pxa_camera: fix the buffer free path (fwd)

2015-07-12 Thread Guennadi Liakhovetski
Hi Robert, No idea why this mail hasn't been delivered... Sorry, resending. Thanks Guennadi -- Forwarded message -- Date: Sun, 31 May 2015 21:34:50 +0200 (CEST) From: Guennadi Liakhovetski Subject: Re: [PATCH 1/4] media: pxa_camera: fix the buffer free path Hi Robert, Thanks f

Re: [RFC] freeing unlinked file indefinitely delayed

2015-07-12 Thread Al Viro
On Thu, Jul 09, 2015 at 07:26:44PM +0800, Ian Kent wrote: > > But the dentrys that will most likely face summary execution will be > > hashed, such as was the case on that 2.6.32 kernel at dput(). > > > > Doesn't that mean that something dropped the dentry after the dput(), > > that will now also

Re: [PATCH v2 10/13] pinctrl: kill off set_irq_flags usage

2015-07-12 Thread Tomasz Figa
Hi, 2015-07-12 23:26 GMT+09:00 Rob Herring : > set_irq_flags is ARM specific with custom flags which have genirq > equivalents. Convert drivers to use the genirq interfaces directly, so we > can kill off set_irq_flags. The translation of flags is as follows: > > IRQF_VALID -> !IRQ_NOREQUEST > IRQF

Re: [PATCH] bug: Fix build error in V4.2-RC1

2015-07-12 Thread Joe Perches
On Sun, 2015-07-12 at 10:00 -0500, Larry Finger wrote: > If CONFIG_BUG is not defined, then macro __WARN is not defined. [] > diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h [] > @@ -137,6 +137,7 @@ extern void warn_slowpath_null(const char *file, const > int line); > +#define

Re: [PATCH] bug: Fix build error in V4.2-RC1

2015-07-12 Thread Larry Finger
On 07/12/2015 10:52 AM, Joe Perches wrote: On Sun, 2015-07-12 at 10:00 -0500, Larry Finger wrote: If CONFIG_BUG is not defined, then macro __WARN is not defined. [] diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h [] @@ -137,6 +137,7 @@ extern void warn_slowpath_null(const

[git pull] vfs.git fixes for -rc2

2015-07-12 Thread Al Viro
Fixes for this cycle regression in overlayfs and a couple of long-standing (== all the way back to 2.6.12, at least) bugs. Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus Shortlog: Al Viro (3): 9p: don't leave a half-initialized inode sitting a

Re: [4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-12 Thread Jörg Otte
2015-07-12 10:03 GMT+02:00 Jörg Otte : > 4.2.0-rc1-00201-g59c3cb5 introducued a null pointer derefence and a > system freeze > when Xorg is started ( 4.2.0-rc1-00062-gc4b5fd3 was fine) : > > BUG: unable to handle kernel NULL pointer dereference at 0009 > IP: [] 0xbd3447bb > PGD

Re: [PATCH v2 06/13] irqchip: kill off set_irq_flags usage

2015-07-12 Thread Thomas Gleixner
On Sun, 12 Jul 2015, Rob Herring wrote: > set_irq_flags is ARM specific with custom flags which have genirq > equivalents. Convert drivers to use the genirq interfaces directly, so we > can kill off set_irq_flags. The translation of flags is as follows: > > IRQF_VALID -> !IRQ_NOREQUEST > IRQF_PRO

Re: [PATCH v2 00/13] Kill off set_irq_flags

2015-07-12 Thread Thomas Gleixner
On Sun, 12 Jul 2015, Rob Herring wrote: > This series converts all users of ARM specific set_irq_flags to use > common genirq functions. set_irq_flags is just a wrapper around > irq_modify_status, so this simply removes the wrapper to directly call > irq_modify_status (or other helpers) and the tra

Re: [4.2.0-rc1-00201-g59c3cb5] Regression: kernel NULL pointer dereference

2015-07-12 Thread Linus Torvalds
On Sun, Jul 12, 2015 at 1:03 AM, Jörg Otte wrote: > > BUG: unable to handle kernel NULL pointer dereference at 0009 > IP: [] 0xbd3447bb Ugh. Please enable KALLSYMS to get sane symbols. But yes, "crtc_state->base.active" is at offset 9 from "crtc_state", so it's pretty clearly

Re: [PATCH v2 4/4] media: pxa_camera: conversion to dmaengine

2015-07-12 Thread Guennadi Liakhovetski
Hi Robert, On Sun, 5 Jul 2015, Robert Jarzmik wrote: > Convert pxa_camera to dmaengine. This removes all DMA registers > manipulation in favor of the more generic dmaengine API. > > The functional level should be the same as before. The biggest change is > in the videobuf_sg_splice() function, w

Re: [PATCH v3 01/10] KVM: MMU: fix decoding cache type from MTRR

2015-07-12 Thread Alex Williamson
On Wed, 2015-05-13 at 14:42 +0800, Xiao Guangrong wrote: > There are some bugs in current get_mtrr_type(); > 1: bit 1 of mtrr_state->enabled is corresponding bit 11 of >IA32_MTRR_DEF_TYPE MSR which completely control MTRR's enablement >that means other bits are ignored if it is cleared > >

Re: [PATCH v2 4/4] media: pxa_camera: conversion to dmaengine

2015-07-12 Thread Robert Jarzmik
Guennadi Liakhovetski writes: >> /* init DMA for Y channel */ > > How about taking the loop over the sg list out of pxa_init_dma_channel() > to avoid having to iterate it from the beginning each time? Then you would > be able to split it into channels inside that global loop? Would

[PATCHSET v2 block/for-4.3] blkcg: blkcg stats cleanup

2015-07-12 Thread Tejun Heo
Hello, This is v2 of blkcg stats cleanup patchset. Changes from the last take[L] are * The following patches added to consolidate blkcg entry point and blkg creation. This is in itself is an improvement and helps colllecting common stats on bio issue. 0002-blkcg-inline-__-blkg_lookup.pat

  1   2   3   >