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

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

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

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 >

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 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 wrote: > From: Mathias Nyman > > 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 can use acpi_get_gpio() to translate ACPI5 GpioIO and

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

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

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

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 >

[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 Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo

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: > [

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

2012-11-08 Thread Ed Cashin
Signed-off-by: Ed Cashin --- 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 +++ b/drivers/block/aoe/aoecmd.c @@ -925,7

[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 --- drivers/block/aoe/aoe.h|1 + drivers/block/aoe/aoeblk.c | 30 ++ drivers/block/aoe/aoecmd.c | 16

[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 --- 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 +++ b/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 --- 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 +++ b/drivers/block/aoe/aoecmd.c @@ -603,14

[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 --- 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 +1,6 @@ + /*

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 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 commands, in order

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

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

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 het volgende > geschreven: > >> On 06/11/12 08:40, Tabi Timur-B04825 wrote: >>> On Mon, Nov 5, 2012 at 2:40 PM, Grant Likely >>> wrote: >>> Jane is building custom BeagleBone expansion boards called

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 > > > > 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

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

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 > > 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. > > In cases like

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

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(>sync); > >>stats->tx_packets++; > > > > Use this_cpu_inc(vport->percpu_stats->packets) here? > > Lots of network drivers use u64_stats_sync infrastructure for

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 >>>

[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 --- 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 Cc: stable

[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 --- Makefile| 6 ++ scripts/Makefile.fwinst | 18 -- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1ccf22..c6d7a3e 100644 --- a/Makefile +++

[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 --- scripts/sign-file | 40 1 file

[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 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 :) > > On Thu, Nov

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 wrote: > > > I understand how atomic operation work on unary core processors, I think > > > it just disables the interrupt and dominate the

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 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 casey) > > I

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

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 > > 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 > Cc: Andy Whitcroft > Cc: Linus Torvalds >

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

2012-11-08 Thread Henrik Rydberg
Hi Dmitry, > > > From: Randy Dunlap > > > > > > 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

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

Re: [PATCHSET cgroup/for-3.8] cgroup_freezer: implement proper hierarchy support

2012-11-08 Thread Tejun Heo
On Sat, Nov 03, 2012 at 01:38:26AM -0700, Tejun Heo wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git > review-cgroup_freezer-hierarchy Updated patches posted as replies to the original patches and the above git branch updated with the updated patches. As all the updates

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

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 09:57:50, Tejun Heo wrote: > 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

Re: [RFC PATCH 0/8][Sorted-buddy] mm: Linux VM Infrastructure to support Memory Power Management

2012-11-08 Thread Mel Gorman
On Wed, Nov 07, 2012 at 01:22:13AM +0530, Srivatsa S. Bhat wrote: > > > Today memory subsystems are offer a wide range of capabilities for managing > memory power consumption. As a quick example, if a block of memory is not > referenced

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

2012-11-08 Thread Tejun Heo
On Thu, Nov 08, 2012 at 07:02:46PM +0100, Michal Hocko wrote: > On Thu 08-11-12 09:57:50, Tejun Heo wrote: > > Signed-off-by: Tejun Heo > > Reviewed-by: Tejun Heo > > You probably meant Reviewed-by: Michal Hocko ;) Hehehheheh... man, I'm too self-absolved. Thanks for noticing that. :)

Re: [PATCH 2/3] spi / ACPI: add ACPI enumeration support

2012-11-08 Thread Grant Likely
On Wed, Nov 7, 2012 at 9:58 AM, Mika Westerberg wrote: > On Tue, Nov 06, 2012 at 11:36:08PM +0100, Rafael J. Wysocki wrote: >> > >> > OK, but then we need to pass the information obtained from _CRS >> > (presumably after some adjustments through _SRS) to drivers, or rather to >> > things like the

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

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 10:04:17, Tejun Heo wrote: > On Thu, Nov 08, 2012 at 07:02:46PM +0100, Michal Hocko wrote: > > On Thu 08-11-12 09:57:50, Tejun Heo wrote: > > > Signed-off-by: Tejun Heo > > > Reviewed-by: Tejun Heo > > > > You probably meant Reviewed-by: Michal Hocko ;) > > Hehehheheh...

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

2012-11-08 Thread Jarkko Sakkinen
SMACK_MAGIC moved to a proper place for easy user space access (i.e. libsmack). Signed-off-by: Jarkko Sakkinen --- include/uapi/linux/magic.h |1 + security/smack/smack.h |6 +- security/smack/smack_lsm.c |1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git

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

2012-11-08 Thread Vineet Gupta
-arc-processors/linux.git >> arc-3.7-rc3-newport > If you look 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 >

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

2012-11-08 Thread Peter Hurley
On Thu, 2012-11-08 at 11:04 -0600, Aaron Sierra wrote: > > 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

[RFC PATCH 3/3] acpi_memhotplug: Add prepare_remove operation

2012-11-08 Thread Vasilis Liaskovitis
Offlining and removal of memory is now done in the prepare_remove callback, not in the remove callback. Signed-off-by: Vasilis Liaskovitis --- drivers/acpi/acpi_memhotplug.c | 22 -- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git

[RFC PATCH 0/3] acpi: Introduce prepare_remove device operation

2012-11-08 Thread Vasilis Liaskovitis
As discussed in https://patchwork.kernel.org/patch/1581581/ the driver core remove function needs to always succeed. This means we need to know that the device can be successfully removed before acpi_bus_trim / acpi_bus_hot_remove_device are called. This can cause panics when OSPM-initiated eject

[RFC PATCH 2/3] acpi: Make acpi_bus_trim handle device removal preparation

2012-11-08 Thread Vasilis Liaskovitis
A new argument is added to acpi_bus_trim, which indicates if we are preparing for removal or performing the actual ACPI removal. This is needed for safe removal of memory devices. The argument change would not be needed if the existing argument rmdevice of acpi_bus_trim could be used instead.

[RFC PATCH 1/3] acpi: Introduce prepare_remove operation in acpi_device_ops

2012-11-08 Thread Vasilis Liaskovitis
Signed-off-by: Vasilis Liaskovitis --- include/acpi/acpi_bus.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 2242c10..6ef1692 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -94,6 +94,7 @@

Re: [PATCH 2/3] spi / ACPI: add ACPI enumeration support

2012-11-08 Thread Grant Likely
On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg wrote: > ACPI 5 introduced SPISerialBus resource that allows us to enumerate and > configure the SPI slave devices behind the SPI controller. This patch adds > support for this to the SPI core. > > In addition we bind ACPI nodes to SPI devices. This

[PATCH] tools: hv: Netlink source address validation allows DoS

2012-11-08 Thread Tomas Hozza
The source code without this patch caused hypervkvpd to exit when it processed a spoofed Netlink packet which has been sent from an untrusted local user. Now Netlink messages with a non-zero nl_pid source address are ignored and a warning is printed into the syslog. Signed-off-by: Tomas Hozza

RE: [RFC PATCH v1 08/31] ARC: Fundamental ARCH data-types/defines

2012-11-08 Thread Vineet Gupta
On 7 November 2012 10:47, Vineet Gupta wrote: >> diff --git a/arch/arc/include/asm/ptrace.h b/arch/arc/include/asm/ptrace.h >> new file mode 100644 >> index 000..c178357 >> --- /dev/null >> +++ b/arch/arc/include/asm/ptrace.h >> @@ -0,0 +1,120 @@ >> +/* THE pt_regs: Defines how regs are saved

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

2012-11-08 Thread Aaron Sierra
> v2: post-decrement to match existing style > retitle patch subject > > drivers/mfd/lpc_ich.c | 3 +++ > 1 file changed, 3 insertions(+) Acked-by: Aaron Sierra You could make Samuel's job easier by sending a new e-mail with the latest patch and the correct subject in the e-mail's subject

Re: [PATCH 3/3] i2c / ACPI: add ACPI enumeration support

2012-11-08 Thread Grant Likely
On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg wrote: > ACPI 5 introduced I2cSerialBus resource that makes it possible to enumerate > and configure the I2C slave devices behind the I2C controller. This patch > adds helper functions to support I2C slave enumeration. > > An ACPI enabled I2C

[REGRESSION] Kernel 3.5 to 3.7-rc4 / GMA500 / DPMS sometimes crashes system

2012-11-08 Thread Chini, Georg (HP App Services)
Hello, I have an issue with the GMA500 driver for kernels from 3.5 up to 3.7-rc4. I am using an Intel board with a D2700 Atom processor running Debian unstable. Sometimes when DPMS switches off the screen the system reboots. More often it does not reboot but shows a white screen on reactivation.

[PATCH 1/9 v3] cgroup: add cgroup_subsys->post_create()

2012-11-08 Thread Tejun Heo
Subject: cgroup: add cgroup_subsys->post_create() Currently, there's no way for a controller to find out whether a new cgroup finished all ->create() allocatinos successfully and is considered "live" by cgroup. This becomes a problem later when we add generic descendants walking to cgroup which

Re: [PATCH] usb: gadget: ncm: correct endianess conversion

2012-11-08 Thread Dmytro Milinevskyy
On Thu, Nov 8, 2012 at 3:06 PM, Felipe Balbi wrote: > Hi, > > (please, never top-post) > got it! > On Wed, Nov 07, 2012 at 02:14:00PM +0100, Dmytro Milinevskyy wrote: >> Unfortunately I have some issues with git send-email. >> I've attached the patch itself .. > > I'll apply it like that this

RE: [RFC Patch v1 00/31] Synopsys ARC Linux kernel Port

2012-11-08 Thread Vineet Gupta
Hi Arnd, Thanks for your valuable comments I will rework the port. P.S. Sorry for top-posting. Thanks, Vineet On Wednesday 07 November 2012, Vineet Gupta wrote: > This patchset based off-of 3.7-rc3, introduces the Linux kernel port to > ARC700 processor family (750D and 770D) from Synopsys. >

Re: [PATCH v2] loop: Limit the number of requests in the bio list

2012-11-08 Thread Andrew Morton
On Tue, 16 Oct 2012 11:21:45 +0200 Lukas Czerner wrote: > Currently there is not limitation of number of requests in the loop bio > list. This can lead into some nasty situations when the caller spawns > tons of bio requests taking huge amount of memory. This is even more > obvious with discard

[patch] acpi, pm: fix build breakage

2012-11-08 Thread David Rientjes
Commit b87b49cd0efd ("ACPI / PM: Move device PM functions related to sleep states") declared acpi_target_system_state() for CONFIG_PM_SLEEP whereas it is only defined for CONFIG_ACPI_SLEEP, resulting in the following link error: drivers/built-in.o: In function `acpi_pm_device_sleep_wake':

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

2012-11-08 Thread Andrew Morton
On Thu, 8 Nov 2012 17:15:36 + Christoph Lameter wrote: > 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.

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

2012-11-08 Thread Andrew Morton
On Thu, 8 Nov 2012 11:29:32 -0500 Ed Cashin wrote: > Signed-off-by: Ed Cashin Could you please prepare decent changelogs for the patches? Several of these appear to be bugfixes but we have no description of the user-visible behavioural changes. So nobody knows what the patches do, nor which

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

2012-11-08 Thread Ed Cashin
On Nov 8, 2012, at 2:26 PM, Andrew Morton wrote: > On Thu, 8 Nov 2012 11:29:32 -0500 > Ed Cashin wrote: > >> Signed-off-by: Ed Cashin > > Could you please prepare decent changelogs for the patches? Several of > these appear to be bugfixes but we have no description of the > user-visible

Re: [PATCH 2/3] spi / ACPI: add ACPI enumeration support

2012-11-08 Thread Bjorn Helgaas
On Wed, Nov 7, 2012 at 2:56 AM, Mika Westerberg wrote: > On Tue, Nov 06, 2012 at 11:18:11PM +0100, Rafael J. Wysocki wrote: >> > How is the SPI controller different than this? Is there some logical >> > difference that requires a different framework? Or are you proposing >> > that we get rid of

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

2012-11-08 Thread Mika Westerberg
On Thu, Nov 08, 2012 at 03:55:18PM +, Grant Likely wrote: > Hi Mika, > > On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg > wrote: > > From: Mathias Nyman > > > > Add support for translating ACPI GPIO pin numbers to Linux GPIO API pins. > > Needs a gpio controller driver with the acpi

Re: [PATCH] usb: gadget: ncm: correct endianess conversion

2012-11-08 Thread Felipe Balbi
Hi, On Thu, Nov 08, 2012 at 08:07:57PM +0100, Dmytro Milinevskyy wrote: > > On Wed, Nov 07, 2012 at 02:14:00PM +0100, Dmytro Milinevskyy wrote: > >> Unfortunately I have some issues with git send-email. > >> I've attached the patch itself .. > > > > I'll apply it like that this time, but try to

Re: [RFC PATCH 0/8][Sorted-buddy] mm: Linux VM Infrastructure to support Memory Power Management

2012-11-08 Thread Srivatsa S. Bhat
On 11/08/2012 11:32 PM, Mel Gorman wrote: > On Wed, Nov 07, 2012 at 01:22:13AM +0530, Srivatsa S. Bhat wrote: >> >> >> Today memory subsystems are offer a wide range of capabilities for managing >> memory power consumption. As a quick

Re: Kdump with signed images

2012-11-08 Thread Vivek Goyal
On Tue, Nov 06, 2012 at 03:51:59PM -0800, Eric W. Biederman wrote: [..] Thnking more about executable signature verification, I have another question. While verifyign the signature, we will have to read the whole executable in memory. That sounds bad as we are in kernel mode and will not be

Re: Kdump with signed images

2012-11-08 Thread Vivek Goyal
On Thu, Nov 08, 2012 at 02:40:50PM -0500, Vivek Goyal wrote: > On Tue, Nov 06, 2012 at 03:51:59PM -0800, Eric W. Biederman wrote: > > [..] > > Thnking more about executable signature verification, I have another question. > > While verifyign the signature, we will have to read the whole

[PATCH] staging/media: Use dev_ or pr_ printks in lirc/lirc_sasem.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... - WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... - WARNING: Prefer netdev_err(netdev, ... then

[PATCH] staging/media: Use pr_ printks in lirc/lirc_sir.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... - WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... and add pr_fmt. Signed-off-by: YAMANE Toshiaki ---

[PATCH] staging/media: Use dev_ printks in lirc/igorplugusb.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki ---

[PATCH v2 5/5] ARM: zynq: add clk binding support to the ttc

2012-11-08 Thread Josh Cartwright
Add support for retrieving TTC configuration from device tree. This includes the ability to pull information about the driving clocks from the of_clk bindings. Signed-off-by: Josh Cartwright --- arch/arm/boot/dts/zynq-7000.dtsi | 53 arch/arm/boot/dts/zynq-zc702.dts | 10 ++

[PATCH] staging/media: Use pr_ printks in lirc/lirc_bt829.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... - WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... and add pr_fmt. Signed-off-by: YAMANE Toshiaki ---

[PATCH] staging/media: Use pr_ printks in lirc/lirc_parallel.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... - WARNING: Prefer netdev_notice(netdev, ... then dev_notice(dev, ... then pr_notice(... to printk(KERN_NOTICE ... - WARNING: Prefer netdev_info(netdev,

[RFC PATCH] mm: trace filemap add and del

2012-11-08 Thread Robert Jarzmik
Use the events API to trace filemap loading and unloading of file pieces into the page cache. This patch aims at tracing the eviction reload cycle of executable and shared libraries pages in a memory constrained environment. The typical usage is to spot a specific device and inode (for example

[PATCH v2 4/5] serial: xilinx_uartps: get clock rate info from dts

2012-11-08 Thread Josh Cartwright
Add support for specifying clock information for the uart clk via the device tree. This eliminates the need to hardcode rates in the device tree. Signed-off-by: Josh Cartwright --- arch/arm/boot/dts/zynq-7000.dtsi | 4 ++-- drivers/tty/serial/xilinx_uartps.c | 30

[PATCH] staging/media: Use dev_ or pr_ printks in lirc/lirc_imon.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... and add pr_fmt. Signed-off-by: YAMANE Toshiaki ---

<    4   5   6   7   8   9   10   11   12   >