[tip:locking/core] locking/pvqspinlock: Don't wait if vCPU is preempted

2017-01-12 Thread tip-bot for Pan Xinhui
Commit-ID: 75437bb304b20a2b350b9a8e9f9238d5e24e12ba Gitweb: http://git.kernel.org/tip/75437bb304b20a2b350b9a8e9f9238d5e24e12ba Author: Pan Xinhui AuthorDate: Tue, 10 Jan 2017 02:56:46 -0500 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:35:57 +0100 locking/pvqspinlock: Don't wa

[tip:x86/boot] x86/e820/32: Fix e820_search_gap() error handling on x86-32

2017-01-12 Thread tip-bot for Arnd Bergmann
Commit-ID: c19a5f35e315837170ee337eed21c7087ea94192 Gitweb: http://git.kernel.org/tip/c19a5f35e315837170ee337eed21c7087ea94192 Author: Arnd Bergmann AuthorDate: Wed, 11 Jan 2017 15:49:04 +0100 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:40:06 +0100 x86/e820/32: Fix e820_sear

[tip:locking/core] locking/spinlocks: Remove the unused spin_lock_bh_nested() API

2017-01-12 Thread tip-bot for Waiman Long
Commit-ID: 607904c357c61adf20b8fd18af765e501d61a385 Gitweb: http://git.kernel.org/tip/607904c357c61adf20b8fd18af765e501d61a385 Author: Waiman Long AuthorDate: Mon, 9 Jan 2017 10:26:52 -0500 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:33:39 +0100 locking/spinlocks: Remove the

[tip:x86/urgent] x86/entry: Fix the end of the stack for newly forked tasks

2017-01-12 Thread tip-bot for Josh Poimboeuf
Commit-ID: ff3f7e2475bbf9201e95824e72698fcdc5c3d47a Gitweb: http://git.kernel.org/tip/ff3f7e2475bbf9201e95824e72698fcdc5c3d47a Author: Josh Poimboeuf AuthorDate: Mon, 9 Jan 2017 12:00:25 -0600 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:28:29 +0100 x86/entry: Fix the end of

Re: [PATCH 1/1] usb: xhci: set RWE only for remote wakeup capable devices

2017-01-12 Thread Lu Baolu
Hi Mathias, On 01/12/2017 04:53 PM, Lu Baolu wrote: > Xhci spec requires in section 4.23.5.1.1.1 that the RWE bit of USB2 > PORTPMSC register should only set for remote wakeup capble devices. > > This was suggested by Mathias in the following discussion thread. > http://marc.info/?l=linux-usb&m=14

[tip:locking/core] locking/jump_labels: Update bug_at() boot message

2017-01-12 Thread tip-bot for Andy Shevchenko
Commit-ID: 6e03f66c001790d6ca853c68a56c87460bc86467 Gitweb: http://git.kernel.org/tip/6e03f66c001790d6ca853c68a56c87460bc86467 Author: Andy Shevchenko AuthorDate: Tue, 10 Jan 2017 18:43:54 +0200 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:43:07 +0100 locking/jump_labels: Upd

Re: NVMe vs DMA addressing limitations

2017-01-12 Thread Sagi Grimberg
Another workaround me might need is to limit amount of concurrent DMA in the NVMe driver based on some platform quirk. The way that NVMe works, it can have very large amounts of data that is concurrently mapped into the device. That's not really just NVMe - other storage and network controller

PROBLEM: Belkin Thunderbolt 2 Express Dock HD display port hot plug not supported.

