[PATCH 03/15] Declaring icmp protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring icmp protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/ping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 6232d47..5b4d67d 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -748,6

[PATCH] target: Add blk_put_request()

2012-08-10 Thread Marina Makienko
blk requests are obtained (some memory is allocated for them) by means of functions blk_get_request and blk_make_request. After usage (usually with help of blk_execute_rq) these requests should be put (and freed) with help of blk_put_request. Found by Linux Driver Verification project

[PATCH 04/15] Declaring udplite protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring udplite protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/udplite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c index 2c46acd..0b398b5 100644 --- a/net/ipv4/udplite.c +++

[PATCH 05/15] Declaring raw protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring raw protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/raw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index ff0f071..b40224d 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -901,6 +901,9 @@

[PATCH 06/15] Declaring tcp protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring tcp protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/tcp_ipv4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 272241f..e361a26 100644 --- a/net/ipv4/tcp_ipv4.c +++

[PATCH 09/15] Declaring netlink protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring netlink protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/netlink/af_netlink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 5463969..c97b553 100644 ---

[PATCH 10/15] Declaring tcpv6 protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring tcpv6 protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv6/tcp_ipv6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5a439e9..9152d02 100644 --- a/net/ipv6/tcp_ipv6.c +++

[PATCH 11/15] Declaring udpv6 protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring udpv6 protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv6/udp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 99d0077..896149b 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -1537,6 +1537,9

[PATCH 12/15] Declaring udplitev6 protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring udplitev6 protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv6/udplite.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c index 1d08e21..0d6e713 100644 --- a/net/ipv6/udplite.c +++

[PATCH 07/15] Declaring packet protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring packet protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/packet/af_packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index ceaca7c..4758940 100644 --- a/net/packet/af_packet.c +++

[PATCH 13/15] Declaring rawv6 protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring rawv6 protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv6/raw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index ef0579d..15006ce 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -1226,6 +1226,9

[PATCH 14/15] Declaring ax25 protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring ax25 protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ax25/af_ax25.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 779095d..a62dd6c 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c

