[PATCH] Tools: hv: Fix for long file names from readdir

2012-11-08 Thread Tomas Hozza
kvp_get_if_name and kvp_mac_to_if_name copy strings into statically sized buffers which could be too small to store really long names. Buffer sizes have been increased and length checks added via snprintf. Signed-off-by: Tomas Hozza tho...@redhat.com --- tools/hv/hv_kvp_daemon.c | 25

Re: [headache] 3.7.0-rc2 can't handle mutt (with 3.7G mail file) +FF (4 tabs) on a 4G memory+4 core system ?

2012-11-08 Thread Luming Yu
On Thu, Nov 8, 2012 at 9:00 AM, Luming Yu luming...@gmail.com wrote: On Thu, Nov 8, 2012 at 8:34 AM, Ortwin Glück o...@odi.ch wrote: On 08.11.2012 14:28, Luming Yu wrote: As I just noticed that I couldn't quit from mutt due to tmpfs is full. That's also pointing towards high memory

Re: [PATCH 9/9 v2] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Tejun Heo
Hello, Michal. On Thu, Nov 08, 2012 at 03:08:52PM +0100, Michal Hocko wrote: This seems to be racy because parent-state access is not linearized. Say we have parallel freeze and thawing on a tree like the following: A | B | C pre_order will visit them

