Re: [PATCH v2] mm, compaction: properly signal and act upon lock and need_sched() contention

2014-05-30 Thread Stephen Warren
On 05/23/2014 02:34 AM, Vlastimil Babka wrote: > On 05/23/2014 04:48 AM, Shawn Guo wrote: >> On 23 May 2014 07:49, Kevin Hilman wrote: >>> On Fri, May 16, 2014 at 2:47 AM, Vlastimil Babka wrote: Compaction uses compact_checklock_irqsave() function to periodically check for lock

Re: [PATCH v4] NVMe: basic conversion to blk-mq

2014-05-30 Thread Matthew Wilcox
On Thu, May 29, 2014 at 11:51:25PM +0200, Matias Bjørling wrote: > +static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, > + unsigned int i) > { > + struct nvme_dev *dev = data; > + struct nvme_queue *nvmeq = dev->queues[(i % dev->queue_count) + 1]; > +

[RFC 3/4] nl80211: Do not ignore 5/10MHz wide channels in nl80211_send_chandef()

2014-05-30 Thread Rostislav Lisovy
Signed-off-by: Rostislav Lisovy --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 79bae31..3a50d1a 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -2281,6 +2281,8 @@ static int

Re: [prink] BUG: spinlock lockup suspected on CPU#0, swapper/1

2014-05-30 Thread Jan Kara
On Fri 30-05-14 18:19:48, Peter Zijlstra wrote: > On Fri, May 30, 2014 at 06:16:47PM +0200, Peter Zijlstra wrote: > > On Fri, May 30, 2014 at 05:50:51PM +0200, Jan Kara wrote: > > > > [7.492350] == > > > > [7.492350] [ INFO: possible

RE: [PATCH 5/6] staging: comedi: addi_apci_1564: hook-up the interrupt subdevice

2014-05-30 Thread Hartley Sweeten
On Thursday, May 29, 2014 9:44 PM, Chase Southwood wrote: > The board supported by this driver can generate an interrupt based > on the state of input channels 0-15. > > The apci1564_di_config() function is used to configure which > inputs are used to generate the interrupt. Currently this

[RFC 2/4] cfg80211: Add new interface type for OCB mode

2014-05-30 Thread Rostislav Lisovy
Add new OCB mode (outside the context of the BSS) interface type as well as functions necessary to configure the interface when 'joining' such network. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 7 + include/uapi/linux/nl80211.h | 3 ++ net/wireless/Makefile

[RFC 4/4] mac80211: OCB mode interface configuration

2014-05-30 Thread Rostislav Lisovy
Add functions necessary for OCB mode interface configuration used in interface bring-up and when 'joining' the network. Signed-off-by: Rostislav Lisovy --- net/mac80211/Makefile | 3 ++- net/mac80211/cfg.c | 22 ++ net/mac80211/chan.c| 1 +

[RFC 0/4 v2] cfg80211/mac80211: Add new interface type for OCB (Outside the Context of a BSS) mode

2014-05-30 Thread Rostislav Lisovy
The IEEE 802.11p amendment defines a procedure for data frames transmission by an STA that is not a member of a BSS. Such data frames are defined as being transmitted "outside the context of a BSS" (this is allowed only if the MIB variable dot11OCBActivated is true).  This patchset adds new

[RFC 1/4] cfg80211: Add channel flags limiting availability to OCB mode only

2014-05-30 Thread Rostislav Lisovy
IEEE 802.11p operates in its own 5.9GHz band. When there will be a record for the 5.9GHz band in the regulatory daemon, it must be limited to the OCB mode only -- using the newly added flags. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h |

[PATCH v6 6/6] arm: mediatek: add dts for Aquaris5 mobile phone

2014-05-30 Thread Matthias Brugger
The Aquaris5 is a mobile phone based on the MT6589 SoC. Signed-off-by: Matthias Brugger --- arch/arm/boot/dts/mt6589-aquaris5.dts | 25 + 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt6589-aquaris5.dts diff --git

[PATCH v6 4/6] arm: add basic support for Mediatek MT6589 boards

2014-05-30 Thread Matthias Brugger
This adds a generic devicetree board file and a dtsi for boards based on MT6589 SoCs from Mediatek. Apart from the generic parts (gic, clocks) the only component currently supported are the timers. Signed-off-by: Matthias Brugger --- arch/arm/Kconfig |2 +

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-30 Thread George Spelvin
> That's very small (less than 0.2%) so I think it's acceptable. Thank you! May I take this as an Acked-by; ? I'll work on some performance improvements, but they proably won't be ready for the 3.16 merge window. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

RE: [PATCH 4/6] staging: comedi: addi_apci_1564: add a subdevice for Change-of-State interrupt support

2014-05-30 Thread Hartley Sweeten
On Thursday, May 29, 2014 9:43 PM, Chase Southwood wrote: > This board supports an interrupt that can be generated by an AND/OR > combination of 16 of the input channels. > > Create a separate subdevice to handle this interrupt. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley

[git pull] Re: fs/dcache.c - BUG: soft lockup - CPU#5 stuck for 22s! [systemd-udevd:1667]

2014-05-30 Thread Al Viro
On Fri, May 30, 2014 at 08:31:30AM -0700, Linus Torvalds wrote: > On Fri, May 30, 2014 at 8:21 AM, Al Viro wrote: > > > > Linus, how would you prefer it to be handled? > > I'll just have to do an rc8. I really hoped to avoid it, because we're > going on our family vacation when school is out in

[PATCH 1/1] fs/proc/consoles: replace seq_printf by seq_puts

2014-05-30 Thread Fabian Frederick
Cc: Andrew Morton Cc: Tetsuo Handa Signed-off-by: Fabian Frederick --- fs/proc/consoles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/consoles.c b/fs/proc/consoles.c index 290ba85..cb47c7e 100644 --- a/fs/proc/consoles.c +++ b/fs/proc/consoles.c @@ -55,7 +55,7

Re: [PATCH v4] NVMe: basic conversion to blk-mq

2014-05-30 Thread Keith Busch
On Thu, 29 May 2014, Matias Bjørling wrote: This converts the current NVMe driver to utilize the blk-mq layer. I'm pretty darn sure this new nvme_remove can cause a process with an open reference to use queues after they're freed in the nvme_submit_sync_command path, maybe even the admin tags

RE: [PATCH 3/6] staging: comedi: addi_apci_1564: introduce apci1564_private struct

2014-05-30 Thread Hartley Sweeten
On Thursday, May 29, 2014 9:43 PM, Chase Southwood wrote: > The addi_private struct defined in addi-data/addi_common.h is very bloated > and contains many fields which addi_apci_1564 does not require. In the > interest of eventually removing this driver's dependency on > addi_common.h, we can

[PATCH] staging: nokia_h4: nokia_core.c Fixed coding style

2014-05-30 Thread Miguel Oliveira
Inserted a blank line after a declaration. Signed-off-by: Miguel Oliveira --- drivers/staging/nokia_h4p/nokia_core.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/nokia_h4p/nokia_core.c b/drivers/staging/nokia_h4p/nokia_core.c index 5e19cd6..775e1d0 100644 ---

[PATCH 1/1] fs/proc/task_mmu.c: replace seq_printf by seq_puts

2014-05-30 Thread Fabian Frederick
Cc: Pavel Emelyanov Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/proc/task_mmu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 442177b..916ab5c 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@

[GIT PULL] qcom SoC changes for v3.16-2

2014-05-30 Thread Kumar Gala
The following changes since commit 87cfb00d666cca3abf36f755279cde1b27b9c377: ARM: qcom: Select PINCTRL by default for ARCH_QCOM (2014-05-22 11:50:42 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-soc-for-3.16-2

[GIT PULL] qcom defconfig changes for v3.16-2

2014-05-30 Thread Kumar Gala
The following changes since commit f604759ec025e21d0c29a6d0addd53bbc60eb12e: ARM: config: Update msm_defconfig (2014-05-22 11:18:56 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-defconfig-for-3.16-2 for you to

[PATCH 1/1] fs/proc/vmcore.c: remove NULL assignment on static

2014-05-30 Thread Fabian Frederick
static values are automatically initialized to NULL Cc: Andrew Morton Cc: Vivek Goyal Signed-off-by: Fabian Frederick --- fs/proc/vmcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 6a8e785..382aa89 100644 ---

[GIT PULL] qcom driver changes for v3.16-2

2014-05-30 Thread Kumar Gala
The following changes since commit 5d144e36b7c51612922fa05d37ff3a869261cc82: soc: qcom: Add GSBI driver (2014-05-23 11:38:04 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-drivers-for-3.16-2 for you to fetch

RE: [PATCH 2/6] staging: comedi: addi_apci_1564: remove use of devpriv->b_OutputMemoryStatus

2014-05-30 Thread Hartley Sweeten
On Thursday, May 29, 2014 9:42 PM, Chase Southwood wrote: > This member of the private data struct is only set at one location in the > entire driver, and then never even used for anything. Let's just remove > its use. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley Sweeeten

[GIT PULL] qcom DT changes for v3.16-2

2014-05-30 Thread Kumar Gala
The following changes since commit 08f9234ad6b0b8bc51046346eabf5b92e631e62a: soc: qcom: Add device tree binding for GSBI (2014-05-23 11:38:53 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-dt-for-3.16-2 for you

RE: [PATCH 1/6] staging: comedi: addi_apci_1564: remove send_sig() use

2014-05-30 Thread Hartley Sweeten
On Thursday, May 29, 2014 9:42 PM, Chase Southwood wrote: > The addi-data drivers use send_sig() to let the user know when an > interrupt has occurred. The "standard" way to do this in the comedi > subsystem is to have a subdevice that supports asynchronous commands > and use comedi_event() to

Re: [PATCH] clk: exynos5420: Keep aclk66_peric enabled during boot

2014-05-30 Thread Doug Anderson
Tomasz, On Thu, May 29, 2014 at 10:02 PM, Tomasz Figa wrote: > Hi, > > On 30.05.2014 00:29, Mike Turquette wrote: >> Quoting Doug Anderson (2014-05-29 14:21:36) >>> Right now if you've got earlyprintk enabled on exynos5420-peach-pit >>> then you'll get a hang on boot. Here's why: >>> >>> 1. The

Re: [PATCH RFC RESEND 00/14] New version of the BFQ I/O Scheduler

2014-05-30 Thread Tejun Heo
Hello, Vivek. On Fri, May 30, 2014 at 11:32:28AM -0400, Vivek Goyal wrote: > I don't think most of the people care about strong fairness guarantee. > As an algorithm round robin is not bad for ensuring fairness. CFQ had > started with that but then it stopped focussing on fairness and rather >

[PATCH v2] clk: exynos5420: Keep aclk66_peric enabled during boot

2014-05-30 Thread Doug Anderson
Right now if you've got earlyprintk enabled on exynos5420-peach-pit then you'll get a hang on boot. Here's why: 1. The i2c-s3c2410 driver will probe at subsys_initcall. It will enable its clock and disable it. This is the clock "i2c2". 2. The act of disabling "i2c2" will disable its

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Greg KH
On Fri, May 30, 2014 at 06:15:09PM +0200, Pali Rohár wrote: > Hi Greg, > > On Friday 30 May 2014 17:59:59 Greg KH wrote: > > On Fri, May 30, 2014 at 02:30:23PM +0200, Pavel Machek wrote: > > > Hi! > > > > > > > >> Creating this patch for the Eudyptula Challenge. > > > > >> Replaced msleep() for

Re: [PATCHi v3] iio: add support of the max1027

2014-05-30 Thread Jonathan Cameron
On May 29, 2014 10:22:00 PM GMT+01:00, Philippe Reynes wrote: >This driver add partial support of the >maxim 1027/1029/1031. Differential mode is not >supported. > >It was tested on armadeus apf27 board. > >Signed-off-by: Philippe Reynes One last thing from me. >--- >

Re: [PATCH 3/4] perf: Handle guest PEBS events with a fake event

2014-05-30 Thread Andi Kleen
On Fri, May 30, 2014 at 09:34:39AM +0200, Peter Zijlstra wrote: > On Thu, May 29, 2014 at 06:12:06PM -0700, Andi Kleen wrote: > > > Note: in very rare cases with exotic events this may lead to spurious PMIs > > in the guest. > > Qualify that statement so that if someone runs into it we at least

Re: [PATCH] clk: exynos5420: Keep aclk66_peric enabled during boot

2014-05-30 Thread Doug Anderson
Javier, On Fri, May 30, 2014 at 7:00 AM, Javier Martinez Canillas wrote: >> @@ -1239,3 +1251,15 @@ static void __init exynos5800_clk_init(struct >> device_node *np) >> exynos5x_clk_init(np, EXYNOS5800); >> } >> CLK_OF_DECLARE(exynos5800_clk, "samsung,exynos5800-clock", >>

Re: [RFC PATCH 04/11] coresight: add CoreSight ETB driver

2014-05-30 Thread Mathieu Poirier
On 30 May 2014 07:53, Russell King - ARM Linux wrote: > NAK for all the reasons I mentioned in the previous submission in 2012. > > You partially did the right thing - you read through the previous > submission, and you said in your cover message that you had addressed > some of the comments from

Re: [PATCH V4 3/3] cpufreq: Tegra: implement intermediate frequency callbacks

2014-05-30 Thread Stephen Warren
On 05/29/2014 07:56 PM, Viresh Kumar wrote: > On 29 May 2014 23:10, Stephen Warren wrote: >> This patch breaks Tegra. The reason is below. ... >>> +disable_pll_x: >>> + clk_disable_unprepare(pll_x_clk); >> >> ... so this turns off pll_x even though we're running from it. > > Can you describe

Re: [PATCH 4/4] kvm: Implement PEBS virtualization

2014-05-30 Thread Andi Kleen
> > To avoid any problems with guest pages being swapped by the host we > > pin the pages when the PEBS buffer is setup, by intercepting > > that MSR. > It will avoid guest page to be swapped, but shadow paging code may still drop > shadow PT pages that build a mapping from DS virtual address to

[PATCH] perf script: pass more arguments to the python event handler

2014-05-30 Thread Sebastian Andrzej Siewior
This patch extends the current argument list in case of events by - IP / addr of the event. Currently only the function name is passed. - seconds and ns as the timestamp. Split into two value to stay close to what the trace handler passes. - the pid of the proccess I added a common_ prefix to

Re: [prink] BUG: spinlock lockup suspected on CPU#0, swapper/1

2014-05-30 Thread Peter Zijlstra
On Fri, May 30, 2014 at 06:16:47PM +0200, Peter Zijlstra wrote: > On Fri, May 30, 2014 at 05:50:51PM +0200, Jan Kara wrote: > > > [7.492350] == > > > [7.492350] [ INFO: possible circular locking dependency detected ] > > > [7.492350]

Re: [PATCH v5 0/5] efuse driver for Tegra

2014-05-30 Thread Stephen Warren
On 05/30/2014 02:23 AM, Peter De Schrijver wrote: > On Thu, May 29, 2014 at 09:01:27PM +0200, Stephen Warren wrote: >> On 05/28/2014 06:54 AM, Peter De Schrijver wrote: >>> This driver allows userspace to read the raw efuse data. Its userspace >>> interface is modelled after the sunxi_sid driver

Re: [PATCH 6/7 V2] perf: Add support to dynamically get cacheline size

2014-05-30 Thread Don Zickus
On Fri, May 30, 2014 at 12:28:30PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, May 30, 2014 at 10:50:25AM -0400, Don Zickus escreveu: > > Different arches may have different cacheline sizes. Look it up and set > > a global variable for reference. > > [acme@zoo linux]$ strings `which

Re: [PATCH v4 13/13] mmc: mmci: Add Qcom specific pio_read function.

2014-05-30 Thread Srinivas Kandagatla
Hi Ulf, Managed to reuse the existing mmci_pio_read function with some minor modifications, Issue was with reading full fifo sizes which was creating the issue. On 30/05/14 12:44, Srinivas Kandagatla wrote: That sounds sensible.. I will try it. + *ptr =

Re: [PATCH 2/4] perf: Allow guest PEBS for KVM owned counters

2014-05-30 Thread Peter Zijlstra
On Fri, May 30, 2014 at 09:03:57AM -0700, Andi Kleen wrote: > On Fri, May 30, 2014 at 09:31:53AM +0200, Peter Zijlstra wrote: > > On Thu, May 29, 2014 at 06:12:05PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > Currently perf unconditionally disables PEBS for guest. > > > > > >

Re: [prink] BUG: spinlock lockup suspected on CPU#0, swapper/1

2014-05-30 Thread Peter Zijlstra
On Fri, May 30, 2014 at 05:50:51PM +0200, Jan Kara wrote: > > [7.492350] == > > [7.492350] [ INFO: possible circular locking dependency detected ] > > [7.492350] 3.15.0-rc5-00567-gbafe980 #1 Not tainted > > [7.492350]

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Pali Rohár
Hi Greg, On Friday 30 May 2014 17:59:59 Greg KH wrote: > On Fri, May 30, 2014 at 02:30:23PM +0200, Pavel Machek wrote: > > Hi! > > > > > >> Creating this patch for the Eudyptula Challenge. > > > >> Replaced msleep() for a delay < 20ms with a > > > >> usleep_range() between 1us and 15000us.

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Fri, May 30, 2014 at 05:05:54PM +0100, Miguel Oliveira wrote: > Greg should I make a patch for the whitespace while you are > considering in remove the driver? Yes, that would be fine, it will be

[PATCH 2/2] MAINTAINERS: add a co-maintainer from samsung for F2FS

2014-05-30 Thread jaegeuk
From: Jaegeuk Kim This patch adds a samsung guy for an F2FS maintainer. Signed-off-by: Jaegeuk Kim --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 38ffb57..e154141 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3775,6 +3775,7 @@ F:

Re: [PATCH v5 3/5] misc: fuse: Add efuse driver for Tegra

2014-05-30 Thread Stephen Warren
On 05/30/2014 05:36 AM, Peter De Schrijver wrote: > On Thu, May 29, 2014 at 09:04:33PM +0200, Stephen Warren wrote: >> On 05/28/2014 06:54 AM, Peter De Schrijver wrote: >>> Implement fuse driver for Tegra20, Tegra30, Tegra114 and Tegra124. >> >>> diff --git

[PATCH 1/2] MAINTAINERS: change the email address for f2fs

2014-05-30 Thread jaegeuk
From: Jaegeuk Kim This patch changes the valid email address to maintain the f2fs file system. Signed-off-by: Jaegeuk Kim --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 51ebb77..38ffb57 100644 --- a/MAINTAINERS +++

Re: [PATCH 2/4] perf: Allow guest PEBS for KVM owned counters

2014-05-30 Thread Andi Kleen
On Fri, May 30, 2014 at 09:31:53AM +0200, Peter Zijlstra wrote: > On Thu, May 29, 2014 at 06:12:05PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Currently perf unconditionally disables PEBS for guest. > > > > Now that we have the infrastructure in place to handle > > it we can allow

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-30 Thread Tim Chen
On Fri, 2014-05-30 at 01:25 -0400, George Spelvin wrote: > > Averaging the 8K bytes per update, I do see an average of 3.2 cycles per > operation (that is, per 8K of data processed) lost, or about 1 cycle per > (3K or less) block processed. I'm hoping the reduced D-cache polution > makes it up

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-30 Thread Konrad Rzeszutek Wilk
On Thu, May 29, 2014 at 11:34:59PM +0900, Tetsuo Handa wrote: > Tetsuo Handa wrote: > > Konrad Rzeszutek Wilk wrote: > > > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > > > Hello. > > > > > > > > I tried to test whether it is OK (from point of view of reentrant) to > > > >

Re: [PATCH RFC - TAKE TWO - 00/12] New version of the BFQ I/O Scheduler

2014-05-30 Thread Tejun Heo
Hello, Paolo. On Thu, May 29, 2014 at 11:05:31AM +0200, Paolo Valente wrote: > this patchset introduces the last version of BFQ, a proportional-share > storage-I/O scheduler. BFQ also supports hierarchical scheduling with > a cgroups interface. The first version of BFQ was submitted a few > years

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-30 Thread Konrad Rzeszutek Wilk
On Thu, May 29, 2014 at 06:47:49AM +0900, Tetsuo Handa wrote: > Konrad Rzeszutek Wilk wrote: > > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > > Hello. > > > > > > I tried to test whether it is OK (from point of view of reentrant) to use > > > mutex_lock() or

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Miguel Oliveira
Greg should I make a patch for the whitespace while you are considering in remove the driver? Regards 2014-05-30 17:01 GMT+01:00 Greg KH : > On Fri, May 30, 2014 at 11:27:13AM +0100, Miguel Oliveira wrote: >> Creating this patch for the Eudyptula Challenge. >> Replaced msleep() for a delay <

Re: [PATCH v3 12/15] pci: Add pci_fixup_suspend_late quirk pass.

2014-05-30 Thread Greg KH
On Fri, May 30, 2014 at 04:33:20PM +0200, Andreas Noever wrote: > On Thu, May 29, 2014 at 12:36 AM, Bjorn Helgaas wrote: > > On Mon, May 26, 2014 at 05:18:09PM +0200, Andreas Noever wrote: > > > > Please adjust the subject to match the drivers/pci convention, i.e., change > > > > pci: Add

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-30 Thread Linus Torvalds
On Fri, May 30, 2014 at 8:52 AM, H. Peter Anvin wrote: >> >> That said, it's still likely a non-production option due to the page >> table games we'd have to play at fork/clone time. > > Still, seems much more tractable. We might be able to make it more attractive by having a small front-end

Re: [RFC PATCH v4 3/4] ima: define '.ima' as a builtin 'trusted' keyring

2014-05-30 Thread Dmitry Kasatkin
On 28 May 2014 22:26, Mimi Zohar wrote: > On Wed, 2014-05-28 at 21:55 +0300, Dmitry Kasatkin wrote: >> On 28 May 2014 18:09, Mimi Zohar wrote: >> > Require all keys added to the IMA keyring be signed by an >> > existing trusted key on the system trusted keyring. >> > >> > Changelog v1: >> > -

Re: [PATCH] fence: Use smp_mb__before_atomic()

2014-05-30 Thread Greg Kroah-Hartman
On Fri, May 30, 2014 at 10:15:05AM +0200, Thierry Reding wrote: > On Wed, May 28, 2014 at 01:51:45PM -0700, Greg Kroah-Hartman wrote: > > On Wed, May 28, 2014 at 04:26:32PM +0200, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > Commit febdbfe8a91c (arch: Prepare for

Re: [PATCH 1/2] gpio: removes all usage of gpiochip_remove retval

2014-05-30 Thread Alexandre Courbot
On Fri, May 30, 2014 at 8:37 PM, abdoulaye berthe wrote: > The aim of this patch is to make gpiochip_remove() behavior consistent, > especially when issuing a remove request while the chipio chip is still > requested. It is the 1st patch in a serie af 2 patches. the 2nd patch > changes the return

Re: [RFC PATCH v4 1/4] KEYS: special dot prefixed keyring name bug fix

2014-05-30 Thread Dmitry Kasatkin
On 28 May 2014 18:09, Mimi Zohar wrote: > Dot prefixed keyring names are supposed to be reserved for the > kernel, but add_key() calls key_get_type_from_user(), which > incorrectly verifies the 'type' field, not the 'description' field. > This patch verifies the 'description' field isn't dot

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Greg KH
On Fri, May 30, 2014 at 11:27:13AM +0100, Miguel Oliveira wrote: > Creating this patch for the Eudyptula Challenge. > Replaced msleep() for a delay < 20ms with a usleep_range() between 1us > and 15000us. > Also inserted a blank line after adeclaration. As you are doing 2 different things in

Re: [PATCH] toosl/perf: convert "==" into "="

2014-05-30 Thread Peter Zijlstra
On Fri, May 30, 2014 at 12:47:09PM -0300, Arnaldo Carvalho de Melo wrote: > Find it attached, zhangdianfang, please send it as an attachment next > time, also please CC lkml as well. And here I thought attachments were frowned upon ;-) pgpwkbqHSrLd1.pgp Description: PGP signature

Re: [PATCH] staging: nokia_h4: nokia_core.c: use usleep_range() instead of msleep()

2014-05-30 Thread Greg KH
On Fri, May 30, 2014 at 02:30:23PM +0200, Pavel Machek wrote: > Hi! > > > >> Creating this patch for the Eudyptula Challenge. > > >> Replaced msleep() for a delay < 20ms with a usleep_range() between > > >> 1us and 15000us. > > >> Also inserted a blank line after adeclaration. > > > > > >

[PATCH v11 02/16] qspinlock, x86: Enable x86-64 to use queue spinlock

2014-05-30 Thread Waiman Long
This patch makes the necessary changes at the x86 architecture specific layer to enable the use of queue spinlock for x86-64. As x86-32 machines are typically not multi-socket. The benefit of queue spinlock may not be apparent. So queue spinlock is not enabled. Currently, there is some

[PATCH v11 00/16] qspinlock: a 4-byte queue spinlock with PV support

2014-05-30 Thread Waiman Long
v10->v11: - Use a simple test-and-set unfair lock to simplify the code, but performance may suffer a bit for large guest with many CPUs. - Take out Raghavendra KT's test results as the unfair lock changes may render some of his results invalid. - Add PV support without increasing the

Re: [PATCH v1] ARM: pci: add call to pcie_bus_configure_settings()

2014-05-30 Thread Bjorn Helgaas
On Wed, May 28, 2014 at 01:14:53PM -0400, Murali Karicheri wrote: > Call pcie_bus_configure_settings on ARM, like for other platforms. > pcie_bus_configure_settings makes sure the MPS across the bus is > uniform and provides the ability to tune the MRSS and MPS to higher > performance values. This

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-30 Thread H. Peter Anvin
On 05/30/2014 08:41 AM, Linus Torvalds wrote: > On Fri, May 30, 2014 at 8:25 AM, H. Peter Anvin wrote: >> >> If we removed struct thread_info from the stack allocation then one >> could do a guard page below the stack. Of course, we'd have to use IST >> for #PF in that case, which makes it a

[PATCH] RDS/RDMA: Replace comma with semicolon

2014-05-30 Thread Himangi Saraogi
This patch replaces a comma between expression statements by a semicolon. A simplified version of the semantic patch that performs this transformation is as follows: // @r@ expression e1,e2,e; type T; identifier i; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall

[PATCH v11 03/16] qspinlock: Add pending bit

2014-05-30 Thread Waiman Long
From: Peter Zijlstra Because the qspinlock needs to touch a second cacheline; add a pending bit and allow a single in-word spinner before we punt to the second cacheline. Signed-off-by: Peter Zijlstra Signed-off-by: Waiman Long --- include/asm-generic/qspinlock_types.h | 12 +++-

Re: [PATCH RFC - TAKE TWO - 12/12] block, bfq: boost the throughput with random I/O on NCQ-capable HDDs

2014-05-30 Thread Tejun Heo
On Thu, May 29, 2014 at 11:05:43AM +0200, Paolo Valente wrote: > This patch is basically the counterpart of patch 13 for NCQ-capable > rotational devices. Exactly as patch 13 does on flash-based devices > and for any workload, this patch disables device idling on rotational > devices, but only for

Re: [PATCH RFC - TAKE TWO - 06/12] block, bfq: improve responsiveness

2014-05-30 Thread Tejun Heo
On Thu, May 29, 2014 at 11:05:37AM +0200, Paolo Valente wrote: > @@ -281,7 +323,8 @@ static inline unsigned long bfq_serv_to_charge(struct > request *rq, > struct bfq_queue *bfqq) > { > return blk_rq_sectors(rq) * > - (1 +

Re: [PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-30 Thread Ralf Baechle
On Fri, May 30, 2014 at 01:39:15PM +0200, Geert Uytterhoeven wrote: > > + if (test_bit(FLAG_REQUESTED, >desc[id].flags)) > > + panic("gpio: removing gpiochip with gpios still > > requested\n"); > > panic? > > Is this likely to happen? And while we're at it

[PATCH v2 1/2] x86,vdso: When vdso2c fails, unlink the output

2014-05-30 Thread Andy Lutomirski
This avoids bizarre failures if make is run again. Signed-off-by: Andy Lutomirski --- arch/x86/vdso/vdso2c.c | 20 +++- arch/x86/vdso/vdso2c.h | 10 +++--- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/arch/x86/vdso/vdso2c.c b/arch/x86/vdso/vdso2c.c index

[PATCH v2 0/2] x86,vdso: vdso build fixes and improvements

2014-05-30 Thread Andy Lutomirski
Patch 1 causes make;make to behave similarly to make if vdso2c fails. Patch 2 hopefully fixes x86 crossbuilds on big-endian machines. I don't have a big-endian machine to test on, though. Changes from v1: Add two missing endian fixes Andy Lutomirski (2): x86,vdso: When vdso2c fails, unlink

[PATCH v2 2/2] x86,vdso: Fix cross-compilation from big-endian architectures

2014-05-30 Thread Andy Lutomirski
This adds a macro GET(x) to convert x from big-endian to little-endian. Hopefully I put it everywhere it needs to go and got all the cases needed for everyone's linux/elf.h. Signed-off-by: Andy Lutomirski --- arch/x86/vdso/vdso2c.c | 15 arch/x86/vdso/vdso2c.h | 63

Re: [PATCH RFC - TAKE TWO - 11/12] block, bfq: boost the throughput on NCQ-capable flash-based devices

2014-05-30 Thread Tejun Heo
On Thu, May 29, 2014 at 11:05:42AM +0200, Paolo Valente wrote: > This patch boosts the throughput on NCQ-capable flash-based devices, > while still preserving latency guarantees for interactive and soft > real-time applications. The throughput is boosted by just not idling > the device when the

[PATCH] af_key: Replace comma with semicolon

2014-05-30 Thread Himangi Saraogi
This patch replaces a comma between expression statements by a semicolon. A simplified version of the semantic patch that performs this transformation is as follows: // @r@ expression e1,e2,e; type T; identifier i; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall

Re: [PATCH] toosl/perf: convert "==" into "="

2014-05-30 Thread Arnaldo Carvalho de Melo
Em Fri, May 30, 2014 at 05:37:29PM +0200, Jiri Olsa escreveu: > On Fri, May 30, 2014 at 12:20:11PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, May 30, 2014 at 02:44:46PM +0200, Jean Delvare escreveu: > > > I don't have anything to do with this, I'm not the author of the code > > > nor the

[PATCH] rds/tcp_listen: Replace comma with semicolon

2014-05-30 Thread Himangi Saraogi
This patch replaces a comma between expression statements by a semicolon. A simplified version of the semantic patch that performs this transformation is as follows: // @r@ expression e1,e2,e; type T; identifier i; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall

[PATCH v11 16/16] pvqspinlock, x86: Enable PV qspinlock for XEN

2014-05-30 Thread Waiman Long
This patch adds the necessary XEN specific code to allow XEN to support the CPU halting and kicking operations needed by the queue spinlock PV code. Signed-off-by: Waiman Long --- arch/x86/xen/spinlock.c | 147 +-- kernel/Kconfig.locks|2 +-

[PATCH v11 15/16] pvqspinlock, x86: Enable PV qspinlock PV for KVM

2014-05-30 Thread Waiman Long
This patch adds the necessary KVM specific code to allow KVM to support the CPU halting and kicking operations needed by the queue spinlock PV code. Two KVM guests of 20 CPU cores (2 nodes) were created for performance testing in one of the following three configurations: 1) Only 1 VM is active

[PATCH v11 11/16] pvqspinlock, x86: Rename paravirt_ticketlocks_enabled

2014-05-30 Thread Waiman Long
This patch renames the paravirt_ticketlocks_enabled static key to a more generic paravirt_spinlocks_enabled name. Signed-off-by: Waiman Long --- arch/x86/include/asm/spinlock.h |4 ++-- arch/x86/kernel/kvm.c|2 +- arch/x86/kernel/paravirt-spinlocks.c |4 ++--

[PATCH v11 14/16] pvqspinlock: Add qspinlock para-virtualization support

2014-05-30 Thread Waiman Long
This patch adds base para-virtualization support to the queue spinlock in the same way as was done in the PV ticket lock code. In essence, the lock waiters will spin for a specified number of times (QSPIN_THRESHOLD = 2^14) and then halted itself. The queue head waiter, unlike the other waiter,

[PATCH v11 09/16] qspinlock, x86: Allow unfair spinlock in a virtual guest

2014-05-30 Thread Waiman Long
Locking is always an issue in a virtualized environment because of 2 different types of problems: 1) Lock holder preemption 2) Lock waiter preemption One solution to the lock waiter preemption problem is to allow unfair lock in a virtualized environment. In this case, a new lock acquirer can

[PATCH v11 12/16] pvqspinlock, x86: Add PV data structure & methods

2014-05-30 Thread Waiman Long
This patch modifies the para-virtualization (PV) infrastructure code of the x86-64 architecture to support the PV queue spinlock. Three new virtual methods are added to support PV qspinlock: 1) kick_cpu - schedule in a virtual CPU 2) halt_cpu - schedule out a virtual CPU 3) lockstat - update

[PATCH v11 10/16] qspinlock: Split the MCS queuing code into a separate slowerpath

2014-05-30 Thread Waiman Long
With the pending addition of more codes to support PV spinlock, the complexity of the slowpath function increases to the point that the number of scratch-pad registers in the x86-64 architecture is not enough and so those additional non-scratch-pad registers will need to be used. This has the

[PATCH v11 08/16] qspinlock: Prepare for unfair lock support

2014-05-30 Thread Waiman Long
If unfair lock is supported, the lock acquisition loop at the end of the queue_spin_lock_slowpath() function may need to detect the fact the lock can be stolen. Code are added for the stolen lock detection. Signed-off-by: Waiman Long --- kernel/locking/qspinlock.c | 26

[PATCH v11 13/16] pvqspinlock: Enable coexistence with the unfair lock

2014-05-30 Thread Waiman Long
This patch enables the coexistence of both the PV qspinlock and unfair lock. When both are enabled, however, only the lock fastpath will perform lock stealing whereas the slowpath will have that disabled to get the best of both features. We also need to transition a CPU spinning too long in the

[PATCH v11 07/16] qspinlock: Use a simple write to grab the lock, if applicable

2014-05-30 Thread Waiman Long
Currently, atomic_cmpxchg() is used to get the lock. However, this is not really necessary if there is more than one task in the queue and the queue head don't need to reset the queue code word. For that case, a simple write to set the lock bit is enough as the queue head will be the only one

[PATCH v11 05/16] qspinlock: Optimize for smaller NR_CPUS

2014-05-30 Thread Waiman Long
From: Peter Zijlstra When we allow for a max NR_CPUS < 2^14 we can optimize the pending wait-acquire and the xchg_tail() operations. By growing the pending bit to a byte, we reduce the tail to 16bit. This means we can use xchg16 for the tail part and do away with all the repeated compxchg()

[PATCH v11 06/16] qspinlock: prolong the stay in the pending bit path

2014-05-30 Thread Waiman Long
There is a problem in the current pending bit spinning code. When the lock is free, but the pending bit holder hasn't grabbed the lock & cleared the pending bit yet, the spinning code will not be run. As a result, the regular queuing code path might be used most of the time even when there is

[PATCH v11 04/16] qspinlock: Extract out the exchange of tail code word

2014-05-30 Thread Waiman Long
This patch extracts the logic for the exchange of new and previous tail code words into a new xchg_tail() function which can be optimized in a later patch. Signed-off-by: Waiman Long --- include/asm-generic/qspinlock_types.h |2 + kernel/locking/qspinlock.c| 58

[PATCH v11 01/16] qspinlock: A simple generic 4-byte queue spinlock

2014-05-30 Thread Waiman Long
This patch introduces a new generic queue spinlock implementation that can serve as an alternative to the default ticket spinlock. Compared with the ticket spinlock, this queue spinlock should be almost as fair as the ticket spinlock. It has about the same speed in single-thread and it can be much

[git pull] Input updates for 3.15-rc7

2014-05-30 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get a couple of driver/build fixups and also redone

Re: [PATCH 0/2] x86,vdso: vdso build fixes and improvements

2014-05-30 Thread Andy Lutomirski
On Thu, May 29, 2014 at 10:42 PM, Stephen Rothwell wrote: > Hi Andy, > > On Thu, 29 May 2014 15:49:52 -0700 Andy Lutomirski > wrote: >> >> On Thu, May 29, 2014 at 3:41 PM, Paul Gortmaker >> wrote: >> > On 14-05-29 05:57 PM, Andy Lutomirski wrote: >> >> Patch 1 causes make;make to behave

[PATCH] ipmr: Replace comma with semicolon

2014-05-30 Thread Himangi Saraogi
This patch replaces a comma between expression statements by a semicolon. A simplified version of the semantic patch that performs this transformation is as follows: // @r@ expression e1,e2,e; type T; identifier i; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi --- net/ipv4/ipmr.c | 2

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-30 Thread Linus Torvalds
On Fri, May 30, 2014 at 8:25 AM, H. Peter Anvin wrote: > > If we removed struct thread_info from the stack allocation then one > could do a guard page below the stack. Of course, we'd have to use IST > for #PF in that case, which makes it a non-production option. We could just have the guard

Re: [PATCH RFC - TAKE TWO - 02/12] block, bfq: add full hierarchical scheduling and cgroups support

2014-05-30 Thread Tejun Heo
On Fri, May 30, 2014 at 11:37:18AM -0400, Tejun Heo wrote: > On Thu, May 29, 2014 at 11:05:33AM +0200, Paolo Valente wrote: > > diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h > > index 768fe44..cdd2528 100644 > > --- a/include/linux/cgroup_subsys.h > > +++

Re: [PATCH RFC - TAKE TWO - 02/12] block, bfq: add full hierarchical scheduling and cgroups support

2014-05-30 Thread Tejun Heo
On Thu, May 29, 2014 at 11:05:33AM +0200, Paolo Valente wrote: > diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h > index 768fe44..cdd2528 100644 > --- a/include/linux/cgroup_subsys.h > +++ b/include/linux/cgroup_subsys.h > @@ -39,6 +39,10 @@ SUBSYS(net_cls) >

Re: [PATCH RFC - TAKE TWO - 01/12] block: introduce the BFQ-v0 I/O scheduler

2014-05-30 Thread Tejun Heo
Hello, On Thu, May 29, 2014 at 11:05:32AM +0200, Paolo Valente wrote: > diff --git a/block/bfq-ioc.c b/block/bfq-ioc.c > new file mode 100644 > index 000..adfb5a1 > --- /dev/null > +++ b/block/bfq-ioc.c > @@ -0,0 +1,34 @@ > +/* > + * BFQ: I/O context handling. > + * > + * Based on ideas and

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