[PATCH 08/10] perf tools: Support using -f to override perf.data file ownership for timechart

2015-04-02 Thread Yunlong Song
Enable perf timechart to use perf.data when it is not owned by current user or root. Example: # perf timechart record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw--- 1 Yunlong.Song Yunlong.Song 5471744 Apr 2 15:15 perf.data # id uid=0(root) gid=0(root) groups=0

[PATCH 02/10] perf tools: Support using -f to override perf.data file ownership for inject

2015-04-02 Thread Yunlong Song
Enable perf inject to use perf.data when it is not owned by current user or root. Example: # perf record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw--- 1 Yunlong.Song Yunlong.Song 28260 Apr 2 10:37 perf.data # id uid=0(root) gid=0(root) groups=0(root),64(pkcs1

[PATCH 07/10] perf tools: Support using -f to override perf.data file ownership for script

2015-04-02 Thread Yunlong Song
Enable perf script to use perf.data when it is not owned by current user or root. Change the short option name of --fields to -F to avoid confusion with --force. Example: # perf record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw--- 1 Yunlong.Song Yunlong.Song 283

Re: [PATCH 1/2] hrtimer: update '->active_bases' before calling hrtimer_force_reprogram()

2015-04-02 Thread Peter Zijlstra
On Thu, Apr 02, 2015 at 04:21:21PM +0530, Viresh Kumar wrote: > 'active_bases' indicates which clock-base have active timers. While it > is updated (almost) correctly, it is hardly used. Next commit will start > using it to make code more efficient, but before that we need to fix a > problem. > >

[PATCH 06/10] perf tools: Support using -f to override perf.data file ownership for mem

2015-04-02 Thread Yunlong Song
Enable perf mem to use perf.data when it is not owned by current user or root. Example: # perf mem -t load record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw--- 1 Yunlong.Song Yunlong.Song 16392 Apr 2 14:34 perf.data # id uid=0(root) gid=0(root) groups=0(root)

[PATCH 10/10] perf tools: Support using -f to override perf.data file ownership for data convert

2015-04-02 Thread Yunlong Song
Enable perf data convert to use perf.data when it is not owned by current user or root. Example: # perf record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw--- 1 Yunlong.Song Yunlong.Song 28260 Apr 2 17:35 perf.data # id uid=0(root) gid=0(root) groups=0(root),64

[PATCH 00/10] perf tools: Support using -f to override file ownership for perf commands

2015-04-02 Thread Yunlong Song
Hi, Enable perf commands to use perf file when it is not owned by current user or root. Yunlong Song (10): perf tools: Support using -f to override perf.data file ownership for evlist perf tools: Support using -f to override perf.data file ownership for inject perf tools:

[PATCH 04/10] perf tools: Support using -f to override perf.data.guest file ownership for kvm

2015-04-02 Thread Yunlong Song
Enable perf kvm to use perf.data.guest when it is not owned by current user or root. Example: # perf kvm stat record ls # chown Yunlong.Song:Yunlong.Song perf.data.guest # ls -al perf.data.guest -rw--- 1 Yunlong.Song Yunlong.Song 4128937 Apr 2 11:05 perf.data.guest # id uid=0(root) gid