Re: [RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-10 Thread Christoph Lameter (Open Source)
On Fri, 10 Aug 2012, Hanjun Guo wrote: On 2012/8/9 22:06, Christoph Lameter (Open Source) wrote: On Thu, 9 Aug 2012, Hanjun Guo wrote: Now, We have node masks for both N_NORMAL_MEMORY and N_HIGH_MEMORY to distinguish between normal and highmem on platforms such as x86. But we still

[PATCH 15/15] Declaring ipx protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring ipx protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipx/af_ipx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c index dfd6faa..b20290d 100644 --- a/net/ipx/af_ipx.c +++ b/net/ipx/af_ipx.c @@ -1345,6

Re: [PATCH v6 3/3] KVM: perf kvm events analysis tool

2012-08-10 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 10, 2012 at 11:19:10AM +0800, Dong Hao escreveu: From: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com Add 'perf kvm stat' support to analyze kvm vmexit/mmio/ioport smartly. Some comments below about recent changes in my perf/core branch. +static void process_raw_event(struct

hwmon : raw reading - temperature conversion

2012-08-10 Thread Bitan Biswas
Hi, I have a question related to hwmon driver and need suggestions. I am working on a temperature sensor driver that is hwmon driver. - The temperature is calculated from raw sensor reading and certain initialization parameters. - Raw reading obtained from 2 different sensor instances under

[PATCH 08/15] Declaring unix protocols has its own proc entry

2012-08-10 Thread Masatake YAMATO
Declaring unix protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/unix/af_unix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index e4768c1..e2d9869 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c

[PATCH] mutex: place lock in contended state after fastpath_lock failure

2012-08-10 Thread Will Deacon
ARM recently moved to asm-generic/mutex-xchg.h for its mutex implementation after the previous implementation was found to be missing some crucial memory barriers. However, this has revealed some problems running hackbench on SMP platforms due to the way in which the MUTEX_SPIN_ON_OWNER code

[PATCH] USB: ftdi_sio: Add VID/PID for Kondo Serial USB

2012-08-10 Thread Ozan Çağlayan
This adds VID/PID for Kondo Kagaku Co. Ltd. Serial USB Adapter interface: http://www.kondo-robot.com/EN/wp/?cat=28 Tested by controlling an RCB3 board using libRCB3. Signed-off-by: Ozan Çağlayan ozan...@gmail.com --- drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 7

Re: [PATCH] dlm: convert add_sock routine return value type to void

2012-08-10 Thread David Teigland
On Fri, Aug 10, 2012 at 02:58:42PM +0800, Ying Xue wrote: Since add_sock() always returns a success code - 0, its return value type should be changed from integer to void. Thanks, I've pushed those to my next branch. Dave -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-10 Thread Matt Sealey
On Fri, Aug 10, 2012 at 9:04 AM, Shawn Guo shawn@linaro.org wrote: On Fri, Aug 10, 2012 at 08:36:02AM -0500, Matt Sealey wrote: Requiring it breaks the entire concept of the device tree to describe running hardware. It is not a configuration script. pinctrl should be optional - built in

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-10 Thread Shawn Guo
On Fri, Aug 10, 2012 at 09:26:36AM -0500, Matt Sealey wrote: If you really think it's necessary then fine, we'll do it. Yes, please do. -- Regards, Shawn -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-10 Thread Matt Sealey
By the way just as an example, a board with the following could be configured on i.MX53 without touching any IOMUX settings at all besides DDR (which would get done at boot rom time through the dcd); * Keypad (KPP) * 24-bit Parallel display on IPU DI0 * GPIO67 pins 22 through 31, GPIO4 10 through

Re: [PATCH 01/15] Proc entry showing inodes on sockfs and types

2012-08-10 Thread Alan Cox
+#ifdef CONFIG_PROC_FS + /* Set non-zero value if this protocol manages its +own /proc/net/PROTOCOL entry and the entry has inode column. */ +int has_own_proc_entry; +#endif Is it really worth ifdefs in every file for what is (or should be) a bool value in the protocol

[PATCH] Pinctrl header: trivial: declare struct device

2012-08-10 Thread Richard Genoud
As struct device is used as a function argument, it should at least be declared (device.h is not included). Signed-off-by: Richard Genoud richard.gen...@gmail.com --- include/linux/pinctrl/consumer.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH] trivial: pinctrl core: remove extraneous code lines

2012-08-10 Thread Richard Genoud
In function pinctrl_get_locked, pointer p is returned on error, and also return on no_error. So, we just return it with no error test. It's pretty the same in function pinctrl_lookup_state_locked: state is returned in every case, so we drop the error test and just return state. Signed-off-by:

[PATCH 1/4] dma-buf: remove fallback for !CONFIG_DMA_SHARED_BUFFER

2012-08-10 Thread Maarten Lankhorst
Documentation says that code requiring dma-buf should add it to select, so inline fallbacks are not going to be used. A link error will make it obvious what went wrong, instead of silently doing nothing at runtime. Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com ---

[PATCH 2/4] dma-fence: dma-buf synchronization (v8 )

2012-08-10 Thread Maarten Lankhorst
A dma-fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU is still

[PATCH 3/4] dma-seqno-fence: Hardware dma-buf implementation of fencing (v2)

2012-08-10 Thread Maarten Lankhorst
This type of fence can be used with hardware synchronization for simple hardware that can block execution until the condition (dma_buf[offset] - value) = 0 has been met. A software fallback still has to be provided in case the fence is used with a device that doesn't support this mechanism. It is

[PATCH 4/4] dma-buf-mgr: multiple dma-buf synchronization (v3)

2012-08-10 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com dma-buf-mgr handles the case of reserving single or multiple dma-bufs while trying to prevent deadlocks from buffers being reserved simultaneously. For this to happen extra functions have been introduced: + dma_buf_reserve() +

Re: [PATCHv4 2/3] fs: Make core dump functionality optional

2012-08-10 Thread Josh Triplett
On Fri, Aug 10, 2012 at 08:23:23AM -0500, Serge Hallyn wrote: Quoting Alex Kelly (alex.page.ke...@gmail.com): Adds an expert Kconfig option, CONFIG_COREDUMP, which allows disabling of core dump. This saves approximately 2.6k in the compiled kernel, and complements CONFIG_ELF_CORE,

Re: [PATCH v2 01/11] memcg: Make it possible to use the stock for more than one page.

2012-08-10 Thread Michal Hocko
On Thu 09-08-12 17:01:09, Glauber Costa wrote: From: Suleiman Souhlal ssouh...@freebsd.org We currently have a percpu stock cache scheme that charges one page at a time from memcg-res, the user counter. When the kernel memory controller comes into play, we'll need to charge more than that.

Re: KVM segfaults with 3.5 while installing ubuntu 12.04

2012-08-10 Thread Stefan Hajnoczi
On Wed, Aug 8, 2012 at 9:29 AM, Stefan Priebe s.pri...@profihost.ag wrote: ah OK - thanks. Will there be a fixed 1.1.2 as well? mdroth: Kevin has the fix in his block branch, which means qemu.git will get it soon. Here's the commit:

Re: Q: pinctrl: freeing out the allocated map in tegra_pinctrl_dt_node_to_map

2012-08-10 Thread Stephen Warren
On 08/09/2012 11:35 PM, devendra.aaru wrote: On Fri, Aug 10, 2012 at 11:02 AM, devendra.aaru devendra.a...@gmail.com wrote: Hi, In function tegra_pinctrl_dt_node_to_map the num_maps the num_maps counter must be incremented for each child node? This I commented on below. Actually we are

Re: [PATCH] trivial: pinctrl core: remove extraneous code lines

2012-08-10 Thread Stephen Warren
On 08/10/2012 08:53 AM, Richard Genoud wrote: In function pinctrl_get_locked, pointer p is returned on error, and also return on no_error. So, we just return it with no error test. It's pretty the same in function pinctrl_lookup_state_locked: state is returned in every case, so we drop the

Re: [PATCHv4 2/3] fs: Make core dump functionality optional

2012-08-10 Thread Serge Hallyn
Quoting Josh Triplett (j...@joshtriplett.org): On Fri, Aug 10, 2012 at 08:23:23AM -0500, Serge Hallyn wrote: Quoting Alex Kelly (alex.page.ke...@gmail.com): Adds an expert Kconfig option, CONFIG_COREDUMP, which allows disabling of core dump. This saves approximately 2.6k in the

Re: Re: [PATCH 0/8] Set bi_rw when alloc bio before call bio_add_page.

2012-08-10 Thread Muthu Kumar
[ Resending in plain text... sorry for the duplicate ] Hi, On Mon, Jul 30, 2012 at 6:14 PM, Dave Chinner da...@fromorbit.com wrote: On Tue, Jul 31, 2012 at 08:55:59AM +0800, majianpeng wrote: On 2012-07-31 05:42 Dave Chinner da...@fromorbit.com Wrote: On Mon, Jul 30, 2012 at 03:14:28PM

Re: [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu)

2012-08-10 Thread Ohad Ben-Cohen
Hi Sjur, On Thu, Aug 9, 2012 at 11:35 PM, Sjur Brændeland sjurb...@gmail.com wrote: Any thoughts on how to go about to fix this? The general direction I have in mind is to put the resource table in its final location while we do the first pass of fw parsing. This will solve all sort of open

Re: [PATCHv4 1/3] fs: Move core dump functionality into its own file

2012-08-10 Thread Serge E. Hallyn
Quoting Alex Kelly (alex.page.ke...@gmail.com): This prepares for making core dump functionality optional. The variable suid_dumpable and associated functions are left in fs/exec.c because they're used elsewhere, such as in ptrace. Signed-off-by: Alex Kelly alex.page.ke...@gmail.com

Re: [PATCHv4 2/3] fs: Make core dump functionality optional

2012-08-10 Thread Serge E. Hallyn
Quoting Alex Kelly (alex.page.ke...@gmail.com): Adds an expert Kconfig option, CONFIG_COREDUMP, which allows disabling of core dump. This saves approximately 2.6k in the compiled kernel, and complements CONFIG_ELF_CORE, which now depends on it. CONFIG_COREDUMP also disables

Re: [PATCHv4 3/3] fs: Update coredump-related headers

2012-08-10 Thread Serge E. Hallyn
Quoting Alex Kelly (alex.page.ke...@gmail.com): This patch creates a new header file, fs/coredump.h, which contains functions only used by the new coredump.c. It also moves do_coredump to the include/linux/coredump.h header file, for consistency. Signed-off-by: Alex Kelly

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Michal Hocko
On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] @@ -2317,18 +2318,18 @@ static int mem_cgroup_do_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, } else mem_over_limit = mem_cgroup_from_res_counter(fail_res, res); /* - * nr_pages can be either a huge page

Re: [PATCH v2 03/11] memcg: change defines to an enum

2012-08-10 Thread Michal Hocko
On Thu 09-08-12 17:01:11, Glauber Costa wrote: This is just a cleanup patch for clarity of expression. In earlier submissions, people asked it to be in a separate patch, so here it is. [ v2: use named enum as type throughout the file as well ] Signed-off-by: Glauber Costa

Re: [lm-sensors] NULL dereference BUG in sch56xx_init()

2012-08-10 Thread Guenter Roeck
On Fri, Aug 10, 2012 at 10:35:59AM +0200, Hans de Goede wrote: Hi, On 08/09/2012 04:42 PM, Guenter Roeck wrote: On Thu, Aug 09, 2012 at 08:55:26PM +0800, Fengguang Wu wrote: Hi Guenter, This commit triggered an oops which can be fixed by the attached diff. Should it be folded into the

Re: null pointer dereference while loading i915

2012-08-10 Thread Mihai Moldovan
* On 10.08.2012 12:10 PM, Daniel Vetter wrote: On Wed, Aug 8, 2012 at 6:50 AM, Mihai Moldovan io...@ionic.de wrote: Hi Daniel, hi list ever since version 3.2.0 (maybe even earlier, but 3.0.2 is still working fine), my box is crashing when loading the i915 driver (mode-setting enabled.)

Re: [PATCH] overlayfs: copy up i_uid/i_gid from the underlying inode

2012-08-10 Thread Miklos Szeredi
Andy Whitcroft a...@canonical.com writes: After a long hiatus I have had time to look into the issues highlighted by the i_uid/i_gid requirements from the VFS. I have identified a number of places which definatly did need the ids copying up and those are reflected in

Re: [PATCH] mutex: place lock in contended state after fastpath_lock failure

2012-08-10 Thread Nicolas Pitre
On Fri, 10 Aug 2012, Will Deacon wrote: ARM recently moved to asm-generic/mutex-xchg.h for its mutex implementation after the previous implementation was found to be missing some crucial memory barriers. However, this has revealed some problems running hackbench on SMP platforms due to the

Re: [PATCHv4 1/3] fs: Move core dump functionality into its own file

2012-08-10 Thread Kees Cook
On Fri, Aug 10, 2012 at 1:26 AM, Alex Kelly alex.page.ke...@gmail.com wrote: This prepares for making core dump functionality optional. The variable suid_dumpable and associated functions are left in fs/exec.c because they're used elsewhere, such as in ptrace. Signed-off-by: Alex Kelly

Re: [36/36] AArch64: MAINTAINERS update

2012-08-10 Thread Christopher Covington
Hi Catalin, On 07/06/2012 05:06 PM, Catalin Marinas wrote: This patch updates the MAINTAINERS file for the AArch64 Linux kernel port. Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) -- To

Re: rcu stalls seen with numasched_v2 patches applied.

2012-08-10 Thread Srikar Dronamraju
--- --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1539,6 +1539,7 @@ struct task_struct { #ifdef CONFIG_SMP u64 node_stamp; /* migration stamp */ unsigned long numa_contrib; + struct callback_head numa_work; #endif /* CONFIG_SMP */ #endif

