Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-18 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 04:58:52PM +, Reshetova, Elena wrote: > > Could you please fix you mailer to not unwrap the emails? > > I wish I understand what you mean by "unwrap"... ? Where I always have lines wrapped at 78 characters, but often when I see them back in your reply, they're unwrappe

Re: [PATCH] x86/dumpstack: make stack name tags more comprehensible

2016-11-18 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 11:46:23AM -0600, Josh Poimboeuf wrote: > NMI stack dumps are bracked by the following tags: > > > ... > > > The ending tag is kind of confusing if you don't already know what "EOE" > means (end of exception). The same ending tag is also used to mark the > end of

Re: logfs: GPF in logfs_alloc_inode

2016-11-18 Thread Dmitry Vyukov
On Fri, Nov 18, 2016 at 7:45 PM, Omar Sandoval wrote: > On Fri, Nov 18, 2016 at 11:09:54AM +0100, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers GPF in logfs_alloc_inode: >> https://gist.githubusercontent.com/dvyukov/64a2113e4cb484d9b7e0ef4ff8a522d0/raw/fffdfb8b781ec758563e087

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread Jeff Layton
On Fri, 2016-11-18 at 18:04 +, David Howells wrote: > Jeff Layton wrote: > > > > We've already been through that. I wanted to call it stx_data_version but > > > that got argued down to stx_version. The problem is that what the version > > > number means is entirely filesystem dependent, and

[PATCH -tip 0/3] locking/percpu-rwsem: writer-side optimizations

2016-11-18 Thread Davidlohr Bueso
Hi, Here are two updates intended for those rare updater cases. wrt numbers, I'm still trying to figure out this android boot environment (that calls cgroup_proc_write ipc paths) which might care about these changes. In the mean time, I'd like to know if anyone has any objections to these optimiz

[PATCH 3/3] locking/percpu-rwsem: Avoid unnecessary writer wakeups

2016-11-18 Thread Davidlohr Bueso
There is obviously no point in doing the wakeup if the reader wakee task can do the active readers check on behalf of the writer on its way to unlocking itself. The downside is that when readers_active_check() does return true we end up iterating the per-CPU counter twice. This trade-off, however,

[PATCH 1/3] locking/percpu-rwsem: Move text file into Documentation/locking/

2016-11-18 Thread Davidlohr Bueso
Although this is rather useless and the actual code is orders of magnitude more detailed and informative than this document. Might as well keep it instead, I guess its already there and could give a user a quick why/when use them vs regular rwsems. Signed-off-by: Davidlohr Bueso --- Documentati

[PATCH 2/3] locking/percpu-rwsem: Replace bulky wait-queues with swait

2016-11-18 Thread Davidlohr Bueso
In the case of the percpu-rwsem, they don't need any of the fancy/bulky features, such as custom callbacks or fine grained wakeups. Users that can convert to simple wait-queues are encouraged to do so for the various rt and (indirect) performance benefits. Signed-off-by: Davidlohr Bueso --- inc

