Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread Will Deacon
Hi Andre, On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: > Am 08.02.2013 16:48, schrieb Will Deacon: > > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > >> No, i'm not sure how to improve this. How does the process can continue, > >> can you or someone else

Re: [PATCH linux-next] drm/radeon: Avoid NULL pointer dereference from atom_index_iio() allocation failure

2013-02-12 Thread Alex Deucher
On Mon, Feb 11, 2013 at 4:34 PM, Tim Gardner wrote: > Smatch anlysis: > > drivers/gpu/drm/radeon/atom.c:1242 atom_index_iio() error: potential null > dereference 'ctx->iio'. (kzalloc returns null) > > Also cleaned up some checks before calls to kfree(). kfree(NULL) is OK. > > Cc: David Airlie

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread André Hentschel
Am 08.02.2013 16:48, schrieb Will Deacon: > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: >> Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: >>> On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: There are more and more applications coming to WinRT,

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Michal Simek wrote: > ok but still there should be well defined how to do it. Let's say > generic Kconfig option. You cannot solve it in a generic way, since every device has different needs. In a single SoC, you may have one device that only ever exists with

Re: [v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Hiroshi Doyu wrote: > > >>> static void __init paz00_init(void) > > >>> @@ -129,6 +128,9 @@ static void __init tegra_dt_init_late(void) > > >>> > > >>> tegra_init_late(); > > >>> > > >>> + if (IS_ENABLED(CONFIG_PCI) && IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC)) > >

Re: linux-next: manual merge of the arm-soc tree with the metag tree

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Stephen Rothwell wrote: > Today's linux-next merge of the arm-soc tree got conflicts in > drivers/clocksource/Makefile and drivers/clocksource/Kconfig between > commit 3fedb0674fbc ("metag: Time keeping") from the metag tree and > commits 8a4da6e36c58 ("arm:

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-12 Thread Mitsuhiro Tanino
Hello Andrew, I proposed following patch set to support hwpoison flag at kdump second kernel. These patch set includes fixes of both kernel side and makedumpfile side, and both pathes have been acked by maintainers who are Eric and Kumagai-san. [PATCH 0/2 v2] Exclude hwpoison page from vmcore

Re: [PATCH v2] sched: fix wrong rq's runnable_avg update with rt task

2013-02-12 Thread Vincent Guittot
On 12 February 2013 14:23, Vincent Guittot wrote: > When a RT task is scheduled on an idle CPU, the update of the rq's load is > not done because CFS's functions are not called. Then, the idle_balance, > which is called just before entering the idle function, updates the > rq's load and makes the

[PATCH v2] sched: fix wrong rq's runnable_avg update with rt task

2013-02-12 Thread Vincent Guittot
When a RT task is scheduled on an idle CPU, the update of the rq's load is not done because CFS's functions are not called. Then, the idle_balance, which is called just before entering the idle function, updates the rq's load and makes the assumption that the elapsed time since the last update,

[PATCH] sched: fix env->src_cpu for active migration

2013-02-12 Thread Vincent Guittot
need_active_balance uses env->src_cpu which is set only if there is more than 1 task on the run queue. We must set the src_cpu field unconditionnally otherwise the test "env->src_cpu > env->dst_cpu" will always fail if there is only 1 task on the run queue Signed-off-by: Vincent Guittot ---

Re: Getting rid of freezer for suspend [was Re: [fuse-devel] [PATCH] fuse: make fuse daemon frozen along with kernel threads]

2013-02-12 Thread Miklos Szeredi
On Tue, Feb 12, 2013 at 2:13 PM, Miklos Szeredi wrote: > On Tue, Feb 12, 2013 at 11:46 AM, Pavel Machek wrote: > >> (After all, with FUSE, filesystem clients are just doing IPC. In ideal >> world, that would be freezeable and killable with -9). > > Exactly. > > Attaching a patch And this time

Re: Getting rid of freezer for suspend [was Re: [fuse-devel] [PATCH] fuse: make fuse daemon frozen along with kernel threads]

2013-02-12 Thread Miklos Szeredi
On Tue, Feb 12, 2013 at 11:46 AM, Pavel Machek wrote: > (After all, with FUSE, filesystem clients are just doing IPC. In ideal > world, that would be freezeable and killable with -9). Exactly. Attaching a patch > > Pavel

Re: MODSIGN without RTC?

2013-02-12 Thread Alexander Holler
Am 11.02.2013 20:44, schrieb Alexander Holler: Am 07.02.2013 19:44, schrieb Olaf Titz: Another option would be to make a configure option to just ignore the date. I'm not sure if I would like to use MODSIGN when I have to fear that the machine wouldn't start when the RTC fails or got set to a

[PATCH v3 0/5] virtio-scsi multiqueue

2013-02-12 Thread Paolo Bonzini
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). The patches build on top of the new virtio APIs at http://permalink.gmane.org/gmane.linux.kernel.virtualization/18431; the new API simplifies the

[PATCH v3 5/5] virtio-scsi: reset virtqueue affinity when doing cpu hotplug

2013-02-12 Thread Paolo Bonzini
From: Wanlong Gao Add hot cpu notifier to reset the request virtqueue affinity when doing cpu hotplug. Cc: linux-s...@vger.kernel.org Signed-off-by: Wanlong Gao [ The version that doesn't get/put_online_cpus is now called __virtscsi_set_affinity - Paolo ] Signed-off-by: Paolo Bonzini ---

[PATCH v3 3/5] virtio-scsi: push vq lock/unlock into virtscsi_vq_done

2013-02-12 Thread Paolo Bonzini
Avoid duplicated code in all of the callers. Cc: linux-s...@vger.kernel.org Signed-off-by: Paolo Bonzini --- drivers/scsi/virtio_scsi.c | 22 +- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index

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

2013-02-12 Thread Paolo Bonzini
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 arbitrarily. In this case the queue is chosen according to the current VCPU,

[PATCH v3 2/5] virtio-scsi: pass struct virtio_scsi to virtqueue completion function

2013-02-12 Thread Paolo Bonzini
This will be needed soon in order to retrieve the per-target struct. Cc: linux-s...@vger.kernel.org Signed-off-by: Paolo Bonzini --- drivers/scsi/virtio_scsi.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/virtio_scsi.c

[PATCH v3 1/5] virtio-scsi: redo allocation of target data

2013-02-12 Thread Paolo Bonzini
virtio_scsi_target_state is now empty, but we will find new uses for it in the next few patches. However, dropping the sglist lets us turn the array-of-pointers into a simple array, which simplifies the allocation. However, we do not leave the virtio_scsi_target_state structs in the flexible

[PATCH] ieee802154/at231rf230: deadlock in at86rf230_xmit

2013-02-12 Thread Denis Efremov
spin_lock(>lock) is used in at86rf230_isr interrupt handler and in at86rf230_xmit callback to protect lp->irq_disabled. It seems that deadlock is possible, because: at86rf230_xmit spin_lock(>lock); // acquired // interrupt at86rf230_isr spin_lock(>lock); // deadlock To prevent it,

Re: [PATCH] pinctrl/pinconfig: add debug interface

2013-02-12 Thread Linus Walleij
On Mon, Feb 11, 2013 at 9:53 PM, Stephen Warren wrote: > On 02/10/2013 01:11 PM, Linus Walleij wrote: >> From: Laurent Meunier >> >> This update adds a debugfs interface to modify a pin configuration >> for a given state in the pinctrl map. This allows to modify the >> configuration for a

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-12 Thread Linus Walleij
On Mon, Feb 11, 2013 at 5:50 PM, Max Filippov wrote: > FWIW I see that the issue is caused by building drivers/gpio/devres.c > with CONFIG_GPIOLIB=n. Should I just turn GPIO_DEVRES off too? Hm. Shawn just added: +config GPIO_DEVRES + def_bool y + depends on HAS_IOMEM Can you

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Benjamin Herrenschmidt
On Tue, 2013-02-12 at 11:11 +0100, Michal Simek wrote: > For high performance IPs using accessors functions is still > problematic > because there will be performance regression it means that > from my point of view there still should be any option to "setup" > proper endians for the driver and it

Re: [PATCH 6/9] gpiolib: use descriptors internally

2013-02-12 Thread Linus Walleij
On Mon, Feb 11, 2013 at 6:39 PM, Stephen Warren wrote: > On 02/11/2013 07:09 AM, Linus Walleij wrote: >> However if you take this all the way to the descriptor API >> it will make the consumer (driver) API for GPIO descriptors deviate >> from what is today used for clocks, regulators and pins.

[PATCH 2/9] virtio-blk: reorganize virtblk_add_req

2013-02-12 Thread Paolo Bonzini
Right now, both virtblk_add_req and virtblk_add_req_wait call virtqueue_add_buf. To prepare for the next patches, abstract the call to virtqueue_add_buf into a new function __virtblk_add_req, and include the waiting logic directly in virtblk_add_req. Signed-off-by: Paolo Bonzini ---

[PATCH 5/9] scatterlist: introduce sg_unmark_end

2013-02-12 Thread Paolo Bonzini
This is useful in places that recycle the same scatterlist multiple times, and do not want to incur the cost of sg_init_table every time in hot paths. Acked-by: Jens Axboe Signed-off-by: Paolo Bonzini --- block/blk-integrity.c |2 +- block/blk-merge.c |2 +-

[PATCH 1/9] virtio: add functions for piecewise addition of buffers

2013-02-12 Thread Paolo Bonzini
virtio device drivers translate requests from higher layer in two steps: a device-specific step in the device driver, and generic preparation of virtio direct or indirect buffers in virtqueue_add_buf. Because virtqueue_add_buf also accepts the outcome of the first step as a single struct

[PATCH 6/9] virtio-net: unmark scatterlist ending after virtqueue_add_buf

2013-02-12 Thread Paolo Bonzini
Prepare for when virtqueue_add_buf will use sg_next instead of ignoring ending markers. Note that for_each_sg (and thus virtqueue_add_sg) allows you to pass a "truncated" scatterlist that does not have a marker on the last item. We rely on this in add_recvbuf_mergeable. Signed-off-by: Paolo

[PATCH 9/9] virtio: reimplement virtqueue_add_buf using new functions

2013-02-12 Thread Paolo Bonzini
Eliminate the code duplication between virtqueue_add_buf and virtqueue_add_sg. That's safe to do now that no devices will pass scatterlists with a termination marker in the middle. Signed-off-by: Paolo Bonzini --- drivers/virtio/virtio_ring.c | 159 +++---

[PATCH 8/9] virtio: introduce and use virtqueue_add_buf_single

2013-02-12 Thread Paolo Bonzini
Adding a single direct buffer is a very common case. Introduce an optimized function for that. Signed-off-by: Paolo Bonzini --- drivers/char/hw_random/virtio-rng.c |2 +- drivers/char/virtio_console.c |4 +- drivers/net/virtio_net.c|2 +-

[PATCH 7/9] virtio-scsi: use virtqueue_start_buf

2013-02-12 Thread Paolo Bonzini
Using the new virtio_scsi_add_sg function lets us simplify the queueing path. In particular, all data protected by the tgt_lock is just gone (multiqueue will find a new use for the lock). The speedup is relatively small (2-4%) but it is worthwhile because of the code simplification it enables.

[PATCH 4/9] virtio-blk: use virtqueue_start_buf on req path

2013-02-12 Thread Paolo Bonzini
This is similar to the previous patch, but a bit more radical because the bio and req paths now share the buffer construction code. Because the req path doesn't use vbr->sg, however, we need to add a couple of arguments to __virtblk_add_req. We also need to teach __virtblk_add_req how to build

[PATCH 3/9] virtio-blk: use virtqueue_start_buf on bio path

2013-02-12 Thread Paolo Bonzini
Move the creation of the request header and response footer to __virtblk_add_req. vbr->sg only contains the data scatterlist, the header/footer are added separately using the new piecewise API for building virtqueue buffers. With this change, virtio-blk (with use_bio) is not relying anymore on

[PATCH 0/9] virtio: new API for addition of buffers, scatterlist changes

2013-02-12 Thread Paolo Bonzini
Most device drivers do not need to perform any postprocessing on the scatterlists they receive from higher-level drivers (e.g. the block or SCSI layer), because they translate the request metadata directly from the various C structs into the data that is required by the device. virtio devices

Re: [RFC][PATCH] printk: Remove separate printk_sched buffers and use printk buf instead

2013-02-12 Thread Jan Kara
On Thu 07-02-13 00:02:20, Jan Kara wrote: > On Tue 05-02-13 20:05:48, Steven Rostedt wrote: > > [ I sent this in a reply to another thread, but wanted a bit more attention > > to it ] > > > > To prevent deadlocks with doing a printk inside the scheduler, > > printk_sched() was created. The issue

[PATCH] ARM: dts: omap3-devkit8000: Enable audio support

2013-02-12 Thread Anil Kumar
Add the needed sections to enable audio support and related pin mux on Devkit8000 when booted with DT blob. Signed-off-by: Anil Kumar --- This patch is based on top of kernel 3.8-rc5 and the following patches. Peter Ujfalusi:- ASoC: twl4030: Correct the support for Voice port ASoC: twl4030:

Re: [PATCH] sched/rt: Unthrottle the highest RT task of the rq if there are no another available tasks to be picked

2013-02-12 Thread Mike Galbraith
On Tue, 2013-02-12 at 09:12 +0100, Stanislav Meduna wrote: > On 12.02.2013 08:06, Mike Galbraith wrote: > > >> In this case pick_next_task takes idle tasks and idle wastes cpu > >> time. > > > That's not a waste of CPU time, that's utilization enforcement the thing > > it is designed to do. >

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Michal Simek
2013/2/12 Arnd Bergmann : > On Tuesday 12 February 2013, Michal Simek wrote: >> > In particular, ARM can run both big- and little-endian even though >> > big-endian is rarely used, so you need to know the endianess for >> > the device you are talking to rather than assume that it knows >> > what

Re: [PATCH] pinctrl: pinctrl-single: fix the binding documentation

2013-02-12 Thread Linus Walleij
On Mon, Feb 11, 2013 at 3:46 AM, Kumar, Anil wrote: > As there are no use of #address-cells and #size-cells properties > in pinctrl-single driver DT node. Fix pinctrl-single binding documentation > to remove these properties. > > Signed-off-by: Kumar, Anil > --- > Tested on da850 EVM. I need

Re: [PATCH] Centralise CONFIG_ARCH_NO_VIRT_TO_BUS

2013-02-12 Thread James Hogan
On 12/02/13 11:47, Stephen Rothwell wrote: > Change it to CONFIG_HAVE_VIRT_TO_BUS and set it in all architecures nit: typo in "architecures" > that already provide virt_to_bus(). > > Signed-off-by: Stephen Rothwell Reviewed-by: James Hogan Cheers James signature.asc Description: OpenPGP

[PATCHv2 vringh 3/3] caif_virtio: Introduce caif over virtio

2013-02-12 Thread sjur . brandeland
From: Vikram ARV Add the the Virtio shared memory driver for STE Modems. caif_virtio is implemented utilizing the virtio framework for data transport and is managed with the remoteproc frameworks. The Virtio queue is used for transmitting data to the modem, and the new vringh implementation is

[PATCHv2 vringh 2/3] virtio: Add module driver macro for virtio drivers.

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland Add helper macro for drivers that don't do anything special in module init/exit. Signed-off-by: Sjur Brændeland --- include/linux/virtio.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h

[PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings)

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland Add functions for creating, deleting and kicking host-side virtio rings. The host ring is not integrated with virtiqueues and cannot be managed through virtio-config. Remoteproc must export functions for handling the host-side virtio rings. The functions

[PATCHv2 vringh 0/3] Introduce CAIF Virtio driver

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. Changes since V1: - Use the new iov helper functions, and simplify iov handling. However this triggers compile warnings, as it takes struct

[PATCH] Centralise CONFIG_ARCH_NO_VIRT_TO_BUS

2013-02-12 Thread Stephen Rothwell
Change it to CONFIG_HAVE_VIRT_TO_BUS and set it in all architecures that already provide virt_to_bus(). Signed-off-by: Stephen Rothwell --- arch/Kconfig| 7 +++ arch/alpha/Kconfig | 1 + arch/arm/Kconfig| 1 + arch/avr32/Kconfig | 1 + arch/blackfin/Kconfig |

Re: [PATCH 1/2] ima: Do not try to fix hash if file system does not support security xattr

2013-02-12 Thread Mimi Zohar
On Mon, 2013-02-11 at 15:11 -0500, Vivek Goyal wrote: > vfs_getxattr_alloc() returns -EOPNOTSUPP if filesystem does not have > security label enabled. In that case there is no point in continuing > further and try to fix hashes (if ima_appraise=fix was specified) as > that will fail too. Return

[PATCH] USB: EHCI: make ehci-atmel a separate driver

2013-02-12 Thread manjunath . goudar
From: Manjunath Goudar Separate the Atmel host controller driver from ehci-hcd host code into its own driver module. Signed-off-by: Manjunath Goudar Cc: Alan Stern Cc: Greg KH Cc: Grant Likely Cc: Rob Herring Cc: Andrew Victor Cc: Nicolas Ferre Cc: Jean-Christophe Plagniol-Villard Cc:

Re: Re[2]: [PATCH v2 1/3] mfd: syscon: Removed support for unloading

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Alexander Shiyan wrote: > > On Monday 11 February 2013, Alexander Shiyan wrote: > > > The driver can be used in various subsystems and therefore should not > > > be unloaded when it is defined in the kernel configuration, so remove > > > support for unloading it. > > >

Re: WARNING: at drivers/tty/tty_buffer.c:476 (tty is NULL)

2013-02-12 Thread Peter Hurley
On Tue, 2013-02-12 at 17:41 +1100, Michael Ellerman wrote: > On Mon, Feb 11, 2013 at 09:53:58PM -0500, Peter Hurley wrote: > > On Tue, 2013-02-12 at 13:00 +1100, Michael Ellerman wrote: > > > > Can you reproduce after using the following patch series? > > > > [PATCH v3 00/23] ldisc fixes > > > >

Re: [git pull] drm nouveau fixes.

2013-02-12 Thread Dave Airlie
> > just 3 nouveau fixes, all user visible issues, I have one radeon > regression fix I'm hoping to send tomorrow once I'm happy with it. Okay I've added the radeon regression fix on top as well The following changes since commit ff7c60c580d9722f820d85c9c58ca55ecc1ee7c4: drm/ttm: fix fence

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Benjamin Herrenschmidt wrote: > It depends how the ARM core operates vs. IO when switched between BE and > LE, does it keep the same lines doing byte 0 or does it keep the MSB/LSB > in the same place (and thus changes which lanes contain byte 0) ? IIRC it changed

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Arnd Bergmann
On Tuesday 12 February 2013, Michal Simek wrote: > > In particular, ARM can run both big- and little-endian even though > > big-endian is rarely used, so you need to know the endianess for > > the device you are talking to rather than assume that it knows > > what the CPU does at the time. > >

RE: [PATCH V2] Regulator: Reorder the min max assignment in the sequence of regulator_set_voltage function

2013-02-12 Thread J, KEERTHY
Hi Mark, > -Original Message- > From: Mark Brown [mailto:broo...@opensource.wolfsonmicro.com] > Sent: Monday, February 11, 2013 10:35 PM > To: J, KEERTHY > Cc: linux-kernel@vger.kernel.org; lgirdw...@gmail.com > Subject: Re: [PATCH V2] Regulator: Reorder the min max assignment in > the

Re: [PATCH 07/16] ARM64 idle: delete pm_idle

2013-02-12 Thread Catalin Marinas
On Sun, Feb 10, 2013 at 05:58:14AM +, Len Brown wrote: > From: Len Brown > > pm_idle() on arm64 was a synonym for default_idle(), > so remove it and invoke default_idle() directly. > > Signed-off-by: Len Brown > Cc: linux-arm-ker...@lists.infradead.org For arm64: Acked-by: Catalin

[PATCH 2/6] dmaengine.h: remove redundant else keyword

2013-02-12 Thread Andy Shevchenko
dmaengine_device_control returns -ENOSYS in case the dma driver doesn't have such functionality. Signed-off-by: Andy Shevchenko --- include/linux/dmaengine.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index

[PATCH 6/6] dma: tegra20-apb-dma: remove unnecessary assignment

2013-02-12 Thread Andy Shevchenko
There is no need to assign 0 to residue, because dma_cookie_status() does this for us. Signed-off-by: Andy Shevchenko --- drivers/dma/tegra20-apb-dma.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 46e4630..fcee27e

[PATCH 3/6] dma: coh901318_lli: avoid unbalanced locking

2013-02-12 Thread Andy Shevchenko
I have not checked the code but there is a possibility that custom pool->lock is not needed at all due to dma_pool contains it's own lock. Signed-off-by: Andy Shevchenko Cc: Linus Walleij Cc: linux-arm-ker...@lists.infradead.org --- drivers/dma/coh901318_lli.c |2 +- 1 file changed, 1

[PATCH 5/6] edma: do not waste memory for dma_mask

2013-02-12 Thread Andy Shevchenko
Accordingly to commentary in the platform_device_register_full the memory allocated for dma_mask will not going to be freed. That's why is better to assign dma_mask afterwards. Signed-off-by: Andy Shevchenko --- drivers/dma/edma.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-12 Thread Eric W. Biederman
Mitsuhiro Tanino writes: > Re: [Patch 0/2] Exclude hwpoison page from vmcore dump > (2012/11/01 19:40), Eric W. Biederman wrote: >> Mitsuhiro Tanino writes: >> I agree. If we are performing filtering filtering out of poisoned pages >> seems very reasonable. So ack on the basic concept. >> >>

[PATCH 1/6] of: dma: protect list write operation by spin_lock

2013-02-12 Thread Andy Shevchenko
It's possible to have an inconsistency in the list due to unprotected operation on it. The patch adds a proper locking on the list operation. Signed-off-by: Andy Shevchenko Acked-by: Rob Herring --- drivers/of/dma.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/dma.c

[PATCH 0/6] dma: various fixes in different DMAC drivers

2013-02-12 Thread Andy Shevchenko
This is a patcset of independent fixes of the DMAC drivers. They are simple and being understandable in their context. Andy Shevchenko (6): of: dma: protect list write operation by spin_lock dmaengine.h: remove redundant else keyword dma: coh901318_lli: avoid unbalanced locking dma:

[PATCH 4/6] dma: coh901318_lli: set residue only if dma is in progress

2013-02-12 Thread Andy Shevchenko
When status is DMA_SUCCESS the residue should be zero. Otherwise it's a bug. Signed-off-by: Andy Shevchenko Cc: Linus Walleij Cc: linux-arm-ker...@lists.infradead.org --- drivers/dma/coh901318.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dma/coh901318.c

Re: [PATCH 1/1] VSOCK: Introduce VM Sockets

2013-02-12 Thread Gerd Hoffmann
On 02/07/13 01:23, Andy King wrote: Hi, > +/* Option name for socket's service label. Use as the option name in > + * setsockopt(3) or getsockopt(3) to set or get the service label for a > socket. > + * The service label is a C-style NUL-terminated string. Only available for > + *

Ihre Web-Mail-Kontingent

2013-02-12 Thread Barbero González Alberto
Ihre Web-Mail-Kontingent hat die eingestellte Quote, die 2 GB ist überschritten. Sie derzeit auf 2.3GB.To re-aktivieren und zu erhöhen Ihre Web-Mail-Kontingent bitte überprüfen und aktualisieren Sie Ihre Web-Mail-Konto in Um wieder zu aktivieren und steigern Sie Ihren Web-Mail-Kontingent auf den

Re: Getting rid of freezer for suspend [was Re: [fuse-devel] [PATCH] fuse: make fuse daemon frozen along with kernel threads]

2013-02-12 Thread Pavel Machek
Hi! > > That's potentially deeadlock-prone, because a task waiting for mutex X may > > very well be holding mutex Y, so if there's another task waiting for mutex > > Y, > > it needs to be frozen at the same time. > > > >> The only little detail is how do we implement that... > > > > This means

Re: [PATCH v2 10/13] mailbox: create dbx500 mailbox driver

2013-02-12 Thread Mark Rutland
Hello, I have a few comments on the devicetree binding and the way it's parsed. > +static const struct of_device_id dbx500_mailbox_match[] = { > + { .compatible = "stericsson,db8500-mailbox", > + .data = (void *)db8500_mboxes, > + }, > + { .compatible =

Re: [patch v4 11/18] sched: log the cpu utilization at rq

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > > The cpu's utilization is to measure how busy is the cpu. > util = cpu_rq(cpu)->avg.runnable_avg_sum > / cpu_rq(cpu)->avg.runnable_avg_period; > > Since the util is no more than 1, we use its percentage value in later

Re: [PATCH 4/5] lpc_ich: Add Device IDs for Intel Wellsburg PCH

2013-02-12 Thread Samuel Ortiz
Hi James, On Fri, Feb 08, 2013 at 05:33:38PM -0800, James Ralston wrote: > This patch adds the Watchdog Timer Device IDs for the Intel Wellsburg PCH > > Signed-off-by: James Ralston > --- > drivers/mfd/lpc_ich.c | 38 ++ > 1 files changed, 38

Re: [patch v4 09/18] sched: add sched_policies in kernel

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > Current scheduler behavior is just consider the for larger performance > of system. So it try to spread tasks on more cpu sockets and cpu cores > > To adding the consideration of power awareness, the patchset adds > 2 kinds of scheduler policy:

Re: [PATCH] lpc_sch: Accomodate partial population of the MFD devices

2013-02-12 Thread Samuel Ortiz
Hi Darren, On Fri, Feb 08, 2013 at 03:20:36PM -0800, Darren Hart wrote: > The current probe aborts if any of the 3 base address registers are > disabled. On a TunnelCreek system I am working on, this resulted in the > SMBIOS and GPIO devices being removed when it couldn't read the base > address

Re: Odd ENOMEM being returned in 3.8-rcX

2013-02-12 Thread Eric W. Biederman
Andrew Morton writes: > On Fri, 08 Feb 2013 12:13:09 -0800 > ebied...@xmission.com (Eric W. Biederman) wrote: > >> If mock has called unshare(CLONE_NEWPID). And then forked a process and >> that process exited, and then forked anothe process that second and all >> subsequent fork calls will fail

Re: [patch v4 08/18] Revert "sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking"

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > Remove CONFIG_FAIR_GROUP_SCHED that covers the runnable info, then > we can use runnable load variables. > It would be nice if we could quantify the performance hit of doing so. Haven't yet looked at later patches to see if we remove anything

Lockups using per-thread cgs and kvm

2013-02-12 Thread Andrey Korolyov
Hi, We (a cloud hosting provider) has recently observed a couple of strange lockups when physical node runs significant amount of Win2008R2 kvm appliances, one may see collection of those lockups at the link below. After checking a lot of ideas without any valuable result, I have suggested that

Re: [patch v4 07/18] sched: set initial load avg of new forked task

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > + /* > +* set the initial load avg of new task same as its load > +* in order to avoid brust fork make few cpu too heavier > +*/ > + if (flags & ENQUEUE_NEWTASK) > + se->avg.load_avg_contrib =

Re: [patch v4 06/18] sched: give initial value for runnable avg of sched entities.

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > We need initialize the se.avg.{decay_count, load_avg_contrib} to zero > after a new task forked. > Otherwise random values of above variables cause mess when do new task > enqueue: > enqueue_task_fair > enqueue_entity >

Re: [PATCH] lib: memcmp_nta: add timing-attack secure memcmp

2013-02-12 Thread Florian Weimer
* Daniel Borkmann: > On 02/11/2013 08:00 PM, Florian Weimer wrote: >> * Daniel Borkmann: > > Thanks for your feedback, Florian! > >>> + * memcmp_nta - memcmp that is secure against timing attacks >> >> It's not providing an ordering, so it should not have "cmp" in the >> name. > > I agree. What

Re: [patch v4 05/18] sched: quicker balancing on fork/exec/wake

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > Guess the search cpu from bottom to up in domain tree come from > commit 3dbd5342074a1e sched: multilevel sbe sbf, the purpose is > balancing over tasks on all level domains. > > This balancing cost too much if there has many domain/groups in a

Re: [patch v4 03/18] sched: fix find_idlest_group mess logical

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > There is 4 situations in the function: > 1, no task allowed group; > so min_load = ULONG_MAX, this_load = 0, idlest = NULL > 2, only local group task allowed; > so min_load = ULONG_MAX, this_load assigned, idlest = NULL > 3, only

Re: [patch v4 02/18] sched: select_task_rq_fair clean up

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > It is impossible to miss a task allowed cpu in a eligible group. I suppose your reasoning goes like: tsk->cpus_allowed is protected by ->pi_lock, we hold this, therefore it cannot change and find_idlest_group() dtrt? We can then state that

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Michal Simek
2013/2/11 Arnd Bergmann : > On Monday 11 February 2013, Michal Simek wrote: >> Unfortunately no. Another is spi/i2c (sysace as we discuss in this >> thread), probably icap >> network drivers are ok because they are not shared. >> Timer when it is moved to clocksource(not important right now) >>

Re: [patch v4 01/18] sched: set SD_PREFER_SIBLING on MC domain to reduce a domain level

2013-02-12 Thread Peter Zijlstra
On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: > The domain flag SD_PREFER_SIBLING was set both on MC and CPU domain at > frist commit b5d978e0c7e79a, and was removed uncarefully when clear up > obsolete power scheduler. Then commit 6956dc568 recover the flag on CPU > domain only. It works,

Re: [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix()

2013-02-12 Thread Samuel Ortiz
Hi Fabio, On Mon, Feb 11, 2013 at 06:48:01PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > da9052_i2c_fix() is only used locally, so let it be static. > > Fix the following sparse warning: > > drivers/mfd/da9052-i2c.c:63:5: warning: symbol 'da9052_i2c_fix' was not > declared. Should

[PATCH] net/macb: fix race with RX interrupt while doing NAPI

2013-02-12 Thread Nicolas Ferre
When interrupts are disabled, an RX condition can occur but it is not reported when enabling interrupts again. We need to check RSR and use napi_reschedule() if condition is met. Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 5 + 1 file changed, 5 insertions(+)

Re: [PATCH 1/2] mfd: syscon: Fix sparse warning

2013-02-12 Thread Samuel Ortiz
Hi Fabio, On Mon, Feb 11, 2013 at 06:48:00PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > Fix the following sparse warnings: > > drivers/mfd/syscon.c:40:15: warning: symbol 'syscon_node_to_regmap' was not > declared. Should it be static? > drivers/mfd/syscon.c:56:15: warning: symbol

Re: [PATCH] mfd: support stmpe1801 18 bits enhanced port expander

2013-02-12 Thread Samuel Ortiz
Adding Dmitry to the thread, for the input parts. On Thu, Dec 20, 2012 at 09:57:19AM +0100, Jean-Nicolas Graux wrote: > Provides support for 1801 variant of stmpe gpio port expanders. > This chip has 18 gpios configurable as GPI, GPO, keypad matrix, > special key or dedicated key function. > >

Re: [PATCH] mfd: support stmpe1801 18 bits enhanced port expander

2013-02-12 Thread Samuel Ortiz
Hi Linus, On Mon, Feb 11, 2013 at 02:58:44PM +0100, Linus Walleij wrote: > On Thu, Dec 20, 2012 at 9:57 AM, Jean-Nicolas Graux > wrote: > > > Provides support for 1801 variant of stmpe gpio port expanders. > > This chip has 18 gpios configurable as GPI, GPO, keypad matrix, > > special key or

[PATCH 1/3] x86: Add basic support for the Congatec CGEB BIOS interface

2013-02-12 Thread Sascha Hauer
The Congatec CGEB is a BIOS interface found on some Congatec x86 modules. It provides access to on board peripherals like I2C busses and watchdogs. This driver contains the basic support for accessing the CGEB interface and registers the child devices. Signed-off-by: Sascha Hauer ---

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-12 Thread Michal Simek
2013/2/12 Benjamin Herrenschmidt : > On Mon, 2013-02-11 at 16:57 +0100, Michal Simek wrote: >> But it reminds me that maybe the easiest solution is not to use endian >> accessors just use two simple macros which should work on all systems. >> >> #define _readreg(offset)

[PATCH 3/3] watchdog: Add Congatec CGEB watchdog driver

2013-02-12 Thread Sascha Hauer
This driver provides support for the CGEB watchdog found on some Congatec x86 modules. Signed-off-by: Sascha Hauer --- drivers/watchdog/Kconfig | 10 ++ drivers/watchdog/Makefile |1 + drivers/watchdog/congatec_cgeb_watchdog.c | 161

[PATCH 2/3] i2c: Add Congatec CGEB I2C driver

2013-02-12 Thread Sascha Hauer
This driver provides a I2C bus driver for the CGEB interface found on some Congatec x86 modules. No devices are registered on the bus, the user has to do this via the i2c device /sys interface. Signed-off-by: Sascha Hauer --- drivers/i2c/busses/Kconfig |7 ++

[PATCH] Congatec CGEB base, i2c and watchdog driver support

2013-02-12 Thread Sascha Hauer
I'd like to come back to this topic. I have sent patches last year already, changes to the last time I posted this is mainly that I moved the CGEB base support from drivers/mfd/ to arch/x86/platform/ like suggested by Samuel Ortiz back then. The following series adds support for the Congatec CGEB

Re: [PATCH v3 4/7] memcg: remove memcg from the reclaim iterators

2013-02-12 Thread Michal Hocko
On Mon 11-02-13 17:39:43, Johannes Weiner wrote: > On Mon, Feb 11, 2013 at 10:27:56PM +0100, Michal Hocko wrote: > > On Mon 11-02-13 14:58:24, Johannes Weiner wrote: > > > On Mon, Feb 11, 2013 at 08:29:29PM +0100, Michal Hocko wrote: > > > > On Mon 11-02-13 12:56:19, Johannes Weiner wrote: > > > >

Re: [PATCH 0/2] NFSD: fix races in service per-net resources allocation

2013-02-12 Thread Stanislav Kinsbursky
12.02.2013 00:58, J. Bruce Fields пишет: void svc_close_net(struct svc_serv *serv, struct net *net) { - svc_close_list(serv, >sv_tempsocks, net); - svc_close_list(serv, >sv_permsocks, net); - - svc_clear_pools(serv, net); - /* -* At this point the sp_sockets

Re: kvmtool tree (Was: Re: [patch] config: fix make kvmconfig)

2013-02-12 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Feb 11, 2013 at 9:58 AM, Ingo Molnar wrote: > > > > So basically Pekka optimistically thought it's an eventual > > 'tit for tat', a constant stream of benefits to the kernel, > > in the hope of finding a home in the upstream kernel which > > would further

Re: [patch for-3.8] fs, dlm: fix build error when EXPERIMENTAL is disabled

2013-02-12 Thread Steven Whitehouse
Hi, On Mon, 2013-02-11 at 13:48 -0800, David Rientjes wrote: > CONFIG_IP_SCTP relies on being able to select things like CONFIG_CRC32C to > build. Thus, nothing should be selecting CONFIG_IP_SCTP that does not > meet its requirements. > > For example, if CONFIG_EXPERIMENTAL is disabled and

Re: [PATCH v2 6/6] of_spi: Initialize cs_gpios and cs_gpio with -EEXIST

2013-02-12 Thread Andreas Larsson
On 2013-02-11 01:23, Grant Likely wrote: On Tue, 29 Jan 2013 15:53:43 +0100, Andreas Larsson wrote: Holes in the cs-gpios DT phandle list is supposed to mark that native chipselects is to be used. The value returned from of_get_named_gpio_flags in this case is -EEXIST. By initializing cs_gpios

Re: [PATCH 2/3] ALSA: hda - no-primary-hp is a quirk for model ALC889 not ALC882

2013-02-12 Thread Fernando Luis Vazquez Cao
On 2013/02/12 18:27, Takashi Iwai wrote: At Tue, 12 Feb 2013 16:54:16 +0900, Fernando Luis Vázquez Cao wrote: Substitute ALC889 for ALC882 in macro and function names. Cc: sta...@vger.kernel.org Cc: alsa-de...@alsa-project.org Signed-off-by: Fernando Luis Vazquez Cao This fixup can work

Re: [PATCH] s390: Add missing PAGE_SHARED as an alias for PAGE_RW

2013-02-12 Thread Heiko Carstens
On Tue, Feb 12, 2013 at 10:20:22AM +0100, Geert Uytterhoeven wrote: > Hi Heiko, > > On Mon, Feb 11, 2013 at 10:11 AM, Heiko Carstens > wrote: > > Thanks Geert. A similar patch however is already in linux-next, together > > with a whole bunch of other patches which try to make s390's allmodconfig

Re: [PATCH v2 5/6] of_spi: Add fetching of of_gpio flags to of_spi_register_master

2013-02-12 Thread Andreas Larsson
On 2013-02-11 01:22, Grant Likely wrote: On Tue, 29 Jan 2013 15:53:42 +0100, Andreas Larsson wrote: When using a gpio chip select with a OF_GPIO_ACTIVE_LOW flag, this needs to be known to the controller driver. Signed-off-by: Andreas Larsson Out of curiosity, what do you need the flags

Re: [PATCH 2/3] ALSA: hda - no-primary-hp is a quirk for model ALC889 not ALC882

2013-02-12 Thread Takashi Iwai
At Tue, 12 Feb 2013 16:54:16 +0900, Fernando Luis Vázquez Cao wrote: > > Substitute ALC889 for ALC882 in macro and function names. > > Cc: sta...@vger.kernel.org > Cc: alsa-de...@alsa-project.org > Signed-off-by: Fernando Luis Vazquez Cao This fixup can work generically to all ALC882 variants,

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