Re: null pointer dereference while loading i915

2012-08-10 Thread Daniel Vetter
On Fri, Aug 10, 2012 at 6:05 PM, Mihai Moldovan io...@ionic.de wrote: * On 10.08.2012 12:10 PM, Daniel Vetter wrote: On Wed, Aug 8, 2012 at 6:50 AM, Mihai Moldovan io...@ionic.de wrote: Hi Daniel, hi list ever since version 3.2.0 (maybe even earlier, but 3.0.2 is still working fine), my

Upgraded from 3.4 to 3.5.1 kernel: machine does not boot

2012-08-10 Thread Justin Piszcz
) http://home.comcast.net/~jpiszcz/20120810/3.5-kernel-hangs.jpg Kernel config 3.4 (working) http://home.comcast.net/~jpiszcz/20120810/config-3.4.txt Kernel config 3.5.1 (hangs) http://home.comcast.net/~jpiszcz/20120810/config-3.5.1.txt As you see towards the end the machine has been sitting

Re: [PATCH] ARM: tegra: use IO_ADDRESS for getting virtual address

2012-08-10 Thread Stephen Warren
On 08/10/2012 07:03 AM, Laxman Dewangan wrote: Use macro IO_ADDRESS for getting virtual address of corresponding physical address to make the consistency with rest of Tegra code-base. This macro calls the IO_TO_VIRT() which is defined in arch/arm/mach-tegra/include/mach/iomap.h Thanks,

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/11 0:42), Michal Hocko wrote: On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] @@ -2317,18 +2318,18 @@ static int mem_cgroup_do_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, } else mem_over_limit = mem_cgroup_from_res_counter(fail_res, res); /* -

[ANNOUNCE] 3.4.8-rt16

2012-08-10 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.8-rt16 stable release. This release is just an update to the new stable 3.4.8 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH] ASoC: core: remove unused variable in soc_probe() in linux-next

2012-08-10 Thread Mark Brown
On Thu, Aug 09, 2012 at 11:16:26PM -0700, Jerry Snitselaar wrote: With commit 28d528c8 ASoC: core: Remove pointless error on card registration failure, the variable ret is no longer used in soc_probe() and generates an unused variable warning during a build. Applied, thanks. -- To unsubscribe

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: This patch adds the basic infrastructure for the accounting of the slab caches. To control that, the following files are created: * memory.kmem.usage_in_bytes * memory.kmem.limit_in_bytes * memory.kmem.failcnt *

Re: [PATCH v2 05/11] Add a __GFP_KMEMCG flag

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: This flag is used to indicate to the callees that this allocation is a kernel allocation in process context, and should be accounted to current's memcg. It takes numerical place of the of the recently removed __GFP_NO_KSWAPD. Signed-off-by: Glauber

Re: POI: nvidia forcedeth phy id not present

2012-08-10 Thread Janpieter Sollie
A primary concern seems to be solved (4k frame size). However, it is not really a patch yet, just a dirty workaround (just replaced ETH_DATA_LEN with a value 4000, my switch is limited to 4k) 486c486 #define NV_PKTLIMIT_1_ETH_DATA_LEN /* hard limit not known */ --- #define NV_PKTLIMIT_1 4000

