Re: [PATCH] pinctrl/nomadik: allocate IRQ descriptors dynamically

2012-09-27 Thread Rob Herring
On 09/26/2012 12:18 PM, Linus Walleij wrote: > From: Linus Walleij > > This allocates the IRQ descriptors for the Nomadik pin controller > dynamically so that we don't have to rely on some other mechanism > doing it, and moving a step closer to a linear IRQ domain. > > Cc: Rob Herring >

Re: mtip32xx:Added appropriate timeout value for secure erase

2012-09-27 Thread Jens Axboe
On 09/27/2012 02:57 PM, Selvan Mani wrote: > Hi Jens, > > Please queue this patch for 3.7. > > Added appropriate timeout value for secure erase based on identify device data Queued up! -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Michal Hocko
On Thu 27-09-12 16:20:55, Glauber Costa wrote: > On 09/27/2012 04:15 PM, Michal Hocko wrote: > > On Wed 26-09-12 16:33:34, Tejun Heo wrote: > > [...] > So, this seems properly crazy to me at the similar level of > use_hierarchy fiasco. I'm gonna NACK on this. > >>> > >>> As I said: all

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Glauber Costa
On 09/27/2012 04:40 PM, Michal Hocko wrote: > On Thu 27-09-12 16:20:55, Glauber Costa wrote: >> On 09/27/2012 04:15 PM, Michal Hocko wrote: >>> On Wed 26-09-12 16:33:34, Tejun Heo wrote: >>> [...] >> So, this seems properly crazy to me at the similar level of >> use_hierarchy fiasco. I'm

Re: [PATCH 4/4] memory-hotplug: auto offline page_cgroup when onlining memory block failed

2012-09-27 Thread Ni zhan Chen
On 09/27/2012 01:45 PM, we...@cn.fujitsu.com wrote: From: Wen Congyang When a memory block is onlined, we will try allocate memory on that node to store page_cgroup. If onlining the memory block failed, we don't offline the page cgroup, and we have no chance to offline this page cgroup unless

Re: [PATCH] pinctrl/nomadik: allocate IRQ descriptors dynamically

