[PATCH v5 4/9] arm: dma-mapping: add {map,unmap}_resource for iommu ops

2016-03-07 Thread Niklas Söderlund
Add methods to map/unmap device resources addresses for dma_map_ops that are IOMMU aware. This is needed to map a device MMIO register from a physical address. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart

[PATCH v5 6/9] dmaengine: rcar-dmac: group slave configuration

2016-03-07 Thread Niklas Söderlund
Group slave address and transfer size in own structs for source and destination. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund --- drivers/dma/sh/rcar-dmac.c | 38

[PATCH v5 5/9] dmaengine: rcar-dmac: slave address are physical

2016-03-07 Thread Niklas Söderlund
Slave addresses coming from a client is physical not dma. Store the address using the correct data type. This is in preparation for hooking up the dma-mapping API to the slave addresses. Signed-off-by: Niklas Söderlund --- drivers/dma/sh/rcar-dmac.c | 4

[PATCH v5 7/9] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-03-07 Thread Niklas Söderlund
Enable slave transfers to a device behind a IPMMU by mapping the slave addresses using the dma-mapping API. Signed-off-by: Niklas Söderlund --- drivers/dma/sh/rcar-dmac.c | 82 +- 1 file changed, 74

[PATCH v5 9/9] ARM: dts: r8a7791: add iommus to dmac0 and dmac1

2016-03-07 Thread Niklas Söderlund
A unconfirmed hardware bug prevents channel 0 and 15 to be used by the DMAC together with the IPMMU. The DMAC driver will disable the channels reducing the effective number of channels to 14 per DMAC. Signed-off-by: Niklas Söderlund Acked-by: Laurent

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-07 Thread Matt Ochs
> On Mar 7, 2016, at 7:48 PM, Ian Munsie wrote: > > From: Ian Munsie > > This adds an afu_driver_ops structure with event_pending and > deliver_event callbacks. An AFU driver such as cxlflash can fill these > out and associate it with a context to

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Khalid Aziz Date: Mon, 7 Mar 2016 17:21:05 -0700 > Can we enable ADI support for swappable pages in a subsequent update > after the core functionality is stable on mlock'd pages? I already said no.

Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

