[PATCH 1/2] regulator: core: Correct type of mode in regulator_mode_constrain

2016-11-29 Thread Charles Keepax
Every function handling the mode within the regulator core uses an unsigned int for mode, except for regulator_mode_constrain. This patch changes the type of mode within regulator_mode_constrain which fixes several instances where we are passing pointers to unsigned ints then treating them as an in

Re: [Xen-devel] [PATCH] xen/scsifront: don't advance ring request pointer in case of error

2016-11-29 Thread David Vrabel
On 29/11/16 11:19, Juergen Gross wrote: > On 29/11/16 12:14, Jan Beulich wrote: > On 29.11.16 at 11:50, wrote: >>> --- a/drivers/scsi/xen-scsifront.c >>> +++ b/drivers/scsi/xen-scsifront.c >>> @@ -184,8 +184,6 @@ static struct vscsiif_request *scsifront_pre_req(struct >>> vscsifrnt_info *info

[PATCH 2/2] regulator: core: Allow enable GPIO to be specified using GPIOD

2016-11-29 Thread Charles Keepax
The regulator subsystem has used GPIOs internally for a while, however, end drivers must still specify their enable GPIO using a GPIO number. This patch allows the end drivers to specify the enable GPIO using GPIOD directly. Signed-off-by: Charles Keepax --- drivers/regulator/core.c | 38

[PATCHv5 03/36] page-flags: relax page flag policy for few flags

2016-11-29 Thread Kirill A. Shutemov
These flags are in use for filesystems with backing storage: PG_error, PG_writeback and PG_readahead. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-fl

[PATCHv5 11/36] HACK: readahead: alloc huge pages, if allowed

2016-11-29 Thread Kirill A. Shutemov
Most page cache allocation happens via readahead (sync or async), so if we want to have significant number of huge pages in page cache we need to find a ways to allocate them from readahead. Unfortunately, huge pages doesn't fit into current readahead design: 128 max readahead window, assumption o

[PATCHv5 08/36] filemap: handle huge pages in do_generic_file_read()

2016-11-29 Thread Kirill A. Shutemov
Most of work happans on head page. Only when we need to do copy data to userspace we find relevant subpage. We are still limited by PAGE_SIZE per iteration. Lifting this limitation would require some more work. Signed-off-by: Kirill A. Shutemov --- mm/filemap.c | 5 - 1 file changed, 4 inse

[PATCHv5 07/36] filemap: allocate huge page in page_cache_read(), if allowed

2016-11-29 Thread Kirill A. Shutemov
This patch adds basic functionality to put huge page into page cache. At the moment we only put huge pages into radix-tree if the range covered by the huge page is empty. We ignore shadow entires for now, just remove them from the tree before inserting huge page. Later we can add logic to accumu

[PATCHv5 22/36] mm, hugetlb: switch hugetlbfs to multi-order radix-tree entries

2016-11-29 Thread Kirill A. Shutemov
From: Naoya Horiguchi Currently, hugetlb pages are linked to page cache on the basis of hugepage offset (derived from vma_hugecache_offset()) for historical reason, which doesn't match to the generic usage of page cache and requires some routines to covert page offset <=> hugepage offset in commo

[PATCHv5 10/36] filemap: handle huge pages in filemap_fdatawait_range()

2016-11-29 Thread Kirill A. Shutemov
We writeback whole huge page a time. Signed-off-by: Kirill A. Shutemov --- mm/filemap.c | 5 + 1 file changed, 5 insertions(+) diff --git a/mm/filemap.c b/mm/filemap.c index ec976ddcb88a..52be2b457208 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -405,9 +405,14 @@ static int __filemap_fda

[PATCHv5 20/36] truncate: make truncate_inode_pages_range() aware about huge pages

2016-11-29 Thread Kirill A. Shutemov
As with shmem_undo_range(), truncate_inode_pages_range() removes huge pages, if it fully within range. Partial truncate of huge pages zero out this part of THP. Unlike with shmem, it doesn't prevent us having holes in the middle of huge page we still can skip writeback not touched buffers. With

[PATCHv5 16/36] thp: make thp_get_unmapped_area() respect S_HUGE_MODE

2016-11-29 Thread Kirill A. Shutemov
We want mmap(NULL) to return PMD-aligned address if the inode can have huge pages in page cache. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index a15d566b14f6..9c6ba124ba50 1006

[PATCHv5 23/36] mm: account huge pages to dirty, writaback, reclaimable, etc.

2016-11-29 Thread Kirill A. Shutemov
We need to account huge pages according to its size to get background writaback work properly. Signed-off-by: Kirill A. Shutemov --- fs/fs-writeback.c | 10 +++--- include/linux/backing-dev.h | 10 ++ include/linux/memcontrol.h | 22 ++--- mm/migrate.c| 1

[PATCHv5 09/36] filemap: allocate huge page in pagecache_get_page(), if allowed

2016-11-29 Thread Kirill A. Shutemov
Write path allocate pages using pagecache_get_page(). We should be able to allocate huge pages there, if it's allowed. As usually, fallback to small pages, if failed. Signed-off-by: Kirill A. Shutemov --- mm/filemap.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff

[PATCHv5 00/36] ext4: support of huge pages

2016-11-29 Thread Kirill A. Shutemov
Here's respin of my huge ext4 patchset on top of Matthew's patchset with few changes and fixes (see below). Please review and consider applying. I don't see any xfstests regressions with huge pages enabled. Patch with new configurations for xfstests-bld is below. The basics are the same as with

[PATCHv5 29/36] ext4: handle huge pages in ext4_da_write_end()

2016-11-29 Thread Kirill A. Shutemov
Call ext4_da_should_update_i_disksize() for head page with offset relative to head page. Signed-off-by: Kirill A. Shutemov --- fs/ext4/inode.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 21662bcbbbcb..e89249c03d2f 100644 ---

Re: [PATCH v3 00/33] Radix tree patches for 4.10

2016-11-29 Thread Kirill A. Shutemov
On Mon, Nov 28, 2016 at 01:50:04PM -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > Hi Andrew, > > Please include these patches in the -mm tree for 4.10. Mostly these > are improvements; the only bug fixes in here relate to multiorder > entries (which are unused in the 4.9 tree). The ID

[PATCHv5 12/36] brd: make it handle huge pages

2016-11-29 Thread Kirill A. Shutemov
Do not assume length of bio segment is never larger than PAGE_SIZE. With huge pages it's HPAGE_PMD_SIZE (2M on x86-64). Signed-off-by: Kirill A. Shutemov --- drivers/block/brd.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/block/brd.c b/drivers/b

[PATCHv5 28/36] ext4: make ext4_block_write_begin() aware about huge pages

2016-11-29 Thread Kirill A. Shutemov
It simply matches changes to __block_write_begin_int(). Signed-off-by: Kirill A. Shutemov --- fs/ext4/inode.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index d3143dfe9962..21662bcbbbcb 100644 --- a/

[PATCHv5 25/36] ext4: make ext4_writepage() work on huge pages

2016-11-29 Thread Kirill A. Shutemov
Change ext4_writepage() and underlying ext4_bio_write_page(). It basically removes assumption on page size, infer it from struct page instead. Signed-off-by: Kirill A. Shutemov --- fs/ext4/inode.c | 10 +- fs/ext4/page-io.c | 11 +-- 2 files changed, 14 insertions(+), 7 deleti

[PATCHv5 02/36] Revert "radix-tree: implement radix_tree_maybe_preload_order()"

2016-11-29 Thread Kirill A. Shutemov
This reverts commit 356e1c23292a4f63cfdf1daf0e0ddada51f32de8. After conversion of huge tmpfs to multi-order entries, we don't need this anymore. Signed-off-by: Kirill A. Shutemov --- include/linux/radix-tree.h | 1 - lib/radix-tree.c | 74 -

[PATCHv5 13/36] mm: make write_cache_pages() work on huge pages

2016-11-29 Thread Kirill A. Shutemov
We writeback whole huge page a time. Let's adjust iteration this way. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 1 + include/linux/pagemap.h | 1 + mm/page-writeback.c | 17 - 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/linu

[PATCHv5 04/36] mm, rmap: account file thp pages

2016-11-29 Thread Kirill A. Shutemov
Let's add FileHugePages and FilePmdMapped fields into meminfo and smaps. It indicates how many times we allocate and map file THP. Signed-off-by: Kirill A. Shutemov --- drivers/base/node.c| 6 ++ fs/proc/meminfo.c | 4 fs/proc/task_mmu.c | 5 - include/linux/mmzone.h

[PATCH v2] hwmon: (dme1737) Convert to use devm_hwmon_device_register_with_groups

2016-11-29 Thread Guenter Roeck
Reduce code size and simplify code. Before: text data bss dec hex filename 46341 525288064 106933 1a1b5 drivers/hwmon/dme1737.o After: text data bss dec hex filename 39216 35768 384 75368 12668 drivers/hwmon/dme1737.o A slight behavioral

Re: [Xen-devel] [PATCH] xen/scsifront: don't advance ring request pointer in case of error

2016-11-29 Thread Juergen Gross
On 29/11/16 12:14, Jan Beulich wrote: On 29.11.16 at 11:50, wrote: >> --- a/drivers/scsi/xen-scsifront.c >> +++ b/drivers/scsi/xen-scsifront.c >> @@ -184,8 +184,6 @@ static struct vscsiif_request *scsifront_pre_req(struct >> vscsifrnt_info *info) >> >> ring_req = RING_GET_REQUEST(&(in

RE: [PATCH V2 03/10] Documentation: devicetree: thermal: da9062/61 TJUNC temperature binding

2016-11-29 Thread Steve Twiss
Hi Eduardo, On 29 November 2016 00:59, Eduardo Valentin, wrote: > On Wed, Oct 26, 2016 at 05:56:37PM +0100, Steve Twiss wrote: > > +Optional properties: > > + > > +- dlg,tjunc-temp-polling-period-ms : Specify the polling period, measured > > +in milliseconds, between thermal zone device update

Re: [PATCH 1/1] scripts: Fixing NULL pointer dereference when pos->file is NULL

2016-11-29 Thread Arnd Bergmann
On Tuesday, November 29, 2016 4:04:59 PM CET Maninder Singh wrote: > This patch fixes NULL pointer dereference when pos->file is NULL. > > caught with static analysis tool. > Signed-off-by: Maninder Singh > Signed-off-by: Vaneet Narang > --- > scripts/dtc/srcpos.c | 3 +-- > 1 file changed, 1 i

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

2016-11-29 Thread Geert Uytterhoeven
CC linux-renesas-soc On Tue, Sep 27, 2016 at 9:33 PM, Babu Moger wrote: > 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 >

Re: [Xen-devel] [PATCH] xen/scsifront: don't advance ring request pointer in case of error

2016-11-29 Thread Jan Beulich
>>> On 29.11.16 at 11:50, wrote: > --- a/drivers/scsi/xen-scsifront.c > +++ b/drivers/scsi/xen-scsifront.c > @@ -184,8 +184,6 @@ static struct vscsiif_request *scsifront_pre_req(struct > vscsifrnt_info *info) > > ring_req = RING_GET_REQUEST(&(info->ring), ring->req_prod_pvt); > > -

RE: [PATCH V2 09/10] thermal: da9062/61: Thermal junction temperature monitoring driver

2016-11-29 Thread Steve Twiss
Hi Eduardo, Thanks for your response. On 29 November 2016 01:24, Eduardo Valentin, wrote: > On Wed, Oct 26, 2016 at 05:56:39PM +0100, Steve Twiss wrote: > > +config DA9062_THERMAL > > + tristate "DA9062/DA9061 Dialog Semiconductor thermal driver" > > + depends on MFD_DA9062 > > + depends o

Re: [PATCH v9 00/16] ACPI IORT ARM SMMU support

2016-11-29 Thread Hanjun Guo
On 2016/11/21 18:01, Lorenzo Pieralisi wrote: This patch series is v9 of a previous posting: https://lkml.org/lkml/2016/11/16/386 v8 -> v9 - Updated bypass flag handling in ARM SMMU v3 according to reviews - Removed SMMUv1/v2 configuration interrupt handling -

Re: [PATCH 7/10] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2016-11-29 Thread Ulf Hansson
[...] >>> >>>Sorry that I didn't make myself clear. >>> >>>Our host PHY delay line consists of hundreds of sampling points. >>>Each sampling point represents a different phase shift. >>> >>>In lower speed mode, our host driver will scan the delay line. >>>It will select an

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

2016-11-29 Thread Kirill A. Shutemov
On Mon, Nov 28, 2016 at 07:56:48PM -0800, Hugh Dickins wrote: > On Mon, 14 Nov 2016, Kirill A. Shutemov wrote: > > On Fri, Nov 11, 2016 at 01:41:11PM -0800, Hugh Dickins wrote: > > > > > > Certainly the new condition is easier to understand than the old > > > condition: > > > which is a plus, eve

Re: Build regressions/improvements in v4.9-rc7

2016-11-29 Thread Anatoly Pugachev
On Mon, Nov 28, 2016 at 11:43 PM, David Miller wrote: > From: Anatoly Pugachev > Date: Mon, 28 Nov 2016 23:40:34 +0300 > >> On Mon, Nov 28, 2016 at 5:29 PM, Geert Uytterhoeven >> wrote: >>> On Mon, Nov 28, 2016 at 3:27 PM, Geert Uytterhoeven >>> wrote: JFYI, when comparing v4.9-rc7[1] to v

Re: 4.9.0-rc6+ boot problem

2016-11-29 Thread Kui Zhang
Looks like my boot issue might be kvm related. System boots fine with CONFIG_KVM=m --- .config 2016-11-29 02:41:24.753930839 -0800 +++ .config.working 2016-11-29 02:41:11.029065291 -0800 @@ -3544,7 +3544,7 @@ # CONFIG_IMG_ASCII_LCD is not set # CONFIG_UIO is not set # CONFIG_VFIO is not set -

Re: [PATCH V2] leds: pca963x: Add ACPI support

2016-11-29 Thread Mika Westerberg
On Tue, Nov 29, 2016 at 11:55:47AM +0100, Jacek Anaszewski wrote: > On 11/29/2016 11:21 AM, Tin Huynh wrote: > > This patch enables ACPI support for leds-pca963x driver. > > > > Signed-off-by: Tin Huynh > > --- > > drivers/leds/leds-pca963x.c | 25 - > > 1 files changed

Re: [PATCH 1/2 v2] sched: fix find_idlest_group for fork

2016-11-29 Thread Morten Rasmussen
On Fri, Nov 25, 2016 at 04:34:32PM +0100, Vincent Guittot wrote: > During fork, the utilization of a task is init once the rq has been > selected because the current utilization level of the rq is used to set > the utilization of the fork task. As the task's utilization is still > null at this step

[PATCH 2/2] usb: dwc3: gadget: Clean up DCFG/DSTS FULLSPEED macro

2016-11-29 Thread Roger Quadros
DCFG/DSTS.FULLSPEED can be either 0x1 or 0x3. Let's call 0x1 as DCFG/DSTS_FULLSPEED1 and 0x3 as DCFG/DSTS_FULLSPEED3. Signed-off-by: Roger Quadros --- drivers/usb/dwc3/core.h | 8 drivers/usb/dwc3/gadget.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/driver

[PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-11-29 Thread Roger Quadros
DCFG.DEVSPD == 0x3 is not valid and we need to set DCFG.DEVSPD to 0x1 for full speed mode. Signed-off-by: Roger Quadros --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 1dfa56a5f..797e013

[PATCH 0/2] usb: dwc3: fix full speed gadget mode configuration

2016-11-29 Thread Roger Quadros
Hi, Although full speed gadget mode isn't really broken on my boards, we are not strictly following the dwc3 manual with regards to the DCFG.DEVSPD configuration. This series fixes that. cheers, -roger Roger Quadros (2): usb: dwc3: gadget: Fix full speed mode usb: dwc3: gadget: Clean up DCFG

Re: [PATCH V2] leds: pca963x: Add ACPI support

2016-11-29 Thread Jacek Anaszewski
On 11/29/2016 11:21 AM, Tin Huynh wrote: This patch enables ACPI support for leds-pca963x driver. Signed-off-by: Tin Huynh --- drivers/leds/leds-pca963x.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) Change from V1: -Add CONFIG_ACPI. diff --git a/driv

Re: [PATCH v2 2/2] ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

2016-11-29 Thread Sekhar Nori
On Monday 28 November 2016 05:45 PM, Bartosz Golaszewski wrote: > Due to memory throughput constraints any display mode for which the > pixel clock rate exceeds the recommended value of 37500 KHz must be > filtered out. I think there might be more reasons than memory throughput constraints for the

[PATCH] xen/scsifront: don't advance ring request pointer in case of error

2016-11-29 Thread Juergen Gross
When allocating a new ring slot for a request don't advance the producer index until the request is really ready to go to the backend. Otherwise only partially filled requests will be visible to the backend in case of errors on the frontend side. In scsifront_action_handler() free the request id i

Re: [PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-11-29 Thread Jon Hunter
Hi Allan, On 29/11/16 08:54, ASIX_Allan [Office] wrote: > Dear Jon , > > We can reproduce your issue on x86 Linux kernel 4.9.0-rc system in our site > and modified the following code can fix this issue. Please let us know if > you still have problems. Thanks a lot. > > static void ax88772_suspen

Re: [PATCH v2 1/2] dmaengine: dma_slave_config: add support for slave port window

2016-11-29 Thread Peter Ujfalusi
Vinod, On 11/17/2016 02:50 PM, Peter Ujfalusi wrote: > Some slave devices uses address window instead of single register for read > and/or write of data. With the src/dst_port_window_size the address window > can be specified and the DMAengine driver should use this information to > correctly set

Re: [PATCH V2] leds: pca963x: Add ACPI support

2016-11-29 Thread Mika Westerberg
On Tue, Nov 29, 2016 at 05:21:50PM +0700, Tin Huynh wrote: > This patch enables ACPI support for leds-pca963x driver. > > Signed-off-by: Tin Huynh Acked-by: Mika Westerberg

[PATCH 3/4] dt-bindings: display: add Amlogic Meson DRM Bindings

2016-11-29 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- .../bindings/display/meson/meson-drm.txt | 134 + 1 file changed, 134 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/meson/meson-drm.txt diff --git a/Documentation/devicetree/bindings/display/meson/meso

[PATCH 4/4] MAINTAINERS: add entry for Amlogic DRM drivers

2016-11-29 Thread Neil Armstrong
Add myself as maintainer for Amlogic DRM drivers. Signed-off-by: Neil Armstrong --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9cab85a..b6e80c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4085,6 +4085,15 @@ S: Supported F:

[PATCH 1/4] drm: Add support for Amlogic Meson Graphic Controller

2016-11-29 Thread Neil Armstrong
The Amlogic Meson Display controller is composed of several components : DMC|---VPU (Video Processing Unit)|--HHI--| | vd1 ___ __ | | D |---| ||| |||

[PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Neil Armstrong
Add Video Processing Unit and CVBS Output nodes, and enable CVBS on selected boards. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 46 ++ .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts| 4 ++ arch/arm64/boot/dts/amlogic/meson-gxb

[PATCH 0/4] drm: Add support for the Amlogic Video Processing Unit

2016-11-29 Thread Neil Armstrong
This a repost of the previous RFC at [1] with fixes, the following patches will be sent via a PULL Request once the Amlogic maintainer acks and takes the DT patches to avoid merges conflicts. The Amlogic Meson SoCs embeds a Video Processing Unit able to output at least a Composite/CVBS Video with

Re: [fuse-devel] fuse: feasible to distinguish between umount and abort?

2016-11-29 Thread Miklos Szeredi
On Fri, Nov 25, 2016 at 1:33 AM, Nikolaus Rath wrote: > On Nov 24 2016, Miklos Szeredi wrote: >> On Thu, Nov 24, 2016 at 12:11 AM, Nikolaus Rath wrote: >>> Hello, >>> >>> Currently, both a call to umount(2) and writing "1" to >>> /sys/fs/fuse/connections/NNN/abort will put the /dev/fuse fd into

Re: [PATCH v7 0/3] console: Add persistent scrollback buffers for all VGA consoles

2016-11-29 Thread Adam Borowski
On Tue, Nov 29, 2016 at 10:01:15AM +, Andrey Utkin wrote: > Regarding logout scrollback clearing not working for me. ncurses-6.0-rc1 > which I tested it with is the latest available in Gentoo portage, please > confirm whether I need any newer version, or should I tune something > else. I'd appr

Re: [PATCH v3 1/3] powernv:idle: Add IDLE_STATE_ENTER_SEQ_NORET macro

2016-11-29 Thread Balbir Singh
On 10/11/16 18:54, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Currently all the low-power idle states are expected to wake up > at reset vector 0x100. Which is why the macro IDLE_STATE_ENTER_SEQ > that puts the CPU to an idle state and never returns. > > On ISA_300, when the ESL

[PATCH 1/1] scripts: Fixing NULL pointer dereference when pos->file is NULL

2016-11-29 Thread Maninder Singh
This patch fixes NULL pointer dereference when pos->file is NULL. caught with static analysis tool. Signed-off-by: Maninder Singh Signed-off-by: Vaneet Narang --- scripts/dtc/srcpos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos

Re: [PATCH] Lock down drivers that can have io ports, io mem, irqs and dma changed

2016-11-29 Thread David Howells
David Howells wrote: > It would have to be more like pr_err("Hard-coded device addresses, irqs and > dma channels are not permitted when the kernel is locked down."), possibly > with the addition of either "The driver has been disabled" or "These settings > have been ignored". That should be "Co

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas wrote: > Gregory, > > 2016-11-29 11:19 GMT+01:00 Gregory CLEMENT > : >> Hi Marcin, >> >> On mar., nov. 29 2016, Marcin Wojtas wrote: >> >>> Hi Gregory, >>> >>> Another remark below, sorry for noise. >>> >>> 2016-11-29 10:37 GMT+01:00 Gregory C

Re: [PATCH] doc: Explain light-handed markup preference a bit better

2016-11-29 Thread Jani Nikula
On Tue, 29 Nov 2016, Daniel Vetter wrote: > We already had a super-short blurb, but worth extending it I think: > We're still pretty far away from anything like a consensus, but > there's clearly a lot of people who prefer an as-light as possible > approach to converting existing .txt files to .rs

Re: [PATCH 7/10] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2016-11-29 Thread Ziji Hu
Hi Ulf, On 2016/11/29 15:49, Ulf Hansson wrote: > On 29 November 2016 at 03:53, Ziji Hu wrote: >> Hi Ulf, >> >> On 2016/11/28 23:16, Ulf Hansson wrote: >>> On 28 November 2016 at 12:38, Ziji Hu wrote: Hi Ulf, On 2016/11/28 19:13, Ulf Hansson wrote: >> >> As you suggest

Re: [PATCH v2 12/13] net: ethernet: ti: cpts: calc mult and shift from refclk freq

2016-11-29 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:03:36PM -0600, Grygorii Strashko wrote: > +static void cpts_calc_mult_shift(struct cpts *cpts) > +{ > + u64 frac, maxsec, ns; > + u32 freq, mult, shift; > + > + freq = clk_get_rate(cpts->refclk); > + > + /* Calc the maximum number of seconds which we can r

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Marcin Wojtas
Gregory, 2016-11-29 11:19 GMT+01:00 Gregory CLEMENT : > Hi Marcin, > > On mar., nov. 29 2016, Marcin Wojtas wrote: > >> Hi Gregory, >> >> Another remark below, sorry for noise. >> >> 2016-11-29 10:37 GMT+01:00 Gregory CLEMENT >> : >>> Until now the virtual address of the received buffer were st

[PATCH v5 8/9] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2016-11-29 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Signed-off-by: Peter Rosin --- .../devicetree/bindings/misc/mux-adg792a.txt | 82 ++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/mux-adg792a.txt diff --git a/Documentation/dev

[PATCH v5 5/9] iio: multiplexer: new iio category and iio-mux driver

2016-11-29 Thread Peter Rosin
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, cre

Re: [PATCH] doc: Explain light-handed markup preference a bit better

2016-11-29 Thread Markus Heiser
Am 29.11.2016 um 10:23 schrieb Daniel Vetter : > We already had a super-short blurb, but worth extending it I think: > We're still pretty far away from anything like a consensus, but > there's clearly a lot of people who prefer an as-light as possible > approach to converting existing .txt files

[PATCH v5 6/9] dt-bindings: i2c: i2c-mux-simple: document i2c-mux-simple bindings

2016-11-29 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/i2c/i2c-mux-simple.txt | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt b/Do

[PATCH v5 0/9] mux controller abstraction and iio/i2c muxes

2016-11-29 Thread Peter Rosin
Hi! v4 -> v5 changes - remove support for fancier dt layouts and go back to the phandle approach from v2 and before, killing the horrible non-working refcounting crap from v4 and avoiding a bunch of life-time issues in v3. - introduce the concept of a mux-chip, that can hold one or more mu

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-29 Thread Paul E. McKenney
On Mon, Nov 28, 2016 at 11:52:41PM -0600, Josh Poimboeuf wrote: > On Mon, Nov 28, 2016 at 04:40:21PM -0800, Paul E. McKenney wrote: > > On Mon, Nov 28, 2016 at 03:54:11PM -0600, Josh Poimboeuf wrote: > > > On Thu, Nov 24, 2016 at 12:33:48PM -0500, Vince Weaver wrote: > > > > > > > > This is on a s

Re: [RFC] kernel/sysctl.c: return -EINVAL when write invalid val to ulong type sysctl

2016-11-29 Thread Yisheng Xie
On 2016/11/27 7:15, subas...@codeaurora.org wrote: > On 2016-11-26 02:13, Yisheng Xie wrote: >> -- >> diff --git a/kernel/sysctl.c b/kernel/sysctl.c >> index 706309f..40e9285 100644 >> --- a/kernel/sysctl.c >> +++ b/kernel/sysctl.c >> @@ -2485,10 +2485,14 @@ static int __do_pr

Re: net: GPF in eth_header

2016-11-29 Thread Andrey Konovalov
On Sat, Nov 26, 2016 at 9:05 PM, Eric Dumazet wrote: >> I actually see multiple places where skb_network_offset() is used as >> an argument to skb_pull(). >> So I guess every place can potentially be buggy. > > Well, I think the intent is to accept a negative number. I'm not sure that was the int

[PATCH v5 2/9] misc: minimal mux subsystem and gpio-based mux controller

2016-11-29 Thread Peter Rosin
Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement support for said multiplexer controller. A singl

[PATCH v5 7/9] i2c: i2c-mux-simple: new driver

2016-11-29 Thread Peter Rosin
This is a generic simple i2c mux that uses the generic multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/Kconfig | 13 +++ driver

[PATCH v5 1/9] dt-bindings: document devicetree bindings for mux-controllers and mux-gpio

2016-11-29 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/misc/mux-controller.txt| 153 + .../devicetree/bindings/misc/mux-gpio.txt | 85 MAINTAINERS| 5 + 3 files changed, 243 insertions(+) create mode 100644

Re: [PATCH V1] leds: pca963x: Add ACPI support

2016-11-29 Thread Jacek Anaszewski
On 11/29/2016 11:09 AM, Tin Huynh wrote: Hi I got a small bug when compiling without CONFIG_ACPI I will send out the patch to fix the problem later. Dropping the patch then. Could you share the details? Thanks, Jacek Anaszewski On Tue, Nov 29, 2016 at 5:04 PM, Jacek Anaszewski wrote: Hi Ti

[PATCH V2] leds: pca963x: Add ACPI support

2016-11-29 Thread Tin Huynh
This patch enables ACPI support for leds-pca963x driver. Signed-off-by: Tin Huynh --- drivers/leds/leds-pca963x.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) Change from V1: -Add CONFIG_ACPI. diff --git a/drivers/leds/leds-pca963x.c b/drivers/leds/leds

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas wrote: > Hi Gregory, > > Another remark below, sorry for noise. > > 2016-11-29 10:37 GMT+01:00 Gregory CLEMENT > : >> Until now the virtual address of the received buffer were stored in the >> cookie field of the rx descriptor. However, this fie

Re: [PATCH v3 net-next 2/6] net: mvneta: Use cacheable memory to store the rx buffer virtual address

2016-11-29 Thread Gregory CLEMENT
Hi Marcin, On mar., nov. 29 2016, Marcin Wojtas wrote: > Hi Gregory, > > Apparently HWBM had a mistake in implementation, please see below. > > 2016-11-29 10:37 GMT+01:00 Gregory CLEMENT > : >> Until now the virtual address of the received buffer were stored in the >> cookie field of the rx d

Re: [POC/RFC PATCH] overlayfs: constant inode numbers

2016-11-29 Thread Miklos Szeredi
On Mon, Nov 28, 2016 at 12:56 PM, Amir Goldstein wrote: > On Mon, Nov 28, 2016 at 12:35 PM, Miklos Szeredi wrote: >> On Mon, Nov 28, 2016 at 10:10 AM, Amir Goldstein wrote: [...] >>> I may be way off here, but why do you need to lookup entry and get ino >>> from xattr at all? Wouldn't it be ea

[PATCH 05/13] Input: synaptics-rmi4 - remove EXPORT_SYMBOL_GPL for internal functions

2016-11-29 Thread Benjamin Tissoires
those functions should not be used outside of rmi_core.ko. There is no point in exporting them to the world. It looks like rmi_read_pdt_entry() should be static too. Signed-off-by: Benjamin Tissoires --- drivers/input/rmi4/rmi_driver.c | 15 ++- drivers/input/rmi4/rmi_driver.h | 3

Re: [PATCH v2 09/13] net: ethernet: ti: cpts: clean up event list if event pool is empty

2016-11-29 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:03:33PM -0600, Grygorii Strashko wrote: > From: WingMan Kwok > > When a CPTS user does not exit gracefully by disabling cpts > timestamping and leaving a joined multicast group, the system > continues to receive and timestamps the ptp packets which eventually > occupy a

Re: [PATCH] v4l: async: make v4l2 coexists with devicetree nodes in a dt overlay

2016-11-29 Thread Javi Merino
On Fri, Nov 25, 2016 at 10:21:21AM +0200, Sakari Ailus wrote: Hi Sakari, > On Wed, Nov 23, 2016 at 04:15:11PM +, Javi Merino wrote: > > On Wed, Nov 23, 2016 at 05:10:42PM +0200, Sakari Ailus wrote: > > > Hi Javi, > > > > Hi Sakari, > > > > > On Wed, Nov 23, 2016 at 10:09:57AM +, Javi Mer

Re: [PATCH v2 10/13] net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regs

2016-11-29 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:03:34PM -0600, Grygorii Strashko wrote: > CPTS module and IRQs are always enabled when CPTS is registered, > before starting overflow check work, and disabled during > deregistration, when overflow check work has been canceled already. > So, It doesn't require to (re)enab

[PATCH 06/13] Input: synaptics-rmi4 - have only one struct platform data

2016-11-29 Thread Benjamin Tissoires
If struct rmi_device_platform_data contains pointers to other struct, it gets difficult to allocate a fixed size struct and copy it over between drivers. Change the pointers into a struct and change the code in rmi4 accordingly. Reviewed-by: Andrew Duggan Signed-off-by: Benjamin Tissoires ---

[PATCH 04/13] Input: synaptics-rmi4 - remove mutex calls while updating the firmware

2016-11-29 Thread Benjamin Tissoires
This partially reverts commit 29fd0ec2bdbe ("Input: synaptics-rmi4 - add support for F34 device reflash") irq_mutex should be used only to protect data->current_irq_mask, not preventing incoming input to be processed while the upgrade of the firmware is happening. We can simply disable the irqs wh

[PATCH v5 3/9] iio: inkern: api for manipulating ext_info of iio channels

2016-11-29 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37 +++ 2 files changed, 97 insertions(+)

[PATCH 02/13] Input: synaptics-rmi4 - remove unused fields in struct rmi_driver_data

2016-11-29 Thread Benjamin Tissoires
These fields are not used anywhere, there is no point in carrying them. Signed-off-by: Benjamin Tissoires --- include/linux/rmi.h | 4 1 file changed, 4 deletions(-) diff --git a/include/linux/rmi.h b/include/linux/rmi.h index 27dd9aa..0b118ab 100644 --- a/include/linux/rmi.h +++ b/include

[PATCH v5 4/9] dt-bindings: iio: iio-mux: document iio-mux bindings

2016-11-29 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/iio-mux.txt | 51 ++ MAINTAINERS| 6 +++ 2 files changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/multiplexer/iio-mux.txt diff --

[PATCH v5 9/9] misc: mux-adg792a: add mux controller driver for ADG792A/G

2016-11-29 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Signed-off-by: Peter Rosin --- drivers/misc/Kconfig | 12 drivers/misc/Makefile | 1 + drivers/misc/mux-adg792a.c | 154 + 3 files changed, 167 insertions(+) create mode 100644 drivers/m

[PATCH V5] i2c: mux: pca954x: Add ACPI support for pca954x

2016-11-29 Thread Tin Huynh
This patch enables ACPI support for mux-pca954x driver. Signed-off-by: Tin Huynh --- drivers/i2c/muxes/i2c-mux-pca954x.c | 28 +++- 1 files changed, 27 insertions(+), 1 deletions(-) Change from V4: -Add ACPI_PTR. Change from V3: -Readd CONFIG_ACPI. Change from V2:

[PATCH 07/13] Input: synaptics-rmi4 - add support for F03

2016-11-29 Thread Benjamin Tissoires
From: Lyude Paul This adds basic functionality for PS/2 passthrough on Synaptics Touchpads using RMI4 through smbus. Reviewed-by: Andrew Duggan Signed-off-by: Lyude Paul Signed-off-by: Benjamin Tissoires --- drivers/input/mouse/psmouse-base.c | 6 + drivers/input/rmi4/Kconfig |

Re: [PATCH] extcon: Split out the extcon APIs for extcon provider driver

2016-11-29 Thread Charles Keepax
On Tue, Nov 29, 2016 at 07:02:23PM +0900, Chanwoo Choi wrote: > This patchs split out the extcon APIs of extcon provider driver in order to > prevent the direct access of struct extcon_dev by extcon consumer driver. > The extcon consumer driver don't need to handle the extcon provider APIs. > > Th

Re: [PATCH v2 08/13] net: ethernet: ti: cpts: move dt props parsing to cpts driver

2016-11-29 Thread Richard Cochran
On Mon, Nov 28, 2016 at 05:03:32PM -0600, Grygorii Strashko wrote: > +static int cpts_of_parse(struct cpts *cpts, struct device_node *node) > +{ > + int ret = -EINVAL; > + u32 prop; > + > + if (of_property_read_u32(node, "cpts_clock_mult", &prop)) > + goto of_error; > +

[PATCH 12/13] HID: rmi: Handle all Synaptics touchpads using hid-rmi

2016-11-29 Thread Benjamin Tissoires
From: Andrew Duggan With the addition of HID and F12 support in the synaptics-rmi4 driver touchpads which had been using the hid-multitouch driver can now be support by the synaptics-rmi4 via hid-rmi. The advantage is that additional data can be reported from the RMI registers which is not availa

[PATCH 11/13] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-11-29 Thread Benjamin Tissoires
From: Andrew Duggan The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew Duggan Signed-off-by: Benjamin Tissoires --- drivers/hid/Kconfi

[PATCH 13/13] HID: rmi: Support the Lenovo Thinkpad X1 Tablet dock using hid-rmi

2016-11-29 Thread Benjamin Tissoires
From: Andrew Duggan Signed-off-by: Andrew Duggan Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + drivers/hid/hid-rmi.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 2da75d4..e5356dc

Re: [PATCH V1] leds: pca963x: Add ACPI support

2016-11-29 Thread Tin Huynh
Hi I got a small bug when compiling without CONFIG_ACPI I will send out the patch to fix the problem later. On Tue, Nov 29, 2016 at 5:04 PM, Jacek Anaszewski wrote: > Hi Tin, > > Thanks for the update. > > On 11/29/2016 10:15 AM, Mika Westerberg wrote: >> >> Acked-by: Mika Westerberg > > > Mika,

[PATCH 09/13] Input: synaptics-rmi4 - allow to add attention data

2016-11-29 Thread Benjamin Tissoires
The HID implementation of RMI4 provides the data during the interrupt (in the input report). We need to provide a way for this transport driver to provide the attention data while calling an IRQ. We use a fifo in rmi_core to not lose any incoming event. Signed-off-by: Benjamin Tissoires --- dri

[PATCH 00/13] RMI4 cleanups and switch hid-rmi to rmi_core

2016-11-29 Thread Benjamin Tissoires
Hi guys, This series applies on top of Dmitry's synaptics-rmi4 branch. Patches 1-6 are cleanups which should be applied on this branch before it gets merged with linux-next IMO. Nick, I updated the patch since our last tests from last week. I'd be glad if you could give an other spin at testing (

[PATCH 10/13] Input: synaptics-rmi4 - store the attn data in the driver

2016-11-29 Thread Benjamin Tissoires
Now that we have a proper API to set the attention data, there is no point in keeping it in the transport driver. Signed-off-by: Benjamin Tissoires --- drivers/input/rmi4/rmi_driver.c | 5 ++--- drivers/input/rmi4/rmi_f03.c| 13 +++-- drivers/input/rmi4/rmi_f11.c| 12 ++-

[PATCH 08/13] Input: synaptics-rmi4 - f03: grab data passed by transport device

2016-11-29 Thread Benjamin Tissoires
From: Dennis Wassenberg First check if there are data available passed by the transport device. If data available use these data. If there are no data available try to read the rmi block if dsata are passed this way. This is the way the other rmi function handlers will do this. This patch is ne

[PATCH 01/13] Input: synaptics-rmi4 - fix documentation of rmi_2d_sensor_platform_data

2016-11-29 Thread Benjamin Tissoires
Typos... Signed-off-by: Benjamin Tissoires --- include/linux/rmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rmi.h b/include/linux/rmi.h index 8499b6a..27dd9aa 100644 --- a/include/linux/rmi.h +++ b/include/linux/rmi.h @@ -108,7 +108,7 @@ struct rmi_2d_se

[PATCH 03/13] Input: synaptics-rmi4 - add rmi_enable/disable_irq

2016-11-29 Thread Benjamin Tissoires
Set the .enabled boolean and trigger an event processing when enabling for edge-triggered systems. Signed-off-by: Benjamin Tissoires --- drivers/input/rmi4/rmi_driver.c | 83 +++-- drivers/input/rmi4/rmi_driver.h | 2 + include/linux/rmi.h | 1 +

<    5   6   7   8   9   10   11   >