2017-01-12 Thread Duncan Law
[1.] One line summary of the problem: Belkin Thunderbolt 2 Express Dock HD display port hot plug not supported. [2.] Full description of the problem/report: When booted without the thunderbolt 2 Express dock connected, connecting the dock only allows USB and Ethernet to work, it does not support

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

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 10:30:24 AM CET Or Gerlitz wrote: > On 1/11/2017 11:14 PM, Arnd Bergmann wrote: > > @@ -666,14 +666,15 @@ static int mlx5e_route_lookup_ipv4(struct mlx5e_priv > > *priv, > > struct rtable *rt; > > struct neighbour *n = NULL; > > int ttl; > > + in

[PATCH 2/2] mmc: dt-bindings: update Mediatek MMC bindings

2017-01-12 Thread Yong Mao
From: yong mao Add description for hs200-cmd-int-delay Add description for hs400-cmd-int-delay Add description for cmd-resp-sel Signed-off-by: Yong Mao --- Documentation/devicetree/bindings/mmc/mtk-sd.txt |6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bin

[PATCH 0/2] Use data tune for CMD line tune

2017-01-12 Thread Yong Mao
CMD response CRC error may cause cannot boot up Change to use data tune for CMD line Separate cmd internal delay for HS200/HS400 mode yong mao (2): mmc: mediatek: Use data tune for CMD line tune mmc: dt-bindings: update Mediatek MMC bindings Documentation/devicetree/bindings/mmc/mtk-sd.txt |

Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups

2017-01-12 Thread Mark Rutland
On Wed, Jan 11, 2017 at 08:31:11PM +, Liang, Kan wrote: > > Kan, in your per-cpu event list patch you mentioned that you saw a large > > overhead in perf_iterate_ctx() when skipping events for other CPUs. > > Which callers of perf_iterate_ctx() specifically was that problematic for? > > Do >

[PATCH 1/2] mmc: mediatek: Use data tune for CMD line tune

2017-01-12 Thread Yong Mao
From: yong mao CMD response CRC error may cause cannot boot up Change to use data tune for CMD line Separate cmd internal delay for HS200/HS400 mode Signed-off-by: Yong Mao Signed-off-by: Chaotian Jing --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts |3 + drivers/mmc/host/mtk-sd.c

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

2017-01-12 Thread Johannes Thumshirn
On Wed, Jan 11, 2017 at 02:39:56PM -0700, Jens Axboe wrote: > We want to use it outside of blk-core.c. > > Signed-off-by: Jens Axboe > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de

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

2017-01-12 Thread Johannes Thumshirn
On Wed, Jan 11, 2017 at 02:39:57PM -0700, Jens Axboe wrote: > 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 > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

[tip:x86/urgent] x86/unwind: Disable KASAN checks for non-current tasks

2017-01-12 Thread tip-bot for Josh Poimboeuf
Commit-ID: 84936118bdf37bda513d4a361c38181a216427e0 Gitweb: http://git.kernel.org/tip/84936118bdf37bda513d4a361c38181a216427e0 Author: Josh Poimboeuf AuthorDate: Mon, 9 Jan 2017 12:00:23 -0600 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:28:27 +0100 x86/unwind: Disable KASAN

[tip:x86/urgent] x86/unwind: Silence warnings for non-current tasks

2017-01-12 Thread tip-bot for Josh Poimboeuf
Commit-ID: 900742d89c1b4e04bd373aec8470b88e183f08ca Gitweb: http://git.kernel.org/tip/900742d89c1b4e04bd373aec8470b88e183f08ca Author: Josh Poimboeuf AuthorDate: Mon, 9 Jan 2017 12:00:22 -0600 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:28:27 +0100 x86/unwind: Silence warnin

[tip:x86/urgent] x86/unwind: Include __schedule() in stack traces

2017-01-12 Thread tip-bot for Josh Poimboeuf
Commit-ID: 2c96b2fe9c57b4267c3f0a680d82d7cc52e1c447 Gitweb: http://git.kernel.org/tip/2c96b2fe9c57b4267c3f0a680d82d7cc52e1c447 Author: Josh Poimboeuf AuthorDate: Mon, 9 Jan 2017 12:00:24 -0600 Committer: Ingo Molnar CommitDate: Thu, 12 Jan 2017 09:28:28 +0100 x86/unwind: Include __sche

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

2017-01-12 Thread Johannes Thumshirn
On Wed, Jan 11, 2017 at 02:39:55PM -0700, Jens Axboe wrote: > We never change it, make that clear. > > Signed-off-by: Jens Axboe > Reviewed-by: Bart Van Assche > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@

Re: [PATCH v5 3/5] cpuidle:powernv: Add helper function to populate powernv idle states.

2017-01-12 Thread Balbir Singh
On Tue, Jan 10, 2017 at 02:37:02PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > In the current code for powernv_add_idle_states, there is a lot of code > duplication while initializing an idle state in powernv_states table. > > Add an inline helper function to populate the pow

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

2017-01-12 Thread Johannes Thumshirn
On Wed, Jan 11, 2017 at 02:39:54PM -0700, Jens Axboe wrote: > 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 > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: [patch] mm, memcg: do not retry precharge charges

2017-01-12 Thread Michal Hocko
On Wed 11-01-17 20:32:12, David Rientjes wrote: [...] > This also restructures mem_cgroup_wait_acct_move() since it is not > possible for mc.moving_task to be current. thinking about this some more, I do not think this is the right way to go. It is true that we will not reach mem_cgroup_wait_acct_

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

2017-01-12 Thread Johannes Thumshirn
On Wed, Jan 11, 2017 at 02:39:58PM -0700, Jens Axboe wrote: > Signed-off-by: Jens Axboe > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH,

Re: [PATCH v7 4/7] perf/amd/iommu: Declare pr_fmt and remove unnecessary pr_debug

2017-01-12 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:33:44PM -0600, Suravee Suthikulpanit wrote: > This patch declare pr_fmt for perf/amd_iommu and remove unnecessary There's that "This patch" again. > pr_debug. > > Cc: Peter Zijlstra > Cc: Borislav Petkov > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/event

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

2017-01-12 Thread Charles Keepax
On Tue, Jan 10, 2017 at 06:09:16PM -0800, 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 patc

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

2017-01-12 Thread Dmitry Safonov
On 01/12/2017 01:26 AM, Andy Lutomirski wrote: 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 returnin

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Christoffer Dall
On Thu, Jan 12, 2017 at 09:55:21AM +, Andre Przywara wrote: > Hi, > > On 12/01/17 09:32, Marc Zyngier wrote: > > Hi Dmitry, > > > > On 11/01/17 19:01, Dmitry Vyukov wrote: > >> Hello, > >> > >> While running syzkaller fuzzer I've got the following deadlock. > >> On commit 9c763584b7c8911106bb

Re: Duplicate inode number when mount --bind some directories to same mountpoint. (from Fedora18 to 4.10-rc3)

2017-01-12 Thread Al Viro
On Thu, Jan 12, 2017 at 06:16:35PM +0900, Nakajima Akira wrote: > Bug: > Duplicate inode number when mount --bind some directories to same > mountpoint. (from Fedora18 to 4.10-rc3) > Fedora17 and earlier works correctly. Explain, please. "Duplicate inode number" between what and what? > And, > A

[PATCHv2] v4l: split lane parsing code

2017-01-12 Thread Pavel Machek
From: Sakari Ailus The function to parse CSI2 bus parameters was called v4l2_of_parse_csi_bus(), rename it as v4l2_of_parse_csi2_bus() in anticipation of CSI1/CCP2 support. Obtain data bus type from bus-type property. Only try parsing bus specific properties in this case. Separate lane parsing

[PATCH 01/37] PCI: dwc: dra7xx: Group all host related setup in add_pcie_port

2017-01-12 Thread Kishon Vijay Abraham I
commit 150645b94348 ("PCI: dra7xx: Move struct pcie_port setup to probe function") moved host related setup to the probe function. However instead of cluttering the probe function with host related setup, group all host related setup in add_pcie_port function. This way when endpoint support is adde

[PATCH 00/37] PCI: Support for configurable PCI endpoint

2017-01-12 Thread Kishon Vijay Abraham I
The RFC series that was sent before this patch series can be found at [1]. The patches are split here so that it can be better reviewed. This main purpose of this patch series is to *) add PCI endpoint core layer *) modifie designware/dra7xx driver to be configured in EP mode *) add a PCI endpo

