Re: [RFC][PATCH 02/10] tracing: Allow for modules to export their trace enums as well

2015-03-29 Thread Namhyung Kim
On Fri, Mar 27, 2015 at 05:37:06PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Update the infrastructure such that modules that declare TRACE_DEFINE_ENUM() > will have those enums shown in the enum_map files in the tracing directory. > > Cc: Rusty Russell > Signed-off-by

Re: [RFC PATCH] sched: Add cpu based entries to debugfs

2015-03-29 Thread David Ahern
On 3/29/15 8:32 PM, Mike Galbraith wrote: On Sun, 2015-03-29 at 22:13 -0400, David Ahern wrote: diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 62671f53202a..b4d8d0c8260e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -268,12 +268,173 @@ static const struct file_oper

[PATCH net-next 0/2] hv_netvsc: Eliminate memory allocation in the send path

2015-03-29 Thread K. Y. Srinivasan
The network protocol used to communicate with the host is the remote ndis (rndis) protocol. We need to decorate each outgoing packet with a rndis header and additional rndis state (rndis per-packet state). To manage this state, we currently allocate memory in the transmit path. Eliminate this allo

[PATCH net-next 2/2] hv_netvsc: Eliminate memory allocation in the packet send path

2015-03-29 Thread K. Y. Srinivasan
The network protocol used to communicate with the host is the remote ndis (rndis) protocol. We need to decorate each outgoing packet with a rndis header and additional rndis state (rndis per-packet state). To manage this state, we currently allocate memory in the transmit path. Eliminate this allo

[PATCH net-next 1/2] hv_netvsc: Cleanup the test for freeing skb when we use sendbuf mechanism

2015-03-29 Thread K. Y. Srinivasan
In preparation for embedding the rndis state and other packet state into the skb, cleanup the test for freeing the skb. Signed-off-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc.c |1 + drivers/net/hyperv/netvsc_drv.c |3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [RFC][PATCH 05/10] f2fs: Export the enums in the tracepoints to userspace

2015-03-29 Thread Namhyung Kim
On Fri, Mar 27, 2015 at 05:37:09PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > The tracepoints that use __print_symbolic() use enums as the value > to convert to strings. Unfortunately, the format files for these > tracepoints show the enum name and not their value. This c

Re: [RFC][PATCH 02/10] tracing: Allow for modules to export their trace enums as well

2015-03-29 Thread Rusty Russell
Steven Rostedt writes: > From: "Steven Rostedt (Red Hat)" > > Update the infrastructure such that modules that declare TRACE_DEFINE_ENUM() > will have those enums shown in the enum_map files in the tracing directory. > > Cc: Rusty Russell > Signed-off-by: Steven Rostedt Acked-by: Rusty Russel

linux-next: manual merge of the net-next tree with the vfs tree

2015-03-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/compat.c between commit 774157aa4897 ("net: switch importing msghdr from userland to {compat_,}import_iovec()") from the vfs tree and commit 0345f93138b2 ("net: socket: add support for async operations") from the net-next

Re: arm/ksm: Unable to handle kernel paging request in get_ksm_page() and ksm_scan_thread()

2015-03-29 Thread Xishi Qiu
On 2015/3/30 9:46, Xishi Qiu wrote: > On 2015/3/30 8:43, Hugh Dickins wrote: > >> On Sat, 28 Mar 2015, Xishi Qiu wrote: >>> On 2015/3/26 21:23, Xishi Qiu wrote: >>> Here are two panic logs from smart phone test, and the kernel version is v3.10. log1 is "Unable to handle kerne

Re: [RFC PATCH] sched: Add cpu based entries to debugfs

2015-03-29 Thread Mike Galbraith
Oh, you can add /proc/sys/kernel/sched_domain diddling to the hotplug todo... which will either create read /sys, poke modify buttons over yonder in /proc situation, or have to duplicate that. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [RFC] bpf: Suggestion on bpf syscall interface

2015-03-29 Thread He Kuang
On 2015/3/29 1:21, Alexei Starovoitov wrote: On 3/28/15 4:36 AM, He Kuang wrote: Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do con

Re: [PATCH 3/5] arm64: kdump: do not go into EL2 before starting a crash dump kernel

2015-03-29 Thread AKASHI Takahiro
On 03/27/2015 07:29 AM, Geoff Levand wrote: On Thu, 2015-03-26 at 17:28 +0900, AKASHI Takahiro wrote: @@ -64,7 +65,11 @@ void soft_restart(unsigned long addr) setup_mm_for_reboot(); cpu_soft_restart(virt_to_phys(cpu_reset), - is_hyp_mode_available(), addr); +#ifdef

