[PATCH 4/5] nsfs: add ioctl to get a parent namespace

2016-07-14 Thread Andrey Vagin
Pid and user namepaces are hierarchical. There is no way to discover parent-child relationships. In a future we will use this interface to dump and restore nested namespaces. Signed-off-by: Andrey Vagin --- fs/nsfs.c | 4 include/linux/proc_ns.h | 1 + include/uapi/linu

[PATCH 3/5] nsfs: add ioctl to get an owning user namespace for ns file descriptor

2016-07-14 Thread Andrey Vagin
Each namespace has an owning user namespace and now there is not way to discover these relationships. Understending namespaces relationships allows to answer the question: what capability does process X have to perform operations on a resource governed by namespace Y? After a long discussion, Eri

[PATCH 2/2] usb: typec: add PD sink port support for Intel Whiskey Cove PMIC Typc-C PHY driver

2016-07-14 Thread Bin Gao
From: Chandra Sekhar Anagani This adds PD sink port support for the USB Type-C PHY on Intel WhiskeyCove PMIC which is available on some of the Intel Broxton SoC based platforms. This patch depends on these two patches: https://lkml.org/lkml/2016/6/29/349 https://lkml.org/lkml/2016/6/29/350 Sign

[PATCH 1/5] namespaces: move user_ns into ns_common

2016-07-14 Thread Andrey Vagin
Every namespace has a pointer to an user namespace where is was created, but they're all privately embedded in the individual namespace specific structures. Now we are going to add an user-space interface to get an owning user namespace, so it looks reasonable to move it into ns_common. Originall

[PATCH 5/5] tools/testing: add a test to check nsfs ioctl-s

2016-07-14 Thread Andrey Vagin
There are two new ioctl-s: One ioctl for the user namespace that owns a file descriptor. One ioctl for the parent namespace of a namespace file descriptor. The test checks that these ioctl-s works and that they handle a case when a target namespace is outside of the current process namespace. Sig

[PATCH 2/5] kernel: add a helper to get an owning user namespace for a namespace

2016-07-14 Thread Andrey Vagin
Return -EPERM if an owning user namespace is outside of a process current user namespace. Signed-off-by: Andrey Vagin --- include/linux/user_namespace.h | 7 +++ kernel/user_namespace.c| 24 2 files changed, 31 insertions(+) diff --git a/include/linux/user_

[PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-14 Thread Bin Gao
This patch implements a simple USB Power Delivery sink port state machine. It assumes the hardware only handles PD packet transmitting and receiving over the CC line of the USB Type-C connector. The state transition is completely controlled by software. This patch only implement the sink port funct

Re: [PATCH 0/3] drm/msm: Deletion of a few unnecessary checks

2016-07-14 Thread Rob Clark
On Wed, Jul 13, 2016 at 1:54 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 13 Jul 2016 19:46:45 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > HDMI: Delete an unnecessary check before the function call

[PATCH 0/2] usb: typec: Introduce USB PD sink state machine driver and add PD sink support for Intel BXT PMIC Type-C phy

2016-07-14 Thread Bin Gao
This series introduce a USB PD(Power Delivery) sink port simple state machine driver and adds USB PD sink port support for Intel BXT Whiskey Cove PMIC Type-C phy driver. This series depends on these two patches: https://lkml.org/lkml/2016/6/29/349 https://lkml.org/lkml/2016/6/29/350 Bin Gao (1):

Re: [PATCH v2 11/11] mm: SLUB hardened usercopy support

2016-07-14 Thread Balbir Singh
On Wed, Jul 13, 2016 at 02:56:04PM -0700, Kees Cook wrote: > Under CONFIG_HARDENED_USERCOPY, this adds object size checking to the > SLUB allocator to catch any copies that may span objects. Includes a > redzone handling fix from Michael Ellerman. > > Based on code from PaX and grsecurity. > > Si

Re: [PATCH RFC] uio: allow use on nommu systems

2016-07-14 Thread Rich Felker
On Fri, Jul 15, 2016 at 10:42:37AM +0900, Greg Kroah-Hartman wrote: > On Thu, Jul 14, 2016 at 08:53:06PM -0400, Rich Felker wrote: > > mmap of uio devices does not seem to work without further > > nommu-specific support, but interrupt handling already works, and > > userspace drivers for nommu syst

[ANNOUNCE] 3.14.73-rt77

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.14.73-rt77 stable release. This release is just an update to the new stable 3.14.73 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

[ANNOUNCE] 4.4.15-rt23

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.15-rt23 stable release. This release is just an update to the new stable 4.4.15 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

[PATCH 1/2] tpm: add sysfs attributes for tpm2

2016-07-14 Thread Andrey Pronin
Break sysfs attributes into common and TPM 1.2/2.0-specific, and create sysfs groups for TPM2.0. Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm-chip.c | 48 drivers/char/tpm/tpm-sysfs.c | 24 -- 2 files changed, 53 insertio

[PATCH 0/2] tpm: driver- and tpm2-specific sysfs attributes

2016-07-14 Thread Andrey Pronin
This patchset adds sysfs attributes for the cases not covered by the existing TPM1.2 support: - device-specific attributes provided by drivers like tpm_tis_spi - TPM2.0 Andrey Pronin (2): tpm: add sysfs attributes for tpm2 tpm: support driver-specific sysfs attrs in tpm_tis_core drivers/ch

[PATCH 2/2] tpm: support driver-specific sysfs attrs in tpm_tis_core

2016-07-14 Thread Andrey Pronin
Add attr_group to phy_ops that a driver relying on tpm_tis_core_init can set to have its specific attributes registered in sysfs. Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm-sysfs.c| 1 - drivers/char/tpm/tpm.h | 8 +++- drivers/char/tpm/tpm_tis_core.c | 3 +++ drivers

[PATCH] mmc: dw_mmc: remove parsing for each slot subnode

2016-07-14 Thread Shawn Lin
The intention to remove it comes from the conflict of what the mmc-core does with the way dw_mmc treats disable-wp. We could see that 'disable-wp' is supported by core but it's deprecated by dw_mmc as we don't expect it to be existed for each slot subnode but should be in the parent node. Based on

Re: [PATCH kernel] powerpc/mm/iommu: Put pages on process exit

2016-07-14 Thread Alexey Kardashevskiy
On 14/07/16 21:52, Alexey Kardashevskiy wrote: > On 14/07/16 20:12, Balbir Singh wrote: >> On Thu, Jul 14, 2016 at 3:16 PM, Alexey Kardashevskiy wrote: >>> At the moment VFIO IOMMU SPAPR v2 driver pins all guest RAM pages when >>> the userspace starts using VFIO. When the userspace process finishe

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-14 Thread Thiago Jung Bauermann
Am Donnerstag, 14 Juli 2016, 10:29:11 schrieb Arnd Bergmann: > On Wednesday, July 13, 2016 11:18:04 PM CEST Thiago Jung Bauermann wrote: > > Am Mittwoch, 13 Juli 2016, 21:59:18 schrieb Arnd Bergmann: > > > On Wednesday, July 13, 2016 3:45:41 PM CEST Thiago Jung Bauermann wrote: > > > > Am Mittwoch

Re: [PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-14 Thread Yakir Yang
Sean, On 07/14/2016 11:14 PM, Sean Paul wrote: On Thu, Jul 14, 2016 at 12:15:49PM +0800, Yakir Yang wrote: The PSR driver have exported four symbols for specific device driver: - rockchip_drm_psr_register() - rockchip_drm_psr_unregister() - rockchip_drm_psr_enable() - rockchip_drm_psr_disable()

Re: [PATCH v4 1/4] drm/rockchip: vop: export line flag function

2016-07-14 Thread Yakir Yang
Sean, On 07/14/2016 10:46 PM, Sean Paul wrote: On Thu, Jul 14, 2016 at 12:15:44PM +0800, Yakir Yang wrote: VOP have integrated a hardware counter which indicate the exact display line that vop is scanning. And if we're interested in a specific line, we can set the line number to vop line_flag r

Re: [PATCH RFC] uio: allow use on nommu systems

2016-07-14 Thread Greg Kroah-Hartman
On Thu, Jul 14, 2016 at 08:53:06PM -0400, Rich Felker wrote: > mmap of uio devices does not seem to work without further > nommu-specific support, but interrupt handling already works, and > userspace drivers for nommu systems can simply use physical mmio > addresses from userspace directly anyway

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Balbir Singh
On Thu, Jul 14, 2016 at 09:04:18PM -0400, Rik van Riel wrote: > On Fri, 2016-07-15 at 09:20 +1000, Balbir Singh wrote: > > > > == > > > +    ((unsigned long)end & (unsigned > > > long)PAGE_MASK))) > > > + return NULL; > > > + > > > + /* Allow if start and end are inside the same co

Re: [PATCH v10 2/4] CMDQ: Mediatek CMDQ driver

2016-07-14 Thread Horng-Shyang Liao
Hi Paul, On Thu, 2016-07-14 at 19:38 -0400, Paul Gortmaker wrote: > On Thu, Jul 14, 2016 at 7:28 AM, HS Liao wrote: > > This patch is first version of Mediatek Command Queue(CMDQ) driver. The > > CMDQ is used to help write registers with critical time limitation, > > such as updating display conf

[PATCH 2/2] tpm_tis_spi: add max xfer size

2016-07-14 Thread Andrey Pronin
Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm_tis_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/tpm/tpm_tis_spi.c b/drivers/char/tpm/tpm_tis_spi.c index dbaad9c..b103373 100644 --- a/drivers/char/tpm/tpm_tis_spi.c +++ b/drivers/char/tpm/tpm_tis_spi.c @@ -206,6 +20

[PATCH 0/2] tpm: add optional max xfer size check

2016-07-14 Thread Andrey Pronin
This patchset introduces an optional maximum transfer size that can be specified by a tpm driver. Setting the max_xfer_size helps to catch the cases when burstcnt is incorrectly reported by the device (e.g. >64 for spi - happened in practice) and gracefully handle such situations. Andrey Pronin (2

[PATCH 1/2] tpm_tis_core: add optional max xfer size check

2016-07-14 Thread Andrey Pronin
If tpm reports a bigger burstcnt than allowed by the physical protocol, re-query the burstcnt and correct, if needed, if still too large. In practice, seen in case of xfer issues (e.g. in spi interface case, lost header causing flow control issues and wrong values returned on read from TPM_STS). W

[PATCH] ARM: exynos_defconfig: Enable bus frequency scaling with DEVFREQ/DEVFREQ-Event

2016-07-14 Thread Chanwoo Choi
This patch enables the bus frequency scaling driver with DEVFREQ and DEVFREQ-Event framework. This patches already was merged for Odroid-U3/XU3 ,Trats2 and Rinato/Monk boards. Signed-off-by: Chanwoo Choi --- arch/arm/configs/exynos_defconfig | 10 ++ 1 file changed, 10 insertions(+) dif

[PATCH] spi: rockchip: limit transfers to (64K - 1) bytes

2016-07-14 Thread Brian Norris
The Rockchip SPI controller's length register only supports 16-bits, yielding a maximum length of 64KiB (the CTRLR1 register holds "length - 1"). Trying to transfer more than that (e.g., with a large SPI flash read) will cause the driver to hang. Now, it seems that while theoretically we should be

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-14 Thread Rich Felker
On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2 which uses tr

Re: [PATCH v12] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-07-14 Thread Jiancheng Xue
Hi Brian, On 2016/7/14 9:13, Brian Norris wrote: > On Tue, Jun 28, 2016 at 03:48:19PM +0800, Jiancheng Xue wrote: >> Add hisilicon spi-nor flash controller driver >> >> Signed-off-by: Binquan Peng >> Signed-off-by: Jiancheng Xue >> Acked-by: Rob Herring >> Reviewed-by: Ezequiel Garcia >> Revie

[PATCH] arm64: dts: rockchip: add spiX aliases for rk3399

2016-07-14 Thread Brian Norris
It's nicer to see this: # ls -l /sys/bus/spi/devices/ total 0 lrwxrwxrwx 1 root root 0 Dec 31 1969 spi0.0 -> ../../../devices/platform/ff1c.spi/spi_master/spi0/spi0.0 lrwxrwxrwx 1 root root 0 Dec 31 1969 spi1.0 -> ../../../devices/platform/ff1d.spi/spi_master/spi1/spi1.

Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread Xishi Qiu
On 2016/7/15 6:17, David Rientjes wrote: > On Thu, 14 Jul 2016, Xishi Qiu wrote: > >> alloc_migrate_target() is called from migrate_pages(), and the page >> is always from user space, so we can add __GFP_HIGHMEM directly. >> >> Second, when we offline a node, the new page should alloced from othe

[PATCH] arm64: dts: rockchip: remove broken-cd from sdio0

2016-07-14 Thread Shawn Lin
commit 1ade61c141e2 ("arm64: dts: rockchip: remove broken-cd from emmc and sdio") was intended to remove the abuse of broken-cd property from mmc. But somehow it forgot to remove this property from sdio0 node. Let's remove it now. Signed-off-by: Shawn Lin --- arch/arm64/boot/dts/rockchip/rk3368

[PATCH 1/2] tpm: define constants for tpm2 properties

2016-07-14 Thread Andrey Pronin
Change-Id: I47cb1793736781fbea93e5bf80b783e0ac9e8628 Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 8890df2..ad3b9d1 100644 --- a/drivers/char/tpm/tpm.h +

[PATCH 2/2] tpm: fix byte-order for the value read by tpm2_get_tpm_pt

2016-07-14 Thread Andrey Pronin
Change-Id: I7d71cd379b1a3b7659d20a1b6008216762596590 Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm2-cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c index a1673dc..a88b31e 100644 --- a/drivers/char/tpm/tpm2

[PATCH 0/2] tpm: better support for 32-bit tpm2 properties

2016-07-14 Thread Andrey Pronin
These patches help working with 32-bit TPM2.0-specific properties that can be read using TPM2_GetCapability(capability = TPM_CAP_TPM_PROPERTIES): - TPM_PT_PERMANENT - TPM_PT_STARTUP_CLEAR Andrey Pronin (2): tpm: define constants for tpm2 properties tpm: fix byte-order for the value read by t

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Rik van Riel
On Fri, 2016-07-15 at 09:20 +1000, Balbir Singh wrote: > > == > > +    ((unsigned long)end & (unsigned > > long)PAGE_MASK))) > > + return NULL; > > + > > + /* Allow if start and end are inside the same compound > > page. */ > > + endpage = virt_to_head_page(end); > > + if

