Re: [PATCH] ARM: kexec: fix crashkernel= handling

2016-04-05 Thread Dave Young
On 04/01/16 at 02:25pm, Russell King - ARM Linux wrote: [snip] > Well, if we want to remove it, we then need to sort out a method of > specifying a limit on the address - where platforms physical memory > bridges the 4GB CPU-accessible limit, the crashkernel region must be > allocated below that

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-04-05 Thread Geert Uytterhoeven
Hi Yuri, On Wed, Apr 6, 2016 at 12:08 AM, Yury Norov wrote: > This version is rebased on kernel v4.6-rc2, and has fixes in signal subsystem. > It works with updated glibc [1] (though very draft), and tested with LTP. > > It was tested on QEMU and ThunderX machines. No major difference found. > Th

Re: [RFC v5 7/7] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-04-05 Thread Yongji Xie
On 2016/4/6 8:00, Gavin Shan wrote: On Tue, Apr 05, 2016 at 09:46:44PM +0800, Yongji Xie wrote: This patch enables mmapping MSI-X tables if hardware supports interrupt remapping which can ensure that a given pci device can only shoot the MSIs assigned for it. Signed-off-by: Yongji Xie --- driv

Re: [RFC v5 6/7] PCI: Add a new bit to pci_bus_flags to indicate interrupt remapping

2016-04-05 Thread Yongji Xie
On 2016/4/6 8:11, Gavin Shan wrote: On Tue, Apr 05, 2016 at 09:46:43PM +0800, Yongji Xie wrote: I'm trying to find a proper way to indicate the capability of interrupt remapping on PPC64 because we need this to determine whether it is safe to mmap MSI-X table in VFIO driver. There is a existing

Re: [RFC v5 1/7] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set

2016-04-05 Thread Yongji Xie
On 2016/4/6 8:48, Gavin Shan wrote: On Tue, Apr 05, 2016 at 09:43:29PM +0800, Yongji Xie wrote: The resource_alignment will releases memory resources allocated by firmware so that kernel can reassign new resources later on. But this will cause the problem that no resources can be allocated by ke

Re: [RFC v5 2/7] PCI: Do not Use IORESOURCE_STARTALIGN to identify bridge resources

2016-04-05 Thread Yongji Xie
On 2016/4/6 8:55, Gavin Shan wrote: On Tue, Apr 05, 2016 at 09:43:30PM +0800, Yongji Xie wrote: Now we use the IORESOURCE_STARTALIGN to identify bridge resources in __assign_resources_sorted(). That's quite fragile. We can't make sure that the PCI devices' resources will not use IORESOURCE_START

Re: [RFC v5 3/7] PCI: Add a new option for resource_alignment to reassign alignment

2016-04-05 Thread Gavin Shan
On Tue, Apr 05, 2016 at 09:43:31PM +0800, Yongji Xie wrote: >When using resource_alignment kernel parameter, >the current implement reassigns the alignment by >changing resources' size which can potentially >break some drivers. For example, the driver uses >the size to locate some register whose le

Re: [Xen-devel] [PATCH] kernel-parameters: document earlycon=xenboot

2016-04-05 Thread Stefano Stabellini
On Tue, 5 Apr 2016, Konrad Rzeszutek Wilk wrote: > On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote: > > On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk > > wrote: > > > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote: > > >> Add earlycon=xenboot option to Docu

Re: [RFC v5 2/7] PCI: Do not Use IORESOURCE_STARTALIGN to identify bridge resources

2016-04-05 Thread Gavin Shan
On Tue, Apr 05, 2016 at 09:43:30PM +0800, Yongji Xie wrote: >Now we use the IORESOURCE_STARTALIGN to identify >bridge resources in __assign_resources_sorted(). >That's quite fragile. We can't make sure that >the PCI devices' resources will not use >IORESOURCE_STARTALIGN any more. > >In this patch,

Re: [RFC v5 1/7] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set

