[PATCH 04/13] Always expose MAP_UNINITIALIZED to userspace

2015-11-03 Thread Palmer Dabbelt
This used to be hidden behind CONFIG_MMAP_ALLOW_UNINITIALIZED, so userspace wouldn't actually ever see it be non-zero. While I had originally hoped to avoid hiding it, it looks like this conflicts with MAP_HUGE_SHIFT so I think it's safer to just keep this 0. Architectures that want to define thi

Re: [v4.1.10-rt10][PATCH 1/2] genirq: introduce new generic_handle_irq_rt_wa() api

2015-11-03 Thread Thomas Gleixner
On Tue, 3 Nov 2015, Grygorii Strashko wrote: > On 11/02/2015 09:38 PM, Thomas Gleixner wrote: > > > > Why aren't you simply marking these demultiplex handlers with IRQ_NO_THREAD? > > > In general, it's possible. But, in this case, worst scenario will look like: > dra7xx_pcie_msi_irq_handler() >

[PATCH 05/13] Split FDPIC "struct elf_prstatus" to "struct elf_fdpic_prstatus"

2015-11-03 Thread Palmer Dabbelt
This is a pretty big change that I haven't tested any, which worries me a lot. The general idea here is that "struct elf_prstatus" can be visible to userspace (from ) " Generic ptrace interface that exports the architecture specific regsets using the corresponding NT_* types (which are al

Re: [PATCH] x86/intel_cacheinfo: Fix LLC topology for AMD Fam17h systems

2015-11-03 Thread Borislav Petkov
On Tue, Nov 03, 2015 at 01:41:53PM -0600, Aravind Gopalakrishnan wrote: > cpu_llc_id references should be wrapped under #ifdef CONFIG_SMP. > > Did that and kernel build worked with the attached config. > > Will send a V2 with the fix. Why aren't you doing all that figuring out what the llc_id is

Re: [PATCH v12 2/6] fpga: add bindings document for simple fpga bus

2015-11-03 Thread Rob Herring
On Tue, Nov 3, 2015 at 10:28 AM, atull wrote: > On Fri, 30 Oct 2015, Rob Herring wrote: > >> On Thu, Oct 29, 2015 at 11:02 AM, atull wrote: >> > On Wed, 28 Oct 2015, Rob Herring wrote: >> > >> >> On Tue, Oct 27, 2015 at 5:09 PM, wrote: >> >> > From: Alan Tull >> >> > >> >> > New bindings docum

Re: [PATCH v2] livepatch: old_name.number scheme in livepatch sysfs directory

2015-11-03 Thread Jiri Kosina
On Tue, 3 Nov 2015, Petr Mladek wrote: > Also I would omit the suffix at all when it is the first occurrence. It > will cause that unique symbols will not be numbered. That'd mean that the names (including suffixes) are not stable, because a particular name that has originally been unique can l

Re: [v4.1.10-rt10][PATCH 0/2] PCI: dra7xx/dwc: fix "WARNING: CPU: 1 PID: 82 at kernel/irq/handle.c:150 handle_irq_event_percpu"

2015-11-03 Thread Thomas Gleixner
On Tue, 3 Nov 2015, Grygorii Strashko wrote: > On 11/03/2015 03:46 PM, Sebastian Andrzej Siewior wrote: > > On 11/02/2015 08:30 PM, Grygorii Strashko wrote: > >> On -RT above code will generate warnings, because > >> driver_xx_hw_irq_handler() > >> will be forced threaded (by default) and, as resu

Re: [PATCH 1/2] efi-pstore: fix kernel-doc argument name

2015-11-03 Thread Kees Cook
On Sat, Oct 31, 2015 at 8:23 AM, Geliang Tang wrote: > The first argument name in the kernel-doc argument list for > efi_pstore_scan_sysfs_enter() was slightly off. Fix it for the > kernel doc. > > Signed-off-by: Geliang Tang Acked-by: Kees Cook Thanks! -Kees > --- > drivers/firmware/efi/ef

Re: [GIT] Networking

2015-11-03 Thread Linus Torvalds
On Tue, Nov 3, 2015 at 4:53 AM, Hannes Frederic Sowa wrote: > > And furthermore we don't actually have to rely on CSE if we want to, our > overflow checks could look much more simpler as in "ordinary" C code > because we tell the compiler that signed overflow is defined throughout > the kernel ( -

Re: [PATCH 2/2] pstore: fix code comment to match code

2015-11-03 Thread Kees Cook
On Sat, Oct 31, 2015 at 8:23 AM, Geliang Tang wrote: > Fix code comment about kmsg_dump register so it matches the code. > > Signed-off-by: Geliang Tang Acked-by: Kees Cook -Kees > --- > fs/pstore/platform.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fs/pst

Re: [PATCH v2] livepatch: old_name.number scheme in livepatch sysfs directory

