[PATCH v2 0/5] fat: make persistent inode numbers and stablize for NFS.

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon This patch-set eliminates the client side ESTALE errors when a FAT partition exported over NFS has its dentries evicted from the cache. One of the reasons for this error is lack of permanent inode numbers on FAT which makes it difficult to construct persistent file handles.

[PATCH 05/11] asus-wmi: Restrict debugfs interface

2012-09-04 Thread Matthew Garrett
We have no way of validating what all of the Asus WMI methods do on a given machine, and there's a risk that some will allow hardware state to be manipulated in such a way that arbitrary code can be executed in the kernel. Add a capability check to prevent that. Signed-off-by: Matthew Garrett

[PATCH 01/11] Secure boot: Add new capability

2012-09-04 Thread Matthew Garrett
Secure boot adds certain policy requirements, including that root must not be able to do anything that could cause the kernel to execute arbitrary code. The simplest way to handle this would seem to be to add a new capability and gate various functionality on that. We'll then strip it from the

[PATCH 06/11] Restrict /dev/mem and /dev/kmem in secure boot setups

2012-09-04 Thread Matthew Garrett
Allowing users to write to address space makes it possible for the kernel to be subverted. Restrict this when we need to protect the kernel. Signed-off-by: Matthew Garrett --- drivers/char/mem.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/char/mem.c b/drivers/char/mem.c

[PATCH 07/11] kexec: Disable in a secure boot environment

2012-09-04 Thread Matthew Garrett
kexec could be used as a vector for a malicious user to use a signed kernel to circumvent the secure boot trust model. In the long run we'll want to support signed kexec payloads, but for the moment we should just disable loading entirely in that situation. Signed-off-by: Matthew Garrett ---

[PATCH 09/11] efi: Enable secure boot lockdown automatically when enabled in firmware

2012-09-04 Thread Matthew Garrett
The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should lock itself down. Signed-off-by: Matthew Garrett --- Documentation/x86/zero-page.txt | 2 ++ arch/x86/boot/compressed/eboot.c | 32

[RFC] First attempt at kernel secure boot support

2012-09-04 Thread Matthew Garrett
The UEFI Secure Boot trust model is based on it not being possible for a user to cause a signed OS to boot an unsigned OS, even if that user has administrative privileges. This is an initial attempt at a set of patches to reduce root's ability to modify the kernel. We've done this with an

[PATCH 08/11] Secure boot: Add a dummy kernel parameter that will switch on Secure Boot mode

2012-09-04 Thread Matthew Garrett
From: Josh Boyer This forcibly drops CAP_SECURE_FIRMWARE from both cap_permitted and cap_bset in the init_cred struct, which everything else inherits from. This works on any machine and can be used to develop even if the box doesn't have UEFI. Signed-off-by: Josh Boyer --- kernel/cred.c | 17

[PATCH 03/11] x86: Lock down IO port access in secure boot environments

2012-09-04 Thread Matthew Garrett
IO port access would permit users to gain access to PCI configuration registers, which in turn (on a lot of hardware) give access to MMIO register space. This would potentially permit root to trigger arbitrary DMA, so lock it down by default. Signed-off-by: Matthew Garrett ---

Re: A workaround for request_firmware() stuck in module_init

2012-09-04 Thread Ming Lei
On Tue, Sep 4, 2012 at 9:06 PM, Takashi Iwai wrote: > Hi, > > as I've got recently a few bug reports regarding the stuck with > request_firmware() in module_init of some sound drivers, I started > looking at the issue. Strangely, the problem doesn't happen on > openSUSE 12.2 although it has the

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Andi Shyti
On Tue, Sep 04, 2012 at 07:46:02PM +0800, Dong Aisheng wrote: > On Tue, Sep 04, 2012 at 07:35:45PM +0800, Andi Shyti wrote: > > Hi Dong, > > > > On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: > > > +static int __devinit syscon_probe(struct platform_device *pdev) > > > +{ > > > +

Re: [PATCH] Add feature-removal-schedule.txt removal to feature-removal-schedule.txt

2012-09-04 Thread Steven Rostedt
On Wed, 2012-08-29 at 09:28 +0800, Cong Wang wrote: > On Tue, Aug 28, 2012 at 2:22 AM, Steven Rostedt wrote: > > The file feature-removal-schedule.txt is ignored by most people except > > for people that add to it. It's more of a global TODO list for > > developers than being anything useful by

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-04 Thread Oleg Nesterov
On 09/03, Al Viro wrote: > > On Mon, Sep 03, 2012 at 06:05:38PM +0200, Oleg Nesterov wrote: > > > This is not easy to fix. ptrace_disable() and user_disable_single_step() > > is arch dependant, but at least on x86 it assumes that the tracee is not > > running, so exit_ptrace() can't do this. > >

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-09-04 Thread Steven Rostedt
On Tue, 2012-08-28 at 19:00 -0400, Mathieu Desnoyers wrote: > Looking again at: > > +#define hash_for_each_size(name, bits, bkt, node, obj, member) > \ > + for (bkt = 0; bkt < HASH_SIZE(bits); bkt++) > \ > +

Re: i386, v3.6-rc3: Kernel panic - not syncing: Fatal exception in interrupt

2012-09-04 Thread Robert Richter
On 04.09.12 11:16:16, Steven Rostedt wrote: > On Tue, 2012-08-28 at 10:12 +0200, Robert Richter wrote: > > BUG: unable to handle kernel NULL pointer dereference at 0040 > > IP: [] print_context_stack+0x6e/0x8d > > *pde = > > Oops: [#1] SMP > > Modules linked in: > > > > Pid:

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-09-04 Thread Tim Chen
On Tue, 2012-08-21 at 17:48 -0700, Tim Chen wrote: > > Thanks to Matthew's suggestions on improving the patch. Here's the > updated version. It seems to be sane when I booted my machine up. I > will put it through more testing when I get a chance. > > Tim > Matthew, The new patch seems to

Re: [RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Daniel Borkmann
On Tue, Sep 4, 2012 at 4:16 PM, Iulius Curt wrote: > synchronize_net is called every time we close a PF_PACKET socket which is > causing performance loss when doing this on many sockets. Do you have any particular use case in mind? I can imagine if you are closing a PF_PACKET socket in a network

Re: i386, v3.6-rc3: Kernel panic - not syncing: Fatal exception in interrupt

2012-09-04 Thread Steven Rostedt
On Tue, 2012-08-28 at 10:12 +0200, Robert Richter wrote: > On 27.08.12 17:14:27, Robert Richter wrote: > > Steven and Ingo, > > > > while running profiling tests on 32 bit I got a > > > > Kernel panic - not syncing: Fatal exception in interrupt Sorry for the late response, was too busy

[PATCH 02/16] Staging: ipack/bridges/tpci200: Use the TPCI200 in big endian mode.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge During initialization we configure the TPCI200 so it does not swap data lanes on IndustryPack module access. The read and write functions are changed accordingly. We are taking this approach in the hope that all IP Carriers are able to present the Module memory layout

[PATCH 06/16] Staging: ipack/devices/ipoctal: ipoctal cleanups.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Define memory address space, fix sparse warnings and mark the structs reflecting hardware memory layout "packed" to be on the safe side. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c | 14 ++---

[RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Iulius Curt
synchronize_net is called every time we close a PF_PACKET socket which is causing performance loss when doing this on many sockets. Signed-off-by: Sorin Dumitru Signed-off-by: Iulius Curt --- Statistics using test program [1] Sockets count | Not patched | Patched

[PATCH 04/16] Staging: ipack/bridges/tpci200: Remove the read/write functions from ipack_bus_ops.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge They are not used any longer. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c | 218 --- 1 file changed, 218 deletions(-) diff --git a/drivers/staging/ipack/bridges/tpci200.c

[PATCH 08/16] Staging: ipack: implement ipack device table.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge The modaliases look like ipack:fXvNdM, where X is the format version (8 bit) and N and M are the vendor and device ID represented as 32 bit hexadecimal numbers each. Using 32 bits allows us to define IPACK_ANY_ID as (~0) without interfering with the valid ids. The resulting

[PATCH 09/16] Staging: ipack: Read the ID space during device registration.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge We keep a copy of the ID space for later use. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.c | 80 + drivers/staging/ipack/ipack.h |5 +++ 2 files changed, 85

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Stefano Panella
On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if hwdev->coherent_dma_mask is set to 0x our dma_mask will be u64 set to 0x even if we set it to

[PATCH 14/16] Staging: ipack: Implement device matching on the bus level.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Devices are match based upon their vendor and device ids. Since the individual drivers provide a list of supported ids they do not need to implement the matching themselves. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez ---

[PATCH 13/16] Staging: ipack/devices/ipoctal: Expose DEVICE_TABLE for ipoctal.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge The modalias entries for the module are now created. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH 12/16] Staging: ipack: Make ipack_driver_ops const.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c |8 +--- drivers/staging/ipack/ipack.h |2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v3] UDF: Add support for O_DIRECT

2012-09-04 Thread Ian Abbott
On 2012-09-04 15:39, Jan Kara wrote: Hello, first, you have my address wrong (you had suze instead of suse) which is why I wasn't getting your email and not replying (missed the patch in LKML traffic). Second, it's good to CC also linux-fsdevel for UDF related matters (I tend to use that

[PATCH 16/16] Staging: ipack: Provide ID Prom through sysfs.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c index

[PATCH 15/16] Staging: ipack: Expose modalias through sysfs.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Also include it in the hotplug event so that udev can provide the respective driver. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.c | 36 1 file changed, 36 insertions(+) diff

[PATCH 10/16] Staging: ipack: Parse vendor and device id.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Also expose the values through sysfs. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.c | 81 +++-- drivers/staging/ipack/ipack.h |4 +- 2 files changed, 80 insertions(+), 5

[PATCH 07/16] Staging: ipack/devices/ipoctal: Tidy up ipoctal some more.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge No need to have a struct when it has only one field. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c | 82 +++--- drivers/staging/ipack/devices/scc2698.h | 116

[PATCH 11/16] Staging: ipack: Move device ids from ipoctal.c to ipack_ids.h.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Rename them in the process. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c | 26 +++--- drivers/staging/ipack/ipack_ids.h |5 + 2 files changed, 16 insertions(+), 15

[PATCH 05/16] Staging: ipack: remove read/write operations from ipack_bus_ops

2012-09-04 Thread Samuel Iglesias Gonsálvez
They are not used any longer. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/ipack.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/ipack/ipack.h b/drivers/staging/ipack/ipack.h index 8bc001e..e3609b1 100644

[PATCH 01/16] Staging: ipack/bridges/tpci200: Reorganize tpci200_probe in preparation for functional changes.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge These changes make it easier to add more initialization steps later on. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/bridges/tpci200.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-)

[PATCH 03/16] Staging: ipack/devices/ipoctal: Convert ipoctal to directly use ioread/write functions.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge Before it was using the functions in ipack_bus_ops. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez --- drivers/staging/ipack/devices/ipoctal.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git

[PATCH 00/16] ipack: autoload IP module drivers

2012-09-04 Thread Samuel Iglesias Gonsálvez
Hello, This bunch of patches adds support to autoload IP module drivers when they are detected by the ipack bus driver. Also, it changes the endianness of the carrier device to Big Endian as it is defined in the Industry Pack standard. Due to that, the source code is simplified too. There are

Re: [PATCH] USB/host: Cleanup unneccessary irq disable code

2012-09-04 Thread Alan Stern
On Sat, 1 Sep 2012, Liu, Chuansheng wrote: > From: liu chuansheng > Subject: [PATCH] USB/host: Cleanup unneccessary irq disable code > > Because the IRQF_DISABLED as the flag is now a NOOP and has been > deprecated and in hardirq context the interrupt is disabled. > > so in usb/host code: >

Re: [RFC] [PATCH] HID: remove Paul Walmsley's copyright from places where it shouldn't be

2012-09-04 Thread Paul Walmsley
Hello Jiří, On Tue, 4 Sep 2012, Jiri Kosina wrote: > Paul Walmsley has implemented dynamic quirk handling back in 2007 through > commits: > > 2eb5dc30eb ("USB HID: encapsulate quirk handling into hid-quirks.c") > 8222fbe67c ("USB HID: clarify static quirk handling as squirks") > 8cef908235

[PATCH] KVM: tsc deadline timer works only when hrtimer high resolution configured

2012-09-04 Thread Liu, Jinsong
>From 728a17e2de591b557c3c8ba31076b4bf2ca5ab42 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong Date: Wed, 5 Sep 2012 03:18:15 +0800 Subject: [PATCH] KVM: tsc deadline timer works only when hrtimer high resolution configured This is for 2 reasons: 1. it's pointless to enable tsc deadline timer to

Re: [PATCH] [RFC]power: battery: Generic battery driver using IIO

2012-09-04 Thread anish kumar
On Sun, 2012-09-02 at 14:34 -0700, Anton Vorontsov wrote: > On Sun, Sep 02, 2012 at 09:44:04PM +0530, Sannu K wrote: [...] > > Just Curious what is the use of this module? Is there any user space > > program uses this? When ACPI drivers for battery is available how > > useful will this be? > >

Re: [RFC] module: signature infrastructure

2012-09-04 Thread Kasatkin, Dmitry
On Tue, Sep 4, 2012 at 5:25 PM, Lucas De Marchi wrote: > Hi Rusty, > > On Tue, Sep 4, 2012 at 2:55 AM, Rusty Russell wrote: >> OK, I took a look at the module.c parts of David and Dmitry's patchsets, >> and didn't really like either, but I stole parts of David's to make >> this. >> >> So, here's

Re: [PATCH v3] hwmon: add Maxim MAX197 support

2012-09-04 Thread anish kumar
On Sun, 2012-09-02 at 07:51 -0700, Guenter Roeck wrote: > On Sat, Sep 01, 2012 at 11:31:11AM +0200, Lars-Peter Clausen wrote: > > On 08/31/2012 06:04 PM, Guenter Roeck wrote: > > > On Thu, Aug 30, 2012 at 09:42:57PM -0400, Vivien Didelot wrote: > > >> The MAX197 is an A/D converter, made by Maxim.

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 04:55:56PM +0200, Paolo Bonzini wrote: > Il 04/09/2012 16:47, Michael S. Tsirkin ha scritto: > >> > static void virtscsi_init_vq(struct virtio_scsi_vq *virtscsi_vq, > >> > - struct virtqueue *vq) > >> > + struct

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-09-04 Thread Vivek Goyal
On Fri, Aug 31, 2012 at 07:13:48PM -0700, Tejun Heo wrote: > Hello, Vivek. > > On Thu, Aug 30, 2012 at 06:07:45PM -0400, Vivek Goyal wrote: > > Here is one quick and dirty proof of concept patch. It checks for stack > > depth and if remaining space is less than 20% of stack size, then it > >

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Glauber Costa
>> I believe it would be really great to have a way to turn the default >> to 1 - and stop the shouting. > > We already can. You can use /etc/cgconfig (if you are using libcgroup) > or do it manually. > >> Even if you are doing it in OpenSUSE as a patch, an upstream patch means >> at least that

Re: RCU warning during UBI file system mount

2012-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2012 at 10:46:36AM +0300, Artem Bityutskiy wrote: > Let's CC LKML and Paul. > > > On Sat, 2012-09-01 at 22:19 -0700, Subodh Nijsure wrote: > > Hello, > > > > I am running 3.6-rc4 kernel on my MX28 based board and every time I > > mount UBI file system I see following warning.

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 16:47, Michael S. Tsirkin ha scritto: >> > static void virtscsi_init_vq(struct virtio_scsi_vq *virtscsi_vq, >> > - struct virtqueue *vq) >> > + struct virtqueue *vq, bool affinity) >> > { >> >spin_lock_init(_vq->vq_lock); >> >

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread David Vrabel
On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: > On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: >> >> So if hwdev->coherent_dma_mask is set to 0x our dma_mask will >> be u64 set to 0x even if we set it to DMA_BIT_MASK(32) >> previously. > >

RE: [PATCH] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-04 Thread David Laight
> + /* Read command completed register */ > + done_mask = ioread32(hcr_base + CC); > + > + if (host_priv->quirks & SATA_FSL_QUIRK_V2_ERRATA) { > + if (unlikely(hstatus & INT_ON_DATA_LENGTH_MISMATCH)) { > + for (tag = 0; tag < ATA_MAX_QUEUE; tag++) { > +

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Michal Hocko
On Tue 04-09-12 18:37:53, Glauber Costa wrote: > On 09/04/2012 06:35 PM, Michal Hocko wrote: > > On Tue 04-09-12 17:27:20, Glauber Costa wrote: > >> On 09/04/2012 05:09 PM, Michal Hocko wrote: > >>> Not really. Do it slowly means that somebody actually _notices_ that > >>> something is about to

[ANNOUNCE] util-linux v2.22

2012-09-04 Thread Karel Zak
The util-linux release v2.22 is available at ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22 Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.22 Release Notes = The cryptoloop support in the commands mount(8) and losetup(8) is

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Konrad Rzeszutek Wilk
On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: > On 08/31/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: > >>On 31/08/12 10:57, Stefano Panella wrote: > >>>When running 32-bit pvops-dom0 and a driver tries to allocate

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Aug 28, 2012 at 01:54:17PM +0200, Paolo Bonzini wrote: > @@ -575,15 +630,19 @@ static struct scsi_host_template virtscsi_host_template > = { > &__val, sizeof(__val)); \ > }) > > + Pls don't add empty lines. > static void virtscsi_init_vq(struct

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Vivek Goyal
On Tue, Sep 04, 2012 at 10:12:49PM +0800, Tao Ma wrote: > On 09/04/2012 09:35 PM, Vivek Goyal wrote: > > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > > > [..] > >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c > >> index 1588c2d..9317d71 100644 > >> ---

[PATCH] watchdog: omap_wdt: convert to new watchdog core

2012-09-04 Thread Aaro Koskinen
Convert omap_wdt to new watchdog core. On OMAP boards, there are usually multiple watchdogs. Since the new watchdog core supports multiple watchdogs, all watchdog drivers used on OMAP should be converted. The legacy watchdog device node is still created, so this should not break existing users.

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Glauber Costa
On 09/04/2012 06:35 PM, Michal Hocko wrote: > On Tue 04-09-12 17:27:20, Glauber Costa wrote: >> On 09/04/2012 05:09 PM, Michal Hocko wrote: >>> Not really. Do it slowly means that somebody actually _notices_ that >>> something is about to change and they have a lot of time for that. This >>> will

[GIT PULL] sound fixes for 3.6-rc5

2012-09-04 Thread Takashi Iwai
Linus, The following changes since commit 53e1719f3da0f095b8db1461bd12dd79f3246b84: ALSA: snd-als100: fix suspend/resume (2012-08-21 07:29:40 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.6 for you to fetch

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 04:30:35PM +0200, Paolo Bonzini wrote: > Il 04/09/2012 16:21, Michael S. Tsirkin ha scritto: > > > One reason is that, even though in practice I expect roughly the same > > > number of targets and VCPUs, hotplug means the number of targets is > > > difficult to predict and

Re: [PATCH v3] UDF: Add support for O_DIRECT

2012-09-04 Thread Jan Kara
hem > a bit neater. > > Signed-off-by: Ian Abbott > --- > v2: Rework error handling in udf_direct_IO to avoid calling deprecated > vmtruncate(). > v3: Rebased to next-20120904. > --- > fs/udf/file.c | 29 + > fs/udf/inode.c | 52 +++

[PATCH v2 3/6] device_cgroup: convert device_cgroup internally to policy + exceptions

2012-09-04 Thread Aristeu Rozanski
The original model of device_cgroup is having a whitelist where all the allowed devices are listed. The problem with this approach is that is impossible to have the case of allowing everything but few devices. The reason for that lies in the way the whitelist is handled internally: since there's

[PATCH v2 5/6] device_cgroup: rename whitelist to exception list

2012-09-04 Thread Aristeu Rozanski
This patch replaces the "whitelist" usage in the code and comments and replace them by exception list related information. v2: - fix checkpatch warnings Cc: Tejun Heo Cc: Li Zefan Cc: James Morris Cc: Pavel Emelyanov Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski ---

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Michal Hocko
On Tue 04-09-12 17:27:20, Glauber Costa wrote: > On 09/04/2012 05:09 PM, Michal Hocko wrote: > > Not really. Do it slowly means that somebody actually _notices_ that > > something is about to change and they have a lot of time for that. This > > will be really hard with the config option saying N

[PATCH v2 0/6] device_cgroup: replace internally whitelist with exception list

2012-09-04 Thread Aristeu Rozanski
The original model of device_cgroup is having a whitelist where all the allowed devices are listed. The problem with this approach is that is impossible to have the case of allowing everything but few devices. The reason for that lies in the way the whitelist is handled internally: since there's

[PATCH v2 2/6] device_cgroup: introduce dev_whitelist_clean()

2012-09-04 Thread Aristeu Rozanski
This function cleans all the items in a whitelist and will be used by the next patches. v2: - no changes Cc: Tejun Heo Cc: Li Zefan Cc: James Morris Cc: Pavel Emelyanov Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- security/device_cgroup.c | 22 +- 1 file

Re: [PATCH] USB: ohci-at91: fix PIO handling in relation with number of ports

2012-09-04 Thread Alan Stern
On Tue, 4 Sep 2012, Nicolas Ferre wrote: > On 08/29/2012 11:49 AM, Nicolas Ferre : > > If the number of ports present on the SoC/board is not the maximum > > and that the platform data is not filled with all data, there is > > an easy way to mess the PIO setup for this interface. > > This quick

[PATCH v2 6/6] device_cgroup: introduce a new, more consistent interface for device_cgroup

2012-09-04 Thread Aristeu Rozanski
Internally device_cgroup now uses a default rule (behavior) and an exception list and this interface reflects it. The new files, devices.behavior ('allow' or 'deny') and devices.exceptions map directly to the internal state. Also, update documentation about the new interface. Cc: Tejun Heo Cc:

[PATCH v2 1/6] device_cgroup: add "behavior" in dev_cgroup structure

2012-09-04 Thread Aristeu Rozanski
behavior will determine if the default policy is to deny all device access unless for the ones in the exception list. This variable will be used in the next patches to convert device_cgroup internally into a default policy + rules. v2: - renamed deny_all to behavior Cc: Tejun Heo Cc: Li Zefan

[PATCH v2 4/6] device_cgroup: stop using simple_strtoul()

2012-09-04 Thread Aristeu Rozanski
This patch converts the code to use kstrtou32() instead of simple_strtoul() which is deprecated. The real size of the variables are u32, so use kstrtou32 instead of kstrtoul Signed-off-by: Aristeu Rozanski --- security/device_cgroup.c | 28 ++-- 1 file changed, 22

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 16:21, Michael S. Tsirkin ha scritto: > > One reason is that, even though in practice I expect roughly the same > > number of targets and VCPUs, hotplug means the number of targets is > > difficult to predict and is usually fixed to 256. > > > > The other reason is that per-target

Re: [PATCH 3/3] i2c: nomadik: Add Device Tree support to the Nomadik I2C driver

2012-09-04 Thread Arnd Bergmann
On Monday 03 September 2012, Lee Jones wrote: > > But if you are handling both, then I agree that platform_data should > > override DT. > > I do agree with this, but I haven't stumbled over such a use-case yet. > I have only provided; clock names, DMA settings and call-back information > via

Re: [PATCH 2/7] mm: fix potential anon_vma locking issue in mprotect()

2012-09-04 Thread Andrea Arcangeli
Hi Michel, On Tue, Sep 04, 2012 at 02:20:52AM -0700, Michel Lespinasse wrote: > This change fixes an anon_vma locking issue in the following situation: > - vma has no anon_vma > - next has an anon_vma > - vma is being shrunk / next is being expanded, due to an mprotect call > > We need to take

Re: [PATCH 0/3] Fix ACPI BGRT support for images located in EFI boot services memory

2012-09-04 Thread Matt Fleming
On Thu, 2012-08-30 at 14:28 -0700, Josh Triplett wrote: > The ACPI BGRT lets the OS access the BIOS logo image and its position on the > screen at boot time, allowing it to maintain that image on the screen until > ready to display something else, making boot more seamless. This series fixes >

Re: [RFC] module: signature infrastructure

2012-09-04 Thread Lucas De Marchi
Hi Rusty, On Tue, Sep 4, 2012 at 2:55 AM, Rusty Russell wrote: > OK, I took a look at the module.c parts of David and Dmitry's patchsets, > and didn't really like either, but I stole parts of David's to make > this. > > So, here's the module.c part of module signing. I hope you two got time >

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 16:19, Michael S. Tsirkin ha scritto: > > > Also - some kind of comment explaining why a similar race can not happen > > > with this lock in place would be nice: I see why this specific race can > > > not trigger but since lock is dropped later before you submit command, I > > > have

Re: [PATCH v2 1/4] [RFC] clk: new locking scheme for reentrancy

2012-09-04 Thread Shawn Guo
On Wed, Aug 15, 2012 at 04:43:31PM -0700, Mike Turquette wrote: > +void __clk_unprepare(struct clk *clk, struct clk *top) > +{ > if (clk->ops->unprepare) > clk->ops->unprepare(clk->hw); > > - __clk_unprepare(clk->parent); > + if (clk != top) > +

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Vivek Goyal
On Tue, Sep 04, 2012 at 10:12:49PM +0800, Tao Ma wrote: > On 09/04/2012 09:35 PM, Vivek Goyal wrote: > > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > > > [..] > >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c > >> index 1588c2d..9317d71 100644 > >> ---

[RFC 1/5] cgroup: allow some comounts to be forced.

2012-09-04 Thread Glauber Costa
One of the pain points we have today with cgroups, is the excessive flexibility coming from the fact that controllers can be mounted at will, without any relationship with each other. Although this is nice in principle, this comes with a cost that is not always welcome in practice. The very fact

[RFC 4/5] cpuacct: do not gather cpuacct statistics when not mounted

2012-09-04 Thread Glauber Costa
Currently, the only test that prevents us from running the expensive cpuacct_charge() is cpuacct_subsys.active == true. This will hold at all times after the subsystem is activated, even if it is not mounted. IOW, use it or not, you pay it. By hooking with the bind() callback, we can detect when

[RFC 3/5] sched: do not call cpuacct_charge when cpu and cpuacct are comounted

2012-09-04 Thread Glauber Costa
cpuacct_charge() incurs in some quite expensive operations to achieve its measurement goal. To make matters worse, this cost is not constant, but grows with the depth of the cgroup hierarchy tree. Also, all this data is already available anyway in the scheduler core. The fact that the cpuacct

[RFC 2/5] sched: adjust exec_clock to use it as cpu usage metric

2012-09-04 Thread Glauber Costa
exec_clock already provides per-group cpu usage metrics, and can be reused by cpuacct in case cpu and cpuacct are comounted. However, it is only provided by tasks in fair class. Doing the same for rt is easy, and can be done in an already existing hierarchy loop. This is an improvement over the

[RFC 5/5] sched: add cpusets to comounts list

2012-09-04 Thread Glauber Costa
Although we have not yet identified any place where cpusets could be improved performance-wise by guaranteeing comounts with the other two cpu cgroups, it is a sane choice to mount them together. We can preemptively benefit from it and avoid a growing mess, by guaranteeing that subsystems that

[RFC 0/5] forced comounts for cgroups.

2012-09-04 Thread Glauber Costa
Hi, As we have been extensively discussing, the cost and pain points for cgroups come from many places. But at least one of those is the arbitrary nature of hierarchies. Many people, including at least Tejun and me would like this to go away altogether. Problem so far, is breaking compatiblity

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 03:49:42PM +0200, Paolo Bonzini wrote: > Il 04/09/2012 14:48, Michael S. Tsirkin ha scritto: > >> > This patch adds queue steering to virtio-scsi. When a target is sent > >> > multiple requests, we always drive them to the same queue so that FIFO > >> > processing order is

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 03:45:57PM +0200, Paolo Bonzini wrote: > > Also - some kind of comment explaining why a similar race can not happen > > with this lock in place would be nice: I see why this specific race can > > not trigger but since lock is dropped later before you submit command, I > >

Re: [RFC] VFS: File System Mount Wide O_DIRECT Support

2012-09-04 Thread Matthew Wilcox
On Tue, Sep 04, 2012 at 06:57:14AM -0400, Christoph Hellwig wrote: > On Tue, Sep 04, 2012 at 06:17:47PM +0800, Li Wang wrote: > > For file system created on file-backed loop device, there will be > > two-levels of > > page cache present, which typically doubles the memory consumption. > > And

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Tao Ma
On 09/04/2012 09:35 PM, Vivek Goyal wrote: > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > [..] >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c >> index 1588c2d..9317d71 100644 >> --- a/block/blk-throttle.c >> +++ b/block/blk-throttle.c >> @@ -46,6 +46,8 @@ struct

Re: [PATCH] virtio: Don't access device data after unregistration.

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 02:12:33PM +0200, Sjur Brændeland wrote: > Hi Michael, > > >> >> Fix panic in virtio.c when CONFIG_DEBUG_SLAB is set. > >> > > >> > What's the root cause of the panic? > >> > >> I believe the cause of the panic is calling > >> ida_simple_remove(_index_ida, dev->index); >

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Stefano Panella
On 08/31/2012 05:40 PM, Konrad Rzeszutek Wilk wrote: On Fri, Aug 31, 2012 at 01:47:05PM +0100, David Vrabel wrote: On 31/08/12 10:57, Stefano Panella wrote: When running 32-bit pvops-dom0 and a driver tries to allocate a coherent DMA-memory the xen swiotlb-implementation returned memory beyond

[PATCH] gpio: sx150x: Use irq_data_get_irq_chip_data() at appropriate places

2012-09-04 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-sx150x.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpio-sx150x.c b/drivers/gpio/gpio-sx150x.c index a4f7353..eb3e215 100644 --- a/drivers/gpio/gpio-sx150x.c +++

[PATCH] rts_pstor: Fix invalid check

2012-09-04 Thread Alan Cox
From: Alan Cox As noted by David Binderman Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=46581 Signed-off-by: Alan Cox --- drivers/staging/rts_pstor/rtsx_scsi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts_pstor/rtsx_scsi.c

[PATCH] gpio: em: Use irq_data_get_irq_chip_data() at appropriate places

2012-09-04 Thread Axel Lin
Then we can remove irq_to_priv() function. Signed-off-by: Axel Lin --- drivers/gpio/gpio-em.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index ec48ed5..efb4c2d 100644 --- a/drivers/gpio/gpio-em.c +++

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-09-04 Thread Vivek Goyal
On Mon, Sep 03, 2012 at 10:49:27AM +1000, Dave Chinner wrote: > On Thu, Aug 30, 2012 at 06:07:45PM -0400, Vivek Goyal wrote: > > On Wed, Aug 29, 2012 at 10:13:45AM -0700, Kent Overstreet wrote: > > > > [..] > > > > Performance aside, punting submission to per device worker in case of > > > >

[PATCH v3 1/2] hw_random: mxc-rnga: Adapt clocks to new i.mx clock framework

2012-09-04 Thread Fabio Estevam
Adapt clocks to the new i.mx clock framework and fix the following warning: [ cut here ] WARNING: at drivers/clk/clk.c:511 __clk_enable+0x9c/0xac() Modules linked in: Backtrace: [<800124c8>] (dump_backtrace+0x0/0x10c) from [<804172dc>] (dump_stack+0x18/0x1c) r7:0009

[PATCH v3 2/2] hw_random: mxc-rnga: Access data via structure

2012-09-04 Thread Fabio Estevam
In current driver, everytime we need to access the rng clock ,ie to enable or disable it, a call to clk_get is done. This is not correct and the preferred way is to provide a rng data structure that could be used for accessing rng resources. Acked-by: Sascha Hauer Signed-off-by: Fabio Estevam

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 14:48, Michael S. Tsirkin ha scritto: >> > This patch adds queue steering to virtio-scsi. When a target is sent >> > multiple requests, we always drive them to the same queue so that FIFO >> > processing order is kept. However, if a target was idle, we can choose >> > a queue

Re: [RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 01:28:36PM +0200, Sjur Brændeland wrote: > Hi Michael, > > >> If an architecture do not support DMA you will get > >> a link error: "unknown symbol" for dma_alloc_coherent. > > > > Yes, it even seems intentional. > > But I have a question: can the device work without DMA?

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 15:35, Michael S. Tsirkin ha scritto: > I see. I guess you can rewrite this as: > atomic_inc > if (atomic_read() == 1) > which is a bit cheaper, and make the fact > that you do not need increment and return to be atomic, > explicit. It seems more complicated to me for hardly any

Re: [PATCH V3 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-09-04 Thread Matthew Garrett
On Thu, Aug 23, 2012 at 05:44:22PM -0600, Bjorn Helgaas wrote: > On Thu, Aug 23, 2012 at 10:36 AM, Matthew Garrett wrote: > > EFI provides support for providing PCI ROMs via means other than the ROM > > BAR. This support vanishes after we've exited boot services, so add support > > for stashing

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