Re: [PATCH 1/6] floppy: don't call alloc_ordered_workqueue inside the alloc_disk loop

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:46PM -0300, Herton Ronaldo Krzesinski wrote: Since commit 070ad7e (floppy: convert to delayed work and single-thread wq), we end up calling alloc_ordered_workqueue multiple times inside the loop, which shouldn't be intended. Besides the leak, other side effect in

Re: [PATCH 02/16] perf symbol: remove unused 'end' arg in kallsyms parse cb

2012-08-10 Thread Cody P Schafer
I guess that length of 1 effectively same as zero length in this case since we end up calling symbols__fixup_end. The 'end - start + 1' part looks like a leftover from previous change and not needed anymore - KSYM_NAME_LEN check too, IMHO - so I suggest using 0 length to make it clear. Got it.

Re: [3.5 regression] DRM: Massive (EDID-probing?) X startup delay on ATI Radeon RV770 (HD4870)

2012-08-10 Thread Nix
On 6 Aug 2012, Alex Deucher verbalised: On Sat, Aug 4, 2012 at 12:13 PM, Nix n...@esperi.org.uk wrote: Possibly-relevant info: - Two DVI monitors, identical specs, one dual-head graphics card (so no VGA switcheroo or awesome-yet-terrifying PRIME madness needed) - KMS, Xserver 1.12.3,

