Re: [PATCH 0/4] perf tools: New comm infrastructure

2013-09-16 Thread Namhyung Kim
Hi Ingo, On Sat, 14 Sep 2013 08:11:49 +0200, Ingo Molnar wrote: > * Frederic Weisbecker wrote: >> My patches and Namhyung's should improve the comm situation a lot but we >> can't do much miracle. The only way would be perhaps to be able to limit >> the deepness of the callchain branches. >>

Re: [BUG] uncore_pmu_event_init: using smp_processor_id() in preemptible core

2013-09-16 Thread Peter Zijlstra
On Tue, Sep 17, 2013 at 12:58:34PM +0800, Yan, Zheng wrote: > --- > diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c > b/arch/x86/kernel/cpu/perf_event_intel_uncore.c > index fd8011e..a12a22f 100644 > --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c > +++

linux-next stats (Was: Linux 3.12-rc1)

2013-09-16 Thread Stephen Rothwell
On Mon, 16 Sep 2013 18:08:11 -0400 Linus Torvalds wrote: > > So it's been two weeks, and the merge window for 3.12 is now closed. As usual, the executive friendly graph is at http://neuling.org/linux-next-size.html :-) (No merge commits counted, next-20130903 was the linux-next based on v3.11)

Re: [PATCH 1/1] dma: tegra20-apb-dma: Staticize tegra_dma_prep_dma_cyclic

2013-09-16 Thread Vinod Koul
On Fri, Sep 06, 2013 at 05:16:22PM +0530, Sachin Kamat wrote: > tegra_dma_prep_dma_cyclic is referenced only in this file. > Make it static. Applied, thanks ~Vinod > > Signed-off-by: Sachin Kamat > Cc: Laxman Dewangan > --- > drivers/dma/tegra20-apb-dma.c |2 +- > 1 file changed, 1

Re: [PATCH 09/28] of: Introduce common early_init_dt_scan

2013-09-16 Thread Vineet Gupta
On 09/17/2013 04:39 AM, Rob Herring wrote: > From: Rob Herring > > Most architectures scan the all the same items early in the FDT and none > are really architecture specific. Create a common early_init_dt_scan to > unify the early scan of root, memory, and chosen nodes in the flattened > DT. >

Re: [PATCH] dma/Kconfig: Make TI_EDMA select TI_PRIV_EDMA

2013-09-16 Thread Vinod Koul
On Wed, Sep 04, 2013 at 12:10:45PM -0400, Josh Boyer wrote: > On Wed, Sep 04, 2013 at 09:32:03AM -0400, Josh Boyer wrote: > > The TI_EDMA driver unconditionally calls functions provided by the > > TI_PRIV_EDMA code, but it doesn't force that to be built-in. If that isn't > > otherwise enabled

Re: [RESEND PATCH v5 3/4] mm/vmalloc: revert "mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info"

2013-09-16 Thread KOSAKI Motohiro
On Mon, Sep 16, 2013 at 8:18 PM, Wanpeng Li wrote: > Hi KOSAKI, > On Mon, Sep 16, 2013 at 05:23:32PM -0400, KOSAKI Motohiro wrote: >>On 9/14/2013 7:45 PM, Wanpeng Li wrote: >>> Changelog: >>> *v2 -> v3: revert commit d157a558 directly >>> >>> The VM_UNINITIALIZED/VM_UNLIST flag introduced by

Re: [PATCH 3/3] dma: Add Freescale eDMA engine driver support

2013-09-16 Thread Vinod Koul
On Thu, Sep 05, 2013 at 05:53:19PM +0800, Jingchang Lu wrote: > Add Freescale enhanced direct memory(eDMA) controller support. > The eDMA controller deploys DMAMUXs routing DMA request sources(slot) > to eDMA channels. > This module can be found on Vybrid and LS-1 SoCs. > > Signed-off-by: Alison

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-16 Thread Joel Fernandes
On 09/17/2013 12:08 AM, Sekhar Nori wrote: [..] >>> I still cannot find any users of edma in the device tree sources either >>> in linux-next or linus/master. Why cannot this wait until v3.13? >> >> I understand this affects only DT users of EDMA. But I get so many private >> reports of breakage

Re: [RESEND PATCH v5 2/4] mm/vmalloc: revert "mm/vmalloc.c: emit the failure message before return"

2013-09-16 Thread KOSAKI Motohiro
On Mon, Sep 16, 2013 at 7:41 PM, Wanpeng Li wrote: > Hi KOSAKI, > On Mon, Sep 16, 2013 at 04:15:29PM -0400, KOSAKI Motohiro wrote: >>On 9/14/2013 7:45 PM, Wanpeng Li wrote: >>> Changelog: >>> *v2 -> v3: revert commit 46c001a2 directly >>> >>> Don't warning twice in __vmalloc_area_node and

Re: [PATCH 04/28] arc: use unflatten_and_copy_device_tree

2013-09-16 Thread Vineet Gupta
On 09/17/2013 04:39 AM, Rob Herring wrote: > From: Rob Herring > > Use the common unflatten_and_copy_device_tree to copy the built-in FDT > out of init section. > > Signed-off-by: Rob Herring > Cc: Vineet Gupta I tested the series - works great ! Acked by: Vineet Gupta Thx, -Vineet -- To

