Re: Stricter module param and sysfs permission checks

2014-07-02 Thread Gobinda Charan Maji
Gobinda Charan Maji gmail.com> writes: > > Hi All, > > I could not get any response yet. > > Hi Rusty, > > Please at least give me a reply even if my concept seems to be incorrect to > you. > > Thanks in advance, > Gobinda > > Hi All, I am new to this mail chain. I could not get any

linux-next: Tree for Jul 3

2014-07-02 Thread Stephen Rothwell
Hi all, Changes since 20140702: My fixes tree contains: powerpc: Disable RELOCATABLE for COMPILE_TEST with PPC64 The staging tree still had its build failure for which I disabled a driver. The akpm-current tree gained a build failure for which I applied a patch. Non-merge commits

Re: [PATCH] ASoC: tda998x: add a codec to the HDMI transmitter

2014-07-02 Thread Jean-Francois Moine
On Wed, 2 Jul 2014 20:42:52 +0100 Mark Brown wrote: > > I tested this CODEC with both DAPM and DPCM. If the audio subsystem > > asks for streaming on both I2S and S/PDIF, only the last call is served > > (this depends on the order of the DAI links in the audio card creation > > table). > >

Re: [PATCH RFC tip/core/rcu] Parallelize and economize NOCB kthread wakeups

2014-07-02 Thread Mike Galbraith
On Wed, 2014-07-02 at 22:21 -0700, Paul E. McKenney wrote: > On Thu, Jul 03, 2014 at 05:31:19AM +0200, Mike Galbraith wrote: > > NO_HZ_FULL is a property of a set of CPUs. isolcpus is supposed to go > > away as being a redundant interface to manage a single property of a set > > of CPUs, but

Re: [PATCH V4 02/16] perf, core: introduce pmu context switch callback

2014-07-02 Thread Yan, Zheng
On 07/02/2014 06:12 PM, Peter Zijlstra wrote: > On Mon, Jun 30, 2014 at 04:50:39PM +0800, Yan, Zheng wrote: >> @@ -2362,6 +2363,58 @@ unlock: >> } >> } >> >> +void perf_sched_cb_disable(struct pmu *pmu) >> +{ >> +__get_cpu_var(perf_sched_cb_usages)--; >> +} >> + >> +void

Re: probe_event_disable()->synchronize_sched() (Was: tracing/uprobes: Revert "Support mix of ftrace and perf")

2014-07-02 Thread Masami Hiramatsu
(2014/07/02 4:31), Oleg Nesterov wrote: > Namhyung, Masami, > > Please look at the question below. Perhaps we discussed this before, > but I can recall nothing. > > > On 06/30, Oleg Nesterov wrote: >> >> Actually, I'll probably try to make the patch tomorrow. It looks simple >> enough, the main

Re: [PATCH V4 03/16] perf, x86: use context switch callback to flush LBR stack

