Re: [PATCH] pci: Fix typo in MAINTAINERS file

2017-01-11 Thread Bjorn Helgaas
Hi Joao, On Wed, Dec 28, 2016 at 04:05:11PM +, Joao Pinto wrote: > This patch fixes a typo in MAINTAINERS file. > > Signed-off-by: Joao Pinto > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index cfff2c9..1056392 1006

Re: [PATCH 2/2] arm64: avoid increasing DMA masks above what hardware supports

2017-01-11 Thread Arnd Bergmann
On Wednesday, January 11, 2017 9:31:52 PM CET Nikita Yushchenko wrote: > @@ -959,6 +990,15 @@ void arch_setup_dma_ops(struct device *dev, u64 > dma_base, u64 size, > if (!dev->archdata.dma_ops) > dev->archdata.dma_ops = &swiotlb_dma_ops; > > + /* > +* Whatev

Re: [PATCH] Documentation: dt: reset: Revise typos in TI syscon reset example

2017-01-11 Thread Rob Herring
On Mon, Jan 09, 2017 at 01:28:14PM -0600, Suman Anna wrote: > Fix couple of typos in the example given in the TI syscon reset > binding. The ti,reset-bits used for DSP0 are corrected to match > the values that will be used in the actual DT node. > > Signed-off-by: Suman Anna > --- > Hi Philipp, >

[PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning

2017-01-11 Thread Arnd Bergmann
As found by Olof's build bot, today's mainline kernel gained a harmless warning about a potential uninitalied variable reference: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function 'parse_tc_fdb_actions': drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:769:13: warning: 'out_dev' may be

Re: Please include Aspeed ARM SoC tree in linux-next

2017-01-11 Thread Stephen Rothwell
Hi Joel, On Wed, 11 Jan 2017 12:11:29 +1100 Joel Stanley wrote: > > I'm the maintainer for the Aspeed ARM SoC tree and I would like it > added to linux-next. > > The tree is a sub-maintainer tree for the Aspeed family of 32-bit ARM > SoCs that went upstream earlier last year. > > Tree: git://gi

Re: [PATCH] arm64: dts: exynos: Replace small letter of base address/offset on Exynos5433

2017-01-11 Thread Rob Herring
On Wed, Jan 11, 2017 at 09:55:48AM +0900, Chanwoo Choi wrote: > This patch replaces the small letter of base address, offset and hex value > with the capital letter to keep the consistency on Exynos5433. You mean the other way around, right? > > Signed-off-by: Chanwoo Choi > --- > arch/arm64/b

Re: [RFC v4 0/6] CPU reclaiming for SCHED_DEADLINE

2017-01-11 Thread luca abeni
On Wed, 11 Jan 2017 15:06:47 + Juri Lelli wrote: > On 11/01/17 13:39, Luca Abeni wrote: > > Hi Juri, > > (I reply from my new email address) > > > > On Wed, 11 Jan 2017 12:19:51 + > > Juri Lelli wrote: > > [...] > > > > > For example, with my taskset, with a hypothetical perfect > > >

Re: [PATCH v2 1/6] mmc: sunxi: Always set signal delay to 0 for A64

2017-01-11 Thread Maxime Ripard
On Tue, Jan 10, 2017 at 12:30:41AM +, André Przywara wrote: > On 09/01/17 16:46, Maxime Ripard wrote: > > Experience have shown that the using the autocalibration could severely > > degrade the performances of the MMC bus. > > > > Allwinner is using in its BSP a delay set to 0 for all the mod

Re: [PATCH v4 0/3] HID: switch hid-rmi to rmi_core

2017-01-11 Thread Jiri Kosina
On Thu, 5 Jan 2017, Benjamin Tissoires wrote: > Hi, > > Small revision to add irq.h in hid-rmi.c, as reported by the Intel > kbuild test bot and by Andrew. > > Cheers, > Benjamin > > Andrew Duggan (3): > HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4 > HID: rmi: Handle all Syn

[PATCH] staging: android/ion: Fix coding style issues

2017-01-11 Thread Bogdan Purcareata
Fix following checkpatch warnings: - Lines over 80 characters - void function with return statement - Unaligned comment mark - Header function prototypes missing variable names Signed-off-by: Bogdan Purcareata --- drivers/staging/android/ion/ion-ioctl.c | 3 ++- drivers/staging/android/ion/ion_

Re: [RFC v4 2/6] sched/deadline: improve the tracking of active utilization

2017-01-11 Thread luca abeni
On Wed, 11 Jan 2017 17:05:42 + Juri Lelli wrote: > Hi, > > On 30/12/16 12:33, Luca Abeni wrote: > > From: Luca Abeni > > > > This patch implements a more theoretically sound algorithm for > > tracking active utilization: instead of decreasing it when a > > task blocks, use a timer (the "in

Re: [PATCH] arm64: dts: exynos: Replace small letter of base address/offset on Exynos5433

2017-01-11 Thread Chanwoo Choi
2017-01-12 1:26 GMT+09:00 Krzysztof Kozlowski : > On Wed, Jan 11, 2017 at 09:55:48AM +0900, Chanwoo Choi wrote: >> This patch replaces the small letter of base address, offset and hex value >> with the capital letter to keep the consistency on Exynos5433. >> >> Signed-off-by: Chanwoo Choi >> --- >

Re: [PATCH v2 0/3] PCI: designware/dra7xx: misc fixes and cleanups

2017-01-11 Thread Bjorn Helgaas
On Fri, Dec 30, 2016 at 03:26:11PM +0530, Kishon Vijay Abraham I wrote: > This series contains > *) a patch to cleanup dra7xx probe > *) a patch to force DRA7xx controller to work in GEN1 mode > *) a patch to fix dra7xx driver so that even if CONFIG_PCI_MSI >is e

[PATCH] platform/x86: Add IMS/ZII SCU driver

2017-01-11 Thread Florian Fainelli
From: Guenter Roeck This patch adds support for the IMS (now Zodiac Inflight Innovations) SCU Generation 1/2/3 platform driver. This driver registers all the on-module peripherals: Ethernet switches (Broadcom or Marvell), I2C to GPIO expanders, Kontrom CPLD/I2C master, and more. Signed-off-by: G

Re: [PATCH 1/2] Documentation: devicetree: Add document bindings for mtk-cir

2017-01-11 Thread Rob Herring
On Mon, Jan 9, 2017 at 8:35 PM, Sean Wang wrote: > Hi Rob, > > thanks for your effort for reviewing. I added comments inline. > > On Mon, 2017-01-09 at 12:32 -0600, Rob Herring wrote: >> On Fri, Jan 06, 2017 at 12:06:23AM +0800, sean.w...@mediatek.com wrote: >> > From: Sean Wang >> > >> > This pa

Re: [PATCH] arm64: dts: exynos: Replace small letter of base address/offset on Exynos5433

2017-01-11 Thread Chanwoo Choi
2017-01-12 6:15 GMT+09:00 Rob Herring : > On Wed, Jan 11, 2017 at 09:55:48AM +0900, Chanwoo Choi wrote: >> This patch replaces the small letter of base address, offset and hex value >> with the capital letter to keep the consistency on Exynos5433. > > You mean the other way around, right? When I p

Re: [PATCH v5 0/6] inherit dma configuration from parent dev

2017-01-11 Thread Javier Martinez Canillas
[adding Arnd Bergmann who wrote the patches and I noticed was not cc'ed] Hello, On Tue, Jan 10, 2017 at 9:11 AM, Roger Quadros wrote: > On 05/01/17 19:16, Greg KH wrote: >> On Thu, Jan 05, 2017 at 05:21:09PM +0200, Roger Quadros wrote: >>> Hi, >>> >>> On 17/11/16 13:43, Sriram Dash wrote: F

Re: [PATCH v3 2/4] dt-bindings: Add TI SCI PM Domains

2017-01-11 Thread Rob Herring
On Mon, Jan 9, 2017 at 11:57 AM, Dave Gerlach wrote: > Rob, > > On 01/09/2017 11:50 AM, Rob Herring wrote: >> >> On Wed, Jan 04, 2017 at 02:55:34PM -0600, Dave Gerlach wrote: >>> >>> Add a generic power domain implementation, TI SCI PM Domains, that >>> will hook into the genpd framework and allow

Re: [PATCH] staging: rtl: fix possible NULL pointer dereference

2017-01-11 Thread Larry Finger
On 01/11/2017 08:53 AM, Arnd Bergmann wrote: gcc-7 detects that wlanhdr_to_ethhdr() in two drivers calls memcpy() with a destination argument that an earlier function call may have set to NULL: staging/rtl8188eu/core/rtw_recv.c: In function 'wlanhdr_to_ethhdr': staging/rtl8188eu/core/rtw_recv.c:

Re: [PATCH] ACPI/PCI: Fix bus range comparation in pci_mcfg_lookup

2017-01-11 Thread Bjorn Helgaas
On Wed, Jan 04, 2017 at 03:00:06PM +0800, Zhou Wang wrote: > The configuration data provided by an MCFG region (ie PCI segment and > bus range) may span multiple host bridges. > > Current code in pci_mcfg_lookup() carries out an exact match of host > bridge bus range start value against the MCFG r

[PATCH] tty_port: checkpatch: Refactored file to linux style guides

2017-01-11 Thread Fabian Arnold
The tty_port.c file is now accordingly to the linux style guidelines. Signed-off-by: Fabian Arnold Signed-off-by: Philip Thiemann --- drivers/tty/tty_port.c | 38 +++--- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/drivers/tty/tty_port.c b/driv

[PATCH 07/10] blk-mq: abstract out helpers for allocating/freeing tag maps

2017-01-11 Thread Jens Axboe
Prep patch for adding an extra tag map for scheduler requests. Signed-off-by: Jens Axboe --- block/blk-mq.c | 119 - block/blk-mq.h | 14 --- 2 files changed, 84 insertions(+), 49 deletions(-) diff --git a/block/blk-mq.c b/block/blk-m

[PATCH 03/10] block: move rq_ioc() to blk.h

2017-01-11 Thread Jens Axboe
We want to use it outside of blk-core.c. Signed-off-by: Jens Axboe --- block/blk-core.c | 16 block/blk.h | 16 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 61ba08c58b64..92baea07acbc 100644 ---

[PATCH 09/10] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2017-01-11 Thread Jens Axboe
This is basically identical to deadline-iosched, except it registers as a MQ capable scheduler. This is still a single queue design. Signed-off-by: Jens Axboe --- block/Kconfig.iosched | 6 + block/Makefile| 1 + block/mq-deadline.c | 569 +++

[PATCH 06/10] blk-mq-tag: cleanup the normal/reserved tag allocation

2017-01-11 Thread Jens Axboe
This is in preparation for having another tag set available. Cleanup the parameters, and allow passing in of tags fo blk_mq_put_tag(). Signed-off-by: Jens Axboe --- block/blk-mq-tag.c | 58 ++ block/blk-mq-tag.h | 4 ++-- block/blk-mq.c |

[PATCH 04/10] blk-mq: un-export blk_mq_free_hctx_request()

2017-01-11 Thread Jens Axboe
It's only used in blk-mq, kill it from the main exported header and kill the symbol export as well. Signed-off-by: Jens Axboe --- block/blk-mq.c | 5 ++--- include/linux/blk-mq.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 7

[PATCH 10/10] blk-mq-sched: allow setting of default IO scheduler

2017-01-11 Thread Jens Axboe
Add Kconfig entries to manage what devices get assigned an MQ scheduler, and add a blk-mq flag for drivers to opt out of scheduling. The latter is useful for admin type queues that still allocate a blk-mq queue and tag set, but aren't use for normal IO. Signed-off-by: Jens Axboe --- block/Kconfi

[PATCH 02/10] blk-mq: make mq_ops a const pointer

2017-01-11 Thread Jens Axboe
We never change it, make that clear. Signed-off-by: Jens Axboe Reviewed-by: Bart Van Assche --- block/blk-mq.c | 2 +- include/linux/blk-mq.h | 2 +- include/linux/blkdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index a8e67

[PATCH 01/10] block: move existing elevator ops to union

2017-01-11 Thread Jens Axboe
Prep patch for adding MQ ops as well, since doing anon unions with named initializers doesn't work on older compilers. Signed-off-by: Jens Axboe --- block/blk-ioc.c | 8 +++ block/blk-merge.c| 4 ++-- block/blk.h | 10 block/cfq-iosched.c | 2 +-

[PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-11 Thread Jens Axboe
This adds a set of hooks that intercepts the blk-mq path of allocating/inserting/issuing/completing requests, allowing us to develop a scheduler within that framework. We reuse the existing elevator scheduler API on the registration side, but augment that with the scheduler flagging support for th

[PATCH 05/10] blk-mq: export some helpers we need to the scheduling framework

2017-01-11 Thread Jens Axboe
Signed-off-by: Jens Axboe --- block/blk-mq.c | 39 +-- block/blk-mq.h | 25 + 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index f49f6325b332..9fc521755e22 100644 --- a/block/blk-mq.c +

[PATCHSET v6] blk-mq scheduling framework

2017-01-11 Thread Jens Axboe
Another year, another posting of this patchset. The previous posting was here: https://www.spinics.net/lists/kernel/msg2406106.html (yes, I've skipped v5, it was fixes on top of v4, not the rework). I've reworked bits of this to get rid of the shadow requests, thanks to Bart for the inspiration.

Re: [PATCH v9 4/4] console: Make persistent scrollback a boot parameter

2017-01-11 Thread Manuel Schölling
On Tue, 2017-01-10 at 23:58 +0100, Adam Borowski wrote: > On Tue, Jan 10, 2017 at 10:28:38PM +0100, Manuel Schölling wrote: > > The impact of the persistent scrollback feature on the code size is > > rather small, so the config option is removed. The feature stays > > disabled by default and can be

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-11 Thread Andi Kleen
On Wed, Jan 11, 2017 at 11:31:25AM -0800, Linus Torvalds wrote: > On Wed, Jan 11, 2017 at 11:20 AM, Andy Lutomirski wrote: > > > > Taking a step back, I think it would be fantastic if we could find a > > way to make this work without any inheritable settings at all. > > Perhaps we could have a per

Re: Support Intel uncore event lists v4

2017-01-11 Thread Jiri Olsa
On Wed, Jan 11, 2017 at 11:52:58AM -0800, Andi Kleen wrote: > > > v1: Initial post > > > v2: Address review feedback. See changelog in commits. > > > v3: Repost. Rebase to latest tree. > > > v4: Rebase. Change DividedBy to generic simple expression parser. > > > Fix refactoring problem that broke g

[GIT PULL] HID

2017-01-11 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem -rc fixes: = - device descriptor length validation fix to hid-cypress driver from Greg - introduction of a short delay into i2c-hid, which is not really mandated by t

Re: [PATCH] Documentation: dt: reset: Revise typos in TI syscon reset example

2017-01-11 Thread Suman Anna
On 01/11/2017 03:15 PM, Rob Herring wrote: > On Mon, Jan 09, 2017 at 01:28:14PM -0600, Suman Anna wrote: >> Fix couple of typos in the example given in the TI syscon reset >> binding. The ti,reset-bits used for DSP0 are corrected to match >> the values that will be used in the actual DT node. >> >>

Re: [PATCH 00/18] MTD-CFI: Fine-tuning for several function implementations

2017-01-11 Thread Boris Brezillon
Hi Markus, On Wed, 11 Jan 2017 21:34:13 +0100 SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 11 Jan 2017 21:21:12 +0100 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (18): > Use kmalloc_array() in cfi_intelext_par

Re: Support Intel uncore event lists v4

2017-01-11 Thread Andi Kleen
On Wed, Jan 11, 2017 at 10:47:32PM +0100, Jiri Olsa wrote: > On Wed, Jan 11, 2017 at 11:52:58AM -0800, Andi Kleen wrote: > > > > v1: Initial post > > > > v2: Address review feedback. See changelog in commits. > > > > v3: Repost. Rebase to latest tree. > > > > v4: Rebase. Change DividedBy to generic

Re: [PATCH 00/18] MTD-CFI: Fine-tuning for several function implementations

2017-01-11 Thread Marek Vasut
On 01/11/2017 09:34 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 11 Jan 2017 21:21:12 +0100 > > Several update suggestions were taken into account > from static source code analysis. The patch listing doesn't seem to match the content of the patchset ? The $subject are differ

Re: [PATCH 02/18] mtd-cfi_cmdset_0001: Improve another size determination in cfi_intelext_partition_fixup()

2017-01-11 Thread Marek Vasut
On 01/11/2017 09:37 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 10 Jan 2017 19:09:58 +0100 Please drop this stuff ^ git send-email should do that for you. > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof

Re: [PATCH 01/18] mtd-cfi_cmdset_0001: Use kmalloc_array() in cfi_intelext_partition_fixup()

2017-01-11 Thread Marek Vasut
On 01/11/2017 09:35 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 10 Jan 2017 18:48:34 +0100 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kmalloc

[PATCH v2 1/2] dt-bindings: usb: add DT binding for s3c2410 USB device controller

2017-01-11 Thread Sergio Prado
Adds the device tree bindings description for Samsung S3C2410 and compatible USB device controller. Signed-off-by: Sergio Prado --- .../devicetree/bindings/usb/s3c2410-usb.txt| 28 ++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/usb

[PATCH v2 2/2] usb: gadget: s3c2410: allow probing from device tree

2017-01-11 Thread Sergio Prado
Allows configuring Samsung's s3c2410 and compatible USB device controller using a devicetree. Signed-off-by: Sergio Prado --- drivers/usb/gadget/udc/s3c2410_udc.c | 144 +-- drivers/usb/gadget/udc/s3c2410_udc.h | 4 + 2 files changed, 124 insertions(+), 24 delet

[PATCH v2 0/2] usb: gadget: s3c2410: add device tree support

2017-01-11 Thread Sergio Prado
This series adds support for configuring Samsung's s3c2410 and compatible USB device controller via device tree. Tested on FriendlyARM mini2440, based on s3c2440 SoC. Changes since v1: - change the USB bus clock name to "uclk" to better reflect the name used in the datasheet - improve samsung,v

[GIT PULL] rpmsg fixes for v4.10

2017-01-11 Thread Bjorn Andersson
The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) are available in the git repository at: git://github.com/andersson/remoteproc tags/rpmsg-v4.10-fixes for you to fetch changes up to 63447646ac657fde00bb658ce21a3431940ae0a

[GIT PULL] remoteproc fixes for v4.10

2017-01-11 Thread Bjorn Andersson
The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) are available in the git repository at: git://github.com/andersson/remoteproc tags/rproc-v4.10-fixes for you to fetch changes up to a0c10687ec9506b5e14fe3dd47832a77f2f2500

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Youn
On 1/3/2017 11:52 AM, John Stultz wrote: > Hope everyone had a happy new years! > > I just wanted to send out my current queue of patches for dwc2 > controller on the HiKey board for consideration for the 4.11 > merge window. > > This does exclude my patchset[1] to add extcon support to dwc2, > w

[PATCH] pinctrl: core: Fix regression caused by delayed work for hogs

2017-01-11 Thread Tony Lindgren
Commit df61b366af26 ("pinctrl: core: Use delayed work for hogs") caused a regression at least with sh-pfc that is also a GPIO controller as noted by Geert Uytterhoeven . As the original pinctrl_register() has issues calling pin controller driver functions early before the controller has finished r

RE: Dell XPS13 does not suspend with Linux 4.10-rc3

2017-01-11 Thread Winkler, Tomas
> > On 01/11/17 10:49, Winkler, Tomas wrote: > > >> Subject: Re: Dell XPS13 does not suspend with Linux 4.10-rc3 > >> > >> On 01/11/17 10:36, Greg Kroah-Hartman wrote: > >>> On Wed, Jan 11, 2017 at 09:53:38AM +0100, Paul Menzel wrote: > >> > On 01/10/17 23:24, Jan Niehusmann wrote: > > O

Re: [PATCH 1/5] perf, tools: Add probing for xed

2017-01-11 Thread Andi Kleen
> > diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature > > index e3fb5ecbdcb6..971a9ef87ca6 100644 > > --- a/tools/build/Makefile.feature > > +++ b/tools/build/Makefile.feature > > @@ -63,7 +63,7 @@ FEATURE_TESTS_BASIC := \ > > lzma

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Daniel Vetter
On Wed, Jan 11, 2017 at 08:16:56AM -0800, Dave Hansen wrote: > On 01/11/2017 07:39 AM, Daniel Vetter wrote: > > Hm, just cherry-picked it on top of Linus' latest 4.10 git, applies > > cleanly there. The substituation was for 4.9. I can send you the patch > > here, but seems all fine from what I can

Re: [PATCH 1/2] x86/mm: don't mmap() over 4GB with compat syscall

2017-01-11 Thread Andy Lutomirski
On Wed, Jan 11, 2017 at 10:17 AM, Dmitry Safonov wrote: > During fixing CRIU bugs on ZDTM tests for 32-bit C/R, I found that > compatible ia32/x32 syscalls mmap() and mmap2() can return address > over 4Gb in x86_64 applications, which results in returning lower > 4 bytes of address while dropping

[Patch v3 1/2] arm: kernel: Add SMC structure parameter

2017-01-11 Thread Andy Gross
This patch adds a quirk parameter to the arm_smccc_smc call. The quirk structure allows for specialized SMC operations due to SoC specific requirements. The current arm_smccc_smc is renamed and macros are used instead to specify the standard arm_smccc_smc or the arm_smccc_smc_quirk function. Thi

[Patch v3 2/2] firmware: qcom: scm: Fix interrupted SCM calls

2017-01-11 Thread Andy Gross
This patch adds a Qualcomm specific quirk to the arm_smccc_smc call. On Qualcomm ARM64 platforms, the SMC call can return before it has completed. If this occurs, the call can be restarted, but it requires using the returned session ID value from the interrupted SMC call. The quirk stores off th

[Patch v3 0/2] Support ARM SMCC SoC vendor quirks

2017-01-11 Thread Andy Gross
At least one SoC vendor (Qualcomm) requires additional processing done during ARM SMCCC calls. As such, an additional parameter to the arm_smccc_smc is required to be able to handle SoC specific quirks. The Qualcomm quirk is necessary due to the fact that the scm call can be interrupted on Qualco

[PATCH v3 4/4] rpmsg: smd: Register rpmsg user space interface for edges

2017-01-11 Thread Bjorn Andersson
Create and register a rpmsg device for use with the rpmsg user space interface, allowing user space to access SMD channels. Also provide the "rpmsg_name" device attribute to expose the edge name in sysfs, allowing the user to write udev rules for specific rpmsg devices and their children. Signed-

[PATCH v3 1/4] rpmsg: Introduce "poll" to endpoint ops

2017-01-11 Thread Bjorn Andersson
This allows rpmsg backends to implement polling of the outgoing buffer, which provides poll support to user space when using the rpmsg character device. Signed-off-by: Bjorn Andersson --- Changes since v2: - None Changes since v1: - New patch drivers/rpmsg/rpmsg_core.c | 20 ++

[PATCH v3 2/4] rpmsg: qcom_smd: Implement endpoint "poll"

2017-01-11 Thread Bjorn Andersson
Add support for polling the status of the write buffer so that user space can use rpmsg character devices in non-blocking mode. Signed-off-by: Bjorn Andersson --- Changes since v2: - None Changes since v1: - New patch drivers/rpmsg/qcom_smd.c | 16 1 file changed, 16 insertio

[PATCH v3 3/4] rpmsg: Driver for user space endpoint interface

2017-01-11 Thread Bjorn Andersson
This driver allows rpmsg instances to expose access to rpmsg endpoints to user space processes. It provides a control interface, allowing userspace to export endpoints and an endpoint interface for each exposed endpoint. The implementation is based on prior art by Texas Instrument, Google, PetaLog

[UPDATED PATCH] perf, tools: Add probing for xed

2017-01-11 Thread Andi Kleen
From: Andi Kleen Add autoprobing for the xed disassembler library. Can be downloaded from https://github.com/intelxed/xed v2: Hide. Require XED=1 to enable. Add XED_DIR v3: Remove -lxed from probe all. Don't touch FEATURE_DISPLAY. Signed-off-by: Andi Kleen --- tools/build/Makefile.feature |

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: > On 1/3/2017 11:52 AM, John Stultz wrote: >> Hope everyone had a happy new years! >> >> I just wanted to send out my current queue of patches for dwc2 >> controller on the HiKey board for consideration for the 4.11 >> merge window. >> >> This does

Re: mm, vmscan: commit makes PAE kernel crash nightly (bisected)

2017-01-11 Thread Trevor Cordes
On 2017-01-11 Mel Gorman wrote: > On Wed, Jan 11, 2017 at 12:11:46PM +, Mel Gorman wrote: > > On Wed, Jan 11, 2017 at 04:32:43AM -0600, Trevor Cordes wrote: > > > Hi! I have biected a nightly oom-killer flood and crash/hang on > > > one of the boxes I admin. It doesn't crash on Fedora 23/24

[PATCH] tilepro: Fix non-void return from void function

2017-01-11 Thread Joe Perches
commit bc1f44709cf2 ("net: make ndo_get_stats64 a void function") mistakenly used a return value for this void conversion. Fix it. Signed-off-by: Joe Perches cc: stephen hemminger --- drivers/net/ethernet/tile/tilepro.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/etherne

Re: edac/i7300_edac.c:307: strange macro ?

2017-01-11 Thread Borislav Petkov
On Wed, Jan 11, 2017 at 04:48:51PM +, David Binderman wrote: > Hello there, > > drivers/edac/i7300_edac.c:307:32: warning: ‘*’ in boolean context, suggest > ‘&&’ instead [-Wint-in-bool-context] Are you adding some other -W-switches to the kernel Makefile? :-) > Source code is > > #defin

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Youn
On 1/11/2017 2:39 PM, John Stultz wrote: > On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: >> On 1/3/2017 11:52 AM, John Stultz wrote: >>> Hope everyone had a happy new years! >>> >>> I just wanted to send out my current queue of patches for dwc2 >>> controller on the HiKey board for considerati

Re: [PATCH v5 2/9] mm/swap: Add cluster lock

2017-01-11 Thread Andrew Morton
On Wed, 11 Jan 2017 09:55:12 -0800 Tim Chen wrote: > From: "Huang, Ying" > > This patch is to reduce the lock contention of swap_info_struct->lock > via using a more fine grained lock in swap_cluster_info for some swap > operations. swap_info_struct->lock is heavily contended if multiple > pro

Re: [PATCH v5 2/9] mm/swap: Add cluster lock

2017-01-11 Thread Jonathan Corbet
On Wed, 11 Jan 2017 15:00:29 -0800 Andrew Morton wrote: > hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have > all the lockdep support. > > Would the world end if we added a spinlock to swap_cluster_info? FWIW, I asked the same question in December, this is what I got: jon

Re: [PATCH v5 3/9] mm/swap: Split swap cache into 64MB trunks

2017-01-11 Thread Andrew Morton
On Wed, 11 Jan 2017 09:55:13 -0800 Tim Chen wrote: > The patch is to improve the scalability of the swap out/in via using > fine grained locks for the swap cache. In current kernel, one address > space will be used for each swap device. And in the common > configuration, the number of the swap

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 2:58 PM, John Youn wrote: > On 1/11/2017 2:39 PM, John Stultz wrote: >> On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: >>> On 1/3/2017 11:52 AM, John Stultz wrote: Hope everyone had a happy new years! I just wanted to send out my current queue of patches

Re: [PATCH] iio: magnetometer: ak8974: remove redundant zero timeout check

2017-01-11 Thread Linus Walleij
On Wed, Jan 11, 2017 at 6:49 PM, Colin King wrote: > From: Colin Ian King > > At the end of the delay loop timeout will always be zero > and hence the check for !timeout will always be true. Remove > the redundant check and the redundant return 0 at the end of > the function. > > Fixes CoverityS

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-11 Thread Tim Harvey
On Fri, Jan 6, 2017 at 6:11 PM, Steve Longerbeam wrote: > In version 3: > > Changes suggested by Rob Herring : > > - prepended FIM node properties with vendor prefix "fsl,". > > - make mipi csi-2 receiver compatible string SoC specific: > "fsl,imx6-mipi-csi2" instead of "fsl,imx-mipi-csi2"

Re: [PATCH v5 2/9] mm/swap: Add cluster lock

2017-01-11 Thread Andrew Morton
On Wed, 11 Jan 2017 16:07:29 -0700 Jonathan Corbet wrote: > On Wed, 11 Jan 2017 15:00:29 -0800 > Andrew Morton wrote: > > > hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have > > all the lockdep support. > > > > Would the world end if we added a spinlock to swap_cluster_info

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Youn
On 1/11/2017 3:10 PM, John Stultz wrote: > On Wed, Jan 11, 2017 at 2:58 PM, John Youn wrote: >> On 1/11/2017 2:39 PM, John Stultz wrote: >>> On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: On 1/3/2017 11:52 AM, John Stultz wrote: > Hope everyone had a happy new years! > > I jus

[PATCH] xen-netfront: Fix Rx stall during network stress and OOM

2017-01-11 Thread Vineeth Remanan Pillai
During an OOM scenario, request slots could not be created as skb allocation fails. So the netback cannot pass in packets and netfront wrongly assumes that there is no more work to be done and it disables polling. This causes Rx to stall. Fix is to consider the skb allocation failure as an error a

Re: [PATCH v5 3/9] mm/swap: Split swap cache into 64MB trunks

2017-01-11 Thread Andi Kleen
> Switching from a single radix-tree to an array of radix-trees to reduce > contention seems a bit hacky. That we can do this and have everything > continue to work tells me that we're simply using an inappropriate data > structure to hold this info. What would you use instead? A tree with fine

[PATCH v7] x86: fix kaslr and memmap collision

2017-01-11 Thread Dave Jiang
CONFIG_RANDOMIZE_BASE relocates the kernel to a random base address. However it does not take into account the memmap= parameter passed in from the kernel cmdline. This results in the kernel sometimes being put in the middle of memmap. Teaching kaslr to not insert the kernel in memmap defined regio

LOCATE YOUR INHERITANCE

2017-01-11 Thread info
Hello, I'm Dr. Gertjan Vlieghe (Bank Of England),we have an inheritance of a deceased client with your surname Contact Dr. Gertjan Vlieghe With your: Full Name, Tel Number, Age, Occupation and Address through email: d.vlie...@yahoo.com Dr. Gertjan Vlieghe -

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-11 Thread Dan Streetman
On Wed, Jan 11, 2017 at 1:46 PM, Stefano Stabellini wrote: > On Wed, 11 Jan 2017, Dan Streetman wrote: >> On Tue, Jan 10, 2017 at 8:25 PM, Stefano Stabellini >> wrote: >> > On Tue, 10 Jan 2017, Dan Streetman wrote: >> >> On Tue, Jan 10, 2017 at 2:03 PM, Stefano Stabellini >> >> wrote: >> >> > On

Re: [PATCH v3 0/5] MIPS: Add per-cpu IRQ stack

2017-01-11 Thread Jason A. Donenfeld
On Wed, Jan 11, 2017 at 2:20 AM, Ralf Baechle wrote: > On Wed, Jan 11, 2017 at 12:32:38AM +0100, Jason A. Donenfeld wrote: > >> Was this ever picked up for 4.10 or 4.11? > > Still sitting in -next as commit 3cc3434fd630 and its four parent commits. Oh, good, so it's progressing normally. I just d

Re: [PATCH 23/62] watchdog: intel-mid_wdt: Convert to use device managed functions

2017-01-11 Thread Andy Shevchenko
On Wed, Jan 11, 2017 at 1:34 AM, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patches. The

[PATCH] partially revert "xen: Remove event channel notification through Xen PCI platform device"

2017-01-11 Thread Stefano Stabellini
The following commit: commit 72a9b186292d98494f26cfd24a1621796209 Author: KarimAllah Ahmed Date: Fri Aug 26 23:55:36 2016 +0200 xen: Remove event channel notification through Xen PCI platform device broke Linux when booting as Dom0 on Xen in a nested Xen environment (Xen installed ins

Re: [PATCH 20/62] watchdog: iTCO_wdt: Replace shutdown function with call to watchdog_stop_on_reboot

2017-01-11 Thread Andy Shevchenko
On Wed, Jan 11, 2017 at 1:34 AM, Guenter Roeck wrote: > The shutdown function calls the stop function. > Call watchdog_stop_on_reboot() from probe instead. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic patches and the scripts used >

Re: [PATCH v2 1/1] lib/vsnprintf: Add %par specifier for sake of consistency

2017-01-11 Thread Andrew Morton
On Wed, 11 Jan 2017 18:28:07 +0200 Andy Shevchenko wrote: > While resource_size_t is repeating phys_addr_t, allocate %par specifier for > that type for sake of consistency. > I'm struggling to see the value in this. A more detailed changelog would help, explaining why you think the kernel wou

Re: [PATCH v4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-01-11 Thread Andy Shevchenko
On Wed, Jan 11, 2017 at 1:58 PM, Tvrtko Ursulin wrote: > Since the scatterlist length field is an unsigned int, make > sure that sg_alloc_table_from_pages does not overflow it while > coallescing pages to a single entry. > /* > + * Since the above length field is an unsigned int, below we defin

Re: [PATCH] drivers: block: Remove unnecessary cast

2017-01-11 Thread Gustavo A. R. Silva
Quoting Greg KH : On Wed, Jan 11, 2017 at 12:41:05PM -0600, Gustavo A. R. Silva wrote: This issue was detected using Coccinelle and the following semantic patch: @@ expression * e; expression arg1, arg2; type T; @@ - e = (T *) + e = kmalloc(arg1, arg2); Signed-off-by: Gustavo A. R. Silva -

Re: [PATCH 0/5 v3] adv7511 EDID probing improvements

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 12:48 AM, Archit Taneja wrote: > Hi, > > On 01/04/2017 01:11 AM, John Stultz wrote: >> >> Hope everyone had a good newyears! >> >> Wanted to re-send out v3 of this patch set improving the EDID >> probing on the adv7511 used on HiKey, for consideration for >> merging for 4.1

Re: [PATCH 3/9] dma: Add dma_virt_ops

2017-01-11 Thread Bart Van Assche
On 01/11/2017 12:56 AM, Christoph Hellwig wrote: >> +lib-$(CONFIG_HAS_DMA) += dma-virt.o > > There probably should be a config option for it for two reasons: > > - do not bloat kernels that don't need it. > - the feature can only work for 32-bit architectures or for >64-bit architectures th

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Andy Shevchenko
On Wed, Jan 11, 2017 at 12:52 PM, Guenter Roeck wrote: > On 01/11/2017 01:07 AM, Marc Gonzalez wrote: > Not really. It would just make it more complicated to replace the > call with devm_clk_prepare_enable(), should it ever find its way > into the light of day. Actually what is the status to the p

Re: [PATCH 44/62] watchdog: pnx4008_wdt: Convert to use device managed functions

2017-01-11 Thread Vladimir Zapolskiy
Hi Guenter, On 01/11/2017 02:44 AM, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patches.

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Andrew Morton
On Tue, 10 Jan 2017 16:15:27 -0800 (PST) David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > Th

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-11 Thread Abel Vesa
On Tue, Jan 10, 2017 at 04:51:12PM +0100, Petr Mladek wrote: > On Thu 2016-12-08 22:46:55, Abel Vesa wrote: > > On Thu, Dec 08, 2016 at 09:46:35PM +, Abel Vesa wrote: > > > From: Jean-Jacques Hiblot > > > > > > From: Jean-Jacques Hiblot > > > > >From statement twice in the commit message. W

[PATCH 3/4 v3] usb: dwc2: Force port resume on switching to device mode

2017-01-11 Thread John Stultz
From: Chen Yu We've seen failures when switching between host and gadget mode, which was diagnosed as being caused due to the bus being auto-suspended when we switched. So this patch forces a port resume when switching to device mode if the bus is suspended. Cc: Wei Xu Cc: Guodong Xu Cc: Amit

[PATCH 0/4 v3] Fixes and workarounds for dwc2 on HiKey board (rebased to synopsys-usb/next)

2017-01-11 Thread John Stultz
Just wanted to resend my patches for dwc2 controller on the HiKey board for consideration for the 4.11 merge window. This patchset is the same as v2, only rebased against John's synopsys-usb/next branch. This does still exclude my patchset[1] to add extcon support to dwc2, which John Youn suspect

[PATCH 4/4 v3] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2017-01-11 Thread John Stultz
From: Chen Yu The Hi6220's usb controller is limited in that it does not support "Split Transactions", so it does not support communicating with low-speed and full-speed devices behind a high-speed hub. Thus it requires a quirk so that we can manually drop the usb speed when low/full-speed are a

Re: [PATCH] ACPI/PCI: Fix bus range comparation in pci_mcfg_lookup

2017-01-11 Thread Zhou Wang
On 2017/1/12 5:37, Bjorn Helgaas wrote: > On Wed, Jan 04, 2017 at 03:00:06PM +0800, Zhou Wang wrote: >> The configuration data provided by an MCFG region (ie PCI segment and >> bus range) may span multiple host bridges. >> >> Current code in pci_mcfg_lookup() carries out an exact match of host >> b

[PATCH 1/4 v3] usb: dwc2: Avoid sleeping while holding hsotg->lock

2017-01-11 Thread John Stultz
Basically when plugging in various cables in different orders, I'm occasionally seeing the following BUG splat: [ 86.215403] BUG: scheduling while atomic: kworker/u16:2/53/0x0002 [ 86.219164] usb 1-1: USB disconnect, device number 9 [ 86.226845] Preemption disabled at:[ 86.230218] [] d

[PATCH 2/4 v3] usb: dwc2: Workaround case where GOTGCTL state is wrong

2017-01-11 Thread John Stultz
When removing a USB-A to USB-otg adapter cable, we get a change status irq, and then in dwc2_conn_id_status_change, we erroniously see the GOTGCTL_CONID_B flag set. This causes us to get stuck in the "while (!dwc2_is_device_mode(hsotg))" loop, spitting out "Waiting for Peripheral Mode, Mode=Host"

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-11 Thread Khalid Aziz
On 01/11/2017 12:11 PM, Dave Hansen wrote: On 01/11/2017 10:50 AM, Khalid Aziz wrote: On 01/11/2017 11:13 AM, Dave Hansen wrote: On 01/11/2017 08:56 AM, Khalid Aziz wrote: For memory shared by two different processes, do they have to agree on what the tags are, or can they differ? The two pro

[PATCH] usb: dwc3-exynos Fix dma_mask WARN_ON from xhci_plat_probe()

2017-01-11 Thread Shuah Khan
During dwc3_exynos_probe(), WARN_ON(!pdev->dev.dma_mask) is triggered from xhci_plat_probe(). dwc3_host_init() doesn't configure DMA prior to adding the platform device. dwc3_host_init() was changed to not configure DMA with the change to use bus->sysdev for DMA config. sysdev_is_parent is not tr

<    3   4   5   6   7   8   9   10   >