Re: [PATCH 03/28] of: create unflatten_and_copy_device_tree

2013-09-16 Thread Vineet Gupta
On 09/17/2013 04:38 AM, Rob Herring wrote: > From: Rob Herring > > Several architectures using DT support built-in dtb's in the init > section. These platforms need to copy the dtb from init since the > strings are referenced after unflattening. Every arch has their own > copying routine which

Re: Please add PTR_RET tree.

2013-09-16 Thread Stephen Rothwell
Hi Rusty, On Tue, 17 Sep 2013 10:20:55 +0930 Rusty Russell wrote: > > Please remove PTR_RET tree, it's merged. OK, thanks for letting me know. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpVBmDb4Fm5L.pgp Description: PGP signature

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-16 Thread Sekhar Nori
On Monday 16 September 2013 09:56 PM, Joel Fernandes wrote: > On 09/16/2013 06:48 AM, Sekhar Nori wrote: >> Hi Joel, >> >> On Saturday 14 September 2013 06:27 AM, Joel Fernandes wrote: >>> From: Joel Fernandes >>> Subject: [PATCH v4] ARM: EDMA: Fix clearing of unused list for DT DMA >>>

Re: [PATCH v2] modpost: Fix secondary errors seen if a single module build fails

2013-09-16 Thread Rusty Russell
Guenter Roeck writes: > Commit ea4054a23 (modpost: handle huge numbers of modules) added > support for building a large number of modules. > > Unfortunately, the commit changed the semantics of the makefile: Instead of > passing only existing object files to modpost, make now passes all expected

Re: Please add PTR_RET tree.

2013-09-16 Thread Rusty Russell
Stephen Rothwell writes: > Hi Rusty, > > On Mon, 15 Jul 2013 14:07:03 +0930 Rusty Russell > wrote: >> >> Temporary branch for PTR_RET -> PTR_ERR_OR_ZERO and associated cleanups. >> >> git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git PTR_RET >> >> Log appended.

Re: [PATCH -next] ashmem: Fix ashmem_shrink deadlock.

2013-09-16 Thread Raul Xiong
2013/5/17 Robert Love : > On Thu, May 16, 2013 at 1:19 PM, Andrew Morton > wrote: >> On Thu, 16 May 2013 13:08:17 -0400 Robert Love wrote: >>> This problem seems a rare proper use of mutex_trylock. >> >> Not really. The need for a trylock is often an indication that a >> subsystem has a locking

Potential use-after-free in SyS_remap_file_pages

2013-09-16 Thread Dmitry Vyukov
Hi, I am working on AddressSanitizer -- a tool that detects use-after-free and out-of-bounds bugs (https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerForKernel). Here is one of the use-after-free reports: [ 296.869705] ERROR: AddressSanitizer: heap-use-after-free on address

Re: [BUG] uncore_pmu_event_init: using smp_processor_id() in preemptible core

2013-09-16 Thread Yan, Zheng
On 09/16/2013 05:21 PM, Peter Zijlstra wrote: > Hi, > > Trinity just triggered this: > > [ 595.847438] BUG: using smp_processor_id() in preemptible [] code: > trinity-child28/2674 > [ 595.857378] caller is uncore_pmu_event_init+0x114/0x270 > [ 595.863262] CPU: 11 PID: 2674 Comm:

[PATCH V2 1/2] cpufreq: unlock correct rwsem while updating policy->cpu

2013-09-16 Thread Viresh Kumar
Current code looks like this: WARN_ON(lock_policy_rwsem_write(cpu)); update_policy_cpu(policy, new_cpu); unlock_policy_rwsem_write(cpu); {lock|unlock}_policy_rwsem_write(cpu) takes/releases policy->cpu's rwsem. Because cpu is changing with the call to update_policy_cpu(),

Re: [PATCH 1/2] cpufreq: unlock correct rwsem while updating policy->cpu

2013-09-16 Thread Viresh Kumar
On 17 September 2013 00:12, Jon Medhurst (Tixy) wrote: > The commit log to that patch still mentions taking both locks. Yeah, it was sent in hurry to just give you a working solution and I forgot to see the log if it is still valid. > The code itself fixes the lockdep errors I had, so > >

Re: [RFC] extending splice for copy offloading

2013-09-16 Thread Rob Landley
On 09/11/2013 04:17:23 PM, Eric Wong wrote: Zach Brown wrote: > Towards the end of that thread Eric Wong asked why we didn't just > extend splice. I immediately replied with some dumb dismissive > answer. Once I sat down and looked at it, though, it does make a > lot of sense. So good job,

Re: [PATCH 1/2] cpufreq: unlock correct rwsem while updating policy->cpu

2013-09-16 Thread Viresh Kumar
On 17 September 2013 00:04, Rafael J. Wysocki wrote: > Care to resend with a subject indicating that that's a patch update? > > Like [PATCH v2] etc. or similar? Yeah.. I was waiting for Tixy to test it once.. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH 15/28] mips: use early_init_dt_scan