2014-07-02 Thread Yan, Zheng
On 07/02/2014 05:06 PM, Peter Zijlstra wrote: > On Mon, Jun 30, 2014 at 04:50:40PM +0800, Yan, Zheng wrote: >> @@ -185,6 +185,23 @@ void intel_pmu_lbr_enable(struct perf_event *event) >> return; >> >> /* >> + * It is necessary to flush the stack on context switch. This

Re: [regression, 3.16-rc] rwsem: optimistic spinning causing performance degradation

2014-07-02 Thread Dave Chinner
On Thu, Jul 03, 2014 at 02:59:33PM +1000, Dave Chinner wrote: > On Wed, Jul 02, 2014 at 08:31:08PM -0700, Davidlohr Bueso wrote: > > On Thu, 2014-07-03 at 12:32 +1000, Dave Chinner wrote: > > > Hi folks, > > > > > > I've got a workload that hammers the mmap_sem via multi-threads > > > memory

Re: probe_event_disable()->synchronize_sched() (Was: tracing/uprobes: Revert "Support mix of ftrace and perf")

2014-07-02 Thread Masami Hiramatsu
(2014/07/02 4:31), Oleg Nesterov wrote: > Namhyung, Masami, > > Please look at the question below. Perhaps we discussed this before, > but I can recall nothing. > > > On 06/30, Oleg Nesterov wrote: >> >> Actually, I'll probably try to make the patch tomorrow. It looks simple >> enough, the main

Re: [PATCH] KVM: nVMX: Fix IRQs inject to L2 which belong to L1 since race

2014-07-02 Thread Bandan Das
Wanpeng Li writes: > Hi Bandan, > On Wed, Jul 02, 2014 at 12:27:59PM -0400, Bandan Das wrote: >>Wanpeng Li writes: >> >>> This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=72381 >>I can also reproduce this easily with Linux as L1 by "slowing it down" >>eg. running with ept = 0 >>

Re: [PATCH RT 0/4] Linux 3.12.22-rt35-rc1

2014-07-02 Thread Mike Galbraith
On Wed, 2014-07-02 at 13:14 -0400, Steven Rostedt wrote: > Dear RT Folks, > > This is the RT stable review cycle of patch 3.12.22-rt35-rc1. > > Please scream at me if I messed something up. Please test the patches too. [PATCH RT 5/4] sched: Do not clear PF_NO_SETAFFINITY flag in

Re: [PATCH RFC] arm64: eBPF JIT compiler

2014-07-02 Thread Z Lim
On Wed, Jul 2, 2014 at 9:57 PM, Z Lim wrote: > On Wed, Jul 2, 2014 at 2:28 PM, Alexei Starovoitov wrote: >> On Tue, Jul 1, 2014 at 10:20 PM, Zi Shen Lim wrote: >> Do you really need 'jump by register' then? Regular 'bl' would be much >> faster. > > We'll need BLR to cover all cases. BL

Re: [PATCH RFC tip/core/rcu] Parallelize and economize NOCB kthread wakeups

2014-07-02 Thread Paul E. McKenney
On Thu, Jul 03, 2014 at 05:31:19AM +0200, Mike Galbraith wrote: > On Wed, 2014-07-02 at 10:08 -0700, Paul E. McKenney wrote: > > On Wed, Jul 02, 2014 at 06:04:12PM +0200, Peter Zijlstra wrote: > > > On Wed, Jul 02, 2014 at 08:39:15AM -0700, Paul E. McKenney wrote: > > > > On Wed, Jul 02, 2014 at

Re: [PATCH] KVM: nVMX: Fix IRQs inject to L2 which belong to L1 since race

2014-07-02 Thread Bandan Das
Jan Kiszka writes: > On 2014-07-02 08:54, Wanpeng Li wrote: >> This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=72381 >> >> If we didn't inject a still-pending event to L1 since nested_run_pending, >> KVM_REQ_EVENT should be requested after the vmexit in order to inject the >>

Re: [PATCH] KVM: nVMX: Fix IRQs inject to L2 which belong to L1 since race

2014-07-02 Thread Wanpeng Li
Hi Bandan, On Wed, Jul 02, 2014 at 12:27:59PM -0400, Bandan Das wrote: >Wanpeng Li writes: > >> This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=72381 >I can also reproduce this easily with Linux as L1 by "slowing it down" >eg. running with ept = 0 > >I suggest changing the subject

Re: [regression, 3.16-rc] rwsem: optimistic spinning causing performance degradation

2014-07-02 Thread Dave Chinner
On Wed, Jul 02, 2014 at 08:31:08PM -0700, Davidlohr Bueso wrote: > On Thu, 2014-07-03 at 12:32 +1000, Dave Chinner wrote: > > Hi folks, > > > > I've got a workload that hammers the mmap_sem via multi-threads > > memory allocation and page faults: it's called xfs_repair. > > Another reason for

linux-next: build failure after merge of the akpm-current tree

2014-07-02 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: /bin/sh: /scratch/sfr/next/scripts/basic/bin2c: No such file or directory Presumably caused by commit 572a8e0147f8 ("bin2c: move bin2c in scripts/basic") and commit 1b4c30351f49

Re: [PATCHv2 0/6] phy: simplified phy lookup

2014-07-02 Thread Vivek Gautam
Hi, On Wed, Jul 2, 2014 at 5:01 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 05 June 2014 06:51 PM, Vivek Gautam wrote: >> Hi Heikki, >> >> >> On Thu, Jun 5, 2014 at 6:22 PM, Heikki Krogerus >> wrote: >>> Hi, >>> >>> So the idea with these is that they should help to make it

Re: [PATCH RFC] arm64: eBPF JIT compiler

2014-07-02 Thread Z Lim
On Wed, Jul 2, 2014 at 2:28 PM, Alexei Starovoitov wrote: > On Tue, Jul 1, 2014 at 10:20 PM, Zi Shen Lim wrote: >> The JIT compiler emits A64 instructions. It supports eBPF only. >> Legacy BPF is supported thanks to conversion by BPF core. >> >> JIT is enabled in the same way as for other

Re: [PATCH] x86,cpu-hotplug: clear llc_shared_mask at CPU hotplug

2014-07-02 Thread Yasuaki Ishimatsu
(2014/07/02 20:32), Borislav Petkov wrote: On Wed, Jul 02, 2014 at 03:41:21PM +0900, Yasuaki Ishimatsu wrote: llc_shared_mask is not cleared even if cpu is offline or hot removed. So when hot-plugging CPU, the mask has wrong value. The mask is used by CSF schduler. So it breaks CFS scheduler.

[PATCH v3 0/5] ALSA/ASoC/dmaengine: Fix 3 bytes physical sample support

2014-07-02 Thread Peter Ujfalusi
Hi, Changes since v2 (in patch 3): - Replace BIT(bits / 8) with (1 << (bits / 8)) as pointed out by Takashi - Use switch (addr_widths) to filter non valid physical widths, like -EINVAL or widths not dividable by 8. The same check could be done with: if (bits > 0 && bits <=64 && !(bits % 8)

[PATCH v3 2/5] ALSA: pcm_dmaengine: Use the available wrapper to get physical width

2014-07-02 Thread Peter Ujfalusi
params_physical_width() is available via pcm_params.h Signed-off-by: Peter Ujfalusi Acked-by: Lars-Peter Clausen --- sound/core/pcm_dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c index

[PATCH v3 4/5] ALSA: pcm_dmaengine: Correct support for 24bits physical sample widths

2014-07-02 Thread Peter Ujfalusi
In case of _3LE/_3BE formats the samples are stored in 3 consecutive bytes without padding it to 4 bytes. This means that the DMA needs to be able to support 3 bytes word length in order to read/write the samples from memory correctly. Originally the code treated 24 bits physical length samples as

[PATCH v3 5/5] dma: edma: Declare DMA_SLAVE_BUSWIDTH_3_BYTES as supported buswidth

2014-07-02 Thread Peter Ujfalusi
eDMA can be configured for 3bytes word size for source and destination. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index d08c4dedef35..b512caf46944 100644 --- a/drivers/dma/edma.c +++

[PATCH v3 1/5] dma: Support for 3 bytes word size

2014-07-02 Thread Peter Ujfalusi
Add DMA_SLAVE_BUSWIDTH_3_BYTES to dma_slave_buswidth for engines and users to select 3 bytes as bus width. For example eDMA can be configured to use 3bytes mode and in audio we have formats stored on 3bytes in memory (_XXX_3LE) where this new bus width can be used. Signed-off-by: Peter Ujfalusi

[PATCH v3 3/5] ASoC: generic-dmaengine-pcm: Prepare formats mask for valid physical sample sizes

2014-07-02 Thread Peter Ujfalusi
Based on the dma_slave_caps's addr_widths queried from the dma driver prepare the hw.formats mask to include only formats which is supported by the DMA engine. In case the dma driver does not implement the slave_caps the default assumption is that it supports 1, 2 and 4 bytes widths.

Re: [RFC] Cancellable MCS spinlock rework

2014-07-02 Thread Jason Low
On Wed, 2014-07-02 at 10:30 -0700, Jason Low wrote: > On Wed, 2014-07-02 at 19:23 +0200, Peter Zijlstra wrote: > > On Wed, Jul 02, 2014 at 09:59:16AM -0700, Jason Low wrote: > > > > > > Why I converted pointers to atomic_t? > > > > > > This would avoid the potentially racy ACCESS_ONCE stores +

Re: [PATCH 1/3] clocksource: move PXA timer to clocksource framework

2014-07-02 Thread Haojian Zhuang
On Sun, Jun 22, 2014 at 6:09 AM, Robert Jarzmik wrote: > Move time.c from arch/arm/mach-pxa/time.c to > drivers/clocksource/pxa_timer.c. > > Signed-off-by: Robert Jarzmik > --- > arch/arm/mach-pxa/Makefile | 2 +- > drivers/clocksource/Makefile

[PATCH v4] pcie: Add Xilinx PCIe Host Bridge IP driver

2014-07-02 Thread Srikanth Thokala
This is the driver for Xilinx AXI PCIe Host Bridge Soft IP Signed-off-by: Srikanth Thokala --- Changes in v4: - Regarding the comments to separate ECAM functionality, I have sent a separate patch and it is decided to implement it later. The patch is here, https://lkml.org/lkml/2014/5/18/54

[PATCH 1/1] ice1712: Correcting/completing #defines for REGS

2014-07-02 Thread Konstantinos Tsimpoukas
This small patch completes #defines for Control/Status Register, adds comments for the missing ones there and on the Interrupt Mask Register and additionally corrects "#define ICE1712_SERR_LEVEL 0x04 -> 0x08", according to documentation. Signed-off-by: Konstantinos Tsimpoukas ---

RE: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Liang, Kan
> > On Wed, Jul 2, 2014 at 2:14 PM, wrote: > > From: Kan Liang > > > > x86, perf: Protect LBR and offcore rsp against KVM lying > > > > With -cpu host, KVM reports LBR and offcore support, if the host has > support. > > When the guest perf driver tries to access LBR or offcore_rsp MSR, it >

RE: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Liang, Kan
> > Signed-off-by: Andi Kleen > > I did not contribute to this patch, so please remove that SOB. > OK > > Signed-off-by: Kan Liang > > > struct extra_reg *extra_regs; > > unsigned int er_flags; > > + boolextra_msr_access; /* EXTRA REG MSR can be > accessed

[PATCH net-next] r8152: increase the tx timeout

2014-07-02 Thread Hayes Wang
When the system is too busy to complete the urb, the tx timout function would be called. This causes the other tx urbs would be killed, too. Increase the tx timeout to avoid it. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-02 Thread Mike Galbraith
On Wed, 2014-07-02 at 10:47 -0400, Rik van Riel wrote: > On 07/01/2014 04:38 AM, Michael wang wrote: > > On 07/01/2014 04:20 PM, Peter Zijlstra wrote: > > [snip] > >>> > >>> Just wondering could we make this another scheduler feature? > >> > >> No; sched_feat() is for debugging, BIG CLUE: its

Re: [PATCH] x86: numa: setup_node_data(): drop dead code and rename function

2014-07-02 Thread Luiz Capitulino
On Wed, 2 Jul 2014 16:20:47 -0700 (PDT) David Rientjes wrote: > On Wed, 2 Jul 2014, Luiz Capitulino wrote: > > > > With this patch, the dmesg changes break one of my scripts that we use to > > > determine the start and end address of a node (doubly bad because there's > > > no sysfs interface

Re: [patch] mm, hugetlb: generalize writes to nr_hugepages

2014-07-02 Thread Luiz Capitulino
On Wed, 2 Jul 2014 17:44:46 -0700 (PDT) David Rientjes wrote: > On Wed, 2 Jul 2014, Luiz Capitulino wrote: > > > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > > > --- a/mm/hugetlb.c > > > +++ b/mm/hugetlb.c > > > @@ -1734,21 +1734,13 @@ static ssize_t nr_hugepages_show_common(struct > > >

RE: [PATCH v2] memory: Freescale CoreNet Coherency Fabric error reporting driver

2014-07-02 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, July 03, 2014 5:22 AM > To: linuxppc-...@lists.ozlabs.org > Cc: linux-kernel@vger.kernel.org; Bhushan Bharat-R65777 > Subject: [PATCH v2] memory: Freescale CoreNet Coherency Fabric error reporting > driver > > The CoreNet

[PATCH] perf: Don't enable the perf_event without in PERF_ATTACH_CONTEXT status

2014-07-02 Thread Chen LinX
From: "Chen LinX" when do cpu hotplug test and run below perf test together, pmu may access freed perf_event while true; do perf record -a -g -f sleep 10 rm perf.* done the scenario is that when cpu offline firstly, the 'perf_cpu_notify' will disable event on the pmu and remove it from the

Re: [regression, 3.16-rc] rwsem: optimistic spinning causing performance degradation

2014-07-02 Thread Davidlohr Bueso
On Thu, 2014-07-03 at 12:32 +1000, Dave Chinner wrote: > Hi folks, > > I've got a workload that hammers the mmap_sem via multi-threads > memory allocation and page faults: it's called xfs_repair. Another reason for concurrent address space operations :/ > I've been > debugging problems with

Re: [PATCH RFC tip/core/rcu] Parallelize and economize NOCB kthread wakeups

2014-07-02 Thread Mike Galbraith
On Wed, 2014-07-02 at 10:08 -0700, Paul E. McKenney wrote: > On Wed, Jul 02, 2014 at 06:04:12PM +0200, Peter Zijlstra wrote: > > On Wed, Jul 02, 2014 at 08:39:15AM -0700, Paul E. McKenney wrote: > > > On Wed, Jul 02, 2014 at 02:34:12PM +0200, Peter Zijlstra wrote: > > > > On Fri, Jun 27, 2014 at

Re: fs: use after free in /proc/pid/mountinfo

2014-07-02 Thread Sasha Levin
:?) [ 4292.465775] PGD 24b7d067 PUD 703f42067 PMD 703e19067 PTE 8004650c3163 [ 4292.467882] Oops: 0011 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 4292.469606] Dumping ftrace buffer: [ 4292.470032](ftrace buffer empty) [ 4292.470032] Modules linked in: [ 4292.470032] CPU: 9 PID: 16397 Comm: trin

[PATCH v2] ARM: tegra: roth: add display DT node

2014-07-02 Thread Alexandre Courbot
DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional. Signed-off-by: Alexandre Courbot --- Changes since v1: - Removed unneeded regulator-always-on property for vdd_lcd regulator Only

Re: [PATCH 4/4] ARM: tegra: roth: add display DT node

2014-07-02 Thread Alexandre Courbot
On 07/03/2014 12:55 AM, Stephen Warren wrote: On 07/02/2014 06:19 AM, Alexandre Courbot wrote: DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional. diff --git

[PATCH RT 2/2] Linux 3.2.60-rt88-rc1

2014-07-02 Thread Steven Rostedt
3.2.60-rt88-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index bd5aee366a48..ac94086b6693

[PATCH RT 0/2] Linux 3.2.60-rt88-rc1

2014-07-02 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.2.60-rt88-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release

[PATCH RT 1/2] Fix latency histogram after "hrtimer: Set expiry time before switch_hrtimer_base()"

2014-07-02 Thread Steven Rostedt
3.2.60-rt88-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings In an rt-kernel with CONFIG_MISSED_TIMER_OFFSETS_HIST enabled, __hrtimer_start_range_ns() now crashes, as new_base is not assigned before it is used. Tested-by:

Re: [PATCH] KVM: nVMX: Fix IRQs inject to L2 which belong to L1 since race

2014-07-02 Thread Wanpeng Li
Hi Jan, On Wed, Jul 02, 2014 at 11:01:30AM +0200, Jan Kiszka wrote: >On 2014-07-02 08:54, Wanpeng Li wrote: >> This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=72381 >> >> If we didn't inject a still-pending event to L1 since nested_run_pending, >> KVM_REQ_EVENT should be requested

Re: [PATCH RFC tip/core/rcu] Parallelize and economize NOCB kthread wakeups

2014-07-02 Thread Paul E. McKenney
On Wed, Jul 02, 2014 at 09:55:56AM -0700, Paul E. McKenney wrote: > On Wed, Jul 02, 2014 at 09:46:19AM -0400, Rik van Riel wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 07/02/2014 08:34 AM, Peter Zijlstra wrote: > > > On Fri, Jun 27, 2014 at 07:20:38AM -0700, Paul E.

Re: [PATCH v2 07/12] usb: chipidea: add a generic driver

2014-07-02 Thread punnaiah choudary kalluri
Since its a generic driver, support for configuring the dma_mask using dma_coerce_mask_and_coherent would be good. Regards, Punnaiah On Tue, Jun 24, 2014 at 4:05 PM, Antoine Ténart wrote: > Add a generic ChipIdea driver, with optional PHY and clock, to support > ChipIdea controllers that

Re: [PATCH V2 2/3] perf protect LBR when Intel PT is enabled.

2014-07-02 Thread Andi Kleen
On Wed, Jul 02, 2014 at 11:14:14AM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > If RTIT_CTL.TraceEn=1, any attempt to read or write the LBR or LER MSRs, > including LBR_TOS, will result in a #GP. > Since Intel PT can be enabled/disabled at runtime, LBR MSRs have to be > protected by

Re: [PATCH 00/14] cpufreq: cpu0: Extend support beyond CPU0, V2

2014-07-02 Thread Viresh Kumar
On 3 July 2014 06:54, Stephen Boyd wrote: > I gave it a spin. It works so you can have my > > Tested-by: Stephen Boyd Thanks, all suggested improvements are made and pushed again with your Tested-by.. > I'm still concerned about the patch where we figure out if the clocks > are shared. I worry

[PATCH 2/2] mach-spear: fixed spear1340.c file

2014-07-02 Thread Nicholas Krause
This is the fixed file after moving sata support to new file in spear1340_sata.c Signed-off-by: Nicholas Krause --- arch/arm/mach-spear/spear1340.c | 111 1 file changed, 111 deletions(-) diff --git a/arch/arm/mach-spear/spear1340.c

[PATCH 1/2] mach-spear: New file for 1340 for sata support

2014-07-02 Thread Nicholas Krause
Moves all sata support for mach-spear 1340 to new file called spear1340_sata.c as wanted in FIXME message. Signed-off-by: Nicholas Krause --- arch/arm/mach-spear/spear1340_sata.c | 120 +++ 1 file changed, 120 insertions(+) create mode 100644

Re: [PATCH 3.12 000/181] 3.12.24-stable review

2014-07-02 Thread Dave Chinner
On Wed, Jul 02, 2014 at 10:09:34AM +0200, Jiri Slaby wrote: > On 07/02/2014 01:53 AM, Dave Chinner wrote: > > On Mon, Jun 30, 2014 at 01:51:22PM +0200, Jiri Slaby wrote: > >> This is the start of the stable review cycle for the 3.12.24 release. > >> There are 181 patches in this series, all will

[regression, 3.16-rc] rwsem: optimistic spinning causing performance degradation

2014-07-02 Thread Dave Chinner
Hi folks, I've got a workload that hammers the mmap_sem via multi-threads memory allocation and page faults: it's called xfs_repair. I've been debugging problems with the latest release, and in the process of tracking down some recent regressions I noticed that turning off all the cross-ag IO

Re: [PATCH RFC net-next 03/14] bpf: introduce syscall(BPF, ...) and BPF maps

2014-07-02 Thread Alexei Starovoitov
On Wed, Jul 2, 2014 at 6:43 PM, Andy Lutomirski wrote: > On Tue, Jul 1, 2014 at 10:33 PM, Alexei Starovoitov wrote: >> I want to avoid string names, since they will force new 'strtab', 'symtab' >> sections in the programs/maps and will uglify the user interface quite a bit. > > To be fair, you

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Jidong Xiao
On Wed, Jul 2, 2014 at 2:14 PM, wrote: > From: Kan Liang > > x86, perf: Protect LBR and offcore rsp against KVM lying > > With -cpu host, KVM reports LBR and offcore support, if the host has support. > When the guest perf driver tries to access LBR or offcore_rsp MSR, > it #GPs all MSR

Re: mm: slub: invalid memory access in setup_object

2014-07-02 Thread Wei Yang
On Tue, Jul 01, 2014 at 02:49:47PM -0700, Andrew Morton wrote: >On Tue, 1 Jul 2014 09:58:52 -0500 (CDT) Christoph Lameter >wrote: > >> On Mon, 30 Jun 2014, David Rientjes wrote: >> >> > It's not at all clear to me that that patch is correct. Wei? >> >> Looks ok to me. But I do not like the

Re: [PATCH 06/14] cpufreq: cpu0: defer probe if clock isn't registered yet

2014-07-02 Thread Viresh Kumar
On 3 July 2014 06:08, Stephen Boyd wrote: > Please make this a dev_dbg() or just remove it entirely. Sending a > message to the log on probe defer just duplicates what the driver core > is already doing. Updated as: Author: Viresh Kumar Date: Thu Jun 26 10:40:21 2014 +0530 cpufreq:

[PATCH v2 3/3] staging: comedi: addi_apci_1564: clean up apci1564_interrupt()

2014-07-02 Thread Chase Southwood
Remove the checks for interrupts from unknown sources. This situation should never occur and the checks were doing nothing to help the situation. Also, the portion of the function for handling counter interrupts is reapeated four times (once for each counter), but is completely identical save

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Andi Kleen
> Signed-off-by: Andi Kleen I did not contribute to this patch, so please remove that SOB. > Signed-off-by: Kan Liang > struct extra_reg *extra_regs; > unsigned int er_flags; > + boolextra_msr_access; /* EXTRA REG MSR can be > accessed */ > This

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-02 Thread Michael wang
On 07/02/2014 10:47 PM, Rik van Riel wrote: > On 07/01/2014 04:38 AM, Michael wang wrote: >> On 07/01/2014 04:20 PM, Peter Zijlstra wrote: >> [snip] Just wondering could we make this another scheduler feature? >>> >>> No; sched_feat() is for debugging, BIG CLUE: its guarded by >>>

