[PATCH v6 04/17] powerpc/vas: Define helpers to access MMIO regions

2017-08-08 Thread Sukadev Bhattiprolu
Define some helper functions to access the MMIO regions. We use these in follow-on patches to read/write VAS hardware registers. They are also used to later issue 'paste' instructions to submit requests to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu --- Changelog [v6]: - M

Re: [PATCH v06 19/36] uapi linux/omapfb.h: use __kernel_size_t instead of size_t

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:10PM +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > > Signed-off-by: Mikko Rapeli > Cc: linux-o...@vger.kernel.org > Cc: Tomi Valkeinen > Cc: Aaro Koskinen > --- > include/uapi/linux/omapfb.h | 2 +- > 1 fi

Re: [PATCH v06 30/36] uapi rdma/rdma_user_rxe.h: include in.h and in6.h

2017-08-08 Thread Jason Gunthorpe
On Sun, Aug 06, 2017 at 06:44:21PM +0200, Mikko Rapeli wrote: > Fixes these userspace compilation errors when rdma_user_rxe.h is compiled > alone: > > rdma/rdma_user_rxe.h:59:20: error: field ???_sockaddr??? has incomplete type >struct sockaddr _sockaddr; > ^ > rdm

Re: [v4 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-08 Thread David Rientjes
On Wed, 26 Jul 2017, Roman Gushchin wrote: > Introduce a per-memory-cgroup oom_priority setting: an integer number > within the [-1, 1] range, which defines the order in which > the OOM killer selects victim memory cgroups. > > OOM killer prefers memory cgroups with larger priority if the

Re: [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:12PM +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > size_t bufsz; > > Signed-off-by: Mikko Rapeli > Cc: ke...@lists.infradead.org > Cc: Eric Biederman > --- > include/uapi/linux/kexec.h | 4 ++-- > 1 file

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-08 Thread Jerome Glisse
On Tue, Aug 08, 2017 at 03:59:36PM +0300, Igor Stoppa wrote: > On 07/08/17 22:12, Jerome Glisse wrote: > > On Mon, Aug 07, 2017 at 05:13:00PM +0300, Igor Stoppa wrote: > > [...] > > >> I have an updated version of the old proposal: > >> > >> * put a magic number in the private field, during initi

Re: [PATCH v06 22/36] uapi linux/reiserfs_xattr.h: use __kernel_size_t instead of size_t

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:13PM +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > size_t length; > > Signed-off-by: Mikko Rapeli > Cc: reiserfs-de...@vger.kernel.org > --- > include/uapi/linux/reiserfs_xattr.h | 2 +- > 1 file changed,

Re: [PATCH 4/7] signal/mips: Document a conflict with SI_USER with SIGFPE

2017-08-08 Thread Maciej W. Rozycki
On Tue, 8 Aug 2017, Eric W. Biederman wrote: > > This is an "impossible" state to reach unless your hardware is on fire. > > One or more of the FCSR Cause bits will have been set (in `fcr31') or the > > FPE exception would not have happened. > > > > Of course there could be a simulator bug, o

Re: [PATCH net-next v2] wan: dscc4: add checks for dma mapping errors

2017-08-08 Thread Francois Romieu
Alexey Khoroshilov : [...] > diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c > index 799830f..6a9ffac 100644 > --- a/drivers/net/wan/dscc4.c > +++ b/drivers/net/wan/dscc4.c > @@ -518,23 +518,31 @@ static void dscc4_release_ring(struct dscc4_dev_priv > *dpriv) > static inline int t

Re: [PATCH v9 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-08 Thread Bjorn Helgaas
On Sat, Aug 05, 2017 at 03:15:10PM +0800, Ding Tianhong wrote: > From: Casey Leedom > > The patch adds a new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING to indicate that > Relaxed Ordering (RO) attribute should not be used for Transaction Layer > Packets (TLP) targetted towards these affected root com

Re: [v4 4/4] mm, oom, docs: describe the cgroup-aware OOM killer

2017-08-08 Thread David Rientjes
On Wed, 26 Jul 2017, Roman Gushchin wrote: > +Cgroup-aware OOM Killer > +~~~ > + > +Cgroup v2 memory controller implements a cgroup-aware OOM killer. > +It means that it treats memory cgroups as first class OOM entities. > + > +Under OOM conditions the memory controller tries t

Re: [PATCH v06 35/36] uapi linux/tls.h: don't include in user space

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:26PM +0200, Mikko Rapeli wrote: > It is not needed and not part of uapi headers, but causes > user space compilation error: > > fatal error: net/tcp.h: No such file or directory > #include > ^ > > Signed-off-by: Mikko Rapeli > Cc: Dave Watson

linux-next: Signed-off-by missing for commits in the scsi tree

2017-08-08 Thread Stephen Rothwell
Hi James, The commit series 94b76dcac422 ("scsi: qla2xxx: Fix system crash while triggering FW dump") to b96b8da34c40 ("scsi: aacraid: Fix out of bounds in aac_get_name_resp") is missing Signed-off-bys from its committer. It looks like you have rebased a series from Martin ... -- Cheers,

Re: [PATCH] netfilter: nf_nat_h323: fix logical-not-parentheses warning

2017-08-08 Thread Nick Desaulniers
bumping for review On Mon, Jul 31, 2017 at 11:39 AM, Nick Desaulniers wrote: > Clang produces the following warning: > > net/ipv4/netfilter/nf_nat_h323.c:553:6: error: > logical not is only applied to the left hand side of this comparison > [-Werror,-Wlogical-not-parentheses] > if (!set_h225_ad

[PATCH] kmod: test_kmod: Correctly lock reg_dev_mutex

2017-08-08 Thread Daniel Mentz
It appears that, in the preamble of register_test_dev_kmod(), mutex_lock() has been confused with mutex_unlock(). Previously, register_test_dev_kmod() never called mutex_lock() but instead, it called mutex_unlock() twice. Signed-off-by: Daniel Mentz Cc: Luis R. Rodriguez Cc: Greg Kroah-Hartman

Re: [PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-08 Thread Tetsuo Handa
Andrea Arcangeli wrote: > Overall OOM killing to me was reliable also before the oom reaper was > introduced. I don't think so. We spent a lot of time in order to remove possible locations which can lead to failing to invoke the OOM killer when out_of_memory() is called. > > I just did a search

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-08 Thread Joel Fernandes
Hi Peter, On Mon, Aug 7, 2017 at 6:40 AM, Peter Zijlstra wrote: > On Fri, Aug 04, 2017 at 08:40:23AM -0700, Joel Fernandes wrote: >> The PELT signal (sa->load_avg and sa->util_avg) are not updated if the >> amount accumulated during a single update doesn't cross a period >> boundary. > >> This is

Re: [PATCH V8 1/2] PCI: handle CRS returned by device after FLR

2017-08-08 Thread Sinan Kaya
On 8/8/2017 5:19 PM, Bjorn Helgaas wrote: > On Sun, Aug 06, 2017 at 10:09:51PM -0400, Sinan Kaya wrote: > > We should include some high-level description of the problem we're > trying to solve here. > > I *think* the problem is that we do something like this: > > - perform an FLR > - sleep u

Re: linux-next: Signed-off-by missing for commits in the scsi tree

2017-08-08 Thread James Bottomley
On Wed, 2017-08-09 at 09:27 +1000, Stephen Rothwell wrote: > Hi James, > > The commit series > >   94b76dcac422 ("scsi: qla2xxx: Fix system crash while triggering FW > dump") > to >   b96b8da34c40 ("scsi: aacraid: Fix out of bounds in > aac_get_name_resp") > > is missing Signed-off-bys from its

[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".

2017-08-08 Thread Joe Kniss
Because all drivers currently use gem objects for framebuffer planes, the virtual create_handle() is not required. This change adds a struct drm_gem_object *gems[4] field to drm_framebuffer and removes create_handle() function pointer from drm_framebuffer_funcs. The corresponding *_create_handle(

Re: linux-next: Signed-off-by missing for commits in the scsi tree

2017-08-08 Thread Stephen Rothwell
Hi James, On Tue, 08 Aug 2017 16:41:36 -0700 James Bottomley wrote: > >  The rule, I believe, is that only the person who transforms the email > to a git tree should be the last signoff in the commit log, even if > they're a tree pulling into another one and thereafter the signoffs go > in the m

Re: [PATCH] powerpc: xive: ensure active irqd when setting affinity

2017-08-08 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > > From fd0abf5c61b6041fdb75296e8580b86dc91d08d6 Mon Sep 17 00:00:00 2001 > > From: Benjamin Herrenschmidt > > Date: Tue, 1 Aug 2017 20:54:41 -0500 > > Subject: [PATCH] powerpc: xive: ensure active irqd when setting a

[PATCH RESEND] Input: xpad - fix PowerA init quirk for some gamepad models

2017-08-08 Thread Cameron Gutman
The PowerA gamepad initialization quirk worked with the PowerA wired gamepad I had around (0x24c6:0x543a), but a user reported [0] that it didn't work for him, even though our gamepads shared the same vendor and product IDs. When I initially implemented the PowerA quirk, I wanted to avoid actually

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-08 Thread Luis R. Rodriguez
On Wed, Aug 02, 2017 at 02:12:00AM +0200, Luis R. Rodriguez wrote: > On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: > > diff --git a/fs/exec.c b/fs/exec.c > > index 62175cbcc801..004bb50a01fe 100644 > > --- a/fs/exec.c > > +++ b/fs/exec.c > > @@ -1644,6 +1644,9 @@ int search_binary_

Re: [PATCH v2] perf/core: Avoid context switch overheads

2017-08-08 Thread 林守磊
2017-08-08 18:37 GMT+08:00 Peter Zijlstra : > On Tue, Aug 08, 2017 at 06:00:45PM +0800, 石祤 wrote: > >> diff --git a/kernel/events/core.c b/kernel/events/core.c >> index 426c2ff..3d86695 100644 >> --- a/kernel/events/core.c >> +++ b/kernel/events/core.c >> @@ -3180,6 +3180,13 @@ static void perf_eve

[PATCH v3] perf/core: Avoid context switch overheads

2017-08-08 Thread 石祤
From: "leilei.lin" A performance issue caused by less strickly check in task sched when these tasks were once attached by per-task perf_event. A task will alloc task->perf_event_ctxp[ctxn] when it was called by perf_event_open, and task->perf_event_ctxp[ctxn] would not ever be freed to NULL. __

Re: [PATCH 4/4] scripts/move_maintainer_sections.bash

2017-08-08 Thread Joe Perches
On Tue, 2017-08-08 at 11:33 -0700, Linus Torvalds wrote: > On Mon, Aug 7, 2017 at 10:04 AM, Joe Perches wrote: > > On Sat, 2017-08-05 at 18:45 -0700, Joe Perches wrote: > > > Move MAINTAINERS into a separate directory and reorder it. > > > Separate various blocks of MAINTAINER sections into separa

[PATCH v3] perf/core: Avoid context switch overheads

2017-08-08 Thread linxiulei
From: "leilei.lin" A performance issue caused by less strickly check in task sched when these tasks were once attached by per-task perf_event. A task will alloc task->perf_event_ctxp[ctxn] when it was called by perf_event_open, and task->perf_event_ctxp[ctxn] would not ever be freed to NULL. __

Re: [PATCH 1/3] autofs - fix AT_NO_AUTOMOUNT not being honored

2017-08-08 Thread Ian Kent
On 08/08/17 21:11, Colin Walters wrote: > On Tue, Aug 8, 2017, at 12:26 AM, Ian Kent wrote: > >> --- a/include/linux/fs.h >> +++ b/include/linux/fs.h >> @@ -3022,8 +3022,7 @@ static inline int vfs_lstat(const char __user *name, >> struct kstat *stat) >> static inline int vfs_fstatat(int dfd, con

Re: [PATCH 0/6] In-kernel QMI handling

2017-08-08 Thread Dan Williams
On Tue, 2017-08-08 at 15:42 -0700, Bjorn Andersson wrote: > On Tue 08 Aug 04:02 PDT 2017, Bj?rn Mork wrote: > > > Bjorn Andersson writes: > > > > > This series starts by moving the common definitions of the QMUX > > > protocol to the > > > uapi header, as they are shared with clients - both in k

Re: Possible null pointer dereference in rcar-dmac.ko

2017-08-08 Thread Kuninori Morimoto
Hi Anton # add Laurent > While searching for races in the Linux kernel I've come across > "drivers/dma/sh/rcar-dmac.ko" module. Here is a question that I came > up with while analyzing results. Lines are given using the info from > Linux v4.12. > > Consider the following case: > > Thread 1:

Re: [PATCH v5 net-next 00/12] bpf: rewrite value tracking in verifier

2017-08-08 Thread David Miller
From: Daniel Borkmann Date: Tue, 08 Aug 2017 02:46:16 +0200 > On 08/07/2017 04:21 PM, Edward Cree wrote: >> This series simplifies alignment tracking, generalises bounds tracking >> and >> fixes some bounds-tracking bugs in the BPF verifier. Pointer >> arithmetic on >> packet pointers, sta

[PATCH V9 1/2] PCI: handle CRS returned by device after FLR

2017-08-08 Thread Sinan Kaya
Sporadic reset issues have been observed with Intel 750 NVMe drive by writing to the reset file in sysfs in a loop. The sequence of events observed is as follows: - perform a Function Level Reset (FLR) - sleep up to 1000ms total - read ~0 from PCI_COMMAND - warn that the device didn't return from

[PATCH V9 2/2] PCI: display not responding message while device is unreachable

2017-08-08 Thread Sinan Kaya
Adding a print statement into pci_bus_read_dev_vendor_id() so that user observes the progress of device polling instead of silently waiting for timeout to be reached. Signed-off-by: Sinan Kaya --- drivers/pci/probe.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/driv

Re: [PATCH] KVM: X86: expand ->arch.apic_arb_prio to u64

2017-08-08 Thread Longpeng (Mike)
On 2017/8/8 21:57, Paolo Bonzini wrote: > On 08/08/2017 15:50, Longpeng (Mike) wrote: >> >> >> On 2017/8/8 21:08, Paolo Bonzini wrote: >> >>> On 08/08/2017 13:37, Longpeng(Mike) wrote: Currently 'apic_arb_prio' is int32_t, it's too short for long time running. In our environment, it ov

Re: [PATCH] acpi: apei: fix GHES estatus iteration

2017-08-08 Thread Rafael J. Wysocki
On Tuesday, August 8, 2017 6:32:20 PM CEST Will Deacon wrote: > On Thu, Aug 03, 2017 at 03:32:25PM -0600, Tyler Baicar wrote: > > Currently iterating through the GHES estatus blocks does not > > take into account the new generic data v3 structure size. This > > can result in garbage non-standard tr

Re: [regression] wake on lan no longer works in 4.13-rc3. was Re: Linux 4.13: Reported regressions as of Sunday, 2017-08-06

2017-08-08 Thread Rafael J. Wysocki
On Tuesday, August 8, 2017 11:00:53 AM CEST Pavel Machek wrote: > Hi! > > Perhaps you should get regressi...@kernel.org alias, or something like that? > > > As always: Are you aware of any other regressions? Then please let me > > know. For details see http://bit.ly/lnxregtrackid And please tell

Re: [PATCH] net: dsa: mediatek: add adjust link support for user ports

2017-08-08 Thread David Miller
From: John Crispin Date: Mon, 7 Aug 2017 16:20:49 +0200 > Manually adjust the port settings of user ports once PHY polling has > completed. This patch extends the adjust_link callback to configure the > per port PMCR register, applying the proper values polled from the PHY. > Without this patch

Re: [PATCH net-next v2 2/2] bpf: Extend check_uarg_tail_zero() checks

2017-08-08 Thread David Miller
From: Mickaël Salaün Date: Mon, 7 Aug 2017 20:45:20 +0200 > The function check_uarg_tail_zero() was created from bpf(2) for > BPF_OBJ_GET_INFO_BY_FD without taking the access_ok() nor the PAGE_SIZE > checks. Make this checks more generally available while unlikely to be > triggered, extend the m

Re: [PATCH net-next v2 1/2] bpf: Move check_uarg_tail_zero() upward

2017-08-08 Thread David Miller
From: Mickaël Salaün Date: Mon, 7 Aug 2017 20:45:19 +0200 > The function check_uarg_tail_zero() may be useful for other part of the > code in the syscall.c file. Move this function at the beginning of the > file. > > Signed-off-by: Mickaël Salaün > Acked-by: Daniel Borkmann Applied.

Re: [PATCH 1/1] f2fs: merge equivalent flags F2FS_GET_BLOCK_[READ|DIO]

2017-08-08 Thread Chao Yu
On 2017/8/8 19:41, Sun Qiuyang wrote: > > >> On 2017/8/8 18:27, sunqiuyang wrote: >>> From: Qiuyang Sun >>> >>> Currently, the two flags F2FS_GET_BLOCK_[READ|DIO] are totally equivalent >>> and can be used interchangably in all scenarios they are involved in. This >>> patch deletes F2FS_GET_BLOC

Re: [PATCH net-next] net: dsa: lan9303: Only allocate 3 ports

2017-08-08 Thread David Miller
From: Egil Hjelmeland Date: Tue, 8 Aug 2017 00:22:21 +0200 > Save 2628 bytes on arm eabi by allocate only the required 3 ports. > > Now that ds->num_ports is correct: In net/dsa/tag_lan9303.c > eliminate duplicate LAN9303_MAX_PORTS, use ds->num_ports. > (Matching the pattern of other net/dsa/ta

Re: [PATCH 2/2] sched/debug: intruduce task_state_to_char helper function

2017-08-08 Thread Xie XiuQi
se drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Xie-XiuQi/sched-debug-show-task-state-on-proc-sched_debug/20170808-135825 > config: i386-randconfig-x019-201732 (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0

Re: linux-next: build warnings after merge of the staging tree

2017-08-08 Thread Stephen Rothwell
Hi all, On Mon, 31 Jul 2017 15:02:27 +1000 Stephen Rothwell wrote: > > After merging the staging tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: > 'imx_vcm_power_up' defined but not used [-Wunused-f

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-08 Thread Ye Xiaolong
On 08/08, Minchan Kim wrote: >On Mon, Aug 07, 2017 at 10:51:00PM -0700, Nadav Amit wrote: >> Nadav Amit wrote: >> >> > Minchan Kim wrote: >> > >> >> Hi, >> >> >> >> On Tue, Aug 08, 2017 at 09:19:23AM +0800, kernel test robot wrote: >> >>> Greeting, >> >>> >> >>> FYI, we noticed a -19.3% regre

[PATCH v2 0/2] sched/debug: show task state on /proc/sched_debug

2017-08-08 Thread Xie XiuQi
Currently, we print the runnable task in /proc/sched_debug, but there is no task state information. We don't know which task is in runqueue, and which task is in sleep. For the convenience of debugging, in this patch, we add task state in runnable task list, like this: runnable tasks: S

[PATCH v2 1/2] sched/debug: show task state on /proc/sched_debug

2017-08-08 Thread Xie XiuQi
Currently, we print the runnable task in /proc/sched_debug, but there is no task state information. We don't know which task is in runqueue, and which task is in sleep. For the convenience of debugging, in this patch, we add task state in runnable task list, like this: runnable tasks: S

[PATCH v2 2/2] sched/debug: intruduce task_state_to_char helper function

2017-08-08 Thread Xie XiuQi
Now we have more than one place to get the task state, so intruduce task_state_to_char helper to save some code. No function changed. Signed-off-by: Xie XiuQi --- include/linux/sched.h | 13 + kernel/sched/core.c | 15 --- kernel/sched/debug.c | 10 +++--- 3 files

Re: [PATCH v9 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-08 Thread Casey Leedom
| From: Bjorn Helgaas | Sent: Tuesday, August 8, 2017 4:22 PM | | This needs to include a link to the Intel spec | (https://software.intel.com/sites/default/files/managed/9e/bc/64-ia-32-architectures-optimization-manual.pdf, | sec 3.9.1). In the commit message or as a comment? Regardless, I

Re: [PATCH 4/4] dt-bindings: phy-mt65xx-usb: supports PCIe, SATA and rename file

2017-08-08 Thread Chunfeng Yun
On Tue, 2017-08-08 at 17:44 +0530, Kishon Vijay Abraham I wrote: > Chunfeng > > On Thursday 03 August 2017 03:50 PM, Chunfeng Yun wrote: > > hi, > > > > I made a mistake, please ignore the patches with Change-Id, very sorry > > No problem. However can you resend the series after fixing all check

Re: [PATCH] block: Fix warning when I/O elevator is changed as request_queue is being removed

2017-08-08 Thread Ming Lei
Hi David, On Wed, Aug 9, 2017 at 2:13 AM, David Jeffery wrote: > On 08/07/2017 07:53 PM, Ming Lei wrote: >> On Tue, Aug 8, 2017 at 3:38 AM, David Jeffery wrote: > >>> >>> Signed-off-by: David Jeffery >>> --- >>> block/blk-sysfs.c |2 ++ >>> block/elevator.c |4 >>> 2 files change

Re: kernel panic on null pointer on page->mem_cgroup

2017-08-08 Thread Jaegeuk Kim
On 08/08, Johannes Weiner wrote: > On Tue, Aug 08, 2017 at 03:13:42PM -0400, Brad Bolen wrote: > > On Tue, Aug 8, 2017 at 1:37 PM, Johannes Weiner wrote: > > > On Tue, Aug 08, 2017 at 09:56:01AM -0700, Jaegeuk Kim wrote: > > >> On 08/08, Johannes Weiner wrote: > > >> > Hi Jaegeuk and Bradley, > >

Re: [PATCH 16/16] perf tools: Add support for SPF events

2017-08-08 Thread Anshuman Khandual
On 08/08/2017 08:05 PM, Laurent Dufour wrote: > Add support for the new speculative faults events. > > Signed-off-by: Laurent Dufour > --- > tools/include/uapi/linux/perf_event.h | 2 ++ > tools/perf/util/evsel.c | 2 ++ > tools/perf/util/parse-events.c| 8 > tools

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-08 Thread Minchan Kim
Hi Matthew, On Tue, Aug 08, 2017 at 05:49:59AM -0700, Matthew Wilcox wrote: > On Tue, Aug 08, 2017 at 03:50:20PM +0900, Minchan Kim wrote: > > There is no need to use dynamic bio allocation for BDI_CAP_SYNC > > devices. They can with on-stack-bio without concern about waiting > > bio allocation fr

Re: [PATCH v2 0/4] Optimise 64-bit IOVA allocations

2017-08-08 Thread Leizhen (ThunderTown)
On 2017/8/8 20:03, Ganapatrao Kulkarni wrote: > On Wed, Jul 26, 2017 at 4:47 PM, Leizhen (ThunderTown) > wrote: >> >> >> On 2017/7/26 19:08, Joerg Roedel wrote: >>> Hi Robin. >>> >>> On Fri, Jul 21, 2017 at 12:41:57PM +0100, Robin Murphy wrote: Hi all, In the wake of the ARM SMMU

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-08 Thread Minchan Kim
On Tue, Aug 08, 2017 at 06:29:04AM -0700, Matthew Wilcox wrote: > On Tue, Aug 08, 2017 at 05:49:59AM -0700, Matthew Wilcox wrote: > > + struct bio sbio; > > + struct bio_vec sbvec; > > ... this needs to be sbvec[nr_pages], of course. > > > - bio = mpage_alloc(bdev, blocks[0] << (blk

Re: [PATCH] mm: Revert x86_64 and arm64 ELF_ET_DYN_BASE base

2017-08-08 Thread Kees Cook
On Tue, Aug 8, 2017 at 2:34 AM, Will Deacon wrote: > On Mon, Aug 07, 2017 at 01:15:42PM -0700, Kees Cook wrote: >> Moving the x86_64 and arm64 PIE base from 0x4000 to 0x0001 >> broke AddressSanitizer. This is a partial revert of: >> >> commit eab09532d400 ("binfmt_elf: use ELF_ET

[PATCH] ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC

2017-08-08 Thread SZ Lin
Add QSPI node support, and this function is disabled by default This setting could be overwritten in board-level definitions Signed-off-by: SZ Lin --- arch/arm/boot/dts/ls1021a.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot

Re: [9/9, v2] hwmon: (scpi) constify thermal_zone_of_device_ops structures

2017-08-08 Thread Guenter Roeck
On Tue, Aug 08, 2017 at 05:09:03PM +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structure is only passed as the fourth > argument to devm_thermal_zone_of_sensor_register, which is declared > as const. Thus the thermal_zone_of_device_ops structure itself can > be const. > > Done wit

Re: [8/9, v2] hwmon: (core) constify thermal_zone_of_device_ops structures

2017-08-08 Thread Guenter Roeck
On Tue, Aug 08, 2017 at 05:09:02PM +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structure is only passed as the fourth > argument to devm_thermal_zone_of_sensor_register, which is declared > as const. Thus the thermal_zone_of_device_ops structure itself can > be const. > > Done wit

[PATCH v2] arm64: dts: rockchip: add rk805 node for rk3328-evb

2017-08-08 Thread Joseph Chen
RK805 consists of 4 DCDCs, 3 LDOs. It's different from RK808 and RK818 that there are 2 output only GPIOs, we should add properties "gpio-controller" and "gpio-cells = <2>". Signed-off-by: Joseph Chen --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 1 file chan

Re: [v2] hwmon: adt7475: constify attribute_group structures

2017-08-08 Thread Guenter Roeck
On Mon, Aug 07, 2017 at 03:06:29PM +0530, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work with > const attribute_group. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Kind of conf

[PATCH v2] Add rk805 node for rk3328-evb.dts

2017-08-08 Thread Joseph Chen
change in v2: add some sort of commit message. Joseph Chen (1): arm64: dts: rockchip: add rk805 node for rk3328-evb arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 137 1 file changed, 137 insertions(+) -- 1.9.1

[PATCH v9 00/12] rk808: Add RK805 support

2017-08-08 Thread Joseph Chen
change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) add: Acked-for-MFD-by: Lee Jones PATCH V9 2/12 ~ 12/12: they are applied and no changes, so I don't resend them. change in v8: PATCH V8 1/12: add: Signed-off-by: Joseph Chen PATCH V8 2/12: add: Signed-off-by:

[PATCH v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-08 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-

Re: [PATCH v9 2/4] PCI: Disable PCIe Relaxed Ordering if unsupported

2017-08-08 Thread Bjorn Helgaas
On Sat, Aug 05, 2017 at 03:15:11PM +0800, Ding Tianhong wrote: > When bit4 is set in the PCIe Device Control register, it indicates > whether the device is permitted to use relaxed ordering. > On some platforms using relaxed ordering can have performance issues or > due to erratum can cause data-co

[PATCH v2] usb: dwc2: skip L2 state of hcd if controller work in device mode

2017-08-08 Thread Meng Dongyang
In the case hcd autosuspend is enabled, the hcd will enter L2 state if no device connected. But if the controller works in otg mode, the gadget driver still works in L0 state if connected with host. This may result in transfer fail when gadget enqueue new request but the hcd driver has set the glob

[PATCH v2] usb: dwc2: skip L2 state of hcd if work in device mode

2017-08-08 Thread Meng Dongyang
The gadget may fail to enqueue request if the controller has enter L2 state. This patch prevent enter L2 state in hcd driver if the controller works in device mode. Change in v2:None, resend to addition maintainer Meng Dongyang (1): usb: dwc2: skip L2 state of hcd if controller work in device m

RE: [PATCH v10 4/4] irqchip/qeic: remove PPCisms for QEIC

2017-08-08 Thread Qiang Zhao
On Tue 8/8/2017 6:05 PM, Michael Ellerman wrote: > -Original Message- > From: Michael Ellerman [mailto:m...@ellerman.id.au] > Sent: Tuesday, August 08, 2017 6:05 PM > To: Qiang Zhao ; t...@linutronix.de > Cc: o...@buserror.net; linuxppc-...@lists.ozlabs.org; Xiaobo Xie > ; linux-kernel@vg

Re: [PATCH net] Revert "vhost: cache used event for better performance"

2017-08-08 Thread Jason Wang
On 2017年07月30日 14:26, K. Den wrote: On Wed, 2017-07-26 at 19:08 +0300, Michael S. Tsirkin wrote: On Wed, Jul 26, 2017 at 09:37:15PM +0800, Jason Wang wrote: On 2017年07月26日 21:18, Jason Wang wrote: On 2017年07月26日 20:57, Michael S. Tsirkin wrote: On Wed, Jul 26, 2017 at 04:03:17PM +0800, Ja

Re: [PATCH v2 2/4] usb: common: Move u_serial from gadget/function to usb/common

2017-08-08 Thread Lu Baolu
Hi, On 08/08/2017 02:14 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >>> Lu Baolu writes: The component u_serial provides a glue layer between TTY layer and a USB gadget device needed to provide a basic serial port functionality. Currently, u_serial sits under gadget/functio

Re: kernel panic on null pointer on page->mem_cgroup

2017-08-08 Thread Brad Bolen
Yes, the BUG_ON(!page_count(page)) fired for me as well. On Tue, Aug 8, 2017 at 9:44 PM, Jaegeuk Kim wrote: > On 08/08, Johannes Weiner wrote: >> On Tue, Aug 08, 2017 at 03:13:42PM -0400, Brad Bolen wrote: >> > On Tue, Aug 8, 2017 at 1:37 PM, Johannes Weiner wrote: >> > > On Tue, Aug 08, 2017 at

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-08 Thread Minchan Kim
On Tue, Aug 08, 2017 at 07:31:22PM -0700, Matthew Wilcox wrote: > On Wed, Aug 09, 2017 at 10:51:13AM +0900, Minchan Kim wrote: > > On Tue, Aug 08, 2017 at 06:29:04AM -0700, Matthew Wilcox wrote: > > > On Tue, Aug 08, 2017 at 05:49:59AM -0700, Matthew Wilcox wrote: > > > > + struct bio sbio; >

[PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-08 Thread Yafang Shao
Sometimes we want to get tasks in TASK_RUNNING sepcifically, instead of dump all tasks. For example, when the loadavg are high, we want to dump tasks in TASK_RUNNING and TASK_UNINTERRUPTIBLE, which contribute to system load. But mostly there're lots of tasks in Sleep state, which occupies almost a

[PATCH 0/3] Fix y2038 issues for security/keys subsystem

2017-08-08 Thread Baolin Wang
Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on 32 bits system, this patchset tries to fix this issues for security/keys subsystem and net/rxrpc subsystem which is connected with security/keys subsystem. Baolin Wang (3): security: keys: Replace time_t/timespec with time6

[PATCH 3/3] net: rxrpc: Replace time_t type with time64_t type

2017-08-08 Thread Baolin Wang
Since the 'expiry' variable of 'struct key_preparsed_payload' has been changed to 'time64_t' type, which is year 2038 safe on 32bits system. In net/rxrpc subsystem, we need convert 'u32' type to 'time64_t' type when copying ticket expires time to 'prep->expiry', then this patch introduces two help

[PATCH 1/3] security: keys: Replace time_t/timespec with time64_t

2017-08-08 Thread Baolin Wang
The 'struct key' will use 'time_t' which we try to remove in the kernel, since 'time_t' is not year 2038 safe on 32bit systems. Also the 'struct keyring_search_context' will use 'timespec' type to record current time, which is also not year 2038 safe on 32bit systems. Thus this patch replaces 'tim

[PATCH 2/3] security: keys: Replace time_t with time64_t for struct key_preparsed_payload

2017-08-08 Thread Baolin Wang
The 'struct key_preparsed_payload' will use 'time_t' which we will try to remove in the kernel, since 'time_t' is not year 2038 safe on 32bits systems. Thus this patch replaces 'time_t' with 'time64_t' which is year 2038 safe on 32 bits system for 'struct key_preparsed_payload', moreover we should

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-08 Thread Ye Xiaolong
On 08/08, Minchan Kim wrote: >On Mon, Aug 07, 2017 at 10:51:00PM -0700, Nadav Amit wrote: >> Nadav Amit wrote: >> >> > Minchan Kim wrote: >> > >> >> Hi, >> >> >> >> On Tue, Aug 08, 2017 at 09:19:23AM +0800, kernel test robot wrote: >> >>> Greeting, >> >>> >> >>> FYI, we noticed a -19.3% regre

Re: [PATCH v9 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-08 Thread Bjorn Helgaas
On Wed, Aug 09, 2017 at 01:40:01AM +, Casey Leedom wrote: > | From: Bjorn Helgaas > | Sent: Tuesday, August 8, 2017 4:22 PM > | > | This needs to include a link to the Intel spec > | > (https://software.intel.com/sites/default/files/managed/9e/bc/64-ia-32-architectures-optimization-manual.pd

答复: [PATCH v8 2/2] mmc: dw_mmc-k3: add sd support for hi3660

2017-08-08 Thread liwei (CM)
Hi, Ulf Thank you very much for your advice. 1. Version history is really great information, however it doesn't belong inside the change log itsefl. Instead add "---" and a newline here, then put it all below that. 【LiWei】OK,I will fix it; 2. We have an API, mmc_regulator_set_vqmmc(), that you p

[PATCH v2] eeprom: idt_89hpesx: Support both ACPI and OF probing

2017-08-08 Thread quochuybk2010
From: Huy Duong Allow the idt_89hpesx driver to get information from child nodes from both OF and ACPI by using more generic fwnode_property_read*() functions. Below is an example of instantiating idt_89hpesx driver via ACPI Table: Device(IDT0) { Name(_HID, "PRP0001") Name(_CID, "PRP0001") N

linux-next: build warning after merge of the md tree

2017-08-08 Thread Stephen Rothwell
Hi Shaohua, After merging the md tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: drivers/md/raid5-cache.c: In function 'r5c_journal_mode_show': drivers/md/raid5-cache.c:2535:2: warning: ignoring return value of 'mddev_lock', declared with attribute warn_unused_res

[PATCH] modpost: simplify sec_name()

2017-08-08 Thread Masahiro Yamada
There is code duplication between sec_name() and sech_name(). Simplify sec_name() by re-using sech_name(). Also, move them up to remove the forward declaration of sec_name(). Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 27 +++ 1 file changed, 11 insertion

Re: [PATCH v2 0/4] Optimise 64-bit IOVA allocations

2017-08-08 Thread Ganapatrao Kulkarni
On Wed, Aug 9, 2017 at 7:12 AM, Leizhen (ThunderTown) wrote: > > > On 2017/8/8 20:03, Ganapatrao Kulkarni wrote: >> On Wed, Jul 26, 2017 at 4:47 PM, Leizhen (ThunderTown) >> wrote: >>> >>> >>> On 2017/7/26 19:08, Joerg Roedel wrote: Hi Robin. On Fri, Jul 21, 2017 at 12:41:57PM +010

Re: [PATCH v9 2/4] PCI: Disable PCIe Relaxed Ordering if unsupported

2017-08-08 Thread Bjorn Helgaas
On Tue, Aug 08, 2017 at 09:22:39PM -0500, Bjorn Helgaas wrote: > On Sat, Aug 05, 2017 at 03:15:11PM +0800, Ding Tianhong wrote: > > When bit4 is set in the PCIe Device Control register, it indicates > > whether the device is permitted to use relaxed ordering. > > On some platforms using relaxed ord

[PATCH v9 2/2] mmc: dw_mmc-k3: add sd support for hi3660

2017-08-08 Thread Li Wei
Add sd card support for hi3660 soc Signed-off-by: Li Wei Signed-off-by: Chen Jun -- Major changes in v3: - solve review comments from Heiner Kallweit. *use the GENMASK and FIELD_PREP macros replace the bit shift operation. *use usleep_range

[PATCH v9 1/2] mmc: dw_mmc: move controller reset before driver init

2017-08-08 Thread Li Wei
This commit modifies dw_mci_probe(), it moves reset assertion before drv_data->init(host) Some driver needs to access controller registers in its .init() ops. So, in order to make such access safe, we should do controller reset before .init() being called. Signed-off-by: Wei Li Signed-off-by: Gu

Re: [PATCH 2/2] lib: add test for bitmap_parselist()

2017-08-08 Thread kbuild test robot
Hi Yury, [auto build test WARNING on linus/master] [also build test WARNING on v4.13-rc4 next-20170808] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Yury-Norov/lib-make-bitmap_parselist

Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53?

2017-08-08 Thread Willy Tarreau
On Tue, Aug 08, 2017 at 05:12:03PM -0500, Rob Landley wrote: > If your rootfs has a size= in /proc/mounts it's tmpfs, ala: > > rootfs / rootfs rw,size=126564k,nr_inodes=31641 0 0 You're right, I have it and thought about it. Anyway the point is that it works transparently for me. Apparently for

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-08 Thread Matthew Wilcox
On Wed, Aug 09, 2017 at 10:51:13AM +0900, Minchan Kim wrote: > On Tue, Aug 08, 2017 at 06:29:04AM -0700, Matthew Wilcox wrote: > > On Tue, Aug 08, 2017 at 05:49:59AM -0700, Matthew Wilcox wrote: > > > + struct bio sbio; > > > + struct bio_vec sbvec; > > > > ... this needs to be sbvec[nr_pages], of

Re: [PATCH RFC v2 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-08 Thread David Miller
From: Joel Fernandes Date: Mon, 7 Aug 2017 18:20:49 -0700 > On Mon, Aug 7, 2017 at 11:28 AM, David Miller wrote: >> The amount of hellish hacks we are adding to deal with this is getting >> way out of control. > > I agree with you that hellish hacks are being added which is why it > keeps break

Re: [PATCH v9 2/2] mmc: dw_mmc-k3: add sd support for hi3660

2017-08-08 Thread Shawn Lin
On 2017/8/9 11:25, Li Wei wrote: Add sd card support for hi3660 soc Signed-off-by: Li Wei Signed-off-by: Chen Jun I did some comment for your v6 but probably you miss them. And it's still incorrect for your changelog. -- Major changes

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-08-08 Thread Masahiro Yamada
Hi Marc, 2017-08-08 16:39 GMT+09:00 Marc Zyngier : > On 08/08/17 02:30, Masahiro Yamada wrote: >> Hi Marc, >> >> 2017-08-07 17:17 GMT+09:00 Marc Zyngier : >>> On 07/08/17 05:45, Masahiro Yamada wrote: Hi Marc, 2017-08-03 22:30 GMT+09:00 Marc Zyngier : > On 03/08/17 13:52,

Re: [PATCH net] rds: Reintroduce statistics counting

2017-08-08 Thread David Miller
From: Håkon Bugge Date: Tue, 8 Aug 2017 11:13:32 +0200 > In commit 7e3f2952eeb1 ("rds: don't let RDS shutdown a connection > while senders are present"), refilling the receive queue was removed > from rds_ib_recv(), along with the increment of > s_ib_rx_refill_from_thread. > > Commit 73ce4317bf

Re: [PATCH] net: phy: Use tab for indentation in Kconfig

2017-08-08 Thread David Miller
From: Michal Simek Date: Tue, 8 Aug 2017 11:32:25 +0200 > Using tabs instead of space for indentaion > > Signed-off-by: Michal Simek This really isn't appropriate for the 'net' tree, it doesn't fix anything it just makes the spacing consistent. Please respin this patch against net-next, than

[PATCH] parse-maintainers: Add ability to specify filenames

2017-08-08 Thread Joe Perches
parse-maintainers.pl is convenient, but currently hard-code the filenames that are used. Allow user-specified filenames to simplify the use of the script. Miscellanea: o Change the file permissions to 755 to the script is executable Signed-off-by: Joe Perches --- scripts/parse-maintainers.pl

Re: [PATCH][next] net: phy: mdio-bcm-unimac: fix unsigned wrap-around when decrementing timeout

2017-08-08 Thread David Miller
From: Colin King Date: Tue, 8 Aug 2017 10:52:32 +0100 > From: Colin Ian King > > Change post-decrement compare to pre-decrement to avoid an > unsigned integer wrap-around on timeout. This leads to the following > !timeout check to never to be true so -ETIMEDOUT is never returned. > > Detected

Re: [PATCH 33/35] wireless: realtek: rtl8192cu: constify usb_device_id

2017-08-08 Thread Larry Finger
On 08/08/2017 11:05 AM, Arvind Yadav wrote: usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- Acked-by: Larry Finger Thanks, Larry

Re: [PATCH] hv_set_ifconfig.sh double check before setting ip

2017-08-08 Thread David Miller
From: Eduardo Otubo Date: Tue, 8 Aug 2017 15:53:45 +0200 > This patch fixes the behavior of the hv_set_ifconfig script when setting > the interface ip. Sometimes the interface has already been configured by > network daemon, in this case hv_set_ifconfig causes "RTNETLINK: file > exists error"; i

<    5   6   7   8   9   10   11   >