2013-09-16 Thread John Crispin
On 17/09/13 01:09, Rob Herring wrote: From: Rob Herring Convert mips to use new early_init_dt_scan function. Remove early_init_dt_scan_memory_arch Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org --- Acked-by: John Crispin Thanks for this series ...

Re: [PATCH 28/28] mips: use common of_flat_dt_get_machine_name

2013-09-16 Thread John Crispin
On 17/09/13 01:09, Rob Herring wrote: From: Rob Herring Convert mips to use the common of_flat_dt_get_machine_name function. Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-m...@linux-mips.org --- Acked-by: John Crispin Thanks for this series ... arch/mips/kernel/prom.c | 15

Re: [PATCH] ethernet/arc/arc_emac: Fix huge delays in large file copies

2013-09-16 Thread David Miller
From: Vineet Gupta Date: Tue, 17 Sep 2013 04:07:23 + > Can you please do the needful for stable 3.11 backport of this patch. Queued up for -stable. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH 04/17] Add system table pointer argument to shared functions.

2013-09-16 Thread Roy Franz
Add system table pointer argument to shared EFI stub related functions so they no longer use a global system table pointer as they did when part of eboot.c. For the ARM EFI stub this allows us to avoid global variables completely and thereby not have to deal with GOT fixups. Not having the EFI

[PATCH 03/17] Move common EFI stub code from x86 arch code to common location

2013-09-16 Thread Roy Franz
No code changes made, just moving functions and #define from x86 arch directory to common location. Code is shared using #include, similar to how decompression code is shared among architectures. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely ---

[PATCH 01/17] EFI stub documentation updates

2013-09-16 Thread Roy Franz
Move efi-stub.txt out of x86 directory and into common directory in preparation for adding ARM EFI stub support. Signed-off-by: Roy Franz --- Documentation/efi-stub.txt | 65 Documentation/x86/efi-stub.txt | 65

[PATCH 09/17] Move unicode to ASCII conversion to shared function.

2013-09-16 Thread Roy Franz
Move the open-coded conversion to a shared function for use by all architectures. Change the allocation to prefer a high address for ARM, as this is required to avoid conflicts with reserved regions in low memory. We don't know the specifics of these regions until after we process the command

[PATCH 05/17] Rename memory allocation/free functions

2013-09-16 Thread Roy Franz
Rename them to be more similar, as low_free() could be used to free memory allocated by both high_alloc() and low_alloc(). high_alloc() -> efi_high_alloc() low_alloc() -> efi_low_alloc() low_free() -> efi_free() Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely ---

[PATCH 11/17] generalize efi_get_memory_map()

2013-09-16 Thread Roy Franz
Add arguments for returning the descriptor version and also the memory map key. The key is required for calling exit_boot_services(). Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git

[PATCH 07/17] Move relocate_kernel() to shared file.

2013-09-16 Thread Roy Franz
The relocate_kernel() function will be generalized and used by all architectures, as they all have similar requirements. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 34 --- drivers/firmware/efi/efi-stub-helper.c | 35

Re: [PATCH] perf session: Add option to copy events when queueing

2013-09-16 Thread David Ahern
On 9/16/13 10:40 AM, Frederic Weisbecker wrote: Yes. I could make it the default behavior; just overhead in doing that (malloc/copy for each event). Are there any tool that don't suffer from this bug somehow? If not then it must be applied unconditionally. I believe only 'live' commands

[PATCH 06/17] Enforce minimum alignment of 1 page on allocations.

2013-09-16 Thread Roy Franz
The efi_high_alloc() and efi_low_alloc() functions use the EFI_ALLOCATE_ADDRESS option to the EFI function allocate_pages(), which requires a minimum of page alignment, and rejects all other requests. The existing code could fail to allocate depending on allocation size, as although repeated

[PATCH 15/17] Renames in handle_cmdline_files() to complete generalization.

2013-09-16 Thread Roy Franz
Rename variables to be not initrd specific, as now the function loads arbitrary files. This change is exclusively renames and comment changes to reflect the generalization. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- drivers/firmware/efi/efi-stub-helper.c |

[PATCH 14/17] Generalize handle_ramdisks() and rename to handle_cmdline_files().

2013-09-16 Thread Roy Franz
The handle_cmdline_files now takes the option to handle as a string, and returns the loaded data through parameters, rather than taking an x86 specific setup_header structure. For ARM, this will be used to load a device tree blob in addition to initrd images. Signed-off-by: Roy Franz Acked-by:

[PATCH 17/17] resolve warnings found on ARM compile

2013-09-16 Thread Roy Franz
warnings from gcc: warning: label 'free_pool' defined but not used [-Wunused-label] warning: value computed is not used [-Wunused-value] Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 16/17] Fix types in EFI calls to match EFI function definitions.

2013-09-16 Thread Roy Franz
EFI calls can made directly on ARM, so the function pointers are directly invoked. This allows types to be checked at compile time, so here we ensure that the parameters match the function signature. The wrappers used by x86 prevent any type checking. Correct the type of chunksize to be based on

