Re: [netlink] WARNING: at mm/vmalloc.c:1487 __vunmap()

2013-06-14 Thread Cong Wang
On Sat, Jun 15, 2013 at 6:01 AM, Fengguang Wu wrote: > Greetings, > > I got the below dmesg and the first bad commit is > > commit c05cdb1b864f548c0c3d8ae3b51264e6739a69b1 > Author: Pablo Neira Ayuso > Date: Mon Jun 3 09:46:28 2013 + > > netlink: allow large data transfers from

Re: [PATCH 0/6] ipc/sem.c: performance improvements, FIFO

2013-06-14 Thread Mike Galbraith
On Sat, 2013-06-15 at 07:27 +0200, Manfred Spraul wrote: > Assume there is one op (semctl(), whatever) that acquires the global > lock - and a continuous stream of simple ops. > - spin_is_locked() returns true due to the semctl(). > - then simple ops will switch to spin_lock(>sem_perm.lock). > -

Re: [PATCH 11/11] cgroup: use percpu refcnt for cgroup_subsys_states

2013-06-14 Thread Tejun Heo
On Fri, Jun 14, 2013 at 10:35:22PM -0700, Tejun Heo wrote: > On Fri, Jun 14, 2013 at 03:31:25PM -0700, Tejun Heo wrote: > > I'll play with it a bit more on an actual machine and post more > > results. Test program attached. > > So, here are the results from the same test on a dual-socket 2-way >

Re: [PATCH 11/11] cgroup: use percpu refcnt for cgroup_subsys_states

2013-06-14 Thread Tejun Heo
On Fri, Jun 14, 2013 at 03:31:25PM -0700, Tejun Heo wrote: > I'll play with it a bit more on an actual machine and post more > results. Test program attached. So, here are the results from the same test on a dual-socket 2-way NUMA opteron 8 core machine. Running on one CPU. copy size

Re: [PATCH 0/6] ipc/sem.c: performance improvements, FIFO

