[PATCH 04/32] block: prepare blkdev_issue_discard for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie The next patches will prepare the submit_bio users for the split. There were a lot more users than there were for submit_bio_wait, so if the conversion was not a one liner, I broke it out into its own patch. This patch prepares blkdev_issue_discard. There is some compat code

[RFC PATCH 00/32] separate operations from flags in the bio/request structs

2015-11-04 Thread mchristi
There are a couple new block layer commands we are trying to add support for in the near term: compare and write http://www.spinics.net/lists/target-devel/msg07826.html copy offload/extended copy/xcopy https://www.redhat.com/archives/dm-devel/2014-July/msg00070.html The problem is if we contine

Re: [PATCH] dmaengine: edma: Add dummy driver skeleton for edma3-tptc

2015-11-04 Thread Felipe Balbi
Peter Ujfalusi writes: > The eDMA3 TPTC does not need any software configuration, but it is a > separate IP block in the SoC. In order the omap hwmod core to be able to > handle the TPTC resources correctly in regards of PM we need to have a > driver loaded for it. > This patch will add a dummy d

[PATCH 02/32] block/fs/mm: prepare submit_bio_wait users for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares submit_bio_wait callers for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers now pass them in seperately. Temp issue: When the fs.h read/write types,

[PATCH 01/32] block/fs: add REQ_OP definitions.

2015-11-04 Thread mchristi
From: Mike Christie This patch adds definitions for request/bio operations which will be used in the next patches. In the initial patches the REQ_OPs match the REQ ones for compat reasons while all the code is converted in this set. In the last patches that will be removed. Signed-off-by: Mike

Re: [PATCH] dmaengine: edma: Add dummy driver skeleton for edma3-tptc

2015-11-04 Thread Vinod Koul
On Wed, Nov 04, 2015 at 10:33:27AM -0600, Felipe Balbi wrote: > Peter Ujfalusi writes: > > > The eDMA3 TPTC does not need any software configuration, but it is a > > separate IP block in the SoC. In order the omap hwmod core to be able to > > handle the TPTC resources correctly in regards of PM w

[PATCH 03/32] dio/btrfs: prep dio->submit_bio users for bi_rw split.

2015-11-04 Thread mchristi
From: Mike Christie Instead of passing around a bitmap of ops and flags, the next patches separate it into a op field and a flags field. This patch prepares the dio code and dio->submit_bio users for the split. Note that the next patches will fix up the submit_bio() call with along other users o

Re: [PATCH] sparc(64)/iommu: fixup iommu_tbl_range_alloc() types

2015-11-04 Thread David Miller
From: Andre Przywara Date: Mon, 5 Oct 2015 10:54:05 +0100 > On 21/09/15 18:17, Andre Przywara wrote: >> With DMA_ERROR_CODE now being dma_addr_t in most architectures, it >> turned out that iommu_tbl_range_alloc (defined in lib/iommu-common.c) >> is actually using a wrong return type. >> This was

Re: [patch] vfio: make an array larger

2015-11-04 Thread Joe Perches
On Wed, 2015-11-04 at 16:26 +0300, Dan Carpenter wrote: > Smatch complains about a possible out of bounds error: > > drivers/vfio/pci/vfio_pci_config.c:1241 vfio_cap_init() > error: buffer overflow 'pci_cap_length' 20 <= 20 > > Fix this by making the array larger. > > Signed-off-by:

Re: [PATCH RESEND] toshiba_acpi: Initialize hotkey_event_type variable

2015-11-04 Thread Darren Hart
On Wed, Nov 04, 2015 at 09:28:26AM -0700, Azael Avalos wrote: > Commit 23f8f4326a15 ("toshiba_acpi: Fix hotkeys registration on some > toshiba models") fixed an issue on some laptops regarding hotkeys > registration, however, if failed to address the initialization of the > hotkey_event_type variab

Re: [dm-devel] [RFC PATCH 00/32] separate operations from flags in the bio/request structs

2015-11-04 Thread Bart Van Assche
On 11/04/2015 08:32 AM, mchri...@redhat.com wrote: There are a couple new block layer commands we are trying to add support for in the near term: compare and write http://www.spinics.net/lists/target-devel/msg07826.html copy offload/extended copy/xcopy https://www.redhat.com/archives/dm-devel/2

i.MX6: Increasing VPU frequency

2015-11-04 Thread Jean-Michel Hautbois
Hi ! I can see in FSL kernel that VPU is configurable to 352M (it defaults at 264MHz in mainline I think). In the TRM, it is even specified at 352MHz as a default frequency, with a maximum of 540MHz. Would it be possible to allow this clock rating modification if, for instance, we select a perfor

Re: [patch] vfio: make an array larger

2015-11-04 Thread Alex Williamson
On Wed, 2015-11-04 at 16:26 +0300, Dan Carpenter wrote: > Smatch complains about a possible out of bounds error: > > drivers/vfio/pci/vfio_pci_config.c:1241 vfio_cap_init() > error: buffer overflow 'pci_cap_length' 20 <= 20 > > Fix this by making the array larger. > > Signed-off-by:

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-04 Thread Jacob Pan
On Tue, 3 Nov 2015 22:06:55 -0800 Eduardo Valentin wrote: > Hello Jacob, > > On Mon, Nov 02, 2015 at 04:10:25PM -0800, Jacob Pan wrote: > > Hi Peter and all, > > > > A while ago, we had discussion about how powerclamp is broken in the > > sense of turning off idle ticks in the forced idle perio