Re: [PATCH v7 5/9] MAINTAINERS / ACPI: add the ARM64-specific ACPI Support maintainers

2016-07-14 Thread Fu Wei
Hi Rafael, On 14 July 2016 at 04:16, Rafael J. Wysocki wrote: > On Wed, Jul 13, 2016 at 7:53 PM, wrote: >> From: Fu Wei >> >> This patch add the ARM64-specific ACPI Support maintainers in >> MAINTAINERS, according to the discussion on mailing list: >> https://lkml.org/lkml/2016/6/29/580 >> Lor

Re: [PATCH] arm64: dts: rockchip: Add basic support for orion-r68

2016-07-14 Thread Shawn Lin
Hi Matthias, Just some comment for mmc stuff. :) 在 2016/7/14 20:28, Matthias Brugger 写道: This patch adds basic support for the Tronsmart orion r86 set-top-box. Signed-off-by: Matthias Brugger --- Changes since v1: - change memory node to 2GB - change compatible and file name - add uart4 - add

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Alan Stern
On Thu, 14 Jul 2016, Rafał Miłecki wrote: > > Okay except for... > > > >> - priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, > >> - "phys", "#phy-cells"); > >> + priv->num_phys = of_count_phandle_with_args(np, "phys", > >> +

[PATCH] staging: skein: cleanup: Remove multiple blank lines

2016-07-14 Thread Hugo Miguel Silva Ferreira
This patch fixes several warnings detected by the checkpatch.pl script. Signed-off-by: Hugo Miguel Silva Ferreira --- drivers/staging/skein/threefish_block.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/skein/threefish_block.c b/drivers/staging/skein/thre

[PATCH RFC] uio: allow use on nommu systems

2016-07-14 Thread Rich Felker
mmap of uio devices does not seem to work without further nommu-specific support, but interrupt handling already works, and userspace drivers for nommu systems can simply use physical mmio addresses from userspace directly anyway without mmap. Signed-off-by: Rich Felker --- I don't particularly

[PATCH 4/5] f2fs: add maximum prefree segments

2016-07-14 Thread Jaegeuk Kim
In 1TB storage, we need to admit 22841 prefree segments, which can consume too much segments. This patch sets 8GB in max. prefree segments in that case. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 3 +++ fs/f2fs/segment.h | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/f2fs/segme

[PATCH 3/5] f2fs: support copy_file_range

2016-07-14 Thread Jaegeuk Kim
This patch implements copy_file_range in f2fs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index dd399b3..c529884 100644 --- a/fs/f2fs/file.c +++ b/fs

[PATCH 1/5] f2fs: refactor __exchange_data_block for speed up

2016-07-14 Thread Jaegeuk Kim
This reduces the elapsed time to do xfstests/generic/017. Before: 715 s After: 458 s Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 236 + fs/f2fs/node.c | 1 + 2 files changed, 171 insertions(+), 66 deletions(-) diff --git a/fs/f2fs/

[PATCH 5/5] f2fs: use blk_plug in all the possible paths

2016-07-14 Thread Jaegeuk Kim
This patch reverts 19a5f5e2ef37 (f2fs: drop any block plugging), and adds blk_plug in write paths additionally. The main reason is that blk_start_plug can be used to wake up from low-power mode before submitting further bios. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 7 +++ fs/f

[PATCH 2/5] f2fs: disable extent_cache for fcollapse/finsert inodes

2016-07-14 Thread Jaegeuk Kim
This reduces the elapsed time to do xfstests/generic/017. Before: 458 s After: 390 s Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 13 + fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 5 + 3 files changed, 19 insertions(+) diff --git a/fs/f2fs/extent_cache.

Re: [PATCH 1/2] net: ethernet: ll_temac: use phydev from struct net_device

2016-07-14 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 01:48:51 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 2/2] net: ethernet: ll_temac: use phy_ethtool_{get|set}_link_ksettings

