[PATCH] gpio: lpc32xx: Fix off-by-one valid range checking for bank

2013-04-07 Thread Axel Lin
The valid bank should be 0 ... ARRAY_SIZE(lpc32xx_gpiochip) - 1. Signed-off-by: Axel Lin --- drivers/gpio/gpio-lpc32xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c index 36d7dee..dda6a75 100644 ---

Re: [PATCH v1 9/9] uretprobes: Documentation update

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:39]: > add the uretprobe syntax and update an example > > Signed-off-by: Anton Arapov > --- Acked-by: Srikar Dronamraju > Documentation/trace/uprobetracer.txt | 114 > --- > 1 file changed, 67 insertions(+), 47 deletions(-)

Re: [PATCH v1 8/9] uretprobes: Remove -ENOSYS as return probes implemented

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:38]: > Enclose return probes implementation. > > Signed-off-by: Anton Arapov > --- Acked-by: Srikar Dronamraju > kernel/events/uprobes.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c > index

Re: [PATCH v1 7/9] uretprobes: Limit the depth of return probe nestedness

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:37]: > Unlike the kretprobes we can't trust userspace, thus must have > protection from user space attacks. User-space have "unlimited" > stack, and this patch limits the return probes nestedness as a > simple remedy for it. > > Note that this implementation

Re: [PATCH v1 5/9] uretprobes: Return probe entry, prepare_uretprobe()

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:35]: > When a uprobe with return probe consumer is hit, prepare_uretprobe() > function is invoked. It creates return_instance, hijacks return address > and replaces it with the trampoline. > > * Return instances are kept as stack per uprobed task. > * Return

Re: [PATCH v1 4/9] uretprobes/ppc: Hijack return address

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:34]: > Hijack the return address and replace it with a trampoline address. > PowerPC implementation. > > Signed-off-by: Anton Arapov Acked-by: Srikar Dronamraju > --- > arch/powerpc/include/asm/uprobes.h | 1 + > arch/powerpc/kernel/uprobes.c | 13

Re: [PATCH v1 3/9] uretprobes/x86: Hijack return address

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:33]: > Hijack the return address and replace it with a trampoline address. > > v1 changes: > * use force_sig_info() > * rework and simplify logic > > RFCv5 changes: > * change the fail return code, because orig_ret_vaddr=0 is possible > * style fixup > RFCv2

Re: [PATCH] kvm: fix MMIO/PIO collision misdetection

2013-04-07 Thread Gleb Natapov
On Thu, Apr 04, 2013 at 01:27:21PM +0300, Michael S. Tsirkin wrote: > PIO and MMIO are separate address spaces, but > ioeventfd registration code mistakenly detected > two eventfds as duplicate if they use the same address, > even if one is PIO and another one MMIO. > > Signed-off-by: Michael S.

Re: [PATCH v1 2/9] uretprobes: Reserve the first slot in xol_vma for trampoline

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:32]: > Allocate trampoline page, as the very first one in uprobed > task xol area, and fill it with breakpoint opcode. > > Also introduce get_trampoline_vaddr() helper, to wrap the > trampoline address extraction from area->vaddr. That removes > confusion and

Re: [PATCH v1 1/9] uretprobes: Introduce uprobe_consumer->ret_handler()

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:31]: > Enclose return probes implementation, introduce ->ret_handler() and update > existing code to rely on ->handler() *and* ->ret_handler() for uprobe and > uretprobe respectively. > > v1 changes: > * add bp_vaddr argument to ->ret_handler() > > RFCv5

[PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
ownername and namebuf are all NUL terminated string. need always let them ended by '\0'. Signed-off-by: Chen Gang --- kernel/module.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 3c2c72d..597efd8 100644 ---

Re: [PATCH v2] Drivers: Base: Regmap: fix warnings, use %zu instead of %d for printf format

2013-04-07 Thread Chen Gang
On 2013年04月07日 19:33, Mark Brown wrote: > On Sun, Apr 07, 2013 at 05:32:39PM +0800, Chen Gang wrote: >> > >> > fix warnings (with EXTRA_CFLAGS=-W): >> > format ‘%d’ expects argument of type ‘int’, >> > but argument 4 has type ‘size_t’ [-Wformat] >> > >> > Signed-off-by: Chen Gang >

Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

2013-04-07 Thread Chen Gang
On 2013年04月07日 19:24, Paul Menzel wrote: > do you know if this cause any problems? Did you find this reading the > code or by using some tools? sorry, I do not know if this can cause any problems. for this issue, I did not find it by reading code. I find it by using compiler warnings with

Re: [PATCH v2] Drivers: Base: Regmap: fix warnings, use %zu instead of %d for printf format

2013-04-07 Thread Mark Brown
On Sun, Apr 07, 2013 at 05:32:39PM +0800, Chen Gang wrote: > > fix warnings (with EXTRA_CFLAGS=-W): > format ‘%d’ expects argument of type ‘int’, > but argument 4 has type ‘size_t’ [-Wformat] > > Signed-off-by: Chen Gang I've already applied a patch for this from someone else.

Re: net_dropmon usage documentation/examples?

2013-04-07 Thread Eric Wong
Neil Horman wrote: > On Fri, Apr 05, 2013 at 07:38:55PM +, Eric Wong wrote: > > Hi Neil, I'm wondering if you have or know of any public > > documentation/examples for using net_dropmon. > > > > If not, I'll figure it out on my own at some point. > > > > Thanks in advance! > > I don't

Re: [PATCH] drivers/gpu/drm/nouveau: remove erroneous semicolon

2013-04-07 Thread Paul Menzel
Dear Chen, Am Mittwoch, den 27.03.2013, 15:23 +0800 schrieb Chen Gang: > need remove semicolon, or always return true. do you know if this cause any problems? Did you find this reading the code or by using some tools? > Signed-off-by: Chen Gang > --- >

[PATCH] kernel: debug: kdb: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
kdb_prompt_str is NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang --- kernel/debug/kdb/kdb_io.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c index 14ff484..932b436 100644 ---

[PATCH] net: mvmdio: get and enable optional clock

2013-04-07 Thread Sebastian Hesselbarth
Marvell mdio driver uses internal registers that can be clock gated on some SoCs. This patch just adds optional clock handling, to allow to pass and enable the corresponding clock. Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: Florian Fainelli Cc: Thomas Petazzoni Cc:

[PATCH] net: of_mdio: scan mdiobus for PHYs without reg property

2013-04-07 Thread Sebastian Hesselbarth
Using DT for mdiobus and ethernet-phy requires to know the PHY address, which is hard to guess if you don't know it. This patch extends of_mdiobus_register to scan mdiobus for PHYs if reg property of the corresponding node is not set. This also allows to have phy nodes in SoC DT files where the

[PATCH] kernel: debug: kdb: strncpy issue, using strlcpy instead of strncpy.

2013-04-07 Thread Chen Gang
cmd_cur and cmd_hist[] are all NUL terminated string. need using strlcpy instead of strncpy. Signed-off-by: Chen Gang --- kernel/debug/kdb/kdb_main.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c

Re: [PATCH v1 6/9] uretprobes: Return probe exit, invoke handlers

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov [2013-04-03 18:00:36]: > Uretprobe handlers are invoked when the trampoline is hit, on completion the > trampoline is replaced with the saved return address and the uretprobe > instance > deleted. > > v1 changes: > * pass bp_vaddr to ret_handler() > * simplify handle_uretprobe()

Re: [PATCH 2/5] mmc: core: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-04-07 Thread Ohad Ben-Cohen
Hi Li, On Thu, Feb 28, 2013 at 9:44 AM, Li Fei wrote: > Even in failed case of pm_runtime_get_sync, the usage_count > is incremented. In order to keep the usage_count with correct > value and runtime power management to behave correctly, call > pm_runtime_put(_sync) in such case. As with the

[GIT PULL] KVM fixes for 3.9-rc5

2013-04-07 Thread Gleb Natapov
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the bugfix for the regression introduced by c300aa64ddf57. Andrew Honig (1): KVM: Allow cross page reads and writes from cached translations. arch/x86/kvm/lapic.c |2 - arch/x86/kvm/x86.c

Re: [PATCH 3/6] uprobes/tracing: Make uprobe_{trace,perf}_print() uretprobe-friendly

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov [2013-04-01 18:08:51]: > Change uprobe_trace_print() and uprobe_perf_print() to check > is_ret_probe() and fill ring_buffer_event accordingly. > > Also change uprobe_trace_func() and uprobe_perf_func() to not > _print() if is_ret_probe() is true. Note that we keep ->handler() >

Re: [RFC PATCH 1/3] perf: Add persistent events

2013-04-07 Thread Borislav Petkov
On Sat, Apr 06, 2013 at 05:53:17PM +0200, Robert Richter wrote: > Boris, > > On 15.03.13 14:06:27, Borislav Petkov wrote: > > Add the needed pieces for persistent events which makes them > > process-agnostic. Also, make their buffers read-only when mmaping them > > from userspace. > > > diff

[PATCH] kernel: debug: memcpy overlaped, use memmove instead of memcpy.

2013-04-07 Thread Chen Gang
in memcpy, src and dest are overlaped. for default implementaion or some architectures, it is OK. but we can not be sure that it is OK for all platforms. and in this condition, the performance are not quite important. so better to use standard ways: let memmove instead of memcpy.

[PATCH] auditsc: Use kzalloc instead of kmalloc+memset.

2013-04-07 Thread Rakib Mullick
In function audit_alloc_context(), use kzalloc, instead of kmalloc+memset. Patch also renames audit_zero_context() to audit_set_context(), to represent it's inner workings properly. Signed-off-by: Rakib Mullick --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c index a371f85..f5b6dc5

Re: [PATCH 1/1] mmap.c: find_vma: eliminate initial if(mm) check

2013-04-07 Thread Michel Lespinasse
On Sun, Apr 7, 2013 at 2:18 AM, k80c wrote: > As per commit 841e31e5cc6219d62054788faa289b6ed682d068, > we dont really need this if(mm) check anymore. > > A WARN_ON_ONCE was added just for safety, but there have been no bug > reports about this so far. > > Removing this if(mm) check. > >

[PATCH] add ftdi_sio USB ID for GDM Boost V1.x

2013-04-07 Thread Stefani Seibold
This patch add a missing usb device id for the GDMBoost V1.x device The patch is against 3.9-rc5 Signed-off-by: Stefani Seibold --- ftdi_sio.c |1 + ftdi_sio_ids.h |1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c

Re: kernel BUG at kernel/smpboot.c:134!

2013-04-07 Thread Borislav Petkov
On Sun, Apr 07, 2013 at 11:20:10AM +0200, Thomas Gleixner wrote: > And it's even more bogus because the cpu to which we would bind in > kthread_create_on_cpu() is not yet online. In case you guys are wondering about reproducibility, I saw the same BUG_ON yesterday on a 32-bit atom smp qemu guest

Re: [PATCH RFC] kvm: add PV MMIO EVENTFD

2013-04-07 Thread Michael S. Tsirkin
On Sun, Apr 07, 2013 at 12:30:38PM +0300, Gleb Natapov wrote: > On Thu, Apr 04, 2013 at 04:14:57PM +0300, Gleb Natapov wrote: > > > > > > > >>> is to move to MMIO only when PIO address space is exhausted. For PCI > > > >>> it > > > >>> will be never, for PCI-e it will be after ~16 devices. > > >

Portege Z830 and Tecra R840 failing to resume from suspend

2013-04-07 Thread Steven Noonan
Bugzilla bug: https://bugzilla.kernel.org/show_bug.cgi?id=42977 Can someone please give this bug some attention? Aaron Lu from Intel has been adding people to the bug CC list but nobody seems to be responding, and per his suggestion I'm mailing the list. The Z830 and R840 suspend successfully

[PATCH] perf/core: Fix a warning in util/trace-event-parse.c

2013-04-07 Thread chenggang qin
From: While I compile the perf in Red Hat Enterprise Linux Server release 5.4 (Tikanga), I got a warning: CC util/trace-event-parse.o cc1: warnings being treated as errors util/trace-event-parse.c: In function 'parse_proc_kallsyms': util/trace-event-parse.c:232: warning: 'fmt' may be used

[PATCH 1/1] mmap.c: find_vma: eliminate initial if(mm) check

2013-04-07 Thread k80c
As per commit 841e31e5cc6219d62054788faa289b6ed682d068, we dont really need this if(mm) check anymore. A WARN_ON_ONCE was added just for safety, but there have been no bug reports about this so far. Removing this if(mm) check. Signed-off-by: k80c --- mm/mmap.c |3 --- 1 files changed, 0

[PATCH v2] Drivers: Base: Regmap: fix warnings, use %zu instead of %d for printf format

2013-04-07 Thread Chen Gang
fix warnings (with EXTRA_CFLAGS=-W): format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat] Signed-off-by: Chen Gang --- drivers/base/regmap/regcache.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH] hfs: add error checking for hfs_find_init()