Re: [RFC PATCH 0/5] Improve hugepage allocation success rates under load V3

2012-08-10 Thread Jim Schutt
On 08/10/2012 05:02 AM, Mel Gorman wrote: On Thu, Aug 09, 2012 at 04:38:24PM -0600, Jim Schutt wrote: Ok, this is an untested hack and I expect it would drop allocation success rates again under load (but not as much). Can you test again and see what effect, if any, it has please? ---8---

Re: [PATCH 2/6] floppy: do put_disk on current dr if blk_init_queue fails

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:47PM -0300, Herton Ronaldo Krzesinski wrote: If blk_init_queue fails, we do not call put_disk on the current dr (dr is decremented first in the error handling loop). Signed-off-by: Herton Ronaldo Krzesinski herton.krzesin...@canonical.com Cc:

Re: [PATCH 3/6] floppy: avoid leaking extra reference to queue on do_floppy_init error handling

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:48PM -0300, Herton Ronaldo Krzesinski wrote: After commit 3f9a5aa (floppy: Cleanup disk-queue before caling put_disk() if add_disk() was never called), if something fails in the add_disk loop, we unconditionally set disks[dr]-queue to NULL. But that's wrong, since

Re: [PATCH] lib/parser.c: avoid overflow in match_number()

2012-08-10 Thread Randy Dunlap
On 08/09/2012 01:03 PM, Alex Elder wrote: The result of converting an integer value to another signed integer type that's unable to represent the original value is implementation defined. (See notes in section 6.3.1.3 of the C standard.) In match_number(), the result of simple_strtol()

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: This patch introduces infrastructure for tracking kernel memory pages to a given memcg. This will happen whenever the caller includes the flag __GFP_KMEMCG flag, and the task belong to a memcg other than the root. In memcontrol.h those functions are

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Michal Hocko
On Sat 11-08-12 01:49:25, KAMEZAWA Hiroyuki wrote: (2012/08/11 0:42), Michal Hocko wrote: On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] @@ -2317,18 +2318,18 @@ static int mem_cgroup_do_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, } else mem_over_limit =

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Michal Hocko
On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] For now retry up to COSTLY_ORDER (as page_alloc.c does) and make sure not to do it if __GFP_NORETRY. Who is using __GFP_NORETRY for user backed memory (except for hugetlb which has its own controller)? -- Michal Hocko SUSE Labs -- To