[PATCH 08/17] Generalize relocate_kernel() for use by other architectures.

2013-09-16 Thread Roy Franz
Rename relocate_kernel() to efi_relocate_kernel(), and take parameters rather than x86 specific structure. Add max_addr argument as for ARM we have some address constraints that we need to enforce when relocating the kernel. Add alloc_size parameter for use by ARM64 which uses an uncompressed

[PATCH 12/17] use efi_get_memory_map() to get final map for x86

2013-09-16 Thread Roy Franz
Replace the open-coded memory map getting with the efi_get_memory_map() that is now general enough to use. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/x86/boot/compressed/eboot.c

[PATCH 10/17] Rename __get_map() to efi_get_memory_map()

2013-09-16 Thread Roy Franz
Rename function in preparation for making it more flexible and sharing it. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/firmware/efi/efi-stub-helper.c

[PATCH 13/17] Allow efi_free() to be called with size of 0, and do nothing in that case.

2013-09-16 Thread Roy Franz
Make efi_free() safely callable with size of 0, similar to free() being callable with NULL pointers. Remove size checks that this makes redundant. This also avoids some size checks in the ARM EFI stub code that will be added as well. Signed-off-by: Roy Franz ---

[PATCH 02/17] Add proper definitions for some EFI function pointers.

2013-09-16 Thread Roy Franz
The x86/AMD64 EFI stubs must use a call wrapper to convert between the Linux and EFI ABIs, so void pointers are sufficient. For ARM, the ABIs are compatible, so we can directly invoke the function pointers. The functions that are used by the ARM stub are updated to match the EFI definitions.

[PATCH V4 00/17] ARM EFI stub common code

2013-09-16 Thread Roy Franz
This patch is the common/x86 portion of the ARM EFI stub patchset broken out. These changes support the addition of EFI stub support for the ARM and ARM64 architectures. The common code that is now shared in efi-stub-helper.c is based on code in the x86 stub that has been generalized to support

Re: [PATCH] ethernet/arc/arc_emac: Fix huge delays in large file copies

2013-09-16 Thread Vineet Gupta
On 09/17/2013 01:10 AM, greg Kroah-Hartman wrote: > On Mon, Sep 16, 2013 at 11:13:48AM +0530, Vineet Gupta wrote: >> On 09/10/2013 11:57 AM, Vineet Gupta wrote: >>> On 09/05/2013 11:55 PM, David Miller wrote: From: Vineet Gupta Date: Wed, 4 Sep 2013 17:17:15 +0530 > copying

Re: [PATCH v6 1/5] ARM: add basic support for Trusted Foundations

2013-09-16 Thread Alexandre Courbot
On Tue, Sep 17, 2013 at 1:50 AM, Stephen Warren wrote: > On 09/15/2013 03:40 AM, Alexandre Courbot wrote: >> Trusted Foundations is a TrustZone-based secure monitor for ARM that >> can be invoked using the same SMC-based API on all supported >> platforms. This patch adds initial basic support for

Re: [BUG] On x86_32 system, handle block-device which size is larger than 16TB.

2013-09-16 Thread majianpeng
Hi all, This patch has a long long time.How about this patch? Thanks! Jianpeng Ma >Hi all, >Some time ago, I mentioned there are some problems on x86-32 system about > handling md-block-device which size is larger than 16TB. >And i send a patch.But there are no concern with it. >The

[PATCH V2 2/2] block_dev: Add size check before doing async write on block device.

2013-09-16 Thread majianpeng
For async-write on block device,when disk removed,the vfs don't know. It will continue do async-write.Add this check it will stop async-write when disk removed. Signed-off-by: Jianpeng Ma --- fs/block_dev.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/block_dev.c b/fs/block_dev.c

[PATCH][RESEND] c6x: remove unused parameter in Kconfig

2013-09-16 Thread Michael Opdenacker
This patch proposes to remove the TMS320C6X_CACHES_ON kernel configuration parameter defined in arch/c6x/Kconfig, but used nowhere in the makefiles and source code. Signed-off-by: Michael Opdenacker Acked by: Mark Salter --- arch/c6x/Kconfig | 4 1 file changed, 4 deletions(-) diff --git

[PATCH V2 1/2] block: Set inode of block_device size to zero when delete gendisk.

2013-09-16 Thread majianpeng
When remove gendisk, set the size of inode of block_device to zero. This is mainly let the vfs know disk removed. Signed-off-by: Jianpeng Ma --- block/genhd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index dadf42b..9a4c245 100644 ---

[PATCH V2 0/2] Auto stop async-write on block device when device removed.

2013-09-16 Thread majianpeng
For async-write on block device,if device removed,but the vfs don't know it. It will continue to do. Patch1 set size of inode of block device to zero when removed disk.By this,vfs know disk changed. Path2 add size-check on blk_aio_write.If pos of write larger than size of inode,it will return

[PATCH V2] Input: atmel_mxt_ts - update to devm_* API