2013-04-07 Thread Vyacheslav Dubeyko
Hi Alexey, On Apr 7, 2013, at 1:13 AM, Alexey Khoroshilov wrote: > Hi Vyacheslav, > > On 03/30/2013 03:35 PM, Vyacheslav Dubeyko wrote: >>> Found by Linux Driver Verification project (linuxtesting.org). >>> >>> Signed-off-by: Alexey Khoroshilov >>> --- >>> fs/hfs/catalog.c | 12 +---

Re: [PATCH RFC] kvm: add PV MMIO EVENTFD

2013-04-07 Thread Gleb Natapov
On Thu, Apr 04, 2013 at 04:14:57PM +0300, Gleb Natapov wrote: > > > > > >>> is to move to MMIO only when PIO address space is exhausted. For PCI it > > >>> will be never, for PCI-e it will be after ~16 devices. > > >> > > >> Ok, let's go back a step here. Are you actually able to measure any >

Re: [PATCH RFC] kvm: add PV MMIO EVENTFD

2013-04-07 Thread Michael S. Tsirkin
On Thu, Apr 04, 2013 at 04:32:01PM -0700, Christoffer Dall wrote: > [...] > > >> >> to give us some idea how much performance we would gain from each > >> >> approach? Thoughput should be completely unaffected anyway, since > >> >> virtio just coalesces kicks internally. > >> > > >> > Latency