2016-04-05 Thread Gavin Shan
On Tue, Apr 05, 2016 at 09:43:29PM +0800, Yongji Xie wrote: >The resource_alignment will releases memory >resources allocated by firmware so that kernel >can reassign new resources later on. But this >will cause the problem that no resources can be >allocated by kernel if PCI_PROBE_ONLY was set, >e

Re: [RFC v5 6/7] PCI: Add a new bit to pci_bus_flags to indicate interrupt remapping

2016-04-05 Thread Gavin Shan
On Tue, Apr 05, 2016 at 09:46:43PM +0800, Yongji Xie wrote: >I'm trying to find a proper way to indicate >the capability of interrupt remapping on PPC64 >because we need this to determine whether it is >safe to mmap MSI-X table in VFIO driver. > >There is a existing flag for this in the IOMMU >spac

Re: [RFC v5 7/7] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-04-05 Thread Gavin Shan
On Tue, Apr 05, 2016 at 09:46:44PM +0800, Yongji Xie wrote: >This patch enables mmapping MSI-X tables if >hardware supports interrupt remapping which >can ensure that a given pci device can only >shoot the MSIs assigned for it. > >Signed-off-by: Yongji Xie >--- > drivers/vfio/pci/vfio_pci.c

Re: [PATCH 08/20] mfd: lp3943: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Kim, Milo
On 4/5/2016 8:48 PM, Laxman Dewangan wrote: Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Milo Kim Acked-by: Milo Kim --- drivers/mfd/lp3943.c |

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 - LTP results

2016-04-05 Thread Yury Norov
There are about 20 failing tests of 782 in lite scenario. float_bessel float_exp_log float_iperb float_power float_trigo pipeio_1 pipeio_3 pipeio_5 pipeio_8 abort01 clone02 kill11 mmap16 open12 pause01 rename1

[PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-04-05 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd.h | 11 ++- arch/arm64/kernel/Makef

[PATCH 24/25] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-04-05 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports next symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres; What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes correct p

[PATCH 21/25] arm64: signal: share lp64 signal routines to ilp32

2016-04-05 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 91 +- 2 files changed, 90 insertions(+), 34 deletions(-) create mode 100644 arc

[PATCH 19/25] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-04-05 Thread Yury Norov
Here new aarch32 ptrace syscall handler is introsuced to avoid run-time detection of the task type. Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/ptrace.c| 50 ++- arch/arm64/kernel/sys32.c | 1 + i

[PATCH 14/25] thread: move thread bits accessors to separated file

2016-04-05 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added by Al Viro in patch "set_restore_sigmask() is never called without SIGPENDING (and never should be)" [edd63a27] Sig

[PATCH 18/25] arm64: ilp32: introduce binfmt_ilp32.c

2016-04-05 Thread Yury Norov
to handle ILP32 binaries Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 91 2 files changed, 92 insertions(+) create mode 100644 arch/arm64/kernel/binfmt_ilp32.c diff --git a/arch/arm64/kernel/M

[PATCH 25/25] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-04-05 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 10 +- 1 file changed, 9 insertions(+), 1 delet

[PATCH 22/25] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-04-05 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32_common.h | 25 +++ arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/signal32.c | 85 --- arch/arm64/kernel/signal32_common.c | 115 +++ 4 files c

[PATCH 13/25] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-04-05 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Sign

[PATCH 17/25] arm64: introduce binfmt_elf32.c

2016-04-05 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 - arch/ar

[PATCH 11/25] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2016-04-05 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/include/asm/fpsimd.h | 2 +- arch/arm64/include/asm/hwcap.h | 4 ++-- arch/arm64/include/asm/process

[PATCH 15/25] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-04-05 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong beca

[PATCH 09/25] arm64: ensure the kernel is compiled for LP64

2016-04-05 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski Signed-off-by: Phil

[PATCH 16/25] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-04-05 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY are changed here accordi

[PATCH 10/25] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-04-05 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, ARM64_ILP32 - support of ILP32 ABI (see n

[PATCH 06/25] compat ABI: use non-compat openat and open_by_handle_at variants

2016-04-05 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked

[PATCH 12/25] arm64: compat: change config dependences to aarch32

2016-04-05 Thread Yury Norov
From: Bamvor Jian Zhang With the patches of ILP32, COMPAT is not equivalent to AARCH32 in EL0. This patch fix this by updating the dependency from COMPAT to AARCH32_EL0 for ARMV8_DEPRECATED and ARM64_ERRATUM_845719. Signed-off-by: Bamvor Jian Zhang Signed-off-by: Yury Norov --- arch/arm64/Kco

[PATCH 01/25] all: syscall wrappers: add documentation

2016-04-05 Thread Yury Norov
Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- Documentation/adding-syscalls.txt | 32 1 file changed, 32 insertions(+) diff --git a/Documentation/adding-syscalls.txt b/Documentation/adding-syscalls.txt index cc2d4ac..d02a6bd 100644 --- a/Documentation/

[PATCH 08/25] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-04-05 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm64/ilp32.txt new file mode 1006

[PATCH 02/25] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-04-05 Thread Yury Norov
Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- arch/Kconfig | 4 arch/s390/Kconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 81869a5..92fcbd4 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -589,6 +589,10 @@ config HAVE_STACK_VALIDA

[PATCH 03/25] all: s390: move wrapper infrastructure to generic headers

2016-04-05 Thread Yury Norov
This patch moves required calls to generic files to let other arches use it if needed. Here also, additional code is introduced, as s390 uses asm syscall tables, while in general case, wrappers may be used in C code. __SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's m

[PATCH 05/25] all: wrap needed syscalls in generic unistd

2016-04-05 Thread Yury Norov
As generic unistd syscall table is written in C, syscall prototypes declaration is needed. It's added to compat header. Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- include/linux/compat.h| 225 + include/uapi/asm-generic/unistd.h | 227 +

[PATCH 07/25] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-04-05 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing 32-bit architectures enable it explicitly here.

[PATCH 04/25] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/

2016-04-05 Thread Yury Norov
Some syscalls are declared conditionally, so corresponding wrappers are conditional accordingly. Signed-off-by: Yury Norov Acked-by: Heiko Carstens --- arch/s390/kernel/Makefile | 2 +- arch/s390/kernel/compat_linux.c | 4 + arch/s390/kernel/compat_wrapper.c | 129

[PATCH 23/25] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-04-05 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/ar

[RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-04-05 Thread Yury Norov
This version is rebased on kernel v4.6-rc2, and has fixes in signal subsystem. It works with updated glibc [1] (though very draft), and tested with LTP. It was tested on QEMU and ThunderX machines. No major difference found. This is RFC because ILP32 is not tested in big-endian mode. v3: https:/

Re: [Xen-devel] [PATCH] kernel-parameters: document earlycon=xenboot

2016-04-05 Thread Chris Patterson
On Tue, Apr 5, 2016 at 12:42 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote: >> On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk >> wrote: >> > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote: >> >> Add earlycon=xenboot opti

Re: [PATCHv2 6/7] ARM: socfpga: Enable Arria10 OCRAM ECC on startup

2016-04-05 Thread Borislav Petkov
On Tue, Apr 05, 2016 at 01:37:49PM -0500, Dinh Nguyen wrote: > My only suggestion was to change the 3 helper functions(ecc_set_bits, > ecc_clear_bits, and ecc_test_bits) should be static inline. That doesn't take care of the iounmap error path Thor is talking about, AFAICT. So, I've pushed out wh

Re: [PATCHv2 7/7] ARM: dts: Add Altera Arria10 OCRAM EDAC devicetree entry

2016-04-05 Thread Dinh Nguyen
On Thu, 31 Mar 2016, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree entries needed to support the Altera On-Chip > RAM EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > v2: No change > --- > arch/arm/boot/dts/socfpga_arria10.dtsi |5 + >

Re: [PATCHv2 6/7] ARM: socfpga: Enable Arria10 OCRAM ECC on startup

2016-04-05 Thread Dinh Nguyen
On Tue, 5 Apr 2016, Borislav Petkov wrote: > On Tue, Apr 05, 2016 at 12:25:33AM -0500, Thor Thayer wrote: > > I realize that I'm not calling iounmap(ecc_block_base) and I'll fix that in > > the next revision with a goto. > > I'm assuming nothing else changes. Because I've applied 1-4 already. >

[PATCH v12 00/13] support "task_isolation" mode

2016-04-05 Thread Chris Metcalf
Here is a respin of the task-isolation patch set. The previous one came out just before the merge window for 4.6 opened, so I suspect folks may have been busy merging, since it got few comments. Frederic, how are you feeling about taking this all via your tree? And what is your take on the new PR

[PATCH v12 08/13] task_isolation: add PR_TASK_ISOLATION_ONE_SHOT flag

2016-04-05 Thread Chris Metcalf
When this flag is set by the initial prctl(), the semantics of task isolation change to be "one-shot", i.e. as soon as the kernel is re-entered for any reason, task isolation is turned off. During application development, use of this flag is best coupled with STRICT mode, since otherwise any bug (

[PATCH v12 05/13] task_isolation: support CONFIG_TASK_ISOLATION_ALL

2016-04-05 Thread Chris Metcalf
This option, similar to NO_HZ_FULL_ALL, simplifies configuring a system to boot by default with all cores except the boot core running in task isolation mode. Signed-off-by: Chris Metcalf --- init/Kconfig | 10 ++ kernel/isolation.c | 6 ++ 2 files changed, 16 insertions(+) d

[PATCH v12 07/13] task_isolation: add debug boot flag

2016-04-05 Thread Chris Metcalf
The new "task_isolation_debug" flag simplifies debugging of TASK_ISOLATION kernels when processes are running in PR_TASK_ISOLATION_ENABLE mode. Such processes should get no interrupts from the kernel, and if they do, we notify either the process (if STRICT mode is set and the interrupt is not an N

[PATCH v12 04/13] task_isolation: add initial support

2016-04-05 Thread Chris Metcalf
The existing nohz_full mode is designed as a "soft" isolation mode that makes tradeoffs to minimize userspace interruptions while still attempting to avoid overheads in the kernel entry/exit path, to provide 100% kernel semantics, etc. However, some applications require a "hard" commitment from th

[PATCH v12 06/13] task_isolation: support PR_TASK_ISOLATION_STRICT mode

2016-04-05 Thread Chris Metcalf
With task_isolation mode, the task is in principle guaranteed not to be interrupted by the kernel, but only if it behaves. In particular, if it enters the kernel via system call, page fault, or any of a number of other synchronous traps, it may be unexpectedly exposed to long latencies. Add a sim

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Christoph Hellwig
On Tue, Apr 05, 2016 at 05:55:26AM -0700, Parav Pandit wrote: > Just because we add one more rdma resource, we need to ask someone to > upgrade kernel? Yes. Just like when you need any other core kernel resource. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body

Re: [PATCH 05/20] mfd: atmel-hlcdc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Boris Brezillon
On Tue, 5 Apr 2016 17:18:17 +0530 Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: Boris Brezillon Acked-by: Boris Brez

Re: [Xen-devel] [PATCH] kernel-parameters: document earlycon=xenboot

2016-04-05 Thread Chris Patterson
On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote: >> Add earlycon=xenboot option to Documentation/kernel-parameters.txt. >> > > But it is not true. > > I tried this on x86: "earlycon=xenboot console=tty0" > I can invest

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Leon Romanovsky
On Tue, Apr 05, 2016 at 05:55:26AM -0700, Parav Pandit wrote: > Hi Christoph, > > On Tue, Apr 5, 2016 at 5:42 AM, Christoph Hellwig wrote: > > On Tue, Apr 05, 2016 at 05:39:21AM -0700, Parav Pandit wrote: > >> I am not really trying to address OFED issues here. I am sure you > >> understand that

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Tejun Heo
Hello, Parav. On Tue, Apr 05, 2016 at 07:25:11AM -0700, Parav Pandit wrote: > > As it is a fairly isolated domain, to certain extent, it could be okay > > to let it go. At the same time, I know that these enterprise things > > tend to go completely wayward and am worried about individual drivers

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Parav Pandit
On Tue, Apr 5, 2016 at 7:01 AM, Tejun Heo wrote: > Hello, Parav. > > On Mon, Apr 04, 2016 at 07:22:38PM -0700, Parav Pandit wrote: >> > Is it actually customary to have rdma core module updated more >> > frequently separate from the kernel? Out-of-tree modules being >> > updated separately happen

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Parav Pandit
On Tue, Apr 5, 2016 at 7:07 AM, Tejun Heo wrote: > Just one more thing. > > On Tue, Apr 05, 2016 at 10:01:07AM -0400, Tejun Heo wrote: > ... >> > pool_info in spin lock context, made me allocate memory to get all >> > values upfront through allocation. >> > Now that the lock is going away, I can d

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Tejun Heo
Just one more thing. On Tue, Apr 05, 2016 at 10:01:07AM -0400, Tejun Heo wrote: ... > > pool_info in spin lock context, made me allocate memory to get all > > values upfront through allocation. > > Now that the lock is going away, I can do what you have described above. So, this might be okay dep

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Tejun Heo
Hello, Parav. On Mon, Apr 04, 2016 at 07:22:38PM -0700, Parav Pandit wrote: > > Is it actually customary to have rdma core module updated more > > frequently separate from the kernel? Out-of-tree modules being > > updated separately happens quite a bit but this is an in-kernel > > module, which u

[RFC v5 2/7] PCI: Do not Use IORESOURCE_STARTALIGN to identify bridge resources

2016-04-05 Thread Yongji Xie
Now we use the IORESOURCE_STARTALIGN to identify bridge resources in __assign_resources_sorted(). That's quite fragile. We can't make sure that the PCI devices' resources will not use IORESOURCE_STARTALIGN any more. In this patch, we try to use a more robust way to identify bridge resources. Sign

[RFC v5 6/7] PCI: Add a new bit to pci_bus_flags to indicate interrupt remapping

2016-04-05 Thread Yongji Xie
I'm trying to find a proper way to indicate the capability of interrupt remapping on PPC64 because we need this to determine whether it is safe to mmap MSI-X table in VFIO driver. There is a existing flag for this in the IOMMU space: enum iommu_cap { IOMMU_CAP_CACHE_COHERENCY, --->IOM

[RFC v5 7/7] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-04-05 Thread Yongji Xie
This patch enables mmapping MSI-X tables if hardware supports interrupt remapping which can ensure that a given pci device can only shoot the MSIs assigned for it. Signed-off-by: Yongji Xie --- drivers/vfio/pci/vfio_pci.c |9 +++-- drivers/vfio/pci/vfio_pci_private.h |1 + dr

[RFC v5 4/7] PCI: Add support for enforcing all MMIO BARs to be page aligned

2016-04-05 Thread Yongji Xie
When vfio passthrough a PCI device of which MMIO BARs are smaller than PAGE_SIZE, guest will not handle the mmio accesses to the BARs which leads to mmio emulations in host. This is because vfio will not allow to passthrough one BAR's mmio page which may be shared with other BARs. Otherwise, there

[RFC v5 3/7] PCI: Add a new option for resource_alignment to reassign alignment

2016-04-05 Thread Yongji Xie
When using resource_alignment kernel parameter, the current implement reassigns the alignment by changing resources' size which can potentially break some drivers. For example, the driver uses the size to locate some register whose length is related to the size. This adds a new option "noresize" f

[RFC v5 5/7] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-04-05 Thread Yongji Xie
Current vfio-pci implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs because these BARs' mmio page may be shared with other BARs. But we should allow to mmap these sub-page MMIO BARs if we can make sure these BARs' mmio page will not be shared with other BARs. To acheive that, w

[RFC v5 1/7] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set

2016-04-05 Thread Yongji Xie
The resource_alignment will releases memory resources allocated by firmware so that kernel can reassign new resources later on. But this will cause the problem that no resources can be allocated by kernel if PCI_PROBE_ONLY was set, e.g. on pSeries platform because PCI_PROBE_ONLY force kernel to use

[RFC v5 0/7] vfio-pci: Allow to mmap sub-page MMIO BARs and MSI-X table

2016-04-05 Thread Yongji Xie
Current vfio-pci implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs and MSI-X table. This is because sub-page BARs' mmio page may be shared with other BARs and MSI-X table should not be accessed directly from the guest for security reasons. But it will easily cause some performa

Re: [PATCH 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Charles Keepax
On Tue, Apr 05, 2016 at 05:18:32PM +0530, Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: Mark Brown > CC: patc...@openso

Re: [PATCH 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Linus Walleij
On Tue, Apr 5, 2016 at 1:48 PM, Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: Linus Walleij Acked-by: Linus Walleij

Re: [PATCH 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Andreas Werner
On Tue, Apr 05, 2016 at 05:18:21PM +0530, Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: Andreas Werner > --- Thanks fo

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Parav Pandit
Hi Christoph, On Tue, Apr 5, 2016 at 5:42 AM, Christoph Hellwig wrote: > On Tue, Apr 05, 2016 at 05:39:21AM -0700, Parav Pandit wrote: >> I am not really trying to address OFED issues here. I am sure you >> understand that if ib_core.ko kernel module is in-kernel module than, >> for all the fixes

Re: [PATCH 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Javier Martinez Canillas
Hello Laxman, On 04/05/2016 07:48 AM, Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: Ingi Kim > CC: Javier Martinez Can

Re: [PATCH 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Javier Martinez Canillas
Hello Laxman, On 04/05/2016 07:48 AM, Laxman Dewangan wrote: > Use devm_mfd_add_devices() for mfd devices registration and get > rid of .remove callback to remove mfd devices. This is done > by managed device framework. > > Signed-off-by: Laxman Dewangan > CC: John Crispin > CC: Javier Martinez

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Christoph Hellwig
On Tue, Apr 05, 2016 at 05:39:21AM -0700, Parav Pandit wrote: > I am not really trying to address OFED issues here. I am sure you > understand that if ib_core.ko kernel module is in-kernel module than, > for all the fixes/enhancements that goes to it would require people to > upgrade to newer kerne

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Parav Pandit
Hi Christoph, On Tue, Apr 5, 2016 at 2:06 AM, Christoph Hellwig wrote: > On Mon, Apr 04, 2016 at 09:25:04PM -0400, Tejun Heo wrote: >> Is it actually customary to have rdma core module updated more >> frequently separate from the kernel? Out-of-tree modules being >> updated separately happens qu

[PATCH 00/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
This series add devm_ version of the APIs mfd_add_devices() and mfd_release_devices() and get rid of call for mfd_release_devices() some places and also remove the need of .remove callbacks as this is not needed. Laxman Dewangan (20): mfd: Add devm_ apis for mfd_add_devices and mfd_release_devic

[PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
Add device managed APIs devm_mfd_add_devices() and devm_mfd_remove_devices() for the APIs mfd_add_devices() and mfd_remove_devices(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan --- drivers/mfd/mfd-core.c

[PATCH 06/20] mfd: bcm590xx: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Matt Porter --- drivers/mfd/bcm590xx.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff

[PATCH 03/20] mfd: act8945a: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Wenyou Yang CC: Krzysztof Kozlowski --- drivers/mfd/act8945a.c | 13 +++-- 1 file changed, 3 inser

[PATCH 02/20] mfd: Add resource management devm_mfd_{add,remove}_devices

2016-04-05 Thread Laxman Dewangan
Add devm wrappers for the mfd_add_devices() and mfd_remove_devices() in the list of managed interfaces. Signed-off-by: Laxman Dewangan --- Documentation/driver-model/devres.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-m

[PATCH 05/20] mfd: atmel-hlcdc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Boris Brezillon --- drivers/mfd/atmel-hlcdc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(

[PATCH 04/20] mfd: as3711: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Guennadi Liakhovetski --- drivers/mfd/as3711.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletio

[PATCH 13/20] mfd: rn5t618: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Beniamino Galvani --- drivers/mfd/rn5t618.c | 3 +-- 1 file changed, 1 in

[PATCH 08/20] mfd: lp3943: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Milo Kim --- drivers/mfd/lp3943.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) di

[PATCH 12/20] mfd: rk808: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Chris Zhong --- drivers/mfd/rk808.c | 3 +-- 1 file changed, 1 insertion(

[PATCH 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Andreas Werner --- drivers/mfd/menf21bmc.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) d

[PATCH 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: John Crispin CC: Javier Martinez Canillas --- drivers/mfd/mt6397-core.c | 12 ++-- 1 file changed,

[PATCH 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Ingi Kim CC: Javier Martinez Canillas --- drivers/mfd/rt5033.c | 10 +- 1 file changed, 1 insertio

[PATCH 07/20] mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Guodong Xu --- drivers/mfd/hi6421-pmic-core.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(

[PATCH 15/20] mfd: sky81452: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Gyungoh Yoo --- drivers/mfd/sky81452.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) di

[PATCH 11/20] mfd: rdc321x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Florian Fainelli --- drivers/mfd/rdc321x-southbridge.c | 8 +--- 1 file changed, 1 insertion(+), 7 dele

[PATCH 17/20] mfd: tps6507x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Todd Fischer --- drivers/mfd/tps6507x.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-)

[PATCH 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Linus Walleij --- drivers/mfd/stw481x.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff

[PATCH 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Mark Brown CC: patc...@opensource.wolfsonmicro.com --- drivers/mfd/wm8400-core.c | 25 +++--

[PATCH 19/20] mfd: tps65910: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- drivers/mfd/tps65910.c | 3 +-- 1 file changed, 1 inser

[PATCH 18/20] mfd: tps65217: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- drivers/mfd/tps65217.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-)

Re: [v9,3/4] tpm: Initialize TPM and get durations and timeouts

2016-04-05 Thread Jarkko Sakkinen
On Tue, Apr 05, 2016 at 12:56:26PM +0300, Jarkko Sakkinen wrote: > On Thu, Mar 31, 2016 at 08:58:47AM -0400, Stefan Berger wrote: > > On 03/31/2016 04:24 AM, Jarkko Sakkinen wrote: > > >On Tue, Mar 29, 2016 at 02:19:13PM -0400, Stefan Berger wrote: > > >>Add the retrieval of TPM 1.2 durations and t

Re: [v9,3/4] tpm: Initialize TPM and get durations and timeouts

2016-04-05 Thread Jarkko Sakkinen
On Thu, Mar 31, 2016 at 08:58:47AM -0400, Stefan Berger wrote: > On 03/31/2016 04:24 AM, Jarkko Sakkinen wrote: > >On Tue, Mar 29, 2016 at 02:19:13PM -0400, Stefan Berger wrote: > >>Add the retrieval of TPM 1.2 durations and timeouts. Since this requires > >>the startup of the TPM, do this for TPM

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-05 Thread Christoph Hellwig
On Mon, Apr 04, 2016 at 09:25:04PM -0400, Tejun Heo wrote: > Is it actually customary to have rdma core module updated more > frequently separate from the kernel? Out-of-tree modules being > updated separately happens quite a bit but this is an in-kernel > module, which usually is tightly coupled

Re: [PATCH v6 19/24] i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes

2016-04-05 Thread Peter Rosin
On 2016-04-03 13:09, Jonathan Cameron wrote: > On 03/04/16 09:52, Peter Rosin wrote: >> From: Peter Rosin >> >> Signed-off-by: Peter Rosin > Very nice, one typo that I could see. Thanks! *snip* >> + and the actual transfer (e.g. if the child mux is auto-closing >> + and the parent mux

  1   2   >