Re: [PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: When a process tries to allocate a page with the __GFP_KMEMCG flag, the page allocator will call the corresponding memcg functions to validate the allocation. Tasks in the root memcg can always proceed. To avoid adding markers to the page - and a kmem

Re: [PATCH 4/6] floppy: properly handle failure on add_disk loop

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:49PM -0300, Herton Ronaldo Krzesinski wrote: On do_floppy_init, if something failed inside the loop we call add_disk, there was no cleanup of previous iterations in the error handling. Signed-off-by: Herton Ronaldo Krzesinski herton.krzesin...@canonical.com Cc:

Re: [PATCH 6/6] floppy: use disk_registered for checking if a drive is present

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:51PM -0300, Herton Ronaldo Krzesinski wrote: Simplify/cleanup code, replacing remaining checks for drives present using disk_registered array. Signed-off-by: Herton Ronaldo Krzesinski herton.krzesin...@canonical.com --- Looks good to me. Acked-by: Vivek Goyal

Re: [PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-10 Thread Greg Thelen
On Thu, Aug 09 2012, Glauber Costa wrote: When a process tries to allocate a page with the __GFP_KMEMCG flag, the page allocator will call the corresponding memcg functions to validate the allocation. Tasks in the root memcg can always proceed. To avoid adding markers to the page - and a

Re: [PATCH 5/6] floppy: remove check for allocated queue on do_floppy_init error handling

2012-08-10 Thread Vivek Goyal
On Thu, Aug 09, 2012 at 04:59:50PM -0300, Herton Ronaldo Krzesinski wrote: The check if (disks[dr]-queue) check is bogus, if we reach there for each dr should exist an queue allocated (note that we decrement dr first on entering the loop). Signed-off-by: Herton Ronaldo Krzesinski

Re: [PATCH v2] SubmittingPatches: clarify SOB tag usage when evolving submissions

2012-08-10 Thread Randy Dunlap
On 08/09/2012 02:48 PM, Luis R. Rodriguez wrote: From: Luis R. Rodriguez mcg...@do-not-panic.com Initial large code submissions typically are not accepted on their first patch submission. The developers are typically given feedback and at times some developers may even submit changes to

Re: null pointer dereference while loading i915

2012-08-10 Thread Mihai Moldovan
* On 10.08.2012 06:39 PM, Daniel Vetter wrote: On Fri, Aug 10, 2012 at 6:05 PM, Mihai Moldovan io...@ionic.de wrote: * On 10.08.2012 12:10 PM, Daniel Vetter wrote: On Wed, Aug 8, 2012 at 6:50 AM, Mihai Moldovan io...@ionic.de wrote: Hi Daniel, hi list ever since version 3.2.0 (maybe even

Re: [PATCH v2] staging: gdm72xx: fix reference counting in gdm_wimax_event_init

2012-08-10 Thread Ben Chan
Hi Dan, I manually walked through the driver code and spotted the issue. But this morning I was able to get an extra module to verify my patch on hardware. I tested the following patterns using two identical modules, and checked the creation/destruction/ref_cnt of wm_event: - insert module A,

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: The current memcg slab cache management fails to present satisfatory hierarchical behavior in the following scenario: - /cgroups/memory/A/B/C * kmem limit set at A, * A and B have no tasks, * span a new task in in C. Because kmem_accounted is a

Re: Upgraded from 3.4 to 3.5.1 kernel: machine does not boot

2012-08-10 Thread Jesper Juhl
of where it stops working (a little burry but readable) http://home.comcast.net/~jpiszcz/20120810/3.5-kernel-hangs.jpg Kernel config 3.4 (working) http://home.comcast.net/~jpiszcz/20120810/config-3.4.txt Kernel config 3.5.1 (hangs) http://home.comcast.net/~jpiszcz/20120810/config-3.5.1.txt

Re: [PATCH v2 11/11] protect architectures where THREAD_SIZE = PAGE_SIZE against fork bombs

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/09 22:01), Glauber Costa wrote: Because those architectures will draw their stacks directly from the page allocator, rather than the slab cache, we can directly pass __GFP_KMEMCG flag, and issue the corresponding free_pages. This code path is taken when the architecture doesn't

[PATCH v7 0/4] make balloon pages movable by compaction

2012-08-10 Thread Rafael Aquini
Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest, thus imposing performance penalties associated with the reduced number of transparent huge pages that could be used by the guest workload. This

[PATCH v7 4/4] mm: add vm event counters for balloon pages compaction

2012-08-10 Thread Rafael Aquini
This patch introduces a new set of vm event counters to keep track of ballooned pages compaction activity. Signed-off-by: Rafael Aquini aqu...@redhat.com --- drivers/virtio/virtio_balloon.c | 1 + include/linux/vm_event_item.h | 8 +++- mm/compaction.c | 2 ++

[PATCH v7 3/4] mm: introduce putback_movable_pages()

2012-08-10 Thread Rafael Aquini
The PATCH mm: introduce compaction and migration for virtio ballooned pages hacks around putback_lru_pages() in order to allow ballooned pages to be re-inserted on balloon page list as if a ballooned page was like a LRU page. As ballooned pages are not legitimate LRU pages, this patch introduces

[PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-10 Thread Rafael Aquini
Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest, thus imposing performance penalties associated with the reduced number of transparent huge pages that could be used by the guest workload. Besides

[PATCH v7 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-08-10 Thread Rafael Aquini
Memory fragmentation introduced by ballooning might reduce significantly the number of 2MB contiguous memory blocks that can be used within a guest, thus imposing performance penalties associated with the reduced number of transparent huge pages that could be used by the guest workload. This

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-10 Thread Kamezawa Hiroyuki
(2012/08/11 2:28), Michal Hocko wrote: On Sat 11-08-12 01:49:25, KAMEZAWA Hiroyuki wrote: (2012/08/11 0:42), Michal Hocko wrote: On Thu 09-08-12 17:01:10, Glauber Costa wrote: [...] @@ -2317,18 +2318,18 @@ static int mem_cgroup_do_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, }

Re: [RFC PATCH 1/2] unix sockets: add ability for search for peer from passed root

2012-08-10 Thread J. Bruce Fields
On Fri, Aug 10, 2012 at 04:57:30PM +0400, Stanislav Kinsbursky wrote: This helper is used stream sockets yet. All is simple: if non-NULL struct path was passed to unix_find_other(), then vfs_path_lookup() is called instead of kern_path(). I'm having some trouble parsing the changelog. Maybe

[PATCH][trivial] ASoC: isabelle: Remove unneeded include of version.h

2012-08-10 Thread Jesper Juhl
There is no need to include version.h in sound/soc/codecs/isabelle.c - this patch removes the pointless include. Signed-off-by: Jesper Juhl j...@chaosbits.net --- sound/soc/codecs/isabelle.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/isabelle.c

Re: [PATCH 0/4] promote zcache from staging

2012-08-10 Thread Seth Jennings
On 08/09/2012 03:20 PM, Dan Magenheimer wrote I also wonder if you have anything else unusual in your test setup, such as a fast swap disk (mine is a partition on the same rotating disk as source and target of the kernel build, the default install for a RHEL6 system)? I'm using a normal SATA

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread H. Peter Anvin
On 08/10/2012 05:57 AM, Stanislav Kinsbursky wrote: Today, there is a problem in connecting of local SUNRPC thansports. These transports uses UNIX sockets and connection itself is done by rpciod workqueue. But UNIX sockets lookup is done in context of process file system root. I.e. all local

Re: [PATCH][trivial] ASoC: isabelle: Remove unneeded include of version.h

2012-08-10 Thread Mark Brown
On Fri, Aug 10, 2012 at 08:12:57PM +0200, Jesper Juhl wrote: There is no need to include version.h in sound/soc/codecs/isabelle.c - this patch removes the pointless include. Not sure what this patch is against, there appears to be no include of version.h in current code... -- To unsubscribe

Re: [PATCH][trivial] ASoC: isabelle: Remove unneeded include of version.h

2012-08-10 Thread Jesper Juhl
On Fri, 10 Aug 2012, Mark Brown wrote: On Fri, Aug 10, 2012 at 08:12:57PM +0200, Jesper Juhl wrote: There is no need to include version.h in sound/soc/codecs/isabelle.c - this patch removes the pointless include. Not sure what this patch is against, there appears to be no include of

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread Alan Cox
On that whole subject... Do we need a Unix domain socket equivalent to openat()? I don't think so. The name is just a file system indexing trick, it's not really the socket proper. It's little more than ascii string with permissions attached - indeed we also support an abstract name space

Re: [PATCH][trivial] ASoC: isabelle: Remove unneeded include of version.h

2012-08-10 Thread Mark Brown
On Fri, Aug 10, 2012 at 08:21:51PM +0200, Jesper Juhl wrote: On Fri, 10 Aug 2012, Mark Brown wrote: Not sure what this patch is against, there appears to be no include of version.h in current code... It's against Linus's tree. I created a branch off of master at

Re: 3.5.1 ext4_ sleeping while atomic bug.

2012-08-10 Thread Theodore Ts'o
Hi Dave, Thanks for the bug report! The following should address the bug which you found. - Ted From 05ca87aa00121756b5d41f3d71eb8b51bed3bc92 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o ty...@mit.edu Date: Fri, 10 Aug 2012 13:57:52 -0400

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

2012-08-10 Thread H. Peter Anvin
On 08/10/2012 11:26 AM, Alan Cox wrote: On that whole subject... Do we need a Unix domain socket equivalent to openat()? I don't think so. The name is just a file system indexing trick, it's not really the socket proper. It's little more than ascii string with permissions attached - indeed

Re: [PATCH 02/15] Declaring udp protocols has its own proc entry

2012-08-10 Thread Jan Ceuleers
On 08/10/2012 04:05 PM, Masatake YAMATO wrote: Declaring udp protocols has its own proc entry. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/udp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index b4c3582..2b822ac 100644 ---

Re: [PATCH v5 05/12] KVM: reorganize hva_to_pfn

2012-08-10 Thread Marcelo Tosatti
On Tue, Aug 07, 2012 at 05:51:05PM +0800, Xiao Guangrong wrote: We do too many things in hva_to_pfn, this patch reorganize the code, let it be better readable Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- virt/kvm/kvm_main.c | 159

Re: [PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-10 Thread Marcelo Tosatti
On Tue, Aug 07, 2012 at 05:47:15PM +0800, Xiao Guangrong wrote: Changelog: - introduce KVM_PFN_ERR_RO_FAULT instead of dummy page - introduce KVM_HVA_ERR_BAD and optimize error hva indicators The test case can be found at:

Re: [PATCH v5 11/12] KVM: x86: introduce set_mmio_exit_info

2012-08-10 Thread Marcelo Tosatti
On Tue, Aug 07, 2012 at 05:54:42PM +0800, Xiao Guangrong wrote: Introduce set_mmio_exit_info to cleanup the common code Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/kvm/x86.c | 33 + 1 files changed, 17 insertions(+), 16

<    1   2   3   4   5   6   7   8   >