Re: [PATCHv4] arm64: Handle el1 synchronous instruction aborts cleanly

2016-08-09 Thread Will Deacon
On Mon, Aug 08, 2016 at 05:35:34PM -0700, Laura Abbott wrote: > Executing from a non-executable area gives an ugly message: > > lkdtm: Performing direct entry EXEC_RODATA > lkdtm: attempting ok execution at 084c0e08 > lkdtm: attempting bad execution at 08880700 > Bad mode in Synchr

Re: [PATCH 09/20] SEAD3: Probe parallel flash via DT

2016-08-09 Thread Sergei Shtylyov
Hello. On 08/09/2016 03:35 PM, Paul Burton wrote: Probe the system parallel flash using device tree rather than platform code, in order to reduce the amount of the latter. Signed-off-by: Paul Burton --- arch/mips/boot/dts/mti/sead3.dts | 17 + arch/mips/mti-sead3/sead3-p

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-09 Thread Mathieu Desnoyers
- On Aug 7, 2016, at 7:35 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Sun, Aug 07, 2016 at 03:36:24PM +, Mathieu Desnoyers wrote: >> - On Aug 3, 2016, at 11:45 AM, Boqun Feng boqun.f...@gmail.com wrote: >> >> > On Wed, Aug 03, 2016 at 03:19:40PM +0200, Peter Zijlstra wrote: >> >>

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-09 Thread Jon Hunter
On 09/08/16 05:25, John Stultz wrote: ... > So actually no. We usually call irqd_set_trigger_type() but something > still doesn't work. > > Interestingly, just adding irq_set_irq_type(virq, type); to the top of > that block (leaving the rest of the code) also works. Interesting. By saving the

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-09 Thread Thiago Jung Bauermann
Am Dienstag, 09 August 2016, 09:01:13 schrieb Mimi Zohar: > On Tue, 2016-08-09 at 20:59 +1000, Michael Ellerman wrote: > > Mimi Zohar writes: > > > diff --git a/security/integrity/ima/ima.h > > > b/security/integrity/ima/ima.h > > > index b5728da..84e8d36 100644 > > > --- a/security/integrity/ima/

Re: Applied "regmap: debugfs: Add support for dumping write only device registers" to the regmap tree