2013-09-16 Thread Manish Badarkhe
Update the code to use devm_* API so that driver core will manage resources. Signed-off-by: Manish Badarkhe --- Changes since V1: As per Dmitry's comment, avoid "devm_" operation on irq as it may cause kernel crash while device is getting unbound and CCing Nick dryer. :100644 100644 59aa240...

RE: [f2fs-dev][PATCH RESEND] f2fs: avoid allocating failure in bio_alloc

2013-09-16 Thread Chao Yu
Hi Gu > -Original Message- > From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] > Sent: Monday, September 16, 2013 12:40 PM > To: Chao Yu > Cc: 'Kim Jaegeuk'; linux-f2fs-de...@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; '谭姝' > Subject: Re:

linux-next: Tree for Sep 17

2013-09-16 Thread Stephen Rothwell
Hi all, Changes since 20130916: *crickets* I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (patches at http://www.kernel.org/pub/linux/kernel/next

Re: [PATCH] m68k: remove unused Kconfig parameters

2013-09-16 Thread Michael Opdenacker
Hi Greg, On 09/17/2013 01:48 AM, Greg Ungerer wrote: > Hi Michael, > > On 06/09/13 21:59, Michael Opdenacker wrote: >> This patch proposes to remove the UC5282 and UC5272 kernel configuration >> parameters defined in arch/m68k/Kconfig.machine, >> but used nowhere in the makefiles and source code.

Kernel panic

2013-09-16 Thread zhang xintao
2.6.32-279.el6.x86_64 #1 SMP Thu Sep 12 12:59:17 CST 2013 x86_64 x86_64 x86_64 GNU/Linux == PID: 2621 TASK: 881fe10d2aa0 CPU: 14 COMMAND: "qemu-kvm" #0 [880028307b00] machine_kexec at 8103281b #1 [880028307b60] crash_kexec at 810ba322 #2

Re: increased vmap_area_lock contentions on "n_tty: Move buffers into n_tty_data"

2013-09-16 Thread Fengguang Wu
On Mon, Sep 16, 2013 at 10:42:11PM -0400, Peter Hurley wrote: > On 09/12/2013 11:38 PM, Fengguang Wu wrote: > >On Thu, Sep 12, 2013 at 08:17:00PM -0700, Greg KH wrote: > >>On Fri, Sep 13, 2013 at 08:51:33AM +0800, Fengguang Wu wrote: > >>>Hi Peter, > >>> > >>>FYI, we noticed much increased

Re: increased vmap_area_lock contentions on "n_tty: Move buffers into n_tty_data"

2013-09-16 Thread Peter Hurley
On 09/12/2013 11:38 PM, Fengguang Wu wrote: On Thu, Sep 12, 2013 at 08:17:00PM -0700, Greg KH wrote: On Fri, Sep 13, 2013 at 08:51:33AM +0800, Fengguang Wu wrote: Hi Peter, FYI, we noticed much increased vmap_area_lock contentions since this commit: What does that mean? What is happening,

Re: [RFC] vfs: avoid sb->s_umount lock while changing bind-mount flags

2013-09-16 Thread Al Viro
On Mon, Sep 16, 2013 at 10:42:30AM -0700, Aditya Kali wrote: > During remount of a bind mount (mount -o remount,bind,ro,... /mnt/mntpt), > we currently take down_write(>s_umount). This causes the remount > operation to get blocked behind writes occuring on device (possibly > mounted somewhere

Re: [PATCH] mtd: onenand: omap: remove two unused functions

2013-09-16 Thread Brian Norris
On Wed, Aug 07, 2013 at 08:16:49PM +0200, Paul Bolle wrote: > Nothing calls omap2_onenand_rephase(). And __adjust_timing() is only > called by omap2_onenand_rephase(). Remove these two unused functions. > > Signed-off-by: Paul Bolle > --- > Completely untested. Compile-tested successfully here.

Re: [PATCH] scsi: delete decade+ obsolete aic7xxx_old driver

2013-09-16 Thread Doug Ledford
Yes, this driver is well past ready to be removed. Acked-by: Doug Ledford Sent from my ASUS Pad Paul Gortmaker wrote: >After getting warnings in an allyesconfig build[1] from this >driver, I decided to remind myself just how old it was, and >whether it warranted fixing. In the Kconfig help

Re: [PATCH] mtd: nand: fix memory leak in ONFI extended parameter page

2013-09-16 Thread Huang Shijie
于 2013年09月17日 09:31, Brian Norris 写道: > This fixes a memory leak in the ONFI support code for detecting the > required ECC levels from this commit: > > commit 6dcbe0cdd83fb5f77be4f44c9e06c535281c375a > Author: Huang Shijie > Date: Wed May 22 10:28:27 2013 +0800 > > mtd: get the ECC

Re: [RFC 5/5] squashfs: support readpages

2013-09-16 Thread Minchan Kim
And I found regression from iozone random read test. This patch fixes it. >From 546a541c6e29b321e4908ebe0f8aac506eb5b3af Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Tue, 17 Sep 2013 10:20:56 +0900 Subject: [PATCH] squahsfs: read synchronously when readahead window is small Normally, MM

Re: [RFC 5/5] squashfs: support readpages

2013-09-16 Thread Minchan Kim
This patch had a bug so I send fixed below patchset. Thanks. >From ccbf1322b6322bc34bb3e6f75a27f4fecf84ed02 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Mon, 16 Sep 2013 14:28:49 +0900 Subject: [RFC 5/5] squashfs: support readpages This patch supports squashfs_readpages so it can do

[PATCH] scsi: delete decade+ obsolete aic7xxx_old driver

2013-09-16 Thread Paul Gortmaker
After getting warnings in an allyesconfig build[1] from this driver, I decided to remind myself just how old it was, and whether it warranted fixing. In the Kconfig help text, I found: "This driver will eventually be phased out entirely" Going back to the history archive, I see the line was

[PATCH 1/3] msi: add forgotten pci_dev_put(pdev) to populate_msi_sysfs()

2013-09-16 Thread Veaceslav Falico
Before trying to kobject_init_and_add(), we add a reference to pdev via pci_dev_get(pdev). However, if it fails to init and/or add the kobject, we don't return it back - even on out_unroll. Fix this by adding pci_dev_put(pdev) before going to unrolling section. CC: Bjorn Helgaas CC:

[PATCH 3/3] msi: free msi_desc entry only after we've released the kobject

2013-09-16 Thread Veaceslav Falico
Currently, we first do kobject_put(>kobj) and the kfree(entry), however kobject_put() doesn't guarantee us that it was the last reference and that the kobj isn't used currently by someone else, so after we kfree(entry) with the struct kobject - other users will begin using the freed memory,

[PATCH 2/3] msi: always unregister ->msi_kset within free_msi_irqs()

2013-09-16 Thread Veaceslav Falico
Currently we create and populate ->msi_kset while allocating irqs in populate_msi_sysfs(), however if it fails and/or we want to free the entries - we don't always remove it, and we might have problems if we've failed to allocate irqs and try it again. To fix that, move the unregister part to

[PATCH 0/3] msi: fix kobject/sysfs removal from msi_list

2013-09-16 Thread Veaceslav Falico
Currently, while removing msi_list's ->kobj, we just do kobject_put() on it and after that free the entry itself. However, kobject_put() doesn't guarantee that the kobject itself is freed - it can be used by someone else and thus, when we'll free the entry, we'll free the kobject too - leading to

Re: [PATCH 4/4] perf tools: Compare hists comm by addresses

2013-09-16 Thread Namhyung Kim
Hi Frederic, On Fri, 13 Sep 2013 15:59:49 +0200, Frederic Weisbecker wrote: > On Fri, Sep 13, 2013 at 05:07:06PM +0900, Namhyung Kim wrote: [SNIP] >> --- a/tools/perf/util/sort.c >> +++ b/tools/perf/util/sort.c >> @@ -1,5 +1,6 @@ >> #include "sort.h" >> #include "hist.h" >> +#include "comm.h"

Re: [PATCH] m68k: remove unused Kconfig parameters

2013-09-16 Thread Greg Ungerer
Hi Michael, On 06/09/13 21:59, Michael Opdenacker wrote: > This patch proposes to remove the UC5282 and UC5272 kernel configuration > parameters defined in arch/m68k/Kconfig.machine, > but used nowhere in the makefiles and source code. > > Signed-off-by: Michael Opdenacker This change is a

Re: "memory" binding issues

2013-09-16 Thread Benjamin Herrenschmidt
On Mon, 2013-09-16 at 16:48 -0700, Olof Johansson wrote: > On Mon, Sep 16, 2013 at 4:47 PM, Benjamin Herrenschmidt > wrote: > > On Mon, 2013-09-16 at 15:48 -0700, Olof Johansson wrote: > >> > A node that has a "reg" property should have the corresponding unit > >> > address. > >> > >> No,

[PATCH] mtd: nand: fix memory leak in ONFI extended parameter page

2013-09-16 Thread Brian Norris
This fixes a memory leak in the ONFI support code for detecting the required ECC levels from this commit: commit 6dcbe0cdd83fb5f77be4f44c9e06c535281c375a Author: Huang Shijie Date: Wed May 22 10:28:27 2013 +0800 mtd: get the ECC info from the Extended Parameter Page In the

[PATCH] Staging: lustre: remove assignment in if conditions

2013-09-16 Thread Jon Bernard
This is a patch to lvfs_linux.c that removes the use of variable assignment within an if condition found by checkpatch.pl. Signed-off-by: Jon Bernard --- drivers/staging/lustre/lustre/lvfs/lvfs_linux.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread Peter Hurley
On 09/16/2013 09:11 PM, Josef Bacik wrote: On Mon, Sep 16, 2013 at 06:08:42PM -0700, David Daney wrote: On 09/16/2013 05:37 PM, Peter Hurley wrote: On 09/16/2013 08:29 PM, David Daney wrote: On 09/16/2013 05:05 PM, Josef Bacik wrote: On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread David Daney
On 09/16/2013 05:37 PM, Peter Hurley wrote: On 09/16/2013 08:29 PM, David Daney wrote: On 09/16/2013 05:05 PM, Josef Bacik wrote: On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton wrote: On Fri, 30 Aug 2013 10:14:01 -0400 Josef Bacik wrote: Btrfs uses an rwsem to control access to

Re: [PATCH v2 1/9] i2c: prepare runtime PM support for I2C client devices

2013-09-16 Thread Rafael J. Wysocki
On Tuesday, September 17, 2013 12:31:11 AM Mark Brown wrote: > On Mon, Sep 16, 2013 at 09:07:07PM +0200, Rafael J. Wysocki wrote: > > > That may be left to the client driver altogether. I mean, if the client > > wants > > the controller to be powered up, it should just call > >

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread Josef Bacik
On Mon, Sep 16, 2013 at 06:08:42PM -0700, David Daney wrote: > On 09/16/2013 05:37 PM, Peter Hurley wrote: > >On 09/16/2013 08:29 PM, David Daney wrote: > >>On 09/16/2013 05:05 PM, Josef Bacik wrote: > >>>On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton wrote: > On Fri, 30 Aug 2013

[RESEND PATCH] mm/mempolicy: use NUMA_NO_NODE

2013-09-16 Thread Jianguo Wu
Use more appropriate NUMA_NO_NODE instead of -1 Signed-off-by: Jianguo Wu Acked-by: KOSAKI Motohiro --- mm/mempolicy.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 4baf12e..4f0cd20 100644 --- a/mm/mempolicy.c +++

[PATCH] regulator: fix fatal kernel-doc error

2013-09-16 Thread Randy Dunlap
From: Randy Dunlap Fix fatal kernel-doc error in : Error(include/linux/regulator/driver.h:52): cannot understand prototype: 'struct regulator_linear_range ' Signed-off-by: Randy Dunlap Cc: Liam Girdwood Cc: Mark Brown --- include/linux/regulator/driver.h |2 ++ 1 file changed,

Re: [PATCH] mm/mempolicy: use NUMA_NO_NODE

2013-09-16 Thread Jianguo Wu
On 2013/9/17 4:26, Cody P Schafer wrote: > >> @@ -1802,11 +1802,11 @@ static inline unsigned interleave_nid(struct >> mempolicy *pol, >> >> /* >>* Return the bit number of a random bit set in the nodemask. >> - * (returns -1 if nodemask is empty) >> + * (returns NUMA_NO_NOD if nodemask is

Re: [PATCH] mm/mempolicy: use NUMA_NO_NODE

2013-09-16 Thread Jianguo Wu
On 2013/9/17 0:19, KOSAKI Motohiro wrote: > (9/16/13 8:53 AM), Jianguo Wu wrote: >> Use more appropriate NUMA_NO_NODE instead of -1 >> >> Signed-off-by: Jianguo Wu >> --- >> mm/mempolicy.c | 10 +- >> 1 files changed, 5 insertions(+), 5 deletions(-) > > I think this patch don't

Re: [v3.11][Regression] HID: hyperv: convert alloc+memcpy to memdup

2013-09-16 Thread Joseph Salisbury
On 09/16/2013 05:05 PM, Dan Carpenter wrote: > On Mon, Sep 16, 2013 at 04:49:29PM -0400, Joseph Salisbury wrote: >> On 09/16/2013 04:38 PM, Dan Carpenter wrote: >>> On Mon, Sep 16, 2013 at 01:42:35PM -0400, Joseph Salisbury wrote: Reverting the patch changes the driver back to useing

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread Peter Hurley
On 09/16/2013 08:29 PM, David Daney wrote: On 09/16/2013 05:05 PM, Josef Bacik wrote: On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton wrote: On Fri, 30 Aug 2013 10:14:01 -0400 Josef Bacik wrote: Btrfs uses an rwsem to control access to its extent tree. Threads will hold a read lock

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread David Daney
On 09/16/2013 05:05 PM, Josef Bacik wrote: On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton wrote: On Fri, 30 Aug 2013 10:14:01 -0400 Josef Bacik wrote: Btrfs uses an rwsem to control access to its extent tree. Threads will hold a read lock on this rwsem while they scan the extent

Re: [PATCH 1/2] [RFC v2] seqcount: Add lockdep functionality to seqcount/seqlock structures

2013-09-16 Thread John Stultz
On 09/13/2013 05:19 PM, John Stultz wrote: > Currently seqlocks and seqcounts don't support lockdep. > > After running across a seqcount related deadlock in the timekeeping > code, I used a less-refined and more focused varient of this patch > to narrow down the cause of the issue. > > This is a

Re: [PATCH] gpu: host1x: use %pa to print dma_addr_t

2013-09-16 Thread Randy Dunlap
On 09/16/13 17:06, Olof Johansson wrote: > On Mon, Sep 16, 2013 at 8:54 AM, Joe Perches wrote: >> On Mon, 2013-09-16 at 08:46 -0700, Olof Johansson wrote: >>> On Mon, Sep 16, 2013 at 8:17 AM, Thierry Reding >>> wrote: On Wed, Sep 11, 2013 at 09:41:49PM -0700, Olof Johansson wrote: >

Re: [PATCH] gpu: host1x: use %pa to print dma_addr_t

2013-09-16 Thread Olof Johansson
On Mon, Sep 16, 2013 at 8:54 AM, Joe Perches wrote: > On Mon, 2013-09-16 at 08:46 -0700, Olof Johansson wrote: >> On Mon, Sep 16, 2013 at 8:17 AM, Thierry Reding >> wrote: >> > On Wed, Sep 11, 2013 at 09:41:49PM -0700, Olof Johansson wrote: >> >> This removes two warnings where dma_addr_t

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-16 Thread Josef Bacik
On Mon, Sep 16, 2013 at 04:05:47PM -0700, Andrew Morton wrote: > On Fri, 30 Aug 2013 10:14:01 -0400 Josef Bacik wrote: > > > Btrfs uses an rwsem to control access to its extent tree. Threads will > > hold a > > read lock on this rwsem while they scan the extent tree, and if > > need_resched()

Re: [patch 0/7] improve memcg oom killer robustness v2

2013-09-16 Thread Johannes Weiner
On Mon, Sep 16, 2013 at 10:52:46PM +0200, azurIt wrote: > > CC: "Johannes Weiner" , "Andrew Morton" > > , "David Rientjes" , > > "KAMEZAWA Hiroyuki" , "KOSAKI Motohiro" > > , linux...@kvack.org, > > cgro...@vger.kernel.org, x...@kernel.org, linux-a...@vger.kernel.org, > >

Re: [PATCH] regulator: palmas: Remove wrong comment for the equation calculating num_voltages

2013-09-16 Thread Mark Brown
On Thu, Sep 12, 2013 at 09:38:12AM +0800, Axel Lin wrote: > Current equation on the comment is wrong. > For linear mapping starting from 0, the equation is (maxV-minV)/stepV + 1. > Since the linear mapping for PALMAS is not all starting from 0, the equation > on the comment is not useful and

Re: [PATCH] dvb: fix potential format string leak

2013-09-16 Thread Joe Perches
On Mon, 2013-09-16 at 16:37 -0700, Kees Cook wrote: > Make sure that a format string cannot accidentally leak into the printk > buffer. [] > diff --git a/drivers/media/dvb-frontends/dib9000.c > b/drivers/media/dvb-frontends/dib9000.c [] > @@ -649,7 +649,7 @@ static int

Re: [PATCH] ASoC: blackfin: Add missing break statement to bf6xx

2013-09-16 Thread Mark Brown
On Sat, Sep 14, 2013 at 02:20:37AM +0300, Valentin Ilie wrote: > SNDRV_PCM_FORMAT_S8 isn't supposed to fall through to SNDRV_PCM_FORMAT_S16_LE > > Signed-off-by: Valentin Ilie Applied, thanks. signature.asc Description: Digital signature

Re: "memory" binding issues

2013-09-16 Thread Olof Johansson
On Mon, Sep 16, 2013 at 4:47 PM, Benjamin Herrenschmidt wrote: > On Mon, 2013-09-16 at 15:48 -0700, Olof Johansson wrote: >> > A node that has a "reg" property should have the corresponding unit >> > address. >> >> No, absolutely _NOT_ a requirement. Unit address is only required if >> needed to

Re: "memory" binding issues

2013-09-16 Thread Benjamin Herrenschmidt
On Mon, 2013-09-16 at 15:48 -0700, Olof Johansson wrote: > > A node that has a "reg" property should have the corresponding unit > > address. > > No, absolutely _NOT_ a requirement. Unit address is only required if > needed to disambiguate two properties with the same name. > > If there are no

Re: [PATCH 2/4 v2] regulator: add STw481x VMMC driver

2013-09-16 Thread Mark Brown
On Fri, Sep 13, 2013 at 09:01:15PM +0200, Linus Walleij wrote: > The ST Microelectronics STw481x PMIC used for the Nomadik > has one single software-controlled regulator for VMMC. > This driver registers directly to the compatible string > as there is just one regulator. Applied, thanks.

RE: [RESEND PATCH v2 1/4] mm/hwpoison: fix traverse hugetlbfs page to avoid printk flood

2013-09-16 Thread Luck, Tony
>>Sorry, I have no meaningful progress on this. Splitting hugepages is not >>a trivial operation, and introduce more complexity on hugetlbfs code. >>I don't hit on any usecase of it rather than memory failure, so I'm not >>sure that it's worth doing now. > > Agreed. ;-) Agreed that huge pages

[PATCH] dvb: fix potential format string leak

2013-09-16 Thread Kees Cook
Make sure that a format string cannot accidentally leak into the printk buffer. Signed-off-by: Kees Cook --- drivers/media/dvb-frontends/dib9000.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/dib9000.c

RE: [PATCH 2/2] gpio / ACPI: add support for GPIO operation regions

2013-09-16 Thread Zheng, Lv
> From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: Monday, September 16, 2013 4:11 PM > > On Mon, Sep 16, 2013 at 01:21:53AM +, Zheng, Lv wrote: > > > A pseudo device may be created to access the GPIO operation region fields > > > provided by one GPIO device. > > > The

  1   2   3   4   5   6   7   8   9   10   >