Re: [PATCH v3] i2c-tools: add new tool 'i2ctransfer'

2017-03-13 Thread Uwe Kleine-König
Hello Wolfram, On Mon, Mar 13, 2017 at 12:41:35PM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > This tool allows to construct and concat multiple I2C messages into one > single transfer. Its aim is to test I2C master controllers, and so there > is no SMBus fallback. > > I've been missing

[PATCH] staging: android: ion: Replace pr_err with dev_err

2017-03-13 Thread simran singhal
All devm functions has a device structure as the first argument which is required by dev_{err,info,dbg} printing functions. This patch converts pr_err to dev_err as dev_* is preferred after calls to devm functions. Done using coccinelle: @r1 exists@ expression e,e1; identifier f =~ "^devm_"; iden

Re: Linux 4.10.2

2017-03-13 Thread Ilia Mirkin
On Mon, Mar 13, 2017 at 8:36 AM, Jiri Slaby wrote: > On 03/12/2017, 09:11 PM, Ilia Mirkin wrote: >> The link shows v4.10.1 for me and says that the v4.10.2 tag is >> unknown. Fetching from >> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git, >> I don't see a v4.10.2 tag. The h

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-03-13 Thread Philipp Zabel
On Mon, 2017-03-13 at 13:27 +, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 03:16:48PM +0200, Sakari Ailus wrote: > > The vast majority of existing drivers do not implement them nor the user > > space expects having to set them. Making that mandatory would break existing > > user s

AW: [PATCH v2 1/2] add driver for cypress cy8cmbr3102

2017-03-13 Thread Vogelaar, Patrick
Hi Dimtry, Thanks for the feedback. I will prepare a v3 of the patch with the things you pointed out fixed and a more meaningful description and changelog. I have a few questions regarding your comments (see below). >Hi Patrick, > >On Tue, Feb 21, 2017 at 07:40:20AM +0100, Patrick Vogelaar wrot

Re: WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)

2017-03-13 Thread Igor Mammedov
On Mon, 13 Mar 2017 11:43:02 +0100 Michal Hocko wrote: > On Mon 13-03-17 11:31:10, Igor Mammedov wrote: > > On Fri, 10 Mar 2017 14:58:07 +0100 > [...] > > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x-0x0009] > > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x0010-0x3f

Re: [PATCH] perf: missing c2c command in command-list

2017-03-13 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 13, 2017 at 04:28:45PM +0800, changbin...@intel.com escreveu: > From: Changbin Du > > Add the c2c command to command-list.txt so perf help can list this > command. Thanks, applied. > Signed-off-by: Changbin Du > --- > tools/perf/command-list.txt | 1 + > 1 file changed, 1 insert

perf: race with automatic rdpmc() disabling

2017-03-13 Thread Vince Weaver
Hello I've been trying to track this issue down for a few days and haven't been able to isolate it. So maybe someone who understands low-level perf mmap reference counting can help here. As you might recall, 7911d3f7af14a614617e38245fedf98a724e46a9 introduced automatic disabling of userspace rd

Re: [PATCH V12 09/10] trace, ras: add ARM processor error trace event

2017-03-13 Thread Steven Rostedt
On Mon, 13 Mar 2017 17:00:59 +0800 Xie XiuQi wrote: > --- > drivers/acpi/apei/ghes.c | 8 + > include/linux/cper.h | 5 +++ > include/ras/ras_event.h | 87 > > 3 files changed, 100 insertions(+) > > diff --git a/drivers/acpi/apei/ghes