2015-11-03 Thread Josh Poimboeuf
On Tue, Nov 03, 2015 at 08:57:24PM +0100, Jiri Kosina wrote: > On Tue, 3 Nov 2015, Petr Mladek wrote: > > > Also I would omit the suffix at all when it is the first occurrence. It > > will cause that unique symbols will not be numbered. > > That'd mean that the names (including suffixes) are not

Re: [PATCH v9 1/1] efi: a misc char interface for user to update efi firmware

2015-11-03 Thread Borislav Petkov
On Mon, Nov 02, 2015 at 06:47:29AM +, Kweh, Hock Leong wrote: > By looking at your dmesg log, the above print out message seem that > someone has called the flush() after the write(2). In my environment, flush() > only being called in 2 places which are before write(2) and during close(2). > Th

Re: [PATCH] x86/intel_cacheinfo: Fix LLC topology for AMD Fam17h systems

2015-11-03 Thread Aravind Gopalakrishnan
On 11/3/2015 1:52 PM, Borislav Petkov wrote: On Tue, Nov 03, 2015 at 01:41:53PM -0600, Aravind Gopalakrishnan wrote: cpu_llc_id references should be wrapped under #ifdef CONFIG_SMP. Did that and kernel build worked with the attached config. Will send a V2 with the fix. Why aren't you doing al

Re: [PATCH v2] ipc/msg: Implement lockless pipelined wakeups

2015-11-03 Thread Sebastian Andrzej Siewior
On 11/03/2015 06:30 PM, Davidlohr Bueso wrote: > On Tue, 03 Nov 2015, Sebastian Andrzej Siewior wrote: > >> @@ -577,26 +570,23 @@ static inline int pipelined_send(struct >> msg_queue *msq, struct msg_msg *msg) >> >> list_del(&msr->r_list); >> if (msr->r_maxsize < msg->m_ts)

Re: [PATCH 11/13] Always define MAX_RAW_MINORS as 2**20 in userspace

2015-11-03 Thread kbuild test robot
Hi Palmer, [auto build test ERROR on v4.3-rc7] [also ERROR on: next-20151103] url: https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT-from-all-asm-generic-fcntl-h/20151104-035501 base: https://github.com/0day-ci/linux Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT

Re: [PATCH v9 1/1] efi: a misc char interface for user to update efi firmware

2015-11-03 Thread Borislav Petkov
On Mon, Nov 02, 2015 at 07:17:28AM +, Kweh, Hock Leong wrote: > This is not a return value to indicate what is going now. It is a flag > used in "cap_info->index" which positive value has a meaning of index > number. I am using the negative value for the flag which similar to > the implementati

Re: [v4.1.10-rt10][PATCH 1/2] genirq: introduce new generic_handle_irq_rt_wa() api