Re: [PATCH] fs: btrfs: Add missing include file

2015-03-29 Thread Guenter Roeck
On Fri, Mar 13, 2015 at 01:58:46AM -0700, Guenter Roeck wrote: > Building alpha:allmodconfig fails with > > fs/btrfs/inode.c: In function 'check_direct_IO': > fs/btrfs/inode.c:8050:2: error: implicit declaration of function > 'iov_iter_alignment' > > due to a missing include file. > > Fixes: 37

linux-next: manual merge of the net-next tree with the vfs tree

2015-03-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/socket.c between commit 774157aa4897 ("net: switch importing msghdr from userland to {compat_,}import_iovec()") from the vfs tree and commit 0345f93138b2 ("net: socket: add support for async operations") from the net-next

Re: [RFC][PATCH 00/10] tracing: Use TRACE_DEFINE_ENUM() to show enum values

2015-03-29 Thread Masami Hiramatsu
(2015/03/28 6:37), Steven Rostedt wrote: > As there are many tracepoints that use __print_symbolic() to translate > numbers into ASCII strings, and several of these translate enums as > well, it causes a problem for user space tools that read the tracepoint > format files and have to translate the

Re: [PATCH v3 1/1] dts: cubox: Map gpio-keys to gpio3 8

2015-03-29 Thread Shawn Guo
On Tue, Mar 24, 2015 at 10:31:35AM -0600, George Joseph wrote: > The Cubox has a recessed button between the HDMI and RJ-45 connectors > that wasn't mapped in the device tree, so I've mapped it to gpio-keys > BTN_0. > > Signed-off-by: George Joseph > Tested-by: George Joseph Applied, thanks. --

linux-next: build failure after merge of the net-next tree