[PATCH v2 1/3] staging: comedi: addi_apci_1564: move addi_watchdog.h include to addi_apci_1564.c

2014-07-02 Thread Chase Southwood
Commit aed3f9d (staging: comedi: addi_apci_1564: absorb apci1564_reset()) moved the only use of addi_watchdog.h from hwdrv_apci1564.c to addi_apci_1564.c, but left the include statement itself in the former file. Move this include to the file which actually uses it. Signed-off-by: Chase

[PATCH v2 2/3] staging: comedi: addi_apci_1564: fix use of apci1564_reset() to disable DI interrupts

2014-07-02 Thread Chase Southwood
apci1564_cos_insn_config() is currently using apci1564_reset() to disable digital input interrupts when the configuration operation is COMEDI_DIGITAL_TRIG_DISABLE. However, this is incorrect as the device reset function also resets the registers for the digital outputs, timer, watchdog, and

[PATCH v2 0/3] staging: comedi: addi_apci_1564: miscellaneous fixes and cleanups

2014-07-02 Thread Chase Southwood
This patchset moves a misplaced include to the proper file, swaps out an overly aggressive placement of apci1564_reset(), and cleans up apci1564_interrupt(). Chase Southwood (3): staging: comedi: addi_apci_1564: move addi_watchdog.h include to addi_apci_1564.c staging: comedi:

Re: [PATCH 09/14] cpufreq: cpu0: Move per-cluster initialization code to ->init()

2014-07-02 Thread Viresh Kumar
On 3 July 2014 06:13, Stephen Boyd wrote: > drivers/cpufreq/cpufreq-generic.c:313:13: warning: 'cdev' may be used > uninitialized in this function [-Wmaybe-uninitialized] > > So I guess we should initialize it to NULL? I somehow didn't got this, I checked again. I have fixed it this way: diff

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-02 Thread Michael wang
On 07/02/2014 08:49 PM, Peter Zijlstra wrote: > On Wed, Jul 02, 2014 at 10:47:34AM +0800, Michael wang wrote: >> The opinion on features actually make me a little confusing... I used to >> think the scheduler is willing on providing kinds of way to adapt itself >> to different situation, and some

Re: [patch] mm, hugetlb: generalize writes to nr_hugepages

2014-07-02 Thread Davidlohr Bueso
On Mon, 2014-06-30 at 16:57 -0700, David Rientjes wrote: > Three different interfaces alter the maximum number of hugepages for an > hstate: > > - /proc/sys/vm/nr_hugepages for global number of hugepages of the default >hstate, > > - /sys/kernel/mm/hugepages/hugepages-X/nr_hugepages for

[PATCH V2 2/3] perf protect LBR when Intel PT is enabled.