2013-06-14 Thread Manfred Spraul
On 06/14/2013 09:05 PM, Mike Galbraith wrote: 32 of 64 cores DL980 without the -rt killing goto again loop removal I showed you. Unstable, not wonderful throughput. Unfortunately the -rt approach is defintively unstable: @@ -285,9 +274,29 @@ static inline int sem_lock(struct sem_ar

Re: [PATCH] ncpfs: fix rmdir returns Device or resource busy

2013-06-14 Thread Al Viro
On Sat, Jun 15, 2013 at 06:09:39AM +0100, Al Viro wrote: > BTW, in ncp_fill_cache() we have a provably pointless > if (!ino) > ino = find_inode_number(dentry, ); > Check it out - any path that can lead there with ino == 0 will *not* > have a positive dentry

Gumstix Overo Linux 3.10-rc5 overo-defconfig etc.

2013-06-14 Thread kernel-dev
I have been using linux on Gumstix since around 2007. I recently posted a request to help me bring an OEM driver from 2.6.29 to 2.6.34, since that is the kernel of the system I am developing user-space code on. I have gotten 3.x kernels working on Gumstix in the past, but at some point forgot

Re: [PATCH] ncpfs: fix rmdir returns Device or resource busy

2013-06-14 Thread Al Viro
On Thu, Jun 13, 2013 at 11:19:26PM -0500, Dave Chiluk wrote: > I'm afraid you are way beyond my current vfs experience level on this > one. While you're getting rid of things you might consider > dentry_unhash as well, as only hpfs_unlink, ncp_rmdir, and ncp_rename > call that. The trouble is,

Re: [PATCH 1/2] ocfs2: Fix llseek() semantics and do some cleanup

2013-06-14 Thread Jeff Liu
[Add ocfs2-devel to CC-list] Hello Richard, Thanks for your patch. On 06/15/2013 03:23 AM, Richard Yao wrote: > There are multiple issues with the custom llseek implemented in ocfs2 for > implementing SEEK_HOLE/SEEK_DATA. > > 1. It takes the inode->i_mutex lock before calling

[PATCH V2] dma: mmp_tdma: disable irq when disabling dma channel

2013-06-14 Thread Qiao Zhou
mask dma irq when disabling dma channel, so that interrupt status will not be set and interrupt won't come again. Signed-off-by: Qiao Zhou --- drivers/dma/mmp_tdma.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index

[PATCH V2] dma: mmp_tdma: disable irq when disabling dma channel

2013-06-14 Thread Qiao Zhou
V2 -> V1: 1, mask dma interrupt when disable DMA channel. 2, remove patch v1. if the dma channel is disabled without interrupt masked, the interrupt status may still be set. next time when dma channel is enabled again, the old interrupt status may trigger the interrupt wrongly. we need to mask

Re: [PATCH] tty/vt: Return EBUSY if deallocating VT1 and it is busy

2013-06-14 Thread Greg KH
On Fri, Jun 14, 2013 at 07:01:56PM -0400, Peter Hurley wrote: > On 06/14/2013 06:24 PM, Ross Lagerwall wrote: > >Commit 421b40a6286e ("tty/vt: Fix vc_deallocate() lock order") changed > >the behavior when deallocating VT 1. Previously if trying to > >deallocate VT1 and it is busy, we would return

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-06-14 Thread Matthew Garrett
On Sat, Jun 15, 2013 at 12:14:42PM +0800, Aaron Lu wrote: > On 06/15/2013 09:38 AM, Matthew Garrett wrote: > > Well, Windows 8 will only use the ACPI backlight interface if the GPU > > driver decides to, right? So the logic for deciding whether to remove > > the ACPI backlight control or not

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-06-14 Thread Aaron Lu
On 06/15/2013 09:38 AM, Matthew Garrett wrote: > On Sat, 2013-06-15 at 09:26 +0800, Aaron Lu wrote: >> It's not easy to decide if they work or not sometimes, e.g. I came >> across a system that claims win8 in ACPI table and has an Intel GPU, >> while its ACPI video interface also works. With this

Re: [PATCH RFC ticketlock] Auto-queued ticketlock

2013-06-14 Thread Waiman Long
On 06/14/2013 09:26 PM, Benjamin Herrenschmidt wrote: On Fri, 2013-06-14 at 14:17 -0400, Waiman Long wrote: With some minor changes, the current patch can be modified to support debugging lock for 32-bit system. For 64-bit system, we can apply a similar concept for debugging lock with

[git pull] vfs.git

2013-06-14 Thread Al Viro
Several fixes + obvious cleanup (you've missed a couple of open-coded can_lookup() back then). Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus Shortlog: Al Viro (2): use can_lookup() instead of direct checks of ->i_op->lookup

[git pull] Please pull powerpc.git merge branch

2013-06-14 Thread Benjamin Herrenschmidt
Hi Linus ! Hopefully this one smells better ... So here are 3 fixes still for 3.10. Fixes are simple, bugs are nasty (though not recent regressions, nasty enough) and all targeted at stable. Please apply. Thanks ! Cheers, Ben. The following changes since commit

Re: XFS (vdb): Corruption detected. Unmount and run xfs_repair

2013-06-14 Thread Dave Chinner
[cc x...@oss.sgi.com, where XFS bug reports should go] On Sat, Jun 15, 2013 at 10:36:20AM +0800, Fengguang Wu wrote: > Greetings, > > I got the below dmesg in both upstream and linux-next, and the first > bad commit *might be* commit 211d022c43ca ("xfs: Avoid pathological > backwards

[PATCH] libata: remove dead code from libata-acpi.c

2013-06-14 Thread Liu Jiang
From: Liu Jiang Commit 30dcf76acc69 "libata: migrate ACPI code over to new bindings" removed ACPI dock notification related code, but there's some dead code left, so clean up it. Cc: Tejun Heo Cc: Matthew Garrett Cc: Aaron Lu Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 10:31:12PM -0400, Steven Rostedt wrote: > On Sat, 2013-06-15 at 12:21 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > > > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > > > On Fri, 2013-06-14 at 17:06

[PATCH] PCI: only WARN_ON() when pci_ioremap_bar() is called for io port BAR

2013-06-14 Thread Jiang Liu
Ideally caller should check availability of IO BAR resource before calling pci_ioremap_bar(), but no caller doing that yet:( The WARN_ON() in function pci_ioremap_bar() is used to warn the caller if it's called for an IO port BAR, so disable it if OS fails to allocate resources for the BAR,

Re: [GIT PULL] at91: soc updates for 3.11 #1

2013-06-14 Thread Olof Johansson
Hi, On Fri, Jun 14, 2013 at 11:42:18PM +0200, Nicolas Ferre wrote: > Arnd, Olof, > > A little AT91 pull-request for patches that are more targeted to SoC/boards > modifications. It is prepared on top of the arm-soc/at91/cleanup branch. > > Thanks, best regards, > > The following changes since

[PATCH v10 6/8] spi: omap2-mcspi: add generic DMA request support to the DT binding

2013-06-14 Thread Joel A Fernandes
From: Matt Porter The binding definition is based on the generic DMA request binding Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- Documentation/devicetree/bindings/spi/omap-spi.txt | 27 +++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git

[PATCH v10 1/8] ARM: edma: Add AM33XX support to the private EDMA API

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Adds support for parsing the TI EDMA DT data into the required EDMA private API platform data. Enables runtime PM support to initialize the EDMA hwmod. Enables build on OMAP. Changes by Joel: * Setup default one-to-one mapping for queue_priority and queue_tc mapping as

[PATCH v10 7/8] spi: omap2-mcspi: convert to dma_request_slave_channel_compat()

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Convert dmaengine channel requests to use dma_request_slave_channel_compat(). This supports the DT case of platforms requiring channel selection from either the OMAP DMA or the EDMA engine. AM33xx only boots from DT and is the only user implementing EDMA so in the !DT case we

[PATCH v10 2/8] ARM: edma: Add AM33XX EDMA crossbar event mux support

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Changes by Joel: * Split EDMA xbar support out of original EDMA DT parsing patch to keep it easier for review. * rewrite shift and offset calculation as per Suggested-by: Sekhar Nori Suggested by: Andy Shevchenko Signed-off-by: Joel A Fernandes Reference: [1]

[PATCH v10 8/8] ARM: dts: add AM33XX SPI DMA support

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Adds DMA resources to the AM33XX SPI nodes. Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- arch/arm/boot/dts/am33xx.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index

[PATCH v10 4/8] dmaengine: edma: enable build for AM33XX

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Enable TI EDMA option on OMAP. Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- drivers/dma/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index e992489..3215a3c 100644 ---

[PATCH v10 3/8] ARM: dts: add AM33XX EDMA support

2013-06-14 Thread Joel A Fernandes
From: Matt Porter Adds AM33XX EDMA support to the am33xx.dtsi as documented in Documentation/devicetree/bindings/dma/ti-edma.txt Joel: Drop DT entries that are non-hardware-description for now as discussed in [1] [1] https://patchwork.kernel.org/patch/2226761/ Signed-off-by: Matt Porter

[PATCH v10 5/8] dmaengine: edma: Add TI EDMA device tree binding

2013-06-14 Thread Joel A Fernandes
From: Matt Porter The binding definition is based on the generic DMA controller binding. Joel: Droped reserved and queue DT entries from Documentation for now from the original patch series. Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes ---

[PATCH] ARM: ux500: minor code cleanup

2013-06-14 Thread Olof Johansson
Clean up coding style a bit in cpu-db8500. Signed-off-by: Olof Johansson --- Linus, Noticed the last chunk of this patch when I resolved one of the recent conflicts, so I did a once-over of the file. Feel free to drop the first chunk when applying if you'd prefer to do a sweeping DEFINE_RES()

Re: BUG: unable to handle kernel NULL pointer dereference at 0000000000000040

2013-06-14 Thread Ming Lei
On Sat, Jun 15, 2013 at 1:07 AM, nirinA raseliarison wrote: > patch applied and no longer have the bug message when i > reboot and wake up the ethernet controller. I am wondering if Guenter's patch can fix the race really, but I'd like to see Guenter's explanation on his patch. The race should

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Steven Rostedt
On Sat, 2013-06-15 at 12:21 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > > > I was pretty much able to

[PATCH v10 0/8] DMA Engine support for AM33XX

2013-06-14 Thread Joel A Fernandes
This series is a repost of Matt Porter's EDMA patches for AM33XX EDMA support with changes for few pending review comments on v9 series. Currently this is required for AM33XX (Beaglebone or EVM) to access MMC and be able mount to rootfs and boot till command prompt over MMC. Unless there are

Re: [PATCH v3 0/6] KVM: MMU: fast invalidate all mmio sptes

2013-06-14 Thread Takuya Yoshikawa
On Thu, 13 Jun 2013 21:08:21 -0300 Marcelo Tosatti wrote: > On Fri, Jun 07, 2013 at 04:51:22PM +0800, Xiao Guangrong wrote: > - Where is the generation number increased? Looks like when a new slot is installed in update_memslots() because it's based on slots->generation. This is not

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Benjamin Herrenschmidt
On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > > > thing is, when I type on the

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Steven Rostedt
On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > > thing is, when I type on the console, it makes progress. Anyway, it > > seems that powerpc has

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-14 Thread Andy Shevchenko
On Sat, Jun 15, 2013 at 2:16 AM, Oliver Schinagl wrote: > From: Oliver Schinagl > > Allwinner has electric fuses (efuse) on their line of chips. This driver > reads those fuses, seeds the kernel entropy and exports them as a sysfs node. > > These fuses are most likly to be programmed at the

Re: [GIT PULL v3] at91: USBA DT support / drivers update for 3.11 #1

2013-06-14 Thread Olof Johansson
On Sat, Jun 15, 2013 at 12:02:44AM +0200, Nicolas Ferre wrote: > Arnd, Olof, > > This is a rework of the previous pull-request done by Jean-Christophe > PLAGNIOL-VILLARD ([GIT PULL] at91: USBA DT support for 3.11). > It is also the division of my previous pull request (v2) to extract only >

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Benjamin Herrenschmidt
On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > thing is, when I type on the console, it makes progress. Anyway, it > seems that powerpc has an issue with irq_work(). I'll try to get some > time either tonight or

Re: [GIT PULL] at91: Device Tree update for 3.11 #2

2013-06-14 Thread Olof Johansson
On Sat, Jun 15, 2013 at 12:47:47AM +0200, Nicolas Ferre wrote: > Arnd, Olof, > > Additional pull-request for AT91 DT patches. > It contains the remaining part of the USB gadget pull-request that I sent you > last week. After having split it, here is the DT part. > It also contains the update of

Re: [BUGFIX v2 2/4] ACPI, DOCK: resolve possible deadlock scenarios

2013-06-14 Thread Jiang Liu
On Sat 15 Jun 2013 06:21:02 AM CST, Rafael J. Wysocki wrote: > On Saturday, June 15, 2013 03:27:59 AM Jiang Liu wrote: >> This is a preparation for next patch to avoid breaking bisecting. >> If next patch is applied without this one, it will cause deadlock >> as below: >> >> Case 1: >> [

support for Intel Atom based QNAP LEDs/buttons/buzzer in Linux?

2013-06-14 Thread Christoph Anton Mitterer
Hi. I wondered whether anyone knows, whether the kernel supports the LEDs/buttons/buzzer of Intel Atom based QNAP NAS like the TS-569 Pro? I got the two line LCD, which is a A125, working,...it can easily be controlled via the serial device... but not the others. Seems these are GPIO

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-06-14 Thread Matthew Garrett
On Sat, 2013-06-15 at 09:26 +0800, Aaron Lu wrote: > On 06/15/2013 01:29 AM, Matthew Garrett wrote: > > How would that work with existing userspace? > > User space tool will need to be updated to use this as stated in the > gist page, I've patches for gsd-backlight-helper and xorg-x11-drv-intel,

Re: [GIT PULL 3/3] msm clock for 3.11

2013-06-14 Thread Olof Johansson
On Fri, Jun 14, 2013 at 12:52:55PM -0700, David Brown wrote: > The following changes since commit f722406faae2d073cc1d01063d1123c35425939e: > > Linux 3.10-rc1 (2013-05-11 17:14:08 -0700) > > are available in the git repository at: > >

Re: [PATCH RFC ticketlock] Auto-queued ticketlock

2013-06-14 Thread Benjamin Herrenschmidt
On Fri, 2013-06-14 at 14:17 -0400, Waiman Long wrote: > > With some minor changes, the current patch can be modified to support > debugging lock for 32-bit system. For 64-bit system, we can apply a > similar concept for debugging lock with cmpxchg_double. However, for > architecture that does

Re: [GIT PULL 2/3] msm fixes for 3.11

2013-06-14 Thread Olof Johansson
On Fri, Jun 14, 2013 at 10:56:55AM -0700, David Brown wrote: > The following changes since commit f722406faae2d073cc1d01063d1123c35425939e: > > Linux 3.10-rc1 (2013-05-11 17:14:08 -0700) > > are available in the git repository at: > >

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-06-14 Thread Aaron Lu
On 06/15/2013 01:29 AM, Matthew Garrett wrote: > On Fri, 2013-06-14 at 14:47 +0800, Aaron Lu wrote: > >> What about a priority based solution? We can introduce a new field named >> priority to backlight_device and instead of calling another module's >> function like the unregister one here(which

Re: [GIT PULL 1/3] msm cleanups for 3.11

2013-06-14 Thread Olof Johansson
On Fri, Jun 14, 2013 at 10:56:53AM -0700, David Brown wrote: > The following changes since commit f722406faae2d073cc1d01063d1123c35425939e: > > Linux 3.10-rc1 (2013-05-11 17:14:08 -0700) > > are available in the git repository at: > >

[PATCH v2] module: don't modify argument of module_kallsyms_lookup_name()

2013-06-14 Thread Mathias Krause
If we pass a pointer to a const string in the form "module:symbol" module_kallsyms_lookup_name() will try to split the string at the colon, i.e., will try to modify r/o data. That will, in fact, fail on a kernel with enabled CONFIG_DEBUG_RODATA. Avoid modifying the passed string in

[PATCH] scripts/setlocalversion on write-protected source tree

2013-06-14 Thread Christian Kujau
Since no one objected[0] and Nico kinda approved of my suggestion to remove "git update-index", I propose the 2nd version of this patch for 3.11 (Linux, that is) [0] https://lkml.org/lkml/2013/6/9/185 --- Signed-off-by: Christian Kujau Cc: Nico Schottelius I just stumbled across

[PATCH v5 03/22] x86, ACPI, mm: Kill max_low_pfn_mapped

2013-06-14 Thread Yinghai Lu
Now we have arch_pfn_mapped array, and max_low_pfn_mapped should not be used anymore. User should use arch_pfn_mapped or just 1UL<<(32-PAGE_SHIFT) instead. Only user is ACPI_INITRD_TABLE_OVERRIDE, and it should not use that, as later accessing is using early_ioremap(). We could change to use

[PATCH v5 07/22] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-06-14 Thread Yinghai Lu
In 32bit we will find table with phys address during 32bit flat mode in head_32.S, because at that time we don't need set page table to access initrd. For copying we could use early_ioremap() with phys directly before mem mapping is set. To keep 32bit and 64bit consistent, use phys_addr for all.

[PATCH v5 05/22] x86, ACPI: Increase override tables number limit

2013-06-14 Thread Yinghai Lu
Current acpi tables in initrd is limited to 10, that is too small. 64 should be good enough as we have 35 sigs and could have several SSDT. Two problems in current code prevent us from increasing limit: 1. that cpio file info array is put in stack, as every element is 32 bytes, could run out

[PATCH v5 15/22] x86, mm, numa: Move node_possible_map setting later

2013-06-14 Thread Yinghai Lu
Move node_possible_map handling out of numa_check_memblks to avoid side changing in numa_check_memblks(). Only set once for successful path instead of resetting in numa_init() every time. Suggested-by: Tejun Heo Signed-off-by: Yinghai Lu Reviewed-by: Tang Chen Tested-by: Tang Chen ---

[PATCH v5 14/22] x86, mm, numa: Set memblock nid later

2013-06-14 Thread Yinghai Lu
For the separation, we need to set memblock nid later, as it could change memblock array, and possible doube memblock.memory array that will need to allocate buffer. Only set memblock nid one time for successful path. Also rename numa_register_memblks to numa_check_memblks() after move out code

[PATCH v5 02/22] x86, microcode: Use common get_ramdisk_image()

2013-06-14 Thread Yinghai Lu
Use common get_ramdisk_image() to get ramdisk start phys address. We need this to get correct ramdisk adress for 64bit bzImage that initrd can be loaded above 4G by kexec-tools. -v2: fix one typo that is found by Tang Chen Signed-off-by: Yinghai Lu Cc: Fenghua Yu Acked-by: Tejun Heo

[PATCH v5 01/22] x86: Change get_ramdisk_image() to global

2013-06-14 Thread Yinghai Lu
Need to use get_ramdisk_image() with early microcode_updating in other file. Change it to global. Also make it to take boot_params pointer, as head_32.S need to access it via phys address during 32bit flat mode. Signed-off-by: Yinghai Lu Acked-by: Tejun Heo Tested-by: Thomas Renninger

[PATCH v5 19/22] x86, mm: Parse numa info early

2013-06-14 Thread Yinghai Lu
Parsing numa info has been separated to two functions now. early_initmem_info() only parse info in numa_meminfo and nodes_parsed. still keep numaq, acpi_numa, amd_numa, dummy fall back sequence working. SLIT and numa emulation handling are still left in initmem_init(). Call early_initmem_init

[PATCH v5 16/22] x86, mm, numa: Move emulation handling down.

2013-06-14 Thread Yinghai Lu
It needs to allocate buffer for new numa_meminfo and distance matrix, so move it down. Also we change the behavoir: before this patch, if user input wrong data in command line, it will fall back to next numa probing or disabling numa. after this patch, if user input wrong data in command line, it

[PATCH v5 11/22] x86, mm, numa: Call numa_meminfo_cover_memory() checking early

2013-06-14 Thread Yinghai Lu
For the separation, we need to set memblock nid later, as it could change memblock array, and possible doube memblock.memory array that will need to allocate buffer. We do not need to use nid in memblock to find out absent pages. So we can move that numa_meminfo_cover_memory() early. Also could

[PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-14 Thread Yinghai Lu
Prepare to put page table on local nodes. Move calling of init_mem_mapping to early_initmem_init. Rework alloc_low_pages to alloc page table in following order: BRK, local node, low range Still load_cr3 one time. Signed-off-by: Yinghai Lu Cc: Pekka Enberg Cc: Jacob Shin Cc: Konrad

[PATCH v5 09/22] x86, ACPI: Find acpi tables in initrd early from head_32.S/head64.c

2013-06-14 Thread Yinghai Lu
head64.c could use #PF handler set page table to access initrd before init mem mapping and initrd relocating. head_32.S could use 32bit flat mode to access initrd before init mem mapping initrd relocating. That make 32bit and 64 bit more consistent. -v2: use inline function in header file

[PATCH v5 06/22] x86, ACPI: Split acpi_initrd_override to find/copy two functions

2013-06-14 Thread Yinghai Lu
To parse srat early, we need to move acpi table probing early. acpi_initrd_table_override is before acpi table probing. So we need to move it early too. Current code acpi_initrd_table_override is after init_mem_mapping and relocate_initrd(), so it can scan initrd and copy acpi tables with kernel

[PATCH v5 04/22] x86, ACPI: Search buffer above 4G in second try for acpi override tables

2013-06-14 Thread Yinghai Lu
Now we only search buffer for override acpi table under 4G. In some case, like user use memmap to exclude all low ram, we may not find range for it under 4G. Do second try to search above 4G. Signed-off-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: linux-a...@vger.kernel.org Tested-by: Thomas

[PATCH v5 20/22] x86, mm: Add comments for step_size shift

2013-06-14 Thread Yinghai Lu
As request by hpa, add comments for why we choose 5 for step size shift. Signed-off-by: Yinghai Lu Reviewed-by: Tang Chen Tested-by: Tang Chen --- arch/x86/mm/init.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/init.c

[PATCH v5 08/22] x86, ACPI: Make acpi_initrd_override_find work with 32bit flat mode

2013-06-14 Thread Yinghai Lu
For finding with 32bit, it would be easy to access initrd in 32bit flat mode, as we don't need to set page table. That is from head_32.S, and microcode updating already use this trick. Need to change acpi_initrd_override_find to use phys to access global variables. Pass is_phys in the function,

[PATCH v5 00/22] x86, ACPI, numa: Parse numa info early

2013-06-14 Thread Yinghai Lu
One commit that tried to parse SRAT early get reverted before v3.9-rc1. | commit e8d1955258091e4c92d5a975ebd7fd8a98f5d30f | Author: Tang Chen | Date: Fri Feb 22 16:33:44 2013 -0800 | |acpi, memory-hotplug: parse SRAT before memblock is ready It broke several things, like acpi override and

[PATCH v5 22/22] x86, mm, numa: Put pagetable on local node ram for 64bit

2013-06-14 Thread Yinghai Lu
If node with ram is hotplugable, local node mem for page table and vmemmap should be on that node ram. This patch is some kind of refreshment of | commit 1411e0ec3123ae4c4ead6bfc9fe3ee5a3ae5c327 | Date: Mon Dec 27 16:48:17 2010 -0800 | |x86-64, numa: Put pgtable to local node memory That

[PATCH v5 18/22] x86, mm, numa: Add early_initmem_init() stub

2013-06-14 Thread Yinghai Lu
early_initmem_init() call early_x86_numa_init() to parse numa info early. Later will call init_mem_mapping for nodes in it. Signed-off-by: Yinghai Lu Cc: Pekka Enberg Cc: Jacob Shin Reviewed-by: Tang Chen Tested-by: Tang Chen --- arch/x86/include/asm/page_types.h | 1 +

[PATCH v5 17/22] x86, ACPI, numa, ia64: split SLIT handling out

2013-06-14 Thread Yinghai Lu
We need to handle slit later, as it need to allocate buffer for distance matrix. Also we do not need SLIT info before init_mem_mapping. So move SLIT parsing later. x86_acpi_numa_init become x86_acpi_numa_init_srat/x86_acpi_numa_init_slit. It should not break ia64 by replacing acpi_numa_init

[PATCH v5 12/22] x86, mm, numa: Move node_map_pfn alignment() to x86

2013-06-14 Thread Yinghai Lu
Move node_map_pfn_alignment() to arch/x86/mm as no other user for it. Will update it to use numa_meminfo instead of memblock. Signed-off-by: Yinghai Lu Reviewed-by: Tang Chen Tested-by: Tang Chen --- arch/x86/mm/numa.c | 50 ++

[PATCH v5 13/22] x86, mm, numa: Use numa_meminfo to check node_map_pfn alignment

2013-06-14 Thread Yinghai Lu
We could use numa_meminfo directly instead of memblock nid. So we could move down set memblock nid and only do it one time for successful path. -v2: according to tj, separate moving to another patch. Signed-off-by: Yinghai Lu Reviewed-by: Tang Chen Tested-by: Tang Chen ---

Re: [PATCH] of: irq: Pass trigger type in IRQ resource flags

2013-06-14 Thread Javier Martinez Canillas
On 15/06/2013, at 00:00, Grant Likely wrote: > On Wed, 05 Jun 2013 20:20:39 +0200, Tomasz Figa wrote: >> Hi, >> >> On Sunday 19 of May 2013 00:56:30 Tomasz Figa wrote: >>> Some drivers might rely on availability of trigger flags in IRQ >>> resource, for example to configure the hardware for

[PATCH v5 10/22] x86, mm, numa: Move two functions calling on successful path later

2013-06-14 Thread Yinghai Lu
We need to have numa info ready before init_mem_mapping, so we can call init_mem_mapping per nodes also can trim node mem range to big alignment. Current numa parsing need to allocate some buffer and need to be called after init_mem_mapping. So try to split parsing numa info to two stages, and

[PATCH] [NET]: Unmap fragment page once iterator is done

2013-06-14 Thread Wedson Almeida Filho
Callers of skb_seq_read() are currently forced to call skb_abort_seq_read() even when consuming all the data because the last call to skb_seq_read (the one that returns 0 to indicate the end) fails to unmap the last fragment page. With this patch callers will be allowed to traverse the SKB data

Re: [PATCH] mm: vmscan: remove redundant querying to shrinker

2013-06-14 Thread Kyungmin Park
On Sat, Jun 15, 2013 at 8:04 AM, Andrew Morton wrote: > > On Sat, 15 Jun 2013 03:13:26 +0900 HeeSub Shin wrote: > > > Hello, > > > > On Fri, Jun 14, 2013 at 8:10 PM, Minchan Kim wrote: > > > > > > > > Hello, > > > > > > On Fri, Jun 14, 2013 at 07:07:51PM +0900, Heesub Shin wrote: > > > >

Re: [GIT PULL 1/5]: ux500 core changes for v3.11

2013-06-14 Thread Olof Johansson
On Tue, Jun 04, 2013 at 02:21:10PM +0200, Linus Walleij wrote: > Hi ARM SoC folks, > > this is the ux500 core changes for v3.11. See the signed > tag for details. > > The following changes since commit e4aa937ec75df0eea0bee03bffa3303ad36c986b: > > Linux 3.10-rc3 (2013-05-26 16:00:47 -0700) >

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 09:28:16AM +0800, Lai Jiangshan wrote: > On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: > >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney > >> wrote: > >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800,

Re: [PATCH RFC ticketlock] v3 Auto-queued ticketlock

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 03:12:43PM +0800, Lai Jiangshan wrote: > On 06/14/2013 07:57 AM, Paul E. McKenney wrote: > > On Fri, Jun 14, 2013 at 07:25:57AM +0800, Lai Jiangshan wrote: > >> On Thu, Jun 13, 2013 at 11:22 PM, Paul E. McKenney > >> wrote: > >>> On Thu, Jun 13, 2013 at 10:55:41AM +0800,

Re: [RFC] Staging: imx-drm: Do not use fractional part of divider

2013-06-14 Thread Jiada Wang
Hello Alexander Alexander Shiyan wrote: Hello. Analysis of driver imx-drm led me to believe that the use fractional part of the divider is not always a good idea. For example, for a parallel display bus connected to LVDS converter chip (DS90C363), in this case the use of fractional part,

[PATCH] gpio MIPS/OCTEON: Add a driver for OCTEON's on-chip GPIO pins.

2013-06-14 Thread David Daney
From: David Daney The SOCs in the OCTEON family have 16 (or in some cases 20) on-chip GPIO pins, this driver handles them all. Configuring the pins as interrupt sources is handled elsewhere (OCTEON's irq handling code). Signed-off-by: David Daney --- This patch depends somewhat on patches in

[PATCH 2/2] Add sunxi-sid to dts for sun4i and sun5i

2013-06-14 Thread Oliver Schinagl
From: Oliver Schinagl This patch shall add support for the sunxi-sid driver to the device table for sun4i and sun5i. Signed-off-by: Oliver Schinagl --- arch/arm/boot/dts/sun4i-a10.dtsi | 5 + arch/arm/boot/dts/sun5i-a13.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git

[PATCH 0/2] v3 Driver for Allwinner sunxi Security ID

2013-06-14 Thread Oliver Schinagl
From: Oliver Schinagl I've tried to incoperate all requests/issues but as always could have possibly missed some. I've talked to a few people, maxime mostly about the return vs goto and he said it was up to me, and have choosen to stick with the goto for the error handling. Changes from v2: *

[PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-14 Thread Oliver Schinagl
From: Oliver Schinagl Allwinner has electric fuses (efuse) on their line of chips. This driver reads those fuses, seeds the kernel entropy and exports them as a sysfs node. These fuses are most likly to be programmed at the factory, encoding things like Chip ID, some sort of serial number etc

[PATCH v2] Drivers: hv: vmbus: incorrect device name is printed when child device is unregistered

2013-06-14 Thread Fernando Soto
From: Fernando Soto Please CC me, I am not subscribed to the list. Whenever a device is unregistered in vmbus_device_unregister (drivers/hv/vmbus_drv.c), the device name in the log message may contain garbage as the memory has already been freed by the time pr_info is called. Log example: [

Re: [PATCH 0/5] ACPI / scan: Make it possible to use the container hotplug with other scan handlers

2013-06-14 Thread Rafael J. Wysocki
On Friday, June 14, 2013 03:32:42 PM Tony Luck wrote: > On Fri, Jun 14, 2013 at 3:23 PM, Rafael J. Wysocki wrote: > > Can you please just test patch [5/5] alone without patches [1-4/5]? We > > believe > > that this should work too and if that's the case, we'll only need that patch > > and a

Re: [PATCH] PCI / ACPI / PM: Use correct power state strings in messages

2013-06-14 Thread Rafael J. Wysocki
On Friday, June 14, 2013 04:49:49 PM Bjorn Helgaas wrote: > On Sat, Jun 15, 2013 at 12:28:12AM +0200, Rafael J. Wysocki wrote: > > On Friday, June 14, 2013 11:08:44 AM Bjorn Helgaas wrote: > > > On Thu, Jun 13, 2013 at 4:29 PM, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > >

Re: [PATCH] mm: vmscan: remove redundant querying to shrinker

2013-06-14 Thread Andrew Morton
On Sat, 15 Jun 2013 03:13:26 +0900 HeeSub Shin wrote: > Hello, > > On Fri, Jun 14, 2013 at 8:10 PM, Minchan Kim wrote: > > > > > Hello, > > > > On Fri, Jun 14, 2013 at 07:07:51PM +0900, Heesub Shin wrote: > > > shrink_slab() queries each slab cache to get the number of > > > elements in it.

Re: [BUGFIX 2/9] ACPIPHP: fix device destroying order issue when handling dock notification

2013-06-14 Thread Rafael J. Wysocki
On Friday, June 14, 2013 11:30:12 PM Jiang Liu wrote: > On 06/14/2013 10:12 PM, Rafael J. Wysocki wrote: > > On Friday, June 14, 2013 09:57:15 PM Jiang Liu wrote: > >> On 06/14/2013 08:23 PM, Rafael J. Wysocki wrote: > >>> On Thursday, June 13, 2013 09:59:44 PM Rafael J. Wysocki wrote: > On

Re: [PATCH] tty/vt: Return EBUSY if deallocating VT1 and it is busy

2013-06-14 Thread Peter Hurley
On 06/14/2013 06:24 PM, Ross Lagerwall wrote: Commit 421b40a6286e ("tty/vt: Fix vc_deallocate() lock order") changed the behavior when deallocating VT 1. Previously if trying to deallocate VT1 and it is busy, we would return EBUSY. The commit changed this to return 0 (success). This commit

Re: [PATCH] PCI: Remove not needed check in disable aspm link

2013-06-14 Thread Yinghai Lu
On Fri, Jun 14, 2013 at 3:48 PM, Matthew Garrett wrote: > On Fri, 2013-06-14 at 15:40 -0700, Yinghai Lu wrote: >> On Fri, Jun 14, 2013 at 3:27 PM, Matthew Garrett >> wrote: >> > On Fri, 2013-06-14 at 15:17 -0700, Yinghai Lu wrote: >> > >> >> after those two patches, it aspm_disabled is set, via

Re: [GIT PULL] pstore/ram for 3.11

2013-06-14 Thread Tony Luck
On Fri, Jun 14, 2013 at 3:47 PM, Anton Vorontsov wrote: > > Acked-by: Anton Vorontsov > > (Or I can pick this via linux-pstore.git tree, I'll let Tony decide.) Added that Acked-by: and applied to my tree. Thanks -Tony -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] powerpc/sysfs: disable hotplug for the boot cpu

2013-06-14 Thread Benjamin Herrenschmidt
On Thu, 2013-06-13 at 19:25 +0800, Zhao Chenhui wrote: > Some multicore SoCs firstly boot up the cpu0 after warm reset. > In some suspend/resume cases, SoC will do a warm reset when resuming. > In order to ensure that the suspending and resuming is running > on a same cpu, cpu0 should be the last

Re: [PATCH] PCI / ACPI / PM: Use correct power state strings in messages

2013-06-14 Thread Bjorn Helgaas
On Sat, Jun 15, 2013 at 12:28:12AM +0200, Rafael J. Wysocki wrote: > On Friday, June 14, 2013 11:08:44 AM Bjorn Helgaas wrote: > > On Thu, Jun 13, 2013 at 4:29 PM, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Make acpi_pci_set_power_state() print the name of the ACPI device

Re: [PATCH] PCI: Remove not needed check in disable aspm link

2013-06-14 Thread Matthew Garrett
On Fri, 2013-06-14 at 15:40 -0700, Yinghai Lu wrote: > On Fri, Jun 14, 2013 at 3:27 PM, Matthew Garrett > wrote: > > On Fri, 2013-06-14 at 15:17 -0700, Yinghai Lu wrote: > > > >> after those two patches, it aspm_disabled is set, via _osc early, > >> pre-1.1 devices aspm register will be touched

[GIT PULL] at91: Device Tree update for 3.11 #2

2013-06-14 Thread Nicolas Ferre
Arnd, Olof, Additional pull-request for AT91 DT patches. It contains the remaining part of the USB gadget pull-request that I sent you last week. After having split it, here is the DT part. It also contains the update of DMA bindings: it is the AT91 part the should go through arm-soc. I have

Re: [GIT PULL] pstore/ram for 3.11

2013-06-14 Thread Anton Vorontsov
On Fri, Jun 14, 2013 at 05:32:16PM -0500, Rob Herring wrote: > https://lkml.org/lkml/2013/4/9/831 > > The main discussion was around the write-combining change which I > dropped. You can pick patches 2 and 3 off the mail list if you prefer. I > would assume they only require an ack from one of

Re: Performance regression from switching lock to rw-sem for anon-vma tree

2013-06-14 Thread Michel Lespinasse
On Fri, Jun 14, 2013 at 3:31 PM, Davidlohr Bueso wrote: > A few ideas that come to mind are avoiding taking the ->wait_lock and > avoid dealing with waiters when doing the optimistic spinning (just like > mutexes do). > > I agree that we should first deal with the optimistic spinning before >

Re: Performance regression from switching lock to rw-sem for anon-vma tree

2013-06-14 Thread Tim Chen
> > Unfortunately this patch didn't make any difference, in fact it hurt > several of the workloads even more. I also tried disabling preemption > when spinning on owner to actually resemble spinlocks, which was my > original plan, yet not much difference. > That's also similar to the

  1   2   3   4   5   6   7   8   9   10   >