Re: [PATCH v8 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-11-18 Thread atull
On Mon, 14 Nov 2016, Rob Herring wrote: > On Sun, Nov 06, 2016 at 07:49:21PM -0700, Joel Holdsworth wrote: > > This adds documentation of the device tree bindings of the Lattice iCE40 > > FPGA driver for the FPGA manager framework. > > > > Signed-off-by: Joel Holdsworth > > --- > > .../bindings

Re: [PATCHv0 1/1] fbdev: add Intel FPGA FRAME BUFFER driver

2016-11-18 Thread Rob Herring
On Fri, Nov 18, 2016 at 8:15 AM, One Thousand Gnomes wrote: >> AIUI, we're not taking new FB drivers. This should be a DRM driver >> instead. > > Yes - clone one of the dumb DRM drivers, or if you've got any little bits > of acceleration (even rolling the display) then it's possibly worth > accele

Re: [PATCH v3 1/3] remoteproc: qcom: Embed private data structure for hexagon dsp.

2016-11-18 Thread Bjorn Andersson
On Wed 16 Nov 06:41 PST 2016, Avaneesh Kumar Dwivedi wrote: > i have been a little delayed for posting replies to patch comments, > hopefully onward it should be quick and fast. > I would greatly appreciate if you allow for a discussion before posting new revisions of the patchset. I will respon

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-18 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 05:06:55PM +, Will Deacon wrote: > On Fri, Nov 18, 2016 at 12:37:18PM +0100, Peter Zijlstra wrote: > > +static inline void refcount_set(refcount_t *r, int n) > > +{ > > + atomic_set(&r->refs, n); > > +} > > + > > +static inline unsigned int refcount_read(const refcount

Re: [REVIEW][PATCH 1/3] ptrace: Capture the ptracer's creds not PT_PTRACE_CAP

2016-11-18 Thread Eric W. Biederman
Kees Cook writes: > On Thu, Nov 17, 2016 at 9:05 AM, Eric W. Biederman > wrote: >> >> When the flag PT_PTRACE_CAP was added the PTRACE_TRACEME path was >> overlooked. This can result in incorrect behavior when an application >> like strace traces an exec of a setuid executable. >> >> Further PT

[GIT PULL 3/4] bcm2835-defconfig-next-2016-11-18

2016-11-18 Thread Eric Anholt
Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-defconfig-next-2016-11-18 for you to fetch changes up to bab0cb90550467c71f4e1b73da406a2280c4f418: ARM: bcm2835: add thermal driver to default config (2016-11-11

[GIT PULL 2/4] bcm2835-dt-64-next-2016-11-18

2016-11-18 Thread Eric Anholt
Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-dt-64-next-2016-11-18 for you to fetch changes up to a44e87b47148c6ee6b78509f47e6a15c0fae890a: ARM64: dts: bcm2837-rpi-3-b: remove incorrect pwr LED (2016-11-16 1

[GIT PULL 1/4] bcm2835-dt-next-2016-11-18

2016-11-18 Thread Eric Anholt
Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-dt-next-2016-11-18 for you to fetch changes up to 3a1689ea752436917c5ce4487527ed6c444630ee: ARM: bcm2835: Add names for the RPi Zero GPIO lines (2016-11-16 13:54:

Re: [PATCH v5] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-11-18 Thread Mauro Carvalho Chehab
Em Tue, 25 Oct 2016 10:22:29 +0200 Thierry Escande escreveu: > From: Pawel Osciak > > When this flag is set for CAPTURE queues by the driver on calling > vb2_queue_init(), it forces the buffers on the queue to be > allocated/mapped with DMA_BIDIRECTIONAL direction flag instead of > DMA_FROM_DEV

Re: [PATCH v4 1/2] of: Add vendor prefix for Lattice Semiconductor

2016-11-18 Thread atull
On Sat, 29 Oct 2016, Joel Holdsworth wrote: > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt > b/Documentation/devicetree/bindings/vendor-prefixes.txt > index 1992aa9..d64

[GIT PULL 4/4] bcm2835-defconfig-64-next-2016-11-18

2016-11-18 Thread Eric Anholt
Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-defconfig-64-next-2016-11-18 for you to fetch changes up to ac178e4280e65f4d0d14b13a7bfec3a43ff90e66: ARM64: bcm2835: add thermal driver to default config (2016-1

Re: [PATCH v5 0/3] spi-nor: Add support for Intel SPI serial flash controller

2016-11-18 Thread Lee Jones
On Mon, 14 Nov 2016, Mika Westerberg wrote: > This is fifth version of the series. You can find the previous versions > archived on: > > v4: https://lwn.net/Articles/703773/ > v3: https://lwn.net/Articles/697231/ > v2: http://lists.infradead.org/pipermail/linux-mtd/2016-June/068277.html >

Re: [PATCH 1/2] mfd: rn5t618: Add Ricoh RC5T619 PMIC support

2016-11-18 Thread Lee Jones
On Sat, 05 Nov 2016, Pierre-Hugues Husson wrote: > The Ricoh RN5T567 is from the same family as the Ricoh RN5T618 is, > the differences are: > > + DCDC4/DCDC5 > + LDO7-10 > + Slightly different output voltage/currents > + 32kHz Output > + RTC > + USB Charger detection > > Signed-off-by: Pierre-H

Re: [PATCH] liquidio CN23XX: check if PENDING bit is clear using logical and

2016-11-18 Thread David Miller
From: Colin King Date: Fri, 18 Nov 2016 18:45:32 + > From: Colin Ian King > > the mbox state should be bitwise anded rather than logically anded > with OCTEON_MBOX_STATE_RESPONSE_PENDING. Fix this by using the > correct & operator instead of &&. > > Signed-off-by: Colin Ian King Dan Carp

Re: [PATCHv3 6/6] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-11-18 Thread Mark Rutland
On Fri, Nov 18, 2016 at 10:42:56AM -0800, Laura Abbott wrote: > On 11/18/2016 09:53 AM, Mark Rutland wrote: > > On Thu, Nov 17, 2016 at 05:16:56PM -0800, Laura Abbott wrote: > >> +#define __virt_to_phys_nodebug(x) ({ > >> \ > >>phys_addr_t __x = (phys_addr

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-18 Thread Dan Williams
On Fri, Nov 18, 2016 at 1:00 AM, John Garry wrote: > On 18/11/2016 01:53, Dan Williams wrote: >> >> On Thu, Nov 17, 2016 at 7:23 AM, John Garry wrote: >>> >>> On 11/11/2016 08:49, wangyijing wrote: >>> >>> >>> I have not seen the flutter issue. I am just trying to solve the >>> ho

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread David Howells
Jeff Layton wrote: > Does AFS allow you to infer something from the actual value? Yes. Given: (1) Each write on a file is atomic with respect to all other writes to that same file. (2) The data version is incremented by exactly one for each write committed, and that value is retur

Re: [PATCH 1/3] drivers: crypto: Add Support for Octeon-tx CPT Engine

2016-11-18 Thread David Daney
On 11/18/2016 07:00 AM, gcheri...@gmail.com wrote: From: George Cherian Enable the Physical Function diver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic Acceleration Unit. CPT includes microcoded GigaCypher symmetric engines (SEs) and asymmetric

[PATCH v3 0/2] DW DMAC: update device tree

2016-11-18 Thread Eugeniy Paltsev
It wasn't possible to enable some features like memory-to-memory transfers or multi block transfers via DT. It is fixed by these patches. Changes for v3: * Update existing platform data. We don't need to update existing DTS because default logic wasn't change: we don't set "is_nollp" if we

[PATCH v3 2/2] DW DMAC: add multi-block property to device tree

2016-11-18 Thread Eugeniy Paltsev
Several versions of DW DMAC have multi block transfers hardware support. Hardware support of multi block transfers is disabled by default if we use DT to configure DMAC and software emulation of multi block transfers used instead. Add multi-block property, so it is possible to enable hardware multi

[PATCH v3 1/2] DW DMAC: enable memory-to-memory transfers support

2016-11-18 Thread Eugeniy Paltsev
All known devices, which use DT for configuration, support memory-to-memory transfers. So enable it by default, if we read configuration from DT. Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/platform.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/dma/dw/platform.c b/dri

Re: [PATCH] mlxsw: switchib: add MLXSW_PCI dependency

2016-11-18 Thread David Miller
From: Arnd Bergmann Date: Fri, 18 Nov 2016 17:01:14 +0100 > The newly added switchib driver fails to link if MLXSW_PCI=m: > > drivers/net/ethernet/mellanox/mlxsw/mlxsw_switchib.o: In > function^Cmlxsw_sib_module_exit': > switchib.c:(.exit.text+0x8): undefined reference to > `mlxsw_pci_driver_u

Re: [PATCH v8 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-11-18 Thread Moritz Fischer
On Fri, Nov 18, 2016 at 10:56 AM, atull wrote: > On Mon, 14 Nov 2016, Rob Herring wrote: > >> On Sun, Nov 06, 2016 at 07:49:21PM -0700, Joel Holdsworth wrote: >> > This adds documentation of the device tree bindings of the Lattice iCE40 >> > FPGA driver for the FPGA manager framework. >> > >> > Si

Re: [PATCHv3 6/6] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-11-18 Thread Laura Abbott
On 11/18/2016 11:05 AM, Mark Rutland wrote: > On Fri, Nov 18, 2016 at 10:42:56AM -0800, Laura Abbott wrote: >> On 11/18/2016 09:53 AM, Mark Rutland wrote: >>> On Thu, Nov 17, 2016 at 05:16:56PM -0800, Laura Abbott wrote: > +#define __virt_to_phys_nodebug(x) ({

Re: [PATCH v4 1/2] of: Add vendor prefix for Lattice Semiconductor

2016-11-18 Thread Moritz Fischer
On Fri, Nov 18, 2016 at 10:59 AM, atull wrote: > On Sat, 29 Oct 2016, Joel Holdsworth wrote: > >> --- >> Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt >> b/Documentation/devi

Re: [PATCH] kvm: x86: merge kvm_arch_set_irq and kvm_arch_set_irq_inatomic

2016-11-18 Thread Paolo Bonzini
On 18/11/2016 19:20, David Hildenbrand wrote: > Am 17.11.2016 um 15:55 schrieb Paolo Bonzini: >> kvm_arch_set_irq is unused since commit b97e6de9c96. Merge >> its functionality with kvm_arch_set_irq_inatomic. >> >> Reported-by: Jiang Biao >> Signed-off-by: Paolo Bonzini >> --- > > As you said

Re: [PATCH] kvm: x86: merge kvm_arch_set_irq and kvm_arch_set_irq_inatomic

2016-11-18 Thread David Hildenbrand
Am 18.11.2016 um 20:20 schrieb Paolo Bonzini: On 18/11/2016 19:20, David Hildenbrand wrote: Am 17.11.2016 um 15:55 schrieb Paolo Bonzini: kvm_arch_set_irq is unused since commit b97e6de9c96. Merge its functionality with kvm_arch_set_irq_inatomic. Reported-by: Jiang Biao Signed-off-by: Paol

Re: [PATCH v3 0/2] DW DMAC: update device tree

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 22:12 +0300, Eugeniy Paltsev wrote: > It wasn't possible to enable some features like > memory-to-memory transfers or multi block transfers via DT. > It is fixed by these patches. First of all, please, give time to reviewers to comment the patches. Usually it should be at lea

Re: [PATCH v8 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-11-18 Thread Marek Vasut
On 11/18/2016 08:17 PM, Moritz Fischer wrote: > On Fri, Nov 18, 2016 at 10:56 AM, atull wrote: >> On Mon, 14 Nov 2016, Rob Herring wrote: >> >>> On Sun, Nov 06, 2016 at 07:49:21PM -0700, Joel Holdsworth wrote: This adds documentation of the device tree bindings of the Lattice iCE40 FPGA

Re: [PATCH v3 1/2] DW DMAC: enable memory-to-memory transfers support

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 22:12 +0300, Eugeniy Paltsev wrote: > All known devices, which use DT for configuration, support > memory-to-memory transfers. So enable it by default, if we read > configuration from DT. > > Signed-off-by: Eugeniy Paltsev You missed the given tag(s). > --- >  drivers/dma/

Re: [PATCH v3 0/6] sparc: Enable sun4v hypervisor PCI IOMMU v2 APIs and ATU

2016-11-18 Thread David Miller
From: Tushar Dave Date: Fri, 28 Oct 2016 10:12:39 -0700 > ATU (Address Translation Unit) is a new IOMMU in SPARC supported with > sun4v hypervisor PCI IOMMU v2 APIs. > > Current SPARC IOMMU supports only 32bit address ranges and one TSB > per PCIe root complex that has a 2GB per root complex DVM

Re: [PATCH 2/2] sunbmac: Fix compiler warning

2016-11-18 Thread David Miller
From: Tushar Dave Date: Mon, 17 Oct 2016 13:57:00 -0700 > sunbmac uses '__u32' for dma handle while invoking kernel DMA APIs, > instead of using dma_addr_t. This hasn't caused any 'incompatible > pointer type' warning on SPARC because until now dma_addr_t is of > type u32. However, recent changes

Re: [PATCH 1/2] sunqe: Fix compiler warnings

2016-11-18 Thread David Miller
From: Tushar Dave Date: Mon, 17 Oct 2016 13:56:59 -0700 > sunqe uses '__u32' for dma handle while invoking kernel DMA APIs, > instead of using dma_addr_t. This hasn't caused any 'incompatible > pointer type' warning on SPARC because until now dma_addr_t is of > type u32. However, recent changes i

RE: [char-misc-next 4/4] mei: bus: enable non-blocking RX

2016-11-18 Thread Winkler, Tomas
> > On Thu, Nov 17, 2016 at 04:22:24PM +, Winkler, Tomas wrote: > > > Just make a new function mei_cldev_recv_async() and then call a > > > local, static function, that does the work with the correct flag > > > set. That way the developer always knows exactly what is going on. > > > > We can

Re: [PATCH v3 2/3] remoteproc: qcom: Hexagon resource handling

2016-11-18 Thread Bjorn Andersson
On Wed 16 Nov 07:17 PST 2016, Avaneesh Kumar Dwivedi wrote: > > > On 11/8/2016 12:19 PM, Bjorn Andersson wrote: > >On Mon 07 Nov 04:37 PST 2016, Avaneesh Kumar Dwivedi wrote: > > > >>Handling of clock and regulator resources as well as reset > >>register programing differ according to version of

Re: [PATCH v16 06/15] clocksource/drivers/arm_arch_timer: separate out arch_timer_uses_ppi init code to prepare for GTDT.

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:48:59PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch refactor original arch_timer_uses_ppi init code: > (1) Extract a subfunction: arch_timer_uses_ppi_init > (2) Use the new subfunction in arch_timer_of_init and > arch_timer_acpi_init This isn't a stric

Re: [PATCH v3 2/2] DW DMAC: add multi-block property to device tree

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 22:12 +0300, Eugeniy Paltsev wrote: > Several versions of DW DMAC have multi block transfers hardware > support. Hardware support of multi block transfers is disabled > by default if we use DT to configure DMAC and software emulation > of multi block transfers used instead. >

Re: [PATCH v3 0/2] Ajust lockdep static allocations for sparc

2016-11-18 Thread David Miller
From: Babu Moger Date: Tue, 27 Sep 2016 12:33:26 -0700 > These patches limit the static allocations for lockdep data structures > used for debugging locking correctness. For sparc, all the kernel's code, > data, and bss, must have locked translations in the TLB so that we don't > get TLB misses o

Re: [PATCH v4] mm: don't cap request size based on read-ahead setting

2016-11-18 Thread Jens Axboe
On 11/18/2016 11:02 AM, Johannes Weiner wrote: On Thu, Nov 17, 2016 at 02:23:10PM -0700, Jens Axboe wrote: We ran into a funky issue, where someone doing 256K buffered reads saw 128K requests at the device level. Turns out it is read-ahead capping the request size, since we use 128K as the defau

Re: [PATCH 2/3] [media] v4l: rcar_fdp1: add FCP dependency

2016-11-18 Thread Arnd Bergmann
On Friday, November 18, 2016 6:08:01 PM CET Geert Uytterhoeven wrote: > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > > index 3c5a0b6b23a9..cd0cab6e0e31 100644 > > --- a/drivers/media/platform/Kconfig > > +++ b/drivers/media/platform/Kconfig > > @@ -311,6 +311,7 @

[PATCH] mm: don't cap request size based on read-ahead setting

2016-11-18 Thread Jens Axboe
We ran into a funky issue, where someone doing 256K buffered reads saw 128K requests at the device level. Turns out it is read-ahead capping the request size, since we use 128K as the default setting. This doesn't make a lot of sense - if someone is issuing 256K reads, they should see 256K reads, r

Re: [PATCH v16 07/15] clocksource/drivers/arm_arch_timer: Refactor arch_timer_detect_rate to keep dt code in *_of_init

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:49:00PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch refactor original arch_timer_detect_rate function: > (1) Separate out device-tree code, keep them in device-tree init > function: > arch_timer_of_init, > arch_timer_mem_init; P

Re: [PATCH v3 1/3] dt-bindings: firmware: scm: Add MSM8996 DT bindings

2016-11-18 Thread Bjorn Andersson
On Tue 15 Nov 17:19 PST 2016, Sarangdhar Joshi wrote: > Add SCM DT bindings for Qualcomm's MSM8996 platform. > > Acked-by: Rob Herring > Signed-off-by: Sarangdhar Joshi Acked-by: Bjorn Andersson Regards, Bjorn > --- > Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 ++ > 1 file

Re: [PATCH v16 08/15] clocksource/drivers/arm_arch_timer: Refactor arch_timer_needs_probing, and call it only if acpi disabled.

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:49:01PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch refactor original arch_timer_needs_probing function: > (1) Separate out arch_timer_needs_probing from arch_timer_common_init, > and call it only if acpi disabled. > (2) Rename arch_timer_ne

Re: [HMM v13 16/18] mm/hmm/migrate: new memory migration helper for use with device memory

2016-11-18 Thread Aneesh Kumar K.V
Jérôme Glisse writes: > This patch add a new memory migration helpers, which migrate memory > backing a range of virtual address of a process to different memory > (which can be allocated through special allocator). It differs from > numa migration by working on a range of virtual address and thu

Re: [PATCH v3 2/3] firmware: qcom: scm: Remove core, iface and bus clocks dependency

2016-11-18 Thread Bjorn Andersson
On Tue 15 Nov 17:19 PST 2016, Sarangdhar Joshi wrote: > Core, iface and bus clocks are not required to be voted from SCM > driver for some of the Qualcomm chipsets. Remove dependency on > these clocks from driver. > > Suggested-by: Bjorn Andersson Acked-by: Bjorn Andersson Regards, Bjorn > S

Re: [PATCH v3 3/3] firmware: qcom: scm: Return PTR_ERR when devm_clk_get fails

2016-11-18 Thread Bjorn Andersson
On Tue 15 Nov 17:19 PST 2016, Sarangdhar Joshi wrote: > When devm_clk_get fails for core clock, the failure was ignored > and the core_clk was explicitly set to NULL so that other > remaining clocks can be queried. However, now that we have a > cleaner way of expressing the clock dependency, retur

Re: [PATCH 1/2] of: base: add support to get machine model name

2016-11-18 Thread Frank Rowand
On 11/18/16 06:46, Rob Herring wrote: > On Thu, Nov 17, 2016 at 03:32:54PM +, Sudeep Holla wrote: >> Currently platforms/drivers needing to get the machine model name are >> replicating the same snippet of code. In some case, the OF reference >> counting is either missing or incorrect. >> >> Th

Re: [PATCH 1/3] drivers: crypto: Add Support for Octeon-tx CPT Engine

2016-11-18 Thread George Cherian
Hi David, Thanks for the review. On Saturday 19 November 2016 12:25 AM, David Daney wrote: On 11/18/2016 07:00 AM, gcheri...@gmail.com wrote: From: George Cherian Enable the Physical Function diver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic

[PATCH] arm64: dts: qcom: msm8996: Fixup smp2p node

2016-11-18 Thread Bjorn Andersson
The SMEM state property name changes between the integration branch and mainline, update to use the correct one. Fixes: 2f45d9fcd531 ("arm64: dts: msm8996: Add SMP2P and APCS nodes") Signed-off-by: Bjorn Andersson --- Seems we're still carrying this discrepancy somewhere and I missed it in my re

Re: [PATCH v16 10/15] clocksource/drivers/arm_arch_timer: Refactor the timer init code to prepare for GTDT

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:49:03PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch refactor original memory-mapped timer init code: > (1) Extract a subfunction for detecting a bast time frame: > is_best_frame. Please leave this logic in arch_timer_mem_init(). Pulling it

Re: [PATCH v16 11/15] acpi/arm64: Add GTDT table parse driver

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:49:04PM +0800, fu@linaro.org wrote: > +#define for_each_platform_timer(_g) for (; _g; _g = next_platform_timer(_g)) This doesn't fit the usual for_each_* pattern, since _g has to be manually initialised first. Either come up with a way of maknig this fit the usual p

Re: [HMM v13 16/18] mm/hmm/migrate: new memory migration helper for use with device memory

2016-11-18 Thread Jerome Glisse
On Sat, Nov 19, 2016 at 01:27:28AM +0530, Aneesh Kumar K.V wrote: > Jérôme Glisse writes: > > > [...] > > >+ > > +static int hmm_collect_walk_pmd(pmd_t *pmdp, > > + unsigned long start, > > + unsigned long end, > > + s

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-18 Thread Tony Lindgren
Hi, * Rafael J. Wysocki [16 16:35]: > However, my understanding is that the current code actually works for > runtime PM just fine. Hmm well I just noticed that for drivers not using autosuspend it can be flakey, see the patch below. That probably explains some mysteries people are seeing wi

[PATCH v2 0/3] staging: dgnc: dgnc_driver.c checkpatch modifications

2016-11-18 Thread Walt Feasel
Make Linux kernel coding style modifications for dgnc_driver.c to include: CHECK: Please don't use multiple blank lines CHECK: Blank lines aren't necessary before a close brace '}' Comment style modifications Walt Feasel (3): staging: dgnc: dgnc_driver.c Comment style modifications staging: dg

[PATCH v2 2/3] staging: dgnc: dgnc_driver.c Remove blank lines

2016-11-18 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Please don't use multiple blank lines Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/dgnc/dgn

[PATCH v2 3/3] staging: dgnc: dgnc_driver.c Blank line before }

2016-11-18 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Blank lines aren't necessary before a close brace '}' Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/stag

[PATCH v2 1/3] staging: dgnc: dgnc_driver.c Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications to comment styles Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.c | 57 +- 1 file changed, 20 insertions(+), 37 deletions(-) diff --git a/drivers/staging/dgnc/

Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip

2016-11-18 Thread Tony Lindgren
* Matt Ranostay [161117 17:55]: > Allow power sequencing for the Marvell SD8787 Wifi/BT chip. > This can be abstracted to other chipsets if needed in the future. Good to see this happening: Acked-by: Tony Lindgren

Re: [PATCH v16 14/15] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-11-18 Thread Mark Rutland
On Wed, Nov 16, 2016 at 09:49:07PM +0800, fu@linaro.org wrote: > From: Fu Wei > > The patch add memory-mapped timer register support by using the > information provided by the new GTDT driver of ACPI. > > Signed-off-by: Fu Wei > --- > drivers/clocksource/arm_arch_timer.c | 26 +

Re: spin_lock behavior with ARM64 big.Little/HMP

2016-11-18 Thread Vikram Mulukutla
Hi Sudeep, Thanks for taking a look! On 2016-11-18 02:30, Sudeep Holla wrote: Hi Vikram, On 18/11/16 02:22, Vikram Mulukutla wrote: Hello, This isn't really a bug report, but just a description of a frequency/IPC dependent behavior that I'm curious if we should worry about. The behavior

Re: [PATCH 1/2] of: base: add support to get machine model name

2016-11-18 Thread Frank Rowand
On 11/18/16 02:41, Sudeep Holla wrote: > > > On 17/11/16 21:00, Frank Rowand wrote: >> On 11/17/16 07:32, Sudeep Holla wrote: >>> Currently platforms/drivers needing to get the machine model name are >>> replicating the same snippet of code. In some case, the OF reference >>> counting is either m

Re: Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2016-11-18 Thread Brian Starkey
Hi Thomas, On Fri, Nov 18, 2016 at 01:40:43AM +0100, Thomas Gleixner wrote: Brian, On Thu, 17 Nov 2016, Brian Starkey wrote: No joy with this patch :-( I had to add an ioaddr argument because apparently that macro depends on local context (yuck...), but it doesn't help my issue. FWIW I don't

Re: [RFC PATCH] SRCU: More efficient reader counts.

2016-11-18 Thread Lance Roy
On Fri, 18 Nov 2016 06:08:45 -0800 "Paul E. McKenney" wrote: > However, let's first take a look at the overflow issue. > > If a given program could have ULONG_MAX or more readers at any given > time, there would of course be overflow. However, each read must have > an srcu_read_lock() outstandin

Re: [PATCH 3/3] drivers: crypto: Enable CPT options crypto for build

2016-11-18 Thread kbuild test robot
Hi George, [auto build test ERROR on cryptodev/master] [also build test ERROR on v4.9-rc5 next-20161117] [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/gcherianv-gmail-com/Add-Support-for-Cavium

Re: [v1] i2c: mux: pca954x : Supports ACPI

2016-11-18 Thread Peter Rosin
Hi, Thanks for your patch! Some small suggestions inline. On 2016-11-18 16:01, tnhu...@apm.com wrote: > From: Tin Huynh > > This patch enable ACPI support for mux-pca954x driver. > > Signed-off-by: Tin Huynh > --- > drivers/i2c/muxes/i2c-mux-pca954x.c | 25 - > 1 f

[GIT PULL] kbuild post v4.9-rc1 fixes

2016-11-18 Thread Michal Marek
Hi Linus, Here are some regression fixes for kbuild: - modversion support for exported asm symbols (Nick Piggin). The affected architectures need separate patches adding asm-prototypes.h. - fix rebuilds of lib-ksyms.o (Nick Piggin) - -fno-PIE builds (Sebastian Siewior and Borislav Petkov). This

Re: [BUG] mtd: blkdevs: fix deadlock

2016-11-18 Thread Ivan Grimaldi
On 11/17, Richard Weinberger wrote: > On Thu, Nov 17, 2016 at 10:15 PM, Ivan Grimaldi > wrote: > > I found this deadlock with kernel version 4.4.30, when insmod the ftl > > module, which register_mtd_blktrans. > > > > -> register_mtd_blktrans() > > -> mutex_lock(&mtd_table_mutex) > > -> ftl

Re: [patch 1/2] mm, zone: track number of pages in free area by migratetype

2016-11-18 Thread Vlastimil Babka
On 11/17/2016 11:11 PM, David Rientjes wrote: > On Thu, 17 Nov 2016, Vlastimil Babka wrote: > >>> The total number of free pages is still tracked, however, to not make >>> zone_watermark_ok() more expensive. Reading /proc/pagetypeinfo, however, >>> is faster. >> >> Yeah I've already seen a case w

[PATCH] ufs: qcom: Properly clear hba priv on failure

2016-11-18 Thread Bjorn Andersson
In the case where we fail to acquire the phy the hba priv will be set already, so during cleanup ufs_qcom_setup_clocks() will dereference the now free, but still "valid looking" pointer "host". Signed-off-by: Bjorn Andersson --- drivers/scsi/ufs/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+),

RE: [PATCH 20/29] radix tree: Improve multiorder iterators

2016-11-18 Thread Matthew Wilcox
From: Konstantin Khlebnikov [mailto:koc...@gmail.com] > On Fri, Nov 18, 2016 at 7:31 PM, Matthew Wilcox > wrote: > > I think what you're suggesting is that we introduce a new API: > > > > slot = radix_tree_iter_save(&iter, order); > > > > where the caller tells us the order of the entry it just c

[GIT PULL] ACPI fixes for v4.9-rc6

2016-11-18 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.9-rc6 with top-most commit aab0b243b9a2fab7dcee0ce6e13789d3ab0394bf Merge branches 'acpica-fixes', 'acpi-cppc-fixes' and 'acpi-tools-fixes' on top of commit a25f0944ba9b1d8a6813fd6f

Re: [PATCH] phy: rockchip-inno-usb2: add extcon dependency

2016-11-18 Thread Guenter Roeck
On Fri, Nov 18, 2016 at 8:36 AM, Arnd Bergmann wrote: > If extcon is a loadable module and rockchip-inno-usb2 is built-in, > we get a link failure: > > drivers/phy/phy-rockchip-inno-usb2.o: In function `rockchip_usb2phy_probe': > phy-rockchip-inno-usb2.c:(.text.rockchip_usb2phy_probe+0x1ec): undef

Re: [PATCH] mm: support anonymous stable page

2016-11-18 Thread Hugh Dickins
On Fri, 18 Nov 2016, Minchan Kim wrote: > On Thu, Nov 17, 2016 at 08:35:10PM -0800, Hugh Dickins wrote: > > > > Maybe add SWP_STABLE_WRITES in include/linux/swap.h, and set that > > in swap_info->flags according to bdi_cap_stable_pages_required(), > > leaving mapping->host itself NULL as before? >

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread Dave Chinner
On Fri, Nov 18, 2016 at 10:29:04AM +, David Howells wrote: > Dave Chinner wrote: > > > > (13) FS_IOC_GETFLAGS value. These could be translated to BSD's st_flags. > > > Note that the Linux IOC flags are a mess and filesystems such as Ext4 > > > define flags that aren't in linux/fs.h

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread Dave Chinner
On Fri, Nov 18, 2016 at 09:43:38AM +, David Howells wrote: > Dave Chinner wrote: > > > Fields in struct statx come in a number of classes: > > > > > > (0) stx_dev_*, stx_blksize. > > > > > > These are local system information and are always available. > > > > What does stx_blksize act

[PATCH v5 1/3] media: Media Device Allocator API

2016-11-18 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread David Howells
Dave Chinner wrote: > > Btw, can you point me at the manpage that defines the fsxattr struct and its > > flags? > > man xfsctl is the original source. However, warthog>man xfsctl No manual entry for xfsctl This should be in the kernel manpages repo since it's kernel UAPI.

Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-18 Thread Hugh Dickins
On Thu, 17 Nov 2016, Boris Ostrovsky wrote: > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > NUMA balancing") set VM_IO flag to prevent grant maps from being > subjected to NUMA balancing. > > It was discovered recently that this flag causes get_user_pages() to > always f

Re: stm class/intel_th: Updates for char-misc-next

2016-11-18 Thread Alexander Shishkin
Greg KH writes: > Any reason why you don't just send patches? I don't think I've taken a > pull request from you in the past, have I? You have indeed. Regards, -- Alex

Re: [PATCH V5 1/2] PCI/ACPI: Provide acpi_get_rc_resources() for ARM64 platform

2016-11-18 Thread Rafael J. Wysocki
On Fri, Nov 18, 2016 at 10:22 AM, Dongdong Liu wrote: > The acpi_get_rc_resources() is used to get the RC register address that can > not be described in MCFG. It takes the _HID&segment to look for and outputs > the RC address resource. Use PNP0C02 devices to describe such RC address > resource. U

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread Dave Chinner
On Thu, Nov 17, 2016 at 08:28:57PM -0700, Andreas Dilger wrote: > On Nov 17, 2016, at 4:40 PM, Dave Chinner wrote: > >> > >> Time fields are split into separate seconds and nanoseconds fields to make > >> packing easier and the granularities can be queried with the filesystem > >> info system cal

Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-18 Thread Boris Ostrovsky
On 11/18/2016 04:51 PM, Hugh Dickins wrote: > On Thu, 17 Nov 2016, Boris Ostrovsky wrote: > >> Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to >> NUMA balancing") set VM_IO flag to prevent grant maps from being >> subjected to NUMA balancing. >> >> It was discovered recently t

Re: linux-next: Tree for Nov 17

2016-11-18 Thread Paul Gortmaker
On Thu, Nov 17, 2016 at 1:08 AM, Stephen Rothwell wrote: > Hi all, > > There will be no linux-next releases on Friday (tomorrow) or Monday. > > Changes since 20161116: FYI, I saw this warning appear today (make allmodconfig; multi arch) drivers/remoteproc/Kconfig:3:error: recursive dependency de

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread Dave Chinner
On Fri, Nov 18, 2016 at 09:48:21PM +, David Howells wrote: > Dave Chinner wrote: > > > > Btw, can you point me at the manpage that defines the fsxattr struct and > > > its > > > flags? > > > > man xfsctl is the original source. However, > > warthog>man xfsctl > No manual e

[ANNOUNCE] 4.4.32-rt43

2016-11-18 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.32-rt43 stable release. This release is just an update to the new stable 4.4.32 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

[PATCH] ARC: rename Zebu platform support to HAPS

2016-11-18 Thread Vineet Gupta
There are more ARC Linux HAPS users than Zebu ones. Same kernel would work fine on both, even with embedded DT, assuming the FPGA bitfile configuration is same Suggested-by: Francois Bedard Signed-off-by: Vineet Gupta --- arch/arc/boot/dts/{zebu_hs.dts => haps_hs.dts}| 0 a

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread David Howells
Dave Chinner wrote: > > Definition: "Same as struct stat::st_blksize". > > So it is still defined as "mostly useless", then? :/ If we're going to be able to emulate stat() with this, then st_blksize must be determinable from whatever's in struct statx. If you can provide something better for s

Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-18 Thread Hugh Dickins
On Fri, 18 Nov 2016, Boris Ostrovsky wrote: > On 11/18/2016 04:51 PM, Hugh Dickins wrote: > > Hmm, sorry, but this seems overcomplicated to me: ingenious, but an > > unusual use of the ->get_policy method, which is a little worrying, > > since it has only been used for shmem (+ shm and kernfs) unti

[PATCH] iio: adc: New driver for TI ADS79XX chips

2016-11-18 Thread David Lechner
This adds a new driver for TI ADS79XX ADC chips. These communicate using SPI and come in 8/10/12-bit and 4/8/12/16 channel varieties. Signed-off-by: David Lechner --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-ads79xx.c | 492 +

Re: [PATCH v3 4/5] i2c: designware: Add slave mode as separated driver

2016-11-18 Thread kbuild test robot
-designware-Add-slave-support/20161118-193236 config: x86_64-randconfig-s4-11190538 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): d

[PATCH v2 3/3] staging: dgnc: dgnc_driver.h Spelling correction

2016-11-18 Thread Walt Feasel
Make spelling correction for 'statements' Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgn

<    2   3   4   5   6   7   8   9   >