[PATCH v4 1/5] dt-bindings: reset: Add AOSS reset bindings for SDM845 SoCs

2018-04-25 Thread Sibi Sankar
Add SDM845 AOSS (always on subsystem) reset controller binding Signed-off-by: Sibi Sankar --- .../bindings/reset/qcom,aoss-reset.txt| 52 +++ include/dt-bindings/reset/qcom,sdm845-aoss.h | 17 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/dev

[PATCH v4 11/16] y2038: xtensa: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
xtensa, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. xtensa tries hard to define the structures so they work in both big-endian and little-endian systems with

[PATCH v4 4/5] remoteproc: qcom: Add support for mss remoteproc on SDM845

2018-04-25 Thread Sibi Sankar
>From SDM845, the Q6SS reset sequence on software side has been simplified with the introduction of boot FSM which assists in bringing the Q6 out of reset Add GLINK subdevice to allow definition of GLINK edge as a child of modem-pil Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pi

[PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-25 Thread Sibi Sankar
Add reset controller driver for Qualcomm SDM845 SoC to control reset signals provided by AOSS for Modem, Venus ADSP, GPU, Camera, Wireless, Display subsystem Signed-off-by: Sibi Sankar --- drivers/reset/Kconfig | 9 +++ drivers/reset/Makefile | 1 + drivers/reset/reset-qco

[PATCH v4 5/5] remoteproc: qcom: Always assert and deassert reset signals in SDM845

2018-04-25 Thread Sibi Sankar
SDM845 brings a new reset signal ALT_RESET which is a part of the MSS subsystem hence requires some of the active clks to be enabled before assert/deassert Reset the modem if the BOOT FSM does timeout Reset assert/deassert sequence vary across SoCs adding reset, adding start/stop helper functions

Re: [PATCH] i2c: at91: Read all available bytes at once

2018-04-25 Thread Ludovic Desroches
Hi David, On Wed, Apr 18, 2018 at 02:40:55PM +0200, David Engraf wrote: > With FIFO enabled it is possible to read multiple bytes > at once in the interrupt handler as long as RXRDY is > set. This may also reduce the number of interrupts. > > Signed-off-by: David Engraf > --- > drivers/i2c/buss

[PATCH v4 3/5] dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845

2018-04-25 Thread Sibi Sankar
Add new compatible string for Qualcomm SDM845 SoCs Signed-off-by: Sibi Sankar --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/bindings/remotep

Re: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > We already prevent crash when dereferencing some obviously broken > pointers. But the handling is not consistent. Sometimes we print > "(null)" > only for pure NULL pointer, sometimes for pointers in the first > page and sometimes also for poi

Re: [Qemu-devel] [RFC v2 1/2] virtio: add pmem driver

2018-04-25 Thread Pankaj Gupta
> > On Wed, Apr 25, 2018 at 04:54:13PM +0530, Pankaj Gupta wrote: > > diff --git a/include/uapi/linux/virtio_ids.h > > b/include/uapi/linux/virtio_ids.h > > index 6d5c3b2..5ebd049 100644 > > --- a/include/uapi/linux/virtio_ids.h > > +++ b/include/uapi/linux/virtio_ids.h > > @@ -43,5 +43,6 @@ > >

Re: [PATCH] perf/x86/intel: Don't enable freeze-on-smi for PerfMon V1

2018-04-25 Thread Liang, Kan
On 4/25/2018 10:57 AM, Peter Zijlstra wrote: On Tue, Apr 24, 2018 at 03:56:23PM -0400, kan.li...@linux.intel.com wrote: From: Kan Liang The SMM freeze feature was introduced since PerfMon V2. But the current code unconditionally enables the feature for all platforms. It can generate #GP exce

[PATCH v4 06/16] y2038: arm64: Extend sysvipc compat data structures

2018-04-25 Thread Arnd Bergmann
Both 32-bit amd 64-bit ARM use the asm-generic header files for their sysvipc data structures, so no special care is needed to make those work beyond y2038, with the one exception of compat mode: Since there is no asm-generic definition of the compat mode IPC structures, ARM64 provides its own copy

[PATCH v4 12/16] y2038: ipc: Use ktime_get_real_seconds consistently

2018-04-25 Thread Arnd Bergmann
In some places, we still used get_seconds() instead of ktime_get_real_seconds(), and I'm changing the remaining ones now to all use ktime_get_real_seconds() so we use the full available range for timestamps instead of overflowing the 'unsigned long' return value in year 2106 on 32-bit kernels. Sig

[PATCH v4 02/16] y2038: x86: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
This extends the x86 copy of the sysvipc data structures to deal with 32-bit user space that has 64-bit time_t and wants to see timestamps beyond 2038. Fortunately, x86 has padding for this purpose in all the data structures, so we can just add extra fields. With msgid64_ds and shmid64_ds, the dat

RE: [dm-devel] [PATCH 2/2] md: dm-verity: allow parallel processing of bio blocks

2018-04-25 Thread yael.chemla
> -Original Message- > From: Eric Biggers > Sent: Tuesday, 27 March 2018 9:55 > To: Yael Chemla > Cc: Alasdair Kergon ; Mike Snitzer ; > dm-de...@redhat.com; linux-kernel@vger.kernel.org; ofir.dr...@gmail.com; > Yael Chemla ; linux-cry...@vger.kernel.org; > gi...@benyossef.com > Subject

[PATCH v4 16/16] y2038: ipc: Redirect ipc(SEMTIMEDOP, ...) to compat_ksys_semtimedop

2018-04-25 Thread Arnd Bergmann
32-bit architectures implementing 64BIT_TIME and COMPAT_32BIT_TIME need to have the traditional semtimedop() behavior with 32-bit timestamps for sys_ipc() by calling compat_ksys_semtimedop(), while those that are not yet converted need to keep using ksys_semtimedop() like 64-bit architectures do.

[PATCH v4 14/16] y2038: ipc: Use __kernel_timespec

2018-04-25 Thread Arnd Bergmann
This is a preparatation for changing over __kernel_timespec to 64-bit times, which involves assigning new system call numbers for mq_timedsend(), mq_timedreceive() and semtimedop() for compatibility with future y2038 proof user space. The existing ABIs will remain available through compat code. S

[PATCH v4 10/16] y2038: powerpc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
powerpc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. powerpc has the same definition as parisc and sparc, but now also supports little-endian mode, which is n

[PATCH v4 01/16] y2038: asm-generic: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
Most architectures now use the asm-generic copy of the sysvipc data structures (msqid64_ds, semid64_ds, shmid64_ds), which use 32-bit __kernel_time_t on 32-bit architectures but have padding behind them to allow extending the type to 64-bit. Unfortunately, that fails on all big-endian architecture

[PATCH v4 08/16] y2038: parisc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
parisc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. Unlike most architectures, parisc actually succeeded in defining this right for big-endian CPUs, but as ev

[PATCH v4 09/16] y2038: sparc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
sparc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. Unlike most architectures, sparc actually succeeded in defining this right for big-endian CPUs, but as ever

[PATCH] soc: qcom: smem: introduce qcom_smem_virt_to_phys()

2018-04-25 Thread Alex Elder
Create function qcom_smem_virt_to_phys(), which returns the physical address corresponding to a given SMEM item's virtual address. This feature is required for a driver that will soon be out for review. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 27 +++

Re: [PATCH v2 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-04-25 Thread Rob Herring
On Thu, Apr 19, 2018 at 08:03:38PM +0900, Masahiro Yamada wrote: > Historically, the clocks and resets are handled on the glue layer > side instead of the DWC3 core. For simple cases, dwc3-of-simple.c > takes care of arbitrary number of clocks and resets. The DT node > structure typically looks l

Re: [RFC v5 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-04-25 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 06:01:02AM -0700, Eric Dumazet wrote: > Thanks Christoph > > Note the high cost of zap_page_range(), needed to avoid -EBUSY being returned > from vm_insert_page() the second time TCP_ZEROCOPY_RECEIVE is used on one VMA. > > Ideally a vm_replace_page() would avoid this cost

Re: vmalloc with GFP_NOFS

2018-04-25 Thread Mikulas Patocka
On Wed, 25 Apr 2018, Michal Hocko wrote: > On Wed 25-04-18 08:43:32, Mikulas Patocka wrote: > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > On Tue 24-04-18 19:17:12, Mikulas Patocka wrote: > > > > > > > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > > > > > > S

Re: [PATCH 1/9] firmware: some documentation fixes

2018-04-25 Thread Greg KH
On Mon, Apr 23, 2018 at 04:11:57PM -0400, Andres Rodriguez wrote: > Including: > - Fixup outdated kernel-doc paths > - Slightly too short title underline > - Some typos > > Signed-off-by: Andres Rodriguez > --- > Documentation/driver-api/firmware/request_firmware.rst | 16 >

Re: [PATCH 1/9] firmware: some documentation fixes

2018-04-25 Thread Greg KH
On Wed, Apr 25, 2018 at 05:25:26PM +0200, Greg KH wrote: > On Mon, Apr 23, 2018 at 04:11:57PM -0400, Andres Rodriguez wrote: > > Including: > > - Fixup outdated kernel-doc paths > > - Slightly too short title underline > > - Some typos > > > > Signed-off-by: Andres Rodriguez > > --- > > Docum

Re: [PATCH] media: zoran: move to dma-mapping interface

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 01:15:18PM +0200, Arnd Bergmann wrote: > That thought had occurred to me as well. I removed the oldest ISDN > drivers already some years ago, and the OSS sound drivers > got removed as well, and comedi got converted to the dma-mapping > interfaces, so there isn't much left a

Re: [PATCH] selftests:firmware: fixes a call to a wrong function name

2018-04-25 Thread Greg KH
On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote: > On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T > wrote: > > This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh > > file which fixes a bug which calls to a wrong function name,which in turn > > blocks the executi

Re: [V2 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-25 Thread Liang, Kan
On 4/25/2018 10:59 AM, Jiri Olsa wrote: On Wed, Apr 25, 2018 at 10:42:27AM -0400, Liang, Kan wrote: On 4/25/2018 10:23 AM, Jiri Olsa wrote: On Wed, Apr 25, 2018 at 06:50:18AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang Perf stat doesn't count the uncore event aliases from the

Re: [PATCH] selftests:firmware: fixes a call to a wrong function name

2018-04-25 Thread Shuah Khan
On 04/25/2018 09:26 AM, Greg KH wrote: > On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote: >> On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T >> wrote: >>> This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh >>> file which fixes a bug which calls to a wrong function

Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process.

2018-04-25 Thread Eric W. Biederman
Andrey Grodzovsky writes: > On 04/25/2018 03:14 AM, Daniel Vetter wrote: >> On Tue, Apr 24, 2018 at 05:37:08PM -0400, Andrey Grodzovsky wrote: >>> >>> On 04/24/2018 05:21 PM, Eric W. Biederman wrote: Andrey Grodzovsky writes: > On 04/24/2018 03:44 PM, Daniel Vetter wrote: >> On

Re: noveau vs arm dma ops

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 12:04:29PM +0200, Daniel Vetter wrote: > > Coordinating the backport of a trivial helper in the arm tree is not > > the end of the world. Really, this cowboy attitude is a good reason > > why graphics folks have such a bad rep. You keep poking into random > > kernel intern

Re: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 18:10 +0300, Andy Shevchenko wrote: Some typos fixed > I would preserve similar style of buf pointer handling, i.e. > > static char *valid_pointer_access(char **buf, char *end, char *buf > const void *ptr, struct printf_spec > spec) > { >

Re: [PATCH v4 14/22] iommu: handle page response timeout

2018-04-25 Thread Jacob Pan
On Mon, 23 Apr 2018 16:36:23 +0100 Jean-Philippe Brucker wrote: > On Mon, Apr 16, 2018 at 10:49:03PM +0100, Jacob Pan wrote: > > When IO page faults are reported outside IOMMU subsystem, the page > > request handler may fail for various reasons. E.g. a guest received > > page requests but did not

Re: [PATCH v5 1/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-04-25 Thread Marc Kleine-Budde
On 04/11/2018 06:06 PM, Jakob Unterwurzacher wrote: > The UCAN driver supports the microcontroller-based USB/CAN > adapters from Theobroma Systems. There are two form-factors > that run essentially the same firmware: > > * Seal: standalone USB stick ( https://www.theobroma-systems.com/seal ) > >

Re: [PATCH 4.16 00/26] 4.16.5-stable review

2018-04-25 Thread Guenter Roeck
On Wed, Apr 25, 2018 at 12:33:09PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.5 release. > There are 26 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH] IB/nes: fix nes_netdev_start_xmit()'s return type

2018-04-25 Thread Leon Romanovsky
On Tue, Apr 24, 2018 at 08:36:12PM +0300, Leon Romanovsky wrote: > On Tue, Apr 24, 2018 at 03:15:45PM +0200, Luc Van Oostenryck wrote: > > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > > which is a typedef for an enum type, but the implementation in this > > driver returns

Re: [PATCH] IB/ipoib: fix ipoib_start_xmit()'s return type

2018-04-25 Thread Leon Romanovsky
On Tue, Apr 24, 2018 at 03:15:47PM +0200, Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning 'netdev_tx_t' in this driver too. >

Re: [PATCH 3/3] sched: limit cpu search and rotate search window for scalability

2018-04-25 Thread Peter Zijlstra
On Tue, Apr 24, 2018 at 05:10:34PM -0700, Subhra Mazumdar wrote: > On 04/24/2018 05:53 AM, Peter Zijlstra wrote: > > Why do you need to put a max on? Why isn't the proportional thing > > working as is? (is the average no good because of big variance or what) > Firstly the choosing of 512 seems ar

Re: [PATCH bpf-next] bpf: Allow bpf_jit_enable = 2 with BPF_JIT_ALWAYS_ON config

2018-04-25 Thread Daniel Borkmann
On 04/25/2018 04:14 PM, Alexei Starovoitov wrote: > On Wed, Apr 25, 2018 at 05:25:47PM +0800, Leo Yan wrote: >> >> If we have concern for security issue, should we remove support for >> 'bpf_jit_enable = 2' and modify the doc to reflect this change? > > I suggest to fix the doc. Agree, lets do th

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Feb 14, 2018 at 06:20:35PM +0100, Cornelia Huck wrote: > [cc:ing Greg for his opinion on this; retaining quoting for context] Ick, just found this in my inbox, sorry for the delay... > > On Tue, 13 Feb 2018 17:15:02 -0700 > Alex Williamson wrote: > > > On Tue, 13 Feb 2018 14:09:01 +010

Re: [PATCH v2] sched/rt: Rework for_each_process_thread() iterations in tg_has_rt_tasks()

2018-04-25 Thread Kirill Tkhai
Peter, could you please to give some comments on this? Kirill On 20.04.2018 13:06, Kirill Tkhai wrote: > From: Kirill Tkhai > > tg_rt_schedulable() iterates over all child task groups, > while tg_has_rt_tasks() iterates over all linked tasks. > In case of systems with big number of tasks, this

Re: [PATCH] i2c: at91: Read all available bytes at once

2018-04-25 Thread David Engraf
Hi Ludovic, Am 25.04.2018 um 17:08 schrieb Ludovic Desroches: Hi David, On Wed, Apr 18, 2018 at 02:40:55PM +0200, David Engraf wrote: With FIFO enabled it is possible to read multiple bytes at once in the interrupt handler as long as RXRDY is set. This may also reduce the number of interrupts.

Re: [PATCH 4.16 00/26] 4.16.5-stable review

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Apr 25, 2018 at 08:34:43AM -0700, Guenter Roeck wrote: > On Wed, Apr 25, 2018 at 12:33:09PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.16.5 release. > > There are 26 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH] sparc: vio: use put_device() instead of kfree()

2018-04-25 Thread Shannon Nelson
On 4/25/2018 7:56 AM, Arvind Yadav wrote: Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/vio.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Moving unmaintained filesystems to staging

2018-04-25 Thread Matthew Wilcox
Recently ncpfs got moved to staging. Also recently, we had some fuzzer developers report bugs in hfs, which they deem a security hole because Ubuntu attempts to automount an inserted USB device as hfs. We have no maintainer for hfs, and no likely prospect of anyone stepping up soon to become hfs

Re: Moving unmaintained filesystems to staging

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 08:46:02AM -0700, Matthew Wilcox wrote: > hfsplus - Mac filesystem. I don't think this is unmaintained, and it is pretty heavily used. > minix Still plenty of use.

Re: [PATCH] ion: Consider ion pool pages as indirectly reclaimable

2018-04-25 Thread Laura Abbott
On 04/24/2018 08:43 PM, vji...@codeaurora.org wrote: From: Vijayanand Jitta An issue is observed where mallocs are failing due to overcommit failure. The failure happens when there is high ION page pool since ION page pool is not considered reclaimable by the overcommit calculation code. This c

Re: [PATCH v2 1/2] crypto: ccree: enable support for hardware keys

2018-04-25 Thread Tudor Ambarus
Hi, Gilad, On 04/23/2018 10:25 AM, Gilad Ben-Yossef wrote: Enable CryptoCell support for hardware keys. Hardware keys are regular AES keys loaded into CryptoCell internal memory via firmware, often from secure boot ROM or hardware fuses at boot time. As such, they can be used for enc/dec purpo

[PATCH 01/40] net/can: single_open_net needs to be paired with single_release_net

2018-04-25 Thread Christoph Hellwig
Otherwise we will leak a reference to the network namespace. Signed-off-by: Christoph Hellwig --- net/can/bcm.c | 2 +- net/can/proc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/can/bcm.c b/net/can/bcm.c index ac5e5e34fee3..8073fa14e143 100644 --- a/net/can/b

[PATCH 02/40] proc: simplify proc_register calling conventions

2018-04-25 Thread Christoph Hellwig
Return registered entry on success, return NULL on failure and free the passed in entry. Also expose it in internal.h as we'll start using it in proc_net.c soon. Signed-off-by: Christoph Hellwig --- fs/proc/generic.c | 44 ++-- fs/proc/internal.h | 2 ++

[PATCH 06/40] proc: introduce proc_create_single{,_data}

2018-04-25 Thread Christoph Hellwig
Variants of proc_create{,_data} that directly take a seq_file show callback and drastically reduces the boilerplate code in the callers. All trivial callers converted over. Signed-off-by: Christoph Hellwig --- arch/arm/kernel/dma.c | 14 +--- arch/arm/kernel/swp_emulate.

[PATCH 08/40] ipv{4,6}/tcp: simplify procfs registration

2018-04-25 Thread Christoph Hellwig
Avoid most of the afinfo indirections and just call the proc helpers directly. Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 11 ++ net/ipv4/tcp_ipv4.c | 85 + net/ipv6/tcp_ipv6.c | 27 +- 3 files changed, 53 insertions(+),

[PATCH 09/40] ipv{4,6}/ping: simplify proc file creation

2018-04-25 Thread Christoph Hellwig
Remove the pointless ping_seq_afinfo indirection and make the code look like most other protocols. Signed-off-by: Christoph Hellwig --- include/net/ping.h | 11 -- net/ipv4/ping.c| 50 +- net/ipv6/ping.c| 35 +---

[PATCH 18/40] sgi-gru: simplify procfs code

2018-04-25 Thread Christoph Hellwig
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Signed-off-by: Christoph Hellwig --- drivers/misc/sgi-gru/gruprocfs.c | 81 ++-- 1 file changed, 14

[PATCH 28/40] bonding: switch to proc_create_seq_data

2018-04-25 Thread Christoph Hellwig
And use proc private data directly instead of doing a detour through seq->private. Signed-off-by: Christoph Hellwig --- drivers/net/bonding/bond_procfs.c | 36 ++- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/drivers/net/bonding/bond_procfs.c b/driv

[PATCH 37/40] proc: don't detour through seq->private to get the inode

2018-04-25 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/proc/array.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/fs/proc/array.c b/fs/proc/array.c index ae2c807fd719..b34796b562ef 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -677,7 +677,7 @@ get_children_pid(s

[PATCH 39/40] ide: replace ->proc_fops with ->proc_show

2018-04-25 Thread Christoph Hellwig
Just set up the show callback in the tty_operations, and use proc_create_single_data to create the file without additional boilerplace code. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-cd.c | 15 +--- drivers/ide/ide-disk_proc.c | 62 ++-- drivers/ide/ide-floppy

[PATCH 35/40] atm: switch to proc_create_seq_private

2018-04-25 Thread Christoph Hellwig
And remove proc boilerplate code. Signed-off-by: Christoph Hellwig --- net/atm/proc.c | 72 +- 1 file changed, 13 insertions(+), 59 deletions(-) diff --git a/net/atm/proc.c b/net/atm/proc.c index f272b0f59d82..0b0495a41bbe 100644 --- a/net/atm/pro

Re: [PATCH v2 1/4] ARM: amba: Make driver_override output consistent with other buses

2018-04-25 Thread Todd Kjos
Reviewed-by: Todd Kjos On Tue, Apr 10, 2018 at 6:21 AM, Geert Uytterhoeven wrote: > For AMBA devices with unconfigured driver override, the > "driver_override" sysfs virtual file is empty, while it contains > "(null)" for platform and PCI devices. > > Make AMBA consistent with other buses by dro

[PATCH 33/40] bluetooth: switch to proc_create_seq_data

2018-04-25 Thread Christoph Hellwig
And use proc private data directly instead of doing a detour through seq->private and private state. Signed-off-by: Christoph Hellwig --- net/bluetooth/af_bluetooth.c | 40 +--- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/net/bluetooth/af_blueto

[PATCH 40/40] tty: replace ->proc_fops with ->proc_show

2018-04-25 Thread Christoph Hellwig
Just set up the show callback in the tty_operations, and use proc_create_single_data to create the file without additional boilerplace code. Signed-off-by: Christoph Hellwig --- arch/ia64/hp/sim/simserial.c| 15 +-- arch/xtensa/platforms/iss/console.c | 15 +-- dr

[PATCH 34/40] atm: simplify procfs code

2018-04-25 Thread Christoph Hellwig
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Signed-off-by: Christoph Hellwig --- net/atm/proc.c | 65 ++ 1 file changed, 7

[PATCH 36/40] isdn: replace ->proc_fops with ->proc_show

2018-04-25 Thread Christoph Hellwig
And switch to proc_create_single_data. Signed-off-by: Christoph Hellwig --- drivers/isdn/capi/kcapi.c | 3 ++- drivers/isdn/gigaset/capi.c| 16 +--- drivers/isdn/hardware/avm/avmcard.h| 4 ++-- drivers/isdn/hardware/avm/b1.c | 17 ++-

[PATCH 38/40] ide: remove ide_driver_proc_write

2018-04-25 Thread Christoph Hellwig
The driver proc file hasn't been writeable for a long time, so this is just dead code. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-proc.c | 46 -- 1 file changed, 46 deletions(-) diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index

Re: [PATCH 1/3] mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES

2018-04-25 Thread Matthew Wilcox
On Fri, Apr 13, 2018 at 05:43:39PM +0530, vinayak menon wrote: > One such case I have encountered is that of the ION page pool. The page pool > registers a shrinker. When not in any memory pressure page pool can go high > and thus cause an mmap to fail when OVERCOMMIT_GUESS is set. I can send > a p

Re: [PATCH v3 2/2] media: Add a driver for the ov7251 camera sensor

2018-04-25 Thread Todor Tomov
Hi, On 25.04.2018 13:54, Sakari Ailus wrote: > Hi Todor, > > Thanks for the update. Just a few minor comments below. Thanks for the review again, Sakari. I'm preparing the next version. Best regards, Todor

Re: [PATCH v2 2/4] ARM: amba: Fix race condition with driver_override

2018-04-25 Thread Todd Kjos
Reviewed-by: Todd Kjos On Tue, Apr 10, 2018 at 6:21 AM, Geert Uytterhoeven wrote: > The driver_override implementation is susceptible to a race condition > when different threads are reading vs storing a different driver > override. Add locking to avoid this race condition. > > Cfr. commits 626

[PATCH 31/40] netfilter/xt_hashlimit: switch to proc_create_{seq,single}_data

2018-04-25 Thread Christoph Hellwig
And use proc private data directly instead of doing a detour through seq->private. Signed-off-by: Christoph Hellwig --- net/netfilter/xt_hashlimit.c | 92 +++- 1 file changed, 18 insertions(+), 74 deletions(-) diff --git a/net/netfilter/xt_hashlimit.c b/net/netfi

[PATCH 32/40] netfilter/x_tables: switch to proc_create_seq_private

2018-04-25 Thread Christoph Hellwig
And remove proc boilerplate code. Signed-off-by: Christoph Hellwig --- net/netfilter/x_tables.c | 42 ++-- 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 344dd01a5027..0e314f95a4a3 10064

Re: [PATCH v2 3/4] ARM: amba: Don't read past the end of sysfs "driver_override" buffer

2018-04-25 Thread Todd Kjos
Reviewed-by: Todd Kjos On Tue, Apr 10, 2018 at 6:21 AM, Geert Uytterhoeven wrote: > When printing the driver_override parameter when it is 4095 and 4094 > bytes long, the printing code would access invalid memory because we > need count + 1 bytes for printing. > > Cfr. commits 4efe874aace57dba (

[PATCH 27/40] rtc/proc: switch to proc_create_single_data

2018-04-25 Thread Christoph Hellwig
And stop trying to get a reference on the submodule, procfs code deals with release after and unloaded module and thus removed proc entry. Signed-off-by: Christoph Hellwig --- drivers/rtc/rtc-proc.c | 33 ++--- 1 file changed, 2 insertions(+), 31 deletions(-) diff --

Re: [RFC PATCH RESEND 1/3] mfd: upboard: Add UP2 platform controller driver

2018-04-25 Thread Andy Shevchenko
On Sat, 2018-04-21 at 09:50 +0100, Javier Arteaga wrote: > UP Squared (UP2) is a x86 SBC from AAEON based on Intel Apollo Lake. > +config MFD_UPBOARD > + tristate "UP Squared" > + depends on ACPI > + depends on GPIOLIB > + select MFD_CORE > + select REGMAP > + help > +

Re: [PATCH v2 4/4] ARM: amba: Fix wrong indentation in driver_override_store()

2018-04-25 Thread Todd Kjos
Reviewed-by: Todd Kjos On Tue, Apr 10, 2018 at 6:21 AM, Geert Uytterhoeven wrote: > Indentation is one TAB and 7 spaces instead of 2 TABs. > > Fixes: 3cf385713460eb2b ("ARM: 8256/1: driver coamba: add device binding path > 'driver_override'") > Signed-off-by: Geert Uytterhoeven > --- > driver

Re: [PATCH] media: zoran: move to dma-mapping interface

2018-04-25 Thread Arnd Bergmann
On Wed, Apr 25, 2018 at 5:26 PM, Christoph Hellwig wrote: > On Wed, Apr 25, 2018 at 01:15:18PM +0200, Arnd Bergmann wrote: >> That thought had occurred to me as well. I removed the oldest ISDN >> drivers already some years ago, and the OSS sound drivers >> got removed as well, and comedi got conve

Re: [REVIEW][PATCH 09/22] signal/nds32: Use force_sig_fault where appropriate

2018-04-25 Thread Eric W. Biederman
Vincent Chen writes: > 2018-04-20 22:37 GMT+08:00 Eric W. Biederman : >> Filling in struct siginfo before calling force_sig_info a tedious and >> error prone process, where once in a great while the wrong fields >> are filled out, and siginfo has been inconsistently cleared. >> >> Simplify this p

[PATCH 26/40] drbd: switch to proc_create_single

2018-04-25 Thread Christoph Hellwig
And stop messing with try_module_get on THIS_MODULE, which doesn't make any sense here. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_int.h | 2 +- drivers/block/drbd/drbd_main.c | 3 ++- drivers/block/drbd/drbd_proc.c | 34 +- 3 files changed, 4

[PATCH 24/40] staging/rtl8192u: simplify procfs code

2018-04-25 Thread Christoph Hellwig
Unwind the registration loop into individual calls. Switch to use proc_create_single where applicable. Signed-off-by: Christoph Hellwig --- drivers/staging/rtl8192u/r8192U_core.c | 67 ++ 1 file changed, 14 insertions(+), 53 deletions(-) diff --git a/drivers/staging/rtl

[PATCH 25/40] resource: switch to proc_create_seq_data

2018-04-25 Thread Christoph Hellwig
And use the root resource directly from the proc private data. Signed-off-by: Christoph Hellwig --- kernel/resource.c | 43 +-- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/kernel/resource.c b/kernel/resource.c index 2af6c03858b9..b589dda

Re: [PATCH] sparc: vio: use put_device() instead of kfree()

2018-04-25 Thread arvindY
On Wednesday 25 April 2018 09:14 PM, Shannon Nelson wrote: On 4/25/2018 7:56 AM, Arvind Yadav wrote: Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- arch/sp

[PATCH 30/40] neigh: switch to proc_create_seq_data

2018-04-25 Thread Christoph Hellwig
And use proc private data directly instead of doing a detour through seq->private. Signed-off-by: Christoph Hellwig --- net/core/neighbour.c | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ce51

[PATCH 11/12] perf evsel: Only fall back group read for leader

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Kan Liang Perf doesn't support mixed events from different PMUs (except software event) in a group. The perf stat should output / for all events, but it doesn't. For example, perf stat -e '{cycles,uncore_imc_5/umask=0xF,event=0x4/,instructions}' cycles uncore_imc_

[PATCH 09/12] perf pmu: Fix core PMU alias list for X86 platform

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Kan Liang When counting uncore event with alias, core event is mistakenly involved, for example: perf stat --no-merge -e "unc_m_cas_count.all" -C0 sleep 1 Performance counter stats for 'CPU(s) 0': 0 unc_m_cas_count.all [uncore_imc_4] 0 unc

[PATCH 12/12] perf stat: Fix duplicate PMU name for interval print

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Kan Liang PMU name is printed repeatedly for interval print, for example: perf stat --no-merge -e 'unc_m_clockticks' -a -I 1000 # time counts unit events 1.001053069243,702,144 unc_m_clockticks [uncore_imc_4] 1.001053069244,268,304

[PATCH 08/12] perf record: Fix s390 undefined record__auxtrace_init() return value

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Command 'perf record' calls: cmd_report() record__auxtrace_init() auxtrace_record__init() On s390 function auxtrace_record__init() returns random return value due to missing initialization. This sometime causes 'perf record' to exit immediately without error m

[PATCH 06/12] perf evsel: Disable write_backward for leader sampling group events

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa .. and other related fields that do not need to be enabled for events that have sampling leader. It fixes the perf top usage Ingo reported broken: # perf top -e '{cycles,msr/aperf/}:S' The 'msr/aperf/' event is configured for write_back sampling, which is not allowed by the M

[PATCH 10/12] perf stat: Print out hint for mixed PMU group error

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Kan Liang Perf doesn't support mixed events from different PMUs (except software event) in a group. For this case, only "" or "" are printed out. There is no hint which guides users to fix the issue. Checking the PMU type of events to determine if they are from the same PMU. There may be f

Re: [BUG] igb: reconnecting of cable not always detected

2018-04-25 Thread Alexander Duyck
On Wed, Apr 25, 2018 at 2:47 AM, Holger Schurig wrote: > Hi Alex, > > (Sent a 2nd time, this time with "Reply to all" and without HTML, so > that it hits the kernel archives as well. Sorry for the noise. > > > > >> Sounds like the link is failing to re-establish. You might double >> check a few th

[PATCH 07/12] perf mem: Document incorrect and missing options

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Sangwon Hong Several options were incorrectly described, some lacked describing required arguments while others were simply not documented, fix it. Signed-off-by: Sangwon Hong Acked-by: Jiri Olsa Cc: Namhyung Kim Cc: Taeung Song Link: http://lkml.kernel.org/r/1524382146-19609-1-git-se

[PATCH 05/12] perf pmu: Fix pmu events parsing rule

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently all the event parsing fails end up in the event_pmu rule, and display misleading help like: $ perf stat -e inst kill event syntax error: 'inst' \___ Cannot find PMU `inst'. Missing kernel support? ... The reason is that the event_pmu is too

[GIT PULL 00/12] perf/urgent fixes

2018-04-25 Thread Arnaldo Carvalho de Melo
acme/linux into perf/urgent (2018-04-21 09:38:33 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.17-20180425 for you to fetch changes up to 80ee8c588afde077cb0439e15129579a267916c4: perf stat: Fix dup

[PATCH 04/12] perf stat: Keep the / modifier separator in fallback

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The 'perf stat' fallback for EACCES error sets the exclude_kernel perf_event_attr and tries perf_event_open() again with it. In addition, it also changes the name of the event to reflect that change by adding the 'u' modifier. But it does not take into account the '/' separator,

[PATCH 03/12] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Thomas Richter perf test case 58 (record+probe_libc_inet_pton.sh) executed on s390x using kernel 4.16.0rc3 displays this result: # perf trace --no-syscalls -e probe_libc:inet_pton/call-graph=dwarf/ ping -6 -c 1 ::1 probe_libc:inet_pton: (3ffa0240448) __GI___inet_pton (

[PATCH 23/40] jfs: simplify procfs code

2018-04-25 Thread Christoph Hellwig
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Signed-off-by: Christoph Hellwig --- fs/jfs/jfs_debug.c| 43 ++- fs/jfs/jfs_debug.h

[PATCH 01/12] perf machine: Set main kernel end address properly

2018-04-25 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim map_groups__fixup_end() was called to set the end addresses of kernel and module maps. But now since machine__create_modules() sets the end address of modules properly, the only remaining piece is the kernel map. We can set it with adjacent module's address directly instead o

[PATCH 00/17] y2038: system calls, part 3

2018-04-25 Thread Arnd Bergmann
After the first timekeeping series from Deepa (merged into -tip now) and my follow-up for IPC system calls, this is a third set of system call conversions following the same principle. Most of the changes are straightforward, so I'm grouping them into a larger series even though the system calls a

Re: [PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive

2018-04-25 Thread Matthew Wilcox
On Wed, Apr 25, 2018 at 06:01:02AM -0700, Eric Dumazet wrote: > On 04/24/2018 11:28 PM, Christoph Hellwig wrote: > > On Tue, Apr 24, 2018 at 10:27:21PM -0700, Eric Dumazet wrote: > >> When adding tcp mmap() implementation, I forgot that socket lock > >> had to be taken before current->mm->mmap_sem.

[PATCH 17/17] y2038: signal: Add compat_sys_rt_sigtimedwait_time64

2018-04-25 Thread Arnd Bergmann
Now that 32-bit architectures have two variants of sys_rt_sigtimedwaid() for 32-bit and 64-bit time_t, we also need to have a second compat system call entry point on the corresponding 64-bit architectures. The traditional system call keeps getting handled by compat_sys_rt_sigtimedwait(), and this

[PATCH 11/17] y2038: Prepare sched_rr_get_interval for __kernel_timespec

2018-04-25 Thread Arnd Bergmann
This is a preparation patch for converting sys_sched_rr_get_interval to work with 64-bit time_t on 32-bit architectures. The 'interval' argument is changed to struct __kernel_timespec, which will be redefined using 64-bit time_t in the future. The compat version of the system call in turn is enable

<    3   4   5   6   7   8   9   10   11   12   >