RE: [PATCH V3 2/2 net-next] hyperv: Support batched notification

2015-03-19 Thread Jason Wang
On Fri, Mar 20, 2015 at 12:53 AM, KY Srinivasan wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Tuesday, March 17, 2015 8:09 PM To: KY Srinivasan Cc: da...@davemloft.net; net...@vger.kernel.org; linux- ker...@vger.kernel.org;

Re: mm/zsmalloc.c: count in handle's size when calculating pages_per_zspage

2015-03-19 Thread Sergey Senozhatsky
Hello, sorry, I've a question. On (03/19/15 11:39), Yinghao Xie wrote: > @@ -1426,11 +1430,6 @@ unsigned long zs_malloc(struct zs_pool *pool, size_t > size) > /* extra space in chunk to keep the handle */ > size += ZS_HANDLE_SIZE; > class =

Re: [Bugfix] x86/PCI: Release PCI IRQ resource only if PCI device is disabled when unbinding

2015-03-19 Thread Jiang Liu
On 2015/3/19 23:57, Rafael J. Wysocki wrote: > On Thursday, March 19, 2015 09:08:38 AM Bjorn Helgaas wrote: >> On Thu, Mar 19, 2015 at 6:29 AM, Rafael J. Wysocki >> wrote: >>> On Thursday, March 19, 2015 03:49:33 PM Jiang Liu wrote: On 2015/3/19 6:11, Bjorn Helgaas wrote: > On Tue, Mar

Re: [PATCH v3 0/4] powerpc: trivial unused functions cleanup

2015-03-19 Thread Michael Ellerman
On Fri, 2015-03-20 at 11:55 +0700, Arseny Solokha wrote: > > And by the way, while revisiting the series I've noticed that though the patch > 4/4 basically reverts [1], it leaves > > #define MPIC_GREG_GLOBAL_CONF_1 0x00030 > > in arch/powerpc/include/asm/mpic.h untouched. That

Re: [PATCH v2 3/3] clk: qcom: Introduce parent_map tables

2015-03-19 Thread Stephen Boyd
On 03/19, Georgi Djakov wrote: > diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c > index e20d947db3e5..a946b48f2d82 100644 > --- a/drivers/clk/qcom/common.c > +++ b/drivers/clk/qcom/common.c > @@ -43,6 +43,23 @@ struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, >

[PATCH v3 1/3] of: Add vendor prefix for Kinetic technologies

2015-03-19 Thread Ingi Kim
This patch adds vendor prefix for Kinetic technologies Signed-off-by: Ingi Kim --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH v3 0/3] Add ktd2692 Flash LED driver using LED Flash class

2015-03-19 Thread Ingi Kim
This patch adds ktd2692 Flash LED driver with LED Flash class Change in v3: - Clean up the code - Add aux gpio pin to control Flash LED Change in v2: - Introduction of LED Flash class as Jacek's comment - Supplement of binding documentation - Rename gpio

[PATCH v3 2/3] leds: ktd2692: add device tree bindings for ktd2692

2015-03-19 Thread Ingi Kim
This patch adds the device tree bindings for ktd2692 flash LEDs. Add optional properties 'flash-timeout-us' to control flash timeout and 'vin-supply' for flash-led regulator Signed-off-by: Ingi Kim --- .../devicetree/bindings/leds/leds-ktd2692.txt | 34 ++ 1 file

[PATCH v3 3/3] leds: Add ktd2692 flash LED driver

2015-03-19 Thread Ingi Kim
This patch adds a driver to support the ktd2692 flash LEDs. ktd2692 can control flash current by ExpressWire interface. Signed-off-by: Ingi Kim --- drivers/leds/Kconfig| 9 + drivers/leds/Makefile | 1 + drivers/leds/leds-ktd2692.c | 438

Re: linux-next: manual merge of the spi tree with the jc_docs tree

