[PATCH 3.8-stable] gpio: fix wrong checking condition for gpio range

2013-04-13 Thread Jonghwan Choi
From: Haojian Zhuang This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Haojian Zhuang " commit ad4e1a7caf937ad395ced585ca85a7d14395dc80 upstream If index++ calculates from 0, the checking condition of "while (index++)" fails & it doesn't

Re: [PATCH] kernel: move exit_task_work() past exit_notify()

2013-04-13 Thread Oleg Nesterov
On 04/12, Andrey Vagin wrote: > exit_task_work() must be called after exit_notify, because > exit_task_namespaces() may release a file and fput() enqueues a work. > > exit_notify > exit_task_namespaces > free_ipc_ns > shm_destroy > fput > task_work_add > > so if task

[PATCH 0/1] uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty

2013-04-13 Thread Oleg Nesterov
On 04/12, Steven Rostedt wrote: > > On Thu, 2013-04-11 at 13:59 +0200, Oleg Nesterov wrote: > > > > If so, we can do same thing also on trace_events. > > > (perf_trace_##call in include/trace/ftrace.h) > > > > Yes, yes, this is not kprobe-specific. It seems that more users of > >

[GIT PULL] One more btrfs

2013-04-13 Thread Chris Mason
Hi Linus My for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus Has a recent fix from Josef for our tree log replay code. It fixes problems where the inode counter for the number of bytes in the file wasn't getting updated properly during fsync

[PATCH 6/7] backports: add media subsystem drivers

2013-04-13 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This adds backport support for all media subsystem drivers. This is enabled only for >= 3.2. Some media drivers rely on the new probe deferrral mechanism (-EPROBE_DEFER see commit d1c3414c), those are only enabled for kernels >= 3.4. Some media drivers only depend on

[PATCH 5/7] backports: add support for voltage / current regulator drivers

2013-04-13 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This backports the latest regulator drivers for kernels >= 3.4. We enable the regulator only on kernels >= 3.4 given that it relies on the new probe deferral mechanism which would otherwise mean having to support drivers that do not probe correctly. Note that 3.2 had a

[PATCH] checkpatch: whitelist SUPPORTED_*/ADVERTISED_* defines from ethtool.h

2013-04-13 Thread Jonas Gorski
Don't complain about camelcase when using SUPPORTED_*/ADVERTISED_* defines, they are part of the user api so can't be (easily) fixed. Removes false positives in e.g. ethernet drivers like: WARNING: Avoid CamelCase: + SUPPORTED_Autoneg | Signed-off-by: Jonas

Re: [PATCH] regulator: ab8500: Fix get_mode for shared mode regulators

2013-04-13 Thread Axel Lin
Ping. Hi Lee, Can you review this patch. I think this one is a bug fix. Regards, Axel 2013/4/8 Axel Lin : > The special handling code for getting shared mode status is wrong > because it needs to check info->shared_mode->lp_mode_req for > both regulators that shared the same mode register. > >

[PATCH 1/1] uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty

2013-04-13 Thread Oleg Nesterov
perf_trace_buf_prepare() + perf_trace_buf_submit() make no sense if this task/CPU has no active counters. Change uprobe_perf_print() to return if hlist_empty(call->perf_events). Note: this is not uprobe-specific, we can change other users too. Signed-off-by: Oleg Nesterov ---

Re: [PATCH tip/core/rcu 3/7] rcu: Kick adaptive-ticks CPUs that are holding up RCU grace periods

2013-04-13 Thread Frederic Weisbecker
2013/4/13 Paul E. McKenney : > From: "Paul E. McKenney" > > Adaptive-ticks CPUs inform RCU when they enter kernel mode, but they do > not necessarily turn the scheduler-clock tick back on. This state of > affairs could result in RCU waiting on an adaptive-ticks CPU running > for an extended

[PATCH] regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL

2013-04-13 Thread Axel Lin
pdata is either a valid pointer or NULL, use NULL checking rather than IS_ERR_OR_NULL macro. Signed-off-by: Axel Lin --- drivers/regulator/max8997.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index

[PATCH 3.8-stable] mnt: release locks on error path in do_loopback

2013-04-13 Thread Jonghwan Choi
From: Andrey Vagin This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Andrey Vagin " commit e9c5d8a562f01b211926d70443378eb14b29a676 upstream do_loopback calls lock_mount(path) and forget to unlock_mount if clone_mnt or copy_mnt fails. [

[PATCH RESEND] mfd: max8997: Return proper error if pdata is NULL

2013-04-13 Thread Axel Lin
Return proper error instead of 0 if pdata is NULL. Signed-off-by: Axel Lin --- drivers/mfd/max8997.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 1471405..823f34b 100644 --- a/drivers/mfd/max8997.c +++

[PATCH 8/8] bcache: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 7/8] dm thin: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 6/8] brd: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 5/8] nbd: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 4/8] loop: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 3/8] mtd: use generic helper to set max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon It is better to use blk_queue_max_discard_sectors helper function to set max_discard_sectors as it checks max_discard_sectors upper limit UINT_MAX >> 9 similar issue was reported for mmc in below link https://lkml.org/lkml/2013/4/1/292 If multiple discard requests get merged,