Re: [PATCH] livepatch: x86: bugfix about kASLR

2015-11-04 Thread Cyril B.
Zhou Chengming wrote: When enable KASLR, func->old_addr will be set to zero and livepatch will find the right old address. But for reloc, livepatch just verify it using reloc->val (old addr from user), so verify failed and report "kernel mismatch" error. Reported-by: Cyril B. Signed-off-by: Zhou

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

2015-11-04 Thread Kevin Hilman
Vinod Koul writes: > On Tue, Nov 03, 2015 at 01:25:09PM -0800, Kevin Hilman wrote: >> >/* Enable clock before accessing register */ >> > - ret = tegra_dma_runtime_resume(dev); >> > + ret = pm_runtime_get_sync(dev); >> >> If you are runtime suspended then co

Re: ptrace and pseudoterminals

2015-11-04 Thread Peter Hurley
Hi Pavel, On 11/03/2015 06:16 PM, Pavel Labath wrote: > Hello Oleg, everyone, > > I have noticed something, which may be considered a race in the > interaction of ptrace and pseudoterminal interfaces. Basically, what > happens is this: > - we have two processes: A and B. B has the slave end of th

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-04 Thread Srinivas Pandruvada
On Wed, 2015-11-04 at 08:58 -0800, Jacob Pan wrote: > On Tue, 3 Nov 2015 22:06:55 -0800 > Eduardo Valentin wrote: > > > Hello Jacob, > > > > On Mon, Nov 02, 2015 at 04:10:25PM -0800, Jacob Pan wrote: > > > Hi Peter and all, > > > > > > A while ago, we had discussion about how powerclamp is brok

[PATCH v3 1/6] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC

2015-11-04 Thread Andrew F. Davis
The TPS65086 PMIC contains several regulators and a GPO controller. Add bindings for the TPS65086 PMIC. Signed-off-by: Andrew F. Davis --- Documentation/devicetree/bindings/mfd/tps65086.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 5/6] regulator: tps65086: Add regulator driver for the TPS65086 PMIC

2015-11-04 Thread Andrew F. Davis
Add support for TPS65086 PMIC regulators. The regulators set consists of 3 Step-down Controllers, 3 Step-down Converters, 3 LDOs, 3 Load Switches, and a Sink and Source LDO. The output voltages are configurable and are meant to supply power to a SoC and/or other components. Signed-off-by: Andrew

[PATCH v3 6/6] gpio: tps65086: Add GPIO driver for the TPS65086 PMIC

2015-11-04 Thread Andrew F. Davis
Add support for the TPS65086 PMIC GPOs. TPS65086 has four configurable GPOs that can be used for several purposes. Signed-off-by: Andrew F. Davis --- drivers/gpio/Kconfig | 6 +++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-tps65086.c | 115

[PATCH v3 3/6] Documentation: tps65086: Add DT bindings for the TPS65086 GPO controller

2015-11-04 Thread Andrew F. Davis
The TPS65086 PMIC contains several regulators and a GPO controller. Add bindings for the TPS65086 GPO controller. Signed-off-by: Andrew F. Davis --- Documentation/devicetree/bindings/gpio/gpio-tps65086.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/

[PATCH v3 4/6] mfd: tps65086: Add driver for the TPS65086 PMIC

2015-11-04 Thread Andrew F. Davis
Add support for the TPS65912 device. It provides communication through I2C and contains the following components: - Regulators - Load switches - GPO controller Signed-off-by: Andrew F. Davis --- drivers/mfd/Kconfig | 14 drivers/mfd/Makefile | 1 + drivers/mfd/tps650

[PATCH v3 2/6] Documentation: tps65086: Add DT bindings for the TPS65086 regulators

2015-11-04 Thread Andrew F. Davis
The TPS65086 PMIC contains several regulators and a GPO controller. Add bindings for the TPS65086 regulators. Signed-off-by: Andrew F. Davis --- .../bindings/regulator/tps65086-regulator.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/dev

[PATCH v3 0/6] Add support for the TI TPS65086 PMIC

2015-11-04 Thread Andrew F. Davis
This series adds support for the TPS65086 PMIC. It is a MFD with an I2C interface, several regulators and load switches, and a GPO controller. Based on v4.3-rc1 and needs b4fe8ba ("regmap: Add generic macro to define regmap_irq") from Lee Jones' tree to build. v1 can be found here: [1] v2: [2]

[PATCH] timer: add_timer_on() should perform proper migration

2015-11-04 Thread Tejun Heo
Regardless of the previous CPU a timer was on, add_timer_on() currently simply sets timer->flags to the new CPU. As the caller must be seeing the timer as idle, this is locally fine, but the timer leaving the old base while unlocked can lead to race conditions as follows. Let's say timer was on c

Re: [PATCH v4 4/6] reset: sunxi: Add Allwinner H3 bus resets

2015-11-04 Thread Maxime Ripard
Hi Arnd, On Fri, Oct 30, 2015 at 09:27:03AM +0100, Arnd Bergmann wrote: > On Tuesday 27 October 2015 17:50:24 Jens Kuske wrote: > > > > +static int sun8i_h3_bus_reset_xlate(struct reset_controller_dev *rcdev, > > + const struct of_phandle_args > > *reset_spec) >