[PATCH 06/37] PCI: dwc: Rename cfg_read/cfg_write to read/write

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. dw_pcie_cfg_read/dw_pcie_cfg_write doesn't do anything specific to access configuration space. It can be just renamed to dw_pcie_read/dw_pcie_write and used to read/write data to dbi space. This is in preparation for added endpoint support to linux kernel. Cc: Jingoo Han Cc:

[PATCH 12/37] PCI: dwc: Create a new config symbol to enable pci dwc host

2017-01-12 Thread Kishon Vijay Abraham I
Now that pci designware host has a separate file, create a new config symbol to select the host only driver. This is in preparation to enable endpoint support to designware driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 26 +++--- driv

[PATCH 04/37] PCI: dwc: designware: Move the register defines to designware header file

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Move the register defines and other macros from pcie-designware.c to pcie-designware.h. This is in preparation to split the pcie-designware.c file into designware core file and host specific file. While at that also fix a checkpatch warning. Signed-off-by: Kishon Vijay Abrah

[PATCH 14/37] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-01-12 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 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-01-12 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 |4 +- drivers/pci/endpoint/Makefile |2

[RFT PATCH 08/37] PCI: dwc: Split *struct pcie_port* into host only and core structures

2017-01-12 Thread Kishon Vijay Abraham I
Keep only the host specific members in *struct pcie_port* and move the common members (i.e common to both host and endpoint) to *struct dw_pcie*. This is in preparation for adding endpoint mode support to designware driver. While at that also fix checkpatch warnings. Cc: Jingoo Han Cc: Richard Z