[PATCH 2/8] mmc: fix max_discard_sectors

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon https://lkml.org/lkml/2013/4/1/292 As per above discussion, there is possibility that request's __data_len field may overflow when max_discard_sectors greater than UINT_MAX >> 9 If multiple discard requests get merged, merged discard request's size exceeds 4GB, there is

[PATCH 1/8] block: fix max discard sectors limit

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon https://lkml.org/lkml/2013/4/1/292 As per above discussion, it has been oberved that few drivers are setting q->limits.max_discard_sectors to more than (UINT_MAX >> 9) If multiple discard requests get merged, merged discard request's size exceeds 4GB, there is possibility

[PATCH 0/8] fix max discard sectors limit

2013-04-13 Thread Namjae Jeon
From: Namjae Jeon linux-v3.8-rc1 and later support for plug for blkdev_issue_discard with commit 0cfbcafcae8b7364b5fa96c2b26ccde7a3a296a9 (block: add plug for blkdev_issue_discard ) For example, 1) DISCARD rq-1 with size size 4GB 2) DISCARD rq-2 with size size 1GB If these 2 discard requests

Re: [PATCH PART2 v4 6/6] staging: ramster: add how-to for ramster

2013-04-13 Thread Greg Kroah-Hartman
On Sat, Apr 13, 2013 at 09:01:32PM +0800, Wanpeng Li wrote: > Add how-to for ramster. > > Acked-by: Dan Magenheimer > Singed-off-by: Dan Magenheimer > Signed-off-by: Wanpeng Li > --- > drivers/staging/zcache/ramster/HOWTO.txt | 257 > ++ > 1 file changed, 257

Re: [PATCH 4/4] ARM: mmp: add SMP support for pxa988

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:39 AM, Neil Zhang wrote: > Add SMP support for pxa988. > > Signed-off-by: Neil Zhang > Signed-off-by: Chao Xie > --- > arch/arm/mach-mmp/Makefile |4 + > arch/arm/mach-mmp/common.h |2 + > arch/arm/mach-mmp/headsmp.S | 104 ++ >

Re: [PATCH 3/4] ARM: mmp: bring up pxa988 with device tree support

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:38 AM, Neil Zhang wrote: > bring up pxa988 with device tree support. > > Signed-off-by: Neil Zhang > Signed-off-by: Chao Xie > --- > arch/arm/boot/dts/pxa988-dkb.dts | 36 ++ > arch/arm/boot/dts/pxa988.dtsi | 196 >

[PATCH PART3 v4 5/6] staging: zcache/debug: fix coding style

2013-04-13 Thread Wanpeng Li
Fix coding style issue: ERROR: space prohibited before that '++' (ctx:WxO) and line beyond 8 characters. Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li --- drivers/staging/zcache/debug.h | 95 1 file changed, 76 insertions(+), 19 deletions(-)

[PATCH PART2 v4 6/6] staging: ramster: add how-to for ramster

2013-04-13 Thread Wanpeng Li
Add how-to for ramster. Acked-by: Dan Magenheimer Singed-off-by: Dan Magenheimer Signed-off-by: Wanpeng Li --- drivers/staging/zcache/ramster/HOWTO.txt | 257 ++ 1 file changed, 257 insertions(+) create mode 100644 drivers/staging/zcache/ramster/HOWTO.txt diff

[PATCH PART3 v4 1/6] staging: ramster: Move debugfs code out of ramster.c file

2013-04-13 Thread Wanpeng Li
Note that at this point there is no CONFIG_RAMSTER_DEBUG option in the Kconfig. So in effect all of the counters are nop until that option gets introduced in patch: ramster/debug: Add CONFIG_RAMSTER_DEBUG Kconfig entry Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li ---

[PATCH PART3 v4 2/6] staging: ramster/debug: Use an array to initialize/use debugfs attributes