2014-07-02 Thread kan . liang
From: Kan Liang If RTIT_CTL.TraceEn=1, any attempt to read or write the LBR or LER MSRs, including LBR_TOS, will result in a #GP. Since Intel PT can be enabled/disabled at runtime, LBR MSRs have to be protected by _safe() at runtime. Signed-off-by: Kan Liang ---

[PATCH V2 3/3] kvm: ignore LBR and offcore rsp

2014-07-02 Thread kan . liang
From: Kan Liang With -cpu host KVM reports LBR and offcore support, so the perf driver may accesses the LBR and offcore MSRs. However, there is no LBR and offcore virtualization support yet. This could causes guest to crash. As a workaround, KVM just simply ignore the LBR and offcore_rsp MSRs

FIXME message in arch/arm/mach-omap2/gpmc-onenand.c

2014-07-02 Thread Nick Krause
Hey Kevin, When using csope I get a FIXME message on lines , 321 -325 in arch/arm/mach-omap2/gpmc-onenand.c on the latest 3.16 r4 code. I was wondering if I can remove the legacy code or is it needed still for certain mach-omap2 based boards. Cheers Nick -- To unsubscribe from this list: send the

[PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread kan . liang
From: Kan Liang x86, perf: Protect LBR and offcore rsp against KVM lying With -cpu host, KVM reports LBR and offcore support, if the host has support. When the guest perf driver tries to access LBR or offcore_rsp MSR, it #GPs all MSR accesses,since KVM doesn't handle LBR and offcore support. So

Re: [PATCH 08/10] userfaultfd: add new syscall to provide memory externalization

2014-07-02 Thread Andy Lutomirski
On 07/02/2014 09:50 AM, Andrea Arcangeli wrote: > Once an userfaultfd is created MADV_USERFAULT regions talks through > the userfaultfd protocol with the thread responsible for doing the > memory externalization of the process. > > The protocol starts by userland writing the requested/preferred >

[PATCH] M32Rz: FIXME add textlen in function m32r_flat_get_addr_from_rp

2014-07-02 Thread Nicholas Krause
This patch adds textlen in this function for case FLAT_M32R_LO16_DATA in the return statement verus subtracting it in order to fix this FIXME message. Signed-off-by: Nicholas Krause --- arch/m32r/include/asm/flat.h | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH 00/10] RFC: userfault

