[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

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

[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

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Nicolai Stange
Hi Dave, On Thu, Jan 12 2017, Dave Young wrote: > efi_mem_reserve cares only about boot services regions and maybe loader areas. > So add a new argument to efi_memmap_insert for this purpose. Please see below. > --- linux-x86.orig/drivers/firmware/efi/memmap.c > +++

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

2017-01-12 Thread Måns Rullgård
Marc Gonzalez writes: >> So far we have a claim that a cast to a void * may somehow be different >> to a cast to a different pointer, if used as function argument, and that >> the behavior with such a cast may be undefined. In other words, you claim >> that a

[PATCH] scripts/spelling.txt: add some typo-words

2017-01-12 Thread Jinbum Park
I wrote a simple script to find new typo not in spelling.txt. (https://github.com/jinb-park/find-linux-kernel-typo) and get following result: [ rank ] 63 paramaters 18 alignement 9 strucuture The number means how many files include the typo. This

Re: [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2017-01-12 Thread Roger Quadros
Mathias, On 11/01/17 17:08, Alan Stern wrote: > On Wed, 11 Jan 2017, Mathias Nyman wrote: > >> On 17.11.2016 13:43, Sriram Dash wrote: >>> From: Arnd Bergmann >>> >>> For xhci-hcd platform device, all the DMA parameters are not >>> configured properly, notably dma ops for dwc3

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Johannes Berg
On Wed, 2017-01-11 at 21:39 +0100, Arnd Bergmann wrote: > On Wednesday, January 11, 2017 4:06:17 PM CET Johannes Berg wrote: > > > > Applied. Also fixed the typo in the subject :) > > Thanks! Unfortunately I now got another warning for the same > function, and though I would have expected the

Re: [PATCH v2 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set

2017-01-12 Thread Baolin Wang
Hi, On 12 January 2017 at 16:18, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 12 January 2017 12:13 PM, Baolin Wang wrote: >> On 3 January 2017 at 13:54, Baolin Wang wrote: >>> Hi Kison and Heiko, >>> >>> On 21 December 2016 at 16:12, Baolin Wang

RE: [PATCH] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-12 Thread Sricharan
Hi Stan, >-Original Message- >From: Stanimir Varbanov [mailto:stanimir.varba...@linaro.org] >Sent: Wednesday, January 11, 2017 2:25 PM >To: Sricharan ; 'Stanimir Varbanov' >; 'Rajendra Nayak' >;

[PATCH 5/7] staging:r8188eu: remove unused struct wifidirect_info and all corresponding code

2017-01-12 Thread Ivan Safonov
wifidirect_info structure is unused. Big amount of another definitions used only for wifidirect_info definition. Remove all. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_mlme.h | 177 ---

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Johannes Berg
On Wed, 2017-01-11 at 21:39 +0100, Arnd Bergmann wrote: > On Wednesday, January 11, 2017 4:06:17 PM CET Johannes Berg wrote: > > > > Applied. Also fixed the typo in the subject :) > > Thanks! Unfortunately I now got another warning for the same > function, and though I would have expected the

[PATCH 3/7] staging:r8188eu: remove unused EOR macro

2017-01-12 Thread Ivan Safonov
EOR macro is not unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index

Re: [PATCH RESEND] splice: introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE

2017-01-12 Thread Al Viro
On Wed, Jan 11, 2017 at 07:20:13AM -0500, Jeff Layton wrote: > On Wed, 2017-01-11 at 10:51 +0100, Johannes Thumshirn wrote: > > Introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE. These modes check > > whether it is legal to read or write a file using splice. Both get > > automatically set on

Re: Problem on SCTP

2017-01-12 Thread Sun Paul
HI Let me clear the understanding. below is the flow. 1. Client sends to Linux Router: 192.168.206.83 -> 192.168.206.56, 2. Linux router sends to SERVER where the source IP is unchanged: 192.168.206.83 -> 192.168.206.66 My question here is why SERVER cannot response this INIT chunk? On Wed,

Re: [PATCH 18/18] mtd-cfi_cmdset_0020: Add some spaces for better code readability

2017-01-12 Thread Dan Carpenter
On Wed, Jan 11, 2017 at 09:55:20PM +0100, SF Markus Elfring wrote: > - timeo = jiffies + (HZ*2); > + timeo = jiffies + HZ * 2; You've done this a couple times already, but these parenthesis are there to make the code more readable don't delete them. regards, dan carpenter

[PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Dave Young
There are memory ranges like below when I testing early efi_mem_reserve: efi: mem62: [Reserved | | | | | | | | | | | | ] range=[0x-0x] (0MB) efi: mem63: [Reserved | | | | | | | | | | | | ]

[PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Dave Young
Before invoking the arch specific handler, efi_mem_reserve() reserves the given memory region through memblock. efi_bgrt_init will call efi_mem_reserve after mm_init(), at that time memblock is dead and it should not be used any more. efi bgrt code depend on acpi intialization to get the bgrt

[PATCH] PCI: dwc: Add COMPILE_TEST to all designware based drivers

2017-01-12 Thread Kishon Vijay Abraham I
Add COMPILE_TEST to all designware based drivers so that it is possible to perform compile test even when a particular architecture specific config symbol is not set. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 16 1 file changed, 8

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; > > +

[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

[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 >

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

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

[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

[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

[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

[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

[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

[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

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

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

[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

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: >

[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 ---

Re: [RFC 1/6] perf/core: create active and inactive event groups

2017-01-12 Thread Mark Rutland
On Tue, Jan 10, 2017 at 12:45:31PM -0800, David Carrillo-Cisneros wrote: > >> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > >> index 4741ecdb9817..3fa18f05c9b0 100644 > >> --- a/include/linux/perf_event.h > >> +++ b/include/linux/perf_event.h > >> @@ -573,6 +573,7 @@

[PATCH] lib: move sort self-test into a separate file

2017-01-12 Thread Arnd Bergmann
The lib/sort.c file gets included in the EFI stub for use outside of the kernel address space, which now fails due to the addition of a module_init() function: R_ARM_ABS32 test_sort_init drivers/firmware/efi/libstub/lib-sort.stub.o: absolute symbol references not allowed in the

[PATCH] drm: tegra: shut up harmless warning on NOMMU

2017-01-12 Thread Arnd Bergmann
The tegra DRM driver is almost ok without an MMU, but there is one small warning that I get: drivers/gpu/drm/tegra/gem.c: In function 'tegra_drm_mmap': drivers/gpu/drm/tegra/gem.c:508:12: unused variable 'prot' This marks the variable as __maybe_unused instead. Signed-off-by: Arnd Bergmann

Re: [PATCH] media: Add video bus switch

2017-01-12 Thread Pavel Machek
On Sat 2016-12-24 16:20:31, Pavel Machek wrote: > > N900 contains front and back camera, with a switch between the > two. This adds support for the switch component, and it is now > possible to select between front and back cameras during runtime. > > Signed-off-by: Sebastian Reichel

[PATCH] regmap: Fixup the kernel-doc comments on functions/structures

2017-01-12 Thread Charles Keepax
Most of the kernel-doc comments in regmap don't actually generate correctly. This patch fixes up a few common issues, corrects some typos and adds some missing argument descriptions. The most common issues being using a : after the function name which causes the short description to not render

Re: [PATCH 06/10 v2] f2fs: show the max number of atomic operations

2017-01-12 Thread Chao Yu
On 2017/1/5 7:50, Jaegeuk Kim wrote: > Chang log from v1: > - move stat_dec_atomic_write(inode); into drop_inmem_pages() > >>From 5464f744fe28187b3d71ba6c3cf983659a569e9a Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim > Date: Wed, 28 Dec 2016 13:55:09 -0800 > Subject: [PATCH]

Re: [Ocfs2-devel] [PATCH 2/2] ocfs2: fix deadlocks when taking inode lock at vfs entry points

2017-01-12 Thread Joseph Qi
On 17/1/12 19:24, Eric Ren wrote: Hi Joseph, On 01/09/2017 10:13 AM, Eric Ren wrote: So you are trying to fix it by making phase3 finish without really doing Phase3 can go ahead because this node is already under protection of cluster lock. You said it was blocked... Oh, sorry, I meant

Re: [RFC 2/6] perf/core: add a rb-tree index to inactive_groups

2017-01-12 Thread Mark Rutland
On Tue, Jan 10, 2017 at 12:20:00PM -0800, David Carrillo-Cisneros wrote: > On Tue, Jan 10, 2017 at 6:14 AM, Mark Rutland wrote: > > On Tue, Jan 10, 2017 at 02:24:58AM -0800, David Carrillo-Cisneros wrote: > > For example, on a big.LITTLE system, big and little CPU PMUs share

Re: [PATCH v2] ceph/iov_iter: fix bad iov_iter handling in ceph splice codepaths

2017-01-12 Thread Ilya Dryomov
On Thu, Jan 12, 2017 at 12:37 PM, Al Viro wrote: > On Thu, Jan 12, 2017 at 12:13:31PM +0100, Ilya Dryomov wrote: > >> It would be a significant and wide-reaching change, but I've been >> meaning to look into switching to iov_iter for a couple of releases >> now. There is

[tip:perf/core] perf machine: Add a kallsyms loading constructor

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7d132caaf9392853ad637c8e6e5cbeb99aa5 Gitweb: http://git.kernel.org/tip/7d132caaf9392853ad637c8e6e5cbeb99aa5 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 5 Jan 2017 15:31:48 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/core] tools lib subcmd: Add missing linux/kernel.h include to subcmd.h

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: d5f805c09620dadc1a7806fbd46189d183f6c395 Gitweb: http://git.kernel.org/tip/d5f805c09620dadc1a7806fbd46189d183f6c395 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 5 Jan 2017 12:44:05 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[v2 2/2] vfio iommu type1: fix the testing of capability for remote task

2017-01-12 Thread Jike Song
Before the mdev enhancement type1 iommu used capable() to test the capability of current task; in the course of mdev development a new requirement, testing for another task other than current, was raised. ns_capable() was used for this purpose, however it still tests current, the only difference

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

2017-01-12 Thread Lu Baolu
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=148154757829677=2 Suggested-by: Mathias Nyman

[v2 1/2] capability: export has_capability

2017-01-12 Thread Jike Song
has_capability() is sometimes needed by modules to test capability for specified task other than current, so export it. Cc: Alex Williamson Cc: Kirti Wankhede Acked-by: Serge Hallyn Signed-off-by: Jike Song

Re: [Intel-gfx] GPU hang with kernel 4.10rc3

2017-01-12 Thread Chris Wilson
On Thu, Jan 12, 2017 at 07:03:25AM +0100, Juergen Gross wrote: > On 11/01/17 18:08, Chris Wilson wrote: > > On Wed, Jan 11, 2017 at 05:33:34PM +0100, Juergen Gross wrote: > >> With kernel 4.10rc3 running as Xen dm0 I get at each boot: > >> > >> [ 49.213697] [drm] GPU HANG: ecode 7:0:0x3d1d3d3d,

Re: [PATCH 2/3] perf/x86/amd/uncore: Dynamically allocate uncore counters

2017-01-12 Thread Peter Zijlstra
On Wed, Jan 11, 2017 at 10:02:17AM -0600, Janakarajan Natarajan wrote: > This patch updates the AMD uncore driver to support AMD Family17h > processors. In Family17h, there are two extra last level cache counters. > The counters are, therefore, allocated dynamically based on the family. > > The

[PATCH 6/7] staging:r8188eu: remove unnecessary trace output in rtw_recv_indicatepkt()

2017-01-12 Thread Ivan Safonov
Trace output for each received packet in rtw_recv_indicatepkt() is redudant. Remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 15 --- 1 file changed, 15 deletions(-) diff --git

[PATCH 7/7] staging:r8188eu: remove unused rx_head member of struct recv_frame

2017-01-12 Thread Ivan Safonov
Value of rx_head member of struct recv_frame does not used. Remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 - drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 2 files changed, 2 deletions(-) diff --git

[PATCH 4/7] staging:r8188eu: remove unused get_rxmem()

2017-01-12 Thread Ivan Safonov
get_rxmem() is not unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index

[PATCH 1/7] staging:r8188eu: remove unused (GET|PUT)U32 macros

2017-01-12 Thread Ivan Safonov
(GET|PUT)U32 macros are unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_security.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h

Re: [PATCHv3 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-12 Thread Chris Packham
On 12/01/17 09:56, Sebastian Hesselbarth wrote: > On 01/11/2017 03:44 PM, Linus Walleij wrote: >> On Fri, Jan 6, 2017 at 5:15 AM, Chris Packham >> wrote: >> >>> From: Kalyan Kinthada >>> >>> This pinctrl driver supports the

Re: [PATCH 03/18] mtd-cfi_cmdset_0001: Add some spaces for better code readability

2017-01-12 Thread Dan Carpenter
On Wed, Jan 11, 2017 at 09:38:18PM +0100, SF Markus Elfring wrote: > - for (i=0; icfiq->NumEraseRegions; i++) > - for (j=0; jnumchips; j++) > - > kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); > + for (i

Re: [PATCH v2 00/11] add support for VBUS max current and min voltage limits AXP20X and AXP22X PMICs

2017-01-12 Thread Maxime Ripard
On Fri, Dec 09, 2016 at 12:04:08PM +0100, Quentin Schulz wrote: > The X-Powers AXP209 and AXP20X PMICs are able to set a limit for the > VBUS power supply for both max current and min voltage supplied. This > series of patch adds the possibility to set these limits from sysfs. > > Also, the

Re: [PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-12 Thread Greg KH
On Thu, Jan 12, 2017 at 12:32:26PM +0300, Dan Carpenter wrote: > On Thu, Jan 12, 2017 at 09:54:16AM +0200, Bogdan Purcareata wrote: > > Signed-off-by: Bogdan Purcareata > > All staging patches need a changelog, no matter how trivial. s/staging//g :)

[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

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

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

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

[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

[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.

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

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, > >

Re: Problem on SCTP

2017-01-12 Thread Michael Tuexen
> On 12 Jan 2017, at 10:51, David Laight wrote: > > From: Sun Paul [mailto:paul...@gmail.com] >> Sent: 12 January 2017 09:31 >> Let me clear the understanding. below is the flow. >> >> 1. Client sends to Linux Router: 192.168.206.83 -> 192.168.206.56, >> 2. Linux router

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-12 Thread M'boumba Cedric Madianga
Hi Uwe, 2017-01-11 16:42 GMT+01:00 Uwe Kleine-König : > Hello Cedric, > > On Wed, Jan 11, 2017 at 03:20:41PM +0100, M'boumba Cedric Madianga wrote: >> > >> >> + */ >> >> + reg = i2c_dev->base + STM32F4_I2C_CR1; >> >> +

Re: [PATCH 9/9] treewide: Inline ib_dma_map_*() functions

2017-01-12 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH 16/62] watchdog: digicolor_wdt: Convert to use device managed functions and other improvements

2017-01-12 Thread Baruch Siach
Hi Guenter, On Tue, Jan 10, 2017 at 03:34:33PM -0800, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically

Re: [GIT PULL 00/13] perf/core improvements and fixes

2017-01-12 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > * The following description will move to the end in the next pull requests * > > The first ones are container (docker)

Re: [PATCH 2/2] drm/nouveau: Handle fbcon suspend/resume in seperate worker

2017-01-12 Thread Hans de Goede
Hi, Good catch (both the previous patch as well as this one). I've one small comment inline: On 12-01-17 03:25, Lyude wrote: Resuming from RPM can happen while already holding dev->mode_config.mutex. This means we can't actually handle fbcon in any RPM resume workers, since restoring fbcon

[PATCH v5 1/4] drm/bridge: analogix_dp: set connector to drm_dp_aux

2017-01-12 Thread Tomeu Vizoso
Set the backpointer so that the DP helpers are able to access the connector that the drm_dp_aux is associated with. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 18 ++ 1 file changed, 10 insertions(+), 8

[PATCH v5 4/4] drm/rockchip: Implement CRC debugfs API

2017-01-12 Thread Tomeu Vizoso
Implement the .set_crc_source() callback and call the DP helpers accordingly to start and stop CRC capture. This is only done if this CRTC is currently using the eDP connector. v3: Remove superfluous check on rockchip_crtc_state->output_type Signed-off-by: Tomeu Vizoso

[PATCH v5 2/4] drm/dp: add helpers for capture of frame CRCs

2017-01-12 Thread Tomeu Vizoso
Adds helpers for starting and stopping capture of frame CRCs through the DPCD. When capture is on, a worker waits for vblanks and retrieves the frame CRC to put it in the queue on the CRTC that is using the eDP connector, so it's passed to userspace. v2: Reuse drm_crtc_wait_one_vblank Update

[PATCH v5 3/4] drm/bridge: analogix_dp: add helpers for capture of frame CRCs

2017-01-12 Thread Tomeu Vizoso
Add two simple functions that just take the drm_dp_aux from our struct and calls the corresponding DP helpers with it. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 16 include/drm/bridge/analogix_dp.h

[PATCH v5 0/4] drm/dp: Implement CRC debugfs API

2017-01-12 Thread Tomeu Vizoso
Hi, this series builds up on the API for exposing captured CRCs through debugfs. It adds new DP helpers for starting and stopping CRC capture and gets the Rockchip driver to use it. Also had to add a connector backpointer to the drm_dp_aux struct so we could wait for the right vblank and store

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-12 Thread Michal Hocko
On Thu 12-01-17 17:48:13, Minchan Kim wrote: > On Thu, Jan 12, 2017 at 09:15:54AM +0100, Michal Hocko wrote: > > On Thu 12-01-17 14:12:47, Minchan Kim wrote: > > > Hello, > > > > > > On Wed, Jan 11, 2017 at 04:52:39PM +0100, Michal Hocko wrote: > > > > On Wed 11-01-17 08:52:50, Minchan Kim wrote:

[PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-01-12 Thread Rui Teng
The offset of hugepage block will not be 16G, if the expected page is more than one. Calculate the totol size instead of the hardcode value. Signed-off-by: Rui Teng --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] fix race caused by hyperthreads when online an offline cpu

2017-01-12 Thread Zhou Chengming
After online an offline cpu, cpu_hw_events.excl_thread_id will always be set to 1 in intel_pmu_cpu_starting() even when its sibling's excl_thread_id is also 1. Then the two siblings will use the same state in their shared hw_hw_events.excl_cntrs, it will cause race problem. The race senario is

Re: [PATCH v6 11/25] usb: chipidea: vbus event may exist before starting gadget

2017-01-12 Thread Peter Chen
On Wed, Jan 11, 2017 at 04:32:34PM -0800, Stephen Boyd wrote: > Quoting Peter Chen (2017-01-03 00:00:31) > > On Wed, Dec 28, 2016 at 02:56:57PM -0800, Stephen Boyd wrote: > > > From: Peter Chen > > > > > > At some situations, the vbus may already be there before starting > >

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

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

[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

[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

[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

[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

[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

[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

[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 +-

[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

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: [PATCH 03/10 v2] f2fs: add submit_bio tracepoint

2017-01-12 Thread Chao Yu
On 2017/1/5 7:35, Jaegeuk Kim wrote: > Change log from v1: > - remove F2FS_OP > - share single tracing structure, f2fs__bio > - split f2fs_prepare_read/write_io and f2fs_submit_read/write_io > >>From f5c6ab0f19fb627ebf28ab6a18c0a32b4c8f914f Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim

Re: getting oom/stalls for ltp test cpuset01 with latest/4.9 kernel

2017-01-12 Thread Vlastimil Babka
On 01/11/2017 05:46 PM, Michal Hocko wrote: On Wed 11-01-17 21:52:29, Ganapatrao Kulkarni wrote: [ 2398.169391] Node 1 Normal: 951*4kB (UME) 1308*8kB (UME) 1034*16kB (UME) 742*32kB (UME) 581*64kB (UME) 450*128kB (UME) 362*256kB (UME) 275*512kB (ME) 189*1024kB (UM) 117*2048kB (ME) 2742*4096kB

Re: [PATCH v4 2/3] drivers: crypto: Add the Virtual Function driver for CPT

2017-01-12 Thread George Cherian
Hi Stephan, On 01/11/2017 06:09 PM, Stephan Müller wrote: Am Mittwoch, 11. Januar 2017, 16:58:17 CET schrieb George Cherian: Hi George, I will add a seperate function for xts setkey and make changes as following. ... + +struct crypto_alg algs[] = { { + .cra_flags =

Re: [f2fs-dev] [PATCH 04/10] f2fs: support IO alignment for DATA and NODE writes

2017-01-12 Thread Chao Yu
On 2017/1/5 7:44, Jaegeuk Kim wrote: > On 01/04, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/12/31 2:51, Jaegeuk Kim wrote: >>> This patch implements IO alignment by filling dummy blocks in DATA and NODE >>> write bios. If we can guarantee, for example, 32KB or 64KB for such the IOs, >>> we can

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

2017-01-12 Thread Andy Shevchenko
On Wed, 2017-01-11 at 16:59 -0800, Joe Perches wrote: > On Wed, 2017-01-11 at 15:57 -0800, Andrew Morton wrote: > > On Wed, 11 Jan 2017 18:28:07 +0200 Andy Shevchenko > o...@linux.intel.com> wrote: > > > > > While resource_size_t is repeating phys_addr_t, allocate %par > > > specifier for > > >

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