Re: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread Hoan Tran
Hi Phil, On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Databook description of the > 'GPIO_INTR_IO' parameter.

[RFC v2] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") for cases where rq->rq_disk == NULL: block_rq_requeue, block_rq_insert, block_rq_issue; and for cases where bio == NULL: block_getrq, block_sleeprq. NB: The NULL pointer check for q->kobj.pa

[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
Just like blktrace distinguishes explicit and schedule by means of BLK_TA_UNPLUG_IO and BLK_TA_UNPLUG_TIMER, actually make use of the existing argument "explicit" to distinguish the two cases in the one common tracepoint block_unplug. Complements v2.6.39 commit 49cac01e1fa7 ("block: make unplug ti

Re: [[PATCH v2] 1/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 04:02:12PM +0530, Taniya Das wrote: > From: Amit Nischal > > Add the RPMh clock driver to control the RPMh managed clock resources on > some of the Qualcomm Technologies, Inc. SoCs. > > Signed-off-by: David Collins > Signed-off-by: Amit Nischal > Signed-off-by: Taniya D

Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7)

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 5:16 AM, Mathieu Desnoyers wrote: > The vmalloc space needed by cpu_opv is bound by the number of pages > a cpu_opv call can touch. No it's not. You can have a thousand different processes doing cpu_opv at the same time. A *single* cpu_opv may me limited toi "only" a meg

[PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
I had the need to understand I/O request processing in detail. But I also had the need to enrich block traces with other trace events including my own dynamic kprobe events. So I preferred block trace events over blktrace to get everything nicely sorted into one ftrace output. However, I missed dev

[PATCH v2 03/14] staging: iio: ad7746: Fix bound checkings

2018-04-13 Thread Hernán Gonzalez
Also remove unnecessary parenthesis Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 516aa93..d793785 100644 --- a/drivers/staging/

[PATCH v2 05/14] staging: iio: ad7746: Reorder includes alphabetically

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 82fac76..9ef476a 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers

[PATCH v2 02/14] staging: iio: ad7746: Adjust arguments to match open parenthesis

2018-04-13 Thread Hernán Gonzalez
Clear a couple more checkpatch.pl CHECKS. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 53e28ae..516aa93 100644 --- a/drivers/s

[PATCH v2 00/14] Move ad7746 driver out of staging

2018-04-13 Thread Hernán Gonzalez
Version 2 of the series trying to move ad7746 our of staging. Changes in v2: (v1-> https://lkml.org/lkml/2018/3/21/406) * Fix some issues pointed out by Jonathan * Power down device on remove * Add new ABI for the use case Hernán Gonzalez (14): staging: iio: ad7746: Automatically swap values in

[PATCH v2 04/14] staging: iio: ad7746: Fix multiple line dereference

2018-04-13 Thread Hernán Gonzalez
Clear checkpatch.pl WARNING about multiple line derefence but creates a new one of line over 80 characters. In my opinion, it improves readability. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/st

[PATCH v2 01/14] staging: iio: ad7746: Automatically swap values in readings/writings

2018-04-13 Thread Hernán Gonzalez
Data to read or write was being handled with the swab16() macro instead of using i2c_smbus_{read,write}_swapped. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746

[PATCH v2 10/14] staging: iio: ad7746: Add comments

2018-04-13 Thread Hernán Gonzalez
Add comments to clarify some of the calculations made, specially when reading or writing values. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/drivers/staging/iio/cdc/ad774

[PATCH v2 09/14] staging: iio: ad7746: Add remove()

2018-04-13 Thread Hernán Gonzalez
This allows the driver to be probed and removed as a module powering it down on remove(). Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc

[PATCH v2 06/14] staging: iio: ad7746: Reorder variable declarations

2018-04-13 Thread Hernán Gonzalez
Reorder some variable declarations in an inverse-pyramid scheme. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 9ef476a..f53612

[PATCH v2 07/14] staging: iio: ad7746: Remove unused defines

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 7 --- drivers/staging/iio/cdc/ad7746.h | 5 - 2 files changed, 12 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index f53612a..d39ab34 100644 --- a/drivers/staging/iio/c

[PATCH v2 08/14] staging: iio: ad7746: Add dt-bindings

2018-04-13 Thread Hernán Gonzalez
This patch adds dt bindings by populating a pdata struct in order to modify as little as possible the existing code. It supports both platform_data and dt-bindings but uses only one depending on CONFIG_OF's value. Signed-off-by: Hernán Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 54 +

[PATCH v2 11/14] staging: iio: ad7746: Add devicetree bindings documentation

2018-04-13 Thread Hernán Gonzalez
Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt d

[PATCH v2 12/14] staging: iio: ad7746: Add ABI documentation

2018-04-13 Thread Hernán Gonzalez
The use cases for this driver don't comply with the current ABI. The ad7746 and ad7152 need an external capacitance or voltage reference to automatically calibrate themselves which is not the normal use case of the calibscale and calibbias ABIs, a new ABI was needed. Signed-off-by: Hernán Gonzalez

[PATCH v2 14/14] staging: iio: Remove ad7746 from staging

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/staging/iio/cdc/ad7746.txt | 34 - drivers/staging/iio/cdc/Kconfig| 10 - drivers/staging/iio/cdc/Makefile | 1 - drivers/staging/iio/cdc/ad7746.c | 856 - dr

[PATCH v2 13/14] Move ad7746 out of staging

2018-04-13 Thread Hernán Gonzalez
Signed-off-by: Hernán Gonzalez --- .../devicetree/bindings/iio/cdc/ad7746.txt | 34 + drivers/iio/Kconfig| 1 + drivers/iio/Makefile | 1 + drivers/iio/cdc/Kconfig| 16 + drivers/iio/cdc/Makefi

Re: INFO: rcu detected stall in shrink_dcache_parent

2018-04-13 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit 16e205cf42da1f497b10a4a24f563e6c0d574eec (Fri Apr 13 03:56:10 2018 +) Merge tag 'drm-fixes-for-v4.17-rc1' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=8e4

[PATCH v2 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") to be equivalent to traditional blktrace output. Also this allows event filtering to not always get all (un)plug events. NB: The NULL pointer check for q->kobj.parent is certainly racy and I don

Re: [PATCH v3 2/2] MIPS: io: add a barrier after register read in readX()

2018-04-13 Thread Sinan Kaya
On 4/13/2018 11:41 AM, David Laight wrote: > From: James Hogan >> Sent: 12 April 2018 22:52 >> On Tue, Apr 03, 2018 at 08:55:04AM -0400, Sinan Kaya wrote: >>> While a barrier is present in writeX() function before the register write, >>> a similar barrier is missing in the readX() function after th

Re: [PATCH 21/30] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-04-13 Thread Kees Cook
On Thu, Apr 12, 2018 at 10:06 PM, Masahiro Yamada wrote: > +stackp-flags-$(CONFIG_CC_HAS_STACKPROTECTOR_NONE) := -fno-stack-protector > +stackp-flags-$(CONFIG_CC_STACKPROTECTOR) := -fstack-protector > +stackp-flags-$(CONFIG_CC_STACKPROTECTOR_STRONG) := -fstack-protector-strong > + > +KB

Re: [RFC PATCH 3/4] acpi: apei: Do not panic() in NMI because of GHES messages

2018-04-13 Thread James Morse
Hi Alex, On 09/04/18 19:11, Alex G. wrote: > On 04/06/2018 01:24 PM, James Morse wrote: > Do you have any ETA on when your SEA patches are going to make it > upstream? There's not much point in updating my patchset if it's going > to conflict with your work. The SEA stuff went in with 7edda0886bc

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Christoph Hellwig
Please send a v2.

[PATCH v2 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Sam Hansen
Currently, Documentation/i2c/dev-interface describes the use of i2c_smbus_* helper routines as static inlined functions provided by linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file in the i2c-tools project out into its own library. As a result, these docs have become stale

[PATCH v2 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Sam Hansen
This strips trailing whitespace in Documentation/i2c/dev-interface. Signed-off-by: Sam Hansen --- Documentation/i2c/dev-interface | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Documentation/i2c/dev-interface index d04e6e4964ee.

[PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
The example I2C code is rewritten to adopt the preferred kernel block commenting style. Signed-off-by: Sam Hansen --- Documentation/i2c/dev-interface | 57 + 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Document

Re: [PATCH 1/6] fs: use << for MS_* flags

2018-04-13 Thread Randy Dunlap
On 04/13/2018 09:11 AM, Christian Brauner wrote: > Consistenly use << to define MS_* constants. > > Signed-off-by: Christian Brauner > --- > include/uapi/linux/fs.h | 33 + > 1 file changed, 17 insertions(+), 16 deletions(-) > > diff --git a/include/uapi/linux/fs

Re: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:03AM +, Vadim Pasternak wrote: > It adds missed logic for signal acknowledge, by adding an extra run for > work queue in case a signal is received, but no specific signal assertion > is detected. Such case theoretically can happen for example in case > several unit

RE: [PATCH v3] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread Phil Edworthy
Hi Hoan, On 13 April 2018 17:37 Hoan Tran wrote: > On Fri, Apr 13, 2018 at 1:51 AM, Phil Edworthy wrote: > > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > > per GPIO in port A, but the driver currently only supports 1 interrupt. > > See the DesignWare DW_apb_gpio Databook

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Randy Dunlap
On 04/13/2018 09:11 AM, Christian Brauner wrote: > Consistenly use << to define ST_* constants. This also aligns them with > their MS_* counterparts in fs.h > > Signed-off-by: Christian Brauner > --- > include/linux/statfs.h | 26 +- > 1 file changed, 13 insertions(+), 13

Re: [PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Wolfram Sang
> - int adapter_nr = 2; /* probably dynamically determined */ Such comments are actually OK. > -/* ERROR HANDLING; you can check errno to see what went wrong */ Such as well. > - /* Using I2C Write, equivalent of > - i2c_smbus_write_word_data(file, reg, 0x6543) */ > + /* > + * Usi

Re: [PATCH v2 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Wolfram Sang
On Fri, Apr 13, 2018 at 09:44:03AM -0700, Sam Hansen wrote: > This strips trailing whitespace in Documentation/i2c/dev-interface. > > Signed-off-by: Sam Hansen Looks good to me. But please send new series as seperate threads. signature.asc Description: PGP signature

Re: [PATCH v2 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Wolfram Sang
On Fri, Apr 13, 2018 at 09:44:04AM -0700, Sam Hansen wrote: > Currently, Documentation/i2c/dev-interface describes the use of > i2c_smbus_* helper routines as static inlined functions provided by > linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file > in the i2c-tools project

[PATCH v2 0/3] usb: dwc3: support for Qualcomm DWC3 glue

2018-04-13 Thread Manu Gautam
Add separate dwc3-qcom glue driver for Qualcomm SOCs having dwc3 core. It is needed to support peripheral mode. Patches also add support to invoke PHY runtime PM functions on host mode bus-suspend. Changes since v1: - Move dwc3 core register accesses from glue driver to dwc3 core as per review

[PATCH v2 3/3] usb: dwc3: core: Suspend PHYs on runtime suspend in host mode

2018-04-13 Thread Manu Gautam
Some PHY drivers (e.g. for Qualcomm QUSB2 and QMP PHYs) support runtime PM to reduce PHY power consumption during bus_suspend. Add changes to let core auto-suspend PHYs on host bus-suspend using GUSB2PHYCFG register if needed for a platform. Also perform PHYs runtime suspend/resume and let platform

[PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Manu Gautam
DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. Some of its uses are described below resulting in need to have a separate glue driver instead of using dwc3-of-simple: - It exposes register interface to override vbus-override and lane0-pwr-present signals going to hardware. These mus

[PATCH v2 1/3] dt-bindings: usb: Update documentation for Qualcomm DWC3 driver

2018-04-13 Thread Manu Gautam
Existing documentation has lot of incorrect information as it was originally added for a driver that no longer exists. Signed-off-by: Manu Gautam --- .../devicetree/bindings/usb/qcom,dwc3.txt | 78 -- 1 file changed, 57 insertions(+), 21 deletions(-) diff --git a/Do

Re: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:04AM +, Vadim Pasternak wrote: > Patch adds new ODM systems, matched according to DMI_BOARD_NAME. General nit. When writing your messages, please use the imperative (command) form. Rather than: "Patch adds" or "It changes" use the same form you use in the subject

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-13 Thread Martin K. Petersen
Jinpu, [CC:ed the mpt3sas maintainers] The ratelimit patch is just an attempt to treat the symptom, not the cause. > Thanks for asking, we updated mpt3sas driver which enables DIX support > (prot_mask=0x7f), all disks are SATA SSDs, no DIF support. > After reboot, kernel reports the IO errors f

Re: [PATCH 1/5] random: fix crng_ready() test

2018-04-13 Thread Theodore Y. Ts'o
On Fri, Apr 13, 2018 at 03:05:01PM +0200, Stephan Mueller wrote: > > What I would like to point out that more and more folks change to > getrandom(2). As this call will now unblock much later in the boot cycle, > these systems see a significant departure from the current system behavior. > > E.

Re: [PATCH V4 2/2] mmc: sdhci-msm: support voltage pad switching

2018-04-13 Thread Doug Anderson
Hi, On Fri, Apr 6, 2018 at 2:48 AM, Vijay Viswanath wrote: > > > On 3/29/2018 4:23 AM, Doug Anderson wrote: >> >> Hi, >> >> On Wed, Mar 28, 2018 at 6:08 AM, Vijay Viswanath >> wrote: >>> >>> From: Krishna Konda >>> >>> The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs >>> h

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Dave Martin
On Fri, Apr 13, 2018 at 09:33:17AM -0700, Linus Torvalds wrote: > On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux > wrote: > > > > Yes, it does solve the problem at hand with strace - the exact patch I > > tested against 4.16 is below. > > Ok, good. > > > However, FPE_FLTUNK is not def

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 17:35:27 BST, Rob Herring wrote: >On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >> Add bindings for the Qualcomm Battery Monitoring system. >> >> Signed-off-by: Craig Tatlor >> --- >> .../bindings/power/supply/qcom_bms.txt| 93 >+++ >>

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 18:08:54 BST, Craig Tatlor wrote: > > >On 13 April 2018 17:35:27 BST, Rob Herring wrote: >>On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >>> Add bindings for the Qualcomm Battery Monitoring system. >>> >>> Signed-off-by: Craig Tatlor >>> --- >>> .../bindings/

Re: [virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts

2018-04-13 Thread Jonathan Helman
On 04/13/2018 06:44 AM, Michael S. Tsirkin wrote: On Fri, Apr 13, 2018 at 03:01:11PM +0800, Jason Wang wrote: On 2018年04月12日 08:24, Jonathan Helman wrote: On 04/10/2018 08:12 PM, Jason Wang wrote: On 2018年04月10日 05:11, Jonathan Helman wrote: On 03/22/2018 07:38 PM, Jason Wang wrote:

Re: [PATCH RFC 2/8] mm: introduce PG_offline

2018-04-13 Thread Matthew Wilcox
On Fri, Apr 13, 2018 at 03:16:26PM +0200, David Hildenbrand wrote: > online_pages()/offline_pages() theoretically allows us to work on > sub-section sizes. This is especially relevant in the context of > virtualization. It e.g. allows us to add/remove memory to Linux in a VM in > 4MB chunks. > > W

Re: [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Nicolas Ferre
On 13/04/2018 at 18:23, Alexandre Belloni wrote: On 13/04/2018 19:11:16+0300, Radu Pirea wrote: These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea --- .../bin

Re: [PATCH v5 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-04-13 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-04-10 17:01:20) > On Thu 05 Apr 09:18 PDT 2018, Lina Iyer wrote: > > > > > diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c > > new file mode 100644 > > index ..e3c7491e7baf > > --- /dev/null > > +++ b/drivers/soc/qcom/rpmh.c > > @@ -0,0 +1

Re: [PATCH 1/3] dt-bindings: interrupt-controller: fix the double quotes

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 02:56:58PM +, Yixun Lan wrote: > The double quotes seems not ASCII type, fix it here. > > Signed-off-by: Yixun Lan > --- > .../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 10 > +- > 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by

Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

2018-04-13 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 13, 2018 at 09:20:43AM -0700, Andi Kleen escreveu: > On Fri, Apr 13, 2018 at 11:01:11AM -0300, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > Just like is done for 'mov' and others that can have as source or > > targets variables resolved by objdump, to make th

Re: [PATCH 2/3] dt-bindings: interrupt-controller: New binding for Meson-AXG SoC

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 02:56:59PM +, Yixun Lan wrote: > Update the dt-binding documentation to support new compatible string > for the GPIO interrupt controller which found in Amlogic's Meson-AXG SoC. > > Signed-off-by: Yixun Lan > --- > .../devicetree/bindings/interrupt-controller/amlogic,

INFO: rcu detected stall in vfs_rmdir

2018-04-13 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 16e205cf42da1f497b10a4a24f563e6c0d574eec (Fri Apr 13 03:56:10 2018 +) Merge tag 'drm-fixes-for-v4.17-rc1' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=da69f0eccf07cdcf

Re: [PATCH v5 2/2] dt-bindings: usb: rt1711h device tree binding document

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 10:11:35AM +0800, ShuFan Lee wrote: > From: ShuFan Lee > > Add device tree binding document for Richtek RT1711H Type-C chip driver > > Signed-off-by: ShuFan Lee > --- > .../devicetree/bindings/usb/richtek,rt1711h.txt | 17 > + > 1 file changed,

[PATCH v2] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Jacopo Mondi
Postpone calling virt_to_page() translation on memory locations not guaranteed to be backed by a struct page. Try first to map memory from device's coherent memory pool, then perform translation if that fails. On some architectures, specifically SH when configured with SPARSEMEM memory model, assu

Re: [PATCH net-next 1/3] net: ethernet: ave: add multiple clocks and resets support as required property

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 03:38:43PM +0900, Kunihiko Hayashi wrote: > When the link is becoming up for Pro4 SoC, the kernel is stalled > due to some missing clocks and resets. > > The AVE block for Pro4 is connected to the GIO bus in the SoC. > Without its clock/reset, the access to the AVE register

Re: [PATCH net-next 2/3] dt-bindings: net: ave: add syscon-phy-mode property to configure phy-mode setting

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 03:38:44PM +0900, Kunihiko Hayashi wrote: > Add "socionext,syscon-phy-mode" property to specify system controller that > configures the settings about phy-mode. > > Signed-off-by: Kunihiko Hayashi > --- > Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt |

[PATCH v2] IB: make INFINIBAND_ADDR_TRANS configurable

2018-04-13 Thread Greg Thelen
Allow INFINIBAND without INFINIBAND_ADDR_TRANS. Signed-off-by: Greg Thelen Cc: Tarick Bedeir Change-Id: I6fbbf8a432e467710fa65e4904b7d61880b914e5 --- drivers/infiniband/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/Kconfig b/drivers/infiniban

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Jack Pham
Hi Manu, On Fri, Apr 13, 2018 at 10:21:23PM +0530, Manu Gautam wrote: > DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. > Some of its uses are described below resulting in need to > have a separate glue driver instead of using dwc3-of-simple: > - It exposes register interface to override

Re: [PATCH 09/13] imx274: get rid of mode_index

2018-04-13 Thread kbuild test robot
Hi Luca, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.16 next-20180413] [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

Re: [PATCH] kasan: add no_sanitize attribute for clang builds

2018-04-13 Thread Andrey Konovalov
On Fri, Apr 13, 2018 at 5:31 PM, Andrey Ryabinin wrote: > > > On 04/12/2018 08:29 PM, Andrey Konovalov wrote: >> KASAN uses the __no_sanitize_address macro to disable instrumentation >> of particular functions. Right now it's defined only for GCC build, >> which causes false positives when clang i

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Andreas Dilger
On Apr 13, 2018, at 10:11 AM, Christian Brauner wrote: > > Consistenly use << to define ST_* constants. This also aligns them with > their MS_* counterparts in fs.h IMHO, using (1 << 10) makes the code harder to debug. If you see a field in a structure like 0x8354, it is non-trivial to map thi

Re: Crashes/hung tasks with z3pool under memory pressure

2018-04-13 Thread Guenter Roeck
On Fri, Apr 13, 2018 at 05:21:02AM +, Vitaly Wool wrote: > Hi Guenter, > > > Den fre 13 apr. 2018 kl 00:01 skrev Guenter Roeck : > > > Hi all, > > > we are observing crashes with z3pool under memory pressure. The kernel > version > > used to reproduce the problem is v4.16-11827-g5d1365940a6

Re: [PATCH v2 3/9] Input: elan_i2c - add trackstick report

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 11:10:45AM +0200, Benjamin Tissoires wrote: > The Elan touchpads over I2C/SMBus also can handle a > trackstick. Unfortunately, nothing tells us if the > device supports trackstick (the information lies in > the PS/2 node), so rely on a platform data to enable > or not the tr

Re: [PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
On Fri, Apr 13, 2018 at 9:50 AM, Wolfram Sang wrote: > >> - int adapter_nr = 2; /* probably dynamically determined */ > > Such comments are actually OK. Ah, gotcha. Thanks for the correction. Standby for revised patch set. > >> -/* ERROR HANDLING; you can check errno to see what went wron

Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

2018-04-13 Thread Andi Kleen
> What do I miss? Or where is it that I'm misinterpreting the calculations > that objdump did in its output? The calculations are right, but these are still two different address modes. You cannot just turn one silently into the other. I think it would be ok to use the syntax in the assembler sy

Re: [PATCH 1/5] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 12:59:14PM +0200, Peter Rosin wrote: > Start list of actual chips compatible with "lvds-encoder". > > Reviewed-by: Laurent Pinchart > Signed-off-by: Peter Rosin > --- > .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 > +++- > 1 file changed, 7

[PATCH v1 1/1] usb: core: Add quirk for HP v222w 16GB Mini

2018-04-13 Thread sathyanarayanan . kuppuswamy
From: Kamil Lulko Add DELAY_INIT quirk to fix the following problem with HP v222w 16GB Mini: usb 1-3: unable to read config index 0 descriptor/start: -110 usb 1-3: can't read configurations, error -110 usb 1-3: can't set config #1, error -110 Signed-off-by: Kamil Lulko Signed-off-by: Kuppuswam

[PATCH v1 1/1] usb: hub: Don't wait for connect state at resume for powered-off ports

2018-04-13 Thread sathyanarayanan . kuppuswamy
From: Dominik Bozek wait_for_connected() wait till a port change status to USB_PORT_STAT_CONNECTION, but this is not possible if the port is unpowered. The loop will only exit at timeout. Such case take place if an over-current incident happen while system is in S3. Then during resume wait_for_c

[PATCH v3 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Sam Hansen
This strips trailing whitespace in Documentation/i2c/dev-interface. Signed-off-by: Sam Hansen --- No changes from v2. Documentation/i2c/dev-interface | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Documentation/i2c/dev-interfac

Re: [PATCH v2] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Robin Murphy
On 13/04/18 18:25, Jacopo Mondi wrote: Postpone calling virt_to_page() translation on memory locations not guaranteed to be backed by a struct page. Try first to map memory from device's coherent memory pool, then perform translation if that fails. On some architectures, specifically SH when con

Re: [PATCH v5 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-04-13 Thread Stephen Boyd
Quoting Lina Iyer (2018-04-13 08:37:25) > On Tue, Apr 10 2018 at 22:39 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2018-04-05 09:18:25) > >> > >> diff --git a/drivers/soc/qcom/rpmh-internal.h > >> b/drivers/soc/qcom/rpmh-internal.h > >> new file mode 100644 > >> index ..aa73ec4b3e

[PATCH v3 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
The example I2C code is rewritten to adopt the preferred kernel block commenting style. Signed-off-by: Sam Hansen --- Changes from v2: 1. only the block comment is updated. 2. one-line comments are reverted to prior form. Documentation/i2c/dev-interface | 6 -- 1 file changed, 4 inserti

[PATCH v3 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Sam Hansen
Currently, Documentation/i2c/dev-interface describes the use of i2c_smbus_* helper routines as static inlined functions provided by linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file in the i2c-tools project out into its own library. As a result, these docs have become stale

Re: [PATCH 2/5] dt-bindings: display: atmel: add optional output-mode property

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 12:59:15PM +0200, Peter Rosin wrote: > Useful for beating cases where an output mode selection heuristic > fails. > > Signed-off-by: Peter Rosin > --- > Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt | 4 > 1 file changed, 4 insertions(+) > > diff --gi

Re: [PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steven Rostedt
On Fri, 13 Apr 2018 18:36:20 +0200 Steffen Maier wrote: > I had the need to understand I/O request processing in detail. > But I also had the need to enrich block traces with other trace events > including my own dynamic kprobe events. So I preferred block trace events > over blktrace to get ever

[PATCH] proc: fix /proc/loadavg regression

2018-04-13 Thread Alexey Dobriyan
commit 95846ecf9dac5089aed4b144d912225f8ef86ae4 "pid: replace pid bitmap implementation with IDR API" changed last field of /proc/loadavg (last pid allocated) to be off by one: # unshare -p -f --mount-proc cat /proc/loadavg 0.00 0.00 0.00 1/60 2 <=== It should be 1 after first

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Russell King - ARM Linux
On Fri, Apr 13, 2018 at 06:08:28PM +0100, Dave Martin wrote: > On Fri, Apr 13, 2018 at 09:33:17AM -0700, Linus Torvalds wrote: > > On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux > > wrote: > > > > > > Yes, it does solve the problem at hand with strace - the exact patch I > > > tested ag

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Randy Dunlap
On 04/13/2018 10:35 AM, Andreas Dilger wrote: > On Apr 13, 2018, at 10:11 AM, Christian Brauner > wrote: >> >> Consistenly use << to define ST_* constants. This also aligns them with >> their MS_* counterparts in fs.h > > IMHO, using (1 << 10) makes the code harder to debug. If you see a field

Re: [PATCH 1/3] drm/vc4: Remove the need for the GPU-subsystem DT node.

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 04:00:38PM -0700, Eric Anholt wrote: > The GPU subsystem node was a workaround to have a central device to > bind V3D and display to. Following the lead of 246774d17fc0 > ("drm/etnaviv: remove the need for a gpu-subsystem DT node"), remove > the subsystem node usage and jus

Re: Crashes/hung tasks with z3pool under memory pressure

2018-04-13 Thread Guenter Roeck
On Fri, Apr 13, 2018 at 05:40:18PM +, Vitaly Wool wrote: > On Fri, Apr 13, 2018, 7:35 PM Guenter Roeck wrote: > > > On Fri, Apr 13, 2018 at 05:21:02AM +, Vitaly Wool wrote: > > > Hi Guenter, > > > > > > > > > Den fre 13 apr. 2018 kl 00:01 skrev Guenter Roeck : > > > > > > > Hi all, > > >

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Manu Gautam
Hi Jack, On 4/13/2018 11:03 PM, Jack Pham wrote: > Hi Manu, > > On Fri, Apr 13, 2018 at 10:21:23PM +0530, Manu Gautam wrote: >> DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. >> Some of its uses are described below resulting in need to >> have a separate glue driver instead of using dwc

Re: [PATCH] spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()

2018-04-13 Thread Mark Brown
On Mon, Apr 09, 2018 at 07:16:50PM +0800, sxauwsk wrote: > In case of xspi work in busy condition, may send bytes failed. > Add one bytes delay > while ((trans_cnt < CDNS_SPI_FIFO_DEPTH) && > (xspi->tx_bytes > 0)) { > + > + /* When xspi in busy condition, bytes may s

Re: [PATCH 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 07:19:26AM +0200, Philippe Cornu wrote: > Add the 3 optional power supplies using the exact description > found in the document named > "SiI9022A/SiI9024A HDMI Transmitter Data Sheet (August 2016)". > > Signed-off-by: Philippe Cornu > --- > Documentation/devicetree/bindin

Re: [PATCH v4 3/8] dt-bindings: mfd: renesas,rzn1-sysctrl: document RZ/N1 sysctrl node

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 09:30:03AM +0100, Michel Pollet wrote: > The Renesas RZ/N1 Family (Part #R9A06G0xx) has a multi-function > system controller. This documents the node used to encapsulate > it's sub drivers. > > Signed-off-by: Michel Pollet > --- > .../bindings/mfd/renesas,rzn1-sysctrl.txt

Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7)

2018-04-13 Thread Mathieu Desnoyers
- On Apr 13, 2018, at 12:37 PM, Linus Torvalds torva...@linux-foundation.org wrote: > On Fri, Apr 13, 2018 at 5:16 AM, Mathieu Desnoyers > wrote: >> The vmalloc space needed by cpu_opv is bound by the number of pages >> a cpu_opv call can touch. > > No it's not. > > You can have a thousand

[Regression] PCI / PM: Simplify device wakeup settings code

2018-04-13 Thread Joseph Salisbury
Hi Rafael, A kernel bug report was opened against Ubuntu [0].  After a kernel bisect, it was found that reverting the following two commits resolved this bug: 0ce3fcaff929 ("PCI / PM: Restore PME Enable after config space restoration") 0847684cfc5f("PCI / PM: Simplify device wakeup settings code"

Re: [PATCH 21/30] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 9:41 AM, Kees Cook wrote: > > How about something like this instead: I'd rather avoid the ifdef's in the Makefile if at all possible. I'd rather expose this as a Kconfig rule, and in the Kconfig just have an entry something like this config STACKPROTECTOR_FLAGS

Re: [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Alexandre Belloni
On 13/04/2018 19:12:54+0200, Nicolas Ferre wrote: > > > diff --git > > > a/Documentation/devicetree/bindings/spi/microchip,at91-usart-spi.txt > > > b/Documentation/devicetree/bindings/spi/microchip,at91-usart-spi.txt > > > new file mode 100644 > > > index ..92d33ccdffae > > > --- /dev

[PATCH] PCI: Add PCIe to pcie_print_link_status() messages

2018-04-13 Thread Jakub Kicinski
Currently the pcie_print_link_status() will print PCIe bandwidth and link width information but does not mention it is pertaining to the PCIe. Since this and related functions are used exclusively by networking drivers today users may get confused into thinking that it's the NIC bandwidth that is

Re: [PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO

2018-04-13 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 02:28:04PM -0700, Alexei Starovoitov wrote: > Instead of > #ifdef CC_HAVE_ASM_GOTO > we can replace it with > #ifndef __BPF__ > or some other name, I would prefer the BPF specific hack; otherwise we might be encouraging people to build the kernel proper without asm-goto.

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Jack Pham
On Fri, Apr 13, 2018 at 11:32:04PM +0530, Manu Gautam wrote: > On 4/13/2018 11:03 PM, Jack Pham wrote: > > Are the extcon phandles bound to the glue node? I don't see the > > description in the bindings doc in PATCH 1/3. And if so, would it be > > a duplicate of the child node's extcon binding? The

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 10:54 AM, Russell King - ARM Linux wrote: > > FPE_FLTINV means "floating point invalid operation". Does it really > cover the case where hardware has failed, or is it intended to cover > the case where userspace did something wrong and asked for an invalid > operation from

Re: WARNING in up_write

2018-04-13 Thread Dmitry Vyukov
On Fri, Apr 6, 2018 at 4:01 AM, Dave Chinner wrote: > On Thu, Apr 05, 2018 at 05:13:25PM -0700, Eric Biggers wrote: >> On Fri, Apr 06, 2018 at 08:32:26AM +1000, Dave Chinner wrote: >> > On Wed, Apr 04, 2018 at 08:24:54PM -0700, Matthew Wilcox wrote: >> > > On Wed, Apr 04, 2018 at 11:22:00PM -0400,

Re: [PATCH] parisc: Switch to generic COMPAT_BINFMT_ELF

2018-04-13 Thread Guenter Roeck
On Wed, Apr 11, 2018 at 09:09:53AM +0200, Helge Deller wrote: > Drop our own compat binfmt implementation in > arch/parisc/kernel/binfmt_elf32.c in favour of the generic > implementation with CONFIG_COMPAT_BINFMT_ELF. > > While cleaning up the dependencies, I noticed that ELF_PLATFORM was strangel

Re: [PATCH v4 5/8] dt-bindings: arm: Document the RZN1D-DB board

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 09:30:05AM +0100, Michel Pollet wrote: > This documents the RZ/N1 bindings for the RZN1D-DB board. > > Signed-off-by: Michel Pollet > --- > Documentation/devicetree/bindings/arm/shmobile.txt | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Rob Her

Re: [PATCH v3 04/11] dt-bindings: input: touchscreen: add pressure threshold touchscreen property

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 11:57:50AM +0300, Eugen Hristev wrote: > Add a common touchscreen optional property that will specify > the minimum pressure applied to the screen that is needed > such that the driver will report the touch event. > > Signed-off-by: Eugen Hristev > --- > Documentation/dev

<    1   2   3   4   5   6   7   >