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] 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 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 ---

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 is dominated by the

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 speed in performance

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 khoroshi...@ispras.ru --- fs/hfs/catalog.c | 12

[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 gang.c...@asianux.com --- drivers/base/regmap/regcache.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[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 k80ck...@gmail.com --- mm/mmap.c |3 --- 1

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

2013-04-07 Thread chenggang qin
From: chenggang@taobao.com 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:

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

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. Ok, let's go back a

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

[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 stef...@seibold.net --- ftdi_sio.c |1 + ftdi_sio_ids.h |1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.c

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 k80ck...@gmail.com 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] 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 rakib.mull...@gmail.com --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c

[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.

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 --git

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

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [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

[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 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 fei...@intel.com 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

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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

[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 gang.c...@asianux.com --- kernel/debug/kdb/kdb_main.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/debug/kdb/kdb_main.c

[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 sebastian.hesselba...@gmail.com --- Cc: David S. Miller da...@davemloft.net 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
kdb_prompt_str is NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang gang.c...@asianux.com --- 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

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 gang.c...@asianux.com ---

Re: net_dropmon usage documentation/examples?

2013-04-07 Thread Eric Wong
Neil Horman nhor...@tuxdriver.com 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

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 gang.c...@asianux.com I've already applied a patch for this from

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 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 gang.c...@asianux.com

[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 gang.c...@asianux.com --- kernel/module.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 3c2c72d..597efd8

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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

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 3/9] uretprobes/x86: Hijack return address

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [2013-04-03 18:00:34]: Hijack the return address and replace it with a trampoline address. PowerPC implementation. Signed-off-by: Anton Arapov an...@redhat.com Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com --- arch/powerpc/include/asm/uprobes.h |

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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. *

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [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

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [2013-04-03 18:00:38]: Enclose return probes implementation. Signed-off-by: Anton Arapov an...@redhat.com --- Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com kernel/events/uprobes.c | 4 1 file changed, 4 deletions(-) diff --git

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

2013-04-07 Thread Srikar Dronamraju
* Anton Arapov an...@redhat.com [2013-04-03 18:00:39]: add the uretprobe syntax and update an example Signed-off-by: Anton Arapov an...@redhat.com --- Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com Documentation/trace/uprobetracer.txt | 114 ---

[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 axel@ingics.com --- 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

AMD Vi error and lost networking with r8169

2013-04-07 Thread David R
I'm been seeing some problems with my new ish AMD motherboard/processor combo and networking (r8169). I see the following page fault :- Apr 7 12:25:14 david kernel: [156421.436545] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0015 address=0x3000 flags=0x0050] Followed

Re: [PATCH] do not try to sync identity map for non-mapped pages

2013-04-07 Thread Borislav Petkov
Hey Dave, On Thu, Mar 07, 2013 at 08:31:51AM -0800, Dave Hansen wrote: The original bug reporter says this fixes it for him, so I'm broadening the cc list a bit. I assume this should just get sucked in to the x86 tree. looks like we haven't whacked all the moles - I keep seeing this when

Re: [PATCH 1/6] uprobes/tracing: Introduce uprobe_{trace,perf}_print() helpers

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-01 18:08:45]: Extract the output code from uprobe_trace_func() and uprobe_perf_func() into the new helpers, they will be used by -ret_handler() too. We also add the unused unsigned long func argument in advance, to simplify the next changes.

Re: [RFC][PATCH 0/9] extend hugepage migration

2013-04-07 Thread KOSAKI Motohiro
Please refer to hugetlb_fault for more information. Thanks for your pointing out. So my assume is correct, is it? Can pmd which support 2MB map 32MB pages work well? Simon, Please stop hijaking unrelated threads. This is not question and answer thread. -- To unsubscribe from this list:

Re: [PATCH 2/6] uprobes/tracing: Introduce is_ret_probe() and uretprobe_dispatcher()

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-01 18:08:48]: Create the new functions we need to support uretprobes, and change alloc_trace_uprobe() to initialize consumer.ret_handler if the new is_ret argument is true. Curently this argument is always false, so the new code is never called and

Re: [PATCH 4/6] uprobes/tracing: Make register_uprobe_event() paths uretprobe-friendly

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-01 18:08:54]: Change uprobe_event_define_fields(), and __set_print_fmt() to check is_ret_probe() and use the appropriate format/fields. Signed-off-by: Oleg Nesterov o...@redhat.com Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com ---

Re: [PATCH 5/6] uprobes/tracing: Make seq_printf() code uretprobe-friendly

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-01 18:08:57]: Change probes_seq_show() and print_uprobe_event() to check is_ret_probe() and print the correct data. Signed-off-by: Oleg Nesterov o...@redhat.com Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com --- kernel/trace/trace_uprobe.c

Re: [PATCH 6/6] uprobes/tracing: Change create_trace_uprobe() to support uretprobes

2013-04-07 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-04-01 18:09:00]: Finally change create_trace_uprobe() to check if argv[0][0] == 'r' and pass the correct is_ret to alloc_trace_uprobe(). Signed-off-by: Oleg Nesterov o...@redhat.com Acked-by: Srikar Dronamraju sri...@linux.vnet.ibm.com ---

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

2013-04-07 Thread Geert Uytterhoeven
On Sun, Apr 7, 2013 at 1:38 PM, Chen Gang gang.c...@asianux.com wrote: ownername and namebuf are all NUL terminated string. need always let them ended by '\0'. Signed-off-by: Chen Gang gang.c...@asianux.com --- kernel/module.c |4 ++-- 1 files changed, 2 insertions(+), 2

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-07 Thread Arnd Bergmann
On Sunday 07 April 2013, Daniel Tang wrote: On 07/04/2013, at 12:24 AM, Arnd Bergmann a...@arndb.de wrote: @@ -313,7 +314,7 @@ define archhelp echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo '* xipImage - XIP kernel image, if configured

[PATCH 2/2] ARM: at91: remove trailing semicolon from macros

2013-04-07 Thread Johan Hovold
Remove trailing semicolon from register-access macros. Signed-off-by: Johan Hovold jhov...@gmail.com --- arch/arm/mach-at91/at91_rstc.h| 2 +- arch/arm/mach-at91/at91_shdwc.h | 2 +- arch/arm/mach-at91/at91x40_time.c | 2 +-

[PATCH 1/2] ARM: at91/setup: fix trivial typos

2013-04-07 Thread Johan Hovold
Fix a few trivial typos in panic, warning and debug messages. Signed-off-by: Johan Hovold jhov...@gmail.com --- arch/arm/mach-at91/setup.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index 4b67847..9e7c1e1

Re: [RFC PATCH] wfcqueue: implement __wfcq_enqueue_head() (v2)

2013-04-07 Thread Mathieu Desnoyers
* Eric Wong (normalper...@yhbt.net) wrote: Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: Implement enqueue-to-head. It can run concurrently with enqueue, splice to queue, and iteration, but requires a mutex against dequeue and splice from queue operations. Useful for

Re: [PATCH v4, part3 00/15] accurately calculate memory statisitic information

2013-04-07 Thread Jiang Liu
On 04/07/2013 09:34 AM, Simon Jeons wrote: Hi Jiang, On 04/06/2013 09:54 PM, Jiang Liu wrote: Jiang Liu (15): mm: fix build warnings caused by free_reserved_area() mm: enhance free_reserved_area() to support poisoning memory with zero mm/ARM64: kill poison_init_mem()

[PATCH 1/4] regulator: ab8500: Get rid of is_enabled from struct ab8500_regulator_info

2013-04-07 Thread Axel Lin
The intention of this patch is to simplify the code. Maintain the is_enabled flag is not trivial, it not only needs to set/clear the flag in disable()/enable() but also needs to set the flag in is_enable() to get initial status. The only benefit of keeping is_enabled flag is just save a register

[RFC PATCH] wfcqueue: implement __wfcq_enqueue_head() (v3)

2013-04-07 Thread Mathieu Desnoyers
Implement enqueue-to-head. It can run concurrently with enqueue, splice to queue, and iteration, but requires a mutex against dequeue and splice from queue operations. Useful for special-cases where a queue needs to have nodes enqueued into its head. This patch is only compile-tested. Changes

[PATCH 2/4] regulator: ab8500-ext: Get rid of is_enabled from struct ab8500_ext_regulator_info

2013-04-07 Thread Axel Lin
The intention of this patch is to simplify the code. Maintain the is_enabled flag is not trivial, it not only needs to set/clear the flag in disable()/enable() but also needs to set the flag in is_enable() to get initial status. The only benefit of keeping is_enabled flag is just save a register

[PATCH 3/4] regulator: ab8500-ext: Remove unnecessary checking for ab9540 and ab8540

2013-04-07 Thread Axel Lin
This code was added by commit 0fe17e20a6 regulator: ab8500-ext: Add support for AB9540 regulators and commit bd44e2cb regulator: ab8500: Also check for AB8505 based platforms The original patch[1] is to set info-desc.ops = ab9540_ext_regulator_ops. However, ab9540_ext_regulator_ops is identical

[PATCH 4/4] regulator: ab8500-ext: Remove get_voltage to avoid duplicate implementation

2013-04-07 Thread Axel Lin
The implementation of ab8500_ext_fixed_get_voltage is identical to ab8500_ext_list_voltage. We can avoid the duplicate implementation by just remove get_voltage. For fixed regulator, regulator core will call list_voltage(rdev, 0) to get voltage if both get_voltage get_voltage_sel are not

Re: [PATCH 0/3] mm: fixup changers of per cpu pageset's -high and -batch

2013-04-07 Thread KOSAKI Motohiro
(4/5/13 4:33 PM), Cody P Schafer wrote: In one case while modifying the -high and -batch fields of per cpu pagesets we're unneededly using stop_machine() (patches 1 2), and in another we don't have any syncronization at all (patch 3). This patchset fixes both of them. Note that it

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

2013-04-07 Thread Jiang Liu
On 04/07/2013 03:55 PM, Hans-Christian Egtvedt wrote: 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

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

2013-04-07 Thread Greg KH
On Sun, Apr 07, 2013 at 10:46:00AM +0200, Rafael J. Wysocki wrote: 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

Re: [PATCH 2/3] mm/page_alloc: convert zone_pcp_update() to use on_each_cpu() instead of stop_machine()

2013-04-07 Thread KOSAKI Motohiro
(4/5/13 4:33 PM), Cody P Schafer wrote: No off-cpu users of the percpu pagesets exist. zone_pcp_update()'s goal is to adjust the -high and -mark members of a percpu pageset based on a zone's -managed_pages. We don't need to drain the entire percpu pageset just to modify these fields. Avoid

Re: [PATCH 3/3] mm: when handling percpu_pagelist_fraction, use on_each_cpu() to set percpu pageset fields.

2013-04-07 Thread KOSAKI Motohiro
(4/5/13 4:33 PM), Cody P Schafer wrote: In free_hot_cold_page(), we rely on pcp-batch remaining stable. Updating it without being on the cpu owning the percpu pageset potentially destroys this stability. Change for_each_cpu() to on_each_cpu() to fix. Signed-off-by: Cody P Schafer

Re: [PATCHSET] cgroup: unexport locking interface

2013-04-07 Thread Tejun Heo
On Sun, Apr 07, 2013 at 01:38:21PM +0800, Li Zefan wrote: On 2013/4/5 7:36, Tejun Heo wrote: Hello, Most cgroup_mutex abuses outside cgroup core proper have been eradicated but there's still one use remaining and locking interface is still exported. This patchset updates the last user

Re: [PATCH] do not try to sync identity map for non-mapped pages

2013-04-07 Thread H. Peter Anvin
On 04/07/2013 06:33 AM, Borislav Petkov wrote: looks like we haven't whacked all the moles - I keep seeing this when testing 32-bit builds in qemu on latest Linus + tip. I'd guess this is still that /dev/mem accessing thing called wdm. I'm still wondering though whether we should BUG_ON on

Re: [PATCH] driver core: add uid and gid to devtmpfs

2013-04-07 Thread Kay Sievers
On Sat, Apr 6, 2013 at 7:58 PM, Greg KH gre...@linuxfoundation.org wrote: On Sat, Apr 06, 2013 at 06:45:12PM +0100, Al Viro wrote: On Sat, Apr 06, 2013 at 10:26:12AM -0700, Greg KH wrote: Why not? closed systems, like Android and other embedded systems, have assigned uid and gid values

[PATCH] F2FS: Fix the logic of IS_DNODE()

2013-04-07 Thread Zhihui Zhang
Signed-off-by: Zhihui Zhang zzhs...@gmail.com --- fs/f2fs/node.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index afdb130..2be47b2 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -239,7 +239,7 @@ static inline bool IS_DNODE(struct

[PATCH] regulator: mc13783: Add device tree probe support

2013-04-07 Thread Alexander Shiyan
Patch adds device tree probe support for mc13783-regulator driver. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/regulator/mc13783-regulator.c | 55 ++ drivers/regulator/mc13xxx-regulator-core.c | 2 ++ 2 files changed, 42 insertions(+), 15

Re: [PATCH] do not try to sync identity map for non-mapped pages

2013-04-07 Thread Borislav Petkov
On Sun, Apr 07, 2013 at 09:34:07AM -0700, H. Peter Anvin wrote: We shouldn't, no. /dev/mem really needs to be fixed along a bunch of axes. Yes, it is privileged and extra creepy, but it should either work or it should fail cleanly. Can't we filter out accesses through /dev/mem and not BUG_ON

[PATCH cgroup/for-3.10] devcg: remove broken_hierarchy tag

2013-04-07 Thread Tejun Heo
From f913fbedbdfc08eeff742c4b3077e267d8fc867f Mon Sep 17 00:00:00 2001 From: Tejun Heo t...@kernel.org Date: Sun, 7 Apr 2013 10:25:39 -0700 bd2953ebbb (devcg: propagate local changes down the hierarchy) implemented proper hierarchy support. Remove the broken tag. Signed-off-by: Tejun Heo

Re: [PATCH v6] pstore/ram: Add ramoops support for the Flattened Device Tree.

2013-04-07 Thread Anton Vorontsov
On Thu, Apr 04, 2013 at 09:03:47PM -0500, Rob Herring wrote: On Mon, Sep 17, 2012 at 1:23 AM, Anton Vorontsov cbouatmai...@gmail.com wrote: On Fri, Sep 07, 2012 at 10:29:10PM -0700, Anton Vorontsov wrote: On Fri, Sep 07, 2012 at 11:29:36AM -0700, Bryan Freed wrote: When called with a

Re: [PATCH 0/3] backports: adds regulator and media susbsystems

2013-04-07 Thread Luis R. Rodriguez
On Sat, Apr 6, 2013 at 7:37 PM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: On Sat, Apr 6, 2013 at 7:35 PM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: Segmentation fault make[8]: *** [/home/mcgrof/tmp/build/compat/core.o] Error 139 I've narrowed the segfault to a core.c file with

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

2013-04-07 Thread Dan Magenheimer
From: Wanpeng Li [mailto:liw...@linux.vnet.ibm.com] Subject: Re: [PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently Hi Dan, Some issues against Ramster: - Ramster who takes advantage of zcache also should support zero-filled pages more efficiently,

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

2013-04-07 Thread Dan Magenheimer
From: Dan Magenheimer Subject: RE: [PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently From: Wanpeng Li [mailto:liw...@linux.vnet.ibm.com] Subject: Re: [PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently Hi Dan, Some

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-04-07 Thread Guenter Roeck
On Sat, Apr 06, 2013 at 10:11:32PM +0200, Wolfram Sang wrote: Hi, Very interesting discussion, especially the argument that we already shipped would not be a convincing argument. I had senior kernel maintainers tell me and the company I work for that we should submit _all_ our

Re: Linux 3.8.6

2013-04-07 Thread Daniel Vetter
On Sun, Apr 7, 2013 at 12:56 AM, Lucas canolu...@gmail.com wrote: Thanks for reporting in. Somehow the thread got all messed up in LKML. It didn't parse correctly there, but it seems that Gmane did. Here is the link: http://comments.gmane.org/gmane.linux.kernel.stable/48872 Those patches

Re: [PATCH] regulator: mc13783: Add device tree probe support

2013-04-07 Thread Mark Brown
On Sun, Apr 07, 2013 at 09:02:11PM +0400, Alexander Shiyan wrote: Patch adds device tree probe support for mc13783-regulator driver. I'd expect to see a document describing the binding for any new binding. + if (num_parsed != num_regulators) { + dev_warn(pdev-dev, +

[PATCH] Revert tty/8250_pnp: serial port detection regression since v3.7

2013-04-07 Thread Sean Young
This reverts commit 77e372a3d82e5e4878ce1962207edd766773cc76. Checking for disabled resources board breaks detection pnp on another board AMI UEFI implementation (Version: 0406 Release Date: 06/06/2012). I'm working with the reporter of the original bug to write and test a better fix.

[PATCH] tty: mxser: fix cycle termination condition in mxser_probe() and mxser_module_init()

2013-04-07 Thread Alexey Khoroshilov
There is a bug in resources deallocation code in mxser_probe() and mxser_module_init(). As soon as variable 'i' is unsigned int, cycle termination condition i = 0 is always true. The patch fixes the issue. Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru --- drivers/tty/mxser.c |8

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

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 16:44:07, Li Zefan wrote: 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

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

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 14:00:24, Li Zefan wrote: 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

[PATCH] Input: MT - handle semi-mt devices in core

2013-04-07 Thread Henrik Rydberg
Most semi-mt drivers use the slots in a manual way, but really only need to treat the finger count manually. With this patch, a semi-mt driver may use the input-mt core for everything else. Signed-off-by: Henrik Rydberg rydb...@euromail.se --- Hi Dmitry, an earlier version of this patch came

Re: [PATCH v2 net-next 1/8] r8169: Remove firmware code

2013-04-07 Thread David Miller
From: Francois Romieu rom...@fr.zoreil.com Date: Fri, 5 Apr 2013 01:42:29 +0200 David Miller da...@davemloft.net : [...] If so, should I just apply this series as-is ? Yes. - the series is imho -stable unfriendly: whoever wants to figure what should be fed into a -stable branch will

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

2013-04-07 Thread Rafael J. Wysocki
On Sunday, April 07, 2013 08:29:32 AM Greg KH wrote: On Sun, Apr 07, 2013 at 10:46:00AM +0200, Rafael J. Wysocki wrote: 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

Re: [PATCH v2 0/4] 802.15.4 and 6LoWPAN Buffering Fixes

2013-04-07 Thread David Miller
From: Alan Ott a...@signal11.us Date: Wed, 3 Apr 2013 10:00:54 -0400 Version 2 of this patch series: Differences from v1: 1. Patches previously numbered 5 and 6 were squashed (to become current patch #4) at the request of Alexander Smirnov. 2. Current patch #2 had extraneous braces

[patch -next] usb, gadget: use appropriate warning accessors

2013-04-07 Thread David Rientjes
Use the appropriate WARN() and WARN_ON() accessors to avoid a build error when CONFIG_BUG=n: drivers/usb/gadget/configfs.c: In function 'config_usb_cfg_unlink': drivers/usb/gadget/configfs.c:442:2: error: implicit declaration of function '__WARN_printf'

Re: [PATCH v3] netdev/phy: Implement ieee802.3 clause 45 in mdio-octeon.c

2013-04-07 Thread David Miller
From: David Daney ddaney.c...@gmail.com Date: Wed, 3 Apr 2013 12:25:32 -0700 From: David Daney david.da...@cavium.com The Octeon SMI/MDIO interfaces can do clause 45 communications, so implement this in the driver. Also fix some comment formatting to make it consistent and to comply

Re: [PATCH -next 1/3] bcache: Add missing #include linux/prefetch.h

2013-04-07 Thread David Rientjes
On Wed, 27 Mar 2013, Kent Overstreet wrote: Nope - looks like __WARN() doesn't exist if CONFIG_BUG=n, whoops. Adding this to the queue: commit 796c213186b850b3e6e8d5fd5799b0fd74721ea3 Author: Kent Overstreet koverstr...@google.com Date: Wed Mar 27 12:47:45 2013 -0700 bcache: Use

Re: [ 105/124] af_unix: dont send SCM_CREDENTIAL when dest socket is NULL

2013-04-07 Thread Ben Hutchings
On Fri, 2013-04-05 at 00:47 -0400, David Miller wrote: From: Sven Joachim svenj...@gmx.de Date: Wed, 03 Apr 2013 13:41:32 +0200 On 2013-04-03 00:11 +0200, Greg Kroah-Hartman wrote: 3.8-stable review patch. If anyone has any objections, please let me know. I'm seeing several

[PATCH 1/2] hfsplus: add error propagation to __hfsplus_ext_write_extent()

2013-04-07 Thread Alexey Khoroshilov
__hfsplus_ext_write_extent() suppresses errors coming from hfs_brec_find(). The patch implements error code propagation. Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru --- fs/hfsplus/extents.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git

[PATCH 2/2] hfsplus: add printk to log allocation failure in hfs_find_init()

2013-04-07 Thread Alexey Khoroshilov
Add printk to log allocation failure in hfs_find_init(), so that there is a sign in dmesg when the error condition is triggered. (per Hin-Tak Leung request) Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru --- fs/hfsplus/bfind.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-07 Thread Arnd Bergmann
On Sunday 07 April 2013, Daniel Tang wrote: Here's an updated patch that enables support for the LCD. I looked into drivers/video/of_display_timing.c but it doesn't have the fields to describe the PL11x specific options needed in struct clcd_panel. At the moment, it is implemented by

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

2013-04-07 Thread Christoffer Dall
On Sun, Apr 7, 2013 at 12:41 AM, Michael S. Tsirkin m...@redhat.com wrote: 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

Re: [PATCH 0/3] gpio: remove GENERIC_GPIO completely

2013-04-07 Thread Alexandre Courbot
Hi Chen, Cool, thanks! Can you send a formatted patch to include in the series, or do you prefer me to squash it in the relevant patch and add your signoff for this file? Alex. 2013/4/6 Chen Baozi baoz...@gmail.com: On Fri, Mar 29, 2013 at 06:11:15AM -0700, Alexandre Courbot wrote: Another

Re: AMD Vi error and lost networking with r8169

2013-04-07 Thread Francois Romieu
David R da...@unsolicited.net : I'm been seeing some problems with my new ish AMD motherboard/processor combo and networking (r8169). I see the following page fault :- Apr 7 12:25:14 david kernel: [156421.436545] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0015

Re: [PATCH 2/2] hfsplus: add printk to log allocation failure in hfs_find_init()

2013-04-07 Thread Joe Perches
On Mon, 2013-04-08 at 01:21 +0400, Alexey Khoroshilov wrote: Add printk to log allocation failure in hfs_find_init(), so that there is a sign in dmesg when the error condition is triggered. (per Hin-Tak Leung request) Not needed. There already is a generic dump_stack on all allocation

Re: Excessive stall times on ext4 in 3.9-rc2

2013-04-07 Thread Frank Ch. Eigler
Hi - tytso wrote: So I tried to reproduce the problem, and so I installed systemtap (bleeding edge, since otherwise it won't work with development kernel), and then rebuilt a kernel with all of the necessary CONFIG options enabled: CONFIG_DEBUG_INFO, CONFIG_KPROBES, CONFIG_RELAY,

Re: IMX23 usb instability on 3.9-rc5

2013-04-07 Thread Alexandre Pereira da Silva
On Sat, Apr 6, 2013 at 4:44 PM, Fabio Estevam feste...@gmail.com wrote: Maybe bad DDR initialization? Are using U-boot or bootlets to setup the DDR? What is your DDR frequency: 133 or 96MHz? I saw some posts in the olimex forum that people had to run it at 96MHz to get stable operation.

[PATCH 2/2] efivars: Implement no_storage_paranoia parameter

2013-04-07 Thread Richard Weinberger
Using this parameter one can disable the storage_size/2 check if he is really sure that the UEFI does sane gc. Signed-off-by: Richard Weinberger rich...@nod.at --- drivers/firmware/efivars.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/efivars.c

<    1   2   3   4   5   6   >