Re: [PATCH] Drivers: Base: Regmap: fix warnings, use %lu instead of %d for printf format

2013-04-07 Thread Chen Gang
On 2013年04月07日 17:08, Bjørn Mork wrote: > Chen Gang writes: > >> > fix warnings (with EXTRA_CFLAGS=-W): >> > format ‘%d’ expects argument of type ‘int’, >> > but argument 4 has type ‘size_t’ [-Wformat] >> > >> > Signed-off-by: Chen Gang >> > --- >> > drivers/base/regmap/regcache.c |

Re: kernel BUG at kernel/smpboot.c:134!

2013-04-07 Thread Thomas Gleixner
On Sat, 6 Apr 2013, Thomas Gleixner wrote: > This is Hillfs proposed patch: > > > --- a/kernel/kthread.c Sat Jan 19 13:03:52 2013 > > +++ b/kernel/kthread.c Sat Jan 19 13:17:54 2013 > > @@ -306,6 +306,7 @@ struct task_struct *kthread_create_on_cp > > return p; > >

Re: [PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently

2013-04-07 Thread Ric Mason
cc Bob On 04/07/2013 05:03 PM, Wanpeng Li wrote: On Wed, Apr 03, 2013 at 06:16:20PM +0800, Wanpeng Li wrote: Changelog: v5 -> v6: * shove variables in debug.c and in debug.h just have an extern, spotted by Konrad * update patch description, spotted by Konrad v4 -> v5: * fix compile

Re: [PATCH] Drivers: Base: Regmap: fix warnings, use %lu instead of %d for printf format

2013-04-07 Thread Bjørn Mork
Chen Gang writes: > fix warnings (with EXTRA_CFLAGS=-W): > format ‘%d’ expects argument of type ‘int’, > but argument 4 has type ‘size_t’ [-Wformat] > > Signed-off-by: Chen Gang > --- > drivers/base/regmap/regcache.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >

Wrapping Creative's X-Fi Go! USB Windows soft-driver for the Linux kernel

2013-04-07 Thread IJ.L.
I was wondering if there is a policy (formal or informal) for avoiding pursuing  such endeavors and if not, what would be the advice for a modern approach to implement it for a current or future line of kernels. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-07 Thread Michael Wang
On 04/07/2013 03:30 PM, Alex Shi wrote: >> >> According to these data, 90us == 9 is the inflection point on my box >> for 22 MB 32 clients item, other test items show different float, so >> 80~90us is the conclusion. > > Thanks a lot for the testing! >> >> Now the concern is how to deal with

[PATCH] kernel: audit: beautify code, for extern function, better to check its parameters by itself

2013-04-07 Thread Chen Gang
__audit_socketcall is an extern function. better to check its parameters by itself. also can return error code, when fail (find invalid parameters). also use macro instead of real hard code number also give related comments for it. Signed-off-by: Chen Gang ---

Re: old->umask copying without spin_lock, in copy_fs_struct()

2013-04-07 Thread Rakib Mullick
On Sun, Apr 7, 2013 at 1:56 PM, Al Viro wrote: > On Sun, Apr 07, 2013 at 11:37:27AM +0600, Rakib Mullick wrote: >> Hello, >> >> In copy_fs_struct(), old->umask is assigned to fs->umask outside of >> spin_lock(>lock). Shouldn't it be inside spin_lock()? Since we're >> dealing with fs_struct *old

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with "[PATCH v2] memcg: debugging facility to access dangling memcgs." slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this patchset on that debugging patch? Also that

Re: [PATCH] ACPI: remove "config ACPI_DEBUG_FUNC_TRACE"

2013-04-07 Thread Rafael J. Wysocki
On Sunday, April 07, 2013 07:00:34 AM Zheng, Lv wrote: > > > > Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its > > > > corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro > > > > was removed from that header in v3.8, with commit > > > >

Re: [PATCH] PM/reboot: call syscore_shutdown() after disable_nonboot_cpus()

2013-04-07 Thread Rafael J. Wysocki
On Sunday, April 07, 2013 10:14:14 AM Huacai Chen wrote: > As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core > subsystems PM) say, syscore_ops operations should be carried with one > CPU on-line and interrupts disabled. However, after commit f96972f2d > (kernel/sys.c: call

[PATCH 2/2] net: ks8851: Use dev_pm_ops

2013-04-07 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen --- drivers/net/ethernet/micrel/ks8851.c | 37 +++- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/drivers/net/ethernet/micrel/ks8851.c

[PATCH 1/2] net: ks8851: Use module_spi_driver

2013-04-07 Thread Lars-Peter Clausen
By using module_spi_driver we can eliminate a few lines of boilerplate code. Signed-off-by: Lars-Peter Clausen --- drivers/net/ethernet/micrel/ks8851.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/ethernet/micrel/ks8851.c

[PATCH] OMAPDSS: nec-nl8048 panel: Use dev_pm_ops

2013-04-07 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen --- .../video/omap2/displays/panel-nec-nl8048hl11-01b.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v4, part3 02/41] avr32: normalize global variables exported by vmlinux.lds