2012-09-27 Thread Linus Walleij
On Thu, Sep 27, 2012 at 2:37 PM, Rob Herring wrote: >> nmk_chip->domain = irq_domain_add_legacy(np, NMK_GPIO_PER_CHIP, > > You might as well change to irq_domain_add_simple here. True. I'll fix. > Perhaps we should just add irq_alloc_descs call into > irq_domain_add_simple in the legacy

[PATCH 1/8] fs/namespace.c: introduce helper function path_unmounted()

2012-09-27 Thread Yan Hong
In fs/namespace.c, we verify whether a path is a mountpoint by comparing path->dentry and path->mnt->mnt_root. Introduce path_unmounted() to make code more readable. Signed-off-by: Yan Hong --- fs/namespace.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff

[PATCH 3/8] fs/namespace.c: trivial code clean

2012-09-27 Thread Yan Hong
Signed-off-by: Yan Hong --- fs/namespace.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index dd969f8..bbe9014 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -763,7 +763,7 @@ vfs_kern_mount(struct file_system_type *type, int

[PATCH 2/8] fs/namespace.c: remove unused macro MNT_WRITER_UNDERFLOW_LIMIT

2012-09-27 Thread Yan Hong
Its users have gone. Signed-off-by: Yan Hong --- fs/namespace.c |1 - 1 file changed, 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index 3fdc239..dd969f8 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -59,7 +59,6 @@ static inline unsigned long hash(struct vfsmount *mnt,

[PATCH 4/8] fs/namespace.c: check permission early in sys_[u]mount

2012-09-27 Thread Yan Hong
We have several branches in sys_mount, each of them will check CAP_SYS_ADMIN capability seperately. Do this check at the beginning of sys_mount. Also check permission as early as possible in sys_umount. Signed-off-by: Yan Hong --- fs/namespace.c | 26 +++--- 1 file

[PATCH 5/8] fs/namei.c: introduce macro AT_FDINV

2012-09-27 Thread Yan Hong
File descriptor is irrelevent when LOOKUP_ROOT is set. Introduce AT_FDINV to avoid using hard coded value or reusing existing macro. Signed-off-by: Yan Hong --- fs/namei.c| 11 ++- include/linux/fcntl.h |2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff

[PATCH 6/8] fs/inode.c: call alloc_inode() in new_inode() directly

2012-09-27 Thread Yan Hong
This saves us a list head initialization. Signed-off-by: Yan Hong --- fs/inode.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index ac8d904..3a2cd41 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -921,9 +921,11 @@ struct inode

[PATCH 7/8] fs/inode.c: remove outstanding spin lock prefetch

2012-09-27 Thread Yan Hong
Do we have particular reason to do this here? Signed-off-by: Yan Hong --- fs/inode.c |3 --- 1 file changed, 3 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index 3a2cd41..e89d30c 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -14,7 +14,6 @@ #include #include #include -#include

[PATCH 8/8] vfs: misc comment clean

2012-09-27 Thread Yan Hong
Mostly fix comments which reference inexist locks or parameters. Signed-off-by: Yan Hong --- fs/dcache.c| 12 fs/inode.c |4 ++-- fs/namei.c |2 +- fs/namespace.c |9 +++-- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/fs/dcache.c

Re: [PATCH] pinctrl/nomadik: allocate IRQ descriptors dynamically

2012-09-27 Thread Russell King - ARM Linux
On Wed, Sep 26, 2012 at 07:18:07PM +0200, Linus Walleij wrote: > + irq_start = NOMADIK_GPIO_TO_IRQ(pdata->first_gpio); > + irq_base = irq_alloc_descs(irq_start, 0, NMK_GPIO_PER_CHIP, > +numa_node_id()); > + if (IS_ERR_VALUE(irq_base)) { commit

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Michal Hocko
On Thu 27-09-12 16:40:03, Glauber Costa wrote: > On 09/27/2012 04:40 PM, Michal Hocko wrote: > > On Thu 27-09-12 16:20:55, Glauber Costa wrote: > >> On 09/27/2012 04:15 PM, Michal Hocko wrote: > >>> On Wed 26-09-12 16:33:34, Tejun Heo wrote: > >>> [...] > >> So, this seems properly crazy to me

[ANNOUNCE] 3.2.30-rt45

2012-09-27 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.2.30-rt45 stable release. This release is just an update to the new stable 3.2.30 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [patch 1/7] procfs: Add ability to plug in auxiliary fdinfo providers

2012-09-27 Thread Pavel Emelyanov
On 09/17/2012 10:18 PM, Cyrill Gorcunov wrote: > On Thu, Sep 13, 2012 at 01:29:07AM +0400, Cyrill Gorcunov wrote: >> This patch brings ability to print out auxiliary data associated >> with file in procfs interface /proc/pid/fdinfo/fd. >> >> In particular further patches make eventfd, evenpoll,

Re: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread Mathieu Desnoyers
* David Laight (david.lai...@aculab.com) wrote: > > > > And even then, if we would do: > > > > > > > > for (i = 0; i < HASH_SIZE(hashtable); i++) > > > > if (!hlist_empty([i])) > > > > break; > > > > > > > > return i >= HASH_SIZE(hashtable);

Re: [PATCH v3] watchdog/imx2+: add support for pretimeout interrupt functionality

2012-09-27 Thread Oskar Schirmer
Hi Wim, unless there is another issue with this patch, could You give an ack now? thanks, Oskar On Thu, Sep 20, 2012 at 15:37:24 +, Oskar Schirmer wrote: > This watchdog device provides pretimeout facilities: > Set some timeout value and get informed about imminent > watchdog activity

Re: [PATCHv3] dw_dmac: autoconfigure data_width or get it via platform data

2012-09-27 Thread Andy Shevchenko
On Thu, 2012-09-27 at 16:03 +0530, Vinod Koul wrote: > On Thu, 2012-09-27 at 15:36 +0530, Vinod Koul wrote: > > On Tue, 2012-09-25 at 14:39 +0300, Andy Shevchenko wrote: > > > Not all of the controllers support the 64 bit data width. Make it > > > configurable > > > via platform data. The driver

Re: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread Mathieu Desnoyers
* Sasha Levin (levinsasha...@gmail.com) wrote: > On 09/27/2012 10:25 AM, David Laight wrote: > And even then, if we would do: > > for (i = 0; i < HASH_SIZE(hashtable); i++) > if (!hlist_empty([i])) > break; > >

Re: [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated

2012-09-27 Thread Mel Gorman
On Tue, Sep 25, 2012 at 01:03:52PM -0700, Andrew Morton wrote: > On Tue, 25 Sep 2012 10:12:07 +0100 > Mel Gorman wrote: > > > First, we'd introduce a variant of get_pageblock_migratetype() that returns > > all the bits for the pageblock flags and then helpers to extract either the > >

[PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Linus Walleij
From: Linus Walleij Currently we rely on all IRQ chip instances to dynamically allocate their IRQ descriptors unless they use the linear IRQ domain. So for irqdomain_add_legacy() and irqdomain_add_simple() the caller need to make sure that descriptors are allocated. Let's slightly augment the

[PATCH 4/4] ARM: nomadik/ux500: convert to SPARSE_IRQ

2012-09-27 Thread Linus Walleij
From: Linus Walleij This converts the Nomadik and Ux500 over to using sparse IRQ, including some pokes around the pinctrl driver. To avoid referencing unnecessary header files, the plat-nomadik timer driver is augmented to pass an irq number at init time, and the change is applied across both

[PATCH 1/4] pinctrl/nomadik: use irq_find_mapping()

2012-09-27 Thread Linus Walleij
From: Linus Walleij The code was using a homegrown method of looking up the offset from the irq domain, not to be encouraged. Use the proper irq_find_mapping() call instead. Cc: Lee Jones Cc: Rob Herring Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik.c | 4 +--- 1 file

[PATCH 3/4] pinctrl/nomadik: use simple or linear IRQ domain

2012-09-27 Thread Linus Walleij
From: Linus Walleij This alters the Nomadik pinctrl driver to: - Call irqdomain_add_linear() for the DT case so we get all independent from IRQ numbers in this case. - Call irqdomain_add_simple() for the legacy case, which allocates the IRQ descriptors for the Nomadik pin controller

Re: radeon: Regression between v3.6-rc4 and v3.6-rc6: unable to allocate a PPLL

2012-09-27 Thread Alex Deucher
On Thu, Sep 27, 2012 at 2:46 AM, Andres Freund wrote: > On Wednesday, September 26, 2012 03:42:40 PM Deucher, Alexander wrote: >> > -Original Message- >> > From: Andres Freund [mailto:and...@anarazel.de] >> > Sent: Wednesday, September 26, 2012 9:41 AM >> > To: Dan Carpenter >> > Cc:

Re: [PATCH 3/3] memory_hotplug: Don't modify the zone_start_pfn outside of zone_span_writelock()

2012-09-27 Thread Ni zhan Chen
On 09/27/2012 02:47 PM, Lai Jiangshan wrote: The __add_zone() maybe call sleep-able init_currently_empty_zone() to init wait_table, But this function also modifies the zone_start_pfn without any lock. It is bugy. So we move this modification out, and we ensure the modification of

Re: [PATCH 01/13] clk: davinci - add Main PLL clock driver

2012-09-27 Thread Linus Walleij
On Wed, Sep 26, 2012 at 8:07 PM, Murali Karicheri wrote: > +struct clk_davinci_pll_data { > + /* physical addresses set by platform code */ > + u32 phy_pllm; > + /* if PLL has a prediv register this should be non zero */ > + u32 phy_prediv; > + /* if PLL has a

Re: radeon: Regression between v3.6-rc4 and v3.6-rc6: unable to allocate a PPLL

2012-09-27 Thread Andres Freund
On Thursday, September 27, 2012 03:14:31 PM Alex Deucher wrote: > On Thu, Sep 27, 2012 at 2:46 AM, Andres Freund wrote: > > On Wednesday, September 26, 2012 03:42:40 PM Deucher, Alexander wrote: > >> > -Original Message- > >> > From: Andres Freund [mailto:and...@anarazel.de] > >> > Sent:

Re: [PATCH v2 3/4] perf annotate: configure objdump path at compile time

2012-09-27 Thread Namhyung Kim
On Thu, 27 Sep 2012 14:25:10 +0300, Irina Tirdea wrote: >>> The perf built to run on the host needs to use arm-eabi-objdump from >>> the toolchain so that it can analyse data recorded on Android. This >>> patch is targeting this scenario, not the previous one. In this case, >>> the CROSS_COMPILE

Re: [PATCH 3/4] pinctrl/nomadik: use simple or linear IRQ domain

2012-09-27 Thread Rob Herring
On 09/27/2012 08:13 AM, Linus Walleij wrote: > From: Linus Walleij > > This alters the Nomadik pinctrl driver to: > > - Call irqdomain_add_linear() for the DT case so we get > all independent from IRQ numbers in this case. > - Call irqdomain_add_simple() for the legacy case, which >

Re: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread Steven Rostedt
On Thu, 2012-09-27 at 09:11 -0400, Mathieu Desnoyers wrote: > AFAIK, gcc nowadays use "inline" only as a hint Only if CONFIG_OPTIMIZE_INLINING is set. >From include/linux/compiler-gcc.h: #if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ !defined(CONFIG_OPTIMIZE_INLINING) ||

Re: [PATCH v3 05/13] Add a __GFP_KMEMCG flag

2012-09-27 Thread Mel Gorman
On Tue, Sep 18, 2012 at 06:04:02PM +0400, Glauber Costa wrote: > This flag is used to indicate to the callees that this allocation is a > kernel allocation in process context, and should be accounted to > current's memcg. It takes numerical place of the of the recently removed > __GFP_NO_KSWAPD. >

[RFC v2] perf tools: Try to find cross-built objdump path

2012-09-27 Thread Namhyung Kim
From: Namhyung Kim As we have architecture information of saved perf.data file, we can try to find cross-built objdump path. The triplets are incomplete and maybe need some regexp works. Cc: Irina Tirdea Signed-off-by: Namhyung Kim --- v2: don't modify env string tools/perf/Makefile

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-27 Thread Mike Galbraith
On Thu, 2012-09-27 at 12:20 +0200, Borislav Petkov wrote: > On Thu, Sep 27, 2012 at 12:17:22AM -0700, da...@lang.hm wrote: > > It seems to me that trying to figure out if you are going to > > overload the L2 is an impossible task, so just assume that it will > > all fit, and the worst case is you

Re: [PATCH] printk: drop ambiguous LOG_CONT flag

2012-09-27 Thread Kay Sievers
On Thu, Sep 27, 2012 at 12:33 AM, "Jan H. Schönherr" wrote: > Am 26.09.2012 23:15, schrieb Greg Kroah-Hartman: >> On Wed, Sep 26, 2012 at 07:58:45PM +0200, Jan H. Schönherr wrote: >>> Against v3.6-rc7, only lightly tested. >> >> Well, against linux-next and highly tested would be best. It's a

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks for a spinlock_t *. > > Regmap

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Rob Herring
On 09/27/2012 08:13 AM, Linus Walleij wrote: > From: Linus Walleij > > Currently we rely on all IRQ chip instances to dynamically > allocate their IRQ descriptors unless they use the linear > IRQ domain. So for irqdomain_add_legacy() and > irqdomain_add_simple() the caller need to make sure that

Re: [PATCH] mfd: da9052-core: Fix request_threaded_irq() parameter

2012-09-27 Thread Marek Vasut
Dear Fabio Estevam, > From: Fabio Estevam > > On a mx53qsb dt-kernel the da9052-core driver fails to probe: > > da9052 1-0048: DA9052 ADC IRQ failed ret=-22 > > In request_threaded_irq() the first parameter is missing the > da9052->irq_base. > > Fix it and avoid the error. > > Also define

Re: [PATCH v3 06/13] memcg: kmem controller infrastructure

2012-09-27 Thread Michal Hocko
On Thu 27-09-12 15:31:57, Glauber Costa wrote: > On 09/26/2012 07:51 PM, Michal Hocko wrote: > > On Tue 18-09-12 18:04:03, Glauber Costa wrote: [...] > >> + *_memcg = NULL; > >> + rcu_read_lock(); > >> + p = rcu_dereference(current->mm->owner); > >> + memcg = mem_cgroup_from_task(p); > > > >

Re: [PATCH v3 05/13] Add a __GFP_KMEMCG flag

2012-09-27 Thread Glauber Costa
On 09/27/2012 05:34 PM, Mel Gorman wrote: > On Tue, Sep 18, 2012 at 06:04:02PM +0400, Glauber Costa wrote: >> This flag is used to indicate to the callees that this allocation is a >> kernel allocation in process context, and should be accounted to >> current's memcg. It takes numerical place of

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Mark Brown
On Thu, Sep 27, 2012 at 03:41:10PM +0200, Davide Ciminaghi wrote: > Maybe there's another solution: what about adding a couple of function > pointers (lock, unlock) to struct regmap_config ? If they're set to NULL, > everything works as usual. If they're not NULL, regmap uses such functions > to

Re: [PATCH v3 07/13] mm: Allocate kernel pages to the right memcg

2012-09-27 Thread Mel Gorman
On Tue, Sep 18, 2012 at 06:04:04PM +0400, Glauber Costa wrote: > When a process tries to allocate a page with the __GFP_KMEMCG flag, the > page allocator will call the corresponding memcg functions to validate > the allocation. Tasks in the root memcg can always proceed. > > To avoid adding

Re: [PATCH v3 07/13] mm: Allocate kernel pages to the right memcg

2012-09-27 Thread Michal Hocko
On Tue 18-09-12 18:04:04, Glauber Costa wrote: > When a process tries to allocate a page with the __GFP_KMEMCG flag, the > page allocator will call the corresponding memcg functions to validate > the allocation. Tasks in the root memcg can always proceed. > > To avoid adding markers to the page -

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Paul Mundt
On Thu, Sep 27, 2012 at 03:13:45PM +0200, Linus Walleij wrote: > + if (first_irq > 0) { > + int irq_base; > + > + irq_base = irq_alloc_descs(first_irq, 0, size, numa_node_id()); > + if (irq_base < 0) { > + WARN(1, "Cannot allocate

[PATCH 1/3] staging/sbe-2t3e3: Use netdev_ printks in main.c

2012-09-27 Thread YAMANE Toshiaki
fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki --- drivers/staging/sbe-2t3e3/main.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 2/3] staging/sbe-2t3e3: Use netdev_ or dev_ or pr_ printks in module.c

2012-09-27 Thread YAMANE Toshiaki
fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... and add pr_fmt. Signed-off-by: YAMANE Toshiaki --- drivers/staging/sbe-2t3e3/module.c | 12 1 file changed, 8 insertions(+), 4 deletions(-)

[PATCH 3/3] staging/sbe-2t3e3: Use netdev_ printks in cpld.c

2012-09-27 Thread YAMANE Toshiaki
fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki --- drivers/staging/sbe-2t3e3/cpld.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCHv3] dw_dmac: autoconfigure data_width or get it via platform data

2012-09-27 Thread Andy Shevchenko
On Thu, Sep 27, 2012 at 1:06 PM, Vinod Koul wrote: > On Tue, 2012-09-25 at 14:39 +0300, Andy Shevchenko wrote: >> Not all of the controllers support the 64 bit data width. Make it >> configurable >> via platform data. The driver will try to get a value from the component >> parameters, otherwise

Re: [BUG] Deferred probing in driver model is racy, resulting in lost probes

2012-09-27 Thread Russell King - ARM Linux
On Thu, Sep 27, 2012 at 07:47:46AM +0800, Ming Lei wrote: > On Thu, Sep 27, 2012 at 4:23 AM, Russell King - ARM Linux > wrote: > > To be honest, I've not bothered to test the above patch, and now when I > > look at it, I notice it's broken - in that on error it will corrupt the > > driver list.

Re: linux-next: manual merge of the char-misc tree with the tree

2012-09-27 Thread Greg KH
On Thu, Sep 27, 2012 at 03:31:19PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in > drivers/char/pcmcia/synclink_cs.c between commit f21ec3d2d46e ("serial: > add a new helper function") from the tty tree and commit 221b7b5796b5 >

Re: [BUG] Deferred probing in driver model is racy, resulting in lost probes

2012-09-27 Thread Russell King - ARM Linux
On Thu, Sep 27, 2012 at 02:58:09PM +0100, Russell King - ARM Linux wrote: > On Thu, Sep 27, 2012 at 07:47:46AM +0800, Ming Lei wrote: > > On Thu, Sep 27, 2012 at 4:23 AM, Russell King - ARM Linux > > wrote: > > > To be honest, I've not bothered to test the above patch, and now when I > > > look

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-27 Thread Christoph Lameter
On Wed, 26 Sep 2012, David Rientjes wrote: > I would suggest cachep->flags being used solely for the flags passed to > kmem_cache_create() and seperating out all "internal flags" based on the > individual slab allocator's implementation into a different field. There > should be no problem with

[PATCH v2 2/2] usb: phy: omap-usb2: enable 960Mhz clock for omap5

2012-09-27 Thread Kishon Vijay Abraham I
"usb_otg_ss_refclk960m" is needed for usb2 phy present in omap5. For omap4, the clk_get of this clock will fail since it does not have this clock. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/phy/omap-usb2.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-)

[PATCH v2 1/2] usb: phy: add a new driver for usb3 phy

2012-09-27 Thread Kishon Vijay Abraham I
Added a driver for usb3 phy that handles the interaction between usb phy device and dwc3 controller. This also includes device tree support for usb3 phy driver and the documentation with device tree binding information is updated. Currently writing to control module register is taken care in

[PATCH v2 0/2] usb: phy: add usb3 phy driver

2012-09-27 Thread Kishon Vijay Abraham I
Added a driver for usb3 phy that handles the interaction between usb phy device and dwc3 controller. Currently writing to control module register is taken care in this driver which will be removed once the control module driver is in place. Changes from v1: * Added missing clk_put() * Remove the

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread Cyrill Gorcunov
On Mon, Sep 24, 2012 at 06:14:41PM +0400, Cyrill Gorcunov wrote: > > As to Alan's point on "what's the use of this if it can instantly change > after you read the value" I guess it's the same as what we have when we > simply set the value. Imagine we have two tasks fork'ed, first task do > lock

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-27 Thread Christoph Lameter
On Wed, 26 Sep 2012, David Rientjes wrote: > On Wed, 26 Sep 2012, Christoph Lameter wrote: > > > > Nack, this is already handled by CREATE_MASK in the mm/slab.c allocator; > > > > CREATE_MASK defines legal flags that can be specified. Other flags cause > > and error. This is about flags that are

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Alan Cox
> as far as I know, nested locks are fine provided that you always take them in > the same order and release them in the opposite order (lock A, lock B, > unlock B, unlock A). So my conclusion is that nested spinlocks require > potential regmap users of sta2x11 registers to take the sta2x11-mfd

Re: [PATCH] mfd: da9052-core: Fix request_threaded_irq() parameter

2012-09-27 Thread Mark Brown
On Thu, Sep 27, 2012 at 12:55:35AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > On a mx53qsb dt-kernel the da9052-core driver fails to probe: > > da9052 1-0048: DA9052 ADC IRQ failed ret=-22 > > In request_threaded_irq() the first parameter is missing the da9052->irq_base. > > Fix it

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread Alan Cox
> Alan, Greg, what's opinion? This flags fetching is the same as say fetching > of termios settings, once fetched they can be changed immediately, and it's > up to caller what to do with termios settings. No? I think you need to explain what you expect to be doing with it, and why it is safe in

Re: [PATCH v2] dma-debug: New interfaces to debug dma mapping errors

2012-09-27 Thread Shuah Khan
Hi Joerg, On Thu, 2012-09-27 at 12:20 +0200, Joerg Roedel wrote: > Hi Shuah, > > the patch looks better then the older versions. It comes closer to a > merge, but I see one issue here: > > On Tue, Sep 25, 2012 at 07:05:17PM -0600, Shuah Khan wrote: > > debug_dma_mapping_error(struct device

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread Cyrill Gorcunov
On Thu, Sep 27, 2012 at 03:14:47PM +0100, Alan Cox wrote: > > Alan, Greg, what's opinion? This flags fetching is the same as say fetching > > of termios settings, once fetched they can be changed immediately, and it's > > up to caller what to do with termios settings. No? > > I think you need to

Re: [BUG] Deferred probing in driver model is racy, resulting in lost probes

2012-09-27 Thread Ming Lei
On Thu, Sep 27, 2012 at 10:03 PM, Russell King - ARM Linux wrote: > On Thu, Sep 27, 2012 at 02:58:09PM +0100, Russell King - ARM Linux wrote: >> On Thu, Sep 27, 2012 at 07:47:46AM +0800, Ming Lei wrote: >> > On Thu, Sep 27, 2012 at 4:23 AM, Russell King - ARM Linux >> > wrote: >> > > To be

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread H. Peter Anvin
On 09/27/2012 07:14 AM, Cyrill Gorcunov wrote: On Thu, Sep 27, 2012 at 03:14:47PM +0100, Alan Cox wrote: Alan, Greg, what's opinion? This flags fetching is the same as say fetching of termios settings, once fetched they can be changed immediately, and it's up to caller what to do with termios

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread Cyrill Gorcunov
On Thu, Sep 27, 2012 at 07:17:49AM -0700, H. Peter Anvin wrote: > >While we easily can fetch termios settings and such, there are few bits which > >are missed to expord. So this patch provides them to user-space. > > > > What bothers me (and the same applies to termios) is that you have > NO idea

Re: [PATCHv2 2/4] dmaengine: dw_dmac: Add PCI part of the driver

2012-09-27 Thread Arnd Bergmann
On Thursday 27 September 2012, viresh kumar wrote: > I believe there is no common initialization part here, because PCI device in > any > case would be calling probe of platform device. :) Looking at the driver more closely now. Right now, it only supports platform devices, and the dw_probe

Re: [PATCH v2 1/2] usb: phy: add a new driver for usb3 phy

2012-09-27 Thread Russell King - ARM Linux
On Thu, Sep 27, 2012 at 07:34:07PM +0530, Kishon Vijay Abraham I wrote: > +static int omap5_usb_phy_power(struct omap_usb *phy, bool on) > +{ > + u32 val; > + unsigned long rate; > + struct clk *sys_clk; > + > + sys_clk = clk_get(NULL, "sys_clkin"); > + if (IS_ERR(sys_clk)) { >

Re: [PATCH 1/5] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-27 Thread Rob Herring
On 09/25/2012 05:06 AM, ABRAHAM, KISHON VIJAY wrote: > Hi, > > On Mon, Sep 24, 2012 at 6:45 PM, Rob Herring wrote: >> On 09/06/2012 09:57 AM, Kishon Vijay Abraham I wrote: >>> All phy related programming like enabling/disabling the clocks, powering >>> on/off the phy is taken care of by this

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Mel Gorman
On Wed, Sep 26, 2012 at 04:08:07PM -0700, Tejun Heo wrote: > Hello, Glauber. > > On Thu, Sep 27, 2012 at 02:54:11AM +0400, Glauber Costa wrote: > > I don't. Much has been said in the past about the problem of sharing. A > > lot of the kernel objects are shared by nature, this is pretty much > >

Re: [PATCHv2 2/4] dmaengine: dw_dmac: Add PCI part of the driver

2012-09-27 Thread Vinod Koul
On Thu, 2012-09-27 at 07:41 +, Arnd Bergmann wrote: > On Thursday 27 September 2012, viresh kumar wrote: > > I believe there is no common initialization part here, because PCI device > > in any > > case would be calling probe of platform device. :) > > Looking at the driver more closely now.

[PATCH] scatterlist: refactor the sg_nents

2012-09-27 Thread Maxim Levitsky
Replace 'while' with 'for' as suggested by Tejun Heo Signed-off-by: Maxim Levitsky --- lib/scatterlist.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 5cd9cdc..3675452b 100644 --- a/lib/scatterlist.c +++

Re: [PATCH 1/3] memory_hotplug: fix stale node_states[N_NORMAL_MEMORY]

2012-09-27 Thread Ni zhan Chen
On 09/27/2012 02:47 PM, Lai Jiangshan wrote: Currently memory_hotplug only manages the node_states[N_HIGH_MEMORY], it forgets to manage node_states[N_NORMAL_MEMORY]. it causes node_states[N_NORMAL_MEMORY] becomes stale. We add check_nodemasks_changes_online() and

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Tejun Heo
Hello, Michal. On Thu, Sep 27, 2012 at 02:08:06PM +0200, Michal Hocko wrote: > Yes, because we have many users (basically almost all) who care only > about the user memory because that's what occupies the vast majority of > the memory. They usually want to isolate workload which would disrupt >

Re: [PATCHv3] dw_dmac: autoconfigure data_width or get it via platform data

2012-09-27 Thread Vinod Koul
On Thu, 2012-09-27 at 17:00 +0300, Andy Shevchenko wrote: > On Thu, Sep 27, 2012 at 1:06 PM, Vinod Koul > wrote: > > On Tue, 2012-09-25 at 14:39 +0300, Andy Shevchenko wrote: > >> Not all of the controllers support the 64 bit data width. Make it > >> configurable > >> via platform data. The

Re: [PATCH] mfd: da9052-core: Fix request_threaded_irq() parameter

2012-09-27 Thread Arnd Bergmann
On Thursday 27 September 2012, Mark Brown wrote: > On Thu, Sep 27, 2012 at 12:55:35AM -0300, Fabio Estevam wrote: > > From: Fabio Estevam > > > > On a mx53qsb dt-kernel the da9052-core driver fails to probe: > > > > da9052 1-0048: DA9052 ADC IRQ failed ret=-22 > > > > In request_threaded_irq()

[PATCH v2] drivers/media: Remove unnecessary semicolon

2012-09-27 Thread Peter Senna Tschudin
Remove unnecessary semicolon And: drivers/media/dvb-frontends/stv0900_core.c: remove unnecessary whitespace before a quoted newline Found by http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin --- drivers/media/dvb-core/dvb_frontend.c | 2 +-

[PATCH 4/4] sl[au]b: process slabinfo_show in common code

2012-09-27 Thread Glauber Costa
With all the infrastructure in place, we can now have slabinfo_show done from slab_common.c. A cache-specific function is called to grab information about the cache itself, since that is still heavily dependent on the implementation. But with the values produced by it, all the printing and

[PATCH 0/4] move slabinfo processing to common code

2012-09-27 Thread Glauber Costa
Hi, This patch moves on with the slab caches commonization, by moving the slabinfo processing to common code in slab_common.c. It only touches slub and slab, since slob doesn't create that file, which is protected by a Kconfig switch. Enjoy, Glauber Costa (4): move slabinfo processing to

[PATCH 3/4] slub: move slub internal functions to its header

2012-09-27 Thread Glauber Costa
The functions oo_order() and oo_objects() are used by the slub to determine respectively the order of a candidate allocation, and the number of objects made available from it. I would like a stable visible location outside slub.c so it can be acessed from slab_common.c. I considered also just

[PATCH 2/4] sl[au]b: move print_slabinfo_header to slab_common.c

2012-09-27 Thread Glauber Costa
The header format is highly similar between slab and slub. The main difference lays in the fact that slab may optionally have statistics added here in case of CONFIG_SLAB_DEBUG, while the slub will stick them somewhere else. By making sure that information conditionally lives inside a

[PATCH 1/4] sl[au]b: move slabinfo processing to slab_common.c

2012-09-27 Thread Glauber Costa
This patch moves all the common machinery to slabinfo processing to slab_common.c. We can do better by noticing that the output is heavily common, and having the allocators to just provide finished information about this. But after this first step, this can be done easier. Signed-off-by: Glauber

Re: [PATCHv2 2/4] dmaengine: dw_dmac: Add PCI part of the driver

2012-09-27 Thread Arnd Bergmann
On Thursday 27 September 2012, Vinod Koul wrote: > > where the first one is called by the other two, depending on the bus type. > > This could be done either splitting the driver into multiple files so you > > can > > have the platform and pci parts in separate driver modules depending on the > >

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Mel Gorman
On Thu, Sep 27, 2012 at 07:33:00AM -0700, Tejun Heo wrote: > Hello, Michal. > > On Thu, Sep 27, 2012 at 02:08:06PM +0200, Michal Hocko wrote: > > Yes, because we have many users (basically almost all) who care only > > about the user memory because that's what occupies the vast majority of > >

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread H. Peter Anvin
On 09/27/2012 07:21 AM, Cyrill Gorcunov wrote: On Thu, Sep 27, 2012 at 07:17:49AM -0700, H. Peter Anvin wrote: While we easily can fetch termios settings and such, there are few bits which are missed to expord. So this patch provides them to user-space. What bothers me (and the same applies

Re: [PATCH 1/1] drivers/char/tpm: remove tasklet and cleanup

2012-09-27 Thread Ashley Lai
On Wed, 2012-09-26 at 08:55 -0500, k...@linux.vnet.ibm.com wrote: > On Mon, Sep 24, 2012 at 10:48:21AM -0500, k...@linux.vnet.ibm.com wrote: > > On Mon, Sep 24, 2012 at 09:10:41AM -0500, k...@linux.vnet.ibm.com wrote: > > > On Mon, Sep 24, 2012 at 12:26:05PM +1000, James Morris wrote: > > > > On

RE: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread David Laight
> Moreover, if your thinking is that we do not need a static inline > function replicated at every caller, maybe we should introduce a > lib/hashtable.c that implements those 2 functions. That was my thought... Given their nature, I'd guess they aren't critical path. Probably not worth adding an

WARNING: at block/genhd.c:1570 disk_clear_events+0xbf/0xd0()

2012-09-27 Thread Roberto Corrado
[ 287.677274] [ cut here ] [ 287.678042] WARNING: at block/genhd.c:1570 disk_clear_events+0xbf/0xd0() [ 287.678042] Hardware name: CLE266-8235 [ 287.678042] Modules linked in: fuse ppdev evdev pcmcia snd_via82xx gameport snd_ac97_codec ac97_bus snd_pcm ath5k snd_timer

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-27 Thread Cyrill Gorcunov
On Thu, Sep 27, 2012 at 07:43:44AM -0700, H. Peter Anvin wrote: > >>If you can't guarantee that ALL those processes are stopped and > >>checkpointed/restarted, you have a huge problem. > > > >Well, sure inside our tool before doing checkpoint we stop all > >tasks which are part of dumpee process

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Tejun Heo
Hello, Mel. On Thu, Sep 27, 2012 at 03:28:22PM +0100, Mel Gorman wrote: > > In addition, how is userland supposed to know which > > workload is shared kmem heavy or not? > > By using a bit of common sense. > > An application may not be able to figure this out but the administrator > is going

Re: kernel BUG at /data/lemmy/linux.trees.git/fs/nfs/idmap.c:681!

2012-09-27 Thread Joerg Roedel
On Tue, Aug 07, 2012 at 03:41:56PM +0200, Joerg Roedel wrote: > starting with Linux 3.6-rc1 I experience this BUG on one of my test > machines. Please let me know if you need any additional information. > > [ 20.271810] [ cut here ] > [ 20.276869] kernel BUG at

Re: radeon: Regression between v3.6-rc4 and v3.6-rc6: unable to allocate a PPLL

2012-09-27 Thread Alex Deucher
On Thu, Sep 27, 2012 at 9:23 AM, Andres Freund wrote: > On Thursday, September 27, 2012 03:14:31 PM Alex Deucher wrote: >> On Thu, Sep 27, 2012 at 2:46 AM, Andres Freund wrote: >> > On Wednesday, September 26, 2012 03:42:40 PM Deucher, Alexander wrote: >> >> > -Original Message- >> >> >

Re: [PATCH 0/4] move slabinfo processing to common code

2012-09-27 Thread Christoph Lameter
On Thu, 27 Sep 2012, Glauber Costa wrote: > This patch moves on with the slab caches commonization, by moving > the slabinfo processing to common code in slab_common.c. It only touches > slub and slab, since slob doesn't create that file, which is protected > by a Kconfig switch. Thanks. That

Re: [PATCH v3 04/13] kmem accounting basic infrastructure

2012-09-27 Thread Tejun Heo
Hello, Mel. On Thu, Sep 27, 2012 at 03:43:07PM +0100, Mel Gorman wrote: > > I'm not too convinced. First of all, the overhead added by kmemcg > > isn't big. > > Really? > > If kmemcg was globally accounted then every __GFP_KMEMCG allocation in > the page allocator potentially ends up down in

Re: [PATCH 1/4] sl[au]b: move slabinfo processing to slab_common.c

2012-09-27 Thread Christoph Lameter
On Thu, 27 Sep 2012, Glauber Costa wrote: > This patch moves all the common machinery to slabinfo processing > to slab_common.c. We can do better by noticing that the output is > heavily common, and having the allocators to just provide finished > information about this. But after this first

Re: [PATCH 1/5] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-27 Thread ABRAHAM, KISHON VIJAY
Hi, On Thu, Sep 27, 2012 at 7:54 PM, Rob Herring wrote: > On 09/25/2012 05:06 AM, ABRAHAM, KISHON VIJAY wrote: >> Hi, >> >> On Mon, Sep 24, 2012 at 6:45 PM, Rob Herring wrote: >>> On 09/06/2012 09:57 AM, Kishon Vijay Abraham I wrote: All phy related programming like enabling/disabling the

Re: [GIT PULL] MOP500 Audio patches due for ASoC

2012-09-27 Thread Lee Jones
On Thu, 20 Sep 2012, Mark Brown wrote: > On Thu, Sep 20, 2012 at 02:09:09PM +0200, Lee Jones wrote: > > The following changes since commit 5698bd757d55b1bb87edd1a9744ab09c142abfc2: > > > > Linux 3.6-rc6 (2012-09-16 14:58:51 -0700) > > > > are available in the git repository at: > > > >

Re: [PATCH 2/4] sl[au]b: move print_slabinfo_header to slab_common.c

2012-09-27 Thread Christoph Lameter
On Thu, 27 Sep 2012, Glauber Costa wrote: > By making sure that information conditionally lives inside a > globally-visible CONFIG_DEBUG_SLAB switch, we can move the header > printing to a common location. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe

<    5   6   7   8   9   10   11   12   13   14   >