[PATCH] ASoC: wm9713: add gpio chip

2015-11-04 Thread Robert Jarzmik
The Wolfson WM9713 provides 8 GPIOs. If the gpiolib is compiled in the kernel, declare a gpio chip. Signed-off-by: Robert Jarzmik --- sound/soc/codecs/wm9713.c | 123 ++ sound/soc/codecs/wm9713.h | 1 + 2 files changed, 124 insertions(+) diff --git

Re: [lustre-devel] [PATCH v2 1/7] staging: lustre: remove white space in libcfs_hash.h

2015-11-04 Thread Greg Kroah-Hartman
On Wed, Nov 04, 2015 at 03:07:13PM +, Simmons, James A. wrote: > >On Tue, Nov 03, 2015 at 07:46:07PM -0800, Greg Kroah-Hartman wrote: > >> On Mon, Nov 02, 2015 at 12:22:07PM -0500, James Simmons wrote: > >> > Cleanup all the unneeded white space in libcfs_hash.h. > >> > > >> > Signed-off-by: J

Re: [PATCH 2/2] ARM: at91/dt: remove bootargs

2015-11-04 Thread Nicolas Ferre
Le 04/11/2015 16:15, Alexandre Belloni a écrit : > Passing earlyprintk in the bootargs may crash the board as it depends on > having a sane DEBUG_UART_PHYS configured which is not always the case. > > Also remove ignore_loglevel > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > -

Re: i.MX6: Increasing VPU frequency

2015-11-04 Thread Jon Nettleton
On Wed, Nov 4, 2015 at 5:52 PM, Jean-Michel Hautbois wrote: > Hi ! > > I can see in FSL kernel that VPU is configurable to 352M (it defaults > at 264MHz in mainline I think). > In the TRM, it is even specified at 352MHz as a default frequency, > with a maximum of 540MHz. > > Would it be possible t

[PATCH] perf trace: fix documentation for -i

