Re: [PATCH] ieee802154/at231rf230: deadlock in at86rf230_xmit

2013-02-12 Thread David Miller
linux-kernel is not the correct mailing list to post networking patches, net...@vger.kernel.org is, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v7 07/10] dmaengine: add dma_request_slave_channel_compat()

2013-02-12 Thread Vinod Koul
On Fri, Feb 01, 2013 at 01:22:52PM -0500, Matt Porter wrote: > Adds a dma_request_slave_channel_compat() wrapper which accepts > both the arguments from dma_request_channel() and > dma_request_slave_channel(). Based on whether the driver is > instantiated via DT, the appropriate channel request

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/7 Grant Likely : > On Thu, Feb 7, 2013 at 3:12 PM, Alexey Brodkin > wrote: >> On 02/07/2013 06:51 PM, Grant Likely wrote: >>> >>> On Thu, Feb 7, 2013 at 2:39 PM, Grant Likely >>> wrote: On Wed, Feb 6, 2013 at 9:35 PM, Benjamin Herrenschmidt wrote: >> >> In fact,

Re: [tip:x86/mm] x86, mm: Use a bitfield to mask nuisance get_user() warnings

2013-02-12 Thread Linus Torvalds
On Tue, Feb 12, 2013 at 8:38 AM, H.J. Lu wrote: > > Can you do something similar to what we did in glibc: No. Because we use macros to be type-independent (i e"get_user()" works *regardless* of type), so casting to "uintptr_t" doesn't work. It throws away the type information, and truncates

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

2013-02-12 Thread Paolo Bonzini
Il 12/02/2013 17:35, Michael S. Tsirkin ha scritto: > On Tue, Feb 12, 2013 at 05:17:47PM +0100, Paolo Bonzini wrote: >> Il 12/02/2013 17:13, Michael S. Tsirkin ha scritto: > + * @nsg: the number of sg lists that will be added >>> This means number of calls to add_sg ? Not sure why this

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

2013-02-12 Thread Stephen Warren
On 02/12/2013 05:54 AM, Linus Walleij wrote: > 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.

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

2013-02-12 Thread Linus Torvalds
On Tue, Feb 12, 2013 at 1:50 AM, Steven Whitehouse wrote: > > That doesn't seem right to me... DLM has not been experimental for a > long time now. Why not just select CRC32 in addition to IP_SCTP ? Hmm. IP_SCTP already does a "select libcrc32c". So why doesn't that end up working?

Re: [alsa-devel] Xonar DG pci sound card driver incomplete

2013-02-12 Thread Clemens Ladisch
kernel kernel wrote: > Requesting guidance on how to implement the missing mic input support > for this Asus Xonar card. I've downloaded the relevant datasheets but > am unsure how to proceed. Rip out the card, and look (or eletrically trace) how the CMI8788's GPIOs and the CS4245's

Re: [PATCH] dw_dmac: apply default dma_mask if needed

2013-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2013 at 6:16 PM, Vinod Koul wrote: > On Tue, Jan 29, 2013 at 05:06:24PM +0200, Andy Shevchenko wrote: >> In some cases we got the device without dma_mask configured. We have to apply >> the default value to avoid crashes during memory mapping. >> > what was this generated against,

Re: [PATCH] ioatdma: fix race between updating ioat->head and IOAT_COMPLETION_PENDING

2013-02-12 Thread Vinod Koul
On Thu, Feb 07, 2013 at 02:38:32PM -0700, Dave Jiang wrote: > There is a race that can hit during __cleanup() when the ioat->head pointer is > incremented during descriptor submission. The __cleanup() can clear the > PENDING flag when it does not see any active descriptors. This causes new >

[GIT PULL rcu/srcu] SRCU commits for 3.9

2013-02-12 Thread Paul E. McKenney
Hello, Ingo, This series contains SRCU changes for 3.9. These include debugging aids, updates that move towards the goal of permitting srcu_read_lock() and srcu_read_unlock() to be used from idle and offline CPUs, and a few small fixes. These commits are available in the git repository at:

Re: [PATCH] dw_dmac: add support for Lynxpoint DMA controllers

2013-02-12 Thread Vinod Koul
On Thu, Feb 07, 2013 at 05:36:28PM +0200, Andy Shevchenko wrote: > From: Mika Westerberg > > Intel Lynxpoint PCH Low Power Subsystem has DMA controller to support general > purpose serial buses like SPI, I2C, and HSUART. This controller is enumerated > from ACPI namespace with ACPI ID INTL9C60.

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