2013-04-13 Thread Wanpeng Li
Use an array to initialize/use debugfs attributes, it makes them neater as zcache/debug.c does. Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li --- drivers/staging/zcache/ramster/debug.c | 68 +++- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git

[PATCH PART3 v4 3/6] staging: ramster: Add incremental accessory counters

2013-04-13 Thread Wanpeng Li
Add incremental accessory counters that are going to be used for debug fs entries. Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li --- drivers/staging/zcache/ramster/debug.h | 67 ++ drivers/staging/zcache/ramster/ramster.c | 32 +++--- 2 files

[PATCH PART3 v4 4/6] staging: ramster/debug: Add CONFIG_RAMSTER_DEBUG Kconfig entry

2013-04-13 Thread Wanpeng Li
Add CONFIG_RAMSTER_DEBUG Kconfig entry. Acked-by: Dan Magenheimer Signed-off-by: Wanpeng Li --- drivers/staging/zcache/Kconfig |8 drivers/staging/zcache/Makefile|2 +- drivers/staging/zcache/ramster/debug.h |2 +- 3 files changed, 10 insertions(+), 2

[PATCH PART3 v4 0/6] staging: zcache/ramster: fix and ramster/debugfs improvement

2013-04-13 Thread Wanpeng Li
Changelog: v3 -> v4: * fix compile issue v2 -> v3: * update patch description of staging: ramster: Move debugfs code out of ramster.c file * update patch title of staging: ramster/debug: Add RAMSTER_DEBUG Kconfig entry v1 -> v2: * fix bisect issue * fix issue in patch

Re: [PATCH 2/4] ARM: mmp: move function declaration to head file

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:37 AM, Neil Zhang wrote: > Move some of the function declaration to head file. > > Signed-off-by: Neil Zhang > Signed-off-by: Chao Xie > --- > arch/arm/mach-mmp/common.h |3 +++ > arch/arm/mach-mmp/mmp-dt.c |3 --- > arch/arm/mach-mmp/mmp2-dt.c |3 --- >

Re: Latest randconfig build errors