2016-07-14 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 01:48:52 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: pull-request: wireless-drivers-next 2016-07-13

2016-07-14 Thread David Miller
From: Kalle Valo Date: Wed, 13 Jul 2016 21:29:13 +0300 > here's a pull request for net-next. This time there are few conflicts > due to the cfg80211 scan API changes, and one of them is easy to miss, > so please pay extra attention to them. Otherwise there's not nothing > really out of ordinary.

Re: [PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-07-14 Thread Boqun Feng
On Thu, Jul 14, 2016 at 11:46:26AM +0200, Peter Zijlstra wrote: > On Thu, Jul 14, 2016 at 11:37:33AM +0200, Peter Zijlstra wrote: > > static inline u8 *__qspinlock_lock_byte(struct qspinlock *lock) > > { > > return (u8 *)lock + 3 * IS_BUILTIN(__BIG_ENDIAN); > > } > > Bugger, that doesn't actua

Re: [PATCH] Enclose multiple statements macros in a do while loop

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 05:01:51PM +0800, Sunbing wrote: > The formatting of macros definetion in ks7010/michael_mic.c is not > consistent with the general kernel coding style. > > Fix it by the result of scripts/checkpatch.pl. > > No functional changes. > > Signed-off-by: Sunbing We need a "r

[PATCH] tpm_tis_core: convert max timeouts from msec to jiffies

2016-07-14 Thread Andrey Pronin
tpm_tis_core was missing conversion from msec when assigning max timeouts from constants. Signed-off-by: Andrey Pronin --- drivers/char/tpm/tpm_tis_core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c

Re: [patch V2 30/67] powerpc/numa: Convert to hotplug state machine

2016-07-14 Thread Anton Blanchard
Hi Anna-Maria, > >> Install the callbacks via the state machine and let the core invoke > >> the callbacks on the already online CPUs. > > > > This is causing an oops on ppc64le QEMU, looks like a NULL > > pointer: > > Did you tested it against tip WIP.hotplug? I noticed tip started failing

Re: [PATCH v3 6/8] thunderbolt: Networking state machine

2016-07-14 Thread Paul Gortmaker
On Thu, Jul 14, 2016 at 7:28 AM, Amir Levy wrote: > Negotiation states that a peer goes through in order to establish > the communication with the second peer. > This includes communication with upper layer and additional > infrastructure support to communicate with the second peer through ICM. >

perf probe -F with wildcards

2016-07-14 Thread Arnaldo Carvalho de Melo
Hi Masami, I think this worked at some point? [root@jouet acme]# perf probe -F | tail zswap_frontswap_init zswap_frontswap_invalidate_area zswap_frontswap_invalidate_page zswap_frontswap_load zswap_frontswap_store zswap_pool_create zswap_pool_current zswap_update_total_size zswap_writebac

Re: [PATCH v6 1/3] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-07-14 Thread Paul Gortmaker
On Thu, Jul 14, 2016 at 4:11 AM, Tan Jui Nee wrote: > From: Andy Shevchenko > > There is already one and at least one more user coming which > require an access to Primary to Sideband bridge (P2SB) in order > to get IO or MMIO bar hidden by BIOS. > Create a driver to access P2SB for x86 devices.

Re: [patch V2 30/67] powerpc/numa: Convert to hotplug state machine

2016-07-14 Thread Anna-Maria Gleixner
Hi, On 2016-07-14 23:42, Anton Blanchard wrote: Hi, From: Sebastian Andrzej Siewior Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. This is causing an oops on ppc64le QEMU, looks like a NULL pointer: Did you tested it against

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Viresh Kumar
Sorry, but I failed to do any testing on this and answer the questions you raise. But I saw this again today and here are some important points. On 12-07-16, 23:03, Sergey Senozhatsky wrote: > so, I'm looking at this thing now: > > : [ 12.874909] sched: RT throttling activated for rt_rq ffc

Re: [PATCH v10 2/4] CMDQ: Mediatek CMDQ driver

2016-07-14 Thread Paul Gortmaker
On Thu, Jul 14, 2016 at 7:28 AM, HS Liao wrote: > This patch is first version of Mediatek Command Queue(CMDQ) driver. The > CMDQ is used to help write registers with critical time limitation, > such as updating display configuration during the vblank. It controls > Global Command Engine (GCE) hard

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Balbir Singh
On Wed, Jul 13, 2016 at 02:55:55PM -0700, Kees Cook wrote: > This is the start of porting PAX_USERCOPY into the mainline kernel. This > is the first set of features, controlled by CONFIG_HARDENED_USERCOPY. The > work is based on code by PaX Team and Brad Spengler, and an earlier port > from Casey S

Re: [PATCH] sched/fair: do not announce throttled next buddy in dequeue_task_fair

2016-07-14 Thread Wanpeng Li
2016-07-15 6:49 GMT+08:00 : > Wanpeng Li writes: > >> 2016-07-15 1:54 GMT+08:00 : >>> Wanpeng Li writes: >>> 2016-07-14 1:06 GMT+08:00 : > Wanpeng Li writes: > >> 2016-07-13 1:25 GMT+08:00 : >>> Konstantin Khlebnikov writes: >>> On 11.07.2016 15:12, Xunlei

RE: [PATCH 06/32] x86/intel_rdt: Hot cpu support for Cache Allocation

2016-07-14 Thread Yu, Fenghua
> > > +static inline void intel_rdt_cpu_start(int cpu) { > > + struct intel_pqr_state *state = &per_cpu(pqr_state, cpu); > > + > > + state->closid = 0; > > + mutex_lock(&rdt_group_mutex); > > + if (rdt_cpumask_update(cpu)) > > + smp_call_function_single(cpu, c

Re: [PATCH] sched/fair: do not announce throttled next buddy in dequeue_task_fair

2016-07-14 Thread bsegall
Wanpeng Li writes: > 2016-07-15 1:54 GMT+08:00 : >> Wanpeng Li writes: >> >>> 2016-07-14 1:06 GMT+08:00 : Wanpeng Li writes: > 2016-07-13 1:25 GMT+08:00 : >> Konstantin Khlebnikov writes: >> >>> On 11.07.2016 15:12, Xunlei Pang wrote: On 2016/07/11 at 17:5

Re: [PATCH v13 00/12] support "task_isolation" mode

2016-07-14 Thread Chris Metcalf
On 7/14/2016 5:03 PM, Andy Lutomirski wrote: On Thu, Jul 14, 2016 at 1:48 PM, Chris Metcalf wrote: Here is a respin of the task-isolation patch set. This primarily reflects feedback from Frederic and Peter Z. I still think this is the wrong approach, at least at this point. The first step sh

Re: [PATCH 1/4] bus: brcmstb_gisb: make it explicitly non-modular

2016-07-14 Thread Florian Fainelli
On 07/03/2016 10:30 AM, Paul Gortmaker wrote: > The Kconfig for this driver is currently: > > config BRCMSTB_GISB_ARB > bool "Broadcom STB GISB bus arbiter" > > ...meaning that it currently is not being built as a module by anyone. > Lets remove all modular references, so that when readin

Re: [PATCH] sched/fair: do not announce throttled next buddy in dequeue_task_fair

2016-07-14 Thread Wanpeng Li
2016-07-15 1:54 GMT+08:00 : > Wanpeng Li writes: > >> 2016-07-14 1:06 GMT+08:00 : >>> Wanpeng Li writes: >>> 2016-07-13 1:25 GMT+08:00 : > Konstantin Khlebnikov writes: > >> On 11.07.2016 15:12, Xunlei Pang wrote: >>> On 2016/07/11 at 17:54, Wanpeng Li wrote: Hi

Re: [PATCH] radix-tree: fix radix_tree_iter_retry() for tagged iterators.

2016-07-14 Thread Ross Zwisler
On Thu, Jul 14, 2016 at 02:19:56PM +0300, Andrey Ryabinin wrote: > radix_tree_iter_retry() resets slot to NULL, but it doesn't reset tags. > Then NULL slot and non-zero iter.tags passed to radix_tree_next_slot() > leading to crash: > > RIP: [< inline >] radix_tree_next_slot include/linux/r

Re: [PATCH V9 7/9] vfio, platform: make reset driver a requirement by default

2016-07-14 Thread Alex Williamson
On Wed, 13 Jul 2016 22:06:33 -0400 Sinan Kaya wrote: > The code was allowing platform devices to be used without a supporting > VFIO reset driver. The hardware can be left in some inconsistent state > after a guest machine abort. > > The reset driver will put the hardware back to safe state and

Re: [PATCH net-next 3/9] net: dsa: mv88e6xxx: extract device mapping

2016-07-14 Thread Vivien Didelot
Hi David, all, kbuild test robot writes: > [auto build test ERROR on net-next/master] > > url: > https://github.com/0day-ci/linux/commits/Vivien-Didelot/net-dsa-mv88e6xxx-STP-and-Global-2-cleanup/20160707-210537 > config: i386-allmodconfig (attached as .config) > compiler: gcc-6 (Debian 6.1.

Re: [PATCH v3 04/12] of: add J-Core timer bindings

2016-07-14 Thread Rich Felker
On Thu, Jun 23, 2016 at 05:16:08PM -0400, Rich Felker wrote: > On Thu, Jun 02, 2016 at 05:44:25PM -0500, Rob Herring wrote: > > > > > In theory it would even be possible to just require a DT node per > > > > > cpulocal timer, but I didn't see a good way to make the bindings > > > > > represent the

Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread David Rientjes
On Thu, 14 Jul 2016, Xishi Qiu wrote: > alloc_migrate_target() is called from migrate_pages(), and the page > is always from user space, so we can add __GFP_HIGHMEM directly. > > Second, when we offline a node, the new page should alloced from other > nodes instead of the current node, because re

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Viresh Kumar
On 14-07-16, 16:55, Jan Kara wrote: > Agree on that - but that seems to be a problem of a particular wakeup > implementation of the 3.10 kernel Viresh is using, not a problem of the > upstream kernel. I think we can get it to trigger on mainline as well. Also to mention that I also don't see it on

[PATCH] staging: slicoss: handle allocation failure in slic_init_adapter

2016-07-14 Thread Lino Sanfilippo
The memory allocation in slic_init_adapter() can fail. Return an error in this case and unwind properly. Also make sure that the allocated memory is properly freed in case of an error in the calling probe() function. By doing this also replace the alloc() followed by memset to zero the memory with

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Viresh Kumar
On 14-07-16, 16:12, Jan Kara wrote: > Exactly. Calling printk() from certain parts of the kernel (like scheduler > code or timer code) has been always unsafe because printk itself uses these > parts and so it can lead to deadlocks. That's why printk_deffered() has > been introduced as you mention b

Re: [PATCH] security: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Paul Moore
On Thu, Jul 14, 2016 at 4:54 PM, Casey Schaufler wrote: > On 7/14/2016 12:57 PM, Paul Moore wrote: >> On Thu, Jul 14, 2016 at 12:30 PM, Casey Schaufler >> wrote: >>> On 7/14/2016 9:20 AM, Javier Martinez Canillas wrote: Hello Casey, On 07/14/2016 12:17 PM, Casey Schaufler wrote: >>

Re: [PATCH V9 6/9] vfio: platform: call _RST method when using ACPI

2016-07-14 Thread Alex Williamson
On Wed, 13 Jul 2016 22:06:32 -0400 Sinan Kaya wrote: > The device tree code checks for the presence of a reset driver and calls > the of_reset function pointer by looking up the reset driver as a module. > > ACPI defines _RST method to perform device level reset. After the _RST > method is execu

Re: System freezes after OOM

2016-07-14 Thread David Rientjes
On Fri, 15 Jul 2016, Tetsuo Handa wrote: > Whether the OOM reaper will free some memory no longer matters. Instead, > whether the OOM reaper will let the OOM killer select next OOM victim matters. > > Are you aware that the OOM reaper will let the OOM killer select next OOM > victim (currently by

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-14 Thread Andrey Vagin
Hello, I forgot to add --cc-cover for git send-email, so everyone who is in Cc got only a cover letter. All messages were sent in mail lists. Sorry for inconvenience. On Thu, Jul 14, 2016 at 11:20 AM, Andrey Vagin wrote: > Each namespace has an owning user namespace and now there is not way > t

Re: [PATCH] ARM: tegra: fix erroneous address in dts

2016-07-14 Thread Thierry Reding
On Thu, Jul 14, 2016 at 06:48:57PM +0200, Ralf Ramsauer wrote: > c90bb7b enabled the high speed UARTs of the Jetson TK1. The address > specification inside the dts is wrong. Fix it and use the correct > address. > > Fixes: c90bb7b9b9 ("ARM: tegra: Add high speed UARTs to Jetson TK1 device > tree"

Re: [PATCH] staging: octeon: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread David Daney
On 07/14/2016 10:06 AM, Javier Martinez Canillas wrote: The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas Acked-by: David Daney --- drivers/staging/o

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Viresh Kumar
On 14-07-16, 10:32, Sergey Senozhatsky wrote: > it wouldn't really, this silly question was not directly related to the > deadlock we are discussing here but to Viresh's argument that later stages > of suspending/hibernation seem to printk many messages in sync mode. so I > thought that there might

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Viresh Kumar
On 14-07-16, 09:55, Sergey Senozhatsky wrote: > excessive printing is just part of the problem here. if we cab cond_resched() > part of suspend/hibernation is cpu_down(), which lands in > console_cpu_notify(), > that does synchronous printing for every CPU taken down: > > static int console_cpu_n

Re: [PATCH 3.12 00/88] 3.12.62-stable review

2016-07-14 Thread Shuah Khan
On 07/14/2016 02:16 AM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.62 release. > There are 88 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be

[PATCH 1/2] net: ethernet: pasemi_mac: use phydev from struct net_device

2016-07-14 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/pa

[PATCH 2/2] net: ethernet: pasemi_mac: use phy_ethtool_{get|set}_link_ksettings

2016-07-14 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/pasemi/pasemi_mac_ethtool.c | 28 + 1 files changed, 2 insertions(+), 26 deleti

Re: [patch V2 30/67] powerpc/numa: Convert to hotplug state machine

2016-07-14 Thread Anton Blanchard
Hi, > From: Sebastian Andrzej Siewior > > Install the callbacks via the state machine and let the core invoke > the callbacks on the already online CPUs. This is causing an oops on ppc64le QEMU, looks like a NULL pointer: percpu: Embedded 3 pages/cpu @c0001fe0 s145816 r0 d50792 u104857

Re: [PATCH V9 4/9] vfio: platform: add support for ACPI probe

2016-07-14 Thread Alex Williamson
On Wed, 13 Jul 2016 22:06:30 -0400 Sinan Kaya wrote: > The code is using the compatible DT string to associate a reset driver > with the actual device itself. The compatible string does not exist on > ACPI based systems. HID is the unique identifier for a device driver > instead. > > Signed-off-

[PATCH 2/2] dax: remote unused fault wrappers

2016-07-14 Thread Ross Zwisler
Remove the unused wrappers dax_fault() and dax_pmd_fault(). After this removal, rename __dax_fault() and __dax_pmd_fault() to dax_fault() and dax_pmd_fault() respectively, and update all callers. The dax_fault() and dax_pmd_fault() wrappers were initially intended to capture some filesystem indep

[PATCH 1/2] dax: some small updates to dax.txt documentation

2016-07-14 Thread Ross Zwisler
These are originally from Matthew Wilcox and were part of his huge "mm,fs,dax: Change ->pmd_fault to ->huge_fault" patch that was part of PUD support. I'm breaking these small changes out as they stand on their own and add useful information to Documentation/filesystems/dax.txt. Signed-off-by: Ro

Re: System freezes after OOM

2016-07-14 Thread Tetsuo Handa
David Rientjes wrote: > On Thu, 14 Jul 2016, Tetsuo Handa wrote: > > > David Rientjes wrote: > > > On Wed, 13 Jul 2016, Mikulas Patocka wrote: > > > > > > > What are the real problems that > > > > f9054c70d28bc214b2857cf8db8269f4f45a5e23 > > > > tries to fix? > > > > > > > > > > It prevents t

Re: [PATCH v2 01/11] mm: Implement stack frame object validation

2016-07-14 Thread Kees Cook
On Thu, Jul 14, 2016 at 12:23 PM, Josh Poimboeuf wrote: > On Thu, Jul 14, 2016 at 11:10:18AM -0700, Kees Cook wrote: >> On Wed, Jul 13, 2016 at 10:48 PM, Josh Poimboeuf wrote: >> > On Wed, Jul 13, 2016 at 03:04:26PM -0700, Kees Cook wrote: >> >> On Wed, Jul 13, 2016 at 3:01 PM, Andy Lutomirski

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-14 Thread Ruslan Bilovol
Ping? On Wed, Jun 8, 2016 at 11:03 AM, Ruslan Bilovol wrote: > Hi guys, > > Any feedback on this patch series? Has anybody had a chance to test it? > > Regards, > Ruslan > > On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol > wrote: >> I came to this patch series when wanted to do two things: >>

Re: [PATCH v3] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Wanpeng Li
2016-07-14 22:52 GMT+08:00 Waiman Long : [...] > As pv_kick_node() is called immediately after designating the next node as > the queue head, the chance of this racing is possible, but is not likely > unless the lock holder vCPU gets preempted for a long time at that right > moment. This change doe

Re: [PATCH v2 3/4] drm/dsi: Implement dcs set/get display brightness

2016-07-14 Thread Emil Velikov
On 13 July 2016 at 17:44, Vinay Simha BN wrote: > +int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi, > + u16 *brightness) > +{ > + ssize_t err; > + > + err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_DISPLAY_BRIGHTNESS, > +

[PATCH] PCI: dra7xx: Fix return value in case of error

2016-07-14 Thread Christophe JAILLET
In function 'dra7xx_pcie_init_irq_domain', the pattern used to check and return error is: if (!var) { dev_err(...); return PTR_ERR(var); } So the returned value in case of error is always 0, which means 'success'. Change it to return -ENODEV instead. Signed-off-by: Christophe J

Re: [PATCH v8 4/4] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-07-14 Thread Emil Velikov
On 13 July 2016 at 19:58, John Stultz wrote: > On Wed, Jul 13, 2016 at 9:44 AM, Vinay Simha BN wrote: >> Add support for the JDI LT070ME05000 WUXGA DSI panel used in >> Nexus 7 2013 devices. >> >> Programming sequence for the panel is was originally found in the >> android-msm-flo-3.4-lollipop-re

[CFP] Power Management and Energy Awareness microconference at LPC 2016

2016-07-14 Thread Rafael J. Wysocki
Hi All, Now that LPC 2016 is ready for formal submissions of microconference discussion topics, please submit your topics for the Power Management and Energy Awareness microconference (especially if your topic is listed at http://wiki.linuxplumbersconf.org/2016:power_management_and_energy-awarene

Re: [PATCH v13 00/12] support "task_isolation" mode

2016-07-14 Thread Andy Lutomirski
On Thu, Jul 14, 2016 at 1:48 PM, Chris Metcalf wrote: > Here is a respin of the task-isolation patch set. This primarily > reflects feedback from Frederic and Peter Z. I still think this is the wrong approach, at least at this point. The first step should be to instrument things if necessary an

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