2015-03-29 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/net/usb/cdc_ncm.c: In function 'cdc_ncm_fill_tx_frame': drivers/net/usb/cdc_ncm.c:1187:2: error: too few arguments to function 'usbnet_set_skb_tx_stats' usbnet_set_skb_tx_stats(skb

Re: [PATCH v2] ARM: dts: vf610: fix missing irqs

2015-03-29 Thread Shawn Guo
On Fri, Mar 27, 2015 at 01:04:41PM +0100, Stefan Agner wrote: > While adding the MSCM interrupt router, all interrupts have been moved > to vfxxx.dtsi again. However, some properties got lost. Readd the > missing interrupt properties. > > Fixes: 97e6466ab9d0 ("ARM: dts: vf610: add Miscellaneous Sy

Re: arm/ksm: Unable to handle kernel paging request in get_ksm_page() and ksm_scan_thread()

2015-03-29 Thread Hugh Dickins
On Mon, 30 Mar 2015, Xishi Qiu wrote: > On 2015/3/30 9:46, Xishi Qiu wrote: > > On 2015/3/30 8:43, Hugh Dickins wrote: > >> On Sat, 28 Mar 2015, Xishi Qiu wrote: > >>> On 2015/3/26 21:23, Xishi Qiu wrote: > >>> > Here are two panic logs from smart phone test, and the kernel version is >

RE: [v3 24/26] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-03-29 Thread Wu, Feng
> -Original Message- > From: Marcelo Tosatti [mailto:mtosa...@redhat.com] > Sent: Saturday, March 28, 2015 3:30 AM > To: Wu, Feng > Cc: h...@zytor.com; t...@linutronix.de; mi...@redhat.com; x...@kernel.org; > g...@kernel.org; pbonz...@redhat.com; dw...@infradead.org; > j...@8bytes.org; al

Re: [PATCH 1/2] Input: Add binding document for a generic ADC keypad

2015-03-29 Thread Andrew Bresticker
On Sat, Mar 28, 2015 at 7:03 AM, Jonathan Cameron wrote: > On 28/03/15 00:43, Andrew Bresticker wrote: >> Add a binding document for a generic ADC keypad. Buttons on an ADC >> keypad are connected in a resistor ladder to an ADC. The binding >> describes the mapping of ADC channel and voltage ran

Re: [PATCH 1/2] Input: Add binding document for a generic ADC keypad

2015-03-29 Thread Andrew Bresticker
On Sat, Mar 28, 2015 at 9:00 PM, Dmitry Torokhov wrote: > On Fri, Mar 27, 2015 at 05:43:17PM -0700, Andrew Bresticker wrote: >> Add a binding document for a generic ADC keypad. Buttons on an ADC >> keypad are connected in a resistor ladder to an ADC. The binding >> describes the mapping of ADC c

Re: [PATCH 2/2] Input: Add driver for a generic ADC keypad

2015-03-29 Thread Andrew Bresticker
On Sat, Mar 28, 2015 at 7:02 AM, Jonathan Cameron wrote: > On 28/03/15 00:43, Andrew Bresticker wrote: >> Add a polled input driver for a keypad in which the buttons are connected >> in resistor ladders to an ADC. The IIO framework is used to claim and >> read the ADC channels. >> >> Signed-off-b

Re: [PATCH v6 0/6] Add common clock support for Broadcom iProc architecture

2015-03-29 Thread Ray Jui
Hi Mike, This is the latest patch series of the Broadcom iProc clock driver that I was talking about. I believe it has addressed your previous code review comments by switching to use assigned-clocks/assigned-clock-rates for configuring PLL clock at the time of clock registration. Please have a l

[PATCH 2/3] timer: Limit the scope of __tvec_bases to init_timers_cpu()

2015-03-29 Thread Viresh Kumar
per-cpu variable '__tvec_bases' is used for all CPUs except the boot CPU, which uses 'boot_tvec_bases'. Because of this special case, we shouldn't make direct references to __tvec_bases from timer core as there are chances of using the wrong instance for boot CPU. To force that, lets move __tvec_b

[PATCH 3/3] timer: Don't initialize tvec_base on hotplug

2015-03-29 Thread Viresh Kumar
There is no need to call init_timers_cpu() on every cpu hotplug event, there is not much we need to reset. - Timer-lists are already empty at the end of migrate_timers(). - timer_jiffies will be refreshed while adding a new timer, after the CPU is online again. - active_timers and all_timers can

[PATCH 1/3] timer: Allocate per-cpu tvec_base's statically

2015-03-29 Thread Viresh Kumar
From: Peter Zijlstra Memory for tvec_base is allocated separately for boot CPU (statically) and non-boot CPUs (dynamically). The reason is because __TIMER_INITIALIZER() needs to set ->base to a valid pointer (because we've made NULL special, hint: lock_timer_base()) and we cannot get a compile t

[PATCH 0/3] timers: Allocate per-cpu tvec_base's statically

2015-03-29 Thread Viresh Kumar
Hi Ingo/Thomas, Here are few cleanups around timer-core initialization. The first one is suggested by Peter Zijlstra [1] and the other two make few more changes in order to simplify it. Please see if they look fine. -- viresh [1] http://lkml.iu.edu/hypermail/linux/kernel/1503.3/04091.html Pete

[GIT PULL] extcon next for 4.1

2015-03-29 Thread Chanwoo Choi
Dear Greg, This is extcon-next full request for v4.1. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539: Linux 4.0-rc1 (2015-02-22 18:21:14

[PATCH v2] ftracetest: Convert exit -1 to exit $FAIL

2015-03-29 Thread Michael Ellerman
POSIX says that exit takes an unsigned integer between 0 and 255, so using -1 doesn't work on POSIX shells. There is already a well-defined failure code, $FAIL (1), so use that. Signed-off-by: Michael Ellerman --- v2: Use exit $FAIL not exit 255. tools/testing/selftests/ftrace/test.d/00basic/

[PATCH] ftracetest: Cope properly with stack tracer not being enabled

2015-03-29 Thread Michael Ellerman
If the stack tracer (CONFIG_STACK_TRACER) is disabled, the fgraph-filter-stack test blows chunks: [8] ftrace - function graph filters with stack tracer [FAIL] + reset_tracer + echo nop ./ftracetest: 19: /home/michael/selftests/ftrace/test.d/ftrace/fgraph-filter-stack.tc: cannot cr

Re: [PATCH 4/4] mm: make every pte dirty on do_swap_page

2015-03-29 Thread Minchan Kim
2nd description trial. >From ccfc6c79634f6cec69d8fb23b0e863ebfa5b893c Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Mon, 30 Mar 2015 13:43:08 +0900 Subject: [PATCH v2] mm: make every pte dirty on do_swap_page Bascially, MADV_FREE relys on the dirty bit in page table entry to decide whether VM

Re: [PATCH 05/86] x86/gart: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Ingo Molnar
* Michael S. Tsirkin wrote: > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, > use the new header directly so we can drop > the wrapper in include/linux/pci_ids.h. > > Signed-off-by: Michael S. Tsirkin > --- > arch/x86/kernel/aperture_64.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH 2/2] powerpc/powernv: Reboot when requested by firmware

2015-03-29 Thread Michael Ellerman
On Mon, 2015-03-30 at 12:45 +1030, Joel Stanley wrote: > Use orderly_reboot so userspace will to shut itself down via the reboot > path. This is required for graceful reboot initiated by the BMC, such > as when a user uses ipmitool to issue a 'chassis power cycle' command. > > Signed-off-by: Joel

Re: [PATCH 3/4] mm: move lazy free pages to inactive list

2015-03-29 Thread Minchan Kim
Hello Andrew, On Fri, Mar 20, 2015 at 03:43:58PM -0700, Andrew Morton wrote: > On Wed, 11 Mar 2015 10:20:37 +0900 Minchan Kim wrote: > > > MADV_FREE is hint that it's okay to discard pages if there is > > memory pressure and we uses reclaimers(ie, kswapd and direct reclaim) > > to free them so t

Re: [PATCH 1/3] clockevents: Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state

2015-03-29 Thread Preeti U Murthy
On 03/27/2015 10:44 PM, Viresh Kumar wrote: > When no timers/hrtimers are pending, the expiry time is set to a special > value: > 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both > LOWRES/HIGHRES > modes. > > When 'expiry == KTIME_MAX', we either cancel the 'tick-sched' hrtimer

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

2015-03-29 Thread Preeti U Murthy
On 03/27/2015 10:44 PM, Viresh Kumar wrote: > Clockevent device can now be stopped by switching to ONESHOT_STOPPED state, to > avoid getting spurious interrupts on a tickless CPU. > > Switch state to ONESHOT_STOPPED at following places: > > 1.) NOHZ_MODE_LOWRES Mode > > Timers & hrtimers are dep

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

2015-03-29 Thread Preeti U Murthy
On 03/27/2015 10:44 PM, Viresh Kumar wrote: > Next commit would update clockevents core to switch clockevent devices to > ONESHOT_STOPPED state to avoid getting spurious interrupts on a tickless CPU. > > Before programming the clockevent device for next event, we must switch its > state to ONESHOT

Re: [PATCH] lglock: Use spinlock_t instead of arch_spinlock_t

2015-03-29 Thread Daniel Wagner
On 03/26/2015 05:03 PM, Peter Zijlstra wrote: > On Thu, Mar 26, 2015 at 04:02:08PM +0100, Daniel Wagner wrote: >> @@ -67,9 +67,9 @@ void lg_global_lock(struct lglock *lg) >> preempt_disable(); >> lock_acquire_exclusive(&lg->lock_dep_map, 0, 0, NULL, _RET_IP_); >> for_each_possible_cp

linux-next: build failure after merge of the tip tree

2015-03-29 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: arch/arm/kernel/vdso.c: In function 'tk_is_cntvct': arch/arm/kernel/vdso.c:273:15: error: 'const struct timekeeper' has no member named 'tkr' if (strcmp(tk->tkr.clock->name, "arch_sys_counte

Re: [PATCH] staging: speakup: Fix warning of line over 80 characters.

2015-03-29 Thread Sudip Mukherjee
On Sat, Mar 28, 2015 at 05:26:34PM -0700, Shirish Gajera wrote: > On Sun, Mar 29, 2015 at 12:54:45AM +0100, Richard Weinberger wrote: > > //richard > > Are you sure you want me to do this changes. Because it will conflict > the things written on http://kernelnewbies.org/ where is the conflict? yo

Re: [PATCH] drivers: staging: speakup: fix sparse "warning: expression using sizeof bool"

2015-03-29 Thread Sudip Mukherjee
On Sat, Mar 28, 2015 at 08:57:01AM +0100, Piotr Witosławski wrote: > On Sat, Mar 28, 2015 at 11:56:40AM +0530, Sudip Mukherjee wrote: > > On Fri, Mar 27, 2015 at 09:36:07PM +0100, Witos wrote: > > > Changed bool to u8 to get rid of sparse warning. > > but i am not getting this warning. which versio

linux-next: build warning after merge of the slave-dma tree

2015-03-29 Thread Stephen Rothwell
Hi Vinod, After merging the slave-dma tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0: include/linux/dmapool.h:18:4: warning: 'struct device' declared inside parameter list size_t size, size_t align, s

Re: linux-next: build warning after merge of the slave-dma tree

2015-03-29 Thread Appana Durga Kedareswara Rao
Hi Stephen Rothwell, I will fix this and will send a patch. Regards, Kedar. On 3/30/2015 11:50 AM, Stephen Rothwell wrote: Hi Vinod, After merging the slave-dma tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from drivers/dma/xilinx/xilinx_vdma

[LKP] [NFS] a08a8cd375d: +1.5% will-it-scale.per_process_ops

2015-03-29 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit a08a8cd375db9769588257e7782f6b6b68561b88 ("NFS: Add attribute update barriers to NFS writebacks") testbox/testcase/testparams: ivb42/will-it-scale/performance-pthread_mutex2 f506

Re: [RFC PATCH 00/11] an introduction of library operating system for Linux (LibOS)

2015-03-29 Thread Richard Weinberger
Am 29.03.2015 um 17:06 schrieb Hajime Tazaki: >> What about putting libos into tools/testing/ and make it much more generic >> and framework alike. > > it's trivial though, libos is not only for the testing (i.e., NUSE). > # of course tools/libos or something can be the place. Yep, tool/libos is

Re: [PATCH] spi: xilinx: Use standard num-cs binding

2015-03-29 Thread Michal Simek
Hi Mark, On 03/27/2015 06:53 PM, Mark Brown wrote: > On Fri, Mar 27, 2015 at 11:55:49AM +0100, Michal Simek wrote: > > Please fix your mail client to word wrap within paragraphs at less than > 80 columns - this makes your mails easier to read and reply to. You are the first one who had problem w

Re: [PATCH 01/86] pci: export pci_ids.h

2015-03-29 Thread Michael S. Tsirkin
On Sun, Mar 29, 2015 at 10:40:47PM +0200, Greg KH wrote: > On Sun, Mar 29, 2015 at 03:37:01PM +0200, Michael S. Tsirkin wrote: > > The macros in pci_ids.h are pretty useful for userspace > > using the pci sysfs interface. > > At the moment userspace is forced to duplicate these macros > > (e.g. QEM

Re: [PATCH 86/86] usb/dwc3: move ids to pci_ids.h

2015-03-29 Thread Michael S. Tsirkin
On Sun, Mar 29, 2015 at 10:42:00PM +0200, Greg Kroah-Hartman wrote: > On Sun, Mar 29, 2015 at 03:43:40PM +0200, Michael S. Tsirkin wrote: > > Comment says IDs should move to pci_ids.h, let's do it. > > No, please remove the comment, it's not needed in pci_ids.h at all. vendor ID does belong in pc

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

2015-03-29 Thread Michael S. Tsirkin
On Sun, Mar 29, 2015 at 10:59:45AM -0700, Joe Perches wrote: > On Sun, 2015-03-29 at 15:36 +0200, Michael S. Tsirkin wrote: > > The macros in pci_ids.h are pretty useful for userspace > > using the pci sysfs interface, e.g. to decode class > > device and vendor sysfs files. > > > > At the moment u

Re: [PATCH 01/86] pci: export pci_ids.h

2015-03-29 Thread Greg KH
On Mon, Mar 30, 2015 at 08:48:44AM +0200, Michael S. Tsirkin wrote: > On Sun, Mar 29, 2015 at 10:40:47PM +0200, Greg KH wrote: > > On Sun, Mar 29, 2015 at 03:37:01PM +0200, Michael S. Tsirkin wrote: > > > The macros in pci_ids.h are pretty useful for userspace > > > using the pci sysfs interface. >

Re: [PATCH 05/86] x86/gart: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Michael S. Tsirkin
On Mon, Mar 30, 2015 at 07:29:36AM +0200, Ingo Molnar wrote: > > * Michael S. Tsirkin wrote: > > > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, > > use the new header directly so we can drop > > the wrapper in include/linux/pci_ids.h. > > > > Signed-off-by: Michael S. Tsirkin > >

Re: [PATCH 86/86] usb/dwc3: move ids to pci_ids.h

2015-03-29 Thread Greg Kroah-Hartman
On Mon, Mar 30, 2015 at 08:50:34AM +0200, Michael S. Tsirkin wrote: > On Sun, Mar 29, 2015 at 10:42:00PM +0200, Greg Kroah-Hartman wrote: > > On Sun, Mar 29, 2015 at 03:43:40PM +0200, Michael S. Tsirkin wrote: > > > Comment says IDs should move to pci_ids.h, let's do it. > > > > No, please remove

<    1   2   3   4