2013-04-13 Thread Rob Clark
On Mon, Mar 4, 2013 at 1:46 PM, Tony Lindgren wrote: > >> drivers/gpu/drm/tilcdc/tilcdc_slave.o:(.data+0x54): multiple definition of >> `__mod_of_device_table' >> drivers/gpu/drm/tilcdc/tilcdc_tfp410.o:(.data+0x54): first defined here >> drivers/gpu/drm/tilcdc/tilcdc_panel.o:(.data+0x54):

Re: Return value of __mm_populate

2013-04-13 Thread Marco
Adding in cc: lkml Il 13/04/2013 14:14, Marco Stornelli ha scritto: Hi, I was seeing the code of __mm_populate (in -next) and I've got a doubt about the return value. The function __mlock_posix_error_return should return a proper error for mlock, converting the return value from

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Sat, 2013-04-13 at 13:56 +0200, Ulf Hansson wrote: > > Den 13 apr 2013 12:49 skrev "Sergey Yanovich" : > > A possible solution is to make card a separate device (now only the > host > > is a device). In this case, the probing could be done asynchronously > > without breaking the assumption in

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Chris Ball
Hi, On Sat, Apr 13 2013, Sergey Yanovich wrote: > On Wed, 2013-03-27 at 07:57 -0400, Chris Ball wrote: >> If the delay's significant, I agree with you and will revert this patch. > > The patch was reverted. The problem is back. Filed bug: > https://bugzilla.kernel.org/show_bug.cgi?id=56561 > > A

Re: [PATCH 1/4] ARM: mmp: add wakeup function for ICU

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:37 AM, Neil Zhang wrote: > From: Chao Xie > > PXA988 will use GIC as its interrupt controller, and ICU is used as wakeup > logic. When AP subsystem is powered off, GIC will lose its context, the > PMU will need ICU to wakeup the AP subsystem. > When ICU works as wakeup

Re: BUG: Fn keys not working on EliteBook 8460p after fabf85e3ca15d5b94058f391dac8df870cdd427a

2013-04-13 Thread Kyle Evans
Sure, sorry about that. I was hoping the GUID would be enough. I'll see what I can come up with. On 04/12/2013 09:35 PM, Matthew Garrett wrote: On Sat, 2013-04-13 at 03:31 +0200, Pali Rohár wrote: all Fn keys, wifi switch, web and mute buttons not working anymore on my notebook HP EliteBook

Re: fanotify: fix support of large files

2013-04-13 Thread Heinrich Schuchardt
Dear Justin, looking at the example at http://www.lanedo.com/~aleksander/fanotify/fanotify-example.c the large file support is enabled by passing O_LARGEFILE to fanotify_init: if ((fanotify_fd = fanotify_init (FAN_CLOEXEC, O_RDONLY | O_CLOEXEC |

3.8.5: incorrect semaphore state issue

2013-04-13 Thread Udo van den Heuvel
Hello, This morning I did a luksOpen on an external harddisk and saw: # cryptsetup luksOpen /dev/sde1 crypto2 Enter passphrase for /dev/sde1: semid 557063: semop failed for cookie 0xd4dd6db: incorrect semaphore state Failed to set a proper state for notification semaphore identified by cookie

[PATCH] pm2301-charger: Fix suspend/resume

2013-04-13 Thread Lars-Peter Clausen
The pm2301-charger driver implements runtime pm and at the same time uses the legacy pm callbacks for suspend and resume. This does not work since the I2C core wont look at the legacy pm callbacks if a driver has the 'pm' field set. This patch fixes it by moving over to dev_pm_ops for

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Wed, 2013-03-27 at 07:57 -0400, Chris Ball wrote: > If the delay's significant, I agree with you and will revert this patch. The patch was reverted. The problem is back. Filed bug: https://bugzilla.kernel.org/show_bug.cgi?id=56561 A possible solution is to make card a separate device (now

[RFC PATCH 2/6] crypto: tcrypt - add async cipher speed tests for blowfish

2013-04-13 Thread Jussi Kivilinna
Signed-off-by: Jussi Kivilinna --- crypto/tcrypt.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 24ea7df..66d254c 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1768,6 +1768,21 @@ static int do_test(int m)

[RFC PATCH 5/6] crypto: serpent - add AVX2/x86_64 assembler implementation of serpent cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Serpent cipher, requiring 16 parallel blocks for input (256 bytes). Implementation is based on the AVX implementation and extends to use the 256-bit wide YMM registers. Since serpent does not use table look-ups, this implementation should be close to two

[RFC PATCH 4/6] crypto: twofish - add AVX2/x86_64 assembler implementation of twofish cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Twofish cipher, requiring 16 parallel blocks for input (256 bytes). Table look-ups are performed using vpgatherdd instruction directly from vector registers and thus should be faster than earlier implementations. Implementation also uses 256-bit wide YMM

[RFC PATCH 1/6] crypto: testmgr - extend camellia test-vectors for camellia-aesni/avx2

2013-04-13 Thread Jussi Kivilinna
Signed-off-by: Jussi Kivilinna --- crypto/testmgr.h | 1100 -- 1 file changed, 1062 insertions(+), 38 deletions(-) diff --git a/crypto/testmgr.h b/crypto/testmgr.h index d503660..dc2c054 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@

[RFC PATCH 3/6] crypto: blowfish - add AVX2/x86_64 implementation of blowfish cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Blowfish cipher, requiring 32 parallel blocks for input (256 bytes). Table look-ups are performed using vpgatherdd instruction directly from vector registers and thus should be faster than earlier implementations. Signed-off-by: Jussi Kivilinna ---

[RFC PATCH 0/6] Add AVX2 accelerated implementations for Blowfish, Twofish, Serpent and Camellia

2013-04-13 Thread Jussi Kivilinna
The following series implements four block ciphers - Blowfish, Twofish, Serpent and Camellia - using AVX2 instruction set. This work on AVX2 implementations started over year ago and have been available at https://github.com/jkivilin/crypto-avx2 The Serpent and Camellia implementations

[PATCH 3/3] fsfreeze: use sb_start_write_killable instead of sb_start_write

2013-04-13 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where possible. Signed-off-by: Marco Stornelli --- fs/open.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 8c74100..d621d76 100644 --- a/fs/open.c +++ b/fs/open.c @@ -182,7 +182,9

[PATCH 2/3] fsfreeze: added new file_start_write_killable

2013-04-13 Thread Marco Stornelli
Replace file_start_write with file_start_write_killable where possible. Signed-off-by: Marco Stornelli --- drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs/coda/file.c |4 +++- fs/read_write.c | 28 +--- fs/splice.c |

[PATCH 1/3] fsfreeze: wait in killable state in __sb_start_write

2013-04-13 Thread Marco Stornelli
Added a new enum to decide if we want to sleep in uninterruptible or killable state or we want simply to return immediately. Signed-off-by: Marco Stornelli --- fs/super.c | 24 ++-- include/linux/fs.h | 19 +-- 2 files changed, 31 insertions(+),

[PATCH 0/3 v3][RFC] fsfreeze: from uninterruptible to killable

2013-04-13 Thread Marco Stornelli
Hi, I rebased the work on top of -next and I applied a Jan's comment about __sb_start_write. I did some basic tests and they are ok. Open points: - without change mnt_want_write several paths are still blocking paths; - page_mkwrite still call blocking variant of __sb_start_write. Any comments

Re: [PATCH 1/3] ARM: tegra: pcie: Add tegra3 support

2013-04-13 Thread Thierry Reding
On Fri, Apr 12, 2013 at 09:34:13AM -0600, Stephen Warren wrote: > On 04/12/2013 08:58 AM, Jay Agarwal wrote: > >>> err = regulator_disable(pcie->pex_clk_supply); > >>> if (err < 0) > >>> - dev_err(pcie->dev, "failed to disable pex-clk regulator: > >> %d\n", > >>> +

Re: [PATCH v1 6/9] uretprobes: Return probe exit, invoke handlers

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov [2013-04-09 22:13:02]: > On 04/09, Oleg Nesterov wrote: > > > > > Should we a check here before using top most ri. > > > What if the application had done a longjmp and the trampoline he hit > > > corresponds to something thats below in the stack? > > > > > > Not sure if this what

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-13 Thread Sedat Dilek
On Sat, Apr 13, 2013 at 12:51 AM, Rafael J. Wysocki wrote: > On Friday, April 12, 2013 11:08:37 PM Sedat Dilek wrote: >> On Fri, Apr 12, 2013 at 6:27 PM, Sedat Dilek wrote: >> > On Fri, Apr 12, 2013 at 5:45 PM, Sedat Dilek wrote: >> >> On Fri, Apr 12, 2013 at 4:24 PM, Sedat Dilek >> >> wrote:

Re: [PATCH v2 4/7] uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov [2013-04-09 21:32:35]: > Change uprobe_trace_print() and uprobe_perf_print() to check > is_ret_probe() and fill ring_buffer_event accordingly. > > Also change uprobe_trace_func() and uprobe_perf_func() to not > _print() if is_ret_probe() is true. Note that we keep ->handler() >

Re: [PATCH 3/6] uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov [2013-04-09 15:33:33]: > On 04/07, Srikar Dronamraju wrote: > > > > * Oleg Nesterov [2013-04-01 18:08:51]: > > > > > diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c > > > index e91a354..db2718a 100644 > > > --- a/kernel/trace/trace_uprobe.c > > > +++

Re: [PATCH 1/1] uprobes/tracing: Don't pass addr=ip to perf_trace_buf_submit()

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov [2013-04-10 16:58:44]: > uprobe_perf_print() passes addr=ip to perf_trace_buf_submit() for > no reason. This sets perf_sample_data->addr for PERF_SAMPLE_ADDR, > we already have perf_sample_data->ip initialized if PERF_SAMPLE_IP. > > Signed-off-by: Oleg Nesterov Acked-by:

[patch] agp: info leak in agpioc_info_wrap()

2013-04-13 Thread Dan Carpenter
On 64 bit systems the agp_info struct has a hole between ->agp_mode and ->aper_base. We need to clear it to avoid leaking stack information to userspace. Signed-off-by: Dan Carpenter diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c index 2e04433..3fbce33 100644 ---

Re: [PATCH] alsa/usb: Add quirk for 192KHz recording on E-Mu devices

2013-04-13 Thread Takashi Iwai
At Fri, 12 Apr 2013 22:33:59 -0500, Calvin Owens wrote: > > When recording at 176.2KHz or 192Khz, the device adds a 32-bit length > header to the capture packets, which obviously needs to be ignored for > recording to work properly. > > Userspace expected: L0 L1 L2 R0 R1 R2 > ...but actually

Re: drivers/base/core.c: about device_find_child() function

2013-04-13 Thread Lars-Peter Clausen
On 04/12/2013 02:09 PM, Federico Vaga wrote: > [...] > > [**] (argumentation based, obviously, on my limited understanding) > > These drivers work like this: > > child = device_find_child(parent, data, match_function); > if (child) { > put_device(child);

[RFC PATCH]fs/block_dev.c: Using .ki_left to judge whether do used .ki_left to judge

2013-04-13 Thread majianpeng
Signed-off-by: Jianpeng Ma --- fs/block_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index aae187a..f0328f1 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1559,7 +1559,7 @@ static ssize_t blkdev_aio_read(struct kiocb *iocb, const

[git pull] m68knommu arch fixes for 3.9

2013-04-13 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-linus branch. It contains only a single compilation fix for ColdFire m68k targets that use local non-GPIOLIB support. Regards Greg The following changes since commit 31880c37c11e28cb81c70757e38392b42e695dc6: Linux 3.9-rc6

Re: [PATCH tip/core/rcu 6/7] rcu: Drive quiescent-state-forcing delay from HZ

2013-04-13 Thread Paul E. McKenney
On Fri, Apr 12, 2013 at 04:54:02PM -0700, Josh Triplett wrote: > On Fri, Apr 12, 2013 at 04:19:13PM -0700, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > Systems with HZ=100 can have slow bootup times due to the default > > three-jiffy delays between quiescent-state forcing

Re: [PATCHv9 4/8] zswap: add to mm/

2013-04-13 Thread Suleiman Souhlal
Hello, On Apr 10, 2013, at 11:18 , Seth Jennings wrote: > +/* invalidates all pages for the given swap type */ > +static void zswap_frontswap_invalidate_area(unsigned type) > +{ > + struct zswap_tree *tree = zswap_trees[type]; > + struct rb_node *node; > + struct zswap_entry *entry;

Re: [PATCHv9 4/8] zswap: add to mm/

2013-04-13 Thread Suleiman Souhlal
Hello, On Apr 10, 2013, at 11:18 , Seth Jennings wrote: +/* invalidates all pages for the given swap type */ +static void zswap_frontswap_invalidate_area(unsigned type) +{ + struct zswap_tree *tree = zswap_trees[type]; + struct rb_node *node; + struct zswap_entry *entry; + +

Re: [PATCH tip/core/rcu 6/7] rcu: Drive quiescent-state-forcing delay from HZ

2013-04-13 Thread Paul E. McKenney
On Fri, Apr 12, 2013 at 04:54:02PM -0700, Josh Triplett wrote: On Fri, Apr 12, 2013 at 04:19:13PM -0700, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com Systems with HZ=100 can have slow bootup times due to the default three-jiffy delays between quiescent-state

[git pull] m68knommu arch fixes for 3.9

2013-04-13 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-linus branch. It contains only a single compilation fix for ColdFire m68k targets that use local non-GPIOLIB support. Regards Greg The following changes since commit 31880c37c11e28cb81c70757e38392b42e695dc6: Linux 3.9-rc6

[RFC PATCH]fs/block_dev.c: Using .ki_left to judge whether do used .ki_left to judge

2013-04-13 Thread majianpeng
Signed-off-by: Jianpeng Ma majianp...@gmail.com --- fs/block_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index aae187a..f0328f1 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1559,7 +1559,7 @@ static ssize_t

Re: drivers/base/core.c: about device_find_child() function

2013-04-13 Thread Lars-Peter Clausen
On 04/12/2013 02:09 PM, Federico Vaga wrote: [...] [**] (argumentation based, obviously, on my limited understanding) These drivers work like this: child = device_find_child(parent, data, match_function); if (child) { put_device(child);

Re: [PATCH] alsa/usb: Add quirk for 192KHz recording on E-Mu devices

2013-04-13 Thread Takashi Iwai
At Fri, 12 Apr 2013 22:33:59 -0500, Calvin Owens wrote: When recording at 176.2KHz or 192Khz, the device adds a 32-bit length header to the capture packets, which obviously needs to be ignored for recording to work properly. Userspace expected: L0 L1 L2 R0 R1 R2 ...but actually got: R2

[patch] agp: info leak in agpioc_info_wrap()

2013-04-13 Thread Dan Carpenter
On 64 bit systems the agp_info struct has a hole between -agp_mode and -aper_base. We need to clear it to avoid leaking stack information to userspace. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c index

Re: [PATCH 1/1] uprobes/tracing: Don't pass addr=ip to perf_trace_buf_submit()

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-10 16:58:44]: uprobe_perf_print() passes addr=ip to perf_trace_buf_submit() for no reason. This sets perf_sample_data-addr for PERF_SAMPLE_ADDR, we already have perf_sample_data-ip initialized if PERF_SAMPLE_IP. Signed-off-by: Oleg Nesterov

Re: [PATCH 3/6] uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-09 15:33:33]: On 04/07, Srikar Dronamraju wrote: * Oleg Nesterov o...@redhat.com [2013-04-01 18:08:51]: diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index e91a354..db2718a 100644 --- a/kernel/trace/trace_uprobe.c

Re: [PATCH v2 4/7] uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-09 21:32:35]: Change uprobe_trace_print() and uprobe_perf_print() to check is_ret_probe() and fill ring_buffer_event accordingly. Also change uprobe_trace_func() and uprobe_perf_func() to not _print() if is_ret_probe() is true. Note that we keep

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-13 Thread Sedat Dilek
On Sat, Apr 13, 2013 at 12:51 AM, Rafael J. Wysocki r...@sisk.pl wrote: On Friday, April 12, 2013 11:08:37 PM Sedat Dilek wrote: On Fri, Apr 12, 2013 at 6:27 PM, Sedat Dilek sedat.di...@gmail.com wrote: On Fri, Apr 12, 2013 at 5:45 PM, Sedat Dilek sedat.di...@gmail.com wrote: On Fri, Apr 12,

Re: [PATCH v1 6/9] uretprobes: Return probe exit, invoke handlers

2013-04-13 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-09 22:13:02]: On 04/09, Oleg Nesterov wrote: Should we a check here before using top most ri. What if the application had done a longjmp and the trampoline he hit corresponds to something thats below in the stack? Not sure if this what

Re: [PATCH 1/3] ARM: tegra: pcie: Add tegra3 support

2013-04-13 Thread Thierry Reding
On Fri, Apr 12, 2013 at 09:34:13AM -0600, Stephen Warren wrote: On 04/12/2013 08:58 AM, Jay Agarwal wrote: err = regulator_disable(pcie-pex_clk_supply); if (err 0) - dev_err(pcie-dev, failed to disable pex-clk regulator: %d\n, + dev_warn(pcie-dev, failed to disable

[PATCH 0/3 v3][RFC] fsfreeze: from uninterruptible to killable

2013-04-13 Thread Marco Stornelli
Hi, I rebased the work on top of -next and I applied a Jan's comment about __sb_start_write. I did some basic tests and they are ok. Open points: - without change mnt_want_write several paths are still blocking paths; - page_mkwrite still call blocking variant of __sb_start_write. Any comments

[PATCH 1/3] fsfreeze: wait in killable state in __sb_start_write

2013-04-13 Thread Marco Stornelli
Added a new enum to decide if we want to sleep in uninterruptible or killable state or we want simply to return immediately. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- fs/super.c | 24 ++-- include/linux/fs.h | 19 +-- 2 files

[PATCH 2/3] fsfreeze: added new file_start_write_killable

2013-04-13 Thread Marco Stornelli
Replace file_start_write with file_start_write_killable where possible. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs/coda/file.c |4 +++- fs/read_write.c | 28 +---

[PATCH 3/3] fsfreeze: use sb_start_write_killable instead of sb_start_write

2013-04-13 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where possible. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- fs/open.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 8c74100..d621d76 100644 --- a/fs/open.c +++

[RFC PATCH 0/6] Add AVX2 accelerated implementations for Blowfish, Twofish, Serpent and Camellia

2013-04-13 Thread Jussi Kivilinna
The following series implements four block ciphers - Blowfish, Twofish, Serpent and Camellia - using AVX2 instruction set. This work on AVX2 implementations started over year ago and have been available at https://github.com/jkivilin/crypto-avx2 The Serpent and Camellia implementations

[RFC PATCH 1/6] crypto: testmgr - extend camellia test-vectors for camellia-aesni/avx2

2013-04-13 Thread Jussi Kivilinna
Signed-off-by: Jussi Kivilinna jussi.kivili...@iki.fi --- crypto/testmgr.h | 1100 -- 1 file changed, 1062 insertions(+), 38 deletions(-) diff --git a/crypto/testmgr.h b/crypto/testmgr.h index d503660..dc2c054 100644 --- a/crypto/testmgr.h +++

[RFC PATCH 3/6] crypto: blowfish - add AVX2/x86_64 implementation of blowfish cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Blowfish cipher, requiring 32 parallel blocks for input (256 bytes). Table look-ups are performed using vpgatherdd instruction directly from vector registers and thus should be faster than earlier implementations. Signed-off-by: Jussi Kivilinna

[RFC PATCH 4/6] crypto: twofish - add AVX2/x86_64 assembler implementation of twofish cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Twofish cipher, requiring 16 parallel blocks for input (256 bytes). Table look-ups are performed using vpgatherdd instruction directly from vector registers and thus should be faster than earlier implementations. Implementation also uses 256-bit wide YMM

[RFC PATCH 5/6] crypto: serpent - add AVX2/x86_64 assembler implementation of serpent cipher

2013-04-13 Thread Jussi Kivilinna
Patch adds AVX2/x86-64 implementation of Serpent cipher, requiring 16 parallel blocks for input (256 bytes). Implementation is based on the AVX implementation and extends to use the 256-bit wide YMM registers. Since serpent does not use table look-ups, this implementation should be close to two

[RFC PATCH 2/6] crypto: tcrypt - add async cipher speed tests for blowfish

2013-04-13 Thread Jussi Kivilinna
Signed-off-by: Jussi Kivilinna jussi.kivili...@iki.fi --- crypto/tcrypt.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 24ea7df..66d254c 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1768,6 +1768,21 @@ static int

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Wed, 2013-03-27 at 07:57 -0400, Chris Ball wrote: If the delay's significant, I agree with you and will revert this patch. The patch was reverted. The problem is back. Filed bug: https://bugzilla.kernel.org/show_bug.cgi?id=56561 A possible solution is to make card a separate device (now only

[PATCH] pm2301-charger: Fix suspend/resume

2013-04-13 Thread Lars-Peter Clausen
The pm2301-charger driver implements runtime pm and at the same time uses the legacy pm callbacks for suspend and resume. This does not work since the I2C core wont look at the legacy pm callbacks if a driver has the 'pm' field set. This patch fixes it by moving over to dev_pm_ops for

3.8.5: incorrect semaphore state issue

2013-04-13 Thread Udo van den Heuvel
Hello, This morning I did a luksOpen on an external harddisk and saw: # cryptsetup luksOpen /dev/sde1 crypto2 Enter passphrase for /dev/sde1: semid 557063: semop failed for cookie 0xd4dd6db: incorrect semaphore state Failed to set a proper state for notification semaphore identified by cookie

Re: fanotify: fix support of large files

2013-04-13 Thread Heinrich Schuchardt
Dear Justin, looking at the example at http://www.lanedo.com/~aleksander/fanotify/fanotify-example.c the large file support is enabled by passing O_LARGEFILE to fanotify_init: if ((fanotify_fd = fanotify_init (FAN_CLOEXEC, O_RDONLY | O_CLOEXEC |

Re: BUG: Fn keys not working on EliteBook 8460p after fabf85e3ca15d5b94058f391dac8df870cdd427a

2013-04-13 Thread Kyle Evans
Sure, sorry about that. I was hoping the GUID would be enough. I'll see what I can come up with. On 04/12/2013 09:35 PM, Matthew Garrett wrote: On Sat, 2013-04-13 at 03:31 +0200, Pali Rohár wrote: all Fn keys, wifi switch, web and mute buttons not working anymore on my notebook HP EliteBook

Re: [PATCH 1/4] ARM: mmp: add wakeup function for ICU

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:37 AM, Neil Zhang zhan...@marvell.com wrote: From: Chao Xie chao@marvell.com PXA988 will use GIC as its interrupt controller, and ICU is used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Chris Ball
Hi, On Sat, Apr 13 2013, Sergey Yanovich wrote: On Wed, 2013-03-27 at 07:57 -0400, Chris Ball wrote: If the delay's significant, I agree with you and will revert this patch. The patch was reverted. The problem is back. Filed bug: https://bugzilla.kernel.org/show_bug.cgi?id=56561 A possible

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Sat, 2013-04-13 at 13:56 +0200, Ulf Hansson wrote: Den 13 apr 2013 12:49 skrev Sergey Yanovich ynv...@gmail.com: A possible solution is to make card a separate device (now only the host is a device). In this case, the probing could be done asynchronously without breaking the

Re: Return value of __mm_populate

2013-04-13 Thread Marco
Adding in cc: lkml Il 13/04/2013 14:14, Marco Stornelli ha scritto: Hi, I was seeing the code of __mm_populate (in -next) and I've got a doubt about the return value. The function __mlock_posix_error_return should return a proper error for mlock, converting the return value from

Re: Latest randconfig build errors

2013-04-13 Thread Rob Clark
On Mon, Mar 4, 2013 at 1:46 PM, Tony Lindgren t...@atomide.com wrote: drivers/gpu/drm/tilcdc/tilcdc_slave.o:(.data+0x54): multiple definition of `__mod_of_device_table' drivers/gpu/drm/tilcdc/tilcdc_tfp410.o:(.data+0x54): first defined here drivers/gpu/drm/tilcdc/tilcdc_panel.o:(.data+0x54):

Re: [PATCH 2/4] ARM: mmp: move function declaration to head file

2013-04-13 Thread Haojian Zhuang
On Thu, Apr 11, 2013 at 11:37 AM, Neil Zhang zhan...@marvell.com wrote: Move some of the function declaration to head file. Signed-off-by: Neil Zhang zhan...@marvell.com Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/common.h |3 +++ arch/arm/mach-mmp/mmp-dt.c |

<    1   2   3   4   >