Re: [PATCHv6 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-03-13 Thread Dmitry Safonov
On 03/13/2017 04:47 PM, Thomas Gleixner wrote: On Mon, 13 Mar 2017, Dmitry Safonov wrote: On 03/13/2017 12:39 PM, Thomas Gleixner wrote: On Mon, 6 Mar 2017, Dmitry Safonov wrote: Result of mmap() calls with MAP_32BIT flag at this moment depends on thread flag TIF_ADDR32, which is set during e

Re: [PATCH] staging: iio: ade7753: replace mlock with driver private lock

2017-03-13 Thread Lars-Peter Clausen
On 03/13/2017 01:33 PM, SIMRAN SINGHAL wrote: > On Mon, Mar 13, 2017 at 5:30 PM, Lars-Peter Clausen wrote: >> On 03/12/2017 02:32 PM, simran singhal wrote: >>> The IIO subsystem is redefining iio_dev->mlock to be used by >>> the IIO core only for protecting device operating mode changes. >>> ie. C

Re: [PATCHv6 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-03-13 Thread Thomas Gleixner
On Mon, 13 Mar 2017, Dmitry Safonov wrote: > On 03/13/2017 04:47 PM, Thomas Gleixner wrote: > > On Mon, 13 Mar 2017, Dmitry Safonov wrote: > > > On 03/13/2017 12:39 PM, Thomas Gleixner wrote: > > > > On Mon, 6 Mar 2017, Dmitry Safonov wrote: > > > > > > > > > Result of mmap() calls with MAP_32BIT

Re: [patch 2/3] kcmp: Add KCMP_EPOLL_TFD mode to compare epoll target files

2017-03-13 Thread Cyrill Gorcunov
On Fri, Mar 10, 2017 at 11:16:57AM +0300, Cyrill Gorcunov wrote: > With current epoll architecture target files are addressed > with file_struct and file descriptor number, where the last > is not unique. Moreover files can be transferred from another > process via unix socket, added into queue and

[tip:x86/mm] x86/mm: Add task_size parameter to mmap_base()

2017-03-13 Thread tip-bot for Dmitry Safonov
Commit-ID: 8f3e474f3cea7b2470218a6ed6da47ff02147dce Gitweb: http://git.kernel.org/tip/8f3e474f3cea7b2470218a6ed6da47ff02147dce Author: Dmitry Safonov AuthorDate: Mon, 6 Mar 2017 17:17:18 +0300 Committer: Thomas Gleixner CommitDate: Mon, 13 Mar 2017 14:59:22 +0100 x86/mm: Add task_size

[tip:x86/mm] x86/mm: Introduce arch_rnd() to compute 32/64 mmap random base

2017-03-13 Thread tip-bot for Dmitry Safonov
Commit-ID: 6a0b41d1e23dd3318568461593ae5e36d966981e Gitweb: http://git.kernel.org/tip/6a0b41d1e23dd3318568461593ae5e36d966981e Author: Dmitry Safonov AuthorDate: Mon, 6 Mar 2017 17:17:17 +0300 Committer: Thomas Gleixner CommitDate: Mon, 13 Mar 2017 14:59:22 +0100 x86/mm: Introduce arch

[tip:x86/mm] x86/mm: Introduce mmap_compat_base() for 32-bit mmap()

2017-03-13 Thread tip-bot for Dmitry Safonov
Commit-ID: 1b028f784e8c341e762c264f70dc0ca1418c8b7a Gitweb: http://git.kernel.org/tip/1b028f784e8c341e762c264f70dc0ca1418c8b7a Author: Dmitry Safonov AuthorDate: Mon, 6 Mar 2017 17:17:19 +0300 Committer: Thomas Gleixner CommitDate: Mon, 13 Mar 2017 14:59:22 +0100 x86/mm: Introduce mmap

Re: [PATCH] lockdep: call trace_hardirqs_off after clearing hardirqs_enabled

2017-03-13 Thread Steven Rostedt
On Mon, 13 Mar 2017 18:08:48 +0800 Qi Hou wrote: > The current order of calls within trace_hardirqs_off() would provoke an > "unannotated irqs-off" WARNING. > > This warning was reported by check_flags() when it found that the hardirqs has > been disabled but the irq-flags state, hardirqs_enable

[tip:x86/mm] x86/mm: Make mmap(MAP_32BIT) work correctly

2017-03-13 Thread tip-bot for Dmitry Safonov
Commit-ID: 3e6ef9c80946f781fc25e8490c9875b1d2b61158 Gitweb: http://git.kernel.org/tip/3e6ef9c80946f781fc25e8490c9875b1d2b61158 Author: Dmitry Safonov AuthorDate: Mon, 6 Mar 2017 17:17:20 +0300 Committer: Thomas Gleixner CommitDate: Mon, 13 Mar 2017 14:59:23 +0100 x86/mm: Make mmap(MAP_

Re: [PATCH] staging: atomisp: use k{v}zalloc instead of k{v}alloc and memset

2017-03-13 Thread DaeSeok Youn
2017-03-13 20:51 GMT+09:00 Dan Carpenter : > On Mon, Mar 13, 2017 at 07:54:21PM +0900, Daeseok Youn wrote: >> If the atomisp_kernel_zalloc() has "true" as a second parameter, it >> tries to allocate zeroing memory from kmalloc(vmalloc) and memset. >> But using kzalloc is rather than kmalloc followe

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Jon Hunter
Hi Ulf, On 13/03/17 11:45, Ulf Hansson wrote: > +Björn > > On 13 March 2017 at 10:37, Jon Hunter wrote: >> Hi Rafael, Kevin, Ulf, >> >> Looks like there is still some interest/needs in/for this. Any thoughts >> on how we can move this forward? > > At the Linaro Connect last week, I was talking

Re: [OpenRISC] Build regressions/improvements in v4.11-rc2

2017-03-13 Thread Stafford Horne
On Mon, Mar 13, 2017 at 11:15:23AM +0100, Geert Uytterhoeven wrote: > On Mon, Mar 13, 2017 at 9:43 AM, Geert Uytterhoeven > wrote: > > JFYI, when comparing v4.11-rc2[1] to v4.11-rc1[3], the summaries are: > > - build errors: +6/-13 > > + /home/kisskb/slave/src/arch/openrisc/include/asm/atomic

Re: [PATCH v2] audit: log module name on delete_module

2017-03-13 Thread Paul Moore
On Sat, Mar 11, 2017 at 9:24 PM, Richard Guy Briggs wrote: > When a sysadmin wishes to monitor module unloading with a syscall rule such > as: > -a always,exit -F arch=x86_64 -S delete_module -F key=mod-unload > the SYSCALL record doesn't tell us what module was requested for unloading. > > Use

[PATCH] kasan: Add a prototype of task_struct to avoid warning

2017-03-13 Thread Arnd Bergmann
From: Masami Hiramatsu Add a prototype of task_struct to fix below warning on arm64. In file included from arch/arm64/kernel/probes/kprobes.c:19:0: include/linux/kasan.h:81:132: error: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declarat

[PATCH 2/5] dmaengine: Add STM32 DMAMUX driver

2017-03-13 Thread M'boumba Cedric Madianga
This patch implements the STM32 DMAMUX driver Signed-off-by: M'boumba Cedric Madianga --- drivers/dma/Kconfig| 9 ++ drivers/dma/Makefile | 1 + drivers/dma/stm32-dmamux.c | 231 + 3 files changed, 241 insertions(+) create mode 10064

[PATCH 5/5] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-03-13 Thread M'boumba Cedric Madianga
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index a9d8e3c..afb6832 100644 --- a/arch/arm

[PATCH 4/5] dmaengine: stm32-dma: Add support for STM32 DMAMUX

2017-03-13 Thread M'boumba Cedric Madianga
This patch adds support for STM32 DMAMUX. When the STM32 DMA controller is behind a STM32 DMAMUX the request line number has not to be handled by DMA but DMAMUX. Signed-off-by: M'boumba Cedric Madianga --- drivers/dma/stm32-dma.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(

[PATCH 0/5] Add STM32 DMAMUX support

2017-03-13 Thread M'boumba Cedric Madianga
This patchset adds support for the STM32 DMA multiplexer. It allows to map any peripheral DMA request to any channel of the product DMAs. This IP has been introduced with STM32H7 SoC. M'boumba Cedric Madianga (5): dt-bindings: Document the STM32 DMAMUX bindings dmaengine: Add STM32 DMAMUX driv

[PATCH 1/5] dt-bindings: Document the STM32 DMAMUX bindings

2017-03-13 Thread M'boumba Cedric Madianga
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga --- .../devicetree/bindings/dma/stm32-dmamux.txt | 57 ++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/s

[PATCH 3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

2017-03-13 Thread M'boumba Cedric Madianga
This patch adds an optional property needed for STM32 DMA controller addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga --- Documentation/devicetree/bindings/dma/stm32-dma.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/stm32-dma.

Re: [OpenRISC] Build regressions/improvements in v4.11-rc2

2017-03-13 Thread Geert Uytterhoeven
Hi Stafford, On Mon, Mar 13, 2017 at 3:12 PM, Stafford Horne wrote: > On Mon, Mar 13, 2017 at 11:15:23AM +0100, Geert Uytterhoeven wrote: >> On Mon, Mar 13, 2017 at 9:43 AM, Geert Uytterhoeven >> wrote: >> > JFYI, when comparing v4.11-rc2[1] to v4.11-rc1[3], the summaries are: >> > - build err

Re: [PATCH] mm, gup: fix typo in gup_p4d_range()

2017-03-13 Thread Mark Rutland
On Mon, Mar 13, 2017 at 08:22:13AM +0300, Kirill A. Shutemov wrote: > gup_p4d_range() should call gup_pud_range(), not itself. > > Signed-off-by: Kirill A. Shutemov > Reported-by: Chris Packham > Fixes: c2febafc6773 ("mm: convert generic code to 5-level paging") > --- > mm/gup.c | 2 +- > 1 fil

Re: [PATCH] watchdog: pcwd_usb: fix NULL-deref at probe

2017-03-13 Thread Johan Hovold
[ Adding linux-usb which I forgot to CC for this one ] On Mon, Mar 13, 2017 at 06:42:45AM -0700, Guenter Roeck wrote: > On 03/13/2017 05:49 AM, Johan Hovold wrote: > > Make sure to check the number of endpoints to avoid dereferencing a > > NULL-pointer should a malicious device lack endpoints. > >

Re: [ipv6] a088d1d73a: WARNING:at_net/mac80211/agg-tx.c:#ieee80211_start_tx_ba_cb[mac80211]

2017-03-13 Thread Linus Lüssing
On Wed, Feb 22, 2017 at 10:03:02AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: a088d1d73a4bcfd7bc482f8d08375b9b665dc3e5 ("ipv6: Fix IPv6 packet loss > in scenarios involving roaming + snooping switches") > https://git.kernel.org/cgit/linux/kernel/git/tor

Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on

2017-03-13 Thread Peter De Schrijver
On Mon, Mar 13, 2017 at 11:03:27AM +, Jon Hunter wrote: > > On 13/03/17 10:45, Peter De Schrijver wrote: > > On Wed, Mar 08, 2017 at 11:48:21AM +, Jon Hunter wrote: > >> > >> On 08/03/17 11:38, Geert Uytterhoeven wrote: > >>> Hi Jon, > >>> > >>> On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Geert Uytterhoeven
Hi Jon, On Mon, Mar 13, 2017 at 3:09 PM, Jon Hunter wrote: > On 13/03/17 11:45, Ulf Hansson wrote: >> +Björn >> >> On 13 March 2017 at 10:37, Jon Hunter wrote: >>> Looks like there is still some interest/needs in/for this. Any thoughts >>> on how we can move this forward? >> >> At the Linaro Con

Re: [PATCHv6 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-03-13 Thread Dmitry Safonov
On 03/13/2017 05:03 PM, Thomas Gleixner wrote: On Mon, 13 Mar 2017, Dmitry Safonov wrote: On 03/13/2017 04:47 PM, Thomas Gleixner wrote: On Mon, 13 Mar 2017, Dmitry Safonov wrote: On 03/13/2017 12:39 PM, Thomas Gleixner wrote: On Mon, 6 Mar 2017, Dmitry Safonov wrote: Result of mmap() calls

Re: [PATCH] writeback: fix memory leak in wb_queue_work()

2017-03-13 Thread Jan Kara
On Fri 10-03-17 12:09:49, Tahsin Erdogan wrote: > When WB_registered flag is not set, wb_queue_work() skips queuing the > work, but does not perform the necessary clean up. In particular, if > work->auto_free is true, it should free the memory. > > The leak condition can be reprouced by following

Re: [mm/kasan] 80a9201a59 BUG: kernel reboot-without-warning in early-boot stage, last printk: Booting the kernel.

2017-03-13 Thread Andrey Ryabinin
On 02/28/2017 06:12 AM, Fengguang Wu wrote: > Hi Alexander, > > FYI, we find an old bug that's still alive in linux-next. The attached > reproduce-* script may help debug the problem. > ... > +--++--

[PATCH v4 09/23] PCI: dwc: designware: Add EP mode support

2017-03-13 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig

[GIT PULL 00/23] PCI: Support for configurable PCI endpoint

2017-03-13 Thread Kishon Vijay Abraham I
Please find the pull request for PCI endpoint support below. I've also included all the history here. Changes from v3: *) fixed a typo and adapted to https://lkml.org/lkml/2017/3/13/562. Changes from v2: *) changed the configfs structure as suggested by Christoph Hellwig. With this change the

[PATCH v4 08/23] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-03-13 Thread Kishon Vijay Abraham I
Add binding documentation for pci-test endpoint function that helps in adding and configuring pci-test endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 ++ .../PCI/endpoint/function/binding/pci-test.txt | 17 ++

[PATCH v4 18/23] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I --- Documentation/misc-devices/pci-endpoint-test.txt | 35 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt diff --git a/Documentat

[PATCH v4 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-03-13 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

[PATCH v4 02/23] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-endpoint.txt | 215

[PATCH v4 20/23] tools: PCI: Add sample test script to invoke pcitest

2017-03-13 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.sh | 56 1

[PATCH v4 15/23] dt-bindings: PCI: dra7xx: Add dt bindings to enable unaligned access

2017-03-13 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling unaligned mem access. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetr

[PATCH v4 16/23] PCI: Add device IDs for DRA74x and DRA72x

2017-03-13 Thread Kishon Vijay Abraham I
Add device IDs for DRA74x and DRA72x devices. These devices have configurable PCI endpoint. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index a4f77feecbb0..5f6b71d15393 1

[PATCH v4 22/23] MAINTAINERS: add PCI EP maintainer

2017-03-13 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c265a5fe4848..3c1b947811e2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9581,6 +9581,15 @

[PATCH v4 23/23] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-03-13 Thread Kishon Vijay Abraham I
The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RC mode. However in EP mode, the host system is not able to access the MEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it. Acked-by: Tony Lindgren

[PATCH v4 21/23] Documentation: PCI: Add userguide for PCI endpoint test function

2017-03-13 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX| 2 + Documentation/PCI/endpoint/pci-test-howto.txt | 179 ++ 2 f

[PATCH v4 12/23] PCI: dwc: dra7xx: Add EP mode support

2017-03-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile | 4 +- drivers/pci/dwc/pci-dra7xx.c

Re: [PATCH -v5 14/14] futex: futex_unlock_pi() determinism

2017-03-13 Thread Thomas Gleixner
On Mon, 13 Mar 2017, Peter Zijlstra wrote: > On Tue, Mar 07, 2017 at 03:31:50PM +0100, Thomas Gleixner wrote: > > On Sat, 4 Mar 2017, Peter Zijlstra wrote: > > > > > The problem with returning -EAGAIN when the waiter state mismatches is > > > that it becomes very hard to proof a bounded execution

[PATCH v4 17/23] misc: Add host side pci driver for pci test function device

2017-03-13 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig

[PATCH v4 14/23] PCI: dwc: dra7xx: Workaround for errata id i870

2017-03-13 Thread Kishon Vijay Abraham I
According to errata i870, access to the PCIe slave port that are not 32-bit aligned will result in incorrect mapping to TLP Address and Byte enable fields. Accessing non 32-bit aligned data causes incorrect data in the target buffer if memcpy is used. Implement the workaround for this errata here.

[PATCH v4 07/23] PCI: endpoint: functions: Add an EP function to test PCI

2017-03-13 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig | 2 + drivers/pci/endpoint/Makefile | 2 +- drivers/pci/endpoint/functions/Kcon

[PATCH v4 13/23] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-03-13 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 +++- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/b

[PATCH v4 19/23] tools: PCI: Add a userspace tool to test PCI endpoint

2017-03-13 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.c | 186 1 file changed, 186 insertions(+) create mode 100644 tools/pc

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Jon Hunter
Hi Geert, On 13/03/17 14:19, Geert Uytterhoeven wrote: > Hi Jon, > > On Mon, Mar 13, 2017 at 3:09 PM, Jon Hunter wrote: >> On 13/03/17 11:45, Ulf Hansson wrote: >>> +Björn >>> >>> On 13 March 2017 at 10:37, Jon Hunter wrote: Looks like there is still some interest/needs in/for this. Any th

Re: [PATCH] kasan: Add a prototype of task_struct to avoid warning

2017-03-13 Thread Alexander Potapenko
On Mon, Mar 13, 2017 at 3:14 PM, Arnd Bergmann wrote: > From: Masami Hiramatsu > > Add a prototype of task_struct to fix below warning on arm64. > > In file included from arch/arm64/kernel/probes/kprobes.c:19:0: > include/linux/kasan.h:81:132: error: 'struct task_struct' declared inside > parame

[PATCH v4 11/23] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-03-13 Thread Kishon Vijay Abraham I
No functional change. Split dra7xx_pcie_enable_interrupts into dra7xx_pcie_enable_wrapper_interrupts and dra7xx_pcie_enable_msi_interrupts so that wrapper interrupts and msi interrupts can be enabled independently. This is in preparation for adding EP mode support to dra7xx driver since EP mode doe

[PATCH v4 10/23] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-03-13 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware-pcie.txt| 26 +++--- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetr

Re: [PATCH v4 4/7] PCI: dwc: all: Modify dbi accessors to take dbi_base as argument

2017-03-13 Thread Niklas Cassel
On 03/13/2017 02:43 PM, Kishon Vijay Abraham I wrote: > dwc has 2 dbi address space labeled dbics and dbics2. The existing > helper to access dbi address space can access only dbics. However > dbics2 has to be accessed for programming the BAR registers in the > case of EP mode. This is in preparati

[PATCH v4 04/23] Documentation: PCI: Guide to use pci endpoint configfs

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-endpoint-cfs.txt | 105

[PATCH v4 05/23] PCI: endpoint: Create configfs entry for EPC device and EPF driver

2017-03-13 Thread Kishon Vijay Abraham I
Invoke API's provided by pci-ep-cfs to create configfs entry for every EPC device and EPF driver to help users in creating EPF device and binding the EPF device to the EPC device. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 4 drivers/pci/endpoint/pci-epf

[PATCH v4 03/23] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-03-13 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig | 9 + drivers/pci/endpoint/Makefile | 1 +

Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-03-13 Thread Michal Hocko
On Mon 13-03-17 14:42:37, Vitaly Kuznetsov wrote: > Michal Hocko writes: > > > On Mon 13-03-17 13:54:59, Vitaly Kuznetsov wrote: > >> Michal Hocko writes: > >> > >> > On Mon 13-03-17 11:55:54, Igor Mammedov wrote: > >> >> > > > >> >> > >- suggested RFC is not acceptable from virt point

Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM family version

2017-03-13 Thread Andrew Lunn
On Mon, Mar 13, 2017 at 12:54:24PM +, Li, Meng wrote: > > > > -Original Message- > > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > > Sent: Monday, March 13, 2017 7:54 PM > > To: Li, Meng > > Cc: linux-kernel@vger.kernel.org; peterhu...@gmx.de; > > tp...@selhorst.net

Re: [PATCH v4 5/7] PCI: dwc: all: Modify dbi accessors to access data of 4/2/1 bytes

2017-03-13 Thread Niklas Cassel
Acked-by: Niklas Cassel On 03/13/2017 02:43 PM, Kishon Vijay Abraham I wrote: > Previously dbi accessors can be used to access data of size 4 > bytes. But there might be situations (like accessing > MSI_MESSAGE_CONTROL in order to set/get the number of required > MSI interrupts in EP mode) where

Re: [PATCH v5] blkcg: allocate struct blkcg_gq outside request queue spinlock

2017-03-13 Thread Jens Axboe
On 03/11/2017 09:35 PM, Tahsin Erdogan wrote: > On Sat, Mar 11, 2017 at 2:52 PM, Jens Axboe wrote: > >> >> Talked to Tejun about this as well, and we both agree that the splitting >> this into separate init/alloc paths would be much cleaner. I can't >> apply the current patch, sorry, it's just to

[PATCH 1/6] x86/mm: Extend headers with basic definitions to support 5-level paging

2017-03-13 Thread Kirill A. Shutemov
This patch extends x86 headers to enable 5-level paging support. It's still based on . We will get to the point where we can have later. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/pgtable-2level_types.h | 1 + arch/x86/include/asm/pgtable-3level_types.h | 1 + arch/x86/includ

[PATCH 0/6] x86: 5-level paging enabling for v4.12, Part 1

2017-03-13 Thread Kirill A. Shutemov
Here's the first bunch of patches of 5-level patchset. Let's see if I'm on right track addressing Ingo's feedback. :) These patches prepare x86 code to be switched from to . It's a stepping stone for adding 5-level paging support. Please review and consider applying. Kirill A. Shutemov (6): x

[PATCH 4/6] x86/ident_map: Add 5-level paging support

2017-03-13 Thread Kirill A. Shutemov
Add additional page table level handing. It's mostly mechanical. The only quirk is that with p4d folded, 'pgd' is equal to 'p4d' in kernel_ident_mapping_init(). pgd entry has to point pud page table in this case. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/ident_map.c | 51 +++

[PATCH 5/6] x86/vmalloc: Add 5-level paging support

2017-03-13 Thread Kirill A. Shutemov
Modify vmalloc_fault() to handle additional page table level. With 4-level paging, copying happens on p4d level, as we have pgd_none() always false if p4d_t is folded. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/fault.c | 27 --- 1 file changed, 24 insertions(+), 3

[PATCH 6/6] x86/power: Add 5-level paging support

2017-03-13 Thread Kirill A. Shutemov
set_up_temporary_text_mapping() and relocate_restore_code() require adjustments to handle additional page table level. Signed-off-by: Kirill A. Shutemov --- arch/x86/power/hibernate_64.c | 50 +++ 1 file changed, 36 insertions(+), 14 deletions(-) diff --g

[PATCH 3/6] x86/gup: Add 5-level paging support

2017-03-13 Thread Kirill A. Shutemov
get_user_pages_fast() has to handle additional page table level. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/gup.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/x86/mm/gup.c b/arch/x86/mm/gup.c index 1f3b6ef105cd..456dfdfd2249 1

[PATCH 2/6] x86/mm: Convert trivial cases of page table walk to 5-level paging

2017-03-13 Thread Kirill A. Shutemov
This patch only covers simple cases. Less trivial cases will be converted with separate patches. Signed-off-by: Kirill A. Shutemov --- arch/x86/kernel/tboot.c| 6 +- arch/x86/kernel/vm86_32.c | 6 +- arch/x86/mm/fault.c| 39 +

Is this behavior in clockevents_program_event() correct?

2017-03-13 Thread Jason Zhang
Hi, timer experts, I have a question on the above function, and would appreciate your thoughts. In debugging a kernel hrtimer stalling issue on RHEL7.x kernel, we found a case when this function was called from hrtimer_interrupt(), value of expires was before ktime_get(), not sure how that got th

[PATCH v4 06/23] Documentation: PCI: Add specification for the *pci test* function device

2017-03-13 Thread Kishon Vijay Abraham I
Add specification for the *pci test* virtual function device. The endpoint function driver and the host pci driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-test

Re: [PATCH] lockdep: call trace_hardirqs_off after clearing hardirqs_enabled

2017-03-13 Thread Peter Zijlstra
Thanks for Cc'ing me. On Mon, Mar 13, 2017 at 06:08:48PM +0800, Qi Hou wrote: > The current order of calls within trace_hardirqs_off() would provoke an > "unannotated irqs-off" WARNING. > > This warning was reported by check_flags() when it found that the hardirqs has > been disabled but the irq

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Geert Uytterhoeven
Hi Jon, On Mon, Mar 13, 2017 at 3:27 PM, Jon Hunter wrote: > On 13/03/17 14:19, Geert Uytterhoeven wrote: >> On Mon, Mar 13, 2017 at 3:09 PM, Jon Hunter wrote: >>> On 13/03/17 11:45, Ulf Hansson wrote: +Björn On 13 March 2017 at 10:37, Jon Hunter wrote: > Looks like there is

Re: [PATCH 1/2] Fix V8 device information issue

2017-03-13 Thread Pali Rohár
On Monday 13 March 2017 16:04:09 Masaki Ota wrote: > From: Masaki Ota > -Fix the issue that V8(E7=73 03 28) devices are not assined correct device > information bit from OTP. > -Specified correct OTP bit for the V8 device setting of Button pad, DualPoint > and Touchpad size. > -Deleted extra cod

Re: WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)

2017-03-13 Thread Michal Hocko
On Mon 13-03-17 14:57:12, Igor Mammedov wrote: > On Mon, 13 Mar 2017 11:43:02 +0100 > Michal Hocko wrote: > > > On Mon 13-03-17 11:31:10, Igor Mammedov wrote: > > > On Fri, 10 Mar 2017 14:58:07 +0100 > > [...] > > > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x-0x0009] > > > > [

Re: [PATCH 2/2] Fix the issue that V8 Button pad Stick button does not work

2017-03-13 Thread Pali Rohár
On Monday 13 March 2017 16:04:10 Masaki Ota wrote: > From: Masaki Ota > - V8 Button pad Stick Right and Middle button don't work. > - Alps stick devices have physical buttons absolutely, so delete > "ALPS_BUTTONPAD" check Flag from Stick button process. > > Signed-off-by: Masaki Ota Acked-by:

Re: [PATCH] perf sort: Segmentation fault of basic block cycles sort dimension

2017-03-13 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 13, 2017 at 04:31:48PM +0800, changbin...@intel.com escreveu: > From: Changbin Du > > Skip the sample which doesn't have branch_info to avoid segmentation > fault occurrence. > > The fault can be reproduced by: > perf record -a > perf report -F cycles Thanks, applied. - Arnaldo >

Re: [PATCHv2 4/5] mfd: altr_a10sr: Add Arria10 DevKit Reset Controller

2017-03-13 Thread Philipp Zabel
On Thu, 2017-03-09 at 10:03 -0600, Thor Thayer wrote: > Hi Lee, > > On 02/28/2017 08:42 AM, Philipp Zabel wrote: > > On Wed, 2017-02-22 at 11:10 -0600, thor.tha...@linux.intel.com wrote: > >> From: Thor Thayer > >> > >> Add Peripheral PHY Reset Controller to the Arria10 > >> Development Kit Syste

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Ulf Hansson
On 13 March 2017 at 15:09, Jon Hunter wrote: > Hi Ulf, > > On 13/03/17 11:45, Ulf Hansson wrote: >> +Björn >> >> On 13 March 2017 at 10:37, Jon Hunter wrote: >>> Hi Rafael, Kevin, Ulf, >>> >>> Looks like there is still some interest/needs in/for this. Any thoughts >>> on how we can move this forw

Re: perf: Improve support for uncore JSON event lists

2017-03-13 Thread Jiri Olsa
On Fri, Mar 10, 2017 at 01:24:33PM -0800, Andi Kleen wrote: > This patch kit further improves support for Intel uncore events in > the Linux perf user tool. The basic support has been already > merged earlier, but this makes it nicer to use. > > - Collapse counts from duplicated boxes to make the

[PATCH 2/3] dmaengine: rcar-dmac: Slow mode prototype

2017-03-13 Thread Magnus Damm
From: Magnus Damm This experimental slow mode support code simply extends the MID/RID value to allow encoding a 4-bit value in bit 8-11 to specify the SLM bit value. With this value set the channel associated with the device will be processed slower by the hardware. The idea is that the slow mode

[PATCH 1/3] dmaengine: rcar-dmac: Priority handling prototype

2017-03-13 Thread Magnus Damm
From: Magnus Damm The priority handling uses MID/RID values to determine if channels below to RX or TX sides. The case of RX is unchanged and as low channel number as possible is used to ensure high priority. New with this code is that TX is allocated with highest channel number first to force lo

[PATCH 3/3] arm64: dts: r8a7795: Use slow mode for TX on SCIF2/DEBUG1

2017-03-13 Thread Magnus Damm
From: Magnus Damm Experimental code to enable slow mode on r8a7795 for SCIF2 TX. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ work/arch/arm64/boot

[PATCH 0/3] dmaengine: rcar-dmac: Priority and slow mode prototypes

2017-03-13 Thread Magnus Damm
dmaengine: rcar-dmac: Priority and slow mode prototypes [PATCH 1/3] dmaengine: rcar-dmac: Priority handling prototype [PATCH 2/3] dmaengine: rcar-dmac: Slow mode prototype [PATCH 3/3] arm64: dts: r8a7795: Use slow mode for TX on SCIF2/DEBUG1 This series implements prototype support for priority h

Re: [PATCH] perf report: Document +field style argument support for --field option

2017-03-13 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 13, 2017 at 04:32:52PM +0800, changbin...@intel.com escreveu: > From: Changbin Du > > Commit 2f3f9bcf000b ("perf tools: Add +field argument support for --field > option") by Jiri Olsa introduced +field style argument > support for --field option. This is useful but not updated docume

[PATCH v2] generic syscalls: Wire up statx syscall

2017-03-13 Thread Stafford Horne
The new syscall statx is implemented as generic code, so enable it for architectures like openrisc which use the generic syscall table. Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available") Cc: Thomas Gleixner Cc: Al Viro Cc: David Howells Cc: Catalin Marinas

Re: [PATCH] perf report: show sort_order in title

2017-03-13 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 13, 2017 at 04:36:35PM +0800, changbin...@intel.com escreveu: > From: Changbin Du > > In the report, how does the data sort is a important info for > analyser. Moreover, perf sometimes insert or append sort fields > automatically. Thus user may confuse how it sorts w/o reading > perf

Re: [mm/kasan] BUG: KASAN: slab-out-of-bounds in inotify_read at addr ffff88001539780c

2017-03-13 Thread Andrey Ryabinin
On 03/11/2017 04:54 PM, Fengguang Wu wrote: > Hi Alexander, > > FYI, here is another bisect result. > Also wrong for the same reason as before. > [ 22.974867] debug: unmapping init [mem > 0x8800023f5000-0x8800023f] > [ 40.729584] x86/mm: Checked W+X mappings: passed, no W+X p

Re: [PATCH] scsi: storvsc: Add support for FC rport.

2017-03-13 Thread Cathy Avery
Hi, I haven't received any feedback yet. Should I resend? Thanks, Cathy On 02/28/2017 01:45 PM, Cathy Avery wrote: Included in the current storvsc driver for Hyper-V is the ability to access luns on an FC fabric via a virtualized fiber channel adapter exposed by the Hyper-V host. The driver

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Jon Hunter
Hi Geert, On 13/03/17 14:38, Geert Uytterhoeven wrote: > Hi Jon, > > On Mon, Mar 13, 2017 at 3:27 PM, Jon Hunter wrote: >> On 13/03/17 14:19, Geert Uytterhoeven wrote: >>> On Mon, Mar 13, 2017 at 3:09 PM, Jon Hunter wrote: On 13/03/17 11:45, Ulf Hansson wrote: > +Björn > > On 1

Re: [PATCH net-next v2 00/17] net: dsa: mv88e6xxx: rework ATU support

2017-03-13 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > Just some general note on the way the driver seems to be going there > seems to be a multiplication of new ops being introduced, and most of > them seem to default to the mv88e6xxx (generic) ones. Should you do > something like: > > if (!ops->foo) > o

Re: [PATCH v2 07/23] MAINTAINERS: Add file patterns for fpga device tree bindings

2017-03-13 Thread Alan Tull
On Sun, Mar 12, 2017 at 8:16 AM, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Acked-by: Moritz Fischer > Cc: Alan Tull > Cc: Moritz Fischer > Cc: linux-f...@vg

Re: [PATCH] writeback: fix memory leak in wb_queue_work()

2017-03-13 Thread Jens Axboe
On 03/10/2017 01:09 PM, Tahsin Erdogan wrote: > When WB_registered flag is not set, wb_queue_work() skips queuing the > work, but does not perform the necessary clean up. In particular, if > work->auto_free is true, it should free the memory. > > The leak condition can be reprouced by following th

<    1   2   3   4   5   6   7   8   9   10   >