2013-04-07 Thread Hans-Christian Egtvedt
Around Sat 06 Apr 2013 22:32:01 +0800 or thereabout, Jiang Liu wrote: > Normalize global variables exported by vmlinux.lds to conform usage > guidelines from include/asm-generic/sections.h. > > Use _text to mark the start of the kernel image including the head text, > and _stext to mark the start

Re: [PATCH v4, part3 15/41] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-04-07 Thread Hans-Christian Egtvedt
Around Sat 06 Apr 2013 22:32:14 +0800 or thereabout, Jiang Liu wrote: > Prepare for removing num_physpages and simplify mem_init(). > > Signed-off-by: Jiang Liu > Cc: Haavard Skinnemoen > Cc: Hans-Christian Egtvedt > Cc: linux-kernel@vger.kernel.org (open list) Acked-by: Hans-Christian

Re: old->umask copying without spin_lock, in copy_fs_struct()

2013-04-07 Thread Al Viro
On Sun, Apr 07, 2013 at 11:37:27AM +0600, Rakib Mullick wrote: > Hello, > > In copy_fs_struct(), old->umask is assigned to fs->umask outside of > spin_lock(>lock). Shouldn't it be inside spin_lock()? Since we're > dealing with fs_struct *old ? Isn't it unsafe? Following lines - > >

Re: [PATCH] AVR32: fix building warnings caused by redifinitions of HZ

2013-04-07 Thread Hans-Christian Egtvedt
Around Sun 07 Apr 2013 00:43:36 +0800 or thereabout, Jiang Liu wrote: > Fix building warnings caused by redifinitions of HZ: > In file included from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4, > from include/linux/timex.h:63, > from

Re: [BUG?] thp: too much anonymous hugepage caused 'khugepaged' thread stopped

2013-04-07 Thread Zhouping Liu
On 04/07/2013 03:10 PM, Wanpeng Li wrote: On Sun, Apr 07, 2013 at 02:29:30AM -0400, Zhouping Liu wrote: Hello All, When I did some testing to check thp's performance, the following strange action occurred: when a process try to allocate 500+(or other large value) anonymous hugepage, the

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-07 Thread Will Huck
cc Fengguang, On 04/05/2013 08:05 AM, Will Huck wrote: Hi Rik, On 03/22/2013 09:01 PM, Rik van Riel wrote: On 03/22/2013 12:59 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:56 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote:

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-07 Thread Will Huck
Ping Rik. On 04/05/2013 08:05 AM, Will Huck wrote: Hi Rik, On 03/22/2013 09:01 PM, Rik van Riel wrote: On 03/22/2013 12:59 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:56 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-07 Thread Alex Shi
> > According to these data, 90us == 9 is the inflection point on my box > for 22 MB 32 clients item, other test items show different float, so > 80~90us is the conclusion. Thanks a lot for the testing! > > Now the concern is how to deal with this issue, the results may changed > on

Re: [RFC] mm: remove swapcache page early

2013-04-07 Thread Simon Jeons
Ping Minchan. On 04/02/2013 09:40 PM, Simon Jeons wrote: Hi Hugh, On 03/28/2013 05:41 AM, Hugh Dickins wrote: On Wed, 27 Mar 2013, Minchan Kim wrote: Swap subsystem does lazy swap slot free with expecting the page would be swapped out again so we can't avoid unnecessary write.