[PATCH 02/37] PCI: dwc: designware: Add new *ops* for cpu addr fixup

2017-01-12 Thread Kishon Vijay Abraham I
Some platforms (like dra7xx) require only the least 28 bits of the corresponding 32 bit CPU address to be programmed in the address translation unit. This modified address is stored in io_base/mem_base/ cfg0_base/cfg1_base in dra7xx_pcie_host_init. While this is okay for host mode where the address

[PATCH 23/37] PCI: dwc: Add *ops* to start and stop pcie link

2017-01-12 Thread Kishon Vijay Abraham I
Add start_link and stop_link ops in dw_pcie_ops to start or stop the link. This will be used by endpoint functions to start the link once the setup has been done. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pcie-designware.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/

[PATCH 09/37] PCI: dwc: designware: Parse *num-lanes* property in dw_pcie_setup_rc

2017-01-12 Thread Kishon Vijay Abraham I
*num-lanes* dt property is parsed in dw_pcie_host_init. However *num-lanes* property is applicable to both root complex mode and endpoint mode. As a first step, move the parsing of this property outside dw_pcie_host_init. This is in preparation for splitting pcie-designware.c to pcie-designware.c a

[PATCH 30/37] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-01-12 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling legacy mode. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bind

[PATCH 22/37] PCI: dwc: Modify dbi accessors to access data of 4/2/1 bytes

2017-01-12 Thread Kishon Vijay Abraham I
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 dbi accessors must be used to access data of size 2. This is in preparation for adding e

[PATCH 32/37] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-01-12 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 37/37] ARM: dts: DRA7: Add pcie1 dt node for EP mode

2017-01-12 Thread Kishon Vijay Abraham I
Add pcie1 dt node in order for the controller to operate in endpoint mode. However since none of the dra7 based boards have slots configured to operate in endpoint mode, keep EP mode disabled. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am572x-idk.dts|7 ++

[PATCH 31/37] misc: Add host side pci driver for pci test function device

2017-01-12 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 29/37] PCI: dwc: dra7xx: Workaround for errata id i870

2017-01-12 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 25/37] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-01-12 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. 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/devicetree/bindings/pci/designw

[PATCH 34/37] tools: PCI: Add sample test script to invoke pcitest