2016-03-07 Thread Bjorn Helgaas
On Tue, Mar 08, 2016 at 03:01:20AM +, Lorenzo Pieralisi wrote: > On Mon, Mar 07, 2016 at 04:33:11PM -0600, Bjorn Helgaas wrote: > > [+cc Lorenzo] > > > > On Tue, Mar 01, 2016 at 07:07:18AM +0100, Krzysztof Ha??asa wrote: > > > Many ARM platforms use a wrapper: > > > /* > > > * Compatibility

Re: [PATCH 1/4] mfd: max77686: Add max77802 to I2C device ID table

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > The max77686 MFD driver supports both the Maxim 77686 and Maxim 77802 > PMICs but only the OF device table contains entries for both devices. > > The max77802 entry is missing in the I2C device ID table which isn't > a problem currently

Re: [PATCH 4/4] mfd: max77686: Export OF module alias information

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > When the device is registered via OF, the OF table is used to match the > driver instead of the I2C device ID table but the entries in the latter > are used as aliasses to load the module if the driver was not built-in. > > This is because

Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options

2016-03-07 Thread Andy Lutomirski
On Thu, May 28, 2015 at 12:42 PM, Eric W. Biederman wrote: > Andy Lutomirski writes: > >> On Thu, May 28, 2015 at 10:01 AM, Alexander Larsson wrote: >>> On Thu, 2015-05-28 at 11:44 -0500, Eric W. Biederman wrote: Andy Lutomirski

Re: [PATCH v3 06/19] x86, kaslr: Clean up useless code related to run_size.

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:12pm, Kees Cook wrote: > > diff --git a/arch/x86/boot/compressed/misc.c > > b/arch/x86/boot/compressed/misc.c > > index 42e76c2..069120e 100644 > > --- a/arch/x86/boot/compressed/misc.c > > +++ b/arch/x86/boot/compressed/misc.c > > @@ -393,9 +393,9 @@ asmlinkage __visible void

Thoughts on tightening up user namespace creation

2016-03-07 Thread Andy Lutomirski
Hi all- There are several users and distros that are nervous about user namespaces from an attack surface point of view. - RHEL and Arch have userns disabled. - Ubuntu requires CAP_SYS_ADMIN - Kees periodically proposes to upstream some sysctl to control userns creation. I think there are

Re: [PATCH v3 11/19] x86, boot: Add checking for memcpy

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:36pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > parse_elf is using local memcpy to move section to running position. > > That memcpy actually only support no overlapping case or when

Re: Thoughts on tightening up user namespace creation

2016-03-07 Thread Serge E. Hallyn
On Mon, Mar 07, 2016 at 09:15:25PM -0800, Andy Lutomirski wrote: > Hi all- > > There are several users and distros that are nervous about user > namespaces from an attack surface point of view. > > - RHEL and Arch have userns disabled. > > - Ubuntu requires CAP_SYS_ADMIN No, it does not. It

[PATCH V2] thermal: tegra_soctherm: fix sign bit of temperature

2016-03-07 Thread Wei Ni
The sign bit of temperature readback is bit 0, not bit 1. Change to BIT(0) to fix it. Signed-off-by: Wei Ni Reviewed-by: Matt Longnecker --- drivers/thermal/tegra_soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] Bluetooth: btmrvl_sdio: fix firmware activation failure

2016-03-07 Thread Wei-Ning Huang
From: Wei-Ning Huang In some case, the btmrvl_sdio firmware would fail to active within the polling time. Increase the polling interval to 100 msec to fix the issue. Signed-off-by: Wei-Ning Huang Signed-off-by: Wei-Ning Huang ---

[PATCH 0/2] mm: Enable page parallel initialisation for Power

2016-03-07 Thread Li Zhang
From: Li Zhang Uptream has supported page parallel initialisation for X86 and the boot time is improved greately. Some tests have been done for Power. Here is the result I have done with different memory size. * 4GB memory: boot time is as the following:

Re: [PATCH 3/4] mfd: max77686: Allow driver to be built as a module

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > The driver's Kconfig symbol is a boolean but nothing prevents the driver > to be built as a module instead of built-in. It is true that most system > integrators will choose the latter but the config should not restrict it. > >

Re: [PATCH v3 02/19] x86, boot: Move compressed kernel to end of buffer before decompressing

2016-03-07 Thread Baoquan He
Hi Kees, Many thanks for your review and suggestions! On 03/07/16 at 02:35pm, Kees Cook wrote: > > Current code uses extract_offset to decide the copied ZO position, it > > put ZO starting from extract_offset. When INIT_SIZE is bigger than > > VO_INIT_SIZE copied ZO occupies space from

Re: [PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings

2016-03-07 Thread Lee Jones
On Tue, 08 Mar 2016, Yang, Wenyou wrote: > Hi Fengguang Wu, > > Thank you for your patch. > > > -Original Message- > > From: kbuild test robot [mailto:l...@intel.com] > > Sent: 2016年3月8日 7:54 > > To: Yang, Wenyou > > Cc: kbuild-...@01.org; Lee Jones

[PATCH v4 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-07 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator, so as to achieve the lowest power consumption with the system in retention mode and able to resume on the wake up events. As soon as the wake up

[PATCH v4 3/5] ARM: at91: pm: configure PMC fast startup signals

2016-03-07 Thread Wenyou Yang
The fast startup signal is used as wake up sources for ULP1 mode. As soon as a fast startup signal is asserted, the embedded 12 MHz RC oscillator restarts automatically. This patch is to configure the fast startup signals, which signal is enabled to trigger the PMC to wake up the system from ULP1

Re: [PATCH v2 0/8] mtd: spi-nor: locking fixes and updates

2016-03-07 Thread Brian Norris
On Fri, Jan 29, 2016 at 11:25:29AM -0800, Brian Norris wrote: > Hi, > > These are an assortment of fixes and updates to the SPI NOR lock/unlock > feature. The biggest new features are: > (a) Status Register protection; I don't see why this shouldn't be enabled by > default. See patch 4's

[PATCH v10 6/6] ARM: dts: add dts files for Hi3519

2016-03-07 Thread Jiancheng Xue
add dts files for Hi3519 Signed-off-by: Jiancheng Xue --- arch/arm/boot/dts/Makefile| 2 + arch/arm/boot/dts/hi3519-demb.dts | 42 + arch/arm/boot/dts/hi3519.dtsi | 187 ++ 3 files changed, 231 insertions(+)

[PATCH v10 3/6] ARM: hisi: add compatible string for Hi3519 soc

2016-03-07 Thread Jiancheng Xue
add compatible string for Hi3519 soc. Signed-off-by: Jiancheng Xue --- arch/arm/mach-hisi/hisilicon.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-hisi/hisilicon.c b/arch/arm/mach-hisi/hisilicon.c index

[PATCH v10 1/6] clk: hisilicon: export some hisilicon APIs to modules

2016-03-07 Thread Jiancheng Xue
Change some arguments to constant type. Export some hisilicon APIs to modules. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/clk.c | 23 +++ drivers/clk/hisilicon/clk.h | 14 +++--- 2 files changed, 22 insertions(+), 15 deletions(-)

[PATCH v10 2/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-03-07 Thread Jiancheng Xue
The CRG(Clock and Reset Generator) block provides clock and reset signals for other modules in hi3519 soc. Signed-off-by: Jiancheng Xue Acked-by: Rob Herring Acked-by: Philipp Zabel ---

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Vinod Koul
On Mon, Mar 07, 2016 at 09:30:24PM +0100, Maxime Ripard wrote: > On Mon, Mar 07, 2016 at 04:08:57PM +0100, Boris Brezillon wrote: > > Hi Vinod, > > > > On Mon, 7 Mar 2016 20:24:29 +0530 > > Vinod Koul wrote: > > > > > On Mon, Mar 07, 2016 at 10:59:31AM +0100, Boris

Re: [PATCH] mm/hugetlb: use EOPNOTSUPP in hugetlb sysctl handlers

2016-03-07 Thread Hillf Danton
> > On Thu, 3 Mar 2016, Jan Stancek wrote: > > > Replace ENOTSUPP with EOPNOTSUPP. If hugepages are not supported, > > this value is propagated to userspace. EOPNOTSUPP is part of uapi > > and is widely supported by libc libraries. > > > > Cc: Andrew Morton > > Cc:

Re: Suspicious error for CMA stress test

2016-03-07 Thread Hanjun Guo
On 03/07/2016 04:16 PM, Leizhen (ThunderTown) wrote: On 2016/3/7 12:34, Joonsoo Kim wrote: On Fri, Mar 04, 2016 at 03:35:26PM +0800, Hanjun Guo wrote: On 2016/3/4 14:38, Joonsoo Kim wrote: On Fri, Mar 04, 2016 at 02:05:09PM +0800, Hanjun Guo wrote: On 2016/3/4 12:32, Joonsoo Kim wrote: On

Re: [PATCH 05/14] mfd: ipaq-micro: use __maybe_unused to hide pm functions

2016-03-07 Thread Lee Jones
On Wed, 02 Mar 2016, Arnd Bergmann wrote: > The ipaq-micro driver uses SET_SYSTEM_SLEEP_PM_OPS() to > remove the reference to its resume function, but does > not use an #ifdef around the definition, so we get > a build warning: > > drivers/mfd/ipaq-micro.c:379:12: error: 'micro_resume' defined

Re: [PATCH] gpio: xgene: Fix kconfig for standby GIPO contoller

2016-03-07 Thread Quan Nguyen
On Mon, Mar 7, 2016 at 5:47 PM, Matthias Brugger wrote: > > > On 07/03/16 08:41, Linus Walleij wrote: >> >> On Fri, Mar 4, 2016 at 6:42 PM, Matthias Brugger >> wrote: >> >>> The standby GPIO controller can be used as a interrupt controller. >>> Select

Re: [PATCH v3 16/19] x86, kaslr: Randomize physical and virtual address of kernel separately

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:51pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > On x86_64, in old kaslr implementaion only physical address of kernel > > loading is randomized. Then calculate the delta of physical address > > where vmlinux was linked to load and

[PATCH] include/net/inet_connection_sock.h: Use pr_devel() instead of pr_debug()

2016-03-07 Thread Nick Wang
When DYNAMIC_DEBUG enabled, pr_debug() depends on KBUILD_MODNAME which also depends on the modules name in Makefile. Refer to the information in "scripts/Makefile.lib": # $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will # end up in (or would, if it gets compiled in) #

[PATCH v2 net-next 01/12] bpf: prevent kprobe+bpf deadlocks

2016-03-07 Thread Alexei Starovoitov
if kprobe is placed within update or delete hash map helpers that hold bucket spin lock and triggered bpf program is trying to grab the spinlock for the same bucket on the same cpu, it will deadlock. Fix it by extending existing recursion prevention mechanism. Note, map_lookup and other tracing

[PATCH v2 net-next 05/12] bpf: convert stackmap to pre-allocation

2016-03-07 Thread Alexei Starovoitov
It was observed that calling bpf_get_stackid() from a kprobe inside slub or from spin_unlock causes similar deadlock as with hashmap, therefore convert stackmap to use pre-allocated memory. The call_rcu is no longer feasible mechanism, since delayed freeing causes bpf_get_stackid() to fail

[PATCH v2 net-next 04/12] bpf: check for reserved flag bits in array and stack maps

2016-03-07 Thread Alexei Starovoitov
Suggested-by: Daniel Borkmann Signed-off-by: Alexei Starovoitov --- kernel/bpf/arraymap.c | 2 +- kernel/bpf/stackmap.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index

[PATCH v2 net-next 09/12] samples/bpf: test both pre-alloc and normal maps

2016-03-07 Thread Alexei Starovoitov
extend test coveraged to include pre-allocated and run-time alloc maps Signed-off-by: Alexei Starovoitov --- samples/bpf/test_maps.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/bpf/test_maps.c b/samples/bpf/test_maps.c index

[PATCH v2 net-next 08/12] samples/bpf: add map_flags to bpf loader

2016-03-07 Thread Alexei Starovoitov
note old loader is compatible with new kernel. map_flags are optional Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_helpers.h | 1 + samples/bpf/bpf_load.c | 3 ++- samples/bpf/fds_example.c | 2 +- samples/bpf/libbpf.c| 5 +++--

[PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-07 Thread Ian Munsie
From: Ian Munsie This adds an afu_driver_ops structure with event_pending and deliver_event callbacks. An AFU driver such as cxlflash can fill these out and associate it with a context to enable passing custom AFU specific events to userspace. The cxl driver will call

[PATCH v3 2/2] cxl: add set/get private data to context struct

2016-03-07 Thread Ian Munsie
From: Michael Neuling This provides AFU drivers a means to associate private data with a cxl context. This is particularly intended for make the new callbacks for driver specific events easier for AFU drivers to use, as they can easily get back to any private data structures

[PATCH v4 4/5] Documentation: atmel-pmc: add DT bindings for fast startup

2016-03-07 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v4: - add Acked-by tag. Changes in v3: - update the property description.

[PATCH v4 5/5] ARM: at91/dt: sama5d2_xplained: add fast_restart node

2016-03-07 Thread Wenyou Yang
Add fast_restart node as a pmc's child node to support fast startup signal configuration. Signed-off-by: Wenyou Yang --- Changes in v4: - add fast_restart node to the DT file. Changes in v3: None Changes in v2: None arch/arm/boot/dts/at91-sama5d2_xplained.dts |8

Re: [RFC PATCH 11/12] certs: Add a secondary system keyring that can be added to dynamically [ver #2]

2016-03-07 Thread Mimi Zohar
On Fri, 2016-03-04 at 15:01 +, David Howells wrote: > Add a secondary system keyring that can be added to by root whilst the > system is running - provided the key being added is vouched for by a key > built into the kernel or already added to the secondary keyring. > > Rename .system_keyring

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Vinod Koul
On Tue, Mar 08, 2016 at 08:25:47AM +0530, Vinod Koul wrote: > On Mon, Mar 07, 2016 at 09:30:24PM +0100, Maxime Ripard wrote: > > On Mon, Mar 07, 2016 at 04:08:57PM +0100, Boris Brezillon wrote: Also just noticed the subsystem name on this is not correct, pls fix that in subsequent posting --

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-07 Thread Paul Gortmaker
[Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"] On 07/03/2016 (Mon 17:56) Toshi Kani wrote: [..] > > > It may have seemed working before, but you did not have WC configured > > > to PAT without calling pat_init().  There was not a proper check in > > > place to

Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"

2016-03-07 Thread Paul Gortmaker
[Re: runtime regression with "x86/mm/pat: Emulate PAT when it is disabled"] On 07/03/2016 (Mon 18:35) Toshi Kani wrote: > On Mon, 2016-03-07 at 17:56 -0700, Toshi Kani wrote: > > On Mon, 2016-03-07 at 18:53 -0500, Paul Gortmaker wrote: > > > [Re: runtime regression with "x86/mm/pat: Emulate PAT

Re: [PATCH] mm, oom: protect !costly allocations some more (was: Re: [PATCH 0/3] OOM detection rework v4)

2016-03-07 Thread Sergey Senozhatsky
no > major difference from the previous testing so at least nothing has blown > up as I am not able to reproduce the issue here. (next-20160307 + "[PATCH] mm, oom: protect !costly allocations some more") seems it's significantly less likely to oom-kill now, but I still can see somethin

[PATCH] tty: amba-pl011: Use 32-bit accesses for SBSA UART

2016-03-07 Thread Christopher Covington
From: Christopher Covington Version 2 of the Server Base System Architecture (SBSA) describes the Generic UART registers as 32 bits wide. At least one implementation, found of the Qualcomm Technologies QDF2432, only supports 32 bit accesses. While other

Re: [PATCH v10 7/9] arm64: Add trampoline code for kretprobes

2016-03-07 Thread David Long
On 03/02/2016 04:20 PM, William Cohen wrote: On 03/01/2016 01:19 PM, Marc Zyngier wrote: On 01/03/16 02:57, David Long wrote: From: William Cohen The trampoline code is used by kretprobes to capture a return from a probed function. This is done by saving the registers,

[PATCH v1] tools/vm/page-types.c: remove memset() in walk_pfn()

2016-03-07 Thread Naoya Horiguchi
I found that page-types is very slow and my testing shows many timeout errors. Here's an example with a simple program allocating 1000 thps. $ time ./page-types -p $(pgrep -f test_alloc) ... real0m17.201s user0m16.889s sys 0m0.312s $ time ./page-types.patched -p $(pgrep

[PATCH v4 1/5] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-03-07 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/pm_suspend.S | 65

Re: [PATCH] Use ida_simple for SCSI iSCSI transport session id

2016-03-07 Thread Martin K. Petersen
> "Lee" == Lee Duncan writes: Lee> It looks like Mike and Chris are good with it. However, it received no formal reviews or acked-bys... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/2] mfd: add documentation for ACT8945A DT bindings

2016-03-07 Thread kbuild test robot
Hi Wenyou, [auto build test ERROR on v4.4-rc8] [cannot apply to next-20160307] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/mfd-act8945a-add-Active-semi-ACT8945A-PMIC-MFD-driver

[PATCH 2/2] powerpc/mm: Enable page parallel initialisation

2016-03-07 Thread Li Zhang
From: Li Zhang Parallel initialisation has been enabled for X86, boot time is improved greatly. On Power8, it is improved greatly for small memory. Here is the result from my test on Power8 platform: For 4GB memory: 57% is improved, boot time as the following: with

[PATCH 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-07 Thread Li Zhang
From: Li Zhang This patch is based on Mel Gorman's old patch in the mailing list, https://lkml.org/lkml/2015/5/5/280 which is discussed but it is fixed with a completion to wait for all memory initialised in page_alloc_init_late(). It is to fix the OOM problem on X86

Re: [PATCH] gpio: xgene: Fix kconfig for standby GIPO contoller

2016-03-07 Thread Quan Nguyen
On Fri, Mar 4, 2016 at 5:59 PM, Matthias Brugger wrote: > The standby GPIO controller can be used as a interrupt controller. > Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get > a compilation error: > > drivers/gpio/gpio-xgene-sb.c: In function

Re: [PATCH v3 05/19] x86, boot: Fix run_size calculation

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:10pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > Firstly, current run_size is calculated via shell script > > arch/x86/tools/calc_run_size.sh. It gets file offset and mem size of section

Re: [PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-07 Thread Sinan Kaya
On 3/7/2016 11:46 PM, Eric Auger wrote: >> #define module_vfio_reset_handler(compat, acpihid, reset) \ >> > MODULE_ALIAS("vfio-reset: dt: " compat); \ >> > MODULE_ALIAS("vfio-reset: acpi: " acpihid); \ > My gut feeling is we must not create a dummy alias when the mode > (dt/acpi) is not

Re: [PATCH] fat: add config option to set UTF-8 mount option by default

2016-03-07 Thread OGAWA Hirofumi
"Maciej S. Szmigiero" writes: > +#ifdef CONFIG_FAT_DEFAULT_UTF8 > + opts->utf8 = is_vfat; > +#else > + opts->utf8 = 0; > +#endif > + Maybe, better to use IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8)? I.e., opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) &&

[RESEND PATCH V4 3/4] coresight-stm: Bindings for System Trace Macrocell

2016-03-07 Thread Chunyan Zhang
From: Mathieu Poirier The System Trace Macrocell (STM) is an IP block falling under the CoreSight umbrella. It's main purpose it so expose stimulus channels to any system component for the purpose of information logging. Bindings for this IP block adds a couple of

Re: [PATCH v2 7/8] mtd: spi-nor: add TB (Top/Bottom) protect support

2016-03-07 Thread Brian Norris
On Mon, Feb 29, 2016 at 05:35:02PM -0300, Ezequiel Garcia wrote: > On 29 January 2016 at 16:25, Brian Norris wrote: > > Some flash support a bit in the status register that inverts protection > > so that it applies to the bottom of the flash, not the top. This yields

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-07 Thread Kefeng Wang
On 2016/3/7 21:37, Paul E. McKenney wrote: > On Mon, Mar 07, 2016 at 03:02:05PM +0800, Kefeng Wang wrote: >> >> >> On 2016/3/7 13:40, Davidlohr Bueso wrote: >>> On Mon, 07 Mar 2016, Kefeng Wang wrote: On 2016/3/3 16:36, Davidlohr Bueso wrote: >>> > +/* > + * Indicates early

Re: [RFC PATCH 12/12] IMA: Use the the system trusted keyrings instead of .ima_mok [ver #2]

2016-03-07 Thread Mimi Zohar
On Fri, 2016-03-04 at 15:01 +, David Howells wrote: > Provide a config option (IMA_PERMIT_ADD_TO_IMA_KEYRINGS) that, when > enabled, allows keys to be added to the IMA keyrings by userspace - with > the restriction that each must be signed by a key in the system trusted > keyrings. Here is an

[PATCH] tty: amba-pl011: use sg_table instead of scatterlist

2016-03-07 Thread Chanho Min
The use of phys_to_page is wrong in commit cb06ff102e2d ("ARM: PL011: Add support for Rx DMA buffer polling."), beacase DMA address is not physical address. Also, phys_to_page is not declared in some architecture. The use of virt_to_page is wrong as well because dma_alloc_coherent implementaion

[PATCH v5 2/9] dma-mapping: add {map,unmap}_resource to dma_map_ops

2016-03-07 Thread Niklas Söderlund
Add methods to handle mapping of device resources from a physical address. This is needed for example to be able to map MMIO FIFO registers to a IOMMU. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart ---

[PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-07 Thread Niklas Söderlund
Map/Unmap a device resource from a physical address. If no dma_map_ops method is available the operation is a no-op. Signed-off-by: Niklas Söderlund --- include/linux/dma-mapping.h | 32 1 file changed, 32 insertions(+)

[PATCH v5 1/9] iommu: Add MMIO mapping type

2016-03-07 Thread Niklas Söderlund
From: Robin Murphy On some platforms, MMIO regions might need slightly different treatment compared to mapping regular memory; add the notion of MMIO mappings to the IOMMU API's memory type flags, so that callers can let the IOMMU drivers know to do the right thing.

[PATCH v5 0/9] dmaengine: rcar-dmac: add iommu support for slave transfers

2016-03-07 Thread Niklas Söderlund
Hi, This series add iommu support to rcar-dmac. It's tested on Koelsch with CONFIG_IPMMU_VMSA and by enabling the ipmmu_ds node in r8a7791.dtsi. I verified operation by interacting with /dev/mmcblk1 and the serial console which both are devices behind the iommu. The series depends patch '[PATCH]

Re: Hung task detector versus NFS (TASK_KILLABLE)

2016-03-07 Thread Andi Kleen
> I write this because I would actually find it useful to see the original > backtrace, even if it is interruptible, not just the collateral damage. > Since the "skipping" of NFS is basically incomplete anyway, how big a > deal is this "feature"? Random backtrace spewing is always a misfeature

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-07 Thread Wei Ni
On 2016年03月07日 16:23, Wei Ni wrote: > There had a build error in previous patch. > Fixed it in this version. > Please review it. Add CC: linux...@vger.kernel.org > > Thanks. > Wei. > > On 2016年03月03日 17:33, Wei Ni wrote: >> The commit 17e8351a7739 consistently use int for temperature, >>

Re: user namespace and fully visible proc and sys mounts

2016-03-07 Thread Eric W. Biederman
Andy Lutomirski writes: > On Mon, Mar 7, 2016 at 4:07 PM, Eric W. Biederman > wrote: >> Andy Lutomirski writes: >> >>> On a related note, can we *please* find a way to constrain namespace >>> creation in a way that might satisfy

Re: [PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread David Miller
From: Marcelo Ricardo Leitner Date: Mon, 7 Mar 2016 20:27:11 -0300 > Hi, > > Em 07-03-2016 20:17, kbuild test robot escreveu: >> Hi Marcelo, >> >> [auto build test WARNING on net/master] >> >> url: >>

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Rob Gardner Date: Mon, 7 Mar 2016 15:13:31 -0800 > You can easily read ADI tags with a simple ldxa #ASI_MCD_PRIMARY > instruction. Awesome!

RE: [PATCH v4 4/7] Documentation: fsl-quadspi: Add fsl,ls2080a-dspi compatible string

2016-03-07 Thread Yao Yuan
On Tue, Mar 08, 2016 at 4:32AM, Brian Norris wrote: > On Tue, Jan 26, 2016 at 03:23:58PM +0800, Yuan Yao wrote: > > new compatible string: "fsl,ls2080a-qspi". > > ^^ This line doesn't match the subject or the content of the patch. > > > Signed-off-by: Yuan Yao > > Acked-by:

Re: [PATCH v3 12/19] x86, kaslr: Fix a bug that relocation can not be handled when kernel is loaded above 2G

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:30pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > When process 32 bit relocation tables a local variable 'extended' > > is defined to calculate the physical address of relocs entry. > > However its type is 'int' which is enough for

[PATCH v2] ARM: dts: add "simple-bus" where "arm,amba-bus" is used alone

2016-03-07 Thread Masahiro Yamada
The compatible string "simple-bus" is well defined in ePAPR, while I see no documentation for the "arm,amba-bus" in ePAPR or under Documentation/devicetree/. DT is also used by other projects than Linux kernel. It is not a good idea to rely on such an unofficial binding. Signed-off-by: Masahiro

[PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-07 Thread Alexei Starovoitov
v1->v2: . fix few issues spotted by Daniel . converted stackmap into pre-allocation as well . added a workaround for lockdep false positive . added pcpu_freelist_populate to be used by hashmap and stackmap this path set switches bpf hash map to use pre-allocation by default and introduces

Re: [PATCH 2/2] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-03-07 Thread Stephen Warren
On 03/04/2016 11:39 AM, Eric Anholt wrote: For now this doesn't support the new hardware present on the Pi 3 (BT, wifi, GPIO expander). Since the GPIO expander isn't supported, we also don't have the LEDs like the other board files do. The series, Acked-by: Stephen Warren

Re: [PATCH] ARM: dts: add "simple-bus" to "arm, amba-bus" compatible nodes

2016-03-07 Thread Masahiro Yamada
Hi Rob, Mark, Jon, Setting aside the future plan, anyway we should avoid relying on an undocumented compatible string. (and we should avoid its spread as Rob pointed out.) I rephrase the git-log (no update in the code-diff). Could you check v2, please?

Re: linux-next: manual merge of the crypto tree with the net-next tree

2016-03-07 Thread Stephen Rothwell
Hi David, On Mon, 07 Mar 2016 11:08:25 + David Howells wrote: > > Stephen Rothwell wrote: > > > Today's linux-next merge of the crypto tree got a conflict in: > > > > net/rxrpc/rxkad.c > > > > between commit: > > > > 0d12f8a4027d ("rxrpc:

Re: Suspicious error for CMA stress test

2016-03-07 Thread Leizhen (ThunderTown)
On 2016/3/8 2:42, Laura Abbott wrote: > On 03/07/2016 12:16 AM, Leizhen (ThunderTown) wrote: >> >> >> On 2016/3/7 12:34, Joonsoo Kim wrote: >>> On Fri, Mar 04, 2016 at 03:35:26PM +0800, Hanjun Guo wrote: On 2016/3/4 14:38, Joonsoo Kim wrote: > On Fri, Mar 04, 2016 at 02:05:09PM +0800,

Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc)

2016-03-07 Thread Steven Rostedt
On Tue, 08 Mar 2016 10:20:22 +1100 Michael Ellerman wrote: > > > > There is one remaining issue which I think would be really nice to > > have(TM), and that's Steven's Ack for the whole thing :) > > Yeah. He's been on CC the whole time, but he's probably getting a bit

Re: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-07 Thread Rafael J. Wysocki
On Monday, March 07, 2016 03:53:13 PM Chen, Yu C wrote: > Hi Rafael, > (resend for broken content) > > > -Original Message- > > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > > Rafael J. Wysocki > > Sent: Monday, March 07, 2016 9:19 PM > > To: Chen, Yu C > > Cc:

[PATCH v3 7/7] cpufreq: schedutil: New governor based on scheduler utilization data

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add a new cpufreq scaling governor, called "schedutil", that uses scheduler-provided CPU utilization information as input for making its decisions. Doing that is possible after commit fe7034338ba0 (cpufreq: Add mechanism for registering

[PATCH v3 6/7] cpufreq: sched: Re-introduce cpufreq_update_util()

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki A subsequent change set will introduce a new cpufreq governor using CPU utilization information from the scheduler, so introduce cpufreq_update_util() (again) to allow that information to be passed to the new governor and make

[PATCH v3 3/7][Resend] cpufreq: governor: New data type for management part of dbs_data

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In addition to fields representing governor tunables, struct dbs_data contains some fields needed for the management of objects of that type. As it turns out, that part of struct dbs_data may be shared with (future) governors that won't use

[PATCH v3 0/7] cpufreq: schedutil governor

2016-03-07 Thread Rafael J. Wysocki
On Friday, March 04, 2016 03:56:09 AM Rafael J. Wysocki wrote: > On Wednesday, March 02, 2016 02:56:28 AM Rafael J. Wysocki wrote: > > Hi, > > > > My previous intro message still applies somewhat, so here's a link: > > > > http://marc.info/?l=linux-pm=145609673008122=2 > > > > The executive

[PATCH v3 1/7][Resend] cpufreq: Rework the scheduler hooks for triggering updates

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit fe7034338ba0 (cpufreq: Add mechanism for registering utilization update callbacks) added cpufreq_update_util() to be called by the scheduler (from the CFS part) on utilization updates. The goal was to allow CFS to pass utilization

[PATCH v3 4/7][Resend] cpufreq: governor: Move abstract gov_attr_set code to seperate file

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Move abstract code related to struct gov_attr_set to a separate (new) file so it can be shared with (future) goverernors that won't share more code with "ondemand" and "conservative". No intentional functional changes. Signed-off-by: Rafael

[PATCH v3 2/7][Resend] cpufreq: Move scheduler-related code to the sched directory

2016-03-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Create cpufreq.c under kernel/sched/ and move the cpufreq code related to the scheduler to that file. Also move the headers related to that code from cpufreq.h to sched.h. No functional changes. Signed-off-by: Rafael J. Wysocki

Re: [RESEND PATCH v4 0/8] i2c: Relax mandatory I2C ID table passing

2016-03-07 Thread Lee Jones
On Mon, 12 Oct 2015, Kieran Bingham wrote: > Hi Wolfram, > > On 9 October 2015 at 22:16, Wolfram Sang wrote: > > > > As said to Kieran personally in Dublin, I want a verification that all > > binding methods still work, especially runtime instantiation for drivers > >

Re: [PATCH v1 1/1] mfd: intel-lpss: save register context on suspend

2016-03-07 Thread Lee Jones
On Tue, 26 Jan 2016, Andy Shevchenko wrote: > From: Heikki Krogerus > > All configurations are lost and the registers will have > default values when the hardware is suspended and resumed, > so saving the private register space context on suspend, and >

Re: [PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-07 Thread Eric Auger
Hi Sinan, On 03/07/2016 04:30 PM, Sinan Kaya wrote: > On 3/6/2016 11:09 PM, Eric Auger wrote: >>> #define module_vfio_reset_handler(compat, acpihid, reset) \ MODULE_ALIAS("vfio-reset:" acpihid? acpihid: compat); \ This way, we'll create an alias

Re: [PATCH v3 07/19] x86, kaslr: Get correct max_addr for relocs pointer

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:16pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > There is boundary checking for pointer in kaslr relocation handling. > > > > Current code is using output_len, and that is VO (vmlinux

Re: [PATCH v2 10/10] x86/entry/32: Add and check a stack canary for the SYSENTER stack

2016-03-07 Thread Borislav Petkov
On Sat, Mar 05, 2016 at 09:52:23PM -0800, Andy Lutomirski wrote: <--- ? So all patches before are nice and verbose in explaining what they do. Where did the commit message of this one disappear? :-) Or is it that obvious that we should have a stack canary? How about some text *why* we need it?

[v5][PATCH] livepatch/ppc: Enable livepatching on powerpc

2016-03-07 Thread Balbir Singh
Changelog v5: 1. Removed the mini-stack frame created for klp_return_helper. As a result of the mini-stack frame, function with > 8 arguments could not be patched 2. Removed camel casing in the comments Changelog v4: 1. Renamed klp_matchaddr() to

[PATCH v3 4/7] usb: mux: add driver for Intel gpio controlled port mux

2016-03-07 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen Signed-off-by: Lu Baolu

[PATCH v3 0/7] usb: add support for Intel dual role port mux

2016-03-07 Thread Lu Baolu
Intel SOC chips are featured with USB dual role. The host role is provided by Intel xHCI IP, and the gadget role is provided by IP from designware. Tablet platform designs always share a single port for both host and gadget controllers. There is a mux to switch the port to the right controller

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