Re: [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
Christoph Lameter said, at 2012/11/3 1:46: u64_stats_update_begin(stats-sync); stats-tx_packets++; Use this_cpu_inc(vport-percpu_stats-packets) here? Lots of network drivers use u64_stats_sync infrastructure for statistics on 32bit or 64bit hosts no matter how many

Re: [headache] 3.7.0-rc2 can't handle mutt (with 3.7G mail file) +FF (4 tabs) on a 4G memory+4 core system ?

2012-11-08 Thread Ortwin Glück
On 08.11.2012 15:14, Luming Yu wrote: hmmmake sens? maybe we can't use tmp-on-tmpfs feature in f18 but why not having disk to backup tmpfs under memory pressure? It should. tmpfs should use all available RAM+swap. But then I guess you have no swap, and the kernel simply is desperately

Re: [PATCH] cgroup: set 'start' with the right value in cgroup_path.

2012-11-08 Thread Tejun Heo
Hello, On Thu, Nov 08, 2012 at 09:36:38PM +0800, Tao Ma wrote: From: Tao Ma boyu...@taobao.com 'start' is set to buf + buflen and do the '--' immediately. Just set it to 'buf + buflen - 1' directly. Cc: Tejun Heo t...@kernel.org Cc: Li Zefan lize...@huawei.com You're missing S-O-B. I

[PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Arnd Bergmann
The patch dw_mmc: fix multiple drv_data NULL dereferences has unfortunately clashed with my mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end patch, causing new warnings to appear. This should hopefully fix the issue for good. Signed-off-by: Arnd Bergmann a...@arndb.de --- On Monday 29

Re: tty, vt: lockdep warnings (Patch v3)

2012-11-08 Thread Alan Cox
commit f35b3fbf24c4e4debb6a7a864b09854ccc2a22e7 Author: Alan Cox a...@linux.intel.com Date: Wed Nov 7 16:35:08 2012 + fb: Rework locking to fix lock ordering on takeover Adjust the console layer to allow a take over call where the caller already holds the locks. Make the fb

Re: [PATCH] cgroup: set 'start' with the right value in cgroup_path.

2012-11-08 Thread Tao Ma
On 11/08/2012 10:24 PM, Tejun Heo wrote: Hello, On Thu, Nov 08, 2012 at 09:36:38PM +0800, Tao Ma wrote: From: Tao Ma boyu...@taobao.com 'start' is set to buf + buflen and do the '--' immediately. Just set it to 'buf + buflen - 1' directly. Cc: Tejun Heo t...@kernel.org Cc: Li Zefan

Re: [PATCH v6 19/29] memcg: infrastructure to match an allocation to the right cache

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 12:05:13, Michal Hocko wrote: On Tue 06-11-12 09:03:54, Michal Hocko wrote: On Mon 05-11-12 16:28:37, Andrew Morton wrote: On Thu, 1 Nov 2012 16:07:35 +0400 Glauber Costa glom...@parallels.com wrote: +static __always_inline struct kmem_cache *

Re: [PATCH] Tools: hv: Fix for long file names from readdir

2012-11-08 Thread Olaf Hering
On Thu, Nov 08, Tomas Hozza wrote: kvp_get_if_name and kvp_mac_to_if_name copy strings into statically sized buffers which could be too small to store really long names. - char dev_id[256]; + char dev_id[512]; Shouldnt that be PATH_MAX or similar? Olaf -- To unsubscribe from this

Re: [PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Chris Ball
Hi Arnd, On Thu, Nov 08 2012, Arnd Bergmann wrote: The patch dw_mmc: fix multiple drv_data NULL dereferences has unfortunately clashed with my mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end patch, causing new warnings to appear. This should hopefully fix the issue for good.

Re: UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches)

2012-11-08 Thread David Howells
Vineet Gupta vineet.gup...@synopsys.com wrote: git://github.com/organizations/foss-for-synopsys-dwc-arc-processors/linux.git That seems to be wrong. I think you mean: git://github.com/foss-for-synopsys-dwc-arc-processors/linux.git David -- To unsubscribe from this list: send the line

[PATCH 1/3] rtc: rtc-spear: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
This patch frees rtc-spear driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/rtc/rtc-spear.c | 87

[PATCH 2/3] rtc: rtc-spear: Add clk_{un}prepare() support

2012-11-08 Thread Viresh Kumar
From: Deepak Sikri deepak.si...@st.com clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them ones in probe/remove. Signed-off-by: Deepak Sikri deepak.si...@st.com Signed-off-by: Viresh Kumar

[PATCH 3/3] rtc: rtc-spear: Provide flag for no support of UIE mode

2012-11-08 Thread Viresh Kumar
From: Deepak Sikri deepak.si...@st.com The applciations can set the RTC hardware to trigger interrupts in one of three modes: * AIE: Alarm interrupt * UIE: Update interrupt (ie: once per second) * PIE: Periodic interrupt (sub-second irqs) The above defined 3 modes are to be supported

Re: [PATCH 6/9] cgroup_freezer: make freezer-state mask of flags

2012-11-08 Thread Tejun Heo
Hello, Kamezawa. On Thu, Nov 08, 2012 at 02:00:34PM +0900, Kamezawa Hiroyuki wrote: (2012/11/08 13:42), Tejun Heo wrote: Hello, Kame. On Thu, Nov 08, 2012 at 01:37:50PM +0900, Kamezawa Hiroyuki wrote: How about enum { __CGROUP_FREEZING, __CGROUP_FROZEN, }; #define

Re: [PATCH 6/9] cgroup_freezer: make freezer-state mask of flags

2012-11-08 Thread Tejun Heo
Hello, Michal. On Thu, Nov 08, 2012 at 11:39:28AM +0100, Michal Hocko wrote: On Sat 03-11-12 01:38:32, Tejun Heo wrote: freezer-state was an enum value - one of THAWED, FREEZING and FROZEN. As the scheduled full hierarchy support requires more than one freezing condition, switch it to mask

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-08 Thread Alex Shi
On 11/07/2012 10:41 PM, Greg KH wrote: On Wed, Nov 07, 2012 at 08:27:17PM +0800, Alex Shi wrote: diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..5f6a573 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -330,4 +330,6 @@ void __init cpu_dev_init(void)

Re: [PATCH 7/9] cgroup_freezer: introduce CGROUP_FREEZING_[SELF|PARENT]

2012-11-08 Thread Tejun Heo
Hello, Kamezawa. On Thu, Nov 08, 2012 at 01:56:52PM +0900, Kamezawa Hiroyuki wrote: Got it, thank you. I'm glad if you add some more explanation in comments and considered use-case in changelog. I explained it in the last patch because it was a bit weird to explain stuff which isn't

Re: [PATCH 7/9] cgroup_freezer: introduce CGROUP_FREEZING_[SELF|PARENT]

2012-11-08 Thread Tejun Heo
Hello, On Thu, Nov 08, 2012 at 01:47:55PM +0100, Michal Hocko wrote: On Sat 03-11-12 01:38:33, Tejun Heo wrote: Introduce FREEZING_SELF and FREEZING_PARENT and make FREEZING OR of the two flags. This is to prepare for full hierarchy support. freezer_apply_date() is updated such that it

Re: [PATCH 6/9] cgroup_freezer: make freezer-state mask of flags

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 06:39:52, Tejun Heo wrote: Hello, Michal. On Thu, Nov 08, 2012 at 11:39:28AM +0100, Michal Hocko wrote: On Sat 03-11-12 01:38:32, Tejun Heo wrote: freezer-state was an enum value - one of THAWED, FREEZING and FROZEN. As the scheduled full hierarchy support requires more

Re: [PATCH] Tools: hv: Fix for long file names from readdir

2012-11-08 Thread Tomas Hozza
-char dev_id[256]; +char dev_id[512]; Shouldnt that be PATH_MAX or similar? dirent-d_name should be PATH_MAX, but it is mostly not guaranteed. And then the dev_id is concatenated with two strings so it can exceed 256 bytes. After discussion with K. Y. Srinivasan I just

Re: [PATCH 1/6] perf tools: Synthesize data mmap events for threads

2012-11-08 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 07, 2012 at 04:27:09PM +0900, Namhyung Kim escreveu: From: Namhyung Kim namhyung@lge.com Current perf_event__synthesize_mmap_events() only deals with executable mappings. With upcoming memory access sampling, Not upcoming, recently added, since your patch needs the patch, in

Re: [PATCH 2/2] ARM: davinci: enable SRAM ping ping buffering on DA850

2012-11-08 Thread Arnd Bergmann
On Thursday 04 October 2012, Matt Porter wrote: Passes the DA850 shared SRAM gen_pool to the McASP driver and enables the ping-pong buffer DMA support. Signed-off-by: Matt Porter mpor...@ti.com --- It seems this is in linux-next now, but the patch it depends on (ARM: davinci: add platform

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Eric Paris
Then it only works by accident that magic.h is included by some random path in smackfs.c. You really should be including it in smack.h (or each .c file individually, up to casey) On Thu, Nov 8, 2012 at 5:43 AM, Jarkko Sakkinen jarkko.sakki...@iki.fi wrote: On Tue, Nov 6, 2012 at 11:59 PM, Casey

Re: Linux 3.7-rc4

2012-11-08 Thread Nix
On 4 Nov 2012, Linus Torvalds stated: Perhaps notable just because of the noise it caused in certain circles, there's the ext4 bitmap journaling fix for the issue that caused such a ruckus. It's a tiny patch and despite all the noise about it you couldn't actually trigger the problem unless

[PATCH 1/2] usb: spear-ehci/ohci: Do clk_get using dev-id

2012-11-08 Thread Viresh Kumar
From: Amardeep Rai amardeep.rai-...@st.com We used to get clk using con-id, but now we have device struct available for these devices as they are probed using DT. And so must get clk using dev-id. Signed-off-by: Amardeep Rai amardeep.rai-...@st.com Signed-off-by: Viresh Kumar

[PATCH 2/2] usb: spear-ehci/ohci: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
This patch frees SPEAr ehci/ohci drivers from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/usb/host/ehci-spear.c | 37

Re: UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches)

2012-11-08 Thread David Howells
at: http://git.infradead.org/users/dhowells/linux-headers.git/shortlog/refs/tags/disintegrate-arc-20121108 You'll find a branch with a patch that does the UAPI disintegration for you as one piece. I've merged your branch onto Linus's latest before doing the disintegration. If you'd prefer

[PATCH 1/2] mmc: sdhci-spear: Initialize sdhci clk to 50 MHz

2012-11-08 Thread Viresh Kumar
From: Vipul Kumar Samar vipulkumar.sa...@st.com SPEAr sdhci driver expects the clock to be set to 50 MHz for proper functioning. This patch sets clk to 50 MHz in probe. Signed-off-by: Vipul Kumar Samar vipulkumar.sa...@st.com Signed-off-by: Viresh Kumar viresh.ku...@linaro.org ---

[PATCH 2/2] mmc: sdhci-spear: Don't call clk_{un}prepare() in suspend resume

2012-11-08 Thread Viresh Kumar
clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them ones in probe/remove. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/mmc/host/sdhci-spear.c | 4 ++-- 1 file changed, 2

[PATCH] ata: pata_arasan: Initialize cf clock to 166MHz

2012-11-08 Thread Viresh Kumar
From: Vipul Kumar Samar vipulkumar.sa...@st.com PATA arasan driver expects the clock to be set to 166 MHz for proper functioning. This patch sets clk to 166 MHz in probe. Signed-off-by: Vipul Kumar Samar vipulkumar.sa...@st.com Signed-off-by: Viresh Kumar viresh.ku...@linaro.org ---

Re: linux-next: manual merge of the arm-soc tree with the l2-mtd and pinctrl trees

2012-11-08 Thread Arnd Bergmann
On Wednesday 07 November 2012, Stephen Rothwell wrote: Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-nomadik/board-nhk8815.c between commit 1cd2fc449091 (ARM: nomadik: fixup some FSMC merge problems) from the l2-mtd tree, commits bb16bd9b9da4 (pinctrl/nomadik:

[PATCH] bcm_wimax.ko - Modified supported device list

2012-11-08 Thread Muhammad Minhazul Haque
Mr. Kevin, I was never reported for that product id 0x0132. Yet you can continue support for it if it is rare. In the meantime, we can add more devices to the header and add those names to usb_device_id table in InterfaceInit.c. I added a new product string BCM_USB_PRODUCT_ID_ZTE_326 and also

[RFC v2 2/2] procfs: /proc/sched_debug fails on very very large machines.

2012-11-08 Thread Nathan Zimmer
On systems with 4096 cores attemping to read /proc/sched_debug fails. We are trying to push all the data into a single kmalloc buffer. The issue is on these very large machines all the data will not fit in 4mb. A better solution is to not us the single_open mechanism but to provide our own

[RFC v2 0/2] /proc/sched_stat and /proc/sched_debug fail at 4096

2012-11-08 Thread Nathan Zimmer
When running with 4096 cores attemping to read /proc/sched_stat and /proc/sched_debug will fail with an ENOMEM condition. On a sufficantly large systems the total amount of data is more then 4mb, so it won't fit into a single buffer. /proc/timer_list also fails in a similar way. However

[RFC v2 1/2] procfs: /proc/sched_stat fails on very very large machines.

2012-11-08 Thread Nathan Zimmer
On systems with 4096 cores doing a cat /proc/sched_stat fails. We are trying to push all the data into a single kmalloc buffer. The issue is on these very large machines all the data will not fit in 4mb. A better solution is to not us the single_open mechanism but to provide our own

Re: [PATCH 9/9 v2] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 06:18:48, Tejun Heo wrote: Hello, Michal. On Thu, Nov 08, 2012 at 03:08:52PM +0100, Michal Hocko wrote: This seems to be racy because parent-state access is not linearized. Say we have parallel freeze and thawing on a tree like the following: A | B

Re: [PATCH] bcm_wimax.ko - Modified supported device list [Correction]

2012-11-08 Thread Muhammad Minhazul Haque
Mr. Kevin and everyone, There was a serious mistake in the previous message. I forgot to attach the patch. Please ignore it. I am posting it again. I was never reported for that product id 0x0132. Yet you can continue support for it if it is rare. In the meantime, we can add more devices to the

Re: [PATCH 9/9 v2] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Tejun Heo
Hey, Michal. On Thu, Nov 08, 2012 at 04:20:39PM +0100, Michal Hocko wrote: So, in the above example in CPU2, (B-state FREEZING) test and freezer_apply_state(C, false) can't be interleaved with the same inheritance operation from CPU1. They either happen before or after. I am not sure I

Re: [Xen-devel] [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Kent Yoder
On Thu, Nov 08, 2012 at 08:17:32AM +, Jan Beulich wrote: On 07.11.12 at 19:14, Matthew Fioravante matthew.fiorava...@jhuapl.edu wrote: On 11/07/2012 09:46 AM, Kent Yoder wrote: --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -130,6 +130,9 @@ struct tpm_chip {

Re: [patch 1/2] mm, oom: change type of oom_score_adj to short

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 01:26:57, David Rientjes wrote: The maximum oom_score_adj is 1000 and the minimum oom_score_adj is -1000, so this range can be represented by the signed short type with no functional change. The extra space this frees up in struct signal_struct will be used for per-thread oom

Re: [PATCH 1/2] leds: Add generic support for memory mapped LEDs

2012-11-08 Thread Pawel Moll
Hi Bryan, Richard, On Thu, 2012-11-01 at 17:58 +, Pawel Moll wrote: LEDs are often controlled by writing to memory mapped register. This patch adds: 1. Generic functions for platform code and drivers to create class device for LEDs controlled by arbitrary bit masks. The control

RE: [Xen-devel] [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Fioravante, Matthew E.
-Original Message- From: xen-devel-boun...@lists.xen.org [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Kent Yoder Sent: Thursday, November 08, 2012 10:29 AM To: Jan Beulich Cc: Fioravante, Matthew E.; jer...@goop.org; xen-de...@lists.xensource.com; konrad.w...@oracle.com;

Re: [PATCH 8/9] cgroup_freezer: add -post_create() and -pre_destroy() and track online state

2012-11-08 Thread Tejun Heo
Hello, Kamezawa. On Thu, Nov 08, 2012 at 01:48:25PM +0900, Kamezawa Hiroyuki wrote: Could you explain what 'online' means here again, rather than changelog ? BTW, 'online' is a shared concept, between post_create() and pre_destroy(), among developpers ? Is it new ? I'm prepping a patch to

RE: [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Fioravante, Matthew E.
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Wednesday, November 07, 2012 11:07 AM To: Fioravante, Matthew E. Cc: k...@linux.vnet.ibm.com; m...@srajiv.net; jer...@goop.org; tpmdd-de...@lists.sourceforge.net; xen-de...@lists.xensource.com;

Re: [Pv-drivers] [PATCH 0/6] VSOCK for Linux upstreaming

2012-11-08 Thread Andy King
Hi Gerd, Also, there was some interest from RedHat into using vSockets as a unified interface, routed over a hypervisor-specific transport (virtio or otherwise, although for now VMCI is the only one implemented). Can you outline how this can be done? From a quick look over the code it

Re: [RFC v2 PATCH 1/2] memory: davinci - add aemif controller platform driver

2012-11-08 Thread Murali Karicheri
Stephen, Thanks for reviewing this. See my responses below On 11/07/2012 03:05 PM, Stephen Warren wrote: On 11/06/2012 02:47 PM, Murali Karicheri wrote: This is a platform driver for asynchronous external memory interface available on TI SoCs. This driver was previously located inside the

Re: [patch 2/2] mm, oom: fix race when specifying a thread as the oom origin

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 01:27:00, David Rientjes wrote: test_set_oom_score_adj() and compare_swap_oom_score_adj() are used to specify that current should be killed first if an oom condition occurs in between the two calls. The usage is short oom_score_adj =

[PATCH V3] memcg, oom: provide more precise dump info while memcg oom happening

2012-11-08 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Current when a memcg oom is happening the oom dump messages is still global state and provides few useful info for users. This patch prints more pointed memcg page statistics for memcg-oom. We set up a simple cgroup hierarchy for test: root_memcg

Re: [PATCH 1/3] gpio / ACPI: add ACPI support

2012-11-08 Thread Grant Likely
Hi Mika, On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Mathias Nyman mathias.ny...@linux.intel.com Add support for translating ACPI GPIO pin numbers to Linux GPIO API pins. Needs a gpio controller driver with the acpi handler hook set. Drivers

Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-11-08 Thread Alan Stern
On Thu, 8 Nov 2012, Takashi Iwai wrote: At Thu, 08 Nov 2012 08:31:35 +0100, Daniel Mack wrote: (snip) We can't simply stop both endpoints in the prepare callback. The new function doesn't stop the stream by itself but it just syncs if the stream is being stopped beforehand. So,

Re: [PATCH 9/9 v2] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 07:29:23, Tejun Heo wrote: Hey, Michal. On Thu, Nov 08, 2012 at 04:20:39PM +0100, Michal Hocko wrote: So, in the above example in CPU2, (B-state FREEZING) test and freezer_apply_state(C, false) can't be interleaved with the same inheritance operation from CPU1. They

Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-11-08 Thread Takashi Iwai
At Thu, 8 Nov 2012 10:55:50 -0500 (EST), Alan Stern wrote: On Thu, 8 Nov 2012, Takashi Iwai wrote: At Thu, 08 Nov 2012 08:31:35 +0100, Daniel Mack wrote: (snip) We can't simply stop both endpoints in the prepare callback. The new function doesn't stop the stream by itself

Re: [RFC v2 PATCH 2/2] mtd: davinci - remove DaVinci architecture depedency

2012-11-08 Thread Murali Karicheri
On 11/07/2012 03:08 PM, Stephen Warren wrote: On 11/06/2012 02:47 PM, Murali Karicheri wrote: DaVinci NAND driver is a controller driver based on the AEMIF hardware IP found on TI SoCs. It is also used on SoCs that are not DaVinci based. This patch removes the driver dependency on DaVinci

RE: [PATCH] Tools: hv: Fix for long file names from readdir

2012-11-08 Thread KY Srinivasan
-Original Message- From: Tomas Hozza [mailto:tho...@redhat.com] Sent: Thursday, November 08, 2012 9:53 AM To: Olaf Hering Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; a...@canonical.com; jasow...@redhat.com; KY Srinivasan Subject:

[PATCH] perf tests: Move attr.py temp dir cleanup into finally section

2012-11-08 Thread Jiri Olsa
Currently if there's 'Unsup' exception raised, we do not clean up the temp directory. Solving this by adding 'finally' to make the cleanup in any case. Signed-off-by: Jiri Olsa jo...@redhat.com Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo

Re: [PATCH V3] memcg, oom: provide more precise dump info while memcg oom happening

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 23:52:47, Sha Zhengju wrote: [...] (2) After change [ 269.225628] mal invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=0 [ 269.225633] mal cpuset=/ mems_allowed=0-1 [ 269.225636] Pid: 4616, comm: mal Not tainted 3.6.0+ #25 [ 269.225637] Call Trace: [ 269.225647]

[PATCH 1/8] aoe: avoid running request handler on plugged queue

2012-11-08 Thread Ed Cashin
Signed-off-by: Ed Cashin ecas...@coraid.com --- drivers/block/aoe/aoecmd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index c491fba..3ce01f6 100644 --- a/drivers/block/aoe/aoecmd.c +++

[PATCH 2/8] aoe: provide ATA identify device content to user on request

2012-11-08 Thread Ed Cashin
This patch makes the aoe driver follow expected behavior when the user uses ioctl to get the ATA device identify information. Signed-off-by: Ed Cashin ecas...@coraid.com --- drivers/block/aoe/aoe.h|1 + drivers/block/aoe/aoeblk.c | 30 ++

[PATCH 3/8] aoe: improve network congestion handling

2012-11-08 Thread Ed Cashin
The aoe driver already had some congestion handling, but it was limited in its ability to cope with the kind of congestion that can arise on more complex networks such as those involving paths through multiple ethernet switches. Some of the lessons from TCP's history of development can be applied

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Dmitry Torokhov
Hi Viresh, On Thu, Nov 08, 2012 at 07:10:47PM +0530, Viresh Kumar wrote: This patch frees spear-keyboard driver from tension of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. It also breaks the

Re: [PATCH v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-08 Thread Paul E. McKenney
On Thu, Nov 08, 2012 at 02:33:27PM +0100, Oleg Nesterov wrote: On 11/07, Paul E. McKenney wrote: On Fri, Nov 02, 2012 at 07:06:29PM +0100, Oleg Nesterov wrote: +void percpu_down_write(struct percpu_rw_semaphore *brw) +{ + /* also blocks update_fast_ctr() which checks

[PATCH 4/8] aoe: err device: include MAC addresses for unexpected responses

2012-11-08 Thread Ed Cashin
Signed-off-by: Ed Cashin ecas...@coraid.com --- drivers/block/aoe/aoecmd.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index f849fa2..6ea27fd 100644 --- a/drivers/block/aoe/aoecmd.c +++

[PATCH 5/8] aoe: manipulate aoedev network stats under lock

2012-11-08 Thread Ed Cashin
Signed-off-by: Ed Cashin ecas...@coraid.com --- drivers/block/aoe/aoecmd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index 6ea27fd..9aefbe3 100644 --- a/drivers/block/aoe/aoecmd.c +++

[PATCH 6/8] aoe: use high-resolution RTTs with fallback to low-res

2012-11-08 Thread Ed Cashin
These changes improve the accuracy of the decision about whether it's time to retransmit an AoE command by using the microsecond-resolution gettimeofday instead of jiffies. Because the system time can jump suddenly, the decision reverts to using jiffies if the high-resolution time difference is

[PATCH 7/8] aoe: commands in retransmit queue use new destination on failure

2012-11-08 Thread Ed Cashin
When one remote MAC address isn't working as a destination for AoE commands, the frames used to track information associated with the AoE commands are moved to a new aoetgt (defined by the tuple of {AoE major, AoE minor, target MAC address}). This patch makes sure that the frames on the queue for

[PATCH 8/8] aoe: update driver-internal version to 64+

2012-11-08 Thread Ed Cashin
Signed-off-by: Ed Cashin ecas...@coraid.com --- drivers/block/aoe/aoe.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index c253cca..9655ce3 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h @@ -1,5

Re: scsi target, likely GPL violation

2012-11-08 Thread Andy Grover
On 11/07/2012 05:02 PM, Jon Mason wrote: On Wed, Nov 7, 2012 at 9:50 AM, Andy Grover agro...@redhat.com wrote: Your company appears to be shipping kernel features in RTS OS that are not made available under the GPL, specifically support for the EXTENDED_COPY and COMPARE_AND_WRITE SCSI

Re: scsi target, likely GPL violation

2012-11-08 Thread Andy Grover
On 11/07/2012 05:57 PM, Chris Friesen wrote: On 11/07/2012 07:02 PM, Jon Mason wrote: I'm not a lawyer, nor do I play one on TV, but if I understand the GPL correctly, RTS only needs to provide the relevant source to their customers upon request. Not quite. Assuming the GPL applies, and

Re: [PATCH] gpio: tegra: read output value when gpio is set in direction_out

2012-11-08 Thread Stephen Warren
On 11/07/2012 11:27 PM, Laxman Dewangan wrote: Read the output value when gpio is set for the output mode for gpio_get_value(). Reading input value in direction out does not give correct value. That's an unfortunate HW design, but oh well. Do you have any idea why reading the input register

Re: [RFC 1/3] mm: Add VM pressure notifications

2012-11-08 Thread Mel Gorman
(Sorry about being very late reviewing this) On Wed, Nov 07, 2012 at 03:01:28AM -0800, Anton Vorontsov wrote: This patch introduces vmpressure_fd() system call. The system call creates a new file descriptor that can be used to monitor Linux' virtual memory management pressure. There are three

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-08 Thread Mitch Bradley
On 11/8/2012 3:28 AM, Koen Kooi wrote: Op 7 nov. 2012, om 23:35 heeft Ryan Mallon rmal...@gmail.com het volgende geschreven: On 06/11/12 08:40, Tabi Timur-B04825 wrote: On Mon, Nov 5, 2012 at 2:40 PM, Grant Likely grant.lik...@secretlab.ca wrote: Jane is building custom BeagleBone

Re: [PATCH] input: fix input-mt kernel-doc warning

2012-11-08 Thread Dmitry Torokhov
On Wed, Nov 07, 2012 at 08:46:17PM +0100, Henrik Rydberg wrote: Hi Randy, From: Randy Dunlap rdun...@infradead.org Fix new kernel-doc warning in input-mt.c: Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags' Thanks for the patch. It seemed

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-08 Thread Alan Stern
On Thu, 8 Nov 2012, Rafael J. Wysocki wrote: is it a good idea to allow to set device state to SUSPENDED if the device is disabled? No, it is not. The status should always be ACTIVE as long as usage_count 0. That isn't strictly true, because pm_runtime_get_noresume

Re: [PATCH 2/2] pinctrl/nomadik: make independent of prcmu driver

2012-11-08 Thread Stephen Warren
On 11/08/2012 04:55 AM, Linus Walleij wrote: From: Jonas Aaberg jonas.ab...@stericsson.com Currently there are some unnecessary criss-cross dependencies between the PRCMU driver in MFD and a lot of other drivers, mainly because other drivers need to poke around in the PRCM register range.

Re: [RFC 1/3] mm: Add VM pressure notifications

2012-11-08 Thread Kirill A. Shutemov
On Thu, Nov 08, 2012 at 05:01:24PM +, Mel Gorman wrote: (Sorry about being very late reviewing this) On Wed, Nov 07, 2012 at 03:01:28AM -0800, Anton Vorontsov wrote: This patch introduces vmpressure_fd() system call. The system call creates a new file descriptor that can be used to

Re: [PATCH 3/9] cgroup: implement generic child / descendant walk macros

2012-11-08 Thread Tejun Heo
Hey, Michal. On Thu, Nov 08, 2012 at 10:50:13AM +0100, Michal Hocko wrote: On Sat 03-11-12 01:38:29, Tejun Heo wrote: Currently, cgroup doesn't provide any generic helper for walking a given cgroup's children or descendants. This patch adds the following three macros. *

Re: [PATCH v6 25/29] memcg/sl[au]b: shrink dead caches

2012-11-08 Thread Christoph Lameter
On Wed, 7 Nov 2012, Andrew Morton wrote: What's up with kmem_cache_shrink? It's global and exported to modules but its only external caller is some weird and hopelessly poorly documented site down in drivers/acpi/osl.c. slab and slob implement kmem_cache_shrink() *only* for acpi! wtf?

Re: [PATCH 8/9] cgroup_freezer: add -post_create() and -pre_destroy() and track online state

2012-11-08 Thread Tejun Heo
Hello, On Thu, Nov 08, 2012 at 02:23:06PM +0100, Michal Hocko wrote: On Sat 03-11-12 01:38:34, Tejun Heo wrote: A cgroup is online and visible to iteration between -post_create() and -pre_destroy(). This patch introduces CGROUP_FREEZER_ONLINE and toggles it from the newly added

Re: [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Christoph Lameter
On Thu, 8 Nov 2012, Shan Wei wrote: Christoph Lameter said, at 2012/11/3 1:46: u64_stats_update_begin(stats-sync); stats-tx_packets++; Use this_cpu_inc(vport-percpu_stats-packets) here? Lots of network drivers use u64_stats_sync infrastructure for statistics So

Re: [RFC v2 PATCH 2/2] mtd: davinci - remove DaVinci architecture depedency

2012-11-08 Thread Stephen Warren
On 11/08/2012 08:57 AM, Murali Karicheri wrote: On 11/07/2012 03:08 PM, Stephen Warren wrote: On 11/06/2012 02:47 PM, Murali Karicheri wrote: DaVinci NAND driver is a controller driver based on the AEMIF hardware IP found on TI SoCs. It is also used on SoCs that are not DaVinci based. This

[PATCH] mfd: Only unregister platform devices allocated by the mfd core

2012-11-08 Thread Charles Keepax
mfd_remove_devices would iterate over all devices sharing a parent with an mfd device regardless of whether they were allocated by the mfd core or not. This especially caused problems when the device structure was not contained within a platform_device, because to_platform_device is used on each

[PATCH] tpm: add documentation for sysfs interfaces

2012-11-08 Thread Kent Yoder
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com --- Documentation/ABI/stable/sysfs-class-tpm | 182 +++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-class-tpm diff --git a/Documentation/ABI/stable/sysfs-class-tpm

[PATCH] USB: mos7840: remove unused variable

2012-11-08 Thread Johan Hovold
Fix warning about unused variable introduced by commit e681b66f2e19fa (USB: mos7840: remove invalid disconnect handling) upstream. A subsequent fix which removed the disconnect function got rid of the warning but that one was only backported to v3.6. Reported-by: Jiri Slaby jsl...@suse.cz Cc:

[PATCH RFC v2 3/4] firmware: Add support for signature checks

2012-11-08 Thread Takashi Iwai
Add a feature to check the firmware signature, specified via Kconfig CONFIG_FIRMWARE_SIG. The signature check is performed only for the direct fw loading without udev. If sig_enforce is set but no firmware file is found in fs, request_firmware*() returns an error for now. It would be possible

[PATCH RFC v2 0/4] Add firmware signature file check

2012-11-08 Thread Takashi Iwai
Hi, this is the revised patches I sent in this week for adding the firmware signing support. No big changes in the code but a bit of clean ups and more descriptions in changelog and comments now. At this point, it still needs to have a proper Kconfig help text, and move the stuff of

[PATCH RFC v2 4/4] firmware: Install firmware signature files automatically

2012-11-08 Thread Takashi Iwai
... when CONFIG_FIRMWARE_SIG is set. Signed-off-by: Takashi Iwai ti...@suse.de --- Makefile| 6 ++ scripts/Makefile.fwinst | 18 -- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1ccf22..c6d7a3e 100644 ---

[PATCH RFC v2 2/4] firmware: Add -a option to scripts/sign-file

2012-11-08 Thread Takashi Iwai
Add a new option -a to sign-file for specifying the hash algorithm to sign a file, to make it working without .config file. This will be useful signing external module or firmware files. Signed-off-by: Takashi Iwai ti...@suse.de --- scripts/sign-file | 40

[PATCH RFC v2 1/4] firmware: Add the firmware signing support to scripts/sign-file

2012-11-08 Thread Takashi Iwai
Add -f option to sign-file script for generating a firmware signature file. A firmware signature file contains a pretty similar structure like a signed module but in a different order (because it's a separate file while the module signature is embedded at the tail of unsigned module contents).

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Jarkko Sakkinen
On Thu, Nov 8, 2012 at 5:04 PM, Eric Paris epa...@parisplace.org wrote: Then it only works by accident that magic.h is included by some random path in smackfs.c. You really should be including it in smack.h (or each .c file individually, up to casey) Fully agree. Just answered to the query :)

Re: How does atomic operation work on smp

2012-11-08 Thread anish kumar
On Wed, 2012-11-07 at 17:45 +0100, Nicholas Mc Guire wrote: On Wed, 07 Nov 2012, Hendrik Visage wrote: On Thu, Nov 8, 2012 at 9:01 AM, Jimmy Pan dsp...@gmail.com wrote: I understand how atomic operation work on unary core processors, I think it just disables the interrupt and dominate

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Jarkko Sakkinen
On Thu, Nov 8, 2012 at 7:40 PM, Casey Schaufler ca...@schaufler-ca.com wrote: On 11/8/2012 7:04 AM, Eric Paris wrote: Then it only works by accident that magic.h is included by some random path in smackfs.c. You really should be including it in smack.h (or each .c file individually, up to

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Casey Schaufler
On 11/8/2012 7:04 AM, Eric Paris wrote: Then it only works by accident that magic.h is included by some random path in smackfs.c. You really should be including it in smack.h (or each .c file individually, up to casey) I should think it should go in smack.h On Thu, Nov 8, 2012 at 5:43 AM,

Re: [PATCH 3/5] checkpatch: Remove reference to feature-removal-schedule.txt.

2012-11-08 Thread Andy Whitcroft
On Thu, Nov 08, 2012 at 09:50:33PM +0800, Tao Ma wrote: From: Tao Ma boyu...@taobao.com In 9c0ece069, Linus removed feature-removal-schedule.txt from Documentation, but there is still some reference to this file. So remove them. Cc: Andrew Morton a...@linux-foundation.org Cc: Andy

Re: [PATCH] input: fix input-mt kernel-doc warning

2012-11-08 Thread Henrik Rydberg
Hi Dmitry, From: Randy Dunlap rdun...@infradead.org Fix new kernel-doc warning in input-mt.c: Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags' Thanks for the patch. It seemed reasonable to expand the function documentation a bit as well,

Re: [PATCH 5/5] drivers: mfd: Fix resource request for [mem 0x00000000]

2012-11-08 Thread Aaron Sierra
The older southbridges supported by the lpc_ich driver do not provide memory-mapped space of the root complex. The driver correctly avoids computing the iomem address in this case, yet submits a zeroed resource request anyway (via mfd_add_devices()). Remove the iomem resource from the

[PATCH 9/9 v3] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Tejun Heo
Up until now, cgroup_freezer didn't implement hierarchy properly. cgroups could be arranged in hierarchy but it didn't make any difference in how each cgroup_freezer behaved. They all operated separately. This patch implements proper hierarchy support. If a cgroup is frozen, all its descendants

[PATCH 3/9 v2] cgroup: implement generic child / descendant walk macros

2012-11-08 Thread Tejun Heo
Currently, cgroup doesn't provide any generic helper for walking a given cgroup's children or descendants. This patch adds the following three macros. * cgroup_for_each_child() - walk immediate children of a cgroup. * cgroup_for_each_descendant_pre() - visit all descendants of a cgroup in

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