2017-01-12 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

Re: [PATCH] doc: add note on usleep_range range

2017-01-12 Thread Pavel Machek
On Wed 2017-01-11 08:50:07, Nicholas Mc Guire wrote: > On Tue, Jan 10, 2017 at 10:25:29PM +0100, Pavel Machek wrote: > > Hi! > > > > > > "to have zero jitter" at least. I believe it is "does not". > > > > > > > > I don't see how atomic vs. non-atomic context makes difference. There > > > > are so

[PATCH 05/37] PCI: dwc: Add platform_set_drvdata

2017-01-12 Thread Kishon Vijay Abraham I
Add platform_set_drvdata in all designware based drivers to store the private data structure of the driver so that dev_set_drvdata can be used to get back private data pointer in add_pcie_port/host_init. This is in preparation for splitting struct pcie_port into core and host only structures. After

[PATCH 21/37] PCI: dwc: Modify dbi accessors to take dbi_base as argument

2017-01-12 Thread Kishon Vijay Abraham I
dwc has 2 dbi address space labelled 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 preparation for adding EP mode support to dwc driver. Signed-off-by:

[PATCH 35/37] MAINTAINERS: add PCI EP maintainer

2017-01-12 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 8672f18..021f676 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9407,6 +9407,15 @@ F:

Re: [RFC DRAFT] Adds PUI: process unic identifier

2017-01-12 Thread Tetsuo Handa
Jose Bollo wrote: > Hi all, > > I'd like to get your feeling about the idea > exposed in that draft. Should continue or stop > immediately? Is there already some existing work? > How is the taken approach? > > BR - Jose Bollo > > [RFC DRAFT] Adds PUI: process unic identifier > > The name 'pui'

[PATCH 36/37] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-01-12 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. Signed-off-by: Kishon Vij

[PATCH 33/37] tools: PCI: Add a userspace tool to test PCI endpoint

2017-01-12 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

[PATCH 0/3] MTD-FTL: Fine-tuning for two function implementations

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 11:24:12 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use kmalloc_array() in build_maps() Delete an error message for a failed memory allocation in ftl_add_mtd() Improve another size

[PATCH 18/37] Documentation: PCI: Add specification for the *pci test* function device

2017-01-12 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-te

[PATCH 17/37] Documentation: PCI: Guide to use pci endpoint configfs

2017-01-12 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 |

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Marc Zyngier
On 12/01/17 09:55, Andre Przywara wrote: > Hi, > > On 12/01/17 09:32, Marc Zyngier wrote: >> Hi Dmitry, >> >> On 11/01/17 19:01, Dmitry Vyukov wrote: >>> Hello, >>> >>> While running syzkaller fuzzer I've got the following deadlock. >>> On commit 9c763584b7c8911106bb77af7e648bef09af9d80. >>> >>> >

[PATCH 27/37] PCI: dwc: dra7xx: Add EP mode support

2017-01-12 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

[PATCH 28/37] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-01-12 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. 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/bindings/pci/ti-pci.txt

[PATCH 07/37] PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Get device pointer at the beginning of dw_pcie_host_init instead of getting it all over dw_pcie_host_init. This is in preparation for splitting struct pcie_port into host and core structures (Once split pcie_port will not have device pointer). Signed-off-by: Kishon Vijay Abra

[PATCH 24/37] PCI: dwc: designware: Add EP mode support

2017-01-12 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

[PATCH 2/3] mtd/ftl: Delete an error message for a failed memory allocation in ftl_add_mtd()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 11:11:47 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/mtd/ftl.c | 6 +- 1 f

Linux 4.4.42

2017-01-12 Thread Greg KH
I'm announcing the release of the 4.4.42 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

[PATCH 26/37] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-01-12 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 1/3] mtd/ftl: Use kmalloc_array() in build_maps()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 10:42:25 +0100 * Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle softw

Re: Linux 4.4.42