2014-07-02 Thread Andy Lutomirski
On 07/02/2014 09:50 AM, Andrea Arcangeli wrote: > Hello everyone, > > There's a large CC list for this RFC because this adds two new > syscalls (userfaultfd and remap_anon_pages) and > MADV_USERFAULT/MADV_NOUSERFAULT, so suggestions on changes to the API > or on a completely different API if

[PATCH] x86: Configure NX support earlier in setup_arch

2014-07-02 Thread Stuart Hayes
A page fault can crash the kernel very early if an NX bit is set in a page table entry, if the CPU doesn't support NX (or if NX support is disabled in the CPU). Move the call to x86_configure_nx() earlier than parse_setup_data(), since that calls early_memremap(). Signed-off-by: Stuart Hayes

Re: [PATCH v2] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-02 Thread Jingoo Han
On Wednesday, July 02, 2014 3:26 AM, Rickard Strandqvist wrote: > 2014-06-30 2:05 GMT+02:00 Jingoo Han : > > On Monday, June 30, 2014 8:29 AM, Rickard Strandqvist wrote: > >> > >> Fix for possible null pointer dereferenc, and there is a risk for memory > >> leak in when something > >> unexpected

Re: [PATCH RFC net-next 03/14] bpf: introduce syscall(BPF, ...) and BPF maps

