Re: [GIT PULL] Disintegrate UAPI for cris [ver #2]

2012-10-12 Thread Jesper Nilsson
On Tue, Oct 09, 2012 at 10:15:22AM +0100, David Howells wrote: > Can you merge the following branch into the cris tree please. > > This is to complete part of the UAPI disintegration for which the preparatory > patches were pulled recently. > > Now that the fixups and the asm-generic chunk have b

Re: Using ps to display process information never exit, and can't be killed

2012-10-12 Thread devendra.aaru
On Fri, Oct 12, 2012 at 1:56 AM, Cyberman Wu wrote: > Sorry to use that big mail list account since I don't know any > specific mail list account should be used for that problem. > > We're running Linux box on Gx platform from Tilera. The kernel use > some vendor specific patches, but most of them

Re: linux-next: manual merge of the pinctrl tree with the tree

2012-10-12 Thread Linus Walleij
On Fri, Oct 12, 2012 at 5:04 AM, Stephen Rothwell wrote: > Hi Linus, > > Today's linux-next merge of the pinctrl tree got a conflict in > arch/arm/mach-at91/at91sam9n12.c between commit f7d19b906556 ("ARM: at91: > add clocks for I2C DT entries") from the tree and commit 5c70cd3c7c69 > ("arm: at9

linux-next: Tree for Oct 12

2012-10-12 Thread Stephen Rothwell
Hi all, Do not add stuff destined for v3.8 to your linux-next included branches until after v3.7-rc1 is released. Changes since 201201011: Conflicts are migrating as trees are merged by Linus. Linus' tree lost its build failure. The l2-mtd tree gained a build failure so I used the version from

Re: [PATCH] cris: use kbuild.h instead of defining macros in asm-offset.c

2012-10-12 Thread Jesper Nilsson
On Thu, Oct 11, 2012 at 10:00:58AM +0100, James Hogan wrote: > This is modelled on commits such as the one below: > > Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e ("sh: use kbuild.h > instead of defining macros in asm-offsets.c") introduced in v2.6.26. Looks good here, I'll take it into the CR

Re: [PATCH v4 04/14] kmem accounting basic infrastructure

2012-10-12 Thread Glauber Costa
On 10/11/2012 02:11 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:10, Glauber Costa wrote: >> This patch adds the basic infrastructure for the accounting of the slab >> caches. To control that, the following files are created: >> >> * memory.kmem.usage_in_bytes >> * memory.kmem.limit_in_bytes >

Re: [PATCH 0/3] virtio-net: inline header support

2012-10-12 Thread Paolo Bonzini
Il 12/10/2012 00:37, Rusty Russell ha scritto: > "Michael S. Tsirkin" writes: >> On Thu, Oct 11, 2012 at 10:33:31AM +1030, Rusty Russell wrote: >>> OK. Well, Anthony wants qemu to be robust in this regard, so I am >>> tempted to rework all the qemu drivers to handle arbitrary layouts. >>> They co

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Glauber Costa
On 10/11/2012 04:42 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:12, Glauber Costa wrote: >> This patch introduces infrastructure for tracking kernel memory pages to >> a given memcg. This will happen whenever the caller includes the flag >> __GFP_KMEMCG flag, and the task belong to a memcg othe

Re: [PATCH v4 09/14] memcg: kmem accounting lifecycle management

2012-10-12 Thread Glauber Costa
On 10/11/2012 05:11 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:15, Glauber Costa wrote: >> Because kmem charges can outlive the cgroup, we need to make sure that >> we won't free the memcg structure while charges are still in flight. >> For reviewing simplicity, the charge functions will issue

Re: [PATCH v4 10/14] memcg: use static branches when code not in use

2012-10-12 Thread Glauber Costa
On 10/11/2012 05:40 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:16, Glauber Costa wrote: >> We can use static branches to patch the code in or out when not used. >> >> Because the _ACTIVE bit on kmem_accounted is only set after the >> increment is done, we guarantee that the root memcg will alw

Re: [PATCH v4 14/14] Add documentation about the kmem controller

2012-10-12 Thread Glauber Costa
On 10/11/2012 06:35 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:20, Glauber Costa wrote: >> Signed-off-by: Glauber Costa >> --- >> Documentation/cgroups/memory.txt | 55 >> +++- >> 1 file changed, 54 insertions(+), 1 deletion(-) >> >> diff --git a/Document

Re: [GIT PULL rcu/urgent] Fixes for RCU regressions

2012-10-12 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series fixes some RCU regressions in 3.7. > > Kirill A. Shutemov found a case where synchronize_rcu() is invoked > from a CPU-hotplug notifier, which, with RCU's shiny new kthread-based > grace-period implementation, results in deadlock. The f

Re: [git pull] signal.git, pile 2 (was Re: [RFC][CFT][CFReview] execve and kernel_thread unification work)

2012-10-12 Thread Benjamin Herrenschmidt
On Fri, 2012-10-12 at 02:09 +0100, Al Viro wrote: > Anyway, if ppc folks can live with that stuff in its current form for now, > here's the second signal.git pull request. Stuff in there: kernel_thread/ > kernel_execve/sys_execve conversions for several more architectures plus > assorted signal fi

[PATCH] mm: cleanup register_node()

2012-10-12 Thread Yasuaki Ishimatsu
register_node() is defined as extern in include/linux/node.h. But the function is only called from register_one_node() in driver/base/node.c. So the patch defines register_node() as static. CC: David Rientjes CC: Andrew Morton Signed-off-by: Yasuaki Ishimatsu --- drivers/base/node.c |2

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Andy Shevchenko
On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: > dw_dmac driver already supports device tree but it used to have its platform > data passed the non-DT way. My few comments are below. > > This patch does following changes: > - pass platform data via DT, non-DT way still takes precedence

Re: [PATCH] regmap : make lock/unlock functions customizable.

2012-10-12 Thread Davide Ciminaghi
On Fri, Oct 12, 2012 at 03:26:09PM +0900, Mark Brown wrote: > On Mon, Oct 01, 2012 at 11:31:04PM +0200, cimina...@gnudd.com wrote: > > From: Davide Ciminaghi > > > > It is sometimes convenient for a regmap user to override the standard > > regmap lock/unlock functions with custom functions. > >

Re: [PATCH v4 04/14] kmem accounting basic infrastructure

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 11:36:38, Glauber Costa wrote: > On 10/11/2012 02:11 PM, Michal Hocko wrote: > > On Mon 08-10-12 14:06:10, Glauber Costa wrote: [...] > >> + if (!memcg->kmem_accounted && val != RESOURCE_MAX) { > > > > Just a nit but wouldn't memcg_kmem_is_accounted(memcg) be better than > > direc

Re: [PATCH 10/33] autonuma: CPU follows memory algorithm

2012-10-12 Thread Mel Gorman
On Fri, Oct 12, 2012 at 02:25:13AM +0200, Andrea Arcangeli wrote: > On Thu, Oct 11, 2012 at 03:58:05PM +0100, Mel Gorman wrote: > > On Thu, Oct 04, 2012 at 01:50:52AM +0200, Andrea Arcangeli wrote: > > > This algorithm takes as input the statistical information filled by the > > > knuma_scand (mm->

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 13:53, Andy Shevchenko wrote: > On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: > My few comments are below. Most welcome :) >> diff --git a/Documentation/devicetree/bindings/dma/snps-dma.txt >> b/Documentation/devicetree/bindings/dma/snps-dma.txt >> @@ -14,4 +34,28 @

Re: [GIT PULL] perf updates/fixes

2012-10-12 Thread Ingo Molnar
* Ingo Molnar wrote: > Linus, > > Please pull the latest perf-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > perf-urgent-for-linus > >HEAD: 95cf59ea72331d0093010543b8951bb43f262cac perf: Fix > perf_cgroup_switch for sw-events Note tha

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 11:45:46, Glauber Costa wrote: > On 10/11/2012 04:42 PM, Michal Hocko wrote: > > On Mon 08-10-12 14:06:12, Glauber Costa wrote: [...] > >> + /* > >> + * Conditions under which we can wait for the oom_killer. > >> + * __GFP_NORETRY should be masked by __mem_cgroup_try_charge, >

[PATCH] pinctrl/nomadik: update other alternate-C functions on DB8500

2012-10-12 Thread Linus Walleij
From: Jean-Nicolas Graux In pinctrl-nomadik-db8500.c, add missing definitions that deal with other alternate-C functions. Signed-off-by: Jean-Nicolas Graux Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik-db8500.c | 101 +-- 1 file changed, 96 inser

Re: [PATCH v4 09/14] memcg: kmem accounting lifecycle management

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 11:47:17, Glauber Costa wrote: > On 10/11/2012 05:11 PM, Michal Hocko wrote: > > On Mon 08-10-12 14:06:15, Glauber Costa wrote: > >> Because kmem charges can outlive the cgroup, we need to make sure that > >> we won't free the memcg structure while charges are still in flight. > >>

Re: [PATCH v4 14/14] Add documentation about the kmem controller

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 11:53:23, Glauber Costa wrote: > On 10/11/2012 06:35 PM, Michal Hocko wrote: > > On Mon 08-10-12 14:06:20, Glauber Costa wrote: [...] > >> Kernel memory limits are not imposed for the root cgroup. Usage for the > >> root > >> -cgroup may or may not be accounted. > >> +cgroup may o

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Glauber Costa
On 10/12/2012 12:39 PM, Michal Hocko wrote: > On Fri 12-10-12 11:45:46, Glauber Costa wrote: >> On 10/11/2012 04:42 PM, Michal Hocko wrote: >>> On Mon 08-10-12 14:06:12, Glauber Costa wrote: > [...] + /* + * Conditions under which we can wait for the oom_killer. + * __GFP_NORETR

Re: [PATCH 00/33] AutoNUMA27

2012-10-12 Thread Mel Gorman
On Fri, Oct 12, 2012 at 03:45:53AM +0200, Andrea Arcangeli wrote: > Hi Mel, > > On Thu, Oct 11, 2012 at 10:34:32PM +0100, Mel Gorman wrote: > > So after getting through the full review of it, there wasn't anything > > I could not stand. I think it's *very* heavy on some of the paths like > > the i

Re: [Request for review] Revised delete_module(2) manual page

2012-10-12 Thread Michael Kerrisk (man-pages)
Hi Rusty, Thanks for taking a look at this page. In the light of your comments, I've substantially reworked the page, and further review would not go amiss, in case I made a misstep along the way. On Thu, Oct 11, 2012 at 5:02 AM, Rusty Russell wrote: > "Michael Kerrisk (man-pages)" writes: > >>

Re: [Xen-devel] [PATCH V2 1/7]: PVH: basic and header changes, elfnote changes, ...

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:53 +0100, Mukesh Rathor wrote: > PVH: is a PV linux guest that has extended capabilities. This patch allows it > to be configured and enabled. Also, basic header file changes to add new > subcalls to physmap hypercall. Lastly, mfn_to_local_pfn must return mfn for > pagin

[PATCH] Coccicheck: Improvement for online checking with 'make C=[12]'

2012-10-12 Thread Nicolas Palix
This patch replaces an old workaround by a new spatch option, and adds support for online checking of external modules. The ignore_unknown_options is present in coccinelle since the version 0.2.3 of spatch. Most of the distribution (if not all) already provide a RC of the 1.0.0 version. This new

[PATCH v2] mcs7830: Fix link state detection

2012-10-12 Thread Ondrej Zary
The device had an undocumented "feature": it can provide a sequence of spurious link-down status data even if the link is up all the time. A sequence of 10 was seen so update the link state only after the device reports the same link state 20 times. Signed-off-by: Ondrej Zary Reported-by: Michael

Re: [Xen-devel] [PATCH V2 2/7]: PVH: use native irq, enable callback, use HVM ring ops, ...

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:57 +0100, Mukesh Rathor wrote: > PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, PVH > only needs to send down gdtaddr and gdtsz. irq.c: PVH uses > native_irq_ops. vcpu hotplug is currently not available for PVH. > events.c: setup callback vector for PVH

[GIT PULL] RCU fixes

2012-10-12 Thread Ingo Molnar
Linus, Please pull the latest core-rcu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-rcu-for-linus HEAD: c1f8d901d828da1df6d384780829952e7912aeba Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into cor

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 12:44:57, Glauber Costa wrote: > On 10/12/2012 12:39 PM, Michal Hocko wrote: > > On Fri 12-10-12 11:45:46, Glauber Costa wrote: > >> On 10/11/2012 04:42 PM, Michal Hocko wrote: > >>> On Mon 08-10-12 14:06:12, Glauber Costa wrote: > > [...] > +/* > + * Condi

Re: [Xen-devel] [PATCH V2 3/7]: PVH: mmu related changes.

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:58 +0100, Mukesh Rathor wrote: > @@ -2177,8 +2210,19 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst > = { > > void __init xen_init_mmu_ops(void) > { > - x86_init.mapping.pagetable_reserve = xen_mapping_pagetable_reserve; > x86_init.paging.pageta

Re: Using ps to display process information never exit, and can't be killed

2012-10-12 Thread Cyberman Wu
Thanks, since strace is not in default root fs on that platform, I've forgot it. I tried two time: read(4, "36864\n", 24) = 6 close(4)= 0 mmap2(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xcf mprotect(0xd2000

[PATCH 2/5] arcmsr: Support Hibernation

2012-10-12 Thread NickCheng
From: Nick Cheng Support hibernation for whole series of RAID controllers Signed-off-by: Nick Cheng --- diff -uprN a//drivers/scsi/arcmsr/arcmsr.h b//drivers/scsi/arcmsr/arcmsr.h --- a//drivers/scsi/arcmsr/arcmsr.h 2012-10-12 16:28:42.175958900 +0800 +++ b//drivers/scsi/arcmsr/arcmsr.h 2

Re: [Xen-devel] [PATCH V2 6/7]: PVH: balloon and grant changes

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 23:01 +0100, Mukesh Rathor wrote: > PVH: balloon and grant changes. For balloon changes we skip setting of > local p2m as it's updated in xen. For grant, the shared grant frame is > the pfn and not mfn, hence its mapped via the same code path as HVM > > Signed-off-by: Mukesh

[PATCH 3/5] arcmsr: Support MSI and MSI-X

2012-10-12 Thread NickCheng
From: Nick Cheng Support MSI or MSI-X for whole series of RAID controllers. Meanwhile correct the register access as iowrite32/ioread32 Signed-off-by: Nick Cheng --- diff -uprN a//drivers/scsi/arcmsr/arcmsr_hba.c b//drivers/scsi/arcmsr/arcmsr_hba.c --- a//drivers/scsi/arcmsr/arcmsr_hba.c 2012

Re: [GIT PULL] perf updates/fixes

2012-10-12 Thread Borislav Petkov
On Fri, Oct 12, 2012 at 10:39:26AM +0200, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > Linus, > > > > Please pull the latest perf-urgent-for-linus git tree from: > > > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > perf-urgent-for-linus > > > >HEAD: 95cf59ea72331

RE: [PATCH RFC 2/2] [x86] Optimize copy_page by re-arranging instruction sequence and saving register

2012-10-12 Thread Ma, Ling
> > > So is that also true for AMD CPUs? > > Although Bulldozer put 32byte instruction into decoupled 16byte entry > > buffers, it still decode 4 instructions per cycle, so 4 instructions > > will be fed into execution unit and > > 2 loads ,1 write will be issued per cycle. > > I'd be very interes

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

2012-10-12 Thread kishon
Hi Tony, On Thursday 11 October 2012 06:29 AM, Tony Lindgren wrote: Hi, * Kishon Vijay Abraham I [120919 04:32]: 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 documentati

Re: [GIT PULL] perf updates/fixes

2012-10-12 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Oct 12, 2012 at 10:39:26AM +0200, Ingo Molnar wrote: > > > > * Ingo Molnar wrote: > > > > > Linus, > > > > > > Please pull the latest perf-urgent-for-linus git tree from: > > > > > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > > perf-

Re: [Xen-devel] [PATCH V2 7/7]: PVH: privcmd changes.

2012-10-12 Thread Ian Campbell
> @@ -260,15 +268,24 @@ struct mmap_batch_state { > xen_pfn_t __user *user_mfn; > }; > > +/* auto translated dom0 note: if domU being created is PV, then mfn is > + * mfn(addr on bus). If it's auto xlated, then mfn is pfn (input to HAP). > + */ > static int mmap_batch_fn(void *data, void

[GIT PULL] scheduler fixes

2012-10-12 Thread Ingo Molnar
Linus, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus HEAD: 301a5cba2887d1f640e6d5184b05a6d7132017d5 sched: Update sched_domains_numa_masks[][] when new cpus are onlined A CPU hotplug related

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Glauber Costa
On 10/12/2012 12:57 PM, Michal Hocko wrote: > On Fri 12-10-12 12:44:57, Glauber Costa wrote: >> On 10/12/2012 12:39 PM, Michal Hocko wrote: >>> On Fri 12-10-12 11:45:46, Glauber Costa wrote: On 10/11/2012 04:42 PM, Michal Hocko wrote: > On Mon 08-10-12 14:06:12, Glauber Costa wrote: >>> [.

Re: [PATCH v2 5/8] clk: don't mark clkdev_add_table as init

2012-10-12 Thread Russell King - ARM Linux
On Tue, Oct 09, 2012 at 10:13:55PM +0200, Arnd Bergmann wrote: > s3c2440_clk_add is a subsys_interface method and calls clkdev_add_table, > which means we might be calling it after the __init section is > discarded. > > Without this patch, building mini2440_defconfig results in: > > WARNING: vmli

RE: [RFC PATCH v2 08/16] ARM: omap: add hsmmc am33xx specific init

2012-10-12 Thread Hebbar, Gururaja
Matt On Fri, Oct 12, 2012 at 00:34:33, Porter, Matt wrote: > AM33xx requires special handling in hsmmc initialization > platform glue. Since AM335x boots mainly through DT, do we still need this patch. This function will be called in case of initializing hsmmc with Platform data. > > Signed-of

Re: [Xen-devel] [PATCH V2 0/7]: PVH: PV guest with extensions

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:49 +0100, Mukesh Rathor wrote: > Hi guys, > > Ok, I've made all the changes from prev RFC patch submissions. Tested > all the combinations. The patches are organized slightly differently > from prev version because of the nature of changes after last review. I > am buildin

Re: [GIT PULL] perf updates/fixes

2012-10-12 Thread Markus Trippelsdorf
On 2012.10.12 at 11:08 +0200, Borislav Petkov wrote: > On Fri, Oct 12, 2012 at 10:39:26AM +0200, Ingo Molnar wrote: > > > > * Ingo Molnar wrote: > > > > > Linus, > > > > > > Please pull the latest perf-urgent-for-linus git tree from: > > > > > >git://git.kernel.org/pub/scm/linux/kernel/git

[Patch v2 6/7] Watchdog: DA9055 Watchdog driver

2012-10-12 Thread Ashish Jangam
This is the Watchdog patch for the DA9055 PMIC. This patch has got dependency on the DA9055 MFD core. This patch is functionally tested on SMDK6410 Signed-off-by: David Dajun Chen Signed-off-by: Ashish Jangam --- changes since version v2: - remove duplicate includes - use of module_platform_dri

[Patch v4 7/7] Onkey: DA9055 Onkey driver

2012-10-12 Thread Ashish Jangam
This is the ONKEY driver of the Dialog DA9055 PMIC and depends on the DA9055 MFD core driver. This patch is functionally tested on SMDK6410 board. Signed-off-by: David Dajun Chen Signed-off-by: Ashish Jangam --- changes since v4: - remove of devm_*irq API changes since v3: - used of module_plat

[PATCH] perf: Handle new rbtree implementation

2012-10-12 Thread Ingo Molnar
>From 6c4d077c467d689b5dd2f89cc69713f1bf4e31d7 Mon Sep 17 00:00:00 2001 From: Markus Trippelsdorf Date: Tue, 9 Oct 2012 20:01:56 +0200 Subject: [PATCH] perf: Handle new rbtree implementation Perf build fails with the new rbtree implementation: ../../lib/rbtree.c:24:36: fatal error: linux/rbtre

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Andy Shevchenko
On Fri, Oct 12, 2012 at 11:34 AM, Viresh Kumar wrote: > On 12 October 2012 13:53, Andy Shevchenko > wrote: >> On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: >>> diff --git a/Documentation/devicetree/bindings/dma/snps-dma.txt >>> b/Documentation/devicetree/bindings/dma/snps-dma.txt >>> @

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 14:55, Andy Shevchenko wrote: > I understand your way of allocating memory, but what about using > linked list instead of array? I gave it a thought. Overhead was 4 bytes more per slave structure + more cycles in filter routine (arrays are more faster :) ). Because the DT cap

Re: [PATCH v2] Fix AMD Northbridge-ID contiguity assumptions

2012-10-12 Thread Borislav Petkov
On Thu, Oct 04, 2012 at 03:18:02PM +0200, Borislav Petkov wrote: > On Wed, Oct 03, 2012 at 09:21:14PM +0800, Daniel J Blueman wrote: > > The AMD Northbridge initialisation code and EDAC assume the Northbridge IDs > > are contiguous, which no longer holds on federated systems with multiple > > Hyper

Re: [PATCH] Boottime: A tool for automatic measurement of kernel/bootloader boot time

2012-10-12 Thread Lee Jones
On Thu, 11 Oct 2012, Nishanth Menon wrote: > On 15:42-20121011, Lee Jones wrote: > > From: Jonas Aaberg > > > > The overhead is very low and the results will be found under > > sysfs/bootime, as well as detailed results in debugfs under > > boottime/. The bootgraph* files are compatible with > >

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-12 Thread Michal Hocko
On Fri 12-10-12 13:13:04, Glauber Costa wrote: [...] > Just so we don't ping-pong in another submission: > > I changed memcontrol.h's memcg_kmem_newpage_charge to include: > > /* If the test is dying, just let it go. */ > if (unlikely(test_thread_flag(TIF_MEMDIE) >

Re: [PATCH v4 1/5] KVM: MMU: fix release noslot pfn

2012-10-12 Thread Xiao Guangrong
On 10/11/2012 10:31 PM, Marcelo Tosatti wrote: > On Thu, Oct 11, 2012 at 09:06:12PM +0800, Xiao Guangrong wrote: >> On 10/10/2012 11:11 PM, Marcelo Tosatti wrote: >> >>> >>> Why does is_error_pfn() return true for mmio spte? Its not an "error", >>> after all. >>> >>> Please kill is_invalid_pfn and

Re: [PATCH] Boottime: A tool for automatic measurement of kernel/bootloader boot time

2012-10-12 Thread Lee Jones
Okay, please disgard the last patch. Lots of fixups since. Author: Lee Jones Date: Wed Jun 30 14:00:40 2010 +0200 Boottime: A tool for automatic measurement of kernel/bootloader boot time The overhead is very low and the results will be found under sysfs/bootime, as well as de

Re: [PATCH] Fix a hard coding style when determining if a device is a container.

2012-10-12 Thread Yasuaki Ishimatsu
Hi Tang, 2012/10/12 15:55, Tang Chen wrote: > "ACPI0004","PNP0A05" and "PNP0A06" are all defined in array > container_device_ids[], so use it, but not the hard coding style. The idea is good. > > Signed-off-by: Tang Chen > --- > drivers/acpi/container.c | 10 +++--- > 1 files changed,

[RFC 0/3] mm: vmevent: Stats accuracy improvements

2012-10-12 Thread Anton Vorontsov
Hi all, Some time ago KOSAKI Motohiro noticed[1] that vmevent might be very inaccurate (up to 2GB inaccuracy on a very large machines) since per CPU stats synchronization happens either on time basis or when we hit stat thresholds. KOSAKI also told that perf API might be a good inspirations for f

[PATCH 1/3] mm: vmstat: Implement set_zone_stat_thresholds() helper

2012-10-12 Thread Anton Vorontsov
There are two things that affect vmstat accuracy: - Per CPU pageset stats to global stats synchronization time; - Per CPU pageset stats thresholds; Currently user can only change vmstat update time (via stat_interval sysctl, which is 1 second by default). As for thresholds, the max threshold is

[PATCH 3/3] mm: vmevent: Sum per cpu pagesets stats asynchronously

2012-10-12 Thread Anton Vorontsov
Currently vmevent relies on the global page state stats, which is updated once per stat_interval (1 second) or when the per CPU pageset stats hit their threshold. We can sum the vm_stat_diff values asynchronously: they will be possibly a bit inconsistent, but overall this should improve accuracy,

[PATCH 2/3] mm: vmevent: Use value2 for setting vmstat thresholds

2012-10-12 Thread Anton Vorontsov
Attributes that use vmstat can now use attr->value2 to specify an optional accuracy. Based on the provided value, we will setup appropriate vmstat thresholds. Signed-off-by: Anton Vorontsov --- include/linux/vmevent.h | 5 + mm/vmevent.c| 56 +

[PATCH] mm: vmevent: Report number of used swap pages, not total amount of swap

2012-10-12 Thread Anton Vorontsov
I think the actual intent was to report the number of used swap pages, not just total swap size. This patch fixes the issue. Signed-off-by: Anton Vorontsov --- mm/vmevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmevent.c b/mm/vmevent.c index 1c2e72e..a059bed 100

Re: [PATCH v2] Fix AMD Northbridge-ID contiguity assumptions

2012-10-12 Thread Borislav Petkov
On Fri, Oct 12, 2012 at 11:57:00AM +0200, Steffen Persvold wrote: > This patch looks very clean and should serve our purpose as well (I'll > double check with Daniel). Thanks. I'll run it today or next week to check whether it works as expected - will let you know if there are issues. > Regardin

[PATCH 0/3] Find pci root bridges by comparing HID from acpi_device_info, not acpi_device.

2012-10-12 Thread Tang Chen
Hi Yinghai, I found a little problem in your following patches. :) [PATCH 00/40] PCI, ACPI, x86: pci root bus hotplug support. In acpi_is_root_bridge(), it gets device's HID from acpi_device struct. If the device is not added when the system boots, there will be no acpi_device for it. And as a re

[PATCH 2/3] Do not use acpi_device to find pci root bridge in _init code.

2012-10-12 Thread Tang Chen
When the kernel is being initialized, and some hardwares are not added to system, there won't be acpi_device structs for these devices. But acpi_is_root_bridge() depends on acpi_device struct. As a result, all the not-added root bridge will not be judged as a root bridge in find_root_bridges(). And

[PATCH 3/3] Check exit status of acpi_install_notify_handler() in find_root_bridges().

2012-10-12 Thread Tang Chen
acpi_install_notify_handler() could fail. So check the exit status and give a better debug info. Signed-off-by: Tang Chen --- drivers/acpi/pci_root_hp.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/pci_root_hp.c b/drivers/acpi/pci_root_hp.c ind

[PATCH 1/3] Introduce a new acpi to determine HID match.

2012-10-12 Thread Tang Chen
This introduce a new api to determine if a HID matches a list of IDs. Different from acpi_match_device_ids(), the new api gets HID from acpi_device_info struct. Signed-off-by: Tang Chen --- drivers/acpi/scan.c | 24 include/acpi/acpi_bus.h |2 ++ 2 files change

[PATCH] x86, boot: Explicitly include autoconf.h for hostprogs

2012-10-12 Thread Matt Fleming
From: Matt Fleming The hostprogs need access to the CONFIG_* symbols found in include/generated/autoconf.h. commit abbf1590 ("UAPI: Partition the header include path sets and add uapi/ header directories") replaced $(LINUXINCLUDE) with $(USERINCLUDE) which doesn't contain the necessary include pa

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread viresh kumar
On Fri, Oct 12, 2012 at 1:53 PM, Andy Shevchenko wrote: > On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: >> + while (++i < dw->sd_count) { >> + if (!strcmp(dw->sd[i].bus_id, param)) { >> + found = 1; >> + break; >> + } >>

Re: [PATCH 2/3] Do not use acpi_device to find pci root bridge in _init code.

2012-10-12 Thread Jiang Liu
On 2012-10-12 18:31, Tang Chen wrote: > When the kernel is being initialized, and some hardwares are not added > to system, there won't be acpi_device structs for these devices. But > acpi_is_root_bridge() depends on acpi_device struct. As a result, all > the not-added root bridge will not be judge

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Andy Shevchenko
On Fri, Oct 12, 2012 at 1:36 PM, viresh kumar wrote: > On Fri, Oct 12, 2012 at 1:53 PM, Andy Shevchenko > wrote: >> On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: > >>> + while (++i < dw->sd_count) { >>> + if (!strcmp(dw->sd[i].bus_id, param)) { >>> + f

[GIT PULL] timers for 3.7

2012-10-12 Thread Thomas Gleixner
Linus, please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus Thanks, tglx --> Arnd Bergmann (1): time/jiffies: bring back unconditional LATCH definition Dan Carpenter (1):

Re: [PATCH 22/40] PCI, acpiphp: Separate out hot-add support of pci host bridge

2012-10-12 Thread Tang Chen
Hi Yinghai, When I was reviewing this patch, I found a little problem. Please refer to email: [PATCH 0/3] Find pci root bridges by comparing HID from acpi_device_info, not acpi_device. I could be wrong. :) If I didn't consider your idea correct, or you have a better solution, please let me kn

Re: [PATCH 2/3] Do not use acpi_device to find pci root bridge in _init code.

2012-10-12 Thread Tang Chen
On 10/12/2012 06:36 PM, Jiang Liu wrote: On 2012-10-12 18:31, Tang Chen wrote: When the kernel is being initialized, and some hardwares are not added to system, there won't be acpi_device structs for these devices. But acpi_is_root_bridge() depends on acpi_device struct. As a result, all the not

Re: [PATCH v2 09/13] ARM: davinci - update the dm644x soc code to use common clk drivers

2012-10-12 Thread Sekhar Nori
Hi Murali, On 10/11/2012 8:28 PM, Karicheri, Muralidharan wrote: >>> -Original Message- >>> From: Nori, Sekhar >>> Sent: Thursday, October 11, 2012 8:25 AM >>> To: Karicheri, Muralidharan >>> Cc: mturque...@linaro.org; a...@arndb.de; a...@linux-foundation.org; >>> shawn@linaro.org; rob

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 16:10, Andy Shevchenko wrote: > On Fri, Oct 12, 2012 at 1:36 PM, viresh kumar wrote: >> On Fri, Oct 12, 2012 at 1:53 PM, Andy Shevchenko >> wrote: >>> On Fri, 2012-10-12 at 11:14 +0530, Viresh Kumar wrote: >> + while (++i < dw->sd_count) { + if (!strc

Re: [RFC PATCH 3/3] Convert mce_disabled

2012-10-12 Thread Naveen N. Rao
On 10/10/2012 07:50 PM, Borislav Petkov wrote: From: Borislav Petkov Not-Signed-off-by: Borislav Petkov --- arch/x86/include/asm/mce.h | 9 + arch/x86/kernel/cpu/mcheck/mce.c | 12 +--- arch/x86/lguest/boot.c | 2 +- 3 files changed, 11 insertions(+), 12

Re: [PATCH 2/3] Do not use acpi_device to find pci root bridge in _init code.

2012-10-12 Thread Jiang Liu
On 2012-10-12 18:42, Tang Chen wrote: > On 10/12/2012 06:36 PM, Jiang Liu wrote: >> On 2012-10-12 18:31, Tang Chen wrote: >>> When the kernel is being initialized, and some hardwares are not added >>> to system, there won't be acpi_device structs for these devices. But >>> acpi_is_root_bridge() dep

Re: [PATCH 2/3] Do not use acpi_device to find pci root bridge in _init code.

2012-10-12 Thread Tang Chen
On 10/12/2012 06:54 PM, Jiang Liu wrote: I have sent a similar patch to Yinghai before. For simplicity, we could use acpi_match_object_info_ids() instead of acpi_match_device_ids() directly. Hum, I must have missed it. :) Using acpi_match_object_info_ids() directly seems good. I'm just worry ab

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Viresh Kumar
On 12 October 2012 16:10, Andy Shevchenko wrote: + if (!found) { + last_dw = dw; + last_bus_id = param; + return false; >>> Because of return here you could eliminate 'found' flag at all. Here is the stuff copied from you ;) diff --git

pull request: bluetooth 2012-10-12

2012-10-12 Thread Gustavo Padovan
Hi John, Johan found a critical issue while at Bluetooth UnPlug Fest this week. The patch fixes a failure to pair with devices that support the LE Secure Connections feature. This is also marked for stable. Please pull! Thanks! Gustavo --- The following changes since commit a7be50b7e30

Re: [PATCH] Fix a hard coding style when determining if a device is a container.

2012-10-12 Thread Tang Chen
On 10/12/2012 06:10 PM, Yasuaki Ishimatsu wrote: > Hi Tang, > > 2012/10/12 15:55, Tang Chen wrote: >> "ACPI0004","PNP0A05" and "PNP0A06" are all defined in array >> container_device_ids[], so use it, but not the hard coding style. > > The idea is good. > >> >> Signed-off-by: Tang Chen >> --- >>

Re: [PATCH v2] Fix AMD Northbridge-ID contiguity assumptions

2012-10-12 Thread Steffen Persvold
On 10/12/2012 11:33, Borislav Petkov wrote: On Thu, Oct 04, 2012 at 03:18:02PM +0200, Borislav Petkov wrote: On Wed, Oct 03, 2012 at 09:21:14PM +0800, Daniel J Blueman wrote: The AMD Northbridge initialisation code and EDAC assume the Northbridge IDs are contiguous, which no longer holds on fed

Re: [PATCH v2 5/8] clk: don't mark clkdev_add_table as init

2012-10-12 Thread Arnd Bergmann
On Friday 12 October 2012, Russell King - ARM Linux wrote: > On Tue, Oct 09, 2012 at 10:13:55PM +0200, Arnd Bergmann wrote: > > s3c2440_clk_add is a subsys_interface method and calls clkdev_add_table, > > which means we might be calling it after the __init section is > > discarded. > > > > Without

[PATCH V2] power_supply : Introduce battery identification framework

2012-10-12 Thread Jenny TC
This patch introduces generic battid framework. Different battid drivers sitting on different linux kernel subsystem (1wire, I2C, SFI etc) can interface with the power supply susbsytem using the APIs exposed in the power supply usbsystem. The consumers (charger driver/battery driver/power managemen

[PATCH] ARM: s3c: mark s3c2440_clk_add as __init_refok

2012-10-12 Thread Arnd Bergmann
s3c2440_clk_add is a subsys_interface method and calls clkdev_add_table, which is marked as __init. The modpost script complains about this because we must not call an __init function from a function in the .text section, and we cannot reference an __init function from a subsys_interface pointer.

[RELEASE] Userspace RCU 0.7.5

2012-10-12 Thread Mathieu Desnoyers
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data synchronization library provides read-side access which scales linearly with the number of cores. It does so by allowing multiples copies of a given data structure to live at the same time, and by monitoring the data structur

[tip:sched/numa] x86/mm: Introduce pte_accessible()

2012-10-12 Thread tip-bot for Rik van Riel
Commit-ID: 2a61c579b9c917b81fc71c45274d2e7b73cda23a Gitweb: http://git.kernel.org/tip/2a61c579b9c917b81fc71c45274d2e7b73cda23a Author: Rik van Riel AuthorDate: Tue, 9 Oct 2012 15:31:12 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:14 +0200 x86/mm: Introduce pte_access

[tip:sched/numa] x86/mm: Reduce tlb flushes from ptep_set_access_flags()

2012-10-12 Thread tip-bot for Rik van Riel
Commit-ID: d8769ca9a6272795acf650698abe29d8ed149888 Gitweb: http://git.kernel.org/tip/d8769ca9a6272795acf650698abe29d8ed149888 Author: Rik van Riel AuthorDate: Tue, 9 Oct 2012 15:31:34 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:15 +0200 x86/mm: Reduce tlb flushes f

[tip:sched/numa] mm: Only flush the TLB when clearing an accessible pte

2012-10-12 Thread tip-bot for Rik van Riel
Commit-ID: 154e911b453560aa1e6e11d47e5f95289817b932 Gitweb: http://git.kernel.org/tip/154e911b453560aa1e6e11d47e5f95289817b932 Author: Rik van Riel AuthorDate: Tue, 9 Oct 2012 15:31:59 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:16 +0200 mm: Only flush the TLB when

Re: [PATCH 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-12 Thread Andy Shevchenko
On Fri, Oct 12, 2012 at 2:01 PM, Viresh Kumar wrote: > On 12 October 2012 16:10, Andy Shevchenko wrote: > + if (!found) { > + last_dw = dw; > + last_bus_id = param; > + return false; Because of return here you could eliminate 'found' fl

[tip:sched/numa] sched/numa: Don' t consider numa-hot for idle balance

2012-10-12 Thread tip-bot for Peter Zijlstra
Commit-ID: 39f5d872513adaf8790f12eef8bac54c902f1f77 Gitweb: http://git.kernel.org/tip/39f5d872513adaf8790f12eef8bac54c902f1f77 Author: Peter Zijlstra AuthorDate: Fri, 5 Oct 2012 15:57:54 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:17 +0200 sched/numa: Don't consider

[tip:sched/numa] sched/numa: Remove small mode

2012-10-12 Thread tip-bot for Peter Zijlstra
Commit-ID: 962498153e02c320b99694e4a7f3e79d46ed8d20 Gitweb: http://git.kernel.org/tip/962498153e02c320b99694e4a7f3e79d46ed8d20 Author: Peter Zijlstra AuthorDate: Tue, 9 Oct 2012 13:19:50 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:18 +0200 sched/numa: Remove small m

[tip:sched/numa] sched/numa: Add fault driven placement policy

2012-10-12 Thread tip-bot for Peter Zijlstra
Commit-ID: 8bf1f58fcfbd1b60bb9e687244f7804d2c503537 Gitweb: http://git.kernel.org/tip/8bf1f58fcfbd1b60bb9e687244f7804d2c503537 Author: Peter Zijlstra AuthorDate: Tue, 9 Oct 2012 13:46:22 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:18 +0200 sched/numa: Add fault driv

[tip:sched/numa] sched/numa: Make CONFIG_SCHED_NUMA configurable

2012-10-12 Thread tip-bot for Peter Zijlstra
Commit-ID: 80dbd27b0bf14fc4359c59accf02e853826bf7e4 Gitweb: http://git.kernel.org/tip/80dbd27b0bf14fc4359c59accf02e853826bf7e4 Author: Peter Zijlstra AuthorDate: Wed, 10 Oct 2012 19:01:34 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:07:20 +0200 sched/numa: Make CONFIG_S

Re: [PATCH v3 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-12 Thread Takao Indoh
(2012/10/12 2:28), Khalid Aziz wrote: On Thu, 2012-10-11 at 15:16 +0900, Takao Indoh wrote: (2012/10/11 5:08), Khalid Aziz wrote: . +static void __init do_reset(u8 bus, u8 slot, u8 func) +{ + u16 ctrl; + + printk(KERN_INFO "pci :%02x:%02x.%d reset\n", bus, slot, func); + +

[tip:sched/numa] sched/numa: Describe the NUMA scheduling problem formally

2012-10-12 Thread tip-bot for Ingo Molnar
Commit-ID: 6e08e99119e6192f4d814c9a73432ebfc755326d Gitweb: http://git.kernel.org/tip/6e08e99119e6192f4d814c9a73432ebfc755326d Author: Ingo Molnar AuthorDate: Fri, 12 Oct 2012 12:13:10 +0200 Committer: Ingo Molnar CommitDate: Fri, 12 Oct 2012 12:18:00 +0200 sched/numa: Describe the NUM

  1   2   3   4   5   >