2017-01-12 Thread Greg KH
diff --git a/Makefile b/Makefile index 855e71066174..b8a90f9a463d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 41 +SUBLEVEL = 42 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi i

[PATCH 19/37] PCI: endpoint: functions: Add an EP function to test PCI

2017-01-12 Thread Kishon Vijay Abraham I
This 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 |3 +- drivers/pci/endpoint/functio

[PATCH 20/37] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-01-12 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 15/37] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-01-12 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 | 190 ++

Re: PROBLEM: Belkin Thunderbolt 2 Express Dock HD display port hot plug not supported.

2017-01-12 Thread Duncan Law
continuation of: "Belkin Thunderbolt 2 Express Dock HD display port hot plug not supported." The following output was captured after un-plugging then re-plugging the peripheral: [7.3.] Module information (from /proc/modules): nls_utf8 16384 0 - Live 0x btrfs 1089536 0 - Live 0x000

Re: [PATCH 1/2] mmc: mediatek: Use data tune for CMD line tune

2017-01-12 Thread Ulf Hansson
On 12 January 2017 at 11:04, Yong Mao wrote: > From: yong mao > > CMD response CRC error may cause cannot boot up > Change to use data tune for CMD line > Separate cmd internal delay for HS200/HS400 mode Please try to work a little bit on improving the change log. Moreover as this is a fix for a

[PATCH 3/3] mtd/ftl: Improve another size determination in ftl_add_mtd()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 11:18:59 +0100 Replace the specification of a data type by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus E

Re: net/atm: warning in alloc_tx/__might_sleep

2017-01-12 Thread Chas Williams
On Wed, 2017-01-11 at 20:36 -0800, Cong Wang wrote: > On Wed, Jan 11, 2017 at 11:46 AM, Michal Hocko wrote: > > On Wed 11-01-17 20:45:25, Michal Hocko wrote: > >> On Wed 11-01-17 09:37:06, Chas Williams wrote: > >> > On Mon, 2017-01-09 at 18:20 +0100, Andrey Konovalov wrote: > >> > > Hi! > >> > >

[PATCH 13/37] PCI: dwc: Remove dependency of designware to CONFIG_PCI

2017-01-12 Thread Kishon Vijay Abraham I
CONFIG_PCI is used to enable the host mode PCI. In preparation for adding endpoint mode support to designware driver, remove the dependency of designware to CONFIG_PCI and make only the host specific part depend on CONFIG_PCI. Signed-off-by: Kishon Vijay Abraham I --- drivers/Makefile|

[PATCH 11/37] PCI: dwc: Split pcie-designware.c into host and core files

2017-01-12 Thread Kishon Vijay Abraham I
Split pcie-designware.c into pcie-designware-host.c that contains the host specific parts of the driver and pcie-designware.c that contains the parts used by both host driver and endpoint driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Makefile |2 +- drivers/

[PATCH 03/37] PCI: dwc: dra7xx: Populate cpu_addr_fixup ops

2017-01-12 Thread Kishon Vijay Abraham I
Populate cpu_addr_fixup ops to extract the least 28 bits of the corresponding cpu address. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-d

[PATCH 10/37] PCI: dwc: designware: Fix style errors in pcie-designware.c

2017-01-12 Thread Kishon Vijay Abraham I
No functional change. Fix all checkpatch warnings and check errors in pcie-designware.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pcie-designware.c | 42 ++--- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/pci/dwc/pcie-d

[PATCH 3/3] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-12 Thread Mel Gorman
Many workloads that allocate pages are not handling an interrupt at a time. As allocation requests may be from IRQ context, it's necessary to disable/enable IRQs for every page allocation. This cost is the bulk of the free path but also a significant percentage of the allocation path. This patch a

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Christoffer Dall
On Thu, Jan 12, 2017 at 10:30:39AM +, Marc Zyngier wrote: > On 12/01/17 09:55, Andre Przywara wrote: > > Hi, > > > > On 12/01/17 09:32, Marc Zyngier wrote: > >> Hi Dmitry, > >> > >> On 11/01/17 19:01, Dmitry Vyukov wrote: > >>> Hello, > >>> > >>> While running syzkaller fuzzer I've got the fol