2014-07-02 Thread Andy Lutomirski
On Tue, Jul 1, 2014 at 10:33 PM, Alexei Starovoitov wrote: > On Tue, Jul 1, 2014 at 8:11 AM, Andy Lutomirski wrote: >> On Mon, Jun 30, 2014 at 10:47 PM, Alexei Starovoitov >> wrote: >>> On Mon, Jun 30, 2014 at 3:09 PM, Andy Lutomirski >>> wrote: On Sat, Jun 28, 2014 at 11:36 PM, Alexei

Re: mmotm 2014-07-02-15-07 uploaded (stack protector)

2014-07-02 Thread Randy Dunlap
On 07/02/14 17:57, Kees Cook wrote: > Hi Randy, > > And to explain more specifically what's happening: > > On Wed, Jul 02, 2014 at 04:21:06PM -0700, Randy Dunlap wrote: >> config-r8736:CONFIG_CC_STACKPROTECTOR_STRONG=y >> [...] >> build-r8736.out:/local/lnx/MM/mmotm-2014-0702-1507/Makefile:662:

[PATCH] m68k: Remove FIXME comment in file sun3_pgalloc.h

2014-07-02 Thread Nicholas Krause
Removes a FIXME comment in this file due to it not compiling as it now compiles. Signed-off-by: Nicholas Krause --- arch/m68k/include/asm/sun3_pgalloc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/m68k/include/asm/sun3_pgalloc.h b/arch/m68k/include/asm/sun3_pgalloc.h index

[for-next][PATCH] tracing: Remove ftrace_stop/start() from reading the trace file

2014-07-02 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 099ed151675cd1d2dbeae1dac697975f6a68716d Steven Rostedt (Red Hat) (1): tracing: Remove ftrace_stop/start() from reading the trace file kernel/trace/trace.c | 2 -- 1 file changed, 2

[PATCH RT 0/2] Linux 3.4.94-rt117-rc1

2014-07-02 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.4.94-rt117-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release

[PATCH RT 1/2] Fix latency histogram after "hrtimer: Set expiry time before switch_hrtimer_base()"

2014-07-02 Thread Steven Rostedt
3.4.94-rt117-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings In an rt-kernel with CONFIG_MISSED_TIMER_OFFSETS_HIST enabled, __hrtimer_start_range_ns() now crashes, as new_base is not assigned before it is used. Tested-by:

[PATCH RT 2/2] Linux 3.4.94-rt117-rc1

2014-07-02 Thread Steven Rostedt
3.4.94-rt117-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index

[PATCH] omap16xx: Removes fixme no longer needed in ocpi_enable()

2014-07-02 Thread Nicholas Krause
This removes the FIXME message above ocpi_enable being declared for proper locking in this function. As of the current kernel verisons there is no need for locking as only one driver uses this function currently and therefore there is no need for real locking requirements. Signed-off-by: Nicholas

Re: [PATCH 00/14] cpufreq: cpu0: Extend support beyond CPU0, V2

2014-07-02 Thread Stephen Boyd
On 07/01/14 21:12, Viresh Kumar wrote: > On 1 July 2014 22:02, Viresh Kumar wrote: >> V1: https://lkml.org/lkml/2014/6/25/152 >> >> Stephen Boyd sent few patches some time back around a new cpufreq driver for >> Qualcomm's Krait SoC: https://lkml.org/lkml/2014/6/24/918. >> >> Krait couldn't use

Re: [PATCH 3/4] kvm, memory-hotplug: Update ept identity pagetable when it is migrated.

2014-07-02 Thread Tang Chen
On 07/03/2014 12:34 AM, Gleb Natapov wrote: On Wed, Jul 02, 2014 at 05:00:36PM +0800, Tang Chen wrote: ept identity pagetable is pinned in memory, and as a result it cannot be migrated/hot-removed. But actually it doesn't need to be pinned in memory. This patch introduces a new vcpu request:

Re: [PATCH 2/4] kvm: Add macro VMX_APIC_ACCESS_PAGE_ADDR

2014-07-02 Thread Tang Chen
On 07/03/2014 12:24 AM, Gleb Natapov wrote: On Wed, Jul 02, 2014 at 05:00:35PM +0800, Tang Chen wrote: Define guest phys_addr of apic access page. --- arch/x86/include/asm/vmx.h | 2 +- arch/x86/kvm/svm.c | 3 ++- arch/x86/kvm/vmx.c | 7 --- 3 files changed, 7