2016-08-09 Thread kbuild test robot
Hi Mark, [auto build test WARNING on regmap/for-next] [also build test WARNING on v4.8-rc1 next-20160809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mark-Brown/Applied-regmap-debugfs-Add

Re: [PATCH 3/3] iommu/ipmmu-vmsa: Hook up r8a7796 DT matching code

2016-08-09 Thread Laurent Pinchart
On Tuesday 09 Aug 2016 16:17:57 Laurent Pinchart wrote: > On Wednesday 08 Jun 2016 18:12:31 Magnus Damm wrote: > > On Wed, Jun 8, 2016 at 5:48 PM, Laurent Pinchart wrote: > >> On Wednesday 08 Jun 2016 09:04:17 Geert Uytterhoeven wrote: > >>> On Wed, Jun 8, 2016 at 2:18 AM, Laurent Pinchart wrote: >

Re: [PATCH 3/3] iommu/ipmmu-vmsa: Hook up r8a7796 DT matching code

2016-08-09 Thread Laurent Pinchart
Hi Magnus, On Wednesday 08 Jun 2016 18:12:31 Magnus Damm wrote: > On Wed, Jun 8, 2016 at 5:48 PM, Laurent Pinchart wrote: > > On Wednesday 08 Jun 2016 09:04:17 Geert Uytterhoeven wrote: > >> On Wed, Jun 8, 2016 at 2:18 AM, Laurent Pinchart wrote: > --- 0031/drivers/iommu/ipmmu-vmsa.c > +

Re: [PATCH] cachefiles: Fix attempt to read i_blocks after deleting file

2016-08-09 Thread kbuild test robot
Hi David, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc1 next-20160809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/David-Howells/cachefiles-Fix-attempt-to-read

Re: Applied "regmap: debugfs: Add support for dumping write only device registers" to the regmap tree

2016-08-09 Thread kbuild test robot
Hi Mark, [auto build test ERROR on regmap/for-next] [also build test ERROR on v4.8-rc1 next-20160809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mark-Brown/Applied-regmap-debugfs-Add

Re: [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const

2016-08-09 Thread Lee Jones
On Fri, 05 Aug 2016, Axel Lin wrote: > It's only used in this driver and never get modified, make it static const. > > Signed-off-by: Axel Lin > --- > drivers/mfd/altera-a10sr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. > diff --git a/drivers/mfd/altera-a10sr.c

[PATCHv2] perf-stat: avoid skew when reading events

2016-08-09 Thread Mark Rutland
When we don't have a tracee (i.e. we're attaching to a task or CPU), counters can still be running after our workload finishes, and can still be running as we read their values. As we read events one-by-one, there can be arbitrary skew between values of events, even within a group. This means that

Re: [RFC PATCH 0/5] Allwinner MMC firmware clocks implementation

2016-08-09 Thread Stefan Monnier
> frequencies in an SoC agnostic manner. The actual clock access can be > put in firmware, which is by definition SoC specific and thus can > be easier and much quicker adapted to support a new SoC. Hmm... what do you mean by "firmware"? Stefan "just a by-stander trying to understand"

tty/serial/8250: use mctrl_gpio helpers - Causes problems on ACPI systems

2016-08-09 Thread Mika Westerberg
Hi, I noticed that with v4.8-rc1 serial console of some of our Broxton systems does not work properly anymore. I'm able to see output but input does not work. I bisected it down to commit 4ef03d328769eddbfeca1f1c958fdb181a69c341 ("tty/serial/8250: use mctrl_gpio helpers"). The reason why it fail

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-09 Thread Mimi Zohar
On Tue, 2016-08-09 at 20:59 +1000, Michael Ellerman wrote: > Mimi Zohar writes: > > > diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h > > index b5728da..84e8d36 100644 > > --- a/security/integrity/ima/ima.h > > +++ b/security/integrity/ima/ima.h > > @@ -102,6 +102,13 @@ s

Re: [RFC PATCH V5 0/5] ECAM quirks handling for ARM64 platforms

2016-08-09 Thread Robert Richter
On 08.08.16 15:05:36, Tomasz Nowicki wrote: > Quirk handling relies on an idea of matching MCFG OEM ID, TABLE ID and > revision (the ones from standard header of MCFG table). > > Static array is used to keep quirk entries. Each entry consists of > mentioned MCFG IDs along with custom pci_ops struc

Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state

2016-08-09 Thread Salah Triki
On Tue, Aug 09, 2016 at 01:40:25PM +0100, Luis de Bethencourt wrote: > On 09/08/16 13:32, Salah Triki wrote: > > flags field records the superblock state, so check if it is equal to > > BEFS_DIRTY. > > > > Signed-off-by: Salah Triki > > --- > > fs/befs/super.c | 2 +- > > 1 file changed, 1 inser

Re: [PATCH v2 2/2] ARM: dts: TS-4900: add basic device tree

2016-08-09 Thread Shawn Guo
On Mon, Aug 01, 2016 at 10:04:53AM -0400, Lucile Quirion wrote: > diff --git a/arch/arm/boot/dts/imx6dl-ts4900.dts > b/arch/arm/boot/dts/imx6dl-ts4900.dts > new file mode 100644 > index 000..909fd5c > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-ts4900.dts > +/dts-v1/; > +#include "imx6dl

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Thierry Reding
On Tue, Aug 09, 2016 at 01:36:17PM +0200, Wolfram Sang wrote: [...] > diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c > index b126dbaa47e370..d9979da11485ae 100644 > --- a/drivers/i2c/busses/i2c-tegra.c > +++ b/drivers/i2c/busses/i2c-tegra.c > @@ -932,10 +932,8 @@ stati

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-09 Thread Jiri Kosina
On Tue, 9 Aug 2016, Rafael J. Wysocki wrote: > Here's a list of commits from Thomas that are related to memory randomization. > > 210e7a43fa90 mm: SLUB freelist randomization > 7c00fce98c3e mm: reorganize SLAB freelist randomization > 4ff5308744f5 x86/mm: Do not reference phys addr beyond kernel

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Neil Horman
On Tue, Aug 09, 2016 at 01:36:17PM +0200, Wolfram Sang wrote: > The core will do this for us now. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-amd756.c | 5 + > drivers/i2c/busses/i2c-at91.c | 2 -- > drivers/i2c/busses/i2c-axxia.c | 8 +--- >

[PATCH] cachefiles: Fix attempt to read i_blocks after deleting file

2016-08-09 Thread David Howells
An NULL-pointer dereference happens in cachefiles_mark_object_inactive() when it tries to read i_blocks so that it can tell the cachefilesd daemon how much space it's making available. The problem is that cachefiles_drop_object() calls cachefiles_mark_object_inactive() after calling cachefiles_del

Re: [PATCH] mfd: syscon: Make use of of_iomap

2016-08-09 Thread Lee Jones
On Sun, 07 Aug 2016, Andrey Smirnov wrote: > Use of_iomap instead of explicitly calling of_address_to_resource() and > ioremap(). > > Signed-off-by: Andrey Smirnov > --- > drivers/mfd/syscon.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) Applied, thanks. > diff --git a/driver

Re: perf: WARNING: kernel/events/core.c:4893 perf_mmap_close

2016-08-09 Thread Vince Weaver
and as the fuzzing continues I started to get these, a bit worrying. [ 6501.254564] Slab corruption (Tainted: GW ): task_struct start=8800c072e000, len=5760 [ 6501.264971] 010: 6a 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b jkkk [ 6501.273650] Single bit error det

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-09 Thread Alexey Kardashevskiy
On 10/02/16 08:04, Bjorn Helgaas wrote: > On Wed, Jan 13, 2016 at 12:25:34PM +0100, Hannes Reinecke wrote: >> PCI-2.2 VPD entries have a maximum size of 32k, but might actually >> be smaller than that. To figure out the actual size one has to read >> the VPD area until the 'end marker' is reached.

Re: [PATCH] mfd: wm8350-i2c: make sure the i2c regmap functions are compiled

2016-08-09 Thread Lee Jones
On Fri, 29 Jul 2016, Uwe Kleine-König wrote: > This fixes a compile failure: > > drivers/built-in.o: In function `wm8350_i2c_probe': > core.c:(.text+0x828b0): undefined reference to `__devm_regmap_init_i2c' > Makefile:953: recipe for target 'vmlinux' failed > > Fixes: 52b461b86

Re: [PATCH] lockdep: fix warning in case of no_validate lock

2016-08-09 Thread Peter Zijlstra
On Wed, Jul 13, 2016 at 11:06:36AM +0800, Ming Lei wrote: > Now there are several locks which are marked as > no_validate, so name of the lock class can be > different with the no_validate lock. Hurgh, how did that happen? See checkpatch saying: scripts/checkpatch.pl: "lockdep_no_validate class

Re: [PATCH v6 2/4] mfd: lp873x: Add lp873x PMIC support

2016-08-09 Thread Lee Jones
On Mon, 08 Aug 2016, Keerthy wrote: > The LP873X chip is a power management IC for Portable Navigation Systems > and Tablet Computing devices. It contains the following components: > > - Regulators. > - Configurable General Purpose Output Signals(GPO). > > PMIC interacts with the m

Re: [PATCH v5] spi: spi-ti-qspi: Add DMA support for QSPI mmap read

2016-08-09 Thread Vignesh R
On Tuesday 09 August 2016 05:03 PM, Mark Brown wrote: > On Tue, Aug 09, 2016 at 04:33:11PM +0530, Vignesh R wrote: > >> +static int ti_qspi_map_buf(struct ti_qspi *qspi, void *buf, >> + unsigned int len, struct sg_table *sgt) >> +{ >> +unsigned int max_seg_size = >> +

[PATCH] console: Don't prefer first registered if DT specifies stdout-path

2016-08-09 Thread Paul Burton
If a device tree specifies a preferred device for kernel console output via the stdout-path or linux,stdout-path chosen node properties or the stdout alias then the kernel ought to honor it & output the kernel console to that device. As it stands, this isn't the case. Whilst we parse the stdout-pat

Re: [PATCH v6 1/4] Documentation: mfd: LP873X: Add information for the mfd driver

2016-08-09 Thread Lee Jones
On Mon, 08 Aug 2016, Keerthy wrote: > The lp873x series of PMICs have a bunch of regulators and a couple > of GPO(General Purpose Outputs). > Add information for the MFD and regulator drivers. > > Acked-by: Rob Herring > Signed-off-by: Keerthy These should be in chronological order. Rob could

Re: [PATCH V2] mfd: da9063: Update author information to remove incorrect e-mail addresses

2016-08-09 Thread Lee Jones
On Mon, 08 Aug 2016, Steve Twiss wrote: > From: Steve Twiss > > Remove incorrect e-mail addresses from the copyright header and > MODULE_AUTHOR() macro. These e-mail addresses are no longer in use. > > The author names have not been changed, only the e-mail addresses have > been deleted from th

Re: [PATCH 3/3] fs: befs: fix typo in befs_sb_info

2016-08-09 Thread Luis de Bethencourt
On 09/08/16 13:32, Salah Triki wrote: > Fixing jornal to Journal. > > Signed-off-by: Salah Triki > --- > fs/befs/befs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/befs/befs.h b/fs/befs/befs.h > index 511d16d..55f3ea2 100644 > --- a/fs/befs/befs.h > +++ b/fs/befs

Re: [PATCH 4/9] remoteproc: core: New API to add new resources to the resource table

2016-08-09 Thread Lee Jones
On Mon, 08 Aug 2016, loic pallardy wrote: > Hi Lee, > > After splitting this patch in 2, it may be good to add a debugfs entry to > display current rsc associated to one rproc. Happy to take suggestions to add functionality, but I would like to prevent *this* set from suffering from feature cree

Re: [PATCH 7/9] remoteproc: core: Add function to over-ride current resource table

2016-08-09 Thread Lee Jones
On Mon, 08 Aug 2016, loic pallardy wrote: > Hi Lee > > On 08/04/2016 11:21 AM, Lee Jones wrote: > > Most of the new resource table handling function are now in place, so > > it's time to put it all together. Once new resource table information > > has been requested, the structures will be held

Applied "ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()" to the asoc tree

2016-08-09 Thread Mark Brown
The patch ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "regmap: Add a function to check if a regmap register is cached" to the regmap tree

2016-08-09 Thread Mark Brown
The patch regmap: Add a function to check if a regmap register is cached has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: remove snd_soc_pcm_set/get_drvdata()" to the asoc tree

2016-08-09 Thread Mark Brown
The patch ASoC: remove snd_soc_pcm_set/get_drvdata() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Re: perf: WARNING: kernel/events/core.c:4893 perf_mmap_close

2016-08-09 Thread Vince Weaver
On Tue, 9 Aug 2016, Alexander Shishkin wrote: > Awesome, I'll have a look. Can you tell it it was messing around with > intel_bts driver from the fuzzer log? the fuzzer is messing around with the aux buffer, but this particular bug triggered quickly so I can't easily tell if this particular bug

Re: linux-next: build failure after merge of Linus' tree

2016-08-09 Thread Doug Ledford
On 8/9/2016 4:54 AM, Leon Romanovsky wrote: > On Mon, Aug 8, 2016 at 6:37 PM, Doug Ledford wrote: >> On 8/7/2016 9:58 PM, Stephen Rothwell wrote: >>> Hi all, >>> >>> With Linus' tree, today's linux-next build (powerpc allyesconfig) failed >>> like this: >>> >>> drivers/infiniband/sw/built-in.o:(.o

Re: [PATCH 0/5] ipc/msg: Sender/receiver optimizations

2016-08-09 Thread Peter Zijlstra
On Thu, Aug 04, 2016 at 06:44:09PM +0200, Peter Zijlstra wrote: > On Thu, Jul 28, 2016 at 04:33:34PM -0700, Davidlohr Bueso wrote: > > Hi, > > > > I'm resending Sebastian's sysv msg queue use of wake_qs but updated > > to the last observations I need wrt the need of explicit barriers > > after rem

Applied "regmap: debugfs: Add support for dumping write only device registers" to the regmap tree

2016-08-09 Thread Mark Brown
The patch regmap: debugfs: Add support for dumping write only device registers has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle cpus

2016-08-09 Thread Petr Mladek
On Mon 2016-08-08 12:03:38, Chris Metcalf wrote: > When doing an nmi backtrace of many cores, most of which are idle, > the output is a little overwhelming and very uninformative. Suppress > messages for cpus that are idling when they are interrupted and just > emit one line, "NMI backtrace for N

Re: [PATCH v10] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-08-09 Thread Maarten Lankhorst
Hey, Op 08-08-16 om 23:03 schreef Lyude: > Since the watermark calculations for Skylake are still broken, we're apt > to hitting underruns very easily under multi-monitor configurations. > While it would be lovely if this was fixed, it's not. Another problem > that's been coming from this however,

[PATCH 11/20] leds: Remove SEAD3 driver

2016-08-09 Thread Paul Burton
SEAD3 is now using the generic syscon & regmap based register-bit-led driver, so remove the unused custom SEAD3 LED driver. Signed-off-by: Paul Burton --- drivers/leds/Kconfig | 10 -- drivers/leds/Makefile | 1 - drivers/leds/leds-sead3.c | 78

[PATCH 19/20] MIPS: SEAD3: Use img-ascii-lcd driver

2016-08-09 Thread Paul Burton
Probe the img-ascii-lcd driver using device tree in order to display a message on the SEAD3 board's LCD display, and remove the platform code that was formerly performing this function. This removes more platform code and moves SEAD3 further towards being entirely DT-based. Signed-off-by: Paul Bur

[PATCH 15/20] MIPS: SEAD3: Drop use of cobalt fbdev driver

2016-08-09 Thread Paul Burton
The 2 line * 16 character LCD display on the SEAD3 board has no real use as a framebuffer device. It's far too small to produce any meaningful output if used as the kernel console, SEAD3 is a development board that will essentially always have a far more useful UART connection & the code in sead3-d

[PATCH 20/20] MIPS: SEAD3: Remove custom read_persistent_clock

2016-08-09 Thread Paul Burton
The SEAD3 board defines a custom implementation of read_persistent_clock which does exactly the same dummy operation as the generic weak version. Remove the not really implemented custom version. Signed-off-by: Paul Burton --- arch/mips/mti-sead3/sead3-time.c | 6 -- 1 file changed, 6 dele

[PATCH 13/20] MIPS: SEAD3: Use generic restart-poweroff driver

2016-08-09 Thread Paul Burton
Remove the custom platform code to restart when instructed to power off, instead relying upon the generic restart-poweroff driver probed via DT to do the same thing. Remove also the halt implementation, which is incorrect. The generic MIPS version will hang the system as halt should. Signed-off-b

[PATCH 17/20] dt-bindings: img-ascii-lcd: Document a binding for simple ASCII LCDs

2016-08-09 Thread Paul Burton
Add documentation for a devicetree binding for the simple ASCII LCD displays found on development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3 from Imagination Technologies. Signed-off-by: Paul Burton --- .../devicetree/bindings/auxdisplay/img-ascii-lcd.txt| 17 +

[PATCH 10/20] MIPS: SEAD3: Use register-bit-led driver via DT for LEDs

2016-08-09 Thread Paul Burton
Probe a driver for the PLED & FLED LEDs found on the SEAD3 board using the register-bit-led driver via device tree, rather than a custom driver via platform code. Enable support for the register-bit-led driver & its prerequisite syscon in sead3_defconfig. Signed-off-by: Paul Burton --- arch/mip

[PATCH 14/20] MIPS: SEAD3: Parse memsize in DT shim

2016-08-09 Thread Paul Burton
Parse the memsize argument provided by the bootloader in the DT shim code, allowing the user to override it on the command line. This places all of the DT manipulation code into sead3-dtshim.c. Signed-off-by: Paul Burton --- arch/mips/mti-sead3/sead3-dtshim.c | 72 ++

[PATCH 16/20] fbdev: cobalt_lcdfb: Drop SEAD3 support

2016-08-09 Thread Paul Burton
The SEAD3 board no longer uses the cobalt_lcdfb driver, so remove the SEAD3-specific code from it. Signed-off-by: Paul Burton --- drivers/video/fbdev/Kconfig| 2 +- drivers/video/fbdev/cobalt_lcdfb.c | 42 -- 2 files changed, 1 insertion(+), 43 delet

Re: [PATCH v3 1/2] befs: remove unused BEFS_BT_PARMATCH

2016-08-09 Thread Salah Triki
On Mon, Aug 08, 2016 at 03:21:20PM +0100, Luis de Bethencourt wrote: > befs_btree_find(), the only caller of befs_find_key(), only cares about if > the return from that function is BEFS_BT_MATCH or not. It never uses the > partial match given with BEFS_BT_PARMATCH. Make the overflow return clearer

[PATCH 12/20] MIPS: SEAD3: Reset via generic syscon-reboot driver & DT

2016-08-09 Thread Paul Burton
Remove the SEAD3 implementation of _machine_restart & instead make use of the generic syscon-reboot driver probed via device tree. Signed-off-by: Paul Burton --- arch/mips/boot/dts/mti/sead3.dts | 12 arch/mips/configs/sead3_defconfig | 3 ++- arch/mips/mti-sead3/sead3-reset.c |

[PATCH 18/20] auxdisplay: img-ascii-lcd: driver for simple ASCII LCD displays

2016-08-09 Thread Paul Burton
Add a driver for simple ASCII LCD displays found on the MIPS Boston, Malta & SEAD3 development boards. The Boston display is an independent memory mapped device with a simple memory mapped 8 byte register space containing the 8 ASCII characters to display. The Malta display is exposed as part of th

Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state

2016-08-09 Thread Luis de Bethencourt
On 09/08/16 13:32, Salah Triki wrote: > flags field records the superblock state, so check if it is equal to > BEFS_DIRTY. > > Signed-off-by: Salah Triki > --- > fs/befs/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/befs/super.c b/fs/befs/super.c > index 5a

[PATCH 08/20] usb: host: ehci-sead3: Remove non-DT probe code

2016-08-09 Thread Paul Burton
Now that the SEAD3 board is probing the EHCI controller using device tree, remove the non-DT support from the probe function. Signed-off-by: Paul Burton --- drivers/usb/host/ehci-sead3.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/usb/host/ehci-

[PATCH 07/20] MIPS: SEAD3: Probe EHCI controller using DT

2016-08-09 Thread Paul Burton
Probe the SEAD3 EHCI controller using device tree rather than platform code, in order to reduce the amount of the latter. Now that no devices probed from platform code require interrupts, remove the retrieval of the IRQ domain & sead3int.h. Signed-off-by: Paul Burton --- arch/mips/boot/dts/mti

[PATCH 03/20] MIPS: SEAD3: Probe UARTs using DT

2016-08-09 Thread Paul Burton
Probe the UARTs on SEAD3 boards using device tree rather than platform code, in order to reduce the amount of the latter. This requires that CONFIG_SERIAL_OF_PLATFORM be enabled, so enable it in sead3_defconfig. The SEAD3 DT shim code is extended to read bootloader environment variables to determin

[PATCH 02/20] MIPS: SEAD3: Probe interrupt controllers using DT

2016-08-09 Thread Paul Burton
Probe the CPU interrupt controller & optional Global Interrupt Controller (GIC) using devicetree rather than platform code. Because the bootloader on SEAD3 does not provide a device tree to the kernel & the device tree is always built in, we patch out the GIC node during boot if we detect that a GI

Re: [PATCH 0/7] ima: carry the measurement list across kexec

2016-08-09 Thread Mimi Zohar
On Tue, 2016-08-09 at 15:19 +1000, Balbir Singh wrote: > > On 04/08/16 22:24, Mimi Zohar wrote: > > The TPM PCRs are only reset on a hard reboot. In order to validate a > > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > > of the running kernel must be saved and then re

Re: [PATCH v7 2/4] nmi_backtrace: do a local dump_stack() instead of a self-NMI

2016-08-09 Thread Petr Mladek
On Mon 2016-08-08 12:03:36, Chris Metcalf wrote: > Currently on arm there is code that checks whether it should call > dump_stack() explicitly, to avoid trying to raise an NMI when the > current context is not preemptible by the backtrace IPI. Similarly, > the forthcoming arch/tile support uses an

[PATCH 06/20] usb: host: ehci-sead3: Support probing using device tree

2016-08-09 Thread Paul Burton
Introduce support for probing the SEAD3 EHCI driver using device tree. Signed-off-by: Paul Burton --- drivers/usb/host/ehci-sead3.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-sead3.c b/drivers/usb/host/ehci-sead3.c in

[PATCH] thp: move shmem_huge_enabled() outside of SYSFS ifdef

2016-08-09 Thread Arnd Bergmann
The newly introduced shmem_huge_enabled() function has two definitions, but neither of them is visible if CONFIG_SYSFS is disabled, leading to a build error: mm/khugepaged.o: In function `khugepaged': khugepaged.c:(.text.khugepaged+0x3ca): undefined reference to `shmem_huge_enabled' This changes

[PATCH 05/20] MIPS: SEAD3: Probe ethernet controller using DT

2016-08-09 Thread Paul Burton
Probe the smsc911x ethernet controller using device tree rather than platform code, reducing the amount of the latter. Signed-off-by: Paul Burton --- arch/mips/boot/dts/mti/sead3.dts | 12 ++ arch/mips/include/asm/mips-boards/sead3int.h | 2 -- arch/mips/mti-sead3/sead3-dts

[PATCH 09/20] SEAD3: Probe parallel flash via DT

2016-08-09 Thread Paul Burton
Probe the system parallel flash using device tree rather than platform code, in order to reduce the amount of the latter. Signed-off-by: Paul Burton --- arch/mips/boot/dts/mti/sead3.dts | 17 + arch/mips/mti-sead3/sead3-platform.c | 37 2

[PATCH 04/20] MIPS: SEAD3: Use generic ns16550a earlycon support

2016-08-09 Thread Paul Burton
Stop selecting SYS_HAS_EARLY_PRINTK & remove the custom support for early output to the ns16550a UARTs, instead relying upon generic ns16550a earlycon support. This reduces the amount of platform code required for SEAD3 without losing any functionality. Signed-off-by: Paul Burton --- arch/mips/

[PATCH 01/20] MIPS: SEAD3: Split obj-y entries across lines

2016-08-09 Thread Paul Burton
Split the obj-y entries for SEAD3 onto a line each, so that they're more independent & can be modified more clearly by later commits. Signed-off-by: Paul Burton --- arch/mips/mti-sead3/Makefile | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/mips/mti-sead3/M

[PATCH 00/20] MIPS: SEAD3 device tree conversion

2016-08-09 Thread Paul Burton
Although the SEAD3 board has already made some minimal use of device tree, until now most peripherals have been left probed by platform code. This series converts all SEAD3 peripherals to instead be probed from device tree. The amount of platform code is significantly reduced leaving SEAD3 primed

Re: [PATCH v7 1/4] nmi_backtrace: add more trigger_*_cpu_backtrace() methods

2016-08-09 Thread Petr Mladek
On Mon 2016-08-08 12:03:35, Chris Metcalf wrote: > Currently you can only request a backtrace of either all cpus, or > all cpus but yourself. It can also be helpful to request a remote > backtrace of a single cpu, and since we want that, the logical > extension is to support a cpumask as the under

[PATCH] rmap: Fix compound check logic in page_remove_file_rmap

2016-08-09 Thread Steve Capper
In page_remove_file_rmap(.) we have the following check: VM_BUG_ON_PAGE(compound && !PageTransHuge(page), page); This is meant to check for either HugeTLB pages or THP when a compound page is passed in. Unfortunately, if one disables CONFIG_TRANSPARENT_HUGEPAGE, then PageTransHuge(.) will alway

[PATCH 2/3] fs: befs: check flags field to validate the superblock state

2016-08-09 Thread Salah Triki
flags field records the superblock state, so check if it is equal to BEFS_DIRTY. Signed-off-by: Salah Triki --- fs/befs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/super.c b/fs/befs/super.c index 5ab75e8..79be409 100644 --- a/fs/befs/super.c +++ b/fs/befs/

[PATCH 3/3] fs: befs: fix typo in befs_sb_info

2016-08-09 Thread Salah Triki
Fixing jornal to Journal. Signed-off-by: Salah Triki --- fs/befs/befs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 511d16d..55f3ea2 100644 --- a/fs/befs/befs.h +++ b/fs/befs/befs.h @@ -46,7 +46,7 @@ struct befs_sb_info { /* S

[PATCH 1/3] fs: befs: load flags field from disk

2016-08-09 Thread Salah Triki
flags field is usefull for validating the superblock state, so add this field to befs_sb_info and read the state from the disk. Signed-off-by: Salah Triki --- fs/befs/befs.h | 3 +++ fs/befs/super.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/fs/befs/befs.h b/fs/befs/befs.h index e0f

Re: [PATCH] mm: optimize find_zone_movable_pfns_for_nodes to avoid unnecessary loop.

2016-08-09 Thread zhong jiang
On 2016/8/5 22:04, zhongjiang wrote: > From: zhong jiang > > when required_kernelcore decrease to zero, we should exit the loop in time. > because It will waste time to scan the remainder node. > > Signed-off-by: zhong jiang > --- > mm/page_alloc.c | 10 +++--- > 1 file changed, 7 insertions

Re: [PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread Oliver Neukum
On Mon, 2016-08-08 at 11:48 -0400, robert.f...@collabora.com wrote: > From: Robert Foss > > Implemented queued response handling. This queue is processed every time the > WDM_READ flag is cleared. > > In case of a read error, userspace may not actually read the data, since the > driver returns a

Re: [PATCH 1/2] KVM: nVMX: fix msr bitmaps to prevent L2 from accessing L0 x2APIC

2016-08-09 Thread Radim Krčmář
2016-08-09 17:32+0800, Yang Zhang: > On 2016/8/9 2:16, Radim Krčmář wrote: >> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c >> @@ -6995,16 +6982,21 @@ static int handle_vmon(struct kvm_vcpu *vcpu) >> return 1; >> } >> >> +if (cpu_has_vmx_msr_bitmap()) { >> +

Re: [rtc-linux] Re: [PATCH] rtc: pcf2123: Add missing error code assignment before test

2016-08-09 Thread Alexandre Belloni
On 09/08/2016 at 14:03:35 +0200, Julia Lawall wrote : > > > On Tue, 9 Aug 2016, Christophe JAILLET wrote: > > > It is likely that checking the result of 'pcf2123_write_reg' is expected > > here. > > Also fix a small style issue. The '{' at the beginning of the function > > is misplaced. > > The

Re: A bug in ftrace - dynamic fops

2016-08-09 Thread Steven Rostedt
On Tue, 9 Aug 2016 10:16:00 +0200 (CEST) Miroslav Benes wrote: > I agree it is kind of shooting oneself in the foot bug, because explicit > call to a sleeping function may not be the brightest thing to do. However > I see two (closely related) issues with this. > > 1. It is a change in behavi

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Heiko Stübner
Am Dienstag, 9. August 2016, 13:36:17 schrieb Wolfram Sang: > The core will do this for us now. > > Signed-off-by: Wolfram Sang > --- [...] > diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c > index 2bc8b01153d619..3b87afe82f6394 100644 > --- a/drivers/i2c/busses/i2c-r

Re: x86/PCI: Scan all functions during probing

2016-08-09 Thread Lukas Wunner
On Tue, Aug 09, 2016 at 01:22:30PM +0200, Thomas Gleixner wrote: > From: Benedikt Spranger > > PCI and PCIBIOS probing only scans devices at function number 0/8/16/... > Subdevices (e.g. multiqueue) have function numbers which are not a > multiple of 8. > > Simple hypervisors (e.g. Jailhouse) pa

Re: [PATCH] rtc: pcf2123: Add missing error code assignment before test

2016-08-09 Thread Julia Lawall
On Tue, 9 Aug 2016, Christophe JAILLET wrote: > It is likely that checking the result of 'pcf2123_write_reg' is expected > here. > Also fix a small style issue. The '{' at the beginning of the function > is misplaced. They shouldn't be in the same patch. If you are wrong about the ret issue, t

Re: [PATCH v2 02/14] net: ethernet: ti: cpsw: remove redundant check in napi poll

2016-08-09 Thread Ivan Khoronzhuk
On 09.08.16 14:29, Grygorii Strashko wrote: On 08/06/2016 01:48 PM, Ivan Khoronzhuk wrote: No need to check number of handled packets, when in most cases (> 99%) it's not 0. It can be 0 only in rare cases, even in this case it's not bad to print just 0. Signed-off-by: Ivan Khoronzhuk --- dr

[PATCH] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-09 Thread Grygorii Strashko
Kmemleak reports following false positive memory leaks for each sk buffers allocated by CPSW (__netdev_alloc_skb_ip_align()) in cpsw_ndo_open() and cpsw_rx_handler(): unreferenced object 0xea915000 (size 2048): comm "systemd-network", pid 713, jiffies 4294938323 (age 102.180s) hex dump (first

Re: [PATCH V5 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-08-09 Thread Rafael J. Wysocki
On Tue, Aug 9, 2016 at 5:23 AM, Rui Wang wrote: > On Tuesday, Aug 9, 2016 4:23 AM, Bjorn Helgaas wrote: >> On Sun, Jun 26, 2016 at 11:44:57AM +0800, Rui Wang wrote: >> > v5: Remove #ifdef CONFIG_X86 from setup-bus.c, making it neutral to >> archs. >> > v4: Add comments explaining when to call acpi

Re: [PATCH v2 05/14] net: ethernet: ti: cpsw: don't check slave num in runtime

2016-08-09 Thread Ivan Khoronzhuk
On 09.08.16 14:34, Grygorii Strashko wrote: On 08/06/2016 01:48 PM, Ivan Khoronzhuk wrote: No need to check const slave num in runtime for every packet, and ndev for slaves w/o ndev is anyway NULL. So remove redundant check. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c

Re: [PATCH] rtc: pcf2123: Add missing error code assignment before test

2016-08-09 Thread Alexandre Belloni
On 09/08/2016 at 13:58:27 +0200, Christophe JAILLET wrote : > It is likely that checking the result of 'pcf2123_write_reg' is expected > here. > Also fix a small style issue. The '{' at the beginning of the function > is misplaced. > > Fixes: 809b453b76e15 ("rtc: pcf2123: clean up writes to the rt

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Uwe Kleine-König
Hello Wolfram, On Tue, Aug 09, 2016 at 01:36:17PM +0200, Wolfram Sang wrote: > The core will do this for us now. Would be nice to point out the relevant commit that changed the core in the commit log. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König

[PATCH] rtc: pcf2123: Add missing error code assignment before test

2016-08-09 Thread Christophe JAILLET
It is likely that checking the result of 'pcf2123_write_reg' is expected here. Also fix a small style issue. The '{' at the beginning of the function is misplaced. Fixes: 809b453b76e15 ("rtc: pcf2123: clean up writes to the rtc chip") Signed-off-by: Christophe JAILLET --- drivers/rtc/rtc-pcf212

Re: [PATCH v2] RANDOM: ATH9K RNG delivers zero bits of entropy

2016-08-09 Thread Theodore Ts'o
On Tue, Aug 09, 2016 at 06:30:03AM +, Pan, Miaoqing wrote: > Agree with Jason's point, also understand Stephan's concern. The > date rate can be roughly estimated by 'cat /dev/random |rngtest -c > 1000', the average speed is .294Kibits/s. I will sent the patch > to disable ath9k RNG by def

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-09 Thread Rafael J. Wysocki
On Tue, Aug 9, 2016 at 11:23 AM, Jiri Kosina wrote: > On Mon, 8 Aug 2016, Rafael J. Wysocki wrote: > >> From: Rafael J. Wysocki >> >> The low-level resume-from-hibernation code on x86-64 uses >> kernel_ident_mapping_init() to create the temoprary identity mapping, >> but that function assumes tha

Re: [PATCH RESEND] net: can: Introduce MEN 16Z192-00 CAN controller driver

2016-08-09 Thread Wolfgang Grandegger
Am 09.08.2016 um 08:10 schrieb Andreas Werner: On Mon, Aug 08, 2016 at 04:35:34PM +0200, Wolfgang Grandegger wrote: Am 08.08.2016 um 16:05 schrieb Andreas Werner: On Mon, Aug 08, 2016 at 02:28:39PM +0200, Wolfgang Grandegger wrote: ---snip--- + + ndev = alloc_candev(sizeof(struct men_

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Grygorii Strashko
On 08/09/2016 02:36 PM, Wolfram Sang wrote: The core will do this for us now. Signed-off-by: Wolfram Sang --- For: drivers/i2c/busses/i2c-davinci.c| 4 +--- drivers/i2c/busses/i2c-omap.c | 4 +--- Reviewed-by: Grygorii Strashko -- regards, -grygorii

[RFC PATCH 2/5] DT: mailbox: add binding doc for the ARM SMC mailbox

2016-08-09 Thread Andre Przywara
Signed-off-by: Andre Przywara --- .../devicetree/bindings/mailbox/arm-smc.txt| 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/arm-smc.txt diff --git a/Documentation/devicetree/bindings/mailbox/arm-smc.txt b/Docum

[RFC PATCH 1/5] mailbox: introduce ARM SMC based mailbox

2016-08-09 Thread Andre Przywara
This mailbox driver implements a mailbox which signals transmitted data via an ARM smc (secure monitor call) instruction. The mailbox receiver is implemented in firmware and can synchronously return data when it returns execution to the non-secure OS again. An asynchronous receive path is not imple

[RFC PATCH 5/5] arm64: dts: sunxi: add MMC nodes to Pine64 and BPi-M64 .dts

2016-08-09 Thread Andre Przywara
Those two boards connect a microSD card slot to the MMC0 controller. Add the dummy regulator and enable MMC0 to allow accessing the SD card. The BananaPi M64 has an on-board eMMC chip connected to the MMC2 controller, but the existing MMC driver does not support this properly yet, so keep this one

[RFC PATCH 3/5] arm64: dts: sunxi: add SCPI node to sun50i-a64.dtsi

2016-08-09 Thread Andre Przywara
Support for variable frequency clocks is implemented in ARM Trusted Firmware, which sits in SRAM and waits for SCPI requests. Add the respective SMC mailbox node and a 512-byte chunk of SRAM to allow SCPI calls to be handled by the firmware. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/

[RFC PATCH 4/5] arm64: dts: sunxi: add SCPI driven clocks and nodes for A64 MMC

2016-08-09 Thread Andre Przywara
The MMC controllers in the Allwinner A64 SoC are somewhat compatible with the versions used in other Allwinner SoCs. Tell Linux about the three MMC clocks that the firmware implements and add nodes to represent the MMC controllers. The actual hardware is capable of new transfer modes, which the dri

[RFC PATCH 0/5] Allwinner MMC firmware clocks implementation

2016-08-09 Thread Andre Przywara
Hi, this is a proof-of-concept series to demonstrate the usage of firmware driven clocks using the SCPI protocol for Allwinner SoCs. This aims to replace the tricky and highly SoC specific clocks drivers that every new Allwinner SoC seems to require. The idea is to abstract the internal clock spec

<    2   3   4   5   6   7   8   9   10   >