[PATCH 0/3] Use per-cpu allocator for !irq requests and prepare for a bulk allocator

2017-01-12 Thread Mel Gorman
Changelog since v2 o Add ack's and benchmark data o Rebase to 4.10-rc3 Changelog since v1 o Remove a scheduler point from the allocation path o Finalise the bulk allocator and test it This series is motivated by a conversation led by Jesper Dangaard Brouer at the last LSF/MM proposing a generic p

[PATCH 1/3] mm, page_alloc: Split buffered_rmqueue

2017-01-12 Thread Mel Gorman
buffered_rmqueue removes a page from a given zone and uses the per-cpu list for order-0. This is fine but a hypothetical caller that wanted multiple order-0 pages has to disable/reenable interrupts multiple times. This patch structures buffere_rmqueue such that it's relatively easy to build a bulk

[PATCH 2/3] mm, page_alloc: Split alloc_pages_nodemask

2017-01-12 Thread Mel Gorman
alloc_pages_nodemask does a number of preperation steps that determine what zones can be used for the allocation depending on a variety of factors. This is fine but a hypothetical caller that wanted multiple order-0 pages has to do the preparation steps multiple times. This patch structures __alloc

Linux 4.9.3

2017-01-12 Thread Greg KH
I'm announcing the release of the 4.9.3 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

[PATCH] ASoC: rt5660: use msleep() for long delay

2017-01-12 Thread Nicholas Mc Guire
roblem was found by cocinelle script. Patch was compile tested with: x86_64_defconfig + CONFIG_COMPILE_TEST=y SND_SOC=m + SND_SOC_ALL_CODECS=m (implies SND_SOC_RT5660=m) (2 sparse warnings - fix in a seperate patch) Patch is aginast 4.10-rc3 (localversion-next is next-20170112) sound/soc/codecs/rt

Re: [PATCH 3/4] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-12 Thread Mel Gorman
On Wed, Jan 11, 2017 at 02:27:12PM +0100, Jesper Dangaard Brouer wrote: > On Wed, 11 Jan 2017 13:44:20 +0100 > Jesper Dangaard Brouer wrote: > > > On Mon, 9 Jan 2017 16:35:17 + Mel Gorman > > wrote: > > > > > The following is results from a page allocator micro-benchmark. Only > > > orde

[PATCH] ASoC: rt5660: remove double const

2017-01-12 Thread Nicholas Mc Guire
at results in the "duplicate const" from sparse. The fix is simply to drop the first const. Patch was compile tested with: x86_64_defconfig + CONFIG_COMPILE_TEST=y SND_SOC=m + SND_SOC_ALL_CODECS=m (implies SND_SOC_RT5660=m) Patch is aginast 4.10-rc3 (localversion-next is next-20170112

Re: [v5,1/5] soc: qcom: smem_state: Fix include for ERR_PTR()

2017-01-12 Thread Kalle Valo
Bjorn Andersson wrote: > The correct include file for getting errno constants and ERR_PTR() is > linux/err.h, rather than linux/errno.h, so fix the include. > > Fixes: e8b123e60084 ("soc: qcom: smem_state: Add stubs for disabled > smem_state") > Acked-by: Andy Gross > Signed-off-by: Bjorn Ander

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Andre Przywara
Hi, On 12/01/17 10:42, Christoffer Dall wrote: > On Thu, Jan 12, 2017 at 10:30:39AM +, Marc Zyngier wrote: >> On 12/01/17 09:55, Andre Przywara wrote: >>> Hi, >>> >>> On 12/01/17 09:32, Marc Zyngier wrote: Hi Dmitry, On 11/01/17 19:01, Dmitry Vyukov wrote: > Hello, > >>>

Re: [GIT PULL] Immutable branch between MFD and MTD due for the v4.11 merge window

2017-01-12 Thread Cyrille Pitchen
Le 05/01/2017 à 17:07, Mika Westerberg a écrit : > On Tue, Jan 03, 2017 at 05:37:50PM +, Lee Jones wrote: >> MTD Maintainers, >> >> Enjoy! >> >> The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: >> >> Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) >> >> are available in

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Marc Zyngier
On 12/01/17 10:42, Christoffer Dall wrote: > On Thu, Jan 12, 2017 at 10:30:39AM +, Marc Zyngier wrote: >> On 12/01/17 09:55, Andre Przywara wrote: >>> Hi, >>> >>> On 12/01/17 09:32, Marc Zyngier wrote: Hi Dmitry, On 11/01/17 19:01, Dmitry Vyukov wrote: > Hello, > > Wh

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