Re: [GIT PULL] dt: run C pre-processor on *.dts, create some standard headers

2013-04-07 Thread Shawn Guo
On Fri, Apr 05, 2013 at 12:46:50PM -0600, Stephen Warren wrote: > Rob, it might be worth keeping this in a separate branch in linux-next > so you can pull it out if it causes any issues. I've been using these > patches for quite a while now, but there's always opportunity for > surprises on

RE: [PATCH] ACPI: remove "config ACPI_DEBUG_FUNC_TRACE"

2013-04-07 Thread Zheng, Lv
> > > > Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its > > > > corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro > > > > was removed from that header in v3.8, with commit > > > > 86ff0e508f88eda6e479a897476026055831d2d8 ("ACPICA: Fix unmerged > > > > acmacros.h

RE: [PATCH] ACPI: remove "config ACPI_DEBUG_FUNC_TRACE"

2013-04-07 Thread Zheng, Lv
> > > Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its > > > corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro > > > was removed from that header in v3.8, with commit > > > 86ff0e508f88eda6e479a897476026055831d2d8 ("ACPICA: Fix unmerged > > > acmacros.h

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-07 Thread Simon Jeons
Ping! On 04/05/2013 02:31 PM, Simon Jeons wrote: Hi Michal, On 03/21/2013 04:19 PM, Michal Hocko wrote: On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was enabled

[PATCH] drivers/gpu/drm/gma500:fix build failure for 3.9-rc5

2013-04-07 Thread Xiong Zhou
From: Xiong Zhou This patch fixes build failure of v3.9-rc5. When config ACPI_VIDEO as m, DRM_GMA500 as y, here comes the failure. gma5/600 needs acpi_video just like nouveau. Failure message: drivers/built-in.o: In function `psb_driver_load':

[BUG?] thp: too much anonymous hugepage caused 'khugepaged' thread stopped

2013-04-07 Thread Zhouping Liu
Hello All, When I did some testing to check thp's performance, the following strange action occurred: when a process try to allocate 500+(or other large value) anonymous hugepage, the 'khugepaged' thread will stop to scan vma. the testing system has 2Gb RAM, and the thp enabled value is

Re: [PATCH] ARM: dts: cfa10036: Add touchscreen support to the CFA-10049

2013-04-07 Thread Shawn Guo
On Fri, Apr 05, 2013 at 02:33:02PM +0200, Alexandre Belloni wrote: > Signed-off-by: Alexandre Belloni Applied, thanks. > --- > arch/arm/boot/dts/imx28-cfa10049.dts |5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts >

Re: [PATCH] ARM: dts: imx23-olinuxino: mark sdcard cd as broken

2013-04-07 Thread Shawn Guo
On Sat, Apr 06, 2013 at 10:42:10AM -0300, Alexandre Pereira da Silva wrote: > The imx23-olinuxino sdcard doesn't have card detect. > > Signed-off-by: Alexandre Pereira da Silva Applied, thanks. > --- > arch/arm/boot/dts/imx23-olinuxino.dts |1 + > 1 file changed, 1 insertion(+) > > diff

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
On 2013/4/4 20:00, Michal Hocko wrote: > On Wed 03-04-13 17:11:15, Li Zefan wrote: >> (I'll be off from my office soon, and I won't be responsive in the following >> 3 days.) >> >> I'm working on converting memcg to use cgroup->id, and then we can kill >> css_id. >> >> Now memcg has its own

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
On 2013/4/4 20:00, Michal Hocko wrote: On Wed 03-04-13 17:11:15, Li Zefan wrote: (I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a

Re: [PATCH] ARM: dts: imx23-olinuxino: mark sdcard cd as broken

2013-04-07 Thread Shawn Guo
On Sat, Apr 06, 2013 at 10:42:10AM -0300, Alexandre Pereira da Silva wrote: The imx23-olinuxino sdcard doesn't have card detect. Signed-off-by: Alexandre Pereira da Silva aletes@gmail.com Applied, thanks. --- arch/arm/boot/dts/imx23-olinuxino.dts |1 + 1 file changed, 1

Re: [PATCH] ARM: dts: cfa10036: Add touchscreen support to the CFA-10049

2013-04-07 Thread Shawn Guo
On Fri, Apr 05, 2013 at 02:33:02PM +0200, Alexandre Belloni wrote: Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Applied, thanks. --- arch/arm/boot/dts/imx28-cfa10049.dts |5 + 1 file changed, 5 insertions(+) diff --git

[BUG?] thp: too much anonymous hugepage caused 'khugepaged' thread stopped

2013-04-07 Thread Zhouping Liu
Hello All, When I did some testing to check thp's performance, the following strange action occurred: when a process try to allocate 500+(or other large value) anonymous hugepage, the 'khugepaged' thread will stop to scan vma. the testing system has 2Gb RAM, and the thp enabled value is

[PATCH] drivers/gpu/drm/gma500:fix build failure for 3.9-rc5

2013-04-07 Thread Xiong Zhou
From: Xiong Zhou jencce.ker...@gmail.com This patch fixes build failure of v3.9-rc5. When config ACPI_VIDEO as m, DRM_GMA500 as y, here comes the failure. gma5/600 needs acpi_video just like nouveau. Failure message: drivers/built-in.o: In function `psb_driver_load':

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-07 Thread Simon Jeons
Ping! On 04/05/2013 02:31 PM, Simon Jeons wrote: Hi Michal, On 03/21/2013 04:19 PM, Michal Hocko wrote: On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was enabled

RE: [PATCH] ACPI: remove config ACPI_DEBUG_FUNC_TRACE

2013-04-07 Thread Zheng, Lv
Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit 86ff0e508f88eda6e479a897476026055831d2d8 (ACPICA: Fix unmerged acmacros.h divergences.). That commit

RE: [PATCH] ACPI: remove config ACPI_DEBUG_FUNC_TRACE

2013-04-07 Thread Zheng, Lv
Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit 86ff0e508f88eda6e479a897476026055831d2d8 (ACPICA: Fix unmerged acmacros.h divergences.). That

Re: [GIT PULL] dt: run C pre-processor on *.dts, create some standard headers

2013-04-07 Thread Shawn Guo
On Fri, Apr 05, 2013 at 12:46:50PM -0600, Stephen Warren wrote: Rob, it might be worth keeping this in a separate branch in linux-next so you can pull it out if it causes any issues. I've been using these patches for quite a while now, but there's always opportunity for surprises on

Re: [RFC] mm: remove swapcache page early

2013-04-07 Thread Simon Jeons
Ping Minchan. On 04/02/2013 09:40 PM, Simon Jeons wrote: Hi Hugh, On 03/28/2013 05:41 AM, Hugh Dickins wrote: On Wed, 27 Mar 2013, Minchan Kim wrote: Swap subsystem does lazy swap slot free with expecting the page would be swapped out again so we can't avoid unnecessary write.

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-07 Thread Alex Shi
According to these data, 90us == 9 is the inflection point on my box for 22 MB 32 clients item, other test items show different float, so 80~90us is the conclusion. Thanks a lot for the testing! Now the concern is how to deal with this issue, the results may changed on different

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-07 Thread Will Huck
Ping Rik. On 04/05/2013 08:05 AM, Will Huck wrote: Hi Rik, On 03/22/2013 09:01 PM, Rik van Riel wrote: On 03/22/2013 12:59 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:56 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-07 Thread Will Huck
cc Fengguang, On 04/05/2013 08:05 AM, Will Huck wrote: Hi Rik, On 03/22/2013 09:01 PM, Rik van Riel wrote: On 03/22/2013 12:59 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:56 AM, Will Huck wrote: Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote:

Re: [BUG?] thp: too much anonymous hugepage caused 'khugepaged' thread stopped

2013-04-07 Thread Zhouping Liu
On 04/07/2013 03:10 PM, Wanpeng Li wrote: On Sun, Apr 07, 2013 at 02:29:30AM -0400, Zhouping Liu wrote: Hello All, When I did some testing to check thp's performance, the following strange action occurred: when a process try to allocate 500+(or other large value) anonymous hugepage, the

Re: [PATCH] AVR32: fix building warnings caused by redifinitions of HZ

2013-04-07 Thread Hans-Christian Egtvedt
Around Sun 07 Apr 2013 00:43:36 +0800 or thereabout, Jiang Liu wrote: Fix building warnings caused by redifinitions of HZ: In file included from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4, from include/linux/timex.h:63, from

Re: old-umask copying without spin_lock, in copy_fs_struct()

2013-04-07 Thread Al Viro
On Sun, Apr 07, 2013 at 11:37:27AM +0600, Rakib Mullick wrote: Hello, In copy_fs_struct(), old-umask is assigned to fs-umask outside of spin_lock(old-lock). Shouldn't it be inside spin_lock()? Since we're dealing with fs_struct *old ? Isn't it unsafe? Following lines -

Re: [PATCH v4, part3 15/41] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-04-07 Thread Hans-Christian Egtvedt
Around Sat 06 Apr 2013 22:32:14 +0800 or thereabout, Jiang Liu wrote: Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Haavard Skinnemoen hskinnem...@gmail.com Cc: Hans-Christian Egtvedt egtv...@samfundet.no Cc:

Re: [PATCH v4, part3 02/41] avr32: normalize global variables exported by vmlinux.lds

2013-04-07 Thread Hans-Christian Egtvedt
Around Sat 06 Apr 2013 22:32:01 +0800 or thereabout, Jiang Liu wrote: Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of

[PATCH] OMAPDSS: nec-nl8048 panel: Use dev_pm_ops

2013-04-07 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- .../video/omap2/displays/panel-nec-nl8048hl11-01b.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git

[PATCH 1/2] net: ks8851: Use module_spi_driver

2013-04-07 Thread Lars-Peter Clausen
By using module_spi_driver we can eliminate a few lines of boilerplate code. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/net/ethernet/micrel/ks8851.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/ethernet/micrel/ks8851.c

[PATCH 2/2] net: ks8851: Use dev_pm_ops

2013-04-07 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/net/ethernet/micrel/ks8851.c | 37 +++- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git

Re: [PATCH] PM/reboot: call syscore_shutdown() after disable_nonboot_cpus()

2013-04-07 Thread Rafael J. Wysocki
On Sunday, April 07, 2013 10:14:14 AM Huacai Chen wrote: As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core subsystems PM) say, syscore_ops operations should be carried with one CPU on-line and interrupts disabled. However, after commit f96972f2d (kernel/sys.c: call

Re: [PATCH] ACPI: remove config ACPI_DEBUG_FUNC_TRACE

2013-04-07 Thread Rafael J. Wysocki
On Sunday, April 07, 2013 07:00:34 AM Zheng, Lv wrote: Kconfig symbol ACPI_DEBUG_FUNC_TRACE was only used (through its corresponding macro) in drivers/acpi/acpica/acmacros.h. That macro was removed from that header in v3.8, with commit 86ff0e508f88eda6e479a897476026055831d2d8

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with [PATCH v2] memcg: debugging facility to access dangling memcgs. slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this patchset on that debugging patch? Also that

Re: old-umask copying without spin_lock, in copy_fs_struct()

2013-04-07 Thread Rakib Mullick
On Sun, Apr 7, 2013 at 1:56 PM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Apr 07, 2013 at 11:37:27AM +0600, Rakib Mullick wrote: Hello, In copy_fs_struct(), old-umask is assigned to fs-umask outside of spin_lock(old-lock). Shouldn't it be inside spin_lock()? Since we're dealing with

[PATCH] kernel: audit: beautify code, for extern function, better to check its parameters by itself

2013-04-07 Thread Chen Gang
__audit_socketcall is an extern function. better to check its parameters by itself. also can return error code, when fail (find invalid parameters). also use macro instead of real hard code number also give related comments for it. Signed-off-by: Chen Gang gang.c...@asianux.com

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-07 Thread Michael Wang
On 04/07/2013 03:30 PM, Alex Shi wrote: According to these data, 90us == 9 is the inflection point on my box for 22 MB 32 clients item, other test items show different float, so 80~90us is the conclusion. Thanks a lot for the testing! Now the concern is how to deal with this issue,

Wrapping Creative's X-Fi Go! USB Windows soft-driver for the Linux kernel

2013-04-07 Thread IJ.L.
I was wondering if there is a policy (formal or informal) for avoiding pursuing  such endeavors and if not, what would be the advice for a modern approach to implement it for a current or future line of kernels. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] Drivers: Base: Regmap: fix warnings, use %lu instead of %d for printf format

2013-04-07 Thread Bjørn Mork
Chen Gang gang.c...@asianux.com writes: fix warnings (with EXTRA_CFLAGS=-W): format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat] Signed-off-by: Chen Gang gang.c...@asianux.com --- drivers/base/regmap/regcache.c |2 +- 1 files changed, 1

Re: [PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently

2013-04-07 Thread Ric Mason
cc Bob On 04/07/2013 05:03 PM, Wanpeng Li wrote: On Wed, Apr 03, 2013 at 06:16:20PM +0800, Wanpeng Li wrote: Changelog: v5 - v6: * shove variables in debug.c and in debug.h just have an extern, spotted by Konrad * update patch description, spotted by Konrad v4 - v5: * fix compile error,

<    1   2   3   4   5   6   >