2015-11-03 Thread Sebastian Andrzej Siewior
On 11/03/2015 08:51 PM, Thomas Gleixner wrote: >> where MAX_MSI_IRQS = 32 now, but potentially can be increased up to 256. > > And you really oversimplified the code above. The reality is: > > for (i = 0; i < MAX_MSI_CTRLS: i++) { > u32 status = read_msi_ctrl(i); > > for_each_bit

Re: [PATCH v3 13/15] block, dax: make dax mappings opt-in by default

2015-11-03 Thread Dave Chinner
On Mon, Nov 02, 2015 at 11:35:04PM -0800, Dan Williams wrote: > On Mon, Nov 2, 2015 at 4:32 PM, Dave Chinner wrote: > > On Sun, Nov 01, 2015 at 11:30:53PM -0500, Dan Williams wrote: > >> Now that we have the ability to dynamically enable DAX for a raw block > >> inode, make the behavior opt-in by

[RFC PATCH 02/28] kbuild: allow architectures to automatically define kconfig symbols

2015-11-03 Thread Octavian Purdila
This patch calls an architecture hook during the kernel config process that allows the architecture to automatically define kconfig symbols. This can be done by exporting environment variables from the new architecture hook. Signed-off-by: Octavian Purdila --- Makefile | 1 + 1 file changed, 1 i

[RFC PATCH 10/28] lkl: memory mapped I/O support

2015-11-03 Thread Octavian Purdila
All memory mapped I/O access is redirected to the host via the iomem_access host operation. The host can setup the memory mapped I/O region via the ioremap operation. This allows the host to implement support for various devices, such as block or network devices. Signed-off-by: Octavian Purdila

[RFC PATCH 27/28] lkl: add support for Windows hosts

2015-11-03 Thread Octavian Purdila
This patch allows LKL to be compiled for windows hosts with the mingw toolchain. Note that patches [1] that fix weak symbols linking are required to successfully compile LKL with mingw. The patch disables the modpost pass over vmlinux since modpost only works with ELF objects. It also adds and wo

[RFC PATCH 13/28] lkl: initialization and cleanup

2015-11-03 Thread Octavian Purdila
Add the lkl_start_kernel and lkl_sys_halt APIs that start and respectively stops the Linux kernel. lkl_start_kernel creates a separate threads that will run the initial and idle kernel thread. It waits for the kernel to complete initialization before returning, to avoid races with system calls iss

[RFC PATCH 28/28] lkl tools: add support for Windows host

2015-11-03 Thread Octavian Purdila
Add host operations for Windows host and virtio disk support. Trivial changes to the generic virtio host code are made since mingw %p format is different then what the MMIO virtion driver expects. The boot test is updated to support Window hosts as well. Signed-off-by: Octavian Purdila --- too

[RFC PATCH 26/28] asm-generic: vmlinux.lds.h: allow customized rodata section name

2015-11-03 Thread Octavian Purdila
Some architectures needs customized rodata section names (e.g. lkl for Windows host). Allow them to set the rodata section name. Signed-off-by: Octavian Purdila --- arch/lkl/include/asm/vmlinux.lds.h | 5 - include/asm-generic/vmlinux.lds.h | 9 +++-- 2 files changed, 7 insertions(+), 7

[RFC PATCH 12/28] init: allow architecture code to overide run_init_process

2015-11-03 Thread Octavian Purdila
This is needed for arch/lkl where where execve can not be implemented and init only runs in kernel space. Signed-off-by: Octavian Purdila --- init/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 9e64d70..efd8f7c 100644 --- a/init/main

[RFC PATCH 25/28] signal: use CONFIG_X86_32 instead of __i386__

2015-11-03 Thread Octavian Purdila
Signed-off-by: Octavian Purdila --- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/signal.c b/kernel/signal.c index 0f6bbbe..0367131 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1137,7 +1137,7 @@ static void print_fatal_signal(int signr)

[RFC PATCH 11/28] lkl: basic kernel console support

2015-11-03 Thread Octavian Purdila
Write operations are deferred to the host print operation. Signed-off-by: Octavian Purdila --- arch/lkl/kernel/console.c | 41 + 1 file changed, 41 insertions(+) create mode 100644 arch/lkl/kernel/console.c diff --git a/arch/lkl/kernel/console.c b/arch/l

[RFC PATCH 24/28] lkl tools: tool that reads/writes to/from a filesystem image

2015-11-03 Thread Octavian Purdila
Signed-off-by: Octavian Purdila --- tools/lkl/.gitignore | 2 + tools/lkl/Makefile | 6 +- tools/lkl/cptofs.c | 467 +++ 3 files changed, 474 insertions(+), 1 deletion(-) create mode 100644 tools/lkl/cptofs.c diff --git a/tools/lkl/.gitign

[RFC PATCH 23/28] lkl tools: tool that converts a filesystem image to tar

2015-11-03 Thread Octavian Purdila
Simple utility that converts a filesystem image to a tar file, preserving file rights and extended attributes. Signed-off-by: Octavian Purdila --- tools/lkl/.gitignore | 1 + tools/lkl/Makefile | 3 + tools/lkl/fs2tar.c | 397 +++ 3 files c

[RFC PATCH 22/28] lkl tools: "boot" test

2015-11-03 Thread Octavian Purdila
Add a simple LKL test applications that starts the kernel and performs simple tests that minimally exercise the LKL API. Signed-off-by: Octavian Purdila --- tools/lkl/.gitignore| 1 + tools/lkl/Makefile | 7 +- tools/lkl/tests/boot.c | 488 ++

[RFC PATCH 09/28] lkl: timers, time and delay support

2015-11-03 Thread Octavian Purdila
Clockevent driver based on host timer operations and clocksource driver and udelay support based on host time operations. Signed-off-by: Octavian Purdila --- arch/lkl/kernel/time.c | 125 + 1 file changed, 125 insertions(+) create mode 100644 arch

[RFC PATCH 21/28] lkl tools: host lib: posix host operations

2015-11-03 Thread Octavian Purdila
Implement LKL host operations for POSIX hosts. Signed-off-by: Octavian Purdila --- tools/lkl/Makefile | 6 ++ tools/lkl/lib/posix-host.c | 206 + 2 files changed, 212 insertions(+) create mode 100644 tools/lkl/lib/posix-host.c diff --git a/

Re: [PATCH 13/13] Re-enable and clean up "check_config()" in headers_check.pl

2015-11-03 Thread kbuild test robot
Hi Palmer, [auto build test WARNING on v4.3-rc7] [also WARNING on: next-20151103] url: https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT-from-all-asm-generic-fcntl-h/20151104-035501 base: https://github.com/0day-ci/linux Palmer-Dabbelt/Remove-ifdef

[RFC PATCH 19/28] lkl tools: host lib: virtio block device

2015-11-03 Thread Octavian Purdila
Host independent implementation for virtio block devices. The host dependent part of the host library must provide an implementation for lkl_dev_block_ops. Disks can be added to the LKL configuration via lkl_disk_add(), a new LKL application API. Signed-off-by: Octavian Purdila --- tools/lkl/in

Re: [PATCH 13/13] Re-enable and clean up "check_config()" in headers_check.pl

2015-11-03 Thread kbuild test robot
Hi Palmer, [auto build test WARNING on v4.3-rc7] [also WARNING on: next-20151103] url: https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT-from-all-asm-generic-fcntl-h/20151104-035501 base: https://github.com/0day-ci/linux Palmer-Dabbelt/Remove-ifdef

[RFC PATCH 20/28] lkl tools: host lib: filesystem helpers

2015-11-03 Thread Octavian Purdila
Add LKL applications APIs to mount and unmount a filesystem from a disk added via lkl_disk_add(). Also add open/close/read directory wrappers on top of lkl_sys_getdents64. Signed-off-by: Octavian Purdila --- tools/lkl/include/lkl.h | 66 +++ tools/lkl/lib/fs.c | 218 ++

[RFC PATCH 17/28] lkl tools: host lib: memory mapped I/O helpers

2015-11-03 Thread Octavian Purdila
This patch adds helpers for implementing the memory mapped I/O host operations that can be used by code that implements host devices. Generic host operations for lkl_ioremap and lkl_iomem_access are provided that allows multiplexing multiple I/O memory mapped regions. The host device code can crea

[RFC PATCH 08/28] lkl: system call interface and application API

2015-11-03 Thread Octavian Purdila
The LKL application API is based on the kernel system call interface in order to offer a stable API to applications. Note that we can't offer the full Linux system call interface due to LKL limitations such as lack of virtual memory, signal, user processes, etc. The host is using the LKL interrupt

[RFC PATCH 16/28] lkl tools: host lib: add lkl_strerror and lkl_printf

2015-11-03 Thread Octavian Purdila
Add basic utility functions for getting a string from a kernel error code and a fprintf like function that uses the host print operation. The latter is useful for informing the user about errors that occur in the host library. Signed-off-by: Octavian Purdila --- tools/lkl/include/lkl.h |

[RFC PATCH 18/28] lkl tools: host lib: virtio devices

2015-11-03 Thread Octavian Purdila
Add helpers for implementing host virtio devices. It uses the memory mapped I/O helpers to interact with the Linux MMIO virtio transport driver and offers support to setup and add a new virtio device, dispatch requests from the incoming queues as well as support for completing requests. All added

[RFC PATCH 14/28] lkl: plug in the build system

2015-11-03 Thread Octavian Purdila
Basic Makefiles for building LKL. Add a new architecture specific target for installing the resulting library files and headers. Signed-off-by: Octavian Purdila --- arch/lkl/Makefile| 35 +++ arch/lkl/kernel/Makefile | 3 +++ 2 files changed, 38 insertion

[RFC PATCH 15/28] lkl tools: skeleton for host side library, tests and tools

2015-11-03 Thread Octavian Purdila
This patch adds the skeleton for the host library, tests and application examples. The host library is implementing the host operations needed by LKL and is split into host dependent (depends on a specific host, e.g. POSIX hosts) and host independent parts (will work on all supported hosts). Sign

[PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-03 Thread Douglas Anderson
If you've got your interrupt signals bouncing a bit as you insert your USB device, you might end up in a state when the device is connected but the driver doesn't know it. Specifically, the observed order is: 1. hardware sees connect 2. hardware sees disconnect 3. hardware sees connect 4. dwc2

[RFC PATCH 06/28] lkl: kernel threads support

2015-11-03 Thread Octavian Purdila
LKL does not support user processes but it must support kernel threads as part as the normal kernel work-flow. It uses host operations to create and terminate host threads that are going to run the kernel threads. It also uses semaphores to synchronize those threads and to allow the Linux kernel sc

[RFC PATCH 00/28] Linux Kernel Library

2015-11-03 Thread Octavian Purdila
LKL (Linux Kernel Library) is aiming to allow reusing the Linux kernel code as extensively as possible with minimal effort and reduced maintenance overhead. Examples of how LKL can be used are: creating userspace applications (running on Linux and other operating systems) that can read or write Li

[RFC PATCH 07/28] lkl: interrupt support

2015-11-03 Thread Octavian Purdila
Add APIs that allows the host to reserve and free and interrupt number and also to trigger an interrupt. The trigger operation will simply store the interrupt data in queue. The interrupt handler is run later, at the first opportunity it has to avoid races with any kernel threads. Currently, inte

[RFC PATCH 05/28] lkl: memory handling

2015-11-03 Thread Octavian Purdila
LKL is a non MMU architecture and hence there is not much work left to do other than initializing the boot allocator and providing the page and page table definitions. The backstore memory is allocated via a host operation and the memory size to be used is specified when the kernel is started, in

Re: [PATCH 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-03 Thread Doug Anderson
John, On Fri, Oct 30, 2015 at 1:38 PM, John Youn wrote: > On 10/16/2015 3:10 PM, Douglas Anderson wrote: >> If you've got your interrupt signals bouncing a bit as you insert your >> USB device, you might end up in a state when the device is connected but >> the driver doesn't know it. >> >> Speci

[PATCH v2 2/2] usb: dwc2: host: Clear interrupts before handling them

2015-11-03 Thread Douglas Anderson
In general it is wise to clear interrupts before processing them. If you don't do that, you can get: 1. Interrupt happens 2. You look at system state and process interrupt 3. A new interrupt happens 4. You clear interrupt without processing it. This patch was actually a first attempt to fix m

[RFC PATCH 01/28] asm-generic: atomic64: allow using generic atomic64 on 64bit platforms

2015-11-03 Thread Octavian Purdila
Signed-off-by: Octavian Purdila --- include/asm-generic/atomic64.h | 2 ++ include/linux/atomic.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/atomic64.h b/include/asm-generic/atomic64.h index d48e78c..d0eb6cd 100644 --- a/include/asm-generic/a

[RFC PATCH 04/28] lkl: host interface

2015-11-03 Thread Octavian Purdila
This patch introduces the host operations that define the interface between the LKL and the host. These operations must be provided either by a host library or by the application itself. Signed-off-by: Octavian Purdila --- arch/lkl/include/asm/host_ops.h | 9 arch/lkl/include/uapi/asm

[RFC PATCH 03/28] lkl: architecture skeleton for Linux kernel library

2015-11-03 Thread Octavian Purdila
Adds the LKL Kconfig, vmlinux linker script, basic architecture headers and miscellaneous basic functions or stubs such as dump_stack(), show_regs() and cpuinfo proc ops. The headers we introduce in this patch are simple wrappers to the asm-generic headers or stubs for things we don't support, suc

[PATCH] string_helpers: fix precision loss for some inputs

2015-11-03 Thread James Bottomley
From: James Bottomley It was noticed that we lose precision in the final calculation for some inputs. The most egregious example is size=3000 blk_size=1900 in units of 10 should yield 5.70 MB but in fact yields 3.00 MB (oops). This is because the current algorithm doesn't correctly account for

[PATCH V2] x86/AMD: Fix LLC topology for AMD Fam17h systems

2015-11-03 Thread Aravind Gopalakrishnan
On AMD Fam17h systems, the last level cache is not resident in Northbridge. Therefore, we cannot assign cpu_llc_id to same value as Node ID (as we have been doing currently) We should rather look at the ApicID bits of the core to provide us the last level cache ID info. Doing that here. Signed-of

[PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled as well. This currently happens, because we exit __netdev_update_features() when we se

Re: [PATCH v2] livepatch: old_name.number scheme in livepatch sysfs directory

2015-11-03 Thread Chris J Arges
On 11/03/2015 10:50 AM, Josh Poimboeuf wrote: > On Tue, Nov 03, 2015 at 05:09:48PM +0100, Miroslav Benes wrote: >> On Tue, 3 Nov 2015, Josh Poimboeuf wrote: >> >>> On Tue, Nov 03, 2015 at 11:52:08AM +0100, Miroslav Benes wrote: On Mon, 2 Nov 2015, Chris J Arges wrote: [...] >

Re: [GIT] Networking

2015-11-03 Thread Linus Torvalds
On Tue, Nov 3, 2015 at 12:05 PM, Linus Torvalds wrote: > result = add_overflow( > mul_overflow(sec, SEC_CONVERSION, &overflow), > mul_overflow(nsec, NSEC_CONVERSION, &overflow), > &overflow); > > return overflow ? MAX_JIFFIES : result; Thinking more about this ex

[PATCH 0/3] batman-adv: Deletion of a few unnecessary checks

2015-11-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Nov 2015 21:34:29 +0100 Further update suggestions were taken into account after a patch was applied from static source code analysis. Markus Elfring (3): Delete an unnecessary check before the function call "batadv_softif_vlan_free_ref" Split a condition c

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Dave Chinner
On Mon, Nov 02, 2015 at 11:20:49PM -0800, Dan Williams wrote: > On Mon, Nov 2, 2015 at 9:40 PM, Dave Chinner wrote: > > On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Williams wrote: > >> No, we definitely can't do that. I think your mental model of the > >> cache flushing is similar to the disk

[PATCH 1/3] batman-adv: Delete an unnecessary check before the function call "batadv_softif_vlan_free_ref"

2015-11-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Nov 2015 19:20:34 +0100 The batadv_softif_vlan_free_ref() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfr

[PATCH 2/3] batman-adv: Split a condition check

2015-11-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Nov 2015 20:41:02 +0100 Let us split a check for a condition at the beginning of the batadv_is_ap_isolated() function so that a direct return can be performed in this function if the variable "vlan" contained a null pointer. Signed-off-by: Markus Elfring --- n

[PATCH 3/3] batman-adv: Less function calls in batadv_is_ap_isolated() after error detection

2015-11-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Nov 2015 21:10:51 +0100 The variables "tt_local_entry" and "tt_global_entry" were eventually checked again despite of a corresponding null pointer test before. Let us avoid this double check by reordering a function call sequence and the better selection of jump

Re: [PATCH v3 1/4] lib/string_helpers: change blk_size to u32 for string_get_size() interface

2015-11-03 Thread Rasmus Villemoes
On Tue, Nov 03 2015, James Bottomley wrote: > > It was a suggestion when I explained what the missing sources of > precision were, I don't think it's really a suggestion when it comes > with an exemplary patch. ex·em·pla·ry adjective 1. serving as a desirable model; representing the bes

Re: [PATCH v3 02/15] dax: increase granularity of dax_clear_blocks() operations

2015-11-03 Thread Dave Chinner
On Tue, Nov 03, 2015 at 10:57:57AM -0700, Ross Zwisler wrote: > On Mon, Nov 02, 2015 at 09:31:11PM -0800, Dan Williams wrote: > > On Mon, Nov 2, 2015 at 8:48 PM, Dave Chinner wrote: > > > On Mon, Nov 02, 2015 at 07:27:26PM -0800, Dan Williams wrote: > > >> On Mon, Nov 2, 2015 at 4:51 PM, Dave Chin

Linux 4.2.5 System crash when removing USB memory stick

2015-11-03 Thread Jeffrey Merkey
While removing a USB memory card after writing data and syncing, system crashes and hard hangs with flashing keyboard lights. Nov 3 13:46:54 aya kernel: kjournald starting. Commit interval 5 seconds Nov 3 13:46:54 aya kernel: EXT3-fs (sdc2): warning: checktime reached, running e2fsck is recomme

Re: [GIT PULL] parisc architecture updates for v4.3

2015-11-03 Thread Linus Torvalds
On Sun, Oct 25, 2015 at 4:49 AM, Helge Deller wrote: > > please pull some patches for the parisc architecture for kernel v4.3 from: So no way was I going to pull that for 4.3, and I delayed it to the merge window. However, even now that we're in the merge window, and I look at it again: > The m

Re: [PATCH 2/2] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-03 Thread Sinan Kaya
On 11/3/2015 5:43 AM, Arnd Bergmann wrote: Ok, got it. Best add an explanation like the above in the interrupt handler, to prevent this from accidentally getting 'cleaned up' to use readl(), or copied into a driver that uses PCI ordering rules where it is actually wrong. I'm adding this dis

Re: [PATCH 2/2] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-03 Thread Arnd Bergmann
On Tuesday 03 November 2015 16:07:34 Sinan Kaya wrote: > On 11/3/2015 5:43 AM, Arnd Bergmann wrote: > > Ok, got it. > > > > Best add an explanation like the above in the interrupt handler, > > to prevent this from accidentally getting 'cleaned up' to use > > readl(), or copied into a driver that us

Re: [PATCH v2] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2015-11-03 Thread Yasuaki Ishimatsu
On Tue, 3 Nov 2015 11:21:59 -0600 John Allen wrote: > This patch fixes a bug where a kernel warning is triggered when performing > a memory hotplug on ppc64. This warning may also occur on any architecture > that has multiple sections per memory block. > > [ 78.300767] [ cut here

Re: [GIT PULL] Thermal-SoC management updates for v4.4-rc1 #1

2015-11-03 Thread Rafael J. Wysocki
HI, On Tue, Nov 3, 2015 at 6:13 PM, Eduardo Valentin wrote: > Rui, Rafael, > > On Tue, Nov 03, 2015 at 03:10:28AM +, Zhang, Rui wrote: >> >> > Javi Merino (2): >> > PM / OPP: get the voltage for all OPPs >> >> I think this patch should be took by Rafael, right? >> >> Thanks, >> Rui >> >

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Alexander Duyck
On 11/03/2015 12:36 PM, Jarod Wilson wrote: With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled as well. This currently happens, because

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Ross Zwisler
On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Williams wrote: > On Mon, Nov 2, 2015 at 5:16 PM, Dave Chinner wrote: > > On Sun, Nov 01, 2015 at 11:30:58PM -0500, Dan Williams wrote: <> > > Yes, that's a basic feature of Ross's patches. Hence I think this > > special case DAX<->bdev interface is th

Re: [PATCH v3 1/4] lib/string_helpers: change blk_size to u32 for string_get_size() interface

2015-11-03 Thread James Bottomley
On Tue, 2015-11-03 at 21:57 +0100, Rasmus Villemoes wrote: > On Tue, Nov 03 2015, James Bottomley wrote: > > > > > It was a suggestion when I explained what the missing sources of > > precision were, I don't think it's really a suggestion when it comes > > with an exemplary patch. > > ex·em·pla·

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Dan Williams
On Tue, Nov 3, 2015 at 12:51 PM, Dave Chinner wrote: > On Mon, Nov 02, 2015 at 11:20:49PM -0800, Dan Williams wrote: >> On Mon, Nov 2, 2015 at 9:40 PM, Dave Chinner wrote: >> > On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Williams wrote: >> >> No, we definitely can't do that. I think your ment

Re: [PATCH v2] string_helpers: fix precision loss for some inputs

2015-11-03 Thread James Bottomley
From: James Bottomley It was noticed that we lose precision in the final calculation for some inputs. The most egregious example is size=3000 blk_size=1900 in units of 10 should yield 5.70 MB but in fact yields 3.00 MB (oops). This is because the current algorithm doesn't correctly account for a

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Nikolay Aleksandrov
On 11/03/2015 09:36 PM, Jarod Wilson wrote: > With moving netdev_sync_lower_features() after the .ndo_set_features > calls, I neglected to verify that devices added *after* a flag had been > disabled on an upper device were properly added with that flag disabled as > well. This currently happens, b

Re: [PATCH 1/6] dmaengine: tegra-apb: Correct runtime-pm usage

2015-11-03 Thread Kevin Hilman
Jon Hunter writes: > On 29/10/15 01:57, Vinod Koul wrote: >> On Wed, Oct 28, 2015 at 01:32:12PM +, Jon Hunter wrote: >>> >>> On 28/10/15 07:03, Vinod Koul wrote: On Fri, Oct 16, 2015 at 09:25:52AM +0100, Jon Hunter wrote: [...] > /* Enable clock before accessing register */ >

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-11-03 Thread kbuild test robot
Hi Palmer, [auto build test ERROR on v4.3-rc7] [also ERROR on: next-20151103] url: https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT-from-all-asm-generic-fcntl-h/20151104-035501 base: https://github.com/0day-ci/linux Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-11-03 Thread kbuild test robot
Hi Palmer, [auto build test ERROR on v4.3-rc7] [also ERROR on: next-20151103] url: https://github.com/0day-ci/linux/commits/Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT-from-all-asm-generic-fcntl-h/20151104-035501 base: https://github.com/0day-ci/linux Palmer-Dabbelt/Remove-ifdef-CONFIG_64BIT

Re: [PATCH 0/3] PM, vfs: use filesystem freezing instead of kthread freezer

2015-11-03 Thread Rafael J. Wysocki
Hi, On Tue, Nov 3, 2015 at 10:31 AM, Jan Kara wrote: > On Tue 03-11-15 11:10:53, Dave Chinner wrote: >> On Mon, Nov 02, 2015 at 03:43:07AM +0100, Rafael J. Wysocki wrote: >> > I guess it may also helps to address the case when a device is removed >> > from a >> > suspended system, written to on

Re: [PATCHSET 0/4] perf report: Support folded callchain output (v4)

2015-11-03 Thread Brendan Gregg
On Tue, Nov 3, 2015 at 6:40 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 03, 2015 at 09:52:07PM +0900, Namhyung Kim escreveu: >> Hello, >> >> This is what Brendan requested on the perf-users mailing list [1] to >> support FlameGraphs [2] more efficiently. This patchset adds a few >> more cal

Re: [GIT PULL] parisc architecture updates for v4.3

2015-11-03 Thread David Miller
From: Linus Torvalds Date: Tue, 3 Nov 2015 13:01:21 -0800 > David: the issue wrt XPS is this: > >#define XPS_MIN_MAP_ALLOC ((L1_CACHE_BYTES - sizeof(struct xps_map)) \ >/ sizeof(u16)) > > Comments? The PARISC folks did discuss this with us networking folks... http://marc

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Dan Williams
On Tue, Nov 3, 2015 at 1:18 PM, Ross Zwisler wrote: > On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Williams wrote: >> On Mon, Nov 2, 2015 at 5:16 PM, Dave Chinner wrote: >> > On Sun, Nov 01, 2015 at 11:30:58PM -0500, Dan Williams wrote: > <> >> > Yes, that's a basic feature of Ross's patches. He

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Ross Zwisler
On Wed, Nov 04, 2015 at 07:51:31AM +1100, Dave Chinner wrote: > On Mon, Nov 02, 2015 at 11:20:49PM -0800, Dan Williams wrote: > > On Mon, Nov 2, 2015 at 9:40 PM, Dave Chinner wrote: > > > On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Williams wrote: > > >> No, we definitely can't do that. I thin

Re: [PATCH v3 05/15] libnvdimm, pmem: fix size trim in pmem_direct_access()

2015-11-03 Thread Dan Williams
On Tue, Nov 3, 2015 at 11:32 AM, Ross Zwisler wrote: > On Sun, Nov 01, 2015 at 11:30:10PM -0500, Dan Williams wrote: >> This masking prevents access to the end of the device via dax_do_io(), >> and is unnecessary as arch_add_memory() would have rejected an unaligned >> allocation. >> >> Cc: >> Cc

Re: [PATCH 5/5] ARM: asm/div64.h: adjust to generic codde

2015-11-03 Thread kbuild test robot
Hi Nicolas, [auto build test WARNING on asm-generic/master] [also WARNING on: v4.3 next-20151103] url: https://github.com/0day-ci/linux/commits/Nicolas-Pitre/div64-h-optimize-do_div-for-power-of-two-constant-divisors/20151103-065348 base: https://github.com/0day-ci/linux Nicolas-Pitre

Re: [RFC PATCH 00/28] Linux Kernel Library

2015-11-03 Thread Richard Weinberger
On Tue, Nov 3, 2015 at 9:20 PM, Octavian Purdila wrote: > LKL (Linux Kernel Library) is aiming to allow reusing the Linux kernel code > as extensively as possible with minimal effort and reduced maintenance > overhead. > > Examples of how LKL can be used are: creating userspace applications > (run

Re: [PATCH v3 14/15] dax: dirty extent notification

2015-11-03 Thread Dan Williams
On Tue, Nov 3, 2015 at 1:37 PM, Ross Zwisler wrote: > On Wed, Nov 04, 2015 at 07:51:31AM +1100, Dave Chinner wrote: >> On Mon, Nov 02, 2015 at 11:20:49PM -0800, Dan Williams wrote: >> > On Mon, Nov 2, 2015 at 9:40 PM, Dave Chinner wrote: >> > > On Mon, Nov 02, 2015 at 08:56:24PM -0800, Dan Willia

[GIT] IDE

2015-11-03 Thread David Miller
Just a y2038 fix to the pdc202xx_new IDE driver. Please pull, thanks a lot! The following changes since commit 6a13feb9c82803e2b815eca72fa7a9f5561d7861: Linux 4.3 (2015-11-01 16:05:25 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.gi

[PATCH 2/2] arm64: Allow changing of attributes outside of modules

2015-11-03 Thread Laura Abbott
Currently, the set_memory_* functions that are implemented for arm64 are restricted to module addresses only. This was mostly done because arm64 maps normal zone memory with larger page sizes to improve TLB performance. This has the side effect though of making it difficult to adjust attributes at

[PATCH 1/2] arm64: Get existing page protections in split_pmd

2015-11-03 Thread Laura Abbott
Rather than always putting the least restrictived permissions (PAGE_KERNEL_EXEC) when spliting a pmd into pages, use the existing permissions from the pmd for the page. Signed-off-by: Laura Abbott --- arch/arm64/mm/mmu.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH 0/2] Support for set_memory_* outside of module space

2015-11-03 Thread Laura Abbott
Hi, Based on a recent discussion[1] there is interest in having set_memory_* work on kernel memory for security and other use cases. This patch adds the ability for that to happen behind a kernel option. If this is welcome enough, the Kconfig can be dropped. This has been briefly tested but not s

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Michal Kubecek
On Tue, Nov 03, 2015 at 03:36:57PM -0500, Jarod Wilson wrote: > With moving netdev_sync_lower_features() after the .ndo_set_features > calls, I neglected to verify that devices added *after* a flag had been > disabled on an upper device were properly added with that flag disabled as > well. This cu

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
Michal Kubecek wrote: On Tue, Nov 03, 2015 at 03:36:57PM -0500, Jarod Wilson wrote: With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled

Re: [PATCH 0/3] cpuidle: small improvements & fixes for menu governor

2015-11-03 Thread Rafael J. Wysocki
On 10/28/2015 11:46 PM, r...@redhat.com wrote: While working on a paravirt cpuidle driver for KVM guests, I noticed a number of small logic errors in the menu governor code. These patches should get rid of some artifacts that can break the logic in the menu governor under certain corner cases, a

Re: kernel panic in 4.2.3, rb_erase in sch_fq

2015-11-03 Thread Cong Wang
On Mon, Nov 2, 2015 at 6:11 AM, Denys Fedoryshchenko wrote: > Hi! > > Actually seems i was getting this panic for a while (once per week) on > loaded pppoe server, but just now was able to get full panic message. > After checking commit logs on sch_fq.c i didnt seen any fixes, so probably > upgrad

Re: [PATCH v6 1/3] percpu: remove PERCPU_ENOUGH_ROOM which is stale definition

2015-11-03 Thread Tejun Heo
Hello, On Tue, Nov 03, 2015 at 11:12:51PM +0900, Jungseok Lee wrote: > On Nov 3, 2015, at 4:10 AM, Tejun Heo wrote: > > Dear Tejun, > > > On Sun, Nov 01, 2015 at 07:46:15AM +, Jungseok Lee wrote: > >> As pure cleanup, this patch removes PERCPU_ENOUGH_ROOM which is not > >> used any more. Tha

Re: [GIT PULL] parisc architecture updates for v4.3

2015-11-03 Thread Linus Torvalds
On Tue, Nov 3, 2015 at 1:33 PM, David Miller wrote: > >> David: the issue wrt XPS is this: >> >>#define XPS_MIN_MAP_ALLOC ((L1_CACHE_BYTES - sizeof(struct xps_map)) \ >>/ sizeof(u16)) >> >> Comments? > > The PARISC folks did discuss this with us networking folks... > > http:/

Re: Mobility Radeon HD 4530/4570/545v: flicker in 1920x1080

2015-11-03 Thread Pavel Machek
Hi! > >> >4.3-rc7 kernel, graphics works reasonably well in 1600x1200 mode. But > >> >my monitor is native 1920x1080, so that mode looks pretty ugly on > >> >screen. If I go to 1920x1080, I see colored horizontal lines (often > >> >black) as soon as there's graphics activity. > >> > > >> >pavel@ha

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
Alexander Duyck wrote: On 11/03/2015 12:36 PM, Jarod Wilson wrote: With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled as well. This cu

<    2   3   4   5   6   7   8   9   10   >