2017-01-12 Thread Philipp Zabel
Am Mittwoch, den 11.01.2017, 19:22 -0600 schrieb Suman Anna: > 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 > --- > v2: Address

Re: [PATCH v2 2/2] reset: make optional functions really optional

2017-01-12 Thread Philipp Zabel
Hi Ramiro, Am Montag, den 09.01.2017, 17:19 + schrieb Ramiro Oliveira: > Hi Philipp > > On 1/9/2017 10:45 AM, Philipp Zabel wrote: > > Hi Ramiro, > > > > Am Dienstag, den 27.12.2016, 12:37 + schrieb Ramiro Oliveira: > >> The optional functions weren't really optional so this patch makes

Re: net: wireless: ath: wil6210: constify cfg80211_ops structures

2017-01-12 Thread Kalle Valo
Bhumika Goyal wrote: > cfg80211_ops structures are only passed as an argument to the function > wiphy_new. This argument is of type const, so cfg80211_ops strutures > having this property can be declared as const. > Done using Coccinelle > > @r1 disable optional_qualifier @ > identifier i; > posi

Re: [PATCH] reset: constify reset_control_ops structures

2017-01-12 Thread Philipp Zabel
Am Montag, den 09.01.2017, 22:23 +0530 schrieb Bhumika Goyal: > Declare reset_control_ops structures as const as they are only stored > in the ops field of a reset_controller_dev structure. This field is of > type const struct reset_control_ops *, so reset_control_ops structures > having this prope

[Regression] fstrim hangs on Hyper-V: caused by "block: improve handling of the magic discard payload"

2017-01-12 Thread Dexuan Cui
Hi, Recently fstrim and mkfs always hang in Linux VM running on Hyper-V 2012 R2 or 2016. The VM uses the latest mainline kernel (v4.10-rc3). git-bisect shows the patch "block: improve handling of the magic discard payload (f9d03f96)" causes the issue. If I revert the patch, the issue will go aw

Re: [1/2] ath9k: ar9002_mac: kill off ACCESS_ONCE()

2017-01-12 Thread Kalle Valo
Mark Rutland wrote: > For several reasons, it is desirable to use {READ,WRITE}_ONCE() in > preference to ACCESS_ONCE(), and new code is expected to use one of the > former. So far, there's been no reason to change most existing uses of > ACCESS_ONCE(), as these aren't currently harmful. > > Howev

Re: ath9k: fix spelling mistake: "meaurement" -> "measurement"

2017-01-12 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in ath_err message > > Signed-off-by: Colin Ian King Patch applied to ath-next branch of ath.git, thanks. 714ee339ff90 ath9k: fix spelling mistake: "meaurement" -> "measurement" -- https://patchwork.kernel.org

Re: [f2fs-dev] [PATCH 01/10] f2fs: reassign new segment for mode=lfs

2017-01-12 Thread Chao Yu
On 2017/1/5 6:48, Jaegeuk Kim wrote: > On 01/04, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/12/31 2:51, Jaegeuk Kim wrote: >>> Otherwise we can remain wrong curseg->next_blkoff, resulting in fsck >>> failure. >> >> Could you explain more about this case? > > I remember that I hit an fsck failure

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