2015-03-19 Thread Stephen Rothwell
Hi all, On Fri, 20 Mar 2015 16:23:54 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the spi tree got a conflict in > Documentation/spi/spidev_test.c between commit 988b22c519c8 ("spi: > spidev_test: Added functionalities") from the jc_docs tree and commits > b78ce7ed5409 ("spi:

Re: [PATCH] clk: qcom: fix RCG M/N counter configuration

2015-03-19 Thread Stephen Boyd
On 03/04, Archit Taneja wrote: > Currently, a RCG's M/N counter (used for fraction division) is set to either > 'bypass' (counter disabled) or 'dual edge' (counter enabled) based on whether > the corresponding rcg struct has a mnd field specified and a non-zero N. > > In the case where M and N

Re: [PATCH v2 4/4] block: loop: support to submit I/O via kernel aio based

2015-03-19 Thread Ming Lei
On Fri, Mar 20, 2015 at 12:37 AM, Maxim Patlasov wrote: > On 03/18/2015 07:57 PM, Ming Lei wrote: >> >> On Thu, Mar 19, 2015 at 2:28 AM, Maxim Patlasov >> wrote: >>> >>> On 01/13/2015 07:44 AM, Ming Lei wrote: Part of the patch is based on Dave's previous post. This patch

linux-next: manual merge of the spi tree with the jc_docs tree

2015-03-19 Thread Stephen Rothwell
Hi Mark, Today's linux-next merge of the spi tree got a conflict in Documentation/spi/spidev_test.c between commit 988b22c519c8 ("spi: spidev_test: Added functionalities") from the jc_docs tree and commits b78ce7ed5409 ("spi: spidev_test: Cleaned hexadecimal dump"), 31a5c5a72b90 ("") and ("")

Re: [PATCH 04/13] security/selinux: check for LOOKUP_RCU in _follow_link.

2015-03-19 Thread Al Viro
On Fri, Mar 20, 2015 at 03:39:30PM +1100, NeilBrown wrote: > rcu_read_unlock(); > security_compute_av(ssid, tsid, tclass, avd); > rcu_read_lock(); > > (yes: unlock, and then lock). > > so avc_has_perm_noaudit needs to bail out of RCU-walk if node turns out to be > NULL. NFI,

Re: [PATCH v3 0/4] powerpc: trivial unused functions cleanup

2015-03-19 Thread Arseny Solokha
> On Fri, 2015-03-20 at 10:56 +0700, Arseny Solokha wrote: >> This series removes unused functions from powerpc tree that I've been able >> to discover. >> >> Two machines at hands, e300 and e500 based, boot and run without regressions >> on my workload with this series applied. The removed code

Re: mm/zsmalloc.c: count in handle's size when calculating pages_per_zspage

2015-03-19 Thread Minchan Kim
On Thu, Mar 19, 2015 at 11:39:20AM +, Yinghao Xie wrote: > From 159d74b5a8f3d0f07e18ddad74b7025cf17dcc69 Mon Sep 17 00:00:00 2001 > From: Yinghao Xie > Date: Thu, 19 Mar 2015 19:32:25 +0800 > Subject: [PATCH] mm/zsmalloc.c: count in handle's size when calculating > size_class's

Re: [PATCH 04/13] security/selinux: check for LOOKUP_RCU in _follow_link.

2015-03-19 Thread NeilBrown
On Mon, 16 Mar 2015 21:00:35 + Al Viro wrote: > On Mon, Mar 16, 2015 at 03:43:19PM +1100, NeilBrown wrote: > > Some of dentry_has_perm() is not rcu-safe, so if LOOKUP_RCU > > is set in selinux_inode_follow_link(), give up with > > -ECHILD. > > > > It is possible that dentry_has_perm could

Re: [PATCH 3/8] module, jump_label: Fix module locking

2015-03-19 Thread Rusty Russell
Peter Zijlstra writes: > As per the module core lockdep annotations: > > [ 18.034047] ---[ end trace 9294429076a9c673 ]--- > [ 18.047760] Hardware name: Intel Corporation S2600GZ/S2600GZ, BIOS > SE5C600.86B.02.02.0002.122320131210 12/23/2013 > [ 18.059228] 817d8676

Re: [RFC 13/16] mm/cma: populate ZONE_CMA and use this zone when GFP_HIGHUSERMOVABLE

2015-03-19 Thread Joonsoo Kim
On Wed, Mar 18, 2015 at 03:33:02PM +0530, Aneesh Kumar K.V wrote: > > > > > #ifdef CONFIG_CMA > > +static void __init adjust_present_page_count(struct page *page, long count) > > +{ > > + struct zone *zone = page_zone(page); > > + > > + zone->present_pages += count; > > +} > > + > > May be

Re: [PATCH 1/8] module: Sanitize RCU usage and locking

2015-03-19 Thread Rusty Russell
Peter Zijlstra writes: > Currently the RCU usage in module is an inconsistent mess of RCU and > RCU-sched, this is broken for CONFIG_PREEMPT where synchronize_rcu() > does not imply synchronize_sched(). > > Most usage sites use preempt_{dis,en}able() which is RCU-sched, but > (most of) the

Re: [PATCH v3 0/4] powerpc: trivial unused functions cleanup

2015-03-19 Thread Michael Ellerman
On Fri, 2015-03-20 at 10:56 +0700, Arseny Solokha wrote: > This series removes unused functions from powerpc tree that I've been able > to discover. > > Two machines at hands, e300 and e500 based, boot and run without regressions > on my workload with this series applied. The removed code seems

[PATCH 1/1] f2fs: correctly check empty xattr key

2015-03-19 Thread Taesoo Kim
When xattr name (key) is empty (""), correctly return -EINVAL error. xattr_advise_set/get() seem to make the same mistake. Signed-off-by: Taesoo Kim --- fs/f2fs/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index

Re: [PATCH] tracing: add trace event for memory-failure

2015-03-19 Thread Xie XiuQi
On 2015/3/19 18:39, Borislav Petkov wrote: > On Thu, Mar 19, 2015 at 11:04:30AM +0800, Xie XiuQi wrote: >> Memory-failure as the high level machine check handler, it's necessary >> to report memory page recovery action result to user space by ftrace. >> >> This patch add a event at ras group for

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-19 Thread Dave Chinner
On Thu, Mar 19, 2015 at 06:29:47PM -0700, Linus Torvalds wrote: > On Thu, Mar 19, 2015 at 5:23 PM, Dave Chinner wrote: > > > > Bit more variance there than the pte checking, but runtime > > difference is in the noise - 5m4s vs 4m54s - and profiles are > > identical to the pte checking version. >

linux-next: manual merge of the battery tree with the hid tree

2015-03-19 Thread Stephen Rothwell
Hi Sebastian, Today's linux-next merge of the battery tree got conflicts in drivers/hid/wacom.h and drivers/hid/wacom_sys.c between commit 953f2c5f7163 ("HID: wacom: Centralize updating of wacom_wac battery status") and fce9957d8f61 ("HID: wacom: Allow dynamic battery creation/destruction") from

Re: [PATCH] trace, RAS: remove unnecessary const

2015-03-19 Thread Xie XiuQi
On 2015/3/19 21:00, Steven Rostedt wrote: > On Thu, 19 Mar 2015 19:57:17 +0800 > Xie XiuQi wrote: > >> On 2015/3/19 18:33, Borislav Petkov wrote: >>> On Thu, Mar 19, 2015 at 04:50:04PM +0800, Xie XiuQi wrote: These parameters are passed by value. There's no need to make them const. >>> >>>

[PATCH 1/1] 9p: correctly check empty xattr key

2015-03-19 Thread Taesoo Kim
When xattr name (key) is empty (""), correctly return -EINVAL error. Not sure how previous xattr_set_acl() performs with any xattr key for get/set(). Signed-off-by: Taesoo Kim --- fs/9p/acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/9p/acl.c b/fs/9p/acl.c index

Re: [PATCH v2 2/3] w1: masters: omap_hdq: Add support for 1-wire mode

2015-03-19 Thread Vignesh R
Gentle Ping On Monday 02 March 2015 04:19 PM, Vignesh R wrote: > This patches makes following changes to omap_hdq driver > - Enable 1-wire mode. > - Implement w1_triplet callback to facilitate search rom >procedure and auto detection of 1-wire slaves. > - Proper enabling and disabling

[PATCH 4/4] powerpc/mpic: remove unused functions

2015-03-19 Thread Arseny Solokha
Drop unused mpic_set_clk_ratio() and mpic_set_serial_int(). Both functions are almost nine years old[1] but still have no chance to be called even from out-of-tree modules because they both are __init and of course aren't exported. [1]

[PATCH 2/4] kvm/ppc/mpic: drop unused IRQ_testbit

2015-03-19 Thread Arseny Solokha
Drop unused static procedure which doesn't have callers within its translation unit. It had been already removed independently in QEMU[1] from the OpenPIC implementation borrowed from the kernel. [1] https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01812.html Signed-off-by: Arseny

[PATCH 3/4] powrepc/qe: drop unused ucc_slow_poll_transmitter_now

2015-03-19 Thread Arseny Solokha
Drop ucc_slow_poll_transmitter_now() which has no users since its inception in 2007 in commit 986585385131 ("[POWERPC] Add QUICC Engine (QE) infrastructure"). Signed-off-by: Arseny Solokha --- arch/powerpc/include/asm/ucc_slow.h | 13 - arch/powerpc/sysdev/qe_lib/ucc_slow.c | 5

Re: Help with debugging intermittent crash on resume from hibernation

2015-03-19 Thread Mike Galbraith
(+CC) On Thu, 2015-03-19 at 20:21 -0700, Nikolaus Rath wrote: > On Mar 13 2015, Nikolaus Rath wrote: > > Hello, > > > > In about one out of 10 resumes from hibernation, my system resets after > > the hibernation image has been loaded. I am hibernating using > > > > # echo platform >

[PATCH 1/4] powerpc/boot: drop planetcore_set_serial_speed

2015-03-19 Thread Arseny Solokha
Drop planetcore_set_serial_speed() which had no users since its inception in commit fec6047047fd ("[POWERPC] bootwrapper: Add PlanetCore firmware support") in 2007. Signed-off-by: Arseny Solokha --- arch/powerpc/boot/planetcore.c | 33 -

Re: [PATCH] mm: Use GFP_KERNEL allocation for the page cache in page_cache_read

2015-03-19 Thread Dave Chinner
On Thu, Mar 19, 2015 at 02:55:58PM +0100, Michal Hocko wrote: > @@ -2701,13 +2701,24 @@ static int __do_fault(struct vm_area_struct *vma, > unsigned long address, > { > struct vm_fault vmf; > int ret; > + struct address_space *mapping = vma->vm_file->f_mapping; > + gfp_t

[PATCH v3 0/4] powerpc: trivial unused functions cleanup

2015-03-19 Thread Arseny Solokha
This series removes unused functions from powerpc tree that I've been able to discover. Two machines at hands, e300 and e500 based, boot and run without regressions on my workload with this series applied. The removed code seems also been rarely touched, so it seems the series is safe at least in

[PATCH] lib/idr.c: remove duplicate bound checking in sub_alloc

2015-03-19 Thread Liu Sha
The INT_MAX bound checking in sub_alloc checks two conditions to see whether the signed integer "id" is beyond INT_MAX: if ((id >= MAX_IDR_BIT) || (id < 0)) return -ENOSPC; These two conditions are actually the same for "int" variable so one of them can be

Re: [PATCH] mm: Use GFP_KERNEL allocation for the page cache in page_cache_read

2015-03-19 Thread Dave Chinner
On Thu, Mar 19, 2015 at 01:44:41PM +0100, Michal Hocko wrote: > On Thu 19-03-15 18:14:39, Dave Chinner wrote: > > On Wed, Mar 18, 2015 at 03:55:28PM +0100, Michal Hocko wrote: > > > On Wed 18-03-15 10:44:11, Rik van Riel wrote: > > > > On 03/18/2015 10:09 AM, Michal Hocko wrote: > > > > >

[PATCH 1/1] udf: block-based fs should use generic_write_end()

2015-03-19 Thread Taesoo Kim
simple_write_end() is for non-block fs, which doesn't invoke mark_inode_dirty(). Instead, generic_write_end() correctly handles such case when i_size has changed. Signed-off-by: Taesoo Kim --- fs/udf/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/udf/file.c

Re: Help with debugging intermittent crash on resume from hibernation

2015-03-19 Thread Nikolaus Rath
On Mar 13 2015, Nikolaus Rath wrote: > Hello, > > In about one out of 10 resumes from hibernation, my system resets after > the hibernation image has been loaded. I am hibernating using > > # echo platform > /sys/power/disk > # echo disk > /sys/power/state > > When testing hibernation using > > #

[PATCH 1/1] fs/affs/file.c: unlock/release page on error

2015-03-19 Thread Taesoo Kim
When affs_bread_ino() fails, correctly unlock the page and release the page cache with proper error value. All write_end() should unlock/release the page that was locked by write_beg(). Signed-off-by: Taesoo Kim --- fs/affs/file.c | 13 + 1 file changed, 9 insertions(+), 4

[PATCH 1/2] perf build: Use FEATURE-DUMP instead of PERF-FEATURES in the .gitignore file

2015-03-19 Thread Yunlong Song
Since commit 4ae61202b31c ("perf build: Rename PERF-FEATURES into FEATURE-DUMP") renames PERF-FEATURES into FEATURE-DUMP, the .gitignore file should also do this thing for consistency. Signed-off-by: Yunlong Song --- tools/perf/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 2/2] perf build: Add config/feature-checks/*.output to the .gitignore file

2015-03-19 Thread Yunlong Song
They are all auto-generated files during the perf building. Before this patch: $ git status Untracked files: (use "git add ..." to include in what will be committed) config/feature-checks/test-all.make.output config/feature-checks/test-backtrace.make.output

[PATCH 0/2] perf build: Make some improvements and fixes

2015-03-19 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf building. Yunlong Song (2): perf build: Use FEATURE-DUMP instead of PERF-FEATURES in the .gitignore file perf build: Add config/feature-checks/*.output to the .gitignore file tools/perf/.gitignore |

Re: [PATCH] mfd: devicetree: qcom_rpm: document IPQ8064 resources

2015-03-19 Thread Bjorn Andersson
On Thu 19 Mar 20:02 PDT 2015, Andy Gross wrote: > From: Josh Cartwright > > The IPQ8064 SoC has several RPM-controlled resources, an NSS fabric > clock and four regulator resources. Provide definitions for them. > > Signed-off-by: Josh Cartwright I believe you should have a sob here as

Re: [PATCH 0/3] 96boards: add thermal senor support to hikey board

2015-03-19 Thread kongxinwei
hi Mark Rutland: 在 2015/3/19 21:59, Mark Rutland 写道: > On Thu, Mar 19, 2015 at 07:57:26AM +, kongxinwei wrote: >> The Linaro connect introduce 96boards series in Hong Kong,The HiKey board >> is the first board to be certified 96Boards Consumer Edition compatible. >> This board is based on the

Re: [Bugfix] x86/PCI: Release PCI IRQ resource only if PCI device is disabled when unbinding

2015-03-19 Thread Jiang Liu
On 2015/3/19 22:08, Bjorn Helgaas wrote: > On Thu, Mar 19, 2015 at 6:29 AM, Rafael J. Wysocki wrote: >> On Thursday, March 19, 2015 03:49:33 PM Jiang Liu wrote: >>> On 2015/3/19 6:11, Bjorn Helgaas wrote: On Tue, Mar 17, 2015 at 03:37:12PM +0800, Jiang Liu wrote: > To support IOAPIC

[PATCH] ext3: Remove useless condition in if statement.

2015-03-19 Thread Wei Yuan
In this if statement, the previous condition is useless, the later one has covered it. Signed-off-by: Weiyuan --- fs/ext3/xattr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index c6874be..24215dc 100644 --- a/fs/ext3/xattr.c +++

[PATCH] mfd: devicetree: qcom_rpm: document IPQ8064 resources

2015-03-19 Thread Andy Gross
From: Josh Cartwright The IPQ8064 SoC has several RPM-controlled resources, an NSS fabric clock and four regulator resources. Provide definitions for them. Signed-off-by: Josh Cartwright --- Documentation/devicetree/bindings/mfd/qcom-rpm.txt |1 + include/dt-bindings/mfd/qcom-rpm.h

[PATCH -tip] perf tools: Don't allow empty argument for field-separator.

2015-03-19 Thread Wang Nan
Both 'perf diff' and 'perf mem' have 'field-separator' option, which causes segfault if passed with empty string. This patch uses previously introduced 'OPT_STRING_NOEMPTY' option macro to prevent fault. Signed-off-by: Wang Nan --- This patch is based on Arnaldo's pull request for Ingo: Commit

Re: Confirm Your Account Details

2015-03-19 Thread Helpdesk
Dear Account Owner, In our continuous effort to provide you with better internet services, we will be conducting a system upgrade from 10:00 p.m. of March 28 (Saturday) up to 10:00 a.m. of March 29 (Sunday) [12-hours only]. During this period, the following internet services will not be

Re: [PATCH] f2fs: enable inline data by default

2015-03-19 Thread Wang Shilong
Hi, > > Enable inline_data feature by default since it brings us better > performance and space utilization and now has already stable. > > Signed-off-by: Wanpeng Li > --- > Documentation/filesystems/f2fs.txt | 2 -- > fs/f2fs/f2fs.h | 11 +-- > fs/f2fs/inline.c

Re: [RFC PATCH v4 03/12] vfs - move mnt_namespace definition to linux/mount.h

2015-03-19 Thread Al Viro
On Thu, Mar 19, 2015 at 08:14:05PM -0500, Eric W. Biederman wrote: > > Yes please, I'd be more confident if you did this than me, there's > > already enough to worry about with the series. > > Given that this patchset is a security hole waiting to happen I don't > see why Al should bother unless

Re: [Ocfs2-devel] [PATCH 3/4 RESEND] ocfs2: need to handle error for ocfs2_journal_access_di() call

2015-03-19 Thread DaeSeok Youn
OK. I will send this patch again. This patch will be based on https://lkml.org/lkml/2015/2/27/655 thanks regards, Daeseok Youn 2015-03-19 20:00 GMT+09:00 Joseph Qi : > On 2015/2/28 7:51, Daeseok Youn wrote: >> There is no error handle when ocfs2_journal_access_di() is failed. >> And also it

Re: [Ocfs2-devel] [PATCH 2/4 RESEND] ocfs2: remove extra mlog_errno() call in __ocfs2_add_entry()

2015-03-19 Thread DaeSeok Youn
OK. If i want to clean up mlog() call twice, mlog() in " bail" can be removed, right? Thanks. Regards, Daeseok Youn 2015-03-19 19:45 GMT+09:00 Joseph Qi : > On 2015/2/28 7:49, Daeseok Youn wrote: >> Signed-off-by: Daeseok Youn >> --- >> RESEND: this patch is rebased by 1/4 >> >>

Re: [Ocfs2-devel] [PATCH 1/4 V2] ocfs2: use retval instead of status for checking error

2015-03-19 Thread DaeSeok Youn
2015-03-19 15:24 GMT+09:00 Joseph Qi : > Looks good to me. > > On 2015/2/28 7:48, Daeseok Youn wrote: >> The use of 'status' in __ocfs2_add_entry() can return wrong >> status when some functions are failed. >> >> If ocfs2_journal_access_db() in __ocfs2_add_entry() is failed, >> that status is

Re: [RFC PATCH v4 03/12] vfs - move mnt_namespace definition to linux/mount.h

2015-03-19 Thread Ian Kent
On Thu, 2015-03-19 at 20:14 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > 2> On Thu, 2015-03-19 at 19:47 +, Al Viro wrote: > >> On Tue, Mar 17, 2015 at 10:45:09AM +0800, Ian Kent wrote: > >> > From: Ian Kent > >> > > >> > The mnt_namespace definition will be needed by the usermode

Re: [RFC PATCH v4 00/12] Second attempt at contained helper execution

2015-03-19 Thread Ian Kent
On Thu, 2015-03-19 at 16:38 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > Here is another update to the attempt at contained helper execution. > > > > The main change is I've tried to incorporate Oleg's suggestions > > of directly constructing the namespaces rather than using the > >

[PATCH v8 tip 1/9] bpf: make internal bpf API independent of CONFIG_BPF_SYSCALL ifdefs

2015-03-19 Thread Alexei Starovoitov
From: Daniel Borkmann Socket filter code and other subsystems with upcoming eBPF support should not need to deal with the fact that we have CONFIG_BPF_SYSCALL defined or not. Having the bpf syscall as a config option is a nice thing and I'd expect it to stay that way for expert users (I presume

[PATCH v8 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-19 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk

[PATCH v8 tip 0/9] tracing: attach eBPF programs to kprobes

2015-03-19 Thread Alexei Starovoitov
Hi Steven, while I have your attention please take another look :) V7->V8: - split addition of kprobe flag into separate patch - switched to __this_cpu_inc in now documented trace_call_bpf() - converted array into standalone bpf_func_proto and switch statement (this apporach looks cleanest,

[PATCH v8 tip 2/9] tracing: add kprobe flag

2015-03-19 Thread Alexei Starovoitov
add TRACE_EVENT_FL_KPROBE flag to differentiate kprobe type of tracepoints, since bpf programs can only be attached to kprobe type of PERF_TYPE_TRACEPOINT perf events. Signed-off-by: Alexei Starovoitov --- include/linux/ftrace_event.h |3 +++ kernel/trace/trace_kprobe.c |2 +- 2 files

[PATCH v8 tip 6/9] samples: bpf: simple non-portable kprobe filter example

2015-03-19 Thread Alexei Starovoitov
tracex1_kern.c - C program compiled into BPF. It attaches to kprobe:netif_receive_skb When skb->dev->name == "lo", it prints sample debug message into trace_pipe via bpf_trace_printk() helper function. tracex1_user.c - corresponding user space component that: - loads bpf program via bpf() syscall

RE: [PATCH 1/2] dma: Add Freescale qDMA engine driver support

2015-03-19 Thread Yao Yuan
Thanks for your review. I will fix it in the next version. Best Regards, Yuan Yao > -Original Message- > From: Paul Bolle [mailto:pebo...@tiscali.nl] > Sent: Wednesday, March 18, 2015 2:57 AM > To: Yuan Yao-B46683 > Cc: vinod.k...@intel.com; shawn@linaro.org;

[PATCH v8 tip 7/9] samples: bpf: counting example for kfree_skb and write syscall

2015-03-19 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space

[PATCHv2] perf probe: Fix failure to add multiple probes without debuginfo

2015-03-19 Thread He Kuang
Perf tries to find probe function addresses from map when debuginfo could not be found. To the first added function, the value of ref_reloc_sym was set in maps__set_kallsyms_ref_reloc_sym() and can be obtained from host_machine->kmaps->maps. After that, new maps are added to

[PATCH v8 tip 9/9] samples: bpf: kmem_alloc/free tracker

2015-03-19 Thread Alexei Starovoitov
One bpf program attaches to kmem_cache_alloc_node() and remembers all allocated objects in the map. Another program attaches to kmem_cache_free() and deletes corresponding object from the map. User space walks the map every second and prints any objects which are older than 1 second. Usage: $

[PATCH v8 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-19 Thread Alexei Starovoitov
User interface: struct perf_event_attr attr = {.type = PERF_TYPE_TRACEPOINT, .config = event_id, ...}; event_fd = perf_event_open(,...); ioctl(event_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd is a file descriptor associated with BPF program previously loaded. event_id is an ID of created

[PATCH v8 tip 8/9] samples: bpf: IO latency analysis (iosnoop/heatmap)

2015-03-19 Thread Alexei Starovoitov
BPF C program attaches to blk_mq_start_request/blk_update_request kprobe events to calculate IO latency. For every completed block IO event it computes the time delta in nsec and records in a histogram map: map[log10(delta)*10]++ User space reads this histogram map every 2 seconds and prints it as

[PATCH v8 tip 4/9] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-19 Thread Alexei Starovoitov
bpf_ktime_get_ns() is used by programs to compute time delta between events or as a timestamp Signed-off-by: Alexei Starovoitov Reviewed-by: Steven Rostedt --- include/uapi/linux/bpf.h |1 + kernel/trace/bpf_trace.c | 14 ++ 2 files changed, 15 insertions(+) diff --git

Re: [PATCH v2 0/2] Qualcomm PM8941 power key driver

2015-03-19 Thread Bjorn Andersson
On Mon, Feb 16, 2015 at 10:55 AM, Ivan T. Ivanov wrote: > > On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: >> These patches add dt bindings and a device driver for the power key block in >> the Qualcomm PM8941 pmic. >> >> Changes since v1: >> * Use a reboot_notifier to set power

Re: Linux Kernel Scheduling Addition Notification : Hybrid Sleepers and Unfair scheduling

2015-03-19 Thread Theodore Ts'o
There is no legal requirement for anyone to give notification when they make changes to the Linux kernel. There are some experimental licenses that have such a requirement, but the Linux kernel is not licensed under such a license. If you are aware that a company has made modifications and is

[PATCH v7 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-19 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Hardware Mutex. Reviewed-by: Andy Gross Reviewed-by: Jeffrey Hugo Signed-off-by: Bjorn Andersson --- Changes since v6: - Corrected indentation error in example Changes since v5: - Extracted the dt binding documentation into a separate patch - Moved

[PATCH v7 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-19 Thread Bjorn Andersson
Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala Reviewed-by: Andy Gross Reviewed-by: Jeffrey Hugo Signed-off-by: Bjorn Andersson --- Changes since v6: - Added missing select of MFD_SYSCON Changes since v5: - Dropped all but

Re: [PATCH 1/7] modpost: add strict white-listing when referencing sections.

2015-03-19 Thread Rusty Russell
Quentin Casasnovas writes: > Prints a warning when a section references a section outside a strict > white-list. This will be useful to print a warning if __ex_table > references a non-executable section. Hi Quentin, Really pleasant to read these patches; nice work! > diff --git

Re: [PATCH 3.13.y-ckt 71/80] MIPS: Fix C0_Pagegrain[IEC] support.

2015-03-19 Thread David Daney
On 03/19/2015 03:35 PM, Kamal Mostafa wrote: 3.13.11-ckt17 -stable review patch. If anyone has any objections, please let me know. Read the patch commentary. It should only be applied to 3.17 and later. So: NACK. -- From: David Daney commit

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-19 Thread Linus Torvalds
On Thu, Mar 19, 2015 at 5:23 PM, Dave Chinner wrote: > > Bit more variance there than the pte checking, but runtime > difference is in the noise - 5m4s vs 4m54s - and profiles are > identical to the pte checking version. Ahh, so that "!(vma->vm_flags & VM_WRITE)" test works _almost_ as well as

Re: [RFC PATCH v4 03/12] vfs - move mnt_namespace definition to linux/mount.h

2015-03-19 Thread Eric W. Biederman
Ian Kent writes: 2> On Thu, 2015-03-19 at 19:47 +, Al Viro wrote: >> On Tue, Mar 17, 2015 at 10:45:09AM +0800, Ian Kent wrote: >> > From: Ian Kent >> > >> > The mnt_namespace definition will be needed by the usermode helper >> > contained execution implementation, move it to

Re: [Ocfs2-devel] [PATCH 1/4 V2] ocfs2: use retval instead of status for checking error

2015-03-19 Thread Joseph Qi
Hi Andrew, On 2015/3/20 6:23, Andrew Morton wrote: > On Sat, 28 Feb 2015 08:48:40 +0900 Daeseok Youn > wrote: > >> The use of 'status' in __ocfs2_add_entry() can return wrong >> status when some functions are failed. >> >> If ocfs2_journal_access_db() in __ocfs2_add_entry() is failed, >> that

Re: [PATCH] mtd:spi-nor: Add lock and unlock callback functions to struct spi_nor

2015-03-19 Thread Viet Nga Dao
Hi Brian, On Fri, Mar 20, 2015 at 1:49 AM, Brian Norris wrote: > Hi Viet, > > On Mon, Mar 16, 2015 at 01:15:14AM -0700, vn...@altera.com wrote: >> From: VIET NGA DAO >> >> This patch introduces a properly-replaceable spi_nor callback that does >> flash specific lock and unlock. The existing

Re: [RFC PATCH v4 03/12] vfs - move mnt_namespace definition to linux/mount.h

2015-03-19 Thread Ian Kent
On Thu, 2015-03-19 at 19:47 +, Al Viro wrote: > On Tue, Mar 17, 2015 at 10:45:09AM +0800, Ian Kent wrote: > > From: Ian Kent > > > > The mnt_namespace definition will be needed by the usermode helper > > contained execution implementation, move it to include/linux/mount.h. > > I really

Re: [RFC PATCH] perf tui: Annotate entries in callchains

2015-03-19 Thread Stephane Eranian
Hi Arnaldo, On Thu, Mar 19, 2015 at 3:58 PM, Arnaldo Carvalho de Melo wrote: > > Hi Stephane, > > This patch, together with what is in my perf/core branch, should > implement that feature we talked about recently, i.e. to allow > annotating entries in callchains, please take a look at

[PATCH 1/3] x86: Move msr accesses out of line

2015-03-19 Thread Andi Kleen
From: Andi Kleen To add trace points to msr accesses we need to include linux/tracepoint.h. Unfortunately this causes hellish include loops when with the msr inlines in asm/msr.h, which are included all over. I tried to fix several of them, but eventually gave up. This patch moves the MSR

Updated MSR tracing patchkit v2

2015-03-19 Thread Andi Kleen
This patchkit adds proper trace points for all MSR accesses. Very useful for PMU (perf) debugging, but also various other CPU near areas. Updated version: - Now traces RDPMC too - Add benchmarks on the overhead of moving MSR access out of line -- To unsubscribe from this list: send the line

[PATCH 2/3] x86: Add trace point for MSR accesses

2015-03-19 Thread Andi Kleen
From: Andi Kleen For debugging low level code interacting with the CPU it is often useful to trace the MSR read/writes. This gives a concise summary of PMU and other operations. perf has an ad-hoc way to do this using trace_printk, but it's somewhat limited (and also now spews ugly messages

[PATCH 3/3] x86, perf: Trace rdpmc too

2015-03-19 Thread Andi Kleen
From: Andi Kleen perf uses RDPMC to read the performance counters, so it's useful to trace that too. Add a trace point for RDPMC too, similar to the existing MSR ones. Since there is only a single call of rdpmc in the whole kernel (in perf) just add the trace statement to that call, instead of

[PATCH] usb/serial: trivial grammar fix in Kconfig help text for FTDI_SIO

2015-03-19 Thread Paul Gortmaker
Signed-off-by: Paul Gortmaker diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index b7cf1982d1d9..56ecb8b5115d 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig @@ -171,7 +171,7 @@ config USB_SERIAL_FTDI_SIO ---help--- Say Y here if

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-19 Thread Dave Chinner
On Thu, Mar 19, 2015 at 04:05:46PM -0700, Linus Torvalds wrote: > Can you try Mel's change to make it use > > if (!(vma->vm_flags & VM_WRITE)) > > instead of the pte details? Again, on otherwise plain 3.19, just so > that we have a baseline. I'd be *so* much happer with checking the vma

Re: [PATCH] coresight: moving to new "hwtracing" directory

2015-03-19 Thread Mathieu Poirier
On 19 March 2015 at 16:27, Greg KH wrote: > On Thu, Mar 19, 2015 at 04:02:02PM -0600, Mathieu Poirier wrote: >> Keeping drivers related to HW tracing on ARM, i.e coresight, >> under "drivers/coresight" doesn't make sense when other >> architectures start rolling out technologies of the same >>

[PATCH v3] phy: Add a driver for dm816x USB PHY

2015-03-19 Thread Tony Lindgren
Add a minimal driver for dm816x USB. This makes USB work on dm816x without any other changes needed as it can use the existing musb_dsps glue layer for the USB controller. Note that this phy is different from dm814x and am335x. Cc: Bin Liu Cc: Brian Hutchinson Cc: Felipe Balbi Cc: Matthijs

Re: [git pull] Input updates for 4.0-rc4

2015-03-19 Thread Dmitry Torokhov
On Thu, Mar 19, 2015 at 04:45:24PM -0700, Linus Torvalds wrote: > On Thu, Mar 19, 2015 at 12:20 PM, Dmitry Torokhov > wrote: > > Hi Linus, > > > > Please pull from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git > > for-linus > > or > >

Re: [PATCH 1/8] pmem: Initial version of persistent memory driver

2015-03-19 Thread Dan Williams
On Thu, Mar 19, 2015 at 2:24 AM, Boaz Harrosh wrote: > I apologize. It is not my intention to hijack your project. All but the last > 2 changes I have posted again and again, even those changes I have said that > I maintain them in a public tree, and made them available publicly ASAP. I > stopped

Re: Re: [PATCH v2 RESEND/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-03-19 Thread Saravana Kannan
On 09/23/2014 11:33 AM, Thomas Gleixner wrote: On Mon, 15 Sep 2014, Joonwoo Park wrote: +#ifdef CONFIG_SMP +static struct tvec_base *tvec_base_deferral = _tvec_bases; +#endif In principle I like the idea of a deferrable wheel, but this implementation is going to go nowhere. Hi Thomas, To

Re: [23/32] powerpc: copy_thread(): rename 'arg' argument to 'kthread_arg'

2015-03-19 Thread Michael Ellerman
On Thu, 2015-03-19 at 09:22 +0200, Alex Dowad wrote: > On 19/03/15 08:45, Michael Ellerman wrote: > > On Fri, 2015-13-03 at 18:14:46 UTC, Alex Dowad wrote: > >> The 'arg' argument to copy_thread() is only ever used when forking a new > >> kernel thread. Hence, rename it to 'kthread_arg' for

[PATCH] regulator: stw481x: Remove unused fields from struct stw481x

2015-03-19 Thread Axel Lin
The mutex lock is not used at all, remove it. The *vmmc_regulator is not necessary, use a local variable in stw481x_vmmc_regulator_probe() instead. Signed-off-by: Axel Lin Reviewed-by: Linus Walleij Acked-by: Lee Jones --- Change the prefix from mfd to regulator.

Re: [PATCH 10/13] VFS/namei: handle LOOKUP_RCU in page_follow_link_light.

2015-03-19 Thread Al Viro
On Fri, Mar 20, 2015 at 09:38:33AM +1100, NeilBrown wrote: > Ahhh - that's what nd->inode is for. I wondered. > > Am I correct in thinking that dentry->d_inode can only become NULL - it cannot > then become some other inode? It can - consider somebody doing mkdir on that name right under you.

Re: [git pull] Input updates for 4.0-rc4

2015-03-19 Thread Linus Torvalds
On Thu, Mar 19, 2015 at 12:20 PM, Dmitry Torokhov wrote: > 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 Btw, can you change your script to not

mmotm 2015-03-19-16-38 uploaded

2015-03-19 Thread akpm
The mm-of-the-moment snapshot 2015-03-19-16-38 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH] [RFC] mm/compaction: initialize compaction information

2015-03-19 Thread Gioh Kim
2015-03-19 오후 6:01에 Vlastimil Babka 이(가) 쓴 글: On 03/19/2015 09:52 AM, Gioh Kim wrote: 2015-03-19 오후 5:41에 Vlastimil Babka 이(가) 쓴 글: On 03/19/2015 06:30 AM, Gioh Kim wrote: The code below this comment already does the initialization if the cached values are outside zone boundaries (e.g.

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-19 Thread Dave Chinner
On Thu, Mar 19, 2015 at 04:05:46PM -0700, Linus Torvalds wrote: > On Thu, Mar 19, 2015 at 3:41 PM, Dave Chinner wrote: > > > > My recollection wasn't faulty - I pulled it from an earlier email. > > That said, the original measurement might have been faulty. I ran > > the numbers again on the 3.19

Re: [RFC PATCH v3 0/8] Provide y2038/y2106 safe rtc_class_ops.set_mmss64()

2015-03-19 Thread Alessandro Zummo
On Wed, 18 Mar 2015 10:37:26 -0700 John Stultz wrote: > On Wed, Jan 28, 2015 at 10:27 AM, Alessandro Zummo > wrote: > > On Thu, 29 Jan 2015 00:12:09 +0800 > > Xunlei Pang wrote: > > > >> ping Alessandro > > > > -EBUSY . saw that, looks fine anyhow, but would like to > > have a deeper look.

  1   2   3   4   5   6   7   8   9   10   >