[PATCH] kbuild: provide include/asm/asm-prototypes.h for ARM

2016-10-17 Thread Arnd Bergmann
This adds an asm/asm-prototypes.h header for ARM to fix the broken symbol versioning for symbols exported from assembler files. In addition to the header, we have to do these other small changes: - move the 'extern' declarations out of memset_io/memcpy_io to make them visible to the symbol

Re: [PATCH] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-10-17 Thread Geert Uytterhoeven
Hi Shimoda-san, On Mon, Oct 17, 2016 at 9:10 AM, Yoshihiro Shimoda wrote: > This patch adds sysfs "otg_inputs" for usb role swap. This parameter > is write-only and if you use them as the following, you can swap > the usb role. Thank you for your patch! > For example: > 1) connect a usb cable

[PATCH 1/3] arm: hisi: add ARCH_MULTI_V5 support

2016-10-17 Thread Pan Wen
Add support for some HiSilicon SoCs which depend on ARCH_MULTI_V5. Signed-off-by: Pan Wen --- arch/arm/mach-hisi/Kconfig | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig index a3b091a..03d8379 100644 ---

[PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2016-10-17 Thread Pan Wen
Add dts files for Hi3516CV300 demo board. Signed-off-by: Pan Wen --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/hi3516cv300-demb.dts | 148 arch/arm/boot/dts/hi3516cv300.dtsi | 397 + 3 files changed, 546 insertions(+)

Re: [PATCH] shmem: avoid huge pages for small files

2016-10-17 Thread Kirill A. Shutemov
On Mon, Oct 17, 2016 at 03:18:09PM +0300, Kirill A. Shutemov wrote: > diff --git a/mm/shmem.c b/mm/shmem.c > index ad7813d73ea7..c69047386e2f 100644 > --- a/mm/shmem.c > +++ b/mm/shmem.c > @@ -369,6 +369,7 @@ static bool shmem_confirm_swap(struct address_space > *mapping, > /* ifdef here to

Re: [PATCH 2/2] ARM: dts: da850: add a node for the LCD controller

2016-10-17 Thread Tomi Valkeinen
On 17/10/16 14:40, Laurent Pinchart wrote: > Hello, > > On Monday 17 Oct 2016 10:33:58 Tomi Valkeinen wrote: >> On 17/10/16 10:12, Sekhar Nori wrote: >>> On Monday 17 October 2016 11:26 AM, Tomi Valkeinen wrote: On 15/10/16 20:42, Sekhar Nori wrote: >> diff --git

[PATCH 2/3] thermal/intel_powerclamp: Convert the kthread to kthread worker API

2016-10-17 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It

[PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-10-17 Thread Petr Mladek
From: Sebastian Andrzej Siewior This is a conversation to the new hotplug state machine with the difference that CPU_DEAD becomes CPU_PREDOWN. At the same time it makes the handling of the two states symmetrical. stop_power_clamp_worker() is called unconditionally and the controversial error

[PATCH 0/3] thermal/intel_powerclamp: Conversion to kthread worker API and new CPU hotplug state

2016-10-17 Thread Petr Mladek
The kthread worker API enhancements are in 4.9-rc1. Therefore we could finally convert the intel_powerclamp kthreads to it. The API hides a rather tricky code for the sleeping, freezing, and exiting checks. It should help to avoid races and maintain these operations. Sebastian asked me to send

[PATCH 1/3] thermal/intel_powerclamp: Remove duplicated code that starts the kthread

2016-10-17 Thread Petr Mladek
This patch removes a code duplication. It does not modify the functionality. Signed-off-by: Petr Mladek CC: Zhang Rui CC: Eduardo Valentin CC: Jacob Pan CC: Sebastian Andrzej Siewior CC: linux...@vger.kernel.org Acked-by: Jacob Pan --- drivers/thermal/intel_powerclamp.c | 45

Re: [PATCH] usb: ehci-platform: increase EHCI_MAX_RSTS to 4

2016-10-17 Thread Greg Kroah-Hartman
On Mon, Oct 17, 2016 at 08:11:59PM +0900, Masahiro Yamada wrote: > Socionext LD11 SoC (arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi) > needs to handle 4 reset lines for EHCI. Why? What makes it different from other EHCI implementations? thanks, greg k-h

[PATCH] lpfc: use %zd format string for size_t

2016-10-17 Thread Arnd Bergmann
A recent bugfix introduced a harmless warning in the lpfc driver: drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware': drivers/scsi/lpfc/lpfc_logmsg.h:56:45: error: format '%ld' expects argument of type 'long int', but argument 9 has type 'size_t {aka const unsigned int}'

[PATCH] rtc: cmos: remove all __exit_p annotations

2016-10-17 Thread Corentin Labbe
I got the following stack trace under qemu: [7.575243] BUG: unable to handle kernel NULL pointer dereference at 0010 [7.596098] IP: [] cmos_set_alarm+0x38/0x280 [7.615699] PGD 3ccbe067 [7.615923] PUD 3daf2067 [7.635156] PMD 0 [7.654358] Oops: [#1] SMP [

Re: ARM64-cpuinfo: Combine six calls for sequence output into one seq_printf() call in c_show()

2016-10-17 Thread Mark Rutland
On Mon, Oct 17, 2016 at 01:30:59PM +0200, SF Markus Elfring wrote: > >> Some data were printed into a sequence by six separate function calls. > >> Print the same data by a single function call instead. > > > > ... why? > > > > Beyond simply having fewer function calls, is there an upside? > >

[RFC PATCH 0/3] ARM: dts: oxnas: Update support for OX820 and use dt-bindings

2016-10-17 Thread Neil Armstrong
This patchset updates the ARM DTS for the Oxnas platform by : - Add support for the Oxford Semicondutor OX820 and the PogoPlug V3 - Update the OX810SE to use the dt-bindings includes files introduced in [1] and [2] - Fix the MAINTAINERS entry and add the PogoPlug V3 file maintainance This

[RFC PATCH 3/3] MAINTAINERS: oxnas: Add new files definitions

2016-10-17 Thread Neil Armstrong
Fix the dts files maintained by the OXNAS platform, add a new board. Signed-off-by: Neil Armstrong --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 71aa5da..9f4bc60 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1444,8 +1444,9

[RFC PATCH 1/3] ARM: dts: Add support for OX820 and Pogoplug V3

2016-10-17 Thread Neil Armstrong
Add device tree for the Oxford Seminconductor OX820 SoC and the Cloud Engines PogoPlug v3 board. Add the SoC and board compatible strings to oxnas bindings. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/oxnas.txt| 5 + arch/arm/boot/dts/Makefile

[RFC PATCH 2/3] ARM: dts: OX810: Update with dt-bindings includes

2016-10-17 Thread Neil Armstrong
Add OX810SE dt-bindings includes files for clocks and resets, replace resets numbers by human readable defines. Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/ox810se.dtsi | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/ox810se.dtsi

Re: [PATCH] rtc: cmos: remove all __exit_p annotations

2016-10-17 Thread Lars-Peter Clausen
> -static void __exit cmos_exit(void) > +static void cmos_exit(void) This annotation is correct and should stay. > { > #ifdef CONFIG_PNP > if (pnp_driver_registered) >

Re: [PATCH 2/2] ARM: dts: da850: add a node for the LCD controller

2016-10-17 Thread Laurent Pinchart
Hi Tomi, On Monday 17 Oct 2016 15:29:23 Tomi Valkeinen wrote: > On 17/10/16 14:40, Laurent Pinchart wrote: > > On Monday 17 Oct 2016 10:33:58 Tomi Valkeinen wrote: > >> On 17/10/16 10:12, Sekhar Nori wrote: > >>> On Monday 17 October 2016 11:26 AM, Tomi Valkeinen wrote: > On 15/10/16 20:42,

Re: [PATCHv2 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-17 Thread Mark Rutland
On Wed, Oct 12, 2016 at 03:32:02PM -0700, Laura Abbott wrote: > +config DEBUG_WX > + bool "Warn on W+X mappings at boot" > + select ARM64_PTDUMP_CORE > + ---help--- > + Generate a warning if any W+X mappings are found at boot. > + > + This is useful for discovering cases

[PATCH] spi: dspi: clear SPI_SR before enable interrupt

2016-10-17 Thread Yuan Yao
From: Yuan Yao Once dspi is used in uboot, the SPI_SR have been set by some value. At this time, if kernel enable the interrupt before clear the status flag, that will trigger the wrong interrupt. Signed-off-by: Yuan Yao --- drivers/spi/spi-fsl-dspi.c | 7 +++ 1 file changed, 7

linux-next: Moving mmc tree to kernel.org

2016-10-17 Thread Ulf Hansson
Hi Stephen, I have moved my mmc tree from linaro.org to kernel.org and I would appreciate if you could switch to pull my next branch for linux-next from there instead. Old tree: git://git.linaro.org/people/ulf.hansson/mmc.git next New tree

Re: Oops on Power8 (was Re: [PATCH v2 1/7] workqueue: make workqueue available early during boot)

2016-10-17 Thread Balbir Singh
On 17/10/16 23:24, Michael Ellerman wrote: > Tejun Heo writes: > >> Hello, Michael. >> >> On Tue, Oct 11, 2016 at 10:22:13PM +1100, Michael Ellerman wrote: >>> The oops happens because we're in enqueue_task_fair() and p->se->cfs_rq >>> is NULL. >>> >>> The cfs_rq is NULL because we did

Re: ARM64-cpuinfo: Combine six calls for sequence output into one seq_printf() call in c_show()

2016-10-17 Thread SF Markus Elfring
> I prefer the code as-is. Unless there's a compelling reason to change it. Is the chance for faster log output interesting enough? Regards, Markus

[PATCH] MAINTAINERS: mmc: Move the mmc tree to kernel.org

2016-10-17 Thread Ulf Hansson
Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a009e00..e685724 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8164,7 +8164,7 @@ F:include/linux/mfd/ MULTIMEDIA CARD (MMC), SECURE DIGITAL

Re: [PATCH] pci: changing maintainer

2016-10-17 Thread Bjorn Helgaas
On Thu, Oct 13, 2016 at 06:26:13PM +0100, Joao Pinto wrote: > > Signed-off-by: Joao Pinto Applied to for-linus for v4.9, thanks! > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 01bff8e..5ac91d8a 100644 > ---

Re: [RFC] [PATCH] Add a "nolinks" mount option.

2016-10-17 Thread Mattias Nissler
OK, no more feedback thus far. Is there generally any interest in a mount option to avoid path name aliasing resulting in target file confusion? Perhaps a version that only disables symlinks instead of also hard-disabling files hard-linked to multiple locations (those are much lower risk for the

Re: [kernel-hardening] [PATCH] lib: harden strncpy_from_user

2016-10-17 Thread Mark Rutland
On Fri, Aug 26, 2016 at 02:57:58PM -0400, Kees Cook wrote: > On Fri, Aug 26, 2016 at 10:31 AM, Mark Rutland wrote: > > The strncpy_from_user() accessor is effectively a copy_from_user() > > specialised to copy strings, terminating early at a NUL byte if > > possible. In other respects it is

Re: [PATCH v4 0/1] Armada 7k/8k CP110 system controller fixes

2016-10-17 Thread Marcin Wojtas
Hi Stephen, Since merge window is closed, I kindly remind about remaining patch. Best regards, Marcin 2016-10-06 21:24 GMT+02:00 Marcin Wojtas : > Hi Stephen, > > Do you have any further comments on the remaining patch? > > Best regards, > Marcin > > 2016-09-25 9:47 GMT+02:00 Marcin Wojtas : >>

Re: [PATCH] PCI: layerscape: Fix drvdata usage before assignment

2016-10-17 Thread Bjorn Helgaas
On Mon, Oct 17, 2016 at 11:39:32AM +0100, Marc Zyngier wrote: > Commit fefe6733e516 ("PCI: layerscape: Move struct pcie_port setup > to probe function") changed the init ordering of the pcie structure, > but started to use the pcie->drvdata field before initializing it. > Mayhem follows. > > Fix

Re: [PATCH] usb: ehci-platform: increase EHCI_MAX_RSTS to 4

2016-10-17 Thread Masahiro Yamada
Hi Greg, 2016-10-17 21:30 GMT+09:00 Greg Kroah-Hartman : > On Mon, Oct 17, 2016 at 08:11:59PM +0900, Masahiro Yamada wrote: >> Socionext LD11 SoC (arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi) >> needs to handle 4 reset lines for EHCI. > > Why? What makes it different from other EHCI

Re: [kernel-hardening] [PATCH] lib: harden strncpy_from_user

2016-10-17 Thread Loganaden Velvindron
On Mon, Oct 17, 2016 at 5:04 PM, Mark Rutland wrote: > On Fri, Aug 26, 2016 at 02:57:58PM -0400, Kees Cook wrote: >> On Fri, Aug 26, 2016 at 10:31 AM, Mark Rutland wrote: >> > The strncpy_from_user() accessor is effectively a copy_from_user() >> > specialised to copy strings, terminating early

Re: ARM64-cpuinfo: Combine six calls for sequence output into one seq_printf() call in c_show()

2016-10-17 Thread Mark Rutland
On Mon, Oct 17, 2016 at 02:50:57PM +0200, SF Markus Elfring wrote: > > I prefer the code as-is. Unless there's a compelling reason to change it. > > Is the chance for faster log output interesting enough? Is there a particular user that cares today, or are we trying to work backwards to a

Re: drivers/mcb/mcb-parse.c:152: bad if expression

2016-10-17 Thread Johannes Thumshirn
On Mon, Oct 17, 2016 at 1:17 PM, David Binderman wrote: > Hello there, > > drivers/mcb/mcb-parse.c:152:22: warning: logical ‘and’ of mutually exclusive > tests is always false [-Wlogical-op] > > Source code is > >if (bar_count <= 0 && bar_count > CHAMELEON_BAR_MAX) > > Maybe better code

4.6.4, 3w_sas: timeout too small?

2016-10-17 Thread Harald Dunkel
Hi folks, Question about the reset timeout of the 3w_sas: For an unknown reason my 3ware 9750 RAID controller became unresponsive. kernel.log: Oct 16 06:30:42 nasl003b kernel: [4902556.775272] 3w-sas: scsi0: AEN: INFO (0x04:0x002B): Verify completed:unit=1. Oct 16 06:38:29 nasl003b kernel:

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-17 Thread Peter Zijlstra
On Mon, Oct 17, 2016 at 12:49:55PM +0100, Dietmar Eggemann wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 8b03fb5..8926685 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -2902,7 +2902,8 @@ __update_load_avg(u64 now, int cpu, struct sched_avg

Re: [patch] ftrace: Fix latency trace header alignment

2016-10-17 Thread Sebastian Andrzej Siewior
On 2016-10-16 05:08:30 [+0200], Mike Galbraith wrote: > Line up helper arrows to the right column. thanks. And while at it I fixed the function tracer header. > Signed-off-by: Mike Galbraith Sebastian

Re: [PATCH -v4 6/8] locking/mutex: Restructure wait loop

2016-10-17 Thread Peter Zijlstra
On Mon, Oct 17, 2016 at 12:44:49PM +0200, Peter Zijlstra wrote: > On Thu, Oct 13, 2016 at 04:17:21PM +0100, Will Deacon wrote: > > Hi Peter, > > > > I'm struggling to get my head around the handoff code after this change... > > > > On Fri, Oct 07, 2016 at 04:52:49PM +0200, Peter Zijlstra wrote:

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang >>> >>> At present,

Re: [PATCH] MIPS: IP22: Fix build error in IP22 cache code

2016-10-17 Thread Maciej W. Rozycki
On Fri, 14 Oct 2016, Matt Redfearn wrote: > Recent MIPS toolchains complain about the use of an immediate larger > than 32bits when compiling a 32bit kernel, leading to the following > build failure: > {standard input}: Assembler messages: > {standard input}:131: Error: number

[PATCH 1/1] Staging: gs_fpgaboot: Use octal permissions '0444'

2016-10-17 Thread Shyam Saini
Fixed following checkpatch warning WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. Signed-off-by: Shyam Saini --- drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [kernel-hardening] [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-10-17 Thread Mark Rutland
Hi, Attempt to revive discussions below... On Wed, Jul 27, 2016 at 07:45:46AM -0700, Jeff Vander Stoep wrote: > When kernel.perf_event_paranoid is set to 3 (or greater), disallow > all access to performance events by users without CAP_SYS_ADMIN. > > This new level of restriction is intended to

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-17 Thread Johannes Thumshirn
On Mon, Oct 17, 2016 at 02:35:46PM +0200, Arnd Bergmann wrote: > A recent bugfix introduced a harmless warning in the lpfc driver: > > drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware': > drivers/scsi/lpfc/lpfc_logmsg.h:56:45: error: format '%ld' expects argument > of type 'long

Re: [PATCH -v4 6/8] locking/mutex: Restructure wait loop

2016-10-17 Thread Boqun Feng
On Mon, Oct 17, 2016 at 03:24:08PM +0200, Peter Zijlstra wrote: > On Mon, Oct 17, 2016 at 12:44:49PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 13, 2016 at 04:17:21PM +0100, Will Deacon wrote: > > > Hi Peter, > > > > > > I'm struggling to get my head around the handoff code after this change...

Re: [PATCH v4 08/18] x86/intel_rdt: Pick up L3/L2 RDT parameters from CPUID

2016-10-17 Thread Thomas Gleixner
On Fri, 14 Oct 2016, Fenghua Yu wrote: > +/** > + * struct rdt_resource - attributes of an RDT resource > + * @enabled: Is this feature enabled on this machine > + * @name:Name to use in "schemata" file > + * @max_closid: Maximum number of

Re: [PATCH 0/6] mmc/memstick: rtsx_usb: Fix runtime PM issues

2016-10-17 Thread Ulf Hansson
On 13 October 2016 at 13:37, Ulf Hansson wrote: > The rtsx_usb_sdmmc (mmc/sd) and rtsx_usb_ms (memstick) devices are interfacing > an rtsx_usb device (managed by an mfd driver) while communicating with the > cards. The mmc/sd and memstick devices are children of the usb device. > > Issues has

Re: [PATCH 0/2] mmc: sdhci-iproc: Add byte register access support

2016-10-17 Thread Ulf Hansson
On 12 October 2016 at 20:35, Scott Branden wrote: > Add brcm,sdhci-iproc compat string and code for support of newer versions of > sdhci-iproc controller that allow byte-wise register accesses. > > Scott Branden (2): > mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings >

Re: [PATCH 1/3] arm: hisi: add ARCH_MULTI_V5 support

2016-10-17 Thread Arnd Bergmann
On Monday, October 17, 2016 8:07:03 PM CEST Pan Wen wrote: > Add support for some HiSilicon SoCs which depend on ARCH_MULTI_V5. > > Signed-off-by: Pan Wen > Looks ok. I've added Marty Plummer to Cc, he was recently proposing patches for Hi3520, which I think is closely related to this one.

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-17 Thread Vincent Guittot
On 17 October 2016 at 15:19, Peter Zijlstra wrote: > On Mon, Oct 17, 2016 at 12:49:55PM +0100, Dietmar Eggemann wrote: > >> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> > index 8b03fb5..8926685 100644 >> > --- a/kernel/sched/fair.c >> > +++ b/kernel/sched/fair.c >> > @@ -2902,7

Re: [PATCH 1/9] perf/jit: improve error messages from JVMTI

2016-10-17 Thread Stephane Eranian
On Fri, Oct 14, 2016 at 8:20 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Oct 14, 2016 at 05:57:25AM -0700, Stephane Eranian escreveu: >> On Fri, Oct 14, 2016 at 4:13 AM, Arnaldo Carvalho de Melo >> wrote: >> > Em Thu, Oct 13, 2016 at 03:05:40PM -0500, Nilay Vaish escreveu: >> >> Do we not

[PATCH v4 4/8] drivers:input:tsc2007: add iio interface to read external ADC input and temperature

2016-10-17 Thread H. Nikolaus Schaller
The tsc2007 chip not only has a resistive touch screen controller but also an external AUX adc imput which can be used for an ambient light sensor, battery voltage monitoring or any general purpose. Additionally it can measure the chip temperature. This extension provides an iio interface for

[PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation

2016-10-17 Thread Ralf Ramsauer
Instantiated I2C device nodes are marked with OF_POPULATE. This was introduced in 4f001fd. On unloading, loaded device nodes will of course be unmarked. The problem are nodes that fail during initialisation: If a node fails, it won't be unloaded and hence not be unmarked. If a I2C driver module

[PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation

2016-10-17 Thread Ralf Ramsauer
Instantiated SPI device nodes are marked with OF_POPULATE. This was introduced in bd6c164. On unloading, loaded device nodes will of course be unmarked. The problem are nodes that fail during initialisation: If a node fails, it won't be unloaded and hence not be unmarked. If a SPI driver module

Re: [PATCH 2/2] ARM: dts: da850: add a node for the LCD controller

2016-10-17 Thread Bartosz Golaszewski
2016-10-17 14:29 GMT+02:00 Tomi Valkeinen : > On 17/10/16 14:40, Laurent Pinchart wrote: >> Hello, >> >> On Monday 17 Oct 2016 10:33:58 Tomi Valkeinen wrote: >>> On 17/10/16 10:12, Sekhar Nori wrote: On Monday 17 October 2016 11:26 AM, Tomi Valkeinen wrote: > On 15/10/16 20:42, Sekhar

[PATCH v4 1/8] drivers:input:tsc2007: add new common binding names, pre-calibration, flipping and rotation

2016-10-17 Thread H. Nikolaus Schaller
commit b98abe52fa8e ("Input: add common DT binding for touchscreens") introduced common DT bindings for touchscreens [1] and a helper function to parse the DT. commit ed7c9870c9bc ("Input: of_touchscreen - add support for inverted / swapped axes") added another helper for parsing axis inversion

[PATCH v4 2/8] drivers:input:tsc2007: send pendown and penup only once like ads7846(+tsc2046) driver does

2016-10-17 Thread H. Nikolaus Schaller
this should reduce unnecessary input events. Signed-off-by: H. Nikolaus Schaller --- drivers/input/touchscreen/tsc2007.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c index

Re: MD-RAID: Use seq_putc() in three status functions?

2016-10-17 Thread Hannes Reinecke
On 10/17/2016 01:43 PM, SF Markus Elfring wrote: See above. At the moment _any_ test result from your side would do. >>> >>> I imagine that another single result might not be representative. >> >> Publish not only results but also everything (complete!) so that anyone >> can *easily* follow

[PATCH v4 6/8] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping

2016-10-17 Thread H. Nikolaus Schaller
commit b98abe52fa8e ("Input: add common DT binding for touchscreens") introduced common DT bindings for touchscreens [1] and a helper function to parse the DT. commit ed7c9870c9bc ("Input: of_touchscreen - add support for inverted / swapped axes") added another helper for parsing axis inversion

[PATCH v4 0/8] drivers: touchscreen: tsc2007 and ads7846/tsc2046 improvements (use common touchscreen bindings, pre-calibration, spi fix and provide iio raw values)

2016-10-17 Thread H. Nikolaus Schaller
Changes V4: * fix a merge/squash issue resulting in a non-bisectable patch set (suggested by kbuid test robot) * remove some unnecessary #include (suggested by Jonathan Cameron ) * make the iio extension depend on CONFIG_IIO rather than selecting it (suggested by Jonathan Cameron ) * swapped

Re: [PATCH v3 1/8] drivers:input:tsc2007: add new common binding names, pre-calibration, flipping and rotation

2016-10-17 Thread H. Nikolaus Schaller
Hi Sebastian, I did wait for the 4.9-rc1 merge window to be closed until I bring up this patch set again. > Am 30.09.2016 um 16:40 schrieb H. Nikolaus Schaller : >> >> I do agree with Rob, that the ti,min/max-x/y should become common, >> though. Also I would do s/minimum value/minimum raw

Re: MD-RAID: Use seq_putc() in three status functions?

2016-10-17 Thread Hannes Reinecke
On 10/17/2016 01:10 PM, SF Markus Elfring wrote: >>> * Is a string pointer often longer than a byte? >>> >> Always. > > I have got doubts for this specific information. > > >> (Which up to now I thought was basic programming knowledge...) > > By the way: > Run time environments still exist

[PATCH 0/7] net: Fix module autoload for several platform drivers

2016-10-17 Thread Javier Martinez Canillas
Hello David, I noticed that module autoload won't be working in a bunch of platform drivers in the net subsystem and this patch series contains the fixes. Best regards, Javier Javier Martinez Canillas (7): net: nps_enet: Fix module autoload net: ethernet: nb8800: Fix module autoload net:

[PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation

2016-10-17 Thread Ralf Ramsauer
Hi, this one fixes initialisation of I2C/SPI nodes. Upon failure during intialisation, nodes were erroneously populated and never unmarked. This lead to the problem that re-loaded drivers will never probe those devices again and can easily be fixed by clearing the OF_POPULATE flag when the node

Re: [PATCH] btrfs: assign error values to the correct bio structs

2016-10-17 Thread David Sterba
On Mon, Oct 17, 2016 at 09:20:25AM +0800, Junjie Mao wrote: > Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio") > > Signed-off-by: Junjie Mao Ack, but please resend it with CC: sta...@vger.kernel.org # 4.3+

[PATCH v4 3/8] drivers:input:tsc2007: check for presence and power down tsc2007 during probe

2016-10-17 Thread H. Nikolaus Schaller
1. check if chip is really present and don't succeed if it isn't. 2. if it succeeds, power down the chip until accessed Signed-off-by: H. Nikolaus Schaller --- drivers/input/touchscreen/tsc2007.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/input/touchscreen/tsc2007.c

[PATCH 1/7] net: nps_enet: Fix module autoload

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

[PATCH 2/7] net: ethernet: nb8800: Fix module autoload

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ $ modinfo

[PATCH v4 8/8] DT:omap3+ads7846: use new common touchscreen bindings

2016-10-17 Thread H. Nikolaus Schaller
The standard touch screen bindings [1] replace the private ti,swap-xy with touchscreen-swaped-x-y. And for the Openpandora we use touchscreen-size etc. to match the LCD screen size. [1]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt Tested with OpenPandora. Signed-off-by:

[PATCH 6/7] net: dsa: b53: Fix module autoload

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

[PATCH 7/7] net: dsa: bcm_sf2: Fix module autoload for OF registration

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

[PATCH v4 7/8] drivers:input:ads7846(+tsc2046): fix spi module table

2016-10-17 Thread H. Nikolaus Schaller
Fix module table so that the driver is loaded if compiled as module and requested by DT. Signed-off-by: H. Nikolaus Schaller --- drivers/input/touchscreen/ads7846.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/ads7846.c

[PATCH 5/7] net: hisilicon: Fix hns_mdio module autoload for OF registration

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

[PATCH v4 5/8] DT:omap3+tsc2007: use new common touchscreen bindings

2016-10-17 Thread H. Nikolaus Schaller
While we fix the GTA04 we add proper pinmux for the penirq gpio. Tested on: GTA04A4 and Pyra-Handheld Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 04/27] perf list: Add support for listing only json events

2016-10-17 Thread Andi Kleen
> What we do know about the CPU vendor event names is that they are vendor > specific, > and that's a pretty stable property. So my suggestion would be to simply make > it: > > perf list vendor > > with perhaps add aliases as well: > > perf list model > perf list cpu-model

Re: [PATCH] MIPS: KASLR: Fix handling of NULL FDT

2016-10-17 Thread Sergei Shtylyov
Hello. On 10/17/2016 01:04 PM, Matt Redfearn wrote: If platform code returns a NULL pointer to the FDT, initial_boot_params will not get set to a valid pointer and attempting to find the /chosen node in it will cause a NULL pointer dereference and the kernel to crash immediately on startup -

Re: [PATCH] shmem: avoid huge pages for small files

2016-10-17 Thread Michal Hocko
On Mon 17-10-16 15:30:21, Kirill A. Shutemov wrote: [...] > >From fd0b01b9797ddf2bef308c506c42d3dd50f11793 Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Mon, 17 Oct 2016 14:44:47 +0300 > Subject: [PATCH] shmem: avoid huge pages for small files > > Huge pages are detrimental for

Re: [RFC] [PATCH] Add a "nolinks" mount option.

2016-10-17 Thread Austin S. Hemmelgarn
On 2016-10-17 09:02, Mattias Nissler wrote: OK, no more feedback thus far. Is there generally any interest in a mount option to avoid path name aliasing resulting in target file confusion? Perhaps a version that only disables symlinks instead of also hard-disabling files hard-linked to multiple

Re: [PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation

2016-10-17 Thread Geert Uytterhoeven
On Mon, Oct 17, 2016 at 3:59 PM, Ralf Ramsauer wrote: > Instantiated SPI device nodes are marked with OF_POPULATE. This was > introduced in bd6c164. On unloading, loaded device nodes will of course > be unmarked. The problem are nodes that fail during initialisation: If a > node fails, it won't

Re: [PATCH 2/7] net: ethernet: nb8800: Fix module autoload

2016-10-17 Thread Måns Rullgård
Javier Martinez Canillas writes: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias information using the

Re: [patch] drivers,connector: Protect send_msg() with a local lock for RT

2016-10-17 Thread Sebastian Andrzej Siewior
On 2016-10-16 05:11:54 [+0200], Mike Galbraith wrote: > applied with smaller changes. This is v4.8-RT only. Sebastian

Re: crash by cdc_acm driver in kernels 4.8-rc1/5

2016-10-17 Thread Oliver Neukum
On Thu, 2016-09-08 at 14:58 +0200, Wim Osterholt wrote: > On Thu, Sep 08, 2016 at 02:20:38PM +0200, Oliver Neukum wrote: > > > > > > The oops tells things that I didn't all write down, but it says > > > null pointer dereference at 0246 > > > > That is the important part. I am sorry, but

Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation

2016-10-17 Thread Geert Uytterhoeven
On Mon, Oct 17, 2016 at 3:59 PM, Ralf Ramsauer wrote: > Instantiated I2C device nodes are marked with OF_POPULATE. This was > introduced in 4f001fd. On unloading, loaded device nodes will of course > be unmarked. The problem are nodes that fail during initialisation: If a > node fails, it won't

[PATCH 1/3] tools lib traceevent: Add -O2 option to traceevent

2016-10-17 Thread Honggyu Kim
Since current traceevent somehow does not have an optimization flag, this patch just adds -O2 to optimize its code. Signed-off-by: Honggyu Kim --- tools/lib/traceevent/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/traceevent/Makefile

[PATCH 2/3] tools lib traceevent: Check the return value of asprintf

2016-10-17 Thread Honggyu Kim
Since asprintf generates a compiler warning when its return value is not not properly handled, this patch checks that asprintf call is successful or not. Signed-off-by: Honggyu Kim --- tools/lib/traceevent/parse-filter.c | 29 +++-- 1 file changed, 19 insertions(+), 10

Re: [Patch 06/35] media: ti-vpe: vpe: Do not perform job transaction atomically

2016-10-17 Thread Hans Verkuil
On 09/28/2016 11:20 PM, Benoit Parrot wrote: > From: Nikhil Devshatwar > > Current VPE driver does not start the job until all the buffers for > a transaction are not queued. When running in multiple context, this might I think this should be: s/not queued/queued/, right? > increase the

[PATCH 3/7] net: hns: Fix hns_dsaf module autoload for OF registration

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

Re: [Patch 01/35] media: ti-vpe: vpdma: Make vpdma library into its own module

2016-10-17 Thread Hans Verkuil
On 09/28/2016 11:16 PM, Benoit Parrot wrote: > The VPDMA (Video Port DMA) as found in devices such as DRA7xx is > used for both the Video Processing Engine (VPE) and the Video Input > Port (VIP). > > In preparation for this we need to turn vpdma into its own > kernel module. > > Signed-off-by:

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang >>> >>> At present,

[PATCH 4/7] net: qcom/emac: Fix module autoload for OF registration

2016-10-17 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo

[PATCH 3/3] tools lib traceevent: Fix to set uninitialized variables

2016-10-17 Thread Honggyu Kim
This patch fixes uninitialized variables to remove remaining compiler warnings as follows: event-parse.c: In function ‘pevent_find_event_by_name’: event-parse.c:3513:21: warning: ‘event’ may be used uninitialized in this function [-Wmaybe-uninitialized] pevent->last_event = event;

Re: [Patch 05/35] media: ti-vpe: Use line average de-interlacing for first 2 frames

2016-10-17 Thread Hans Verkuil
On 09/28/2016 11:20 PM, Benoit Parrot wrote: > From: Archit Taneja > > For n input fields, the VPE de-interlacer creates n - 2 progressive frames. That's confusing. I think you mean '(n / 2) - 1'? Two fields make one frame, right? Regards, Hans > > To support this, we use line

Re: [PATCH v14 00/16] KVM PCIe/MSI passthrough on ARM/ARM64

2016-10-17 Thread Auger Eric
Hi Punit, On 14/10/2016 13:24, Punit Agrawal wrote: > Hi Eric, > > I am a bit late in joining, but I've tried to familiarise > myself with earlier discussions on the series. > > Eric Auger writes: > >> This is the second respin on top of Robin's series [1], addressing Alex' >> comments. >>

Re: [patch] drivers/zram: Don't disable preemption in zcomp_stream_get/put()

2016-10-17 Thread Sebastian Andrzej Siewior
On 2016-10-16 05:14:22 [+0200], Mike Galbraith wrote: > > In v4.7, the driver switched to percpu compression streams, disabling > preemption (get/put_cpu_ptr()). Use get/put_cpu_light() instead. I am not convinced that this will work. Nothing prevents zram_bvec_write() to be reentrant on the

Re: [PATCH v2 0/2] Introduce arch specific nmi enable, disable handlers

2016-10-17 Thread Don Zickus
On Thu, Oct 13, 2016 at 01:38:00PM -0700, Babu Moger wrote: > During our testing we noticed that nmi watchdogs in sparc could not be > disabled or > enabled dynamically using sysctl/proc interface. Sparc uses its own arch > specific > nmi watchdogs. There is a sysctl and proc >

Re: [PATCH v14 04/16] iommu/dma: MSI doorbell alloc/free

2016-10-17 Thread Auger Eric
Hi Punit, On 14/10/2016 13:25, Punit Agrawal wrote: > Hi Eric, > > One query and a comment below. > > Eric Auger writes: > >> We introduce the capability to (un)register MSI doorbells. >> >> A doorbell region is characterized by its physical address base, size, >> and whether it its safe (ie.

[PATCH -next] irqchip/eznps: drop pointless static qualifier in nps400_of_init()

2016-10-17 Thread Wei Yongjun
From: Wei Yongjun There is no need to have the 'struct irq_domain *nps400_root_domain' variable static since new value always be assigned before use it. Signed-off-by: Wei Yongjun --- drivers/irqchip/irq-eznps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] arm64: kernel: numa: fix ACPI boot cpu numa node mapping

2016-10-17 Thread Lorenzo Pieralisi
Commit 7ba5f605f3a0 ("arm64/numa: remove the limitation that cpu0 must bind to node0") removed the numa cpu<->node mapping restriction whereby logical cpu 0 always corresponds to numa node 0; removing the restriction was correct, in that it does not really exist in practice but the commit only

[PATCH 13/13] gpio-sx150x: Pass device type in DT match table

2016-10-17 Thread Andrey Smirnov
Pass the same device type information in DT match table as the one being passed via i2c_device_id Signed-off-by: Andrey Smirnov --- drivers/gpio/gpio-sx150x.c | 48 -- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git

[PATCH 02/13] gpio-sx150x: Remove 'irq_summary' parameter

2016-10-17 Thread Andrey Smirnov
Information conveyed by 'irq_summary' paramter can be obtained from struct i2c_client's irq field. Remove any uses of the former and replace it with the latter. Signed-off-by: Andrey Smirnov --- drivers/gpio/gpio-sx150x.c | 19 +++ 1 file changed, 3 insertions(+), 16

<    11   12   13   14   15   16   17   18   19   20   >