2015-11-04 Thread Peter Feiner
The -i flag was incorrectly listed as a short flag for --no-inherit. It should have only been listed as a short flag for --input. This documentation error has existed since the --input flag was introduced in 6810fc915f7a89d8134edb3996dbbf8eac386c26 (perf trace: Add option to analyze events in a fi

Re: RFC rdma cgroup

2015-11-04 Thread Parav Pandit
On Wed, Nov 4, 2015 at 5:28 PM, Haggai Eran wrote: > On 03/11/2015 21:11, Parav Pandit wrote: >> So it looks like below, >> #cat rdma.resources.verbs.list >> Output: >> mlx4_0 uctx ah pd cq mr mw srq qp flow >> mlx4_1 uctx ah pd cq mr mw srq qp flow rss_wq > What happens if you set a limit of rss_

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

2015-11-04 Thread Davidlohr Bueso
On Wed, 04 Nov 2015, Peter Zijlstra wrote: On Tue, Nov 03, 2015 at 04:03:29PM +0100, Sebastian Andrzej Siewior wrote: - struct msg_msg *volatile r_msg; + struct msg_msg *r_msg; + wake_q_add(wake_q, msr->r_tsk);

[PATCH v2 1/3] thermal: Add support for hierarchical thermal zones

2015-11-04 Thread Javi Merino
Add the ability to stack thermal zones on top of each other, creating a hierarchy of thermal zones. Cc: Zhang Rui Cc: Eduardo Valentin Signed-off-by: Javi Merino --- Documentation/thermal/sysfs-api.txt | 35 + drivers/thermal/thermal_core.c | 151 +

[PATCH v2 2/3] thermal: of: parse stacked thermal zones from device tree

2015-11-04 Thread Javi Merino
Let device tree set thermal zones in the thermal-sensors list of phandles and set up the thermal zone hierarchy based on the information present there. Cc: Zhang Rui Cc: Eduardo Valentin Signed-off-by: Javi Merino --- .../devicetree/bindings/thermal/thermal.txt| 154 +++

[PATCH v2 0/3] Hierarchical thermal zones

2015-11-04 Thread Javi Merino
This series adds the ability to create a hierarchy of thermal zones. Thermal zones created via platform code or device tree can be set up to calculate their temperature as the maximum of all its underlying thermal zones. This came up from discussions during LPC. The first patch adds the basic sup

[PATCH v2 3/3] thermal: show the sub thermal zones in sysfs

2015-11-04 Thread Javi Merino
When a thermal zone is created that has sub thermal zones via devicetree or via thermal_zone_add_subtz() expose that relationship in sysfs. Cc: Zhang Rui Cc: Eduardo Valentin Signed-off-by: Javi Merino --- Documentation/thermal/sysfs-api.txt | 5 + drivers/thermal/thermal_core.c | 22

Re: [dm-devel] [RFC PATCH 00/32] separate operations from flags in the bio/request structs

2015-11-04 Thread Mike Christie
On 11/04/2015 10:49 AM, Bart Van Assche wrote: > Hello Mike, > > If you have to touch submit_bio() and submit_bio_wait(), how about > requiring the callers of these functions to set the cmd and flags > arguments in the bio structure and to leave out the cmd and flags > arguments from the submit_bi

Re: [PATCH 1/2] ARM: at91/dt: remove leftovers clock definition

2015-11-04 Thread Nicolas Ferre
Le 04/11/2015 16:15, Alexandre Belloni a écrit : > The clocks group properties and the clock@0 node are useless, remove them > to avoid copy pasting in future device trees. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > arch/arm/boot/dts/at91-kizbox.dts | 9 --

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

2015-11-04 Thread Andy Shevchenko
On Wed, Nov 4, 2015 at 2:07 AM, Sinan Kaya wrote: > On 11/3/2015 5:10 AM, Andy Shevchenko wrote: >> On Mon, Nov 2, 2015 at 8:07 AM, Sinan Kaya wrote: >>> +static void hidma_issue_pending(struct dma_chan *dmach) >>> +{ >> >> >> Wrong. It should actually start the transfer. tx_submit() just puts >

RE: [PATCH v1 00/20] eznps a new ARC platform

2015-11-04 Thread Vineet Gupta
don't post it yet - im yet to finish the review of mail patch ! From: Noam Camus [no...@ezchip.com] Sent: Wednesday, November 04, 2015 9:23 PM To: Vineet Gupta; linux-snps-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org; Tal Zilcer; Gil Fruchter; C

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Shaohua Li
On Tue, Nov 03, 2015 at 09:52:23AM +0900, Minchan Kim wrote: > On Fri, Oct 30, 2015 at 10:22:12AM -0700, Shaohua Li wrote: > > On Fri, Oct 30, 2015 at 04:01:41PM +0900, Minchan Kim wrote: > > > MADV_FREE is a hint that it's okay to discard pages if there is memory > > > pressure and we use reclaime

[PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-04 Thread Yang Shi
FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine it in arch/arm64/Kconfig.debug. Signed-off-by: Yang Shi --- arch/arm64/Kconfig.debug | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug index d6285ef..915dea7 1006

[PATCH] fs-ext4: Delete unnecessary checks before the function call "iput"

2015-11-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Nov 2015 18:48:38 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/ext4/resiz

Re: [RFC] namei: prevent sgid-hardlinks for unmapped gids

2015-11-04 Thread Andy Lutomirski
On Tue, Nov 3, 2015 at 10:58 PM, Willy Tarreau wrote: > On Tue, Nov 03, 2015 at 03:29:55PM -0800, Kees Cook wrote: >> Using "write" does kill the set-gid bit. I haven't looked at >> why. >> Al or anyone else, is there a meaningful distinction here? > > I remember this one, I got caught once while

Re: [PATCHv2 1/4] arm-cci: Refactor CCI PMU code

2015-11-04 Thread Mark Rutland
On Tue, Oct 20, 2015 at 02:05:23PM +0100, Suzuki K. Poulose wrote: > This patch refactors the CCI PMU driver code a little bit to > make it easier share the code for enabling/disabling the CCI > PMU. This will be used by the hooks to work around the special cases > where writing to a counter is not

RE: PCIe host controller behind IOMMU on ARM

2015-11-04 Thread Phil Edworthy
Hi Will, On 04 November 2015 15:30, Will wrote: > On Wed, Nov 04, 2015 at 03:19:13PM +, Phil Edworthy wrote: > > On 04 November 2015 15:02, Liviu wrote: > > > On Wed, Nov 04, 2015 at 02:48:38PM +, Phil Edworthy wrote: > > > > Sure, though since this is bog standard Intel PCIe ethernet card

Re: [PATCH] arm64: bpf: fix div-by-zero case

2015-11-04 Thread Shi, Yang
On 11/3/2015 10:56 PM, Zi Shen Lim wrote: In the case of division by zero in a BPF program: A = A / X; (X == 0) the expected behavior is to terminate with return value 0. This is confirmed by the test case introduced in commit 86bf1721b226 ("test_bpf: add tests checking that JIT/interpr

Announce loop-AES-v3.7f file/swap crypto package

2015-11-04 Thread Jari Ruusu
loop-AES changes since previous release: - Worked around block layer interface changes on 4.3 kernels. bzip2 compressed tarball is here: http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.7f.tar.bz2 md5sum 5f50564b9aa67b6c96e363e81899a92c http://loop-aes.sourceforge.net/loop-AES/lo

Re: Linux 4.4 MW: Boot under Xen fails with CONFIG_DEBUG_WX enabled: RIP: ptdump_walk_pgd_level_core

2015-11-04 Thread Ingo Molnar
43] IP: [] > >ptdump_walk_pgd_level_core+0x20e/0x440 > >[ 18.465847] PGD 2212067 PUD 0 > >[ 18.471564] Oops: [#1] SMP > >[ 18.477248] Modules linked in: > >[ 18.482918] CPU: 2 PID: 1 Comm: swapper/0 Not tainted > >4.3.0-mw-20151104-linus-doflr+ #1

Re: [PATCHv2 2/4] arm-cci: Get the status of a counter

2015-11-04 Thread Mark Rutland
On Tue, Oct 20, 2015 at 02:05:24PM +0100, Suzuki K. Poulose wrote: > Add helper routines to get the counter status and the event > programmed on it. > > Cc: Punit Agrawal > Cc: Mark Rutland > Cc: a...@kernel.org > Signed-off-by: Suzuki K. Poulose > --- > drivers/bus/arm-cci.c | 10 ++

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

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 05, 2015 at 12:34:57AM +0900, Namhyung Kim escreveu: > Hi Arnaldo and Brendan, > > On Wed, Nov 04, 2015 at 11:51:31AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Nov 03, 2015 at 10:02:32PM -0800, Brendan Gregg escreveu: > > > On Tue, Nov 3, 2015 at 5:54 PM, Namhyung Kim wrote:

Re: [RFC] namei: prevent sgid-hardlinks for unmapped gids

2015-11-04 Thread Willy Tarreau
On Wed, Nov 04, 2015 at 09:59:55AM -0800, Andy Lutomirski wrote: > On Tue, Nov 3, 2015 at 10:58 PM, Willy Tarreau wrote: > > On Tue, Nov 03, 2015 at 03:29:55PM -0800, Kees Cook wrote: > >> Using "write" does kill the set-gid bit. I haven't looked at > >> why. > >> Al or anyone else, is there a mea

Re: [BUG, bisect, PATCH 04/10] tpm: move the PPI attributes to character device directory.

2015-11-04 Thread Jeremiah Mahler
Jarkko, all, On Fri, Oct 16, 2015 at 09:40:23PM +0300, Jarkko Sakkinen wrote: > Moved PPI attributes to the character device directory. This aligns with > the sysfs guidelines and makes them race free because they are created > atomically with the character device as part of device_register().The

Re: [PATCHv2 1/4] arm-cci: Refactor CCI PMU code

2015-11-04 Thread Suzuki K. Poulose
On 04/11/15 18:01, Mark Rutland wrote: On Tue, Oct 20, 2015 at 02:05:23PM +0100, Suzuki K. Poulose wrote: This patch refactors the CCI PMU driver code a little bit to make it easier share the code for enabling/disabling the CCI PMU. This will be used by the hooks to work around the special cases

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

2015-11-04 Thread Davidlohr Bueso
On Tue, 03 Nov 2015, Sebastian Andrzej Siewior wrote: In pipelined_receive() (mqueue) there is the wake_q_add() with the implicit cmpxchg barrier. The matching barrier pairing should be in wq_sleep() but there is none. Why is it okay to have none there and I need one here? So the pairing in mq

Re: Linux 4.4 MW: Boot under Xen fails with CONFIG_DEBUG_WX enabled: RIP: ptdump_walk_pgd_level_core

2015-11-04 Thread Sander Eikelenboom
40 >[ 18.465847] PGD 2212067 PUD 0 >[ 18.471564] Oops: [#1] SMP >[ 18.477248] Modules linked in: >[ 18.482918] CPU: 2 PID: 1 Comm: swapper/0 Not tainted >4.3.0-mw-20151104-linus-doflr+ #1 >[ 18.488804] Hardware name: MSI MS-7640/890FXA-GD70 (MS-7640) , BIOS &

Re: [PATCHv2 2/4] arm-cci: Get the status of a counter

2015-11-04 Thread Suzuki K. Poulose
On 04/11/15 18:06, Mark Rutland wrote: On Tue, Oct 20, 2015 at 02:05:24PM +0100, Suzuki K. Poulose wrote: Add helper routines to get the counter status and the event programmed on it. +static u32 pmu_get_counter_ctrl(struct cci_pmu *cci_pmu, int idx) +{ + return pmu_read_register(cci_p

Re: [patch] vfio: make an array larger

2015-11-04 Thread Dan Carpenter
Sorry, I should have said that I am on linux-next at the start. > > -static u8 pci_cap_length[] = { > > +static u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = { > > [PCI_CAP_ID_BASIC] = PCI_STD_HEADER_SIZEOF, /* pci config header */ > > [PCI_CAP_ID_PM] = PCI_PM_SIZEOF, > > [PCI_C

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Shaohua Li
On Wed, Nov 04, 2015 at 09:53:42AM -0800, Shaohua Li wrote: > On Tue, Nov 03, 2015 at 09:52:23AM +0900, Minchan Kim wrote: > > On Fri, Oct 30, 2015 at 10:22:12AM -0700, Shaohua Li wrote: > > > On Fri, Oct 30, 2015 at 04:01:41PM +0900, Minchan Kim wrote: > > > > MADV_FREE is a hint that it's okay to

Re: [PATCH] arm64: bpf: fix div-by-zero case

2015-11-04 Thread Shi, Yang
On 11/3/2015 11:04 PM, Xi Wang wrote: On Tue, Nov 3, 2015 at 10:56 PM, Zi Shen Lim wrote: case BPF_ALU | BPF_DIV | BPF_X: case BPF_ALU64 | BPF_DIV | BPF_X: + { + const u8 r0 = bpf2a64[BPF_REG_0]; + + /* if (src == 0) return 0 */ +

Re: [PATCH v2 2/2] arm: mm: support ARCH_MMAP_RND_BITS.

2015-11-04 Thread Daniel Cashman
On 11/3/15 3:18 PM, Kees Cook wrote: > On Tue, Nov 3, 2015 at 2:39 PM, Russell King - ARM Linux > wrote: >> On Tue, Nov 03, 2015 at 11:19:44AM -0800, Kees Cook wrote: >>> On Tue, Nov 3, 2015 at 10:10 AM, Daniel Cashman >>> wrote: From: dcashman arm: arch_mmap_rnd() uses a hard-co

[PATCH 0/1] (Was: WARNING in task_participate_group_stop)

2015-11-04 Thread Oleg Nesterov
On 11/02, Oleg Nesterov wrote: > > and I think this should be fixed anyway, if nothing else to make this logic > more > correct. Yes, please see the patch. > I'll try to recheck this all later. I found more problems, will try to send the fixes/cleanups tomorrow... do_signal_stop() is buggy, a

[PATCH 1/1] signal: kill the obsolete SIGNAL_UNKILLABLE check in complete_signal()

2015-11-04 Thread Oleg Nesterov
complete_signal() checks SIGNAL_UNKILLABLE before it starts to destroy the thread group, today this is unnecessary and even not 100% correct. After the commit f008faff0e27 ("signals: protect init from unwanted signals more") we rely on sig_task_ignored(), complete_signal(SIGKILL) can only see a SI

Re: [patch] vfio: make an array larger

2015-11-04 Thread Dan Carpenter
On Wed, Nov 04, 2015 at 08:40:19AM -0800, Joe Perches wrote: > Doesn't the same thing happen with pci_ext_cap_length? pci_ext_cap_length is fine as-is but you're right that we probably should make the size explicit as well. I will fix and resend. > Both array declarations might be better as cons

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Andy Lutomirski
On Tue, Nov 3, 2015 at 9:50 PM, Daniel Micay wrote: >> Does this set the write protect bit? >> >> What happens on architectures without hardware dirty tracking? > > It's supposed to avoid needing page faults when the data is accessed > again, but it can just be implemented via page faults on archi

Re: [RFC] namei: prevent sgid-hardlinks for unmapped gids

2015-11-04 Thread Andy Lutomirski
On Wed, Nov 4, 2015 at 10:15 AM, Willy Tarreau wrote: > On Wed, Nov 04, 2015 at 09:59:55AM -0800, Andy Lutomirski wrote: >> On Tue, Nov 3, 2015 at 10:58 PM, Willy Tarreau wrote: >> > On Tue, Nov 03, 2015 at 03:29:55PM -0800, Kees Cook wrote: >> >> Using "write" does kill the set-gid bit. I haven'

[PATCH v2] vfio: Include No-IOMMU mode

2015-11-04 Thread Alex Williamson
There is really no way to safely give a user full access to a DMA capable device without an IOMMU to protect the host system. There is also no way to provide DMA translation, for use cases such as device assignment to virtual machines. However, there are still those users that want userspace driv

Re: [RFC] namei: prevent sgid-hardlinks for unmapped gids

2015-11-04 Thread Willy Tarreau
On Wed, Nov 04, 2015 at 10:17:06AM -0800, Andy Lutomirski wrote: > > That said I never feel completely comfortable with changing a file's > > permissions this way, I always fear it could break backup/restore > > applications. Let's imagine for a minute that a restore does this : > > > > extract(co

[PATCH] genirq: delay incrementing interrupt count if it's disabled/pending

2015-11-04 Thread Sudeep Holla
In case of wakeup interrupt, irq_pm_check_wakeup disables the interrupt and marks it pending and suspended, disable it and notifies the pm core about the wake event. The interrupt gets handled later once the system is resumed. However the irq stats is updated twice: once when it's disabled waiting

Re: [RFC 00/11] DAX fsynx/msync support

2015-11-04 Thread Jeff Moyer
Jeff Moyer writes: >> Hence once the filesystem has waited on the REQ_WRITE|REQ_FLUSH IO >> to complete, we know that all the earlier REQ_WRITE IOs are on >> stable storage, too. Hence there's no need for the elevator to drain >> the queue to guarantee completion ordering - the dispatch ordering

Re: [PATCH v2 2/2] arm: mm: support ARCH_MMAP_RND_BITS.

2015-11-04 Thread Daniel Cashman
On 11/3/15 3:21 PM, Kees Cook wrote: > On Tue, Nov 3, 2015 at 3:14 PM, Daniel Cashman wrote: >> On 11/03/2015 11:19 AM, Kees Cook wrote: >>> Do you have patches for x86 and arm64? >> >> I was holding off on those until I could gauge upstream reception. If >> desired, I could put those together an

[PATCH 10/10] staging: lustre: fix 'error handling' issues for libcfs workitem.c

2015-11-04 Thread James Simmons
From: Sebastien Buisson Fix 'error handling' issues found by Coverity version 6.5.1: Unchecked return value (CHECKED_RETURN) Calling function without checking return value. Signed-off-by: Sebastien Buisson Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3427 Reviewed-on: http://review.whamc

[PATCH 06/10] staging: lustre: Update module author to OpenSFS

2015-11-04 Thread James Simmons
The modinfo data has gone stale for the author information. This patch changes all the MODULE_AUTHOR to OpenSFS. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on: http://review.whamcloud.com/16132 Reviewed-by: Frank Zago Reviewed-by: Andreas Dilge

[PATCH 09/10] staging: lustre: remove page_collection::pc_lock in libcfs

2015-11-04 Thread James Simmons
From: Liang Zhen page_collection::pc_lock is supposed to protect race between functions called by smp_call_function(), however we don't have this use-case for ages and page_collection only lives in stack of thread, so it is safe to remove it. Signed-off-by: Liang Zhen Intel-bug-id: https://jira

[PATCH 08/10] staging: lustre: race condition for check/use cfs_fail_val

2015-11-04 Thread James Simmons
From: Fan Yong There are some race conditions when check/use cfs_fail_val. For example: when inject failure stub for LFSCK test as following: 764 if (OBD_FAIL_CHECK(OBD_FAIL_LFSCK_DELAY2) && 765 cfs_fail_val > 0) { 766 struct l_wait_info lwi; 767 768 lwi = LWI_TIMEOUT

[PATCH 02/10] staging: lustre: remove unnecessary EXPORT_SYMBOL in libcfs

2015-11-04 Thread James Simmons
From: frank zago A lot of symbols don't need to be exported at all because they are only used in the module they belong to. Signed-off-by: frank zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829 Reviewed-on: http://review.whamcloud.com/13319 Reviewed-by: James Simmons Reviewed-by:

Re: [PATCH] arm64: bpf: fix div-by-zero case

2015-11-04 Thread Shi, Yang
On 11/4/2015 10:25 AM, Z Lim wrote: On Wed, Nov 4, 2015 at 10:21 AM, Shi, Yang wrote: On 11/3/2015 11:04 PM, Xi Wang wrote: On Tue, Nov 3, 2015 at 10:56 PM, Zi Shen Lim wrote: case BPF_ALU | BPF_DIV | BPF_X: case BPF_ALU64 | BPF_DIV | BPF_X: + { + co

[PATCH 07/10] staging: lustre: Handle nodemask on UMP machines

2015-11-04 Thread James Simmons
For UMP and SMP machines the struct cfs_cpt_table are defined differently. In the case handled by this patch nodemask is defined as a integer for the UMP case and as a pointer for the SMP case. This will cause a problem for ost_setup which reads the nodemask directly. Instead we create a UMP versio

[PATCH 01/10] staging: lustre: wrong parameter to cfs_hash_keycpy

2015-11-04 Thread James Simmons
From: Liang Zhen cfs_hash_rehash_key() passed wrong parameter to cfs_hash_keycpy, hnode should be the second parameter not the third one. Signed-off-by: Liang Zhen Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4362 Reviewed-on: http://review.whamcloud.com/8509 Reviewed-by: Bobi Jam Revie

[PATCH 05/10] staging: lustre: Fix possible NULL pointer dereference in lprocfs_status.c

2015-11-04 Thread James Simmons
From: Dmitry Eremin The imp->imp_connection really could be NULL, we better check for it before dereferencing it in taht call to libcfs_nid2str_r. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6507 Reviewed-on: http://review.whamcloud.com/14808 Reviewed-by: Bo

[PATCH 04/10] staging: lustre: fix buffer overflow of string buffer

2015-11-04 Thread James Simmons
From: Dmitry Eremin Buffer overflow of string buffer due to non null terminated string. Use strlcpy() when it's justifiable. Use sizeof(var) instead of constants. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on: http://review.whamcloud.com/9389

[PATCH 03/10] staging: lustre: remove libcfs_debug_set_level prototype from libcfs_private.h

2015-11-04 Thread James Simmons
From: frank zago The function libcfs_debug_set_level is used only internally so no reason to expose it in libcfs_private.h. This is broken out from LU-5829 patch http://review.whamcloud.com/13319. Signed-off-by: frank zago --- .../lustre/include/linux/libcfs/libcfs_private.h |2 -- 1 fil

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-04 Thread Eduardo Valentin
Hello Jacob, Srinivas, On Wed, Nov 04, 2015 at 09:05:52AM -0800, Srinivas Pandruvada wrote: > On Wed, 2015-11-04 at 08:58 -0800, Jacob Pan wrote: > > > > I have two choices for this code: > > > > 1) be part of existing powerclamp driver but require exporting some > > > >sched APIs. > > > > 2

Re: linux-next: Tree for Nov 4 (serial console & earlycon)

2015-11-04 Thread Randy Dunlap
On 11/03/15 22:38, Stephen Rothwell wrote: > Hi all, > > Please do *not* add any material intended for v4.5 to your linux-next > included branches until after v4.4-rc1 has been released. > > Changes since 20151103: > on x86_64: drivers/built-in.o: In function `setup_earlycon': (.init.text+0xe

[PATCH] sched,numa cap pte scanning overhead to 3% of run time

2015-11-04 Thread Rik van Riel
There is a fundamental mismatch between the runtime based NUMA scanning at the task level, and the wall clock time NUMA scanning at the mm level. On a severely overloaded system, with very large processes, this mismatch can cause the system to spend all of its time in change_prot_numa(). This can

Re: Linux 4.4 MW: Boot under Xen fails with CONFIG_DEBUG_WX enabled: RIP: ptdump_walk_pgd_level_core

2015-11-04 Thread Sander Eikelenboom
linked in: [ 18.482918] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.3.0-mw-20151104-linus-doflr+ #1 [ 18.488804] Hardware name: MSI MS-7640/890FXA-GD70 (MS-7640) , BIOS V1.8B1 09/13/2010 [ 18.494778] task: 880059b9 ti: 880059b98000 task.ti: 880059b98000 [ 18.500852]

Re: Linux 4.4 MW: Boot under Xen fails with CONFIG_DEBUG_WX enabled: RIP: ptdump_walk_pgd_level_core

2015-11-04 Thread Stephen Smalley
Oops: [#1] SMP [ 18.477248] Modules linked in: [ 18.482918] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.3.0-mw-20151104-linus-doflr+ #1 [ 18.488804] Hardware name: MSI MS-7640/890FXA-GD70 (MS-7640) , BIOS V1.8B1 09/13/2010 [ 18.494778] task: 880059b9 ti: 880059b980

Re: [patch] vfio: make an array larger

2015-11-04 Thread Alex Williamson
On Wed, 2015-11-04 at 21:20 +0300, Dan Carpenter wrote: > Sorry, I should have said that I am on linux-next at the start. > > > > -static u8 pci_cap_length[] = { > > > +static u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = { > > > [PCI_CAP_ID_BASIC] = PCI_STD_HEADER_SIZEOF, /* pci config header */

Re: [PATCHv2 3/4] arm-cci: Add routines to enable/disable all counters

2015-11-04 Thread Mark Rutland
On Tue, Oct 20, 2015 at 02:05:25PM +0100, Suzuki K. Poulose wrote: > Adds helper routines to manipulate the counter controls for > all the counters on the CCI PMU. > > pmu_disable_counters_ctrl: Iterates over the counters, > checking the status of each counter and disabling any enabled > counters.

Re: ptrace and pseudoterminals

2015-11-04 Thread Oleg Nesterov
On 11/04, Peter Hurley wrote: > > Hi Pavel, > > On 11/03/2015 06:16 PM, Pavel Labath wrote: > > Hello Oleg, everyone, > > > > I have noticed something, which may be considered a race in the > > interaction of ptrace and pseudoterminal interfaces. Basically, what > > happens is this: > > - we have t

Re: [PATCH] ASoC: wm9713: add gpio chip

2015-11-04 Thread Charles Keepax
On Wed, Nov 04, 2015 at 06:12:44PM +0100, Robert Jarzmik wrote: > The Wolfson WM9713 provides 8 GPIOs. If the gpiolib is compiled in the > kernel, declare a gpio chip. > > Signed-off-by: Robert Jarzmik > --- You should probably make a seperate driver within GPIO for this and then tie the two tog

[GIT PULL] arm64 updates for 4.4

2015-11-04 Thread Catalin Marinas
Hi Linus, These are the main arm64 updates for 4.4. There are a few more conflicts than usual caused by some reworking under arch/arm64 (the CPU feature detection, EFI_STUB, relaxed atomics) and an arm64 fix that went in during 4.3-rc7 and which I haven't pulled into the upstream branch for arm64.

Re: [PATCH v2 1/3] thermal: Add support for hierarchical thermal zones

2015-11-04 Thread Eduardo Valentin
Javi, First of all, thanks for taking the lead on implementing this. It follows comments. On Wed, Nov 04, 2015 at 05:37:40PM +, Javi Merino wrote: > Add the ability to stack thermal zones on top of each other, creating a > hierarchy of thermal zones. > > Cc: Zhang Rui > Cc: Eduardo Valenti

Re: [PATCH] arm64: bpf: fix div-by-zero case

2015-11-04 Thread Z Lim
On Wed, Nov 4, 2015 at 10:21 AM, Shi, Yang wrote: > On 11/3/2015 11:04 PM, Xi Wang wrote: >> >> On Tue, Nov 3, 2015 at 10:56 PM, Zi Shen Lim wrote: >>> >>> case BPF_ALU | BPF_DIV | BPF_X: >>> case BPF_ALU64 | BPF_DIV | BPF_X: >>> + { >>> + const u8 r0 = bpf2a

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

2015-11-04 Thread Laura Abbott
On 11/03/2015 03:42 PM, Kees Cook wrote: On Tue, Nov 3, 2015 at 1:48 PM, Laura Abbott wrote: Hi, Based on a recent discussion[1] there is interest in having set_memory_* work on kernel memory for security and other use cases. This patch adds the ability for that to happen behind a kernel opti

Re: [PATCH] mtd: Make MTD_BCM47XXSFLASH to depend on MIPS

2015-11-04 Thread Brian Norris
On Wed, Nov 04, 2015 at 10:04:26AM +0100, Rafał Miłecki wrote: > On 14 October 2015 at 11:04, Javier Martinez Canillas > wrote: > > The bcm47xxsflash driver uses the KSEG0ADDR() function to map an address > > to a certain kernel segment. But that is only defined if the MIPS config > > symbol is en

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Greg Kroah-Hartman
On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > On Wed, 4 Nov 2015 09:11:18 +0800 > Jiaxing Wang wrote: > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > initialized, which causes tracefs not populated with tracing files and > > directories, so we wi

Re: [PATCH] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-04 Thread Thomas Gleixner
Lee, On Wed, 4 Nov 2015, Lee, Zhuo-hao wrote: > Before the system go to suspend (S3), if user create a timer with clockid > CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM and set a "large" timeout value > to this timer. The function alarmtimer_suspend will be called to setup > a timeout value to RTC t

<    2   3   4   5   6   7   8   9   10   >