Re: [Devel] [PATCH v9 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-22 Thread Robert Richter
On 22.06.17 19:58:22, Will Deacon wrote: > On Thu, Jun 22, 2017 at 07:22:57PM +0100, Will Deacon wrote: > > On Thu, Jun 22, 2017 at 05:35:35PM +0530, Geetha sowjanya wrote: > > > Cavium ThunderX2 SMMUv3 implementation has two Silicon Erratas. > > > 1. Errata ID #74 > > >SMMU register alias Page

Re: [PATCH RESEND 07/13] platform/chrome: cros_ec_lpc: Add support for GOOG004 ACPI device

2017-06-22 Thread Benson Leung
Hi Enric and Thierry, On Tue, May 16, 2017 at 06:13:13PM +0200, Enric Balletbo i Serra wrote: > From: Gwendal Grignou > > This patch removes platform_device_register() call and adds an ACPI > device id structure. The driver is now automatically probed for devices > with a GOOG0004 ACPI entry. >

Re: [PATCH 09/32] ext4: extended attribute value size limit is enforced by vfs

2017-06-22 Thread Andreas Dilger
On Jun 22, 2017, at 12:02 PM, Darrick J. Wong wrote: > > On Wed, Jun 21, 2017 at 02:21:19PM -0700, Tahsin Erdogan wrote: >> EXT4_XATTR_MAX_LARGE_EA_SIZE definition in ext4 is currently unused. >> Besides, vfs enforces its own 64k limit which makes the 1MB limit in >> ext4 redundant. Remove it. >

Re: patchwork: on whose behalf is it working? was Re: [linux-media] Patch notification: 3 patches updated

2017-06-22 Thread Pavel Machek
Hi! > > > The following patches (submitted by you) have been updated in patchwork: > > > > > > * linux-media: [RFC,07/13] v4l2: device_register_subdev_nodes: allow > > > calling multiple times > > > - http://patchwork.linuxtv.org/patch/39403/ > > > - for: Linux Media kernel patches >

Re: [PATCH RESEND 08/13] platform/chrome: cros_ec_lpc: Add power management ops

2017-06-22 Thread Benson Leung
Hi Enric and Thierry, On Tue, May 16, 2017 at 06:13:14PM +0200, Enric Balletbo i Serra wrote: > From: Archana Patni > > This patch adds suspend and resume pm ops to the LPC ChromeOS EC driver. > These LPC handlers call the croc_ec generic handlers. > > Signed-off-by: Archana Patni > Signed-off

Re: [tip:sched/core] sched/fair: Spare idle load balancing on nohz_full CPUs

2017-06-22 Thread Ingo Molnar
* Frederic Weisbecker wrote: > Hi Ingo, > > On Thu, Jun 22, 2017 at 04:11:53AM -0700, tip-bot for Frederic Weisbecker > wrote: > > Commit-ID: 387bc8b5536eeb0a92f4b4ab553539eaea2ac0ba > > Gitweb: > > http://git.kernel.org/tip/387bc8b5536eeb0a92f4b4ab553539eaea2ac0ba > > Author: Freder

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-22 Thread Tom Gall
Hi On Thu, Jun 22, 2017 at 2:06 PM, Shuah Khan wrote: > On 06/22/2017 11:50 AM, Kees Cook wrote: >> On Thu, Jun 22, 2017 at 10:49 AM, Andy Lutomirski wrote: >>> On Thu, Jun 22, 2017 at 10:09 AM, Shuah Khan wrote: On 06/22/2017 10:53 AM, Kees Cook wrote: > On Thu, Jun 22, 2017 at 9:18 A

Re: [PATCH 2/2] rt: Increase/decrease the nr of migratory tasks when enabling/disabling migration

2017-06-22 Thread Ingo Molnar
* Daniel Bristot de Oliveira wrote: > On 06/22/2017 10:38 AM, Ingo Molnar wrote: > > > > * Daniel Bristot de Oliveira wrote: > > > >> void migrate_disable(void) > >> { > >>struct task_struct *p = current; > >> + struct rq *rq; > >> + struct rq_flags rf; > >> + > >> > >>if (in_at

[PATCH v2] mtd: spi-nor: Add support for Spansion S25FL064L

2017-06-22 Thread Harry Chou
It's an 8 MiB flash with 4 KiB erase sectors. Signed-off-by: Harry Chou --- Changes v1 -> v2: - added SPI_NOR_DUAL_READ flag (supports Dual Output and I/O) - added SPI_NOR_QUAD_READ flag (supports Quad Output and I/O) - added SPI_NOR_4B_OPCODES flag (supports the 4-byte address instruction set

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Casey Schaufler
On 6/22/2017 11:59 AM, Stefan Berger wrote: > This series of patches primary goal is to enable file capabilities > in user namespaces without affecting the file capabilities that are > effective on the host. This is to prevent that any unprivileged user > on the host maps his own uid to root in a p

[PATCH 3/3] powerpc,mmap: properly account for stack randomization in mmap_base

2017-06-22 Thread riel
From: Rik van Riel When RLIMIT_STACK is, for example, 256MB, the current code results in a gap between the top of the task and mmap_base of 256MB, failing to take into account the amount by which the stack address was randomized. In other words, the stack gets less than RLIMIT_STACK space. Ensur

[PATCH 2/3] arm64/mmap: properly account for stack randomization in mmap_base

2017-06-22 Thread riel
From: Rik van Riel When RLIMIT_STACK is, for example, 256MB, the current code results in a gap between the top of the task and mmap_base of 256MB, failing to take into account the amount by which the stack address was randomized. In other words, the stack gets less than RLIMIT_STACK space. Ensur

[PATCH 1/3] x86/mmap: properly account for stack randomization in mmap_base

2017-06-22 Thread riel
From: Rik van Riel When RLIMIT_STACK is, for example, 256MB, the current code results in a gap between the top of the task and mmap_base of 256MB, failing to take into account the amount by which the stack address was randomized. In other words, the stack gets less than RLIMIT_STACK space. Ensur

[PATCH 0/3] properly account for stack randomization and guard gap

2017-06-22 Thread riel
When RLIMIT_STACK is larger than the minimum gap enforced by mmap_base(), it is possible for the kernel to place the mmap area where the stack wants to grow, resulting in the stack not being able to use the space that should have been allocated to it through RLIMIT_STACK. This series ensures that

Re: [RFC PATCH-cgroup 2/6] cgroup: Enable bypass mode in cgroup v2

2017-06-22 Thread Waiman Long
On 06/21/2017 05:17 PM, Tejun Heo wrote: > Hello, Waiman. > > Let's first talk about and make sense of high level semantics. > > On Wed, Jun 14, 2017 at 11:05:33AM -0400, Waiman Long wrote: >> +In the example below, '+' corresponds to an enabled controller and >> +corresponds to a bypassed controll

Re: [PATCH 1/7] platform/x86: fujitsu-laptop: do not use kfifo for storing hotkey scancodes

2017-06-22 Thread Michał Kępień
> On Fri, Jun 16, 2017 at 06:40:52AM +0200, Michał Kępień wrote: > > All ACPI device notify callbacks are invoked using acpi_os_execute(), > > which causes the supplied callback to be queued to a static workqueue > > which always executes on CPU 0. This means that there is no possibility > > for a

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

2017-06-22 Thread Alan Cox
On Thu, 22 Jun 2017 10:48:14 -0600 Logan Gunthorpe wrote: > Alpha implements its own io operation and doesn't use the > common library. Thus to make ioread64 and iowrite64 globally > available we need to add implementations for alpha. > > For this, we simply use calls that chain two 32-bit opera

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

2017-06-22 Thread Logan Gunthorpe
On 6/22/2017 2:08 PM, Alan Cox wrote: But this does not do the same thing as an ioread64 with regards to atomicity or side effects on the device. The same is true of the other hacks. You either have a real 64bit single read/write from MMIO space or you don't. You can't fake it. Yes, I know. But

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Stefan Berger
On 06/22/2017 03:59 PM, Casey Schaufler wrote: On 6/22/2017 11:59 AM, Stefan Berger wrote: This series of patches primary goal is to enable file capabilities in user namespaces without affecting the file capabilities that are effective on the host. This is to prevent that any unprivileged user o

Re: [PATCH 0/3] libata: prevent writes to read-only registers

2017-06-22 Thread Tejun Heo
On Wed, Jun 21, 2017 at 04:20:11PM -0700, Doug Berger wrote: > Recent Broadcom SoCs allow for the trapping of write accesses to > read-only registers. This is only useful if such accesses are > exceptional, so it is desirable to prevent such accesses in normal > operation. To that end, this set of

Re: [PATCH 3/7] asm-generic/io.h: make ioread64 and iowrite64 universally available

2017-06-22 Thread Alan Cox
On Thu, 22 Jun 2017 10:48:13 -0600 Logan Gunthorpe wrote: > Currently, ioread64 and iowrite64 are only available io CONFIG_64BIT=y > and CONFIG_GENERIC_IOMAP=n. Thus, seeing the functions are not > universally available, it makes them unusable for driver developers. > This leads to ugly hacks suc

Re: [tpmdd-devel] [PATCH] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Jason Gunthorpe
On Thu, Jun 22, 2017 at 11:29:57AM -0700, Azhar Shaikh wrote: > ioremap() for Intel Braswell processors was done in > tpm_tis_pnp_init(). But before this function gets called, > platform driver 'tis_drv' gets registered and its probe function > tpm_tis_plat_probe() is invoked, which does a TPM > ac

Re: [PATCH] Input: synaptics-rmi4 - Only read the F54 query registers which are used

2017-06-22 Thread Nick Dyer
On Tue, Jun 20, 2017 at 04:08:48PM -0700, Andrew Duggan wrote: > The F54 driver is currently only using the first 6 bytes of F54 so there > is no need to read all 27 bytes. Some Dell systems > (Dell XP13 9333 and similar) have an issue with the touchpad or I2C bus > when readiing reports larger the

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-22 Thread Shuah Khan
Hi Tom, On 06/22/2017 01:48 PM, Tom Gall wrote: > Hi > > On Thu, Jun 22, 2017 at 2:06 PM, Shuah Khan wrote: >> On 06/22/2017 11:50 AM, Kees Cook wrote: >>> On Thu, Jun 22, 2017 at 10:49 AM, Andy Lutomirski wrote: On Thu, Jun 22, 2017 at 10:09 AM, Shuah Khan wrote: > On 06/22/2017 10:5

Re: [PATCH 3/7] asm-generic/io.h: make ioread64 and iowrite64 universally available

2017-06-22 Thread Logan Gunthorpe
On 6/22/2017 2:14 PM, Alan Cox wrote: If a platform doesn't support 64bit I/O operations from the CPU then you either need to use some kind of platform/architecture specific interface if present or accept you don't have one. Yes, I understand that. The thing is that every user that's currently

Re: [RFC PATCH-cgroup 4/6] cgroup: Introduce subtree root mode

2017-06-22 Thread Waiman Long
On 06/21/2017 05:38 PM, Tejun Heo wrote: > Hello, Waiman. > > On Wed, Jun 14, 2017 at 11:05:35AM -0400, Waiman Long wrote: >> Subtree root mode is a new cgroup mode which applies the following >> restrictions when turned on: >> >> 1) Controllers are only allowed to be passed to the children in >>

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Casey Schaufler
On 6/22/2017 1:12 PM, Stefan Berger wrote: > On 06/22/2017 03:59 PM, Casey Schaufler wrote: >> On 6/22/2017 11:59 AM, Stefan Berger wrote: >>> This series of patches primary goal is to enable file capabilities >>> in user namespaces without affecting the file capabilities that are >>> effective on

Re: [v3 1/6] mm, oom: use oom_victims counter to synchronize oom victim selection

2017-06-22 Thread Tetsuo Handa
Roman Gushchin wrote: > On Thu, Jun 22, 2017 at 09:40:28AM +0900, Tetsuo Handa wrote: > > Roman Gushchin wrote: > > > --- a/mm/oom_kill.c > > > +++ b/mm/oom_kill.c > > > @@ -992,6 +992,13 @@ bool out_of_memory(struct oom_control *oc) > > > if (oom_killer_disabled) > > > return false; >

Re: [PATCH 3/7] asm-generic/io.h: make ioread64 and iowrite64 universally available

2017-06-22 Thread Alan Cox
On Thu, 22 Jun 2017 14:24:58 -0600 Logan Gunthorpe wrote: > On 6/22/2017 2:14 PM, Alan Cox wrote: > > If a platform doesn't support 64bit I/O operations from the CPU then you > > either need to use some kind of platform/architecture specific interface > > if present or accept you don't have one.

Re: [PATCH 3/7] asm-generic/io.h: make ioread64 and iowrite64 universally available

2017-06-22 Thread Logan Gunthorpe
On 6/22/2017 2:36 PM, Alan Cox wrote: I think that makes sense for the platforms with that problem. I'm not sure there are many that can't do it for mmio at least. 486SX can't do it and I guess some ARM32 but I think almost everyone else can including most 32bit x86. What's more of a problem is

[PATCH v2] vsprintf: Add %p extension "%pOF" for device tree

2017-06-22 Thread Rob Herring
From: Pantelis Antoniou 90% of the usage of device node's full_name is printing it out in a kernel message. However, storing the full path for every node is wasteful and redundant. With a custom format specifier, we can generate the full path at run-time and eventually remove the full path from e

Re: [PATCH 1/7] platform/x86: fujitsu-laptop: do not use kfifo for storing hotkey scancodes

2017-06-22 Thread Michał Kępień
> Hi Darren > > On Wed, Jun 21, 2017 at 07:44:13PM -0700, Darren Hart wrote: > > > I think the buffer size could probably be reduced a little without > > > impacting > > > on functionality. I suspect the value was chosen so as to be well above > > > the > > > number of events which could be gen

Re: [PATCH 1/3] PCI: ensure the PCI device is locked over ->reset_notify calls

2017-06-22 Thread Guilherme G. Piccoli
On 06/12/2017 08:14 PM, Bjorn Helgaas wrote: > On Wed, Jun 07, 2017 at 08:29:36PM +0200, Christoph Hellwig wrote: >> On Tue, Jun 06, 2017 at 04:14:43PM -0500, Bjorn Helgaas wrote: >>> So I guess the method here is >>> dev->driver->err_handler->reset_notify(), and the PCI core should be >>> holding

[PATCH] vc4: Add an ioctl for labeling GEM BOs for summary stats

2017-06-22 Thread Eric Anholt
This has proven immensely useful for debugging memory leaks and overallocation (which is a rather serious concern on the platform, given that we typically run at about 256MB of CMA out of up to 1GB total memory, with framebuffers that are about 8MB ecah). The state of the art without this is to du

RE: [tpmdd-devel] [PATCH] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Shaikh, Azhar
> -Original Message- > From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] > Sent: Thursday, June 22, 2017 1:20 PM > To: Shaikh, Azhar > Cc: jarkko.sakki...@linux.intel.com; tpmdd-de...@lists.sourceforge.net; > linux-security-mod...@vger.kernel.org; linux-kernel@vger.kernel.or

Re: [lkp-robot] [mm] 1be7107fbe: kernel_BUG_at_mm/mmap.c

2017-06-22 Thread Oleg Nesterov
On 06/22, Hugh Dickins wrote: > > On Thu, 22 Jun 2017, Oleg Nesterov wrote: > > > > Something like the patch below? Yes, I thought about this too. > > Yes, that patch (times 11 for all the architectures) ^^ Yes, yes, this is clear to me. But only a

Re: [PATCH v5 0/2] drm: atmel-hlcdc: clut support

2017-06-22 Thread Boris Brezillon
On Thu, 22 Jun 2017 07:03:09 +0200 Peter Rosin wrote: > Hi! > > This series adds support for an 8-bit clut mode in the atmel-hlcdc > driver. Applied to drm-misc-next. Thanks, Boris > > Changes since v4: > > - Added .clut_offset for overlay2 at 0xe00 for sama5d4 (unconfirmed if 0xe00 > is

Re: [PATCH 5/7] platform/x86: fujitsu-laptop: do not update ACPI device power status

2017-06-22 Thread Michał Kępień
> On Fri, Jun 16, 2017 at 06:40:56AM +0200, Michał Kępień wrote: > > Calling acpi_bus_update_power() for ACPI devices FUJ02B1 and FUJ02E3 is > > pointless as they are not power manageable (neither _PS0 nor _PR0 is > > defined for any of them), which causes their power state to be inherited > > from

Re: [Devel] [PATCH v9 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-22 Thread Lorenzo Pieralisi
On Thu, Jun 22, 2017 at 09:35:35PM +0200, Robert Richter wrote: > On 22.06.17 19:58:22, Will Deacon wrote: > > On Thu, Jun 22, 2017 at 07:22:57PM +0100, Will Deacon wrote: > > > On Thu, Jun 22, 2017 at 05:35:35PM +0530, Geetha sowjanya wrote: > > > > Cavium ThunderX2 SMMUv3 implementation has two S

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Stefan Berger
On 06/22/2017 04:33 PM, Casey Schaufler wrote: On 6/22/2017 1:12 PM, Stefan Berger wrote: On 06/22/2017 03:59 PM, Casey Schaufler wrote: On 6/22/2017 11:59 AM, Stefan Berger wrote: This series of patches primary goal is to enable file capabilities in user namespaces without affecting the file

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

2017-06-22 Thread Arnd Bergmann
On Thu, Jun 22, 2017 at 10:09 PM, Logan Gunthorpe wrote: > On 6/22/2017 2:08 PM, Alan Cox wrote: >> >> But this does not do the same thing as an ioread64 with regards to >> atomicity or side effects on the device. The same is true of the other >> hacks. You either have a real 64bit single read/wri

Re: [PATCH v2 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-06-22 Thread Rob Herring
On Tue, Jun 20, 2017 at 01:41:26PM +0200, Pierre-Yves MORDRET wrote: > This patch adds the documentation of device tree bindings for STM32F7 I2C > > Signed-off-by: M'boumba Cedric Madianga > Signed-off-by: Pierre-Yves MORDRET > --- > Change in V2 > * Remove i2c-timing binding in order to use g

Re: [PATCH v4 1/2] ACPICA: ACPI 6.2: Add support for new SRAT subtable

2017-06-22 Thread Lorenzo Pieralisi
On Thu, Jun 22, 2017 at 04:27:18PM +0200, Rafael J. Wysocki wrote: > On Thursday, June 22, 2017 02:13:18 PM Moore, Robert wrote: > > This support is already in the ACPICA code base, but I can't speak to when > > it will be upstreamed to Linux. Lv would know this. > > It should be there in linux-n

Re: [PATCH 2/2] edac: pnd2_edac: remove useless variable assignment

2017-06-22 Thread Borislav Petkov
On Thu, Jun 22, 2017 at 02:30:10PM -0500, Gustavo A. R. Silva wrote: > Value assigned to variable _ret_ at line 176 is overwritten > a few lines below before it can be used. This makes such > variable assignment useless. > > Addresses-Coverity-ID: 1403730 Get rid of this tag... > Signed-off-by:

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Serge E. Hallyn
Quoting Casey Schaufler (ca...@schaufler-ca.com): > On 6/22/2017 1:12 PM, Stefan Berger wrote: > > On 06/22/2017 03:59 PM, Casey Schaufler wrote: > >> On 6/22/2017 11:59 AM, Stefan Berger wrote: > >>> This series of patches primary goal is to enable file capabilities > >>> in user namespaces withou

Re: [PATCH v6 2/8] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-06-22 Thread Rob Herring
On Thu, Jun 22, 2017 at 04:54:30PM +0200, Jacopo Mondi wrote: > Add device tree bindings documentation for Renesas RZ/A1 gpio and pin > controller. > > Signed-off-by: Jacopo Mondi > --- > .../bindings/pinctrl/renesas,rza1-pinctrl.txt | 221 > + > 1 file changed, 221 ins

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

2017-06-22 Thread Logan Gunthorpe
On 6/22/2017 3:03 PM, Arnd Bergmann wrote: Drivers that want a non-atomic variant should include either include/linux/io-64-nonatomic-hi-lo.h or include/linux/io-64-nonatomic-lo-hi.h depending on what they need. Drivers that require 64-bit I/O should probably just depend on CONFIG_64BIT and maybe

Re: [PATCH] rcu: remove unused variable in boot_cpu_state_init

2017-06-22 Thread Paul E. McKenney
On Thu, Jun 22, 2017 at 07:36:29AM -0700, Paul E. McKenney wrote: > On Thu, Jun 22, 2017 at 12:15:50AM +0200, Arnd Bergmann wrote: > > On Thu, Jun 22, 2017 at 12:10 AM, Paul E. McKenney > > wrote: > > > On Wed, Jun 21, 2017 at 11:57:28PM +0200, Arnd Bergmann wrote: > > >> Without CONFIG_SMP, we ge

Re: [PATCH kernel 0/3 REPOST] vfio-pci: Add support for mmapping MSI-X table

2017-06-22 Thread Alex Williamson
On Thu, 15 Jun 2017 15:48:42 +1000 Alexey Kardashevskiy wrote: > Here is a patchset which Yongji was working on before > leaving IBM LTC. Since we still want to have this functionality > in the kernel (DPDK is the first user), here is a rebase > on the current upstream. > > > Current vfio-pci i

Re: [PATCH v5 1/4] x86: switch atomic.h to use atomic-instrumented.h

2017-06-22 Thread Andrew Morton
On Thu, 22 Jun 2017 16:14:16 +0200 Dmitry Vyukov wrote: > Add arch_ prefix to all atomic operations and include > . This will allow > to add KASAN instrumentation to all atomic ops. This gets a large number of (simple) rejects when applied to linux-next. Can you please redo against -next?

Re: [PATCH v5 2/6] dt-bindings: interrupt-controller: add DT binding for the Marvell ICU

2017-06-22 Thread Rob Herring
On Wed, Jun 21, 2017 at 03:29:13PM +0200, Thomas Petazzoni wrote: > This commit adds the Device Tree binding documentation for the Marvell > ICU interrupt controller, which collects wired interrupts from the > devices located into the CP110 hardware block of Marvell Armada 7K/8K, > and converts the

Re: [PATCH v2 0/3] ARM64: dts: meson-gxl: Add support for Libre Technology CC board

2017-06-22 Thread Kevin Hilman
Jerome Brunet writes: > This patchset adds support for the CC board from Shenzhen Libre Technology Applied to v4.13/dt64, Kevin

Re: [PATCH 0/4] g_NCR5380: PDMA fixes and cleanup

2017-06-22 Thread Ondrej Zary
On Thursday 15 June 2017 14:17:56 Finn Thain wrote: > Ondrej, would you please test this patch series? One of your patches > has been modified slightly and the two I wrote are untested. Works only with HDD on non-DTC chips. CD-ROM hangs. DTC hangs even with HDD. The PDMA code really needs to be fi

Re: [PATCH 4/7] alpha: provide ioread64 and iowrite64 implementations

2017-06-22 Thread Richard Henderson
On 06/22/2017 09:48 AM, Logan Gunthorpe wrote: Alpha implements its own io operation and doesn't use the common library. Thus to make ioread64 and iowrite64 globally available we need to add implementations for alpha. For this, we simply use calls that chain two 32-bit operations. (mostly becaus

Re: [PATCH v2 1/5] dt-bindings: add bindings for i2c-pca-platform

2017-06-22 Thread Chris Packham
On 22/06/17 20:23, Wolfram Sang wrote: > >> + - reset-gpios : gpio specifier for gpio connected to RESET_N pin. > > What about the 'active' state that Rob mentioned in his last review? > My intention was that by saying it is connected to the RESET_N bin the active state is covered. I personal

Re: [PATCH v3 11/11] x86/mm: Try to preserve old TLB entries using PCID

2017-06-22 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Andy Lutomirski wrote: > On Thu, Jun 22, 2017 at 5:21 AM, Thomas Gleixner wrote: > > Now one other optimization which should be trivial to add is to keep the 4 > > asid context entries in cpu_tlbstate and cache the last asid in thread > > info. If that's still valid then use i

Re: [vs-plain] Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Helge Deller
On 22.06.2017 16:14, Ben Hutchings wrote: > On Thu, 2017-06-22 at 15:59 +0200, Willy Tarreau wrote: >>> -- Allow stack to grow up to address space limit >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ >>> commit/?id=bd726c90b6b8ce87602208701b208a208e6d5600 >> >> This one cle

Re: [PATCH v2] ocfs2: fix deadlock caused by recursive locking in xattr

2017-06-22 Thread Andrew Morton
On Thu, 22 Jun 2017 14:10:38 +0800 Joseph Qi wrote: > Looks good. > Reviewed-by: Joseph Qi Should this fix be backported into -stable kernels? > On 17/6/22 09:47, Eric Ren wrote: > > Another deadlock path caused by recursive locking is reported. > > This kind of issue was introduced since comm

Re: [PATCH v3 1/3] dt-bindings: arm: amlogic: Add SoC information bindings

2017-06-22 Thread Rob Herring
On Wed, Jun 14, 2017 at 02:05:44PM +0200, Neil Armstrong wrote: > Add bindings for the SoC information register of the Amlogic SoCs. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/arm/amlogic.txt | 29 > +++ > 1 file changed, 29 insertions(+) >

Re: [PATCH v2 2/3] dt-bindings: iio: update STM32 timers clock names

2017-06-22 Thread Rob Herring
On Wed, Jun 14, 2017 at 05:13:15PM +0200, Fabrice Gasnier wrote: > Clock name has been updated during driver/DT binding review: > https://lkml.org/lkml/2016/12/13/718 > Update DT binding doc to reflect this. > > Fixes: bf2d8581b1b3 (iio: Add bindings for STM32 timer trigger driver) > Signed-off-by

Re: [PATCH v2 3/3] dt-bindings: pwm: update STM32 timers clock names

2017-06-22 Thread Rob Herring
On Wed, Jun 14, 2017 at 05:13:16PM +0200, Fabrice Gasnier wrote: > Clock name has been updated during driver/DT binding review: > https://lkml.org/lkml/2016/12/13/718 > Update DT binding doc to reflect this. > > Fixes: cd9a99c2f8e8 (dt-bindings: pwm: Add STM32 bindings) > Signed-off-by: Fabrice Ga

Re: [PATCH v2] regulator: tps65910: wire up sleep control configuration

2017-06-22 Thread Rob Herring
On Wed, Jun 14, 2017 at 09:04:14PM +0200, Michał Mirosław wrote: > This enables configuring the PMIC's sleep mode via device-tree. > > A pointer indirection to sleep mode data is removed, as it simplifies > the implementation slightly. In current kernel tree, platform data > structure is not used

Re: [PATCH v2 1/1] MAINTAINERS: Update SPI NOR subsystem git repositories

2017-06-22 Thread Brian Norris
On Thu, Jun 15, 2017 at 07:12:28PM +0200, Marek Vasut wrote: > On 06/13/2017 09:46 PM, Cyrille Pitchen wrote: > > SPI NOR branches are now hosted on MTD repos, spi-nor/next is on l2-mtd > > and spi-nor/fixes is on linux-mtd. > > > > Signed-off-by: Cyrille Pitchen > > Excellent. > > Acked-by: Ma

[PATCH v2] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Azhar Shaikh
ioremap() for Intel Braswell processors was done in tpm_tis_pnp_init(). But before this function gets called, platform driver 'tis_drv' gets registered and its probe function tpm_tis_plat_probe() is invoked, which does a TPM access. Now for Braswell processors tpm_platform_begin_xfer() will do an i

Re: [PATCH v5 1/2] media: i2c: adv748x: add adv748x driver

2017-06-22 Thread Rob Herring
On Wed, Jun 14, 2017 at 08:58:12PM +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Provide support for the ADV7481 and ADV7482. > > The driver is modelled with 4 subdevices to allow simultaneous streaming > from the AFE (Analog front end) and HDMI inputs though two CSI TX > entities. >

Re: [ANNOUNCE] v4.11.5-rt1

2017-06-22 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Mike Galbraith wrote: > On Thu, 2017-06-22 at 18:34 +0200, Sebastian Andrzej Siewior wrote: > > On 2017-06-20 09:45:06 [+0200], Mike Galbraith wrote: > > > See ! and ? > > > > See see. > > What about this: > > I'll give it a go, likely during the weekend. > > I moved 4.11-rt

Re: [PATCH] powerpc: Only obtain cpu_hotplug_lock if called by rtasd

2017-06-22 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Thiago Jung Bauermann wrote: > Michael Bringmann provided this information: > >> It's not hard to backport both this patch and commit fe5595c07400 > >> ("stop_machine: Provide stop_machine_cpuslocked()") from branch > >> smp/hotplug in tip.git for stable. > > > > Yeah but it's

Re: [RFC PATCH 7/7 v1]powerpc: Deliver SEGV signal on protection key violation.

2017-06-22 Thread Ram Pai
On Sat, Jun 17, 2017 at 08:54:44AM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2017-06-16 at 12:15 -0700, Ram Pai wrote: > > gp_regs size is not changed, nor is the layout. A unused field in > > the gp_regs is used to fill in the AMR contents. Old binaries will not > > be knowing about this unus

Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3

2017-06-22 Thread Al Viro
On Thu, Jun 22, 2017 at 08:25:16PM +0100, Al Viro wrote: > > All I know at this > > point is that commit f2ed8beb with 46f401c4 backported boots OK and commit > > 3448890c with the same backport fails. > > > > I will try loading jessie and see what happens. > > I would recheck which kernels are b

Re: [RFC PATCH 1/4] EDAC: mvebu: Add driver for Marvell Armada SoCs

2017-06-22 Thread Chris Packham
On 23/06/17 02:37, Jan Lübbe wrote: > Hi Chris, > > On Fr, 2017-06-09 at 15:14 +0200, Jan Lübbe wrote: >>> +static void mvebu_init_csrows(struct mem_ctl_info *mci, >>> + struct mvebu_mc_pdata *pdata) >> [...] >>> + devtype = (ctl >> 20) & 0x3; >>> + switch (devt

[PATCH] vmlfb: Fix error handling in cr_pll_init()

2017-06-22 Thread Alexey Khoroshilov
There is an error path, where iomemory is left mapped. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/video/fbdev/vermilion/cr_pll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/vermilion/cr_pll.c b/driver

Re: [PATCH 2/2] edac: pnd2_edac: remove useless variable assignment

2017-06-22 Thread Gustavo A. R. Silva
Hi Borislav, Quoting Borislav Petkov : On Thu, Jun 22, 2017 at 02:30:10PM -0500, Gustavo A. R. Silva wrote: Value assigned to variable _ret_ at line 176 is overwritten a few lines below before it can be used. This makes such variable assignment useless. Addresses-Coverity-ID: 1403730 Get ri

Re: [RFC PATCH 3/4] ARM: l2x0: add arm,ecc-enable property for aurora

2017-06-22 Thread Chris Packham
On 23/06/17 02:46, Jan Lübbe wrote: > Chris, > > On So, 2017-06-11 at 22:55 +, Chris Packham wrote: >> On 09/06/17 20:58, Jan Lübbe wrote: >>> On Do, 2017-06-08 at 16:11 +1200, Chris Packham wrote: + if (of_property_read_bool(np, "arm,ecc-enable")) { + mask |= L2C

Re: [v3 1/6] mm, oom: use oom_victims counter to synchronize oom victim selection

2017-06-22 Thread Tetsuo Handa
Tetsuo Handa wrote: > Roman Gushchin wrote: > > On Thu, Jun 22, 2017 at 09:40:28AM +0900, Tetsuo Handa wrote: > > > Roman Gushchin wrote: > > > > --- a/mm/oom_kill.c > > > > +++ b/mm/oom_kill.c > > > > @@ -992,6 +992,13 @@ bool out_of_memory(struct oom_control *oc) > > > > if (oom_killer_di

Re: new dma-mapping tree, was Re: clean up and modularize arch dma_mapping interface V2

2017-06-22 Thread Stephen Rothwell
Hi all, On Wed, 21 Jun 2017 15:32:39 +0200 Marek Szyprowski wrote: > > On 2017-06-20 15:16, Christoph Hellwig wrote: > > On Tue, Jun 20, 2017 at 11:04:00PM +1000, Stephen Rothwell wrote: > >> git://git.linaro.org/people/mszyprowski/linux-dma-mapping.git#dma-mapping-next > >> > >> Contacts: Mar

Re: [PATCH 1/2] clk: samsung: audss: Fix silent hang on Exynos4412 due to disabled EPLL

2017-06-22 Thread Stephen Boyd
On 06/22, Sylwester Nawrocki wrote: > On 06/21/2017 09:08 PM, Krzysztof Kozlowski wrote: > >Similarly to commit f1e9203e2366 ("clk: samsung: Fix Exynos 5420 pinctrl > >setup and clock disable failure due to domain being gated") for > >Exynos5420, the Exynos4412 also requires that EPLL is not disabl

Re: [PATCH] NFC: trf7970a: fix check of clock frequencies, use && instead of ||

2017-06-22 Thread Samuel Ortiz
Hi Colin, On Mon, Apr 24, 2017 at 02:36:02PM +0100, Colin King wrote: > From: Colin Ian King > > The "or" condition (clk_freq != TRF7970A_27MHZ_CLOCK_FREQUENCY) || > (clk_freq != TRF7970A_13MHZ_CLOCK_FREQUE) will always be true because > clk_freq cannot be equal to two different values at the sa

[PATCH 1/4] lib: Add xxhash module

2017-06-22 Thread Nick Terrell
Adds xxhash kernel module with xxh32 and xxh64 hashes. xxhash is an extremely fast non-cryptographic hash algorithm for checksumming. The zstd compression and decompression modules added in the next patch require xxhash. I extracted it out from zstd since it is useful on its own. I copied the code

[PATCH 4/4] squashfs: Add zstd support

2017-06-22 Thread Nick Terrell
Add zstd compression and decompression support to SquashFS. zstd is a great fit for SquashFS because it can compress at ratios approaching xz, while decompressing twice as fast as zlib. For SquashFS in particular, it can decompress as fast as lzo and lz4. It also has the flexibility to turn down th

[PATCH 3/4] btrfs: Add zstd support

2017-06-22 Thread Nick Terrell
Add zstd compression and decompression support to BtrFS. zstd at its fastest level compresses almost as well as zlib, while offering much faster compression and decompression, approaching lzo speeds. I benchmarked btrfs with zstd compression against no compression, lzo compression, and zlib compre

[PATCH] edac: pnd2_edac: add code comment for clarification and update variable assignment

2017-06-22 Thread Gustavo A. R. Silva
Add code comment to make it clear that the fall-through is intentional and, OR ret with its previous value to avoid overwriting it. Cc: Borislav Petkov Signed-off-by: Gustavo A. R. Silva --- drivers/edac/pnd2_edac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/e

Re: [PATCH] iio: adc: at91-sama5d2_adc: add support for suspend/resume functionality

2017-06-22 Thread kbuild test robot
Hi Eugen, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.12-rc6 next-20170622] [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/Eugen-Hristev/iio-adc-at91-sama5d2_adc-add

Re: [PATCH] kernel/extable.c: mark core_kernel_text notrace

2017-06-22 Thread Steven Rostedt
On Wed, 21 Jun 2017 09:03:26 +0200 Marcin Nowakowski wrote: > core_kernel_text is used by MIPS in its function graph trace processing, > so having this method traced leads to an infinite set of recursive calls > such as: > > [2.972075] Call Trace: > [2.972111] > [2.976731] [<80506584

RE: New NTB API Issue

2017-06-22 Thread Allen Hubbe
From: Logan Gunthorpe > On 6/22/2017 12:32 PM, Allen Hubbe wrote: > > From: Logan Gunthorpe > >> 2) The changes to the Intel and AMD driver for mw_get_align sets > >> *max_size to the local pci resource size. (Thus making the assumption > >> that the local is the same as the peer, which is wrong).

Re: [PATCH] kernel/extable.c: mark core_kernel_text notrace

2017-06-22 Thread Thomas Gleixner
On Thu, 22 Jun 2017, Steven Rostedt wrote: > On Wed, 21 Jun 2017 09:03:26 +0200 > Marcin Nowakowski wrote: > > > > -int core_kernel_text(unsigned long addr) > > +int notrace core_kernel_text(unsigned long addr) > > Is mips the only one with this issue. I hate adding notrace to general > functio

Re: [PATCH 0/2] NFC-digital: Adjustments for four function implementations

2017-06-22 Thread Samuel Ortiz
Hi Markus, On Mon, May 22, 2017 at 02:57:42PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 22 May 2017 14:50:05 +0200 > > Two update suggestions were taken into account > from static source code analysis. > > Markus Elfring (2): > Improve a size determination in four fu

Re: New NTB API Issue

2017-06-22 Thread Logan Gunthorpe
On 6/22/2017 4:12 PM, Allen Hubbe wrote: The resource size given by peer_mw_get_addr might be different than the max_size given by ntb_mw_get_align. I am most familiar with the ntb_hw_intel driver and that type of ntb hardware. The peer_mw_get_addr size is of the primary bar on the side to be

Re: [PATCH] iio: adc: Add support for DLN2 ADC

2017-06-22 Thread kbuild test robot
Hi Jack, [auto build test WARNING on iio/togreg] [also build test WARNING on v4.12-rc6 next-20170622] [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/Jack-Andersen/iio-adc-Add-support-for-DLN2

Re: [PATCH 09/32] ext4: extended attribute value size limit is enforced by vfs

2017-06-22 Thread Theodore Ts'o
On Thu, Jun 22, 2017 at 01:40:25PM -0600, Andreas Dilger wrote: > > The EXT4_XATTR_MAX_LARGE_EA_SIZE limit of 1MB was also totally arbitrary, > but a reasonable upper limit for the atomic get/set interface used by > xattrs. The underlying disk format could actually store xattrs of any size. > >

Re: [PATCH] nfc: Fix the sockaddr length sanitization in llcp_sock_connect

2017-06-22 Thread Samuel Ortiz
Hi Mateusz, On Wed, May 24, 2017 at 12:26:20PM +0200, Mateusz Jurczyk wrote: > Fix the sockaddr length verification in the connect() handler of NFC/LLCP > sockets, to compare against the size of the actual structure expected on > input (sockaddr_nfc_llcp) instead of its shorter version (sockaddr_n

Re: [PATCH] nfc: Ensure presence of required attributes in the activate_target netlink handler

2017-06-22 Thread Samuel Ortiz
Hi Mateusz, On Wed, May 24, 2017 at 12:42:26PM +0200, Mateusz Jurczyk wrote: > Check that the NFC_ATTR_TARGET_INDEX and NFC_ATTR_PROTOCOLS attributes (in > addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client > prior to accessing them. This prevents potential unhandled NULL pointe

Re: [PATCH 4/7] x86, boot, LLVM: #undef memcpy etc in string.c

2017-06-22 Thread Matthias Kaehlcke
(removed some non-x86 lists and folks from recipients) El Thu, Mar 16, 2017 at 05:15:17PM -0700 Michael Davidson ha dit: > undef memcpy and friends in boot/string.c so that the functions > defined here will have the correct names, otherwise we end up > up trying to redefine __builtin_memcpy etc.

[PATCH v2] iio: adc: Add support for DLN2 ADC

2017-06-22 Thread Jack Andersen
This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. ADC is the fourth and final component of the DLN2 for the kernel. Signed-off-by: Jack Andersen --- drivers/iio/adc/Kconfig| 9 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/dln2-adc.c | 644 +++

Re: [PATCH] nfc: nci: remove unnecessary null check

2017-06-22 Thread Samuel Ortiz
Hi Gustavo, On Tue, Jun 13, 2017 at 11:37:18AM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary NULL check for pointer conn_info. > conn_info is set in list_for_each_entry() using container_of(), > which is never NULL. > > Addresses-Coverity-ID: 1362349 > Cc: Guenter Roeck > Signed-off-by:

Re: [PATCH] NFC: add NULL checks to avoid potential NULL pointer dereference

2017-06-22 Thread Samuel Ortiz
On Tue, May 30, 2017 at 03:43:07PM -0500, Gustavo A. R. Silva wrote: > NULL checks at line 457: if (!link0 || !link1) {, implies that both > pointers link0 and link1 might be NULL. > Function nfcsim_link_free() dereference pointers link0 and link1. > Add NULL checks before calling nfcsim_link_free(

[PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done() (was: Re: NULL pointer dereference in isert_login_recv_done in 4.9.32)

2017-06-22 Thread Andrea Righi
On Wed, Jun 21, 2017 at 10:33:45AM -0600, Robert LeBlanc wrote: > On Wed, Jun 21, 2017 at 9:17 AM, Robert LeBlanc wrote: > > On Tue, Jun 20, 2017 at 12:54 PM, Robert LeBlanc > > wrote: > >> We have hit this four times today. Any ideas? > >> > >> [ 169.382113] BUG: unable to handle kernel NULL p

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-22 Thread Casey Schaufler
On 6/22/2017 2:09 PM, Serge E. Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): >> On 6/22/2017 1:12 PM, Stefan Berger wrote: >>> On 06/22/2017 03:59 PM, Casey Schaufler wrote: On 6/22/2017 11:59 AM, Stefan Berger wrote: > This series of patches primary goal is to enable f

Re: [PATCH] nfc: Add sockaddr length checks before accessing sa_family in bind handlers

2017-06-22 Thread Samuel Ortiz
On Tue, Jun 13, 2017 at 06:44:28PM +0200, Mateusz Jurczyk wrote: > Verify that the caller-provided sockaddr structure is large enough to > contain the sa_family field, before accessing it in bind() handlers of the > AF_NFC socket. Since the syscall doesn't enforce a minimum size of the > correspond

[PATCH] kdb: remove unnecessary variable assignment in kdb_bc()

2017-06-22 Thread Gustavo A. R. Silva
Value assigned to variable _bp_ at line 415 is the same as at line 434. This makes such variable assignment unnecessary. Addresses-Coverity-ID: 1227025 Signed-off-by: Gustavo A. R. Silva --- kernel/debug/kdb/kdb_bp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/debug/kdb/kdb_bp.c b/

RE: New NTB API Issue

2017-06-22 Thread Allen Hubbe
From: Logan Gunthorpe > Any thoughts on changing the semantics of mw_get_align so it must be > called with the link up? The intention of these is that these calls return information from the local port. The calls themselves don't reach across the link to the peer, but the information returned f

<    3   4   5   6   7   8   9   10   11   >