2013-02-12 Thread Johannes Weiner
Michal Hocko wrote: >On Tue 12-02-13 17:13:32, Michal Hocko wrote: >> On Tue 12-02-13 16:43:30, Michal Hocko wrote: >> [...] >> The example was not complete: >> >> > Wait a moment. But what prevents from the following race? >> > >> > rcu_read_lock() >> >> cgroup_next_descendant_pre >>

Re: [PATCH] dw_dmac: apply default dma_mask if needed

2013-02-12 Thread Vinod Koul
On Tue, Jan 29, 2013 at 05:06:24PM +0200, Andy Shevchenko wrote: > In some cases we got the device without dma_mask configured. We have to apply > the default value to avoid crashes during memory mapping. > what was this generated against, it fails to apply for me. > Signed-off-by: Andy

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-02-12 Thread Mika Westerberg
On Tue, Feb 12, 2013 at 07:53:34AM -0800, Vinod Koul wrote: > On Tue, Jan 29, 2013 at 10:29:43AM +0530, Viresh Kumar wrote: > > Next time, please direct these mails to my Linaro id :) > > > > On Mon, Jan 28, 2013 at 4:34 PM, Andy Shevchenko > > wrote: > > > On some hardware configurations we

Re: [tip:x86/mm] x86, mm: Use a bitfield to mask nuisance get_user() warnings

2013-02-12 Thread H.J. Lu
On Mon, Feb 11, 2013 at 8:21 PM, H. Peter Anvin wrote: > On 02/11/2013 07:33 PM, Linus Torvalds wrote: >> On Mon, Feb 11, 2013 at 5:37 PM, tip-bot for H. Peter Anvin >> wrote: >>> >>> However, we can declare a bitfield using sizeof(), which is legal >>> because sizeof() is a constant expression.

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

2013-02-12 Thread Michal Hocko
On Tue 12-02-13 17:24:42, Michal Hocko wrote: > On Tue 12-02-13 17:13:32, Michal Hocko wrote: > > On Tue 12-02-13 16:43:30, Michal Hocko wrote: > > [...] > > The example was not complete: > > > > > Wait a moment. But what prevents from the following race? > > > > > > rcu_read_lock() > > > >

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

2013-02-12 Thread Stephen Warren
On 02/12/2013 06:50 AM, Arnd Bergmann wrote: > 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) &&

Re: [PATCH] dw_dmac: add support for Lynxpoint DMA controllers

2013-02-12 Thread Vinod Koul
On Fri, Feb 08, 2013 at 09:25:11AM +0200, Andy Shevchenko wrote: > On Fri, Feb 8, 2013 at 6:28 AM, Viresh Kumar wrote: > > On Thu, Feb 7, 2013 at 10:35 PM, Andy Shevchenko > > wrote: > >> On Thu, Feb 7, 2013 at 5:39 PM, Viresh Kumar > >> wrote: > >>> On 7 February 2013 21:06, Andy Shevchenko >

Re: [patch 32/40] rcu: Convert rcutree to hotplug state machine

2013-02-12 Thread Paul E. McKenney
On Mon, Feb 11, 2013 at 04:01:01PM -0800, Paul E. McKenney wrote: > On Thu, Jan 31, 2013 at 12:11:38PM -, Thomas Gleixner wrote: > > Do we really need so many states here ? > > Well, all that RCU does for CPU_DYING is to do tracing, which could be > ditched. Required changes called out

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2013 at 5:56 PM, Vinod Koul wrote: > On Wed, Jan 30, 2013 at 09:32:56AM +0200, Andy Shevchenko wrote: >> On Tue, 2013-01-29 at 20:57 +0530, Viresh Kumar wrote: >> > On Tue, Jan 29, 2013 at 10:52 AM, Mika Westerberg >> > wrote: >> > > We had a discusssion about this with Andy as

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

2013-02-12 Thread Johannes Weiner
Michal Hocko wrote: >On Tue 12-02-13 10:10:02, Johannes Weiner wrote: >> On Tue, Feb 12, 2013 at 10:54:19AM +0100, Michal Hocko wrote: >> > 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,

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

2013-02-12 Thread Michael S. Tsirkin
On Tue, Feb 12, 2013 at 05:17:47PM +0100, Paolo Bonzini wrote: > Il 12/02/2013 17:13, Michael S. Tsirkin ha scritto: > >>> + * @nsg: the number of sg lists that will be added > > This means number of calls to add_sg ? Not sure why this matters. > > How about we pass in in_num/out_num -

[PATCH 05/32] lib: devres: don't enclose pcim_*() functions in CONFIG_HAS_IOPORT

2013-02-12 Thread Thomas Petazzoni
The pcim_*() functions are used by the libata-sff subsystem, and this subsystem is used for many SATA drivers on ARM platforms that do not necessarily have I/O ports. Signed-off-by: Thomas Petazzoni Cc: Paul Gortmaker Cc: Jesse Barnes Cc: Yinghai Lu Cc: linux-kernel@vger.kernel.org ---

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