Re: [RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst

2015-04-02 Thread Steven Rostedt
On Thu, 2 Apr 2015 14:40:33 +0100 Mark Brown wrote: > On Thu, Apr 02, 2015 at 09:33:41AM -0400, Steven Rostedt wrote: > > Steven Rostedt wrote: > > > > I couldn't find anything in MAINTAINERS about that file, but I didn't > > > look for your name though. > > > BTW, was that considered an Acked

Re: [PATCH] watchdog: nohz: don't run watchdog on nohz_full cores

2015-04-02 Thread Chris Metcalf
On 4/2/2015 9:35 AM, Don Zickus wrote: On Tue, Mar 31, 2015 at 02:30:44PM -0400, Chris Metcalf wrote: On 03/31/2015 03:25 AM, Ingo Molnar wrote: * cmetc...@ezchip.com wrote: From: Chris Metcalf Running watchdog can be a helpful debugging feature on regular cores, but it's incompatible with

Re: [PATCH 2/3] clockevents: Restart clockevent device before using it again

2015-04-02 Thread Viresh Kumar
On 2 April 2015 at 19:04, Peter Zijlstra wrote: > On Fri, Mar 27, 2015 at 10:44:28PM +0530, Viresh Kumar wrote: >> +++ b/kernel/time/hrtimer.c >> @@ -566,6 +566,7 @@ static int hrtimer_reprogram(struct hrtimer *timer, >> { >> + /* Switchback to ONESHOT state */ >> + if (unlikely(dev->st

[PATCH 5/6] RDS: rds_send_xmit is called under a spinlock, lets not do a cond_resched()

2015-04-02 Thread Sowmini Varadhan
Original patch by Chris Mason Signed-off-by: Sowmini Varadhan --- net/rds/send.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/net/rds/send.c b/net/rds/send.c index aec3f9d..23135a8 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -199,7 +199,6 @@ int

[PATCH 0/6] RDS: RDS core bug fixes

2015-04-02 Thread Sowmini Varadhan
This patch-series updates the RDS core and rds-tcp modules with some bug fixes that were originally authored by Andy Grover, Zach Brown, and Chris Mason. Sowmini Varadhan (6): RDS: Re-add pf/sol access via sysctl RDS: only use passive connections when addresses match rds: check for excess

[PATCH 3/6] rds: check for excessive looping in rds_send_xmit

2015-04-02 Thread Sowmini Varadhan
Original patch by Andy Grover Signed-off-by: Sowmini Varadhan --- net/rds/send.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/net/rds/send.c b/net/rds/send.c index 44672be..b1741a2 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -140,6 +140,7 @@ int r

[PATCH 4/6] RDS: make sure not to loop forever inside rds_send_xmit

2015-04-02 Thread Sowmini Varadhan
If a determined set of concurrent senders keep the send queue full, we can loop forever inside rds_send_xmit. This fix has two parts. First we are dropping out of the while(1) loop after we've processed a large batch of messages. Second we add a generation number that gets bumped each time the x

Re: [PATCH 3/3] clockevents: Switch state to ONESHOT_STOPPED for unused clockevent devices

2015-04-02 Thread Viresh Kumar
On 2 April 2015 at 19:07, Peter Zijlstra wrote: > Should we teach tick_program_event() about KTIME_MAX instead of adding > it to its callers? That's how I would have done, but Thomas (obviously for good reasons) rejected that :).. See reply to 2/3 for further details. -- To unsubscribe from this

[PATCH 2/6] RDS: only use passive connections when addresses match

2015-04-02 Thread Sowmini Varadhan
Passive connections were added for the case where one loopback IB connection between identical addresses needs another connection to store the second QP. Unfortunately, they were also created in the case where the addesses differ and we already have both QPs. This lead to a message reordering bug

Re: [PATCH 1/2] hrtimer: update '->active_bases' before calling hrtimer_force_reprogram()

2015-04-02 Thread Viresh Kumar
On 2 April 2015 at 19:17, Peter Zijlstra wrote: > On Thu, Apr 02, 2015 at 04:21:21PM +0530, Viresh Kumar wrote: >> 'active_bases' indicates which clock-base have active timers. While it >> is updated (almost) correctly, it is hardly used. Next commit will start >> using it to make code more effici

Re: [PATCH 0/6] selftests: improve cross compilation support

2015-04-02 Thread Shuah Khan
On 04/01/2015 05:20 PM, Tyler Baker wrote: > This patch set improves cross building functionality by resovling hard coded > assumptions about the compiler used. With this patch set, all but mqueue, > and kdbus cross build successfully as they must link against a native > libraries. The hope is th

[PATCH 6/6] RDS: don't trust the LL_SEND_FULL bit

2015-04-02 Thread Sowmini Varadhan
We are seeing connections stuck with the LL_SEND_FULL bit getting set and never cleared. This changes RDS to stop trusting the LL_SEND_FULL bit and kick krdsd after any time we see -ENOMEM from the ring allocation code. Original patch by Chris Mason Signed-off-by: Sowmini Varadhan Reviewed-by:

[PATCH 1/6] RDS: Re-add pf/sol access via sysctl

2015-04-02 Thread Sowmini Varadhan
Although RDS has an official PF_RDS value now, existing software expects to look for rds sysctls to determine it. We need to maintain these for now, for backwards compatibility. Original patch by Andy Grover Signed-off-by: Sowmini Varadhan Reviewed-by: Ajaykumar Hotchandani --- net/rds/sysctl.

[RFC][PATCH 06/17 v3] tracing: Add TRACE_DEFINE_ENUM() macro to map enums to their values

2015-04-02 Thread Steven Rostedt
Several tracepoints use the helper functions __print_symbolic() or __print_flags() and pass in enums that do the mapping between the binary data stored and the value to print. This works well for reading the ASCII trace files, but when the data is read via userspace tools such as perf and trace-cm

[GIT PULL] FS-Cache: Fixes for dead objects handling and operation cancellation

2015-04-02 Thread David Howells
/kernel/git/dhowells/linux-fs.git tags/fscache-fixes-20150402 for you to fetch changes up to 4a47132ff472a0c2c5441baeb50cf97f2580bc43: FS-Cache: Retain the netfs context in the retrieval op earlier (2015-04-02 14:28:53 +0100) ---

Re: kernel/timer: avoid spurious ksoftirqd wakeups

2015-04-02 Thread Rik van Riel
On 04/01/2015 09:44 PM, Marcelo Tosatti wrote: > +++ b/kernel/time/tick-sched.c > @@ -568,6 +568,7 @@ static ktime_t tick_nohz_stop_sched_tick(struct > tick_sched *ts, > unsigned long rcu_delta_jiffies; > struct clock_event_device *dev = > __this_cpu_read(tick_cpu_device.evtdev); >

Re: [RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst

2015-04-02 Thread Mark Brown
On Thu, Apr 02, 2015 at 09:49:34AM -0400, Steven Rostedt wrote: > Mark Brown wrote: > > I guess, you probably want to ping the Intel guys though since it's them > > that would be affected by the interface change. > Actually, there's no interface change. This is the work-around patch to > that. I

Re: [PATCH v3 2/4] extcon: usb-gpio: add support for VBUS detection

2015-04-02 Thread Roger Quadros
On 02/04/15 16:13, Robert Baldyga wrote: > This patch adds VBUS pin detection support to extcon-usb-gpio driver. > It allows to use this driver with boards which have both VBUS and ID > pins, or only one of them. > > Following table of states presents relationship between this signals > and detect

Re: [RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst

2015-04-02 Thread Steven Rostedt
On Thu, 2 Apr 2015 14:59:33 +0100 Mark Brown wrote: > On Thu, Apr 02, 2015 at 09:49:34AM -0400, Steven Rostedt wrote: > > Mark Brown wrote: > > > > I guess, you probably want to ping the Intel guys though since it's them > > > that would be affected by the interface change. > > > Actually, the

Re: [PATCH v2 06/10] KVM: arm64: guest debug, add SW break point support

2015-04-02 Thread Alex Bennée
David Hildenbrand writes: >> This adds support for SW breakpoints inserted by userspace. >> >> We do this by trapping all BKPT exceptions in the >> hypervisor (MDCR_EL2_TDE). The kvm_debug_exit_arch carries the address >> of the exception. If user-space doesn't know of the breakpoint then we >>

Re: [PATCH 6/6] RDS: don't trust the LL_SEND_FULL bit

2015-04-02 Thread Sergei Shtylyov
Hello. On 4/2/2015 4:50 PM, Sowmini Varadhan wrote: We are seeing connections stuck with the LL_SEND_FULL bit getting set and never cleared. This changes RDS to stop trusting the LL_SEND_FULL bit and kick krdsd after any time we see -ENOMEM from the ring allocation code. Original patch by C

Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options

2015-04-02 Thread Andy Lutomirski
On Thu, Apr 2, 2015 at 3:12 AM, James Bottomley wrote: > On Tue, 2015-03-31 at 16:17 +0200, Alexander Larsson wrote: >> On tis, 2015-03-31 at 17:08 +0300, James Bottomley wrote: >> > On Tue, 2015-03-31 at 06:59 -0700, Andy Lutomirski wrote: >> > > >> > > I don't think that this is correct. That u

Re: [PATCH] watchdog: nohz: don't run watchdog on nohz_full cores

2015-04-02 Thread Don Zickus
On Thu, Apr 02, 2015 at 09:49:45AM -0400, Chris Metcalf wrote: > >Can I ask how the NO_HZ_FULL technology works from userspace? Is there a > >system command that has to be sent? How does the kernel know to turn off > >ticks and trust userspace to do the right thing? > > The NO_HZ_FULL option, wh

[PATCHv2 3/6] rds: check for excessive looping in rds_send_xmit

2015-04-02 Thread Sowmini Varadhan
Original patch by Andy Grover Signed-off-by: Sowmini Varadhan --- net/rds/send.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/net/rds/send.c b/net/rds/send.c index 44672be..b1741a2 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -140,6 +140,7 @@ int r

Re: [PATCH v2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM

2015-04-02 Thread Shuah Khan
On 04/01/2015 09:43 PM, John Stultz wrote: > The set-timer-lat test fails when testing CLOCK_BOOTTIME_ALARM > or CLOCK_REALTIME_ALARM when the user isn't running as root or > with CAP_WAKE_ALARM. > > So this patch improves the error checking so we report the > issue more clearly and continue rathe

Re: [PATCH v2 7/7] vhost: feature to set the vring endianness

2015-04-02 Thread Michael S. Tsirkin
On Thu, Apr 02, 2015 at 03:17:13PM +0200, Greg Kurz wrote: > This patch brings cross-endian support to vhost when used to implement > legacy virtio devices. Since it is a relatively rare situation, the feature > availability is controlled by a kernel config option (not set by default). > > If cros

Re: [RFC 0/2] perf scripting cleanups

2015-04-02 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 02, 2015 at 12:16:40PM +0300, Adrian Hunter escreveu: > On 01/04/15 19:36, Arnaldo Carvalho de Melo wrote: > > Hi David, Jiri, > > > > Please take a look if it is ok for you guys > > > > Adrian, there is another thing: > > > > db_export__sample(&tables->dbe, event, sample, evse

[PATCH] mtd: Add simple read disturb test

2015-04-02 Thread Richard Weinberger
This simple MTD tests allows the user to see when read disturb happens. By reading blocks over and over it reports flipped bits. Currently it reports only flipped bits of the worst page of a block. If within block X page P1 has 3 bit flips and P6 4, it will report 4. By default every 50th block is

Re: [PATCH] watchdog: nohz: don't run watchdog on nohz_full cores

2015-04-02 Thread Christoph Lameter
On Tue, 31 Mar 2015, Chris Metcalf wrote: > This may come back to a question of just why one believes that > nohz_full is a good thing in the first place. For folks that are doing > it just to improve performance, power, etc, generally, it may not > matter much whether the watchdog ticks occasion

Re: [PATCH] selftests/mount: output error messages when mount test fail

2015-04-02 Thread Shuah Khan
On 04/02/2015 12:52 AM, Zhang Zhen wrote: > Without this patch, if /proc/self/uid_map is not exist, > the mount test case will fail and no any prompting. > > After applied this patch, the case will prompt why it fail. > Just as follows: > root@kernel-host:/opt/kernel> make -C tools/testing/selftes

[PATCHv2 0/6] RDS: RDS core bug fixes

2015-04-02 Thread Sowmini Varadhan
This patch-series updates the RDS core and rds-tcp modules with some bug fixes that were originally authored by Andy Grover, Zach Brown, and Chris Mason. v2: code review comment from Sergei Shtylyov Sowmini Varadhan (6): RDS: Re-add pf/sol access via sysctl RDS: only use passive connections

Re: [PATCH v1 2/3] usb: ehci-platform: Use devm_of_phy_get_by_index

2015-04-02 Thread Alan Stern
On Wed, 1 Apr 2015, Arun Ramamurthy wrote: > Getting phys by index instead of phy names so that we do > not have to create a naming scheme when multiple phys > are present > > Signed-off-by: Arun Ramamurthy > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > @@ -204,36 +197,23 @@ static in

[PATCHv2 2/6] RDS: only use passive connections when addresses match

2015-04-02 Thread Sowmini Varadhan
Passive connections were added for the case where one loopback IB connection between identical addresses needs another connection to store the second QP. Unfortunately, they were also created in the case where the addesses differ and we already have both QPs. This lead to a message reordering bug

[PATCHv2 1/6] RDS: Re-add pf/sol access via sysctl

2015-04-02 Thread Sowmini Varadhan
Although RDS has an official PF_RDS value now, existing software expects to look for rds sysctls to determine it. We need to maintain these for now, for backwards compatibility. Original patch by Andy Grover Signed-off-by: Sowmini Varadhan Reviewed-by: Ajaykumar Hotchandani --- net/rds/sysctl.

[PATCHv2 5/6] RDS: rds_send_xmit is called under a spinlock, lets not do a cond_resched()

2015-04-02 Thread Sowmini Varadhan
Original patch by Chris Mason Signed-off-by: Sowmini Varadhan --- net/rds/send.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/net/rds/send.c b/net/rds/send.c index aec3f9d..23135a8 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -199,7 +199,6 @@ int

[PATCHv2 6/6] RDS: don't trust the LL_SEND_FULL bit

2015-04-02 Thread Sowmini Varadhan
We are seeing connections stuck with the LL_SEND_FULL bit getting set and never cleared. This changes RDS to stop trusting the LL_SEND_FULL bit and kick krdsd after any time we see -ENOMEM from the ring allocation code. Original patch by Chris Mason Signed-off-by: Sowmini Varadhan Reviewed-by:

Re: [PATCH v2] ramoops: make it possible to change mem_type param.

2015-04-02 Thread Mark Salyzyn
On 03/30/2015 06:33 PM, Wang Long wrote: dummy_data->mem_size = mem_size; dummy_data->mem_address = mem_address; - dummy_data->mem_type = 0; + dummy_data->mem_type = mem_type; dummy_data->record_size = record_size; dummy_data->console_size = ramoops_con

Re: [PATCH 1/2] hrtimer: update '->active_bases' before calling hrtimer_force_reprogram()

2015-04-02 Thread Peter Zijlstra
On Thu, Apr 02, 2015 at 07:23:31PM +0530, Viresh Kumar wrote: > On 2 April 2015 at 19:17, Peter Zijlstra wrote: > > On Thu, Apr 02, 2015 at 04:21:21PM +0530, Viresh Kumar wrote: > >> 'active_bases' indicates which clock-base have active timers. While it > >> is updated (almost) correctly, it is ha

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-02 Thread Christoph Lameter
On Tue, 31 Mar 2015, Andrew Morton wrote: > This patch doesn't really do anything. I guess nailing down the > interface helps a bit. Right. > to modules. And it isn't completely obvious, because the return > semantics are weird. Ok. > What's the reason for returning a partial result when ENO

Re: [PATCH v2 0/7] vhost: support for cross endian guests

2015-04-02 Thread Michael S. Tsirkin
On Thu, Apr 02, 2015 at 03:16:37PM +0200, Greg Kurz wrote: > Hi, > > This patchset allows vhost to be used with legacy virtio when guest and host > have a different endianness. It is a complete rework of my initial post. > > Patches 1 to 5 are preliminary work: we move the endianness check out of

Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-04-02 Thread Dr. H. Nikolaus Schaller
Hi, Am 30.03.2015 um 12:08 schrieb Johan Hovold : > On Mon, Mar 30, 2015 at 11:32:39AM +0200, Dr. H. Nikolaus Schaller wrote: >> Hi Johan, >> >> Am 30.03.2015 um 09:45 schrieb Johan Hovold : >> >>> On Sat, Mar 28, 2015 at 02:37:57PM +0100, Marek Belisko wrote: From: "H. Nikolaus Schaller"

Re: [PATCH 1/2] hrtimer: update '->active_bases' before calling hrtimer_force_reprogram()

2015-04-02 Thread Viresh Kumar
On 2 April 2015 at 19:46, Peter Zijlstra wrote: > So then I'm not seeing how its a bug. Sure __hrtimer_get_next_event() > will iterate all the bases again, and it will not skip the just empty > one. But I don't see how that is anything but an inefficiency. By virtue > of the base being empty it ca

Re: [PATCH urgent v2] x86, asm: Disable opportunistic SYSRET if regs->flags has TF set

2015-04-02 Thread Andy Lutomirski
On Thu, Apr 2, 2015 at 5:31 AM, Ingo Molnar wrote: > > * Denys Vlasenko wrote: > >> On 04/02/2015 01:14 PM, Brian Gerst wrote: >> So I merged this as it's an obvious bugfix, but in hindsight I'm >> really uneasy about the whole opportunistic SYSRET concept: it appears >> that the c

Re: [PATCH v2.1] ftracetest: Do not use usleep directly

2015-04-02 Thread Shuah Khan
On 04/02/2015 07:38 AM, Steven Rostedt wrote: > On Thu, 02 Apr 2015 14:58:04 +0900 > Masami Hiramatsu wrote: > >> (2015/04/02 13:34), Namhyung Kim wrote: >>> The usleep is only provided on distros from Redhat so running ftracetest >>> on other distro resulted in failures due to the missing usleep

[PATCHv2 4/6] RDS: make sure not to loop forever inside rds_send_xmit

2015-04-02 Thread Sowmini Varadhan
If a determined set of concurrent senders keep the send queue full, we can loop forever inside rds_send_xmit. This fix has two parts. First we are dropping out of the while(1) loop after we've processed a large batch of messages. Second we add a generation number that gets bumped each time the x

Re: [RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst

2015-04-02 Thread Mark Brown
On Thu, Apr 02, 2015 at 10:03:24AM -0400, Steven Rostedt wrote: > So that's an Acked-by then? :-) Sure. signature.asc Description: Digital signature

Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options

2015-04-02 Thread Alexander Larsson
On Thu, 2015-04-02 at 07:06 -0700, Andy Lutomirski wrote: > On Thu, Apr 2, 2015 at 3:12 AM, James Bottomley > wrote: > > On Tue, 2015-03-31 at 16:17 +0200, Alexander Larsson wrote: > >> On tis, 2015-03-31 at 17:08 +0300, James Bottomley wrote: > >> > On Tue, 2015-03-31 at 06:59 -0700, Andy Lutomir

Re: [PATCH 2/3] drm:msm: Initial Add Writeback Support

2015-04-02 Thread Rob Clark
So, from a quick look, it seems like there is a lot of potential to split the v4l part out into some drm helpers.. it looks pretty generic(ish), or at least it could be with some strategically placed vfuncs in drm_v4l2_helper_funcs. I do think we need to figure out the auth/security situation. We

[PATCH] Fixup quote parsing of kernel arguments

2015-04-02 Thread Arthur Gautier
When starting kernel with arguments like: init=/bin/sh -c "echo arguments" the trailing double quote is not removed which results in following command being executed: /bin/sh -c 'echo arguments"' This commit removes the trailing double quote. Signed-off-by: Arthur Gautier --- kernel/params.

Re: [PATCH] mtd: Add simple read disturb test

2015-04-02 Thread Fabio Estevam
On Thu, Apr 2, 2015 at 11:13 AM, Richard Weinberger wrote: > + err = -ENOMEM; > + iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); > + if (!iobuf) > + goto out; The error handling here does not look right. > + > + iobuf_orig = kmalloc(mtd->erasesize, GFP_KERNEL

[tip:timers/core] clockevents: Fix cpu_down() race for hrtimer based broadcasting

2015-04-02 Thread tip-bot for Preeti U Murthy
Commit-ID: 345527b1edce8df719e0884500c76832a18211c3 Gitweb: http://git.kernel.org/tip/345527b1edce8df719e0884500c76832a18211c3 Author: Preeti U Murthy AuthorDate: Mon, 30 Mar 2015 14:59:19 +0530 Committer: Ingo Molnar CommitDate: Thu, 2 Apr 2015 14:25:39 +0200 clockevents: Fix cpu_down

[PATCH] ARM: tegra: Correct which USB controller has the UTMI pad registers

2015-04-02 Thread Tomeu Vizoso
It should be the first controller, not the second. This broke USB after 6261b06 ("regulator: Defer lookup of supply to regulator_get"), because it changed the order in which the controllers were probed. The fix for this issue was suggested by Mikko Perttunen. Signed-off-by: Tomeu Vizoso Cc: Mik

[PATCH] rtc: rtc-s3c: Remove one superfluous rtc_valid_tm() check

2015-04-02 Thread Krzysztof Kozlowski
The s3c_rtc_gettime() returns already result of rtc_valid_tm() on obtained time so get rid of another call to rtc_valid_tm(). Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-s3c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rt

Re: [PATCH] kbuild: do not add $(bounds-file) and $(offsets-file) to targets

2015-04-02 Thread Michal Marek
On 2015-03-26 12:59, Masahiro Yamada wrote: > $(always) is added to targets by scripts/Makefile.build. > Moreover, filechk does not need .*.cmd files. > > Adding these two files to targets is redundant. > > Signed-off-by: Masahiro Yamada Applied to kbuild.git#kbuild, thanks. Michal -- To unsu

Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options

2015-04-02 Thread Andy Lutomirski
On Thu, Apr 2, 2015 at 7:29 AM, Alexander Larsson wrote: > On Thu, 2015-04-02 at 07:06 -0700, Andy Lutomirski wrote: >> On Thu, Apr 2, 2015 at 3:12 AM, James Bottomley >> wrote: >> > On Tue, 2015-03-31 at 16:17 +0200, Alexander Larsson wrote: >> >> On tis, 2015-03-31 at 17:08 +0300, James Bottoml

Re: [PATCH] mtd: Add simple read disturb test

2015-04-02 Thread Richard Weinberger
Am 02.04.2015 um 16:32 schrieb Fabio Estevam: > On Thu, Apr 2, 2015 at 11:13 AM, Richard Weinberger wrote: > >> + err = -ENOMEM; >> + iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); >> + if (!iobuf) >> + goto out; > > The error handling here does not look right. > >

Re: [PATCH 00/86] pci: export pci_ids.h and related cleanups

2015-04-02 Thread Alex Williamson
On Thu, 2015-04-02 at 14:09 +0200, Michael S. Tsirkin wrote: > On Thu, Apr 02, 2015 at 01:23:06AM -0700, Christoph Hellwig wrote: > > The class ids are a hardware defintion, not a kernel API. > > It's part of the API, it's used to decode values in this sysfs file: > /sys/bus/pci/devices//class > V

Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-04-02 Thread Johan Hovold
On Thu, Apr 02, 2015 at 04:25:50PM +0200, Dr. H. Nikolaus Schaller wrote: > But it is outdated. The parameters vendor= and product= are no longer > available since ca. 3.12 which means that documentation is lagging behind > quite some time. > >>> > >>> This is simply not true. The

[PATCH 5/9] x86/asm/entry/64: if execve fails, no need to use IRET return

2015-04-02 Thread Denys Vlasenko
This makes failed execve's faster. This also enables a future possible optimization: SAVE_EXTRA_REGS can be avoided in execve's. Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC:

[PATCH 1/9] x86/asm/entry/64: reuse stub return code

2015-04-02 Thread Denys Vlasenko
Various flavors of stub_{sigreturn,execve}, six functions in total, repeat movq %rax,RAX(%rsp) RESTORE_EXTRA_REGS jmp int_ret_from_sys_call sequence. RESTORE_EXTRA_REGS is six 5-byte insns. Reuse this code. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: I

[PATCH 1/2] mfd: sec: Fix RTC alarm interrupt number on S2MPS11

2015-04-02 Thread Krzysztof Kozlowski
The RTC on S2MPS11 is the same as S2MPS14. However interrupt numbers of RTC alarms 0 and 1 were inversed between these two devices. So when rtc-s5m driver requested S2MPS14_IRQ_RTCA0 interrupt, it matched to S2MPS11_IRQ_RTCA1, not RTCA0. Fix this by using consistent RTC alarm interrupt numbers and

[PATCH V2 2/3] staging: android: ion_test: unregister the misc device

2015-04-02 Thread Phong Tran
Add the remove() method for deregister from misc device when it's unloaded. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c inde

[PATCH 2/9] x86/asm/entry/64: optimize [v]fork/clone stubs

2015-04-02 Thread Denys Vlasenko
Replace "call func; ret" with "jmp func". Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Frederic Weisbecker CC: Alexei Starovoitov CC: Will Drewry CC: Ke

[PATCH 3/9] x86/asm/entry/64: do not SAVE_EXTRA_REGS in stub_sigreturn

2015-04-02 Thread Denys Vlasenko
stub_sigreturn ignores old values of pt_regs->REG for all general-purpose registers, it sets them to values saved on userspace signal stack. Which is hardly surprising - it would be a bug if it would use pt_regs->REG. sigreturn must restore all registers. Therefore, SAVE_EXTRA_REGS in it ought to

[PATCH 4/9] x86/asm/entry/64: delay popping return address in stubs

2015-04-02 Thread Denys Vlasenko
This allows to remove "addq $8, %rsp" from five of six execve and sigreturn stubs. More importantly, it enables next optimization: faster return on execve failure. Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Pe

[PATCH 7/9] x86/asm/entry/64: remove a redundant jump

2015-04-02 Thread Denys Vlasenko
This is not very useful: jmp label label: Removing the jump. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Frederic Weisbecker CC: Alexei Starovoitov CC:

[PATCH 8/9] x86/asm/entry/64: simplify jumps in ret_from_fork

2015-04-02 Thread Denys Vlasenko
Replace test jz 1f jmp label 1: with test jnz label Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Frederic Wei

[PATCH 9/9] x86/asm/entry/64: Remove GET_THREAD_INFO in ret_from_fork

2015-04-02 Thread Denys Vlasenko
It used to be used to check for _TIF_IA32, but the check has been removed. Remove GET_THREAD_INFO too. Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Freder

[PATCH 6/9] x86/asm/entry/64: reuse stub epilogue by ret_from_fork

2015-04-02 Thread Denys Vlasenko
ret_from_fork can reuse epilogue at return_from_stub. Run-tested. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Frederic Weisbecker CC: Alexei Starovoitov CC: Will Dr

Re: [GIT PULL] at91: multiplatform for 4.1 #1

2015-04-02 Thread Arnd Bergmann
On Thursday 19 March 2015 18:14:29 Nicolas Ferre wrote: > Arnd, Olof, Kevin, > > This is the real switch to multi-platform for AT91: after all the preparation > work that has been done, here we are! And there's also an additional cleanup > on > top of that... > I stacked this material on top of m

[PATCHv3] media: i2c/adp1653: devicetree support for adp1653

2015-04-02 Thread Pavel Machek
We are moving to device tree support on OMAP3, but that currently breaks ADP1653 driver. This adds device tree support, plus required documentation. Signed-off-by: Pavel Machek --- I'm not sure if it is device tree or media framework, either everyone waits for someone else, or noone really ca

[PATCH V2 3/3] staging: android: ion_test: unregister the platform device

2015-04-02 Thread Phong Tran
The driver has to unregister from platform device when it's unloaded Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c in

[PATCH V2 1/3] staging: android: ion_test: Add the MODULE_LICENSE macro

2015-04-02 Thread Phong Tran
Base on the file comment should define GPL v2 for ion test driver Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c index 654acb5..3bc461c 10064

[PATCH V2 0/3] Fix some issues of staging ion test driver

2015-04-02 Thread Phong Tran
Hi Greg, Arve, Riley, Dan, This patcheset fixes: (1) Define the GPL V2 for ion_test driver (2) Add the remove() platform driver callback to deregister the misc device (3) unregister platform device when driver is unloaded Thank for Dan's reivew. Changes from v1: Imporve the coding st

[PATCH 0/2] Arndale Octa: Fix S2MPS11 RTC alarm IRQ

2015-04-02 Thread Krzysztof Kozlowski
Hi, After long struggle this finally fixes the S2MPS11 RTC alarm IRQ on Arndale Octa board. It can easily be tested with: rtcwake -d rtc0 -m on -s 5 -v The patches are independent. Best regards, Krzysztof Krzysztof Kozlowski (2): mfd: sec: Fix RTC alarm interrupt number on S2MPS11 ARM: dts:

[PATCH 2/2] ARM: dts: Fix pinctrl settings for S2MPS11 RTC alarm IRQ on Arndale Octa

2015-04-02 Thread Krzysztof Kozlowski
On Arndale Octa the S2MPS11 RTC alarm interrupt was not handled at all because of wrong configuration of interrupt and gpx3-2. 1. Interrupt is signaled by falling edge. 2. This GPIO line is hard-wired on the board to PVDD_APIO_1V8 through a resistor so pull-up/down must be disabled. Signed-off-

Re: [PATCH] crypto: remove instance when test failed

2015-04-02 Thread Herbert Xu
On Sun, Mar 29, 2015 at 04:26:40PM +0200, Stephan Mueller wrote: > A cipher instance is added to the list of instances unconditionally > regardless of whether the associated test failed. However, a failed > test implies that during another lookup, the cipher instance will > be added to the list aga

userspace breakage in linux/nfsd/debug.h

2015-04-02 Thread Mark Salter
This patch: commit f895b252d4edf66b2895fb5a7b17a638665f3e1f Author: Jeff Layton Date: Mon Nov 17 16:58:04 2014 -0500 sunrpc: eliminate RPC_DEBUG It's always set to whatever CONFIG_SUNRPC_DEBUG is, so just use that. Signed-off-by: Jeff Layton Signed-off-by: Tron

[PATCH] nilfs2: fix gcc warning at nilfs_checkpoint_is_mounted()

2015-04-02 Thread Ryusuke Konishi
Fix the following build warning: fs/nilfs2/super.c: In function 'nilfs_checkpoint_is_mounted': fs/nilfs2/super.c:1023:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (cno < 0 || cno > nilfs->ns_cno) ^ This warning indicates that the comparisi

Re: [PATCHv7 0/2] INPUT: Route keyboard LEDs through the generic LEDs layer

2015-04-02 Thread Pavel Machek
On Wed 2015-04-01 23:11:40, Samuel Thibault wrote: > Pali Rohár, le Wed 01 Apr 2015 22:00:07 +0200, a écrit : > > On Tuesday 17 February 2015 20:15:27 Samuel Thibault wrote: > > > Here is an updated version to fix the initialization of the > > > vt_led_work queues before registering LEDs, and refre

Re: [PATCH] mtd: Add simple read disturb test

2015-04-02 Thread Fabio Estevam
On Thu, Apr 2, 2015 at 11:33 AM, Richard Weinberger wrote: > Why? Free()ing a NULL pointer is perfectly fine. > What did I miss? :) If the first 'iobuf = kmalloc(mtd->erasesize, GFP_KERNEL);' fails then you jump to the out label where you call 5 kfree() and then return the error. It would be mu

Re: [LKP] [cfg80211] eeca9fce1d7: BUG: kernel boot oversize

2015-04-02 Thread Tomeu Vizoso
On 24 March 2015 at 09:34, Peer, Ilan wrote: > Hi, > > This mean u probably do not have crda installed, or it is not properly > configured. These are debug prints so the simplest would be to disable > CONFIG_CFG80211_REG_DEBUG .. unless you are debugging wireless regulatory > flows. Are you su

[PATCHv2] ti-soc-thermal: implement omap3 support

2015-04-02 Thread Pavel Machek
This adds support for OMAP3 chips to ti-soc-thermal. As requested by TI people, it is marked unreliable and warning is printed. Signed-off-by: Pavel Machek --- Patch is against thermal linus tree, please apply so that it has chance for 4.1. v2: fixed min/max temp diff --git a/drivers/therma

Re: [PATCH] ti-soc-thermal: implement omap3 support

2015-04-02 Thread Pavel Machek
> > +/* Thresholds and limits for OMAP34XX MPU temperature sensor */ > > +static struct temp_sensor_data omap34xx_mpu_temp_sensor_data = { > > + .min_freq = 32768, > > + .max_freq = 32768, > > + .max_temp = -99000, > > + .min_temp = 99000, > > This looks mixed up. Also, pe

Re: [PATCH/RFC v13 04/13] DT: Add documentation for the mfd Maxim max77693

2015-04-02 Thread Pavel Machek
On Mon 2015-03-23 15:59:37, Lee Jones wrote: > On Mon, 23 Mar 2015, Pavel Machek wrote: > > > On Mon 2015-03-23 15:02:13, Lee Jones wrote: > > > On Mon, 23 Mar 2015, Pavel Machek wrote: > > > > On Mon 2015-03-23 12:07:43, Lee Jones wrote: > > > > > This patch requires a DT Ack. > > > > > > > > No

Re: [PATCH 3/3] dt: paz00: define nvec as child of i2c bus

2015-04-02 Thread Stephen Warren
On 04/02/2015 03:37 AM, Marc Dietrich wrote: Am Mittwoch, 1. April 2015, 11:28:32 schrieb Stephen Warren: On 03/31/2015 09:46 AM, Andrey Danin wrote: On 31.03.2015 17:09, Stephen Warren wrote: On 03/31/2015 12:40 AM, Andrey Danin wrote: Hi, Thanks for the review. On 03.02.2015 0:20, Stephe

Re: [PATCH_V4 2/3] dma: jz4780: add driver for the Ingenic JZ4780 DMA controller

2015-04-02 Thread Arnd Bergmann
On Wednesday 18 March 2015 16:16:36 Zubair Lutfullah Kakakhel wrote: > + > +static bool jz4780_dma_filter_fn(struct dma_chan *chan, void *param) > +{ > + struct jz4780_dma_chan *jzchan = to_jz4780_dma_chan(chan); > + struct jz4780_dma_dev *jzdma = jz4780_dma_chan_parent(jzchan); > + st

Re: [PATCH] ARM: tegra: Correct which USB controller has the UTMI pad registers

2015-04-02 Thread Mikko Perttunen
Have you checked that this patch applies correctly, considering that the chunks are still ambiguous? :) Mikko On 04/02/2015 05:31 PM, Tomeu Vizoso wrote: It should be the first controller, not the second. This broke USB after 6261b06 ("regulator: Defer lookup of supply to regulator_get"), bec

Re: [PATCH_V4 0/3] dma: dt: Add DMA driver for jz4780

2015-04-02 Thread Arnd Bergmann
On Wednesday 01 April 2015 08:45:06 Vinod Koul wrote: > On Wed, Mar 18, 2015 at 04:16:34PM +, Zubair Lutfullah Kakakhel wrote: > > Hi, > > > > Here we have three patches that add a DMA driver for the Ingenic JZ4780 SoC. > > > > JZ4780 support is still in-flight. > > > > These are based on 4.

Re: [PATCH] mtd: Add simple read disturb test

2015-04-02 Thread Richard Weinberger
Am 02.04.2015 um 16:45 schrieb Fabio Estevam: > On Thu, Apr 2, 2015 at 11:33 AM, Richard Weinberger wrote: > >> Why? Free()ing a NULL pointer is perfectly fine. >> What did I miss? :) > > If the first 'iobuf = kmalloc(mtd->erasesize, GFP_KERNEL);' fails then > you jump to the out label where you

Re: [PATCH perf/core v2] perf-probe: Fix to track down unnamed union/structure members

2015-04-02 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 02, 2015 at 04:33:12PM +0900, Masami Hiramatsu escreveu: > Fix perf probe to track down unnamed union/structure members. > perf probe did not track down the tree of unnamed union/structure > members, since it just failed to find given "name" in a parent > structure/union. To solve this

Re: kernel/timer: avoid spurious ksoftirqd wakeups

2015-04-02 Thread Frederic Weisbecker
On Wed, Apr 01, 2015 at 10:44:55PM -0300, Marcelo Tosatti wrote: > > It is only necessary to raise timer softirq > in case there are active timers or irq work > to do. > > Limit the ksoftirqd wakeup to those cases. > > Fixes a latency spike with isolated CPUs and > nohz full mode. > > Reporte

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