Re: [PATCH 0/4] kvm, mem-hotplug: Do not pin ept identity pagetable and apic access page.

2014-07-02 Thread Tang Chen
Hi Gleb, On 07/02/2014 05:00 PM, Tang Chen wrote: Hi Gleb, Marcelo, Please help to review this patch-set. NOTE: This patch-set doesn't work properly. ept identity pagetable and apic access page in kvm are pinned in memory. As a result, they cannot be migrated/hot-removed. But actually they

Re: mmotm 2014-07-02-15-07 uploaded (stack protector)

2014-07-02 Thread Kees Cook
On Wed, Jul 02, 2014 at 06:00:19PM -0700, Andi Kleen wrote: > > The problem is that if you make kbuild hard-fail when selecting this missing > > compiler option, you can never switch it back because "make menuconfig" will > > refuse to build since the compiler option would be missing. Being silent

[PATCH] kbuild: explain stack-protector-strong CONFIG logic

2014-07-02 Thread Kees Cook
This adds a hopefully helpful comment above the (seemingly weird) compiler flag selection logic. Suggested-by: Andrew Morton Signed-off-by: Kees Cook --- Makefile | 16 1 file changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 13175632137f..ea88e68d121e 100644

Re: [PATCH] Remove memory start and memory end

2014-07-02 Thread Nick Krause
Sorry about the typo. Need time will prefix subsystem or area of kernel fixed. Cheers Nick On Wed, Jul 2, 2014 at 2:32 AM, Hans-Christian Egtvedt wrote: > Around Tue 01 Jul 2014 18:22:53 -0400 or thereabout, Nick Krause wrote: >> No problem , just happy it was of help to you. >> Cheers Nick > >

Re: FIX ME in function ocpi_enable in file arch/arm/mach-omap1/opci.c

2014-07-02 Thread Nick Krause
Therefore I will send it a patch removing this FIXME. Cheers Nick On Wed, Jul 2, 2014 at 2:55 AM, Tony Lindgren wrote: > * Nick Krause [140701 15:51]: >> Hey Tony and Russel , >> There is a FIX ME message in this function of the file stated in my >> subject line. >> I was wondering what locking

Re: [PATCH v9] mm: support madvise(MADV_FREE)

2014-07-02 Thread Minchan Kim
Hello, On Tue, Jul 01, 2014 at 05:50:58PM +0300, Kirill A. Shutemov wrote: > On Tue, Jul 01, 2014 at 09:36:15AM +0900, Minchan Kim wrote: > > + do { > > + /* > > +* XXX: We can optimize with supporting Hugepage free > > +* if the range covers. > > +

Re: mmotm 2014-07-02-15-07 uploaded (stack protector)

2014-07-02 Thread Andi Kleen
> The problem is that if you make kbuild hard-fail when selecting this missing > compiler option, you can never switch it back because "make menuconfig" will > refuse to build since the compiler option would be missing. Being silent > about the missing option (and/or falling back to other options)

Re: [PATCH v3 0/3] free reclaimed pages by paging out instantly

2014-07-02 Thread Minchan Kim
Hello Andrew, On Wed, Jul 02, 2014 at 01:42:15PM -0700, Andrew Morton wrote: > On Wed, 2 Jul 2014 09:13:46 +0900 Minchan Kim wrote: > > > Normally, I/O completed pages for reclaim would be rotated into > > inactive LRU tail without freeing. The why it works is we can't free > > page from

Re: [REGRESSION] Boot hang with 939f04bec printk: enable interrupts before calling console_trylock_for_printk()

2014-07-02 Thread Andreas Bombe
On Mon, Jun 30, 2014 at 01:20:30PM -0700, Andrew Morton wrote: > On Sun, 29 Jun 2014 00:50:50 +0200 Andreas Bombe wrote: > > > None of the post 3.15 kernel boot for me. They all hang at the GRUB > > screen telling me it loaded and started the kernel, but the kernel > > itself stops before it

Re: mmotm 2014-07-02-15-07 uploaded (stack protector)

2014-07-02 Thread Andrew Morton
On Wed, 2 Jul 2014 17:51:00 -0700 Kees Cook wrote: > > It's hard to tell what the original author wanted, perhaps they wanted > > it to error out. It looks intentional. Clearly they didn't think of > > randconfig > > though. > > The problem is that if you make kbuild hard-fail when selecting

Re: mmotm 2014-07-02-15-07 uploaded (stack protector)

2014-07-02 Thread Kees Cook
Hi Randy, And to explain more specifically what's happening: On Wed, Jul 02, 2014 at 04:21:06PM -0700, Randy Dunlap wrote: > config-r8736:CONFIG_CC_STACKPROTECTOR_STRONG=y > [...] > build-r8736.out:/local/lnx/MM/mmotm-2014-0702-1507/Makefile:662: Cannot use > CONFIG_CC_STACKPROTECTOR_STRONG:

Re: probe_event_disable()->synchronize_sched()

2014-07-02 Thread Namhyung Kim
Hi Oleg, On Tue, 1 Jul 2014 21:31:47 +0200, Oleg Nesterov wrote: > Namhyung, Masami, > > Please look at the question below. Perhaps we discussed this before, > but I can recall nothing. I'm not sure I grok the code enough to answer your question, but... > > > On 06/30, Oleg Nesterov wrote: >>

  1   2   3   4   5   6   7   8   9   10   >