2013-02-12 Thread Michal Hocko
On Tue 12-02-13 17:13:32, Michal Hocko wrote: > On Tue 12-02-13 16:43:30, Michal Hocko wrote: > [...] > The example was not complete: > > > Wait a moment. But what prevents from the following race? > > > > rcu_read_lock() > > cgroup_next_descendant_pre > css_tryget(css); > memcg =

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-02-12 Thread Vinod Koul
On Wed, Jan 30, 2013 at 09:32:56AM +0200, Andy Shevchenko wrote: > On Tue, 2013-01-29 at 20:57 +0530, Viresh Kumar wrote: > > On Tue, Jan 29, 2013 at 10:52 AM, Mika Westerberg > > wrote: > > > We had a discusssion about this with Andy as well. The thing is that there > > > is no way in current

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

2013-02-12 Thread Paolo Bonzini
Il 12/02/2013 17:13, Michael S. Tsirkin ha scritto: >>> + * @nsg: the number of sg lists that will be added > This means number of calls to add_sg ? Not sure why this matters. > How about we pass in in_num/out_num - that is total # of sg, > same as add_buf? It is used to

Re: [PATCH] dw_dmac: adjust slave_id accordingly to request line base

2013-02-12 Thread Vinod Koul
On Tue, Jan 29, 2013 at 10:29:43AM +0530, Viresh Kumar wrote: > Next time, please direct these mails to my Linaro id :) > > On Mon, Jan 28, 2013 at 4:34 PM, Andy Shevchenko > wrote: > > On some hardware configurations we have got the request line with the > > offset. > > The patch introduces

Re: [PATCH v5 04/45] percpu_rwlock: Implement the core design of Per-CPU Reader-Writer Locks

2013-02-12 Thread Paul E. McKenney
On Sun, Feb 10, 2013 at 11:54:17AM -0800, Paul E. McKenney wrote: > On Sun, Feb 10, 2013 at 07:06:07PM +0100, Oleg Nesterov wrote: > > On 02/08, Paul E. McKenney wrote: > > [ . . . ] > > > > > +static inline void sync_reader(struct percpu_rwlock *pcpu_rwlock, > > > > +

Re: [REGRESSION] -rc7/-rc4+: unable to USB boot - enumeration partially broken (was: Linux v3.8-rc7)

2013-02-12 Thread Greg KH
On Tue, Feb 12, 2013 at 05:07:27PM +0100, Andreas Mohr wrote: > On Sun, Feb 10, 2013 at 03:05:54PM +0100, Andreas Mohr wrote: > > Regression sorta confirmed now. -rc3 with a fully suitable .config does > > not boot either. Will start bisection. Will take ages. > > Down to 91 commits (all in USB

pull request: wireless 2013-02-12

2013-02-12 Thread John W. Linville
Dave, Here is another handful of late-breaking fixes intended for the 3.8 stream... Hopefully the will still make it! :-) There are three mac80211 fixes pulled from Johannes: "Here are three fixes still for the 3.8 stream, the fix from Cong Ding for the bad sizeof (Stephen Hemminger had

Re: [PATCH v2 09/11] mfd: twl-core: Collect global variables behind one private structure (global)

2013-02-12 Thread Jon Hunter
On 02/12/2013 01:26 AM, Peter Ujfalusi wrote: > On 02/11/2013 09:22 PM, Jon Hunter wrote: >> Good point. I just noticed that none of my omap2+ board were booting and >> on omap3/4 I was the panic in the twl code. I can't say that I checked >> the panic on omap2, so may be that was another

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

2013-02-12 Thread Michal Hocko
On Tue 12-02-13 16:43:30, Michal Hocko wrote: [...] The example was not complete: > Wait a moment. But what prevents from the following race? > > rcu_read_lock() cgroup_next_descendant_pre css_tryget(css); memcg = mem_cgroup_from_css(css)atomic_add(CSS_DEACT_BIAS, >refcnt) >

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

2013-02-12 Thread Michael S. Tsirkin
On Tue, Feb 12, 2013 at 04:48:39PM +0100, Paolo Bonzini wrote: > Il 12/02/2013 16:43, Michael S. Tsirkin ha scritto: > > On Tue, Feb 12, 2013 at 04:32:27PM +0100, Paolo Bonzini wrote: > >> Il 12/02/2013 15:56, Michael S. Tsirkin ha scritto: > > +/** > > + * virtqueue_start_buf - start

Re: [REGRESSION] -rc7/-rc4+: unable to USB boot - enumeration partially broken (was: Linux v3.8-rc7)

2013-02-12 Thread Andreas Mohr
On Sun, Feb 10, 2013 at 03:05:54PM +0100, Andreas Mohr wrote: > Regression sorta confirmed now. -rc3 with a fully suitable .config does > not boot either. Will start bisection. Will take ages. Down to 91 commits (all in USB land!), around 7 steps left. Pretty certain of a valid regression now.

[PATCH 2/3] nbd: fsync and kill block device on shutdown

2013-02-12 Thread Paolo Bonzini
There are two problems with shutdown in the NBD driver. The first is that receiving the NBD_DISCONNECT ioctl does not sync the filesystem; this is useful because BLKFLSBUF is restricted to processes that have CAP_SYS_ADMIN, and the NBD client may not possess it (fsync of the block device does not

[PATCH 3/3] nbd: show read-only state in sysfs

2013-02-12 Thread Paolo Bonzini
Pass the read-only flag to set_device_ro, so that it will be visible to the block layer and in sysfs. Cc: Cc: Paul Clements Cc: Andrew Morton Signed-off-by: Paolo Bonzini --- drivers/block/nbd.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/block/nbd.c

[PATCH 1/3] nbd: support FLUSH requests

2013-02-12 Thread Paolo Bonzini
From: Alex Bligh The NBD device does not support writeback caching, thus it is not safe against power losses unless the client opens the target with O_DSYNC or O_SYNC. Add support for a new flag that the server can pass. If the flag is enabled, we translate REQ_FLUSH requests into the

[PATCH 0/3] NBD fixes for caching and block device flags

2013-02-12 Thread Paolo Bonzini
The first two patches improve the behavior of NBD with respect to the host cache---respectively the server's cache and the client's. The first adds support for flushing the backing storage, so that NBD is safe against power losses. The second properly syncs and cleans the client's page cache

Re: linux-next: Tree for Feb 12 (drm_pci.c)

2013-02-12 Thread Randy Dunlap
On 02/11/13 21:09, Stephen Rothwell wrote: > Hi all, > > Changes since 20130211: > when CONFIG_PCI is not enabled (on x86_64): CC [M] drivers/gpu/drm/drm_pci.o drivers/gpu/drm/drm_pci.c: In function 'drm_pcie_get_speed_cap_mask': drivers/gpu/drm/drm_pci.c:485:2: error: implicit declaration

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

2013-02-12 Thread Viresh Kumar
On 12 February 2013 16:28, Andy Shevchenko wrote: > This is a patcset of independent fixes of the DMAC drivers. They are simple > and > being understandable in their context. Once all minor comments i gave are fixed, Acked-by: Viresh Kumar -- To unsubscribe from this list: send the line

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

2013-02-12 Thread Paul Mundt
On Tue, Feb 12, 2013 at 01:29:10PM +0100, Linus Walleij wrote: > 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

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

2013-02-12 Thread Viresh Kumar
On 12 February 2013 16:28, Andy Shevchenko wrote: > 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. Your viewpoint is fine, but we wanted the reason behind this patch here. Please add appropriate stuff

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

2013-02-12 Thread Paolo Bonzini
Il 12/02/2013 16:43, Michael S. Tsirkin ha scritto: > On Tue, Feb 12, 2013 at 04:32:27PM +0100, Paolo Bonzini wrote: >> Il 12/02/2013 15:56, Michael S. Tsirkin ha scritto: > +/** > + * virtqueue_start_buf - start building buffer for the other end > + * @vq: the struct virtqueue we're

Re: [PATCH V3 1/3] mtd: add new fields to nand_flash_dev{}

2013-02-12 Thread Artem Bityutskiy
On Mon, 2013-01-28 at 12:57 +0800, Huang Shijie wrote: > + {"SmartMedia 256MiB 3,3V", {0, 0x71}, 512, 256, 0x4000 }, > + {"SmartMedia 256MiB 3,3V ROM", {0, 0x5b}, 512, 256, 0x4000, > NAND_ROM}, Sorry for a possibly stupid question, but what does it buy you adding another "0" to

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

2013-02-12 Thread Michal Hocko
On Tue 12-02-13 10:10:02, Johannes Weiner wrote: > On Tue, Feb 12, 2013 at 10:54:19AM +0100, Michal Hocko wrote: > > 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: > > > >

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

2013-02-12 Thread Michael S. Tsirkin
On Tue, Feb 12, 2013 at 04:32:27PM +0100, Paolo Bonzini wrote: > Il 12/02/2013 15:56, Michael S. Tsirkin ha scritto: > >> > +/** > >> > + * virtqueue_start_buf - start building buffer for the other end > >> > + * @vq: the struct virtqueue we're talking about. > >> > + * @data: the token

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

2013-02-12 Thread Paolo Bonzini
Il 12/02/2013 15:56, Michael S. Tsirkin ha scritto: >> > +/** >> > + * virtqueue_start_buf - start building buffer for the other end >> > + * @vq: the struct virtqueue we're talking about. >> > + * @data: the token identifying the buffer. >> > + * @nents: the number of buffers that will be added >

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

2013-02-12 Thread Haojian Zhuang
On Tue, Feb 12, 2013 at 8:54 PM, Linus Walleij wrote: > 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

Re: [PATCH] clk: tegra: initialise parent of uart clocks

2013-02-12 Thread Laxman Dewangan
On Wednesday 06 February 2013 11:13 PM, Stephen Warren wrote: On 02/06/2013 03:47 AM, Laxman Dewangan wrote: Initialise the parent of UARTs to PLLP OK and disabling clock by default. Hmm. Only the clocks initialized by the new entries you added are marked disabled (or rather, not actively

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

2013-02-12 Thread Andy King
Hi Gerd, > > +struct vsock_transport { ... > Whoa. This has grown *alot*. Care to explain this please? Patch > creating a Documentation/virtual/vsock.txt would be cool. Yes, it grew because of the notification stuff, which I'd forgotten about until I removed the vmci header from the core

Re: [PATCH] of: Fix locking when calling of_get_next_available_child()

2013-02-12 Thread Thierry Reding
On Mon, Feb 11, 2013 at 04:26:46PM -0700, Stephen Warren wrote: > On 02/11/2013 03:19 PM, Grant Likely wrote: > > of_get_next_available_child() obtains the devtree_lock and then calls > > of_device_is_available() which also attempts to claim the lock. This is > > obviously incorrect and causes a

Re: [PATCH] clk: tegra: initialise parent of uart clocks

2013-02-12 Thread Laxman Dewangan
On Tuesday 12 February 2013 08:47 PM, Laxman Dewangan wrote: Initialise the parent of UARTs to PLLP and disabling clock by default. Signed-off-by: Laxman Dewangan --- Please ignore this, I just sent the other patch as V2 to have more appropriate version. Please review the Patch V2. Sorry

[PATCH V2] clk: tegra: initialise parent of uart clocks

2013-02-12 Thread Laxman Dewangan
Initialise the parent of UARTs to PLLP and disabling clock by default. Signed-off-by: Laxman Dewangan --- As suggested by Stephen, Make other uarts clock state to disable as driver already enable these clocks. drivers/clk/tegra/clk-tegra20.c |7 +-- drivers/clk/tegra/clk-tegra30.c |

[PATCH] clk: tegra: initialise parent of uart clocks

2013-02-12 Thread Laxman Dewangan
Initialise the parent of UARTs to PLLP and disabling clock by default. Signed-off-by: Laxman Dewangan --- As suggested by Stephen, Make other uarts clock state to disable as driver already enable these clocks. drivers/clk/tegra/clk-tegra20.c |7 +-- drivers/clk/tegra/clk-tegra30.c |

Re: [PATCH 5/5] perf, x86: Move NMI clearing to end of PMI handler after the counter registers are reset

2013-02-12 Thread Andi Kleen
On Tue, Feb 12, 2013 at 09:43:46AM +0100, Ingo Molnar wrote: > Was this stress-tested on all affected main CPU types, or only > on Haswell? I tested it on Haswell and Ivy Bridge. I can also try Westmere and a Saltwell(Atom), but for the majority of other family 6 systems I'll need to rely on the

[RFC PATCH 0/2][v2] ima: Support a mode to appraise signed files only

2013-02-12 Thread Vivek Goyal
Hi. Currently ima appraises all the files as specified by the rule. So if one wants to create a system where only few executables are signed, that system will not work with IMA. With secureboot, one needs to disable kexec so that unsigned kernels can't be booted. To avoid this problem, it was

[PATCH 1/2] ima: detect security xattrs not enabled

2013-02-12 Thread Vivek Goyal
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 early Signed-off-by: Vivek Goyal Acked-by: Mimi Zohar ---

[PATCH 2/2] ima: Allow appraisal of digitally signed files only

2013-02-12 Thread Vivek Goyal
Currently ima appraises all the files as specified by the rule. So if one wants to create a system where only few executables are signed, that system will not work with IMA. With secureboot, one needs to disable kexec so that unsigned kernels can't be booted. To avoid this problem, it was

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

2013-02-12 Thread Johannes Weiner
On Tue, Feb 12, 2013 at 10:54:19AM +0100, Michal Hocko wrote: > 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: > > > > That way, if the dead count gives the go-ahead, you KNOW

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

2013-02-12 Thread Vincent Guittot
On 12 February 2013 15:53, Steven Rostedt wrote: > On Tue, 2013-02-12 at 14:23 +0100, Vincent Guittot wrote: >> .set_curr_task = set_curr_task_idle, >> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h >> index fc88644..9707092 100644 >> --- a/kernel/sched/sched.h >> +++

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

2013-02-12 Thread Matthieu CASTET
Will Deacon a écrit : > 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,

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

2013-02-12 Thread Viresh Kumar
On 12 February 2013 16:28, Andy Shevchenko wrote: > 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

Re: [PATCH v2] APM idle: register apm_cpu_idle via cpuidle

2013-02-12 Thread Daniel Lezcano
On 02/12/2013 12:03 AM, Len Brown wrote: > From: Len Brown > > Update APM to register its local idle routine with cpuidle. > > This allows us to stop exporting pm_idle to modules on x86. > > The Kconfig sub-option, APM_CPU_IDLE, now depends on on CPU_IDLE. > > Compile-tested only. > >

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

2013-02-12 Thread Steven Rostedt
On Tue, 2013-02-12 at 14:23 +0100, Vincent Guittot wrote: > .set_curr_task = set_curr_task_idle, > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > index fc88644..9707092 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -877,6 +877,7 @@ extern const

[PATCH 04/10] cris/kgdb: Use #ifdef PROCESS_SUPPORT where needed

2013-02-12 Thread Geert Uytterhoeven
arch/cris/arch-v10/kernel/kgdb.c:354:12: warning: 'current_thread_c' defined but not used [-Wunused-variable] arch/cris/arch-v10/kernel/kgdb.c:355:12: warning: 'current_thread_g' defined but not used [-Wunused-variable] arch/cris/arch-v10/kernel/kgdb.c:359:18: warning: 'reg_g' defined but not

[PATCH 03/10] cris/kgdb: Kill forward declarations for static functions

2013-02-12 Thread Geert Uytterhoeven
Move some functions around and kill forward declarations for static functions. This fixes: arch/cris/arch-v10/kernel/kgdb.c:255:13: warning: 'copy_registers_from_stack' declared 'static' but never defined [-Wunused-function] arch/cris/arch-v10/kernel/kgdb.c:259:13: warning:

[PATCH 0/10] Some criss allmodconfig fixes

2013-02-12 Thread Geert Uytterhoeven
Hi Mikael, Jesper, This series fixes some issues with criss allmodconfig builds. They received compile-testing only. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal

[PATCH 09/10] cris: Provide

2013-02-12 Thread Geert Uytterhoeven
In file included from include/linux/kvm_para.h:4:0, from kernel/watchdog.c:28: include/uapi/linux/kvm_para.h:26:26: fatal error: asm/kvm_para.h: No such file or directory Signed-off-by: Geert Uytterhoeven --- arch/cris/include/asm/Kbuild |1 + 1 files changed, 1

[PATCH 10/10] cris: Provide inb_p() and outb_p()

2013-02-12 Thread Geert Uytterhoeven
drivers/block/hd.c: In function 'check_status': drivers/block/hd.c:256:2: error: implicit declaration of function 'inb_p' [-Werror=implicit-function-declaration] drivers/block/hd.c: In function 'controller_ready': drivers/block/hd.c:297:3: error: implicit declaration of function 'outb_p'

[PATCH 02/10] cris/kgdb: Remove unused static int do_printk

2013-02-12 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/cris/arch-v10/kernel/kgdb.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index 0a42033..6b64567 100644 --- a/arch/cris/arch-v10/kernel/kgdb.c +++

[PATCH 01/10] cris/kgdb: Properly split long lines in asm

2013-02-12 Thread Geert Uytterhoeven
arch/cris/arch-v10/kernel/kgdb.c:1273:6: warning: missing terminating " character [enabled by default] arch/cris/arch-v10/kernel/kgdb.c:1359:1: warning: missing terminating " character [enabled by default] arch/cris/arch-v10/kernel/kgdb.c:1370:6: warning: missing terminating " character

[PATCH 06/10] cris/kgdb: Remove obsolete USED*() macros

2013-02-12 Thread Geert Uytterhoeven
handle_exception and internal_stack are now global Signed-off-by: Geert Uytterhoeven --- arch/cris/arch-v10/kernel/kgdb.c |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index 7e24b73..d0b6257

[PATCH v2 2/9] pps: Use pps_lookup_dev to reduce ldisc coupling

2013-02-12 Thread George Spelvin
Now that N_TTY uses tty->disc_data for its private data, 'subclass' ldiscs cannot use ->disc_data for their own private data. (This is a regression is v3.8-rc1) Use pps_lookup_dev to associate the tty with the pps source instead. This fixes a crashing regression in 3.8-rc1. Signed-off-by:

[PATCH 05/10] cris/kgb: Make symbols used from asm global

2013-02-12 Thread Geert Uytterhoeven
arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint': (.text+0x2c3e): undefined reference to `reg' arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint': (.text+0x2c48): undefined reference to `reg' arch/cris/arch-v10/kernel/built-in.o: In function

[PATCH v2 3/9] pps: Fix a use-after free bug when unregistering a source.

2013-02-12 Thread George Spelvin
Remove the cdev from the system (with cdev_del) *before* deallocating it (in pps_device_destruct, called via kobject_put from device_destroy). Also prevent deallocating a device with open file handles. A better long-term fix is probably to remove the cdev from the pps_device entirely, and

[PATCH v2 4/9] pps: Don't crash the machine when exiting will do

2013-02-12 Thread George Spelvin
PPS is not really the must-have subsystem that warrants crashing the machine if the ldisc interface is broken. Signed-off-by: Peter Hurley Signed-off-by: George Spelvin --- drivers/pps/clients/pps-ldisc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH v2 5/9] pps: Move timestamp read into PPS code proper

2013-02-12 Thread George Spelvin
The PPS (Pulse-Per-Second) line discipline has developed a number of unhealthy attachments to core tty data and functions, ultimately leading to its breakage. The previous patches fixed the crashing. This one reduces coupling further by eliminating the timestamp parameter from the dcd_change

[PATCH v2 8/9] pps: Use a single cdev

2013-02-12 Thread George Spelvin
One per device just seems wasteful, when we already manintain a data structure to map minor numbers to devices, and we already have a PPS_MAX_SOURCES #define. This is also a more comprehensive fix to the use-after-free bug that has already received a minimal patch. --- drivers/pps/pps.c

[PATCH v2 7/9] tty: Remove ancient hardpps()

2013-02-12 Thread Peter Hurley
hardpps() functionality is provided through the N_PPS line discipline now. The new function signature was added in commit 025b40ab (2011-01-12). There was no previous macro or function hardpps(), at least since before the initial commit of v2.6.12 in 2005. It's unlikely this code has been compiled

[PATCH v2 0/9] 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-12 Thread George Spelvin
The standard N_TTY line discipline used to not use the tty->disc_data field, so N_PPS felt free to use it. That has now changed, requiring that N_PPS use a different method to find its private data. (In the current, buggy, state, N_PPS follows a wild pointer and explodes in an interrupt hander

[PATCH v2 6/9] pps: Additional cleanups in uart_handle_dcd_change

2013-02-12 Thread George Spelvin
An extension of the previous commit, there is no semantic change here, just fewer lines of source code. Signed-off-by: George Spelvin --- drivers/tty/serial/serial_core.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/serial_core.c

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

2013-02-12 Thread Samuel Ortiz
Hi Roger, On Tue, Feb 12, 2013 at 04:46:51PM +0200, Roger Quadros wrote: > On 02/11/2013 08:52 PM, Tony Lindgren wrote: > > * Stephen Rothwell [130210 22:11]: > >> Hi all, > >> > >> Today's linux-next merge of the arm-soc tree got a conflict in > >> arch/arm/mach-omap2/usb-host.c between commit

[PATCH v2 9/9] tty/tty_ldisc.c: use test_and_clear_bit in tty_ldisc_close

2013-02-12 Thread George Spelvin
We have a function to test and clear a bit in one step, so use it. Signed-off-by: George Spelvin --- drivers/tty/tty_ldisc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index c578229..4606ab9 100644 ---

[PATCH v2 1/9] pps: Add pps_lookup_dev() function

2013-02-12 Thread George Spelvin
The PPS serial line discipline wants to attach a PPS device to a tty without changing the tty code to add a struct pps_device * pointer. Since the number of PPS devices in a typical system is generally very low (n=1 is by far the most common), it's practical to search the entire list of allocated

[PATCH 08/10] [RFC] cris/kgdb: Remove sections protected by #ifdef PROCESS_SUPPORT

2013-02-12 Thread Geert Uytterhoeven
When enabled, it doesn't build anyway: arch/cris/arch-v10/kernel/kgdb.c: In function 'copy_registers_from_stack': arch/cris/arch-v10/kernel/kgdb.c:631:2: error: unknown type name 'stack_registers' arch/cris/arch-v10/kernel/kgdb.c:631:24: error: 'stack_registers' undeclared (first use in this

[PATCH 07/10] cris/kgdb: Fix buffer overflow in getpacket()

2013-02-12 Thread Geert Uytterhoeven
arch/cris/arch-v10/kernel/kgdb.c: In function 'handle_exception': arch/cris/arch-v10/kernel/kgdb.c:534:17: warning: array subscript is above array bounds [-Warray-bounds] Signed-off-by: Geert Uytterhoeven --- arch/cris/arch-v10/kernel/kgdb.c |2 +- 1 files changed, 1 insertions(+), 1

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

2013-02-12 Thread Michael S. Tsirkin
On Tue, Feb 12, 2013 at 01:23:27PM +0100, Paolo Bonzini wrote: > 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

Re: [CRIU] [PATCH 3/3] signalfd: add ability to read siginfo-s without dequeuing signals (v2)

2013-02-12 Thread Pavel Emelyanov
>>> Process checkpointing needs to bite the bullet and >>> create its own API instead. >> >> This is bad approach as well. What we should do is come up with a sane >> API that makes sense without the checkpoint-restore project _when_ >> _possible_. > > Coming up with a sane API in general isn't

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

2013-02-12 Thread Roger Quadros
On 02/11/2013 08:52 PM, Tony Lindgren wrote: > * Stephen Rothwell [130210 22:11]: >> Hi all, >> >> Today's linux-next merge of the arm-soc tree got a conflict in >> arch/arm/mach-omap2/usb-host.c between commit 8a89e93237e1 ("mfd: >> omap-usb-host: Consolidate OMAP USB-HS platform data") from the

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 Steven Rostedt
On Tue, 2013-02-12 at 08:06 +0100, Mike Galbraith wrote: > On Tue, 2013-02-12 at 01:31 +0400, Kirill Tkhai wrote: > > It's possible a situation when rq->rt is throttled or > > it has no child entities and there are RT tasks ready > > for execution in the rq which are the only tasks > > of

Re: [PATCH] iommu: making IOMMU sysfs nodes API public

2013-02-12 Thread Alexey Kardashevskiy
On 12/02/13 16:07, Alex Williamson wrote: On Tue, 2013-02-12 at 15:06 +1100, Alexey Kardashevskiy wrote: Having this patch in a tree, adding new nodes in sysfs for IOMMU groups is going to be easier. The first candidate for this change is a "dma-window-size" property which tells a size of a

[PATCH] avr32: atmel_default_console_device depends on CONFIG_SERIAL_ATMEL

2013-02-12 Thread Geert Uytterhoeven
allnoconfig: arch/avr32/mach-at32ap/built-in.o: In function `at32_select_gpio': (.init.text+0x548): undefined reference to `atmel_default_console_device' Signed-off-by: Geert Uytterhoeven --- arch/avr32/mach-at32ap/at32ap700x.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

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

2013-02-12 Thread Vivek Goyal
On Tue, Feb 12, 2013 at 06:45:06AM -0500, Mimi Zohar wrote: > 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

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-12 Thread Vivek Goyal
On Mon, Feb 11, 2013 at 05:10:14PM -0500, Mimi Zohar wrote: > On Mon, 2013-02-11 at 15:11 -0500, Vivek Goyal wrote: > > appraise_type=imasig_optional will allow appraisal to pass even if no > > signatures are present on the file. If signatures are present, then it > > has to be valid digital

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

2013-02-12 Thread André Hentschel
Am 12.02.2013 15:09, schrieb 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

Re: [PATCH 1/1] genksyms: fix metag symbol prefix on crc symbols

2013-02-12 Thread James Hogan
On 11/02/13 15:57, James Hogan wrote: > Meta uses symbol prefixes, so add "metag" to the list of architectures > to set the mod_prefix to "_" for. This fixes __crc_* symbols to add the > extra underscore to match _CRC_SYMBOL macro in and so > that modpost finds them. > > Signed-off-by: James

[PATCH 2/2] perf stat: add per-core aggregation

2013-02-12 Thread Stephane Eranian
This patch adds the --aggr-core option to perf stat. This option is used to aggregate system-wide counts on a per physical core basis. On processors with hyperthreading, this means counts of all HT threads running on a physical core are aggregated. This mode is useful to find imblance between

[PATCH 1/2] perf stat: refactor aggregation code

2013-02-12 Thread Stephane Eranian
Refactor aggregation code by introducing a single aggr_mode variable and an enum for aggregation. Also refactor cpumap code having to do with cpu to socket mappings. All in preparation for extended modes, such as cpu -> core. Also fix socket aggregation and ensure that sockets are printed in

[PATCH 0/2] perf stat: add per-core count aggregation

2013-02-12 Thread Stephane Eranian
This patch series contains improvement to the aggregation support in perf stat. First, the aggregation code is refactored and a aggr_mode enum is defined. There is also an important bug fix for the existing per-socket aggregation. Second, the patch adds a new --aggr-core option to perf stat. It

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