[PATCH 15/36] autonuma: alloc/free/init task_autonuma

2012-08-22 Thread Andrea Arcangeli
This is where the dynamically allocated task_autonuma structure is being handled. This is the structure holding the per-thread NUMA statistics generated by the NUMA hinting page faults. This per-thread NUMA statistical information is needed by sched_autonuma_balance to make optimal NUMA balancing

[PATCH 32/36] autonuma: boost khugepaged scanning rate

2012-08-22 Thread Andrea Arcangeli
Until THP native migration is implemented it's safer to boost khugepaged scanning rate because all memory migration are splitting the hugepages. So the regular rate of scanning becomes too low when lots of memory is migrated. Signed-off-by: Andrea Arcangeli --- mm/huge_memory.c |6 ++ 1

[PATCH 27/36] autonuma: add CONFIG_AUTONUMA and CONFIG_AUTONUMA_DEFAULT_ENABLED

2012-08-22 Thread Andrea Arcangeli
Add the config options to allow building the kernel with AutoNUMA. If CONFIG_AUTONUMA_DEFAULT_ENABLED is "=y", then /sys/kernel/mm/autonuma/enabled will be equal to 1, and AutoNUMA will be enabled automatically at boot. Signed-off-by: Andrea Arcangeli --- arch/Kconfig |3 +++ arch/x86/K

[PATCH 23/36] autonuma: retain page last_nid information in khugepaged

2012-08-22 Thread Andrea Arcangeli
When pages are collapsed try to keep the last_nid information from one of the original pages. Signed-off-by: Andrea Arcangeli --- mm/huge_memory.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index a65590f..0d2a12f 100

[PATCH 28/36] autonuma: page_autonuma

2012-08-22 Thread Andrea Arcangeli
Move the AutoNUMA per page information from the "struct page" to a separate page_autonuma data structure allocated in the memsection (with sparsemem) or in the pgdat (with flatmem). This is done to avoid growing the size of "struct page". The page_autonuma data is only allocated if the kernel is b

[PATCH 10/36] autonuma: CPU follows memory algorithm

2012-08-22 Thread Andrea Arcangeli
This algorithm takes as input the statistical information filled by the knuma_scand (mm->mm_autonuma) and by the NUMA hinting page faults (p->task_autonuma), evaluates it for the current scheduled task, and compares it against every other running process to see if it should move the current task to

Re: [Xen-devel] [PATCH] xen/events: fix unmask_evtchn for PV on HVM guests

2012-08-22 Thread Stefano Stabellini
On Wed, 22 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Wed, Aug 22, 2012 at 12:20:09PM +0100, Stefano Stabellini wrote: > > Konrad, > > I cannot see this patch anywhere in your trees. Did I miss it? > > Or maybe it just fell through the cracks? > > Fell through the cracks.. Was there a new version

[PATCH 00/36] AutoNUMA24

2012-08-22 Thread Andrea Arcangeli
Hello everyone, Before the Kernel Summit, I think it's good idea to post a new AutoNUMA24 and to go through a new review cycle. The last review cycle has been fundamental in improving the patchset. Thanks! The objective of AutoNUMA is to be able to perform as close as possible to (and sometime fa

[PATCH 05/36] autonuma: teach gup_fast about pmd_numa

2012-08-22 Thread Andrea Arcangeli
In the special "pmd" mode of knuma_scand (/sys/kernel/mm/autonuma/knuma_scand/pmd == 1), the pmd may be of numa type (_PAGE_PRESENT not set), however the pte might be present. Therefore, gup_pmd_range() must return 0 in this case to avoid losing a NUMA hinting page fault during gup_fast. Note: gup

[PATCH 31/36] autonuma: shrink the per-page page_autonuma struct size

2012-08-22 Thread Andrea Arcangeli
>From 32 to 12 bytes, so the AutoNUMA memory footprint is reduced to 0.29% of RAM. This however will fail to migrate pages above a 16 Terabyte offset from the start of each node (migration failure isn't fatal, simply those pages will not follow the CPU, a warning will be printed in the log just on

[PATCH 24/36] autonuma: numa hinting page faults entry points

2012-08-22 Thread Andrea Arcangeli
This is where the numa hinting page faults are detected and are passed over to the AutoNUMA core logic. Signed-off-by: Andrea Arcangeli --- include/linux/huge_mm.h |2 ++ mm/huge_memory.c| 18 ++ mm/memory.c | 31 +++ 3 file

[PATCH 12/36] autonuma: knuma_migrated per NUMA node queues

2012-08-22 Thread Andrea Arcangeli
This defines the knuma_migrated queues. There is one knuma_migrated per NUMA node with active CPUs. Pages are added to these queues through the NUMA hinting page fault (memory follow CPU algorithm with false sharing evaluation). The daemons are then woken up with a certain hysteresis to migrate the

[PATCH 26/36] autonuma: link mm/autonuma.o and kernel/sched/numa.o

2012-08-22 Thread Andrea Arcangeli
Link the AutoNUMA core and scheduler object files in the kernel if CONFIG_AUTONUMA=y. Signed-off-by: Andrea Arcangeli --- kernel/sched/Makefile |1 + mm/Makefile |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile i

[PATCH 02/36] autonuma: export is_vma_temporary_stack() even if CONFIG_TRANSPARENT_HUGEPAGE=n

2012-08-22 Thread Andrea Arcangeli
is_vma_temporary_stack() is needed by mm/autonuma.c too, and without this the build breaks with CONFIG_TRANSPARENT_HUGEPAGE=n. Reported-by: Petr Holasek Acked-by: Rik van Riel Signed-off-by: Andrea Arcangeli --- include/linux/huge_mm.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH 03/36] autonuma: define _PAGE_NUMA_PTE and _PAGE_NUMA_PMD

2012-08-22 Thread Andrea Arcangeli
We will set these bitflags only when the pmd or pte is not present. They work like PROTNONE but they identify a request for the numa hinting page fault to trigger. Because we want to be able to set these bitflags in any established pte or pmd (while clearing the present bit at the same time) with

Re: [PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-22 Thread Attilio Rao
On 22/08/12 15:19, Thomas Gleixner wrote: On Wed, 22 Aug 2012, Konrad Rzeszutek Wilk wrote: On Tue, Aug 21, 2012 at 11:22:03PM +0200, Thomas Gleixner wrote: On Tue, 21 Aug 2012, Attilio Rao wrote: Differences with v1: - The patch serie is re-arranged in a way that it helps re

[PATCH 08/36] autonuma: define the autonuma flags

2012-08-22 Thread Andrea Arcangeli
These flags are the ones tweaked through sysfs, they control the behavior of autonuma, from enabling disabling it, to selecting various runtime options. Signed-off-by: Andrea Arcangeli --- include/linux/autonuma_flags.h | 129 1 files changed, 129 insert

[PATCH 19/36] autonuma: memory follows CPU algorithm and task/mm_autonuma stats collection

2012-08-22 Thread Andrea Arcangeli
This implements the following parts of autonuma: o knuma_scand: daemon for setting pte_numa and pmd_numa while gathering NUMA mm stats o NUMA hinting page fault handler: queues pages for migration and gathers NUMA task stats o knuma_migrated: kernel threads that migrate memory from remote no

[PATCH 33/36] autonuma: powerpc port

2012-08-22 Thread Andrea Arcangeli
From: Vaidyanathan Srinivasan * PMD flaging is not required in powerpc since large pages are tracked in ptes. * Yet to be tested with large pages * This is an initial patch that partially works * knuma_scand and numa hinting page faults works * Page migration is yet to b

[PATCH 34/36] autonuma: make the AUTONUMA_SCAN_PMD_FLAG conditional to CONFIG_HAVE_ARCH_AUTONUMA_SCAN_PMD

2012-08-22 Thread Andrea Arcangeli
Remove the sysfs entry /sys/kernel/mm/autonuma/knuma_scand/pmd and force the knuma_scand pmd mode off if CONFIG_HAVE_ARCH_AUTONUMA_SCAN_PMD is not set by the architecture. Enable AutoNUMA for PPC64. Signed-off-by: Andrea Arcangeli --- arch/Kconfig |3 +++ arch/powerpc/Kconfig |6

[PATCH 06/36] autonuma: introduce kthread_bind_node()

2012-08-22 Thread Andrea Arcangeli
This function makes it easy to bind the per-node knuma_migrated threads to their respective NUMA nodes. Those threads take memory from the other nodes (in round robin with a incoming queue for each remote node) and they move that memory to their local node. Signed-off-by: Andrea Arcangeli --- in

[PATCH 09/36] autonuma: core autonuma.h header

2012-08-22 Thread Andrea Arcangeli
Header that defines the generic AutoNUMA specific functions. All functions are defined unconditionally, but are only linked into the kernel if CONFIG_AUTONUMA=y. When CONFIG_AUTONUMA=n, their call sites are optimized away at build time (or the kernel wouldn't link). Signed-off-by: Andrea Arcangel

Re: [PATCH 2/3] powerpc: Bail out of KGDB when we've been triggered

2012-08-22 Thread Tabi Timur-B04825
On Wed, Aug 22, 2012 at 5:43 AM, Tiejun Chen wrote: > +int kgdb_skipexception(int exception, struct pt_regs *regs) > +{ > + if (kgdb_isremovedbreak(regs->nip)) > + return 1; > + > + return 0; > +} int kgdb_skipexception(int exception, struct pt_regs *regs) { ret

Re: Q:pt_base in COMPAT mode offset by two pages. Was:Re: [Xen-devel] [PATCH 02/11] xen/x86: Use memblock_reserve for sensitive areas.

2012-08-22 Thread Konrad Rzeszutek Wilk
On Wed, Aug 22, 2012 at 03:12:46PM +0100, Jan Beulich wrote: > >>> On 21.08.12 at 21:03, Konrad Rzeszutek Wilk > >>> wrote: > > On Tue, Aug 21, 2012 at 01:27:32PM -0400, Konrad Rzeszutek Wilk wrote: > >> Jan, I thought something odd. Part of this code replaces this: > >> > >>memblock_reserve

[PATCH 16/36] autonuma: alloc/free/init mm_autonuma

2012-08-22 Thread Andrea Arcangeli
This is where the mm_autonuma structure is being handled. mm_autonuma holds the link for knuma_scand's list of mm structures to scan and a pointer to the associated mm structure for knuma_scand's convenience. It also contains the per-mm NUMA statistics collected by knuma_scand daemon. The per-mm

[PATCH 36/36] autonuma: add mm_autonuma working set estimation

2012-08-22 Thread Andrea Arcangeli
Working set estimation will only record memory that was recently used and in turn will be eligible for automatic migration. It will ignore memory that is never accessed by the process and that in turn will never attempted to be migrated. This can increase NUMA convergence if large areas of memory a

[PATCH 20/36] autonuma: default mempolicy follow AutoNUMA

2012-08-22 Thread Andrea Arcangeli
If an task_selected_nid has already been selected for the task, try to allocate memory from it even if it's temporarily not the local node. Chances are it's where most of its memory is already located and where it will run in the future. Acked-by: Rik van Riel Signed-off-by: Andrea Arcangeli ---

[PATCH 29/36] autonuma: autonuma_migrate_head[0] dynamic size

2012-08-22 Thread Andrea Arcangeli
Reduce the autonuma_migrate_head array entries from MAX_NUMNODES to num_possible_nodes() or zero if autonuma is not possible. Signed-off-by: Andrea Arcangeli --- arch/x86/mm/numa.c |6 -- arch/x86/mm/numa_32.c |3 ++- include/linux/memory_hotplug.h |3 ++- in

[PATCH 25/36] autonuma: reset autonuma page data when pages are freed

2012-08-22 Thread Andrea Arcangeli
When pages are freed abort any pending migration. If knuma_migrated arrives first it will notice because get_page_unless_zero would fail. You can safely ignore the #ifdef because a later patch (page_autonuma) clears it. Signed-off-by: Andrea Arcangeli --- mm/page_alloc.c |4 1 files ch

[PATCH 30/36] autonuma: bugcheck page_autonuma fields on newly allocated pages

2012-08-22 Thread Andrea Arcangeli
Debug tweak. Signed-off-by: Andrea Arcangeli --- include/linux/autonuma.h | 19 +++ mm/page_alloc.c |3 ++- 2 files changed, 21 insertions(+), 1 deletions(-) diff --git a/include/linux/autonuma.h b/include/linux/autonuma.h index 1d87ecc..8a779e0 100644 --- a/inclu

[PATCH 04/36] autonuma: pte_numa() and pmd_numa()

2012-08-22 Thread Andrea Arcangeli
Implement pte_numa and pmd_numa. We must atomically set the numa bit and clear the present bit to define a pte_numa or pmd_numa. Once a pte or pmd has been set as pte_numa or pmd_numa, the next time a thread touches a virtual address in the corresponding virtual range, a NUMA hinting page fault w

Re: [RFC patch 4/4] Re: dma-buf-mgr: multiple dma-buf synchronization (v3)

2012-08-22 Thread Daniel Vetter
On Wed, Aug 22, 2012 at 02:52:10PM +0200, Thomas Hellstrom wrote: > Hi, Maarten, > please see some comments inline. > > On 08/22/2012 01:50 PM, Maarten Lankhorst wrote: > >Hey Dan, > > > >Op 16-08-12 01:12, Daniel Vetter schreef: > >>Hi Maarten, > >> > >>Ok, here comes the promised review (finally

[PATCH 5/6] ARM: imx: select CPU_FREQ_TABLE when needed

2012-08-22 Thread Arnd Bergmann
The i.MX cpufreq implementation uses the CPU_FREQ_TABLE helpers, so it needs to select that code to be built. This problem has apparently existed since the i.MX cpufreq code was first merged in v3.6.37. Building IMX without CPU_FREQ_TABLE results in: arch/arm/plat-mxc/built-in.o: In function `mxc

[PATCH 1/6] ARM: ux500: don't select LEDS_GPIO for snowball

2012-08-22 Thread Arnd Bergmann
The gpio leds driver can only be built if the generic LED code is also enabled. Snowball selects LEDS_GPIO for an unknown reason but it does not select LEDS_CLASS and also does not really require the LED support at all, so we can just drop this dependency. Without this patch, building without LEDS

[PATCH 0/6] ARM: randconfig bugs

2012-08-22 Thread Arnd Bergmann
Hi everyone, Here are some more patches for bugs I found using 'make randconfig' in v3.6-rc+multiplatform. I can to merge them through the arm-soc tree, but please have a look and provide Acks. Arnd --- Cc: Artem Bityutskiy Cc: Eric Miao Cc: Kevin Hilman Cc: Lee Jones Cc: Linus Walle

[PATCH 4/6] ARM: imx: fix ksz9021rn_phy_fixup

2012-08-22 Thread Arnd Bergmann
The ksz9021rn_phy_fixup and mx6q_sabrelite functions try to set up an ethernet phy if they can. They do check whether phylib is enabled, but unfortunately the functions can only be called from platform code if phylib is builtin, not if it is a module Without this patch, building with a modular phy

[PATCH 6/6] ARM: imx: select ARM_CPU_SUSPEND when necessary

2012-08-22 Thread Arnd Bergmann
On i.MX6, we select ARM_CPU_SUSPEND when building with power management support, but for some reason this was omitted on i.MX5. Normally we build kernels for both together so the error only showed up in randconfig tests. Without this patch, building imx5 standalone results in: arch/arm/mach-imx/b

[PATCH 3/6] ARM: imx: build pm-imx5 code only when PM is enabled

2012-08-22 Thread Arnd Bergmann
This moves the imx5 pm code out of the list of unconditionally compiled files for imx5, mirroring what we already do for imx6 and how it was done before the code was move from mach-mx5 to mach-imx in v3.3. Without this patch, building with CONFIG_PM disabled results in: arch/arm/mach-imx/pm-imx5.

[PATCH 2/6] ARM: omap: allow building omap44xx without SMP

2012-08-22 Thread Arnd Bergmann
The new omap4 cpuidle implementation currently requires ARCH_NEEDS_CPU_IDLE_COUPLED, which only works on SMP. This patch makes it possible to build a non-SMP kernel for that platform. This is not normally desired for end-users but can be useful for testing. Without this patch, building rand-0y2jS

[PATCH] media/radio/shark2: Fix build error caused by missing dependencies

2012-08-22 Thread Guenter Roeck
Fix build error: ERROR: "led_classdev_register" [drivers/media/radio/shark2.ko] undefined! ERROR: "led_classdev_unregister" [drivers/media/radio/shark2.ko] undefined! which is seen if RADIO_SHARK2 is enabled, but LEDS_CLASS is not. Since RADIO_SHARK2 depends on NEW_LEDS and LEDS_CLASS, select bo

[PATCH 0/3 v2] HWPOISON: improve dirty pagecache error reporting

2012-08-22 Thread Naoya Horiguchi
Hi, Based on the previous discussion, in this version I propose only error reporting fix ("overwrite recovery" is sparated out from this series.) I think Fengguang's patch (patch 2 in this series) has a corner case about inode cache drop, so I added patch 3 for it. Shortlog and diffstat Naoya

[PATCH 2/3] HWPOISON: report sticky EIO for poisoned file

2012-08-22 Thread Naoya Horiguchi
From: Wu Fengguang This makes the EIO reports on write(), fsync(), or the NFS close() sticky enough. The only way to get rid of it may be echo 3 > /proc/sys/vm/drop_caches Note that the impacted process will only be killed if it mapped the page. XXX via read()/write()/fsync() instead of

[PATCH v2] PCI: allow acpiphp to handle PCIe ports w/o native PCIe hotplug capability

2012-08-22 Thread Jiang Liu
From: Jiang Liu Commit 0d52f54e2ef64c189dedc332e680b2eb4a34590a (PCI / ACPI: Make acpiphp ignore root bridges using PCIe native hotplug) added code that made the acpiphp driver completely ignore PCIe root complexes for which the kernel had been granted control of the native PCIe hotplug feature b

[PATCH 1/3] HWPOISON: fix action_result() to print out dirty/clean

2012-08-22 Thread Naoya Horiguchi
action_result() fails to print out "dirty" even if an error occurred on a dirty pagecache, because when we check PageDirty in action_result() it was cleared after page isolation even if it's dirty before error handling. This can break some applications that monitor this message, so should be fixed.

[PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-22 Thread Naoya Horiguchi
"HWPOISON: report sticky EIO for poisoned file" still has a corner case where we have possibilities of data lost. This is because in this fix AS_HWPOISON is cleared when the inode cache is dropped. For example, consider an application in which a process periodically (every 10 minutes) writes some

[RF CPATCH] tty: Split the serial_core helpers for setserial into two

2012-08-22 Thread Alan Cox
For the sysctl work we should I think do something like this. At that point the sysctl helpers can get/set values via the existing driver interfaces From: Alan Cox We want them split so that we can call them from setserial functionality where we copy to/from user space and do the locking, but al

Re: [PATCH 4/4] ARM: kprobes: make more tests conditional

2012-08-22 Thread Arnd Bergmann
On Wednesday 22 August 2012, Nicolas Pitre wrote: > On Wed, 22 Aug 2012, Arnd Bergmann wrote: > > > The mls instruction is not available in ARMv6K or below, so we > > should make the test conditional on at least ARMv7. ldrex/strex > > are available in ARMv6K or ARMv7, which we can test by checking

Re: [PATCH 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-22 Thread Antti Palosaari
On 08/22/2012 04:57 PM, Hin-Tak Leung wrote: Antti Palosaari wrote: Hello Hiroshi, On 08/21/2012 10:02 AM, Hiroshi Doyu wrote: Antti Palosaari wrote @ Mon, 20 Aug 2012 23:29:34 +0200: On 08/20/2012 02:14 PM, Hiroshi Doyu wrote: Hi Antti, Antti Palosaari wrote @ Sat, 18 Aug 2012 02:11:56

Re: [PATCH] media/radio/shark2: Fix build error caused by missing dependencies

2012-08-22 Thread Hans de Goede
Hi, I've a better fix for this here: http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.6 I already send a pull-req for this to Mauro a while ago, Mauro? Regards, Hans On 08/22/2012 05:16 PM, Guenter Roeck wrote: Fix build error: ERROR: "led_classdev_register" [drivers

[PATCH v4 1/2] XEN/X86: Improve semantic support for x86_init.mapping.pagetable_reserve

2012-08-22 Thread Attilio Rao
- Allow xen_mapping_pagetable_reserve() to handle a start different from pgt_buf_start, but still bigger than it. - Add checks to xen_mapping_pagetable_reserve() and native_pagetable_reserve() for verifying start and end are contained in the range [pgt_buf_start, pgt_buf_top]. - In xen_mappin

[PATCH v4 0/2] XEN/X86: Document x86_init.mapping.pagetable_reserve and enforce a better semantic

2012-08-22 Thread Attilio Rao
When looking for documenting x86_init.mapping.pagetable_reserve, I realized that it assumes start == pgt_buf_start. I think this is not semantically right (even if with the current code this should not be a problem in practice) and what we really want is to extend the logic in order to do the RO ->

[PATCH v4 2/2] XEN: Document the semantic of x86_init.mapping.pagetable_reserve

2012-08-22 Thread Attilio Rao
The informations added on the hook are: - Native behaviour - Xen specific behaviour - Logic behind the Xen specific behaviour - setup function semantic Even if in general it would be a good idea to separate implementation from semantic, in this case it is beneficial to give a little bit of context

Re: [PATCH 0/4] [RFC] ARM: multiplatform: rename all mach headers

2012-08-22 Thread Nicolas Pitre
On Wed, 22 Aug 2012, Arnd Bergmann wrote: > I've created this series some time ago, and updated it now to > v3.6-rc1. The idea is to get us a big step closer to the > single zImage kernel across multiple ARM platforms by > untangling the duplicate header file names. Thanks for picking up this tas

Re: [PATCH 1/4] [RFC] ARM: autogenerate mach-foo/* and plat-foo/* header redirects

2012-08-22 Thread Nicolas Pitre
On Wed, 22 Aug 2012, Arnd Bergmann wrote: > This is an attempt to simplify the duplicate header problem for > multiplatform kernels, in multiple steps: > > 1. (this patch) >for each arch/arm/mach-${MACHINE}/include/mach-${MACHINE}/*.h file, >generate a arch/arm/include/generated/mach/*.h

Re: [PATCH 2/4] [RFC] ARM: mass move of mach-*/plat-* header files

2012-08-22 Thread Nicolas Pitre
On Wed, 22 Aug 2012, Arnd Bergmann wrote: > This moves all headers to , and all > headers to , as another step closer > to building kernels for multiple platforms combined. > > A script to generate headers with the traditional names including > the headers from the new place is already there, s

Re: [PATCH] media/radio/shark2: Fix build error caused by missing dependencies

2012-08-22 Thread Guenter Roeck
On Wed, Aug 22, 2012 at 05:22:26PM +0200, Hans de Goede wrote: > Hi, > > I've a better fix for this here: > http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.6 > > I already send a pull-req for this to Mauro a while ago, Mauro? > Looks like it found its way into mainline i

Re: [PATCH 0/4] [RFC] ARM: multiplatform: rename all mach headers

2012-08-22 Thread Arnd Bergmann
On Wednesday 22 August 2012, Nicolas Pitre wrote: > On Wed, 22 Aug 2012, Arnd Bergmann wrote: > > There are two branches available in the arm-soc tree: > > > > 1. This series, > > > > http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=shortlog;h=refs/heads/testing/mach-headers > >

Re: [PATCH 4/4] [RFC] ARM: treewide: manually change more mach-*/*.h includes

2012-08-22 Thread Nicolas Pitre
On Wed, 22 Aug 2012, Arnd Bergmann wrote: > These are lots of device drivers that include machine > specific header files from ARM platforms and that are > not easily scriptable. The changes have been found through > manual inspection and should cause no visible changes > because of the build scri

Re: [PATCH 2/6] ARM: omap: allow building omap44xx without SMP

2012-08-22 Thread Shilimkar, Santosh
On Wed, Aug 22, 2012 at 8:43 PM, Arnd Bergmann wrote: > The new omap4 cpuidle implementation currently requires > ARCH_NEEDS_CPU_IDLE_COUPLED, which only works on SMP. > > This patch makes it possible to build a non-SMP kernel > for that platform. This is not normally desired for > end-users but c

Re: [PATCH 2/4] [RFC] ARM: mass move of mach-*/plat-* header files

2012-08-22 Thread Arnd Bergmann
On Wednesday 22 August 2012, Nicolas Pitre wrote: > Ideally, files such as ... > > > rename from arch/arm/mach-at91/include/mach/at91_pio.h > > rename to arch/arm/mach-at91/include/mach-at91/at91_pio.h > > should move next to the A91 GPIO driver file. but that require manual > operations which

Re: [PATCH 4/4] ARM: kprobes: make more tests conditional

2012-08-22 Thread Nicolas Pitre
On Wed, 22 Aug 2012, Arnd Bergmann wrote: > On Wednesday 22 August 2012, Nicolas Pitre wrote: > > On Wed, 22 Aug 2012, Arnd Bergmann wrote: > > > > > The mls instruction is not available in ARMv6K or below, so we > > > should make the test conditional on at least ARMv7. ldrex/strex > > > are avai

RE: [PATCH v2] lis3lv02d: Add STMicroelectronics lis331dlh digital accelerometer

2012-08-22 Thread AnilKumar, Chimata
On Wed, Aug 22, 2012 at 16:09:22, Chinmay V S wrote: > Hmmm. Interesting. As i understand LIS331DLH provides 16bit data > irrespective of the full-scale/sensitivity configuration. Hence we > could effectively map +/-2G to +/-32768(signed 16bit 2's complement). > According to the current-patch right

[GIT PULL] Please pull NFS client fixes

2012-08-22 Thread Myklebust, Trond
Hi Linus, The following changes since commit 2d534926205db9ffce4bbbde67cb9b2cee4b835c: Merge tag 'irqdomain-for-linus' of git://git.secretlab.ca/git/linux-2.6 (2012-07-31 20:44:03 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nf

Re: [PATCH 1/2] mmc: core: Add a capability for disabling mmc cards

2012-08-22 Thread Doug Anderson
Jaehoon, On Tue, Aug 21, 2012 at 9:35 PM, Jaehoon Chung wrote: > > Hi Doug, > > I didn't know what purpose is. > Why need to add the MMC_CAP2_NO_MMC? > If card is SD or SDIO, mmc_attach_mmc(host) should not be entered. > Could you explain to me in more detail? Thanks for your feedback. In this

RE: [PATCH V3 08/14] Tools: hv: Gather DNS information

2012-08-22 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, August 17, 2012 12:51 PM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > virtualizat...@lists.osdl.org; o...@aepfle.de; a...@canonical.com; > b...@decadent.org.

Re: [PATCH 5/8] mfd: Provide the PRCMU with its own IRQ domain

2012-08-22 Thread Mark Brown
On Wed, Aug 22, 2012 at 12:55:25PM +0100, Lee Jones wrote: > > I *have* asked you to communicate more clearly about what you're doing > > but that doesn't mean to stop sending code, it means to have clearer > > words around what you're sending. > That's not how I interpreted your words: > "What

Re: Q:pt_base in COMPAT mode offset by two pages. Was:Re: [Xen-devel] [PATCH 02/11] xen/x86: Use memblock_reserve for sensitive areas.

2012-08-22 Thread Jan Beulich
>>> On 21.08.12 at 21:03, Konrad Rzeszutek Wilk wrote: > On Tue, Aug 21, 2012 at 01:27:32PM -0400, Konrad Rzeszutek Wilk wrote: >> On Mon, Aug 20, 2012 at 10:13:05AM -0400, Konrad Rzeszutek Wilk wrote: >> > On Fri, Aug 17, 2012 at 06:35:12PM +0100, Stefano Stabellini wrote: >> > > On Thu, 16 Aug 2

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-22 Thread Oleg Nesterov
On 08/22, Ananth N Mavinakayanahalli wrote: > > +int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct > *mm, unsigned long addr) > +{ > + unsigned int insn; > + > + if (addr & 0x03) > + return -EINVAL; > + > + memcpy(&insn, auprobe->insn, MAX_UINSN_BYT

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Mark Brown
On Wed, Aug 22, 2012 at 03:18:45PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > > Using standard imx syscon API to access anatop register. Acked-by: Mark Brown With the conversion to regmap it'd also be good to convert the driver to use the regmap helper functions for enable and voltage o

Re: Regression associated with commit c8628155ece3 - "tcp: reduce out_of_order memory use"

2012-08-22 Thread Larry Finger
On 08/22/2012 12:15 AM, Eric Dumazet wrote: This particular commit is the start of a patches batch that ended in the generic TCP coalescing mechanism. It is known to have problem on drivers doing skb_clone() in their rx path. Current kernels should be ok, because coalescing doesnt happen if th

Re: [PATCH 1/2] mmc: core: Add a capability for disabling mmc cards

2012-08-22 Thread Philip Rakity
On Aug 22, 2012, at 8:44 AM, Doug Anderson wrote: > Jaehoon, > > On Tue, Aug 21, 2012 at 9:35 PM, Jaehoon Chung wrote: >> >> Hi Doug, >> >> I didn't know what purpose is. >> Why need to add the MMC_CAP2_NO_MMC? >> If card is SD or SDIO, mmc_attach_mmc(host) should not be entered. >> Could yo

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Mark Brown
On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > Add regmap based imx syscon driver. Nice to see more regmap-mmio usage! Reviwed-by: Mark Brown from a regmap point of view. > +int imx_syscon_write(struct device_node *np, u32 reg, u32 val) > +{ > + str

Re: [PATCH v3] x86/uprobes: implement x86 specific arch_uprobe_*_step

2012-08-22 Thread Oleg Nesterov
On 08/22, Sebastian Andrzej Siewior wrote: > > On 08/22/2012 04:03 PM, Oleg Nesterov wrote: >> >> Sebastian, we have other uprobes patches in flight, I'll returns to >> this after we push them. >> >> As I said, personally I mostly agree with this change... but may be >> I'll try to convince you to

Re: [PATCH v2 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-22 Thread Matt Porter
On Wed, Aug 22, 2012 at 09:15:22AM +0530, Vinod Koul wrote: > On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: > > Removes use of the DaVinci EDMA private DMA API and replaces > > it with use of the DMA engine API. > > > > Signed-off-by: Matt Porter > > --- > > > + struct dma_slav

Re: [PATCH] perf: do not flush maps on COMM for perf report

2012-08-22 Thread Luigi Semenzato
On Wed, Aug 22, 2012 at 12:28 AM, Ingo Molnar wrote: > > * Luigi Semenzato wrote: > >> This fixes a long-standing bug caused by the lack of separate >> COMM and EXEC record types, which makes "perf report" lose >> track of symbols when a process renames itself. >> >> With this fix (suggested by S

Re: [PATCH 1/1] xhci: Unconditionally switch ports to xHCI on powerup

2012-08-22 Thread Manoj Iyer
If this is a must-to-do thing for Intel Panther Point platform, then we need to make sure it's called on power up and resume. Yes, I think moving the code below hc_init label should work and I think it's a better solution than your original patch. Yes it effects a lot of machines (Lenovo), I w

RE: [PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code

2012-08-22 Thread H Hartley Sweeten
On Sunday, August 19, 2012 1:44 AM, Julia Lawall wrote: > From: Julia Lawall > > Initialize return variable before exiting on an error path. > Signed-off-by: Julia Lawall > > --- > drivers/spi/spi-ep93xx.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/spi/spi-ep93xx.c b/

Re: [PATCH] DMA/RaidEngine: Enable FSL RaidEngine

2012-08-22 Thread Kumar Gala
On Aug 22, 2012, at 1:24 AM, wrote: > From: Xuelin Shi > > The RaidEngine is a new FSL hardware that used as hardware acceration > for RAID5/6. > > This patch enables the RaidEngine functionality and provides hardware > offloading capability for memcpy, xor and raid6 pq computation. It work

[PATCH 0/6] Xen patches for Linux 3.7

2012-08-22 Thread Stefano Stabellini
Hi Konrad, the followings are the patches that I am proposing for Linux 3.7. I am leaving out the bulk of the ARM patches for the moment. Stefano Stabellini (6): xen/events: fix unmask_evtchn for PV on HVM guests xen: missing includes xen: update xen_add_to_physmap interface

[PATCH 1/6] xen/events: fix unmask_evtchn for PV on HVM guests

2012-08-22 Thread Stefano Stabellini
When unmask_evtchn is called, if we already have an event pending, we just set evtchn_pending_sel waiting for local_irq_enable to be called. That is because PV guests set the irq_enable pvops to xen_irq_enable_direct in xen_setup_vcpu_info_placement: xen_irq_enable_direct is implemented in assembly

[PATCH 2/6] xen: missing includes

2012-08-22 Thread Stefano Stabellini
Changes in v3: - add missing pvclock-abi.h include to ia64 header files. Changes in v2: - remove pvclock hack; - remove include linux/types.h from xen/interface/xen.h. Signed-off-by: Stefano Stabellini --- arch/ia64/include/asm/xen/interface.h |2 ++ arch/x86/include/asm/xen/interface.

[PATCH 6/6] xen: allow privcmd for HVM guests

2012-08-22 Thread Stefano Stabellini
This patch removes the "return -ENOSYS" for auto_translated_physmap guests from privcmd_mmap, thus it allows ARM guests to issue privcmd mmap calls. However privcmd mmap calls are still going to fail for HVM and hybrid guests on x86 because the xen_remap_domain_mfn_range implementation is currently

[PATCH 4/6] xen: Introduce xen_pfn_t for pfn and mfn types

2012-08-22 Thread Stefano Stabellini
All the original Xen headers have xen_pfn_t as mfn and pfn type, however when they have been imported in Linux, xen_pfn_t has been replaced with unsigned long. That might work for x86 and ia64 but it does not for arm. Bring back xen_pfn_t and let each architecture define xen_pfn_t as they see fit.

Re: [PATCH v2 1/3] dmaengine: add TI EDMA DMA engine driver

2012-08-22 Thread Matt Porter
On Wed, Aug 22, 2012 at 09:09:26AM +0530, Vinod Koul wrote: > On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: > > Add a DMA engine driver for the TI EDMA controller. This driver > > is implemented as a wrapper around the existing DaVinci private > > DMA implementation. This approach allows fo

[PATCH 3/6] xen: update xen_add_to_physmap interface

2012-08-22 Thread Stefano Stabellini
Update struct xen_add_to_physmap to be in sync with Xen's version of the structure. The size field was introduced by: changeset: 24164:707d27fe03e7 user:Jean Guyader date:Fri Nov 18 13:42:08 2011 + summary: mm: New XENMEM space, XENMAPSPACE_gmfn_range According to the c

[PATCH 5/6] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST

2012-08-22 Thread Stefano Stabellini
Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call irq_startup, that is responsible for calling irq_unmask at startup time. As a result event channels remain masked. Signed-off-by: Stefano Stabellini Acked-by: Konrad

[PATCH 01/10] alpha: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 04/10] h8300: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 06/10] m68k: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 10/10] xtensa: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 09/10] score: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

Re: [PATCH 00/25] Crypto keys and module signing

2012-08-22 Thread Kasatkin, Dmitry
Hi David, Yes, I will be also attending LSS and would like to visit KS discussion as well. Hope Rusty will send a schedule soon... Regards, Dmitry On Wed, Aug 22, 2012 at 1:50 PM, David Howells wrote: > Rusty Russell wrote: > >> > I've posted new versions of my module signing patches to my GI

[PATCH 07/10] mn10300: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 00/10] rcu: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
So this fixes some potential RCU stalls in a bunch of architectures. When rcu_idle_enter()/rcu_idle_exit() became a requirement, we forgot to handle the architectures that don't support CONFIG_NO_HZ. I guess the set should be dispatched into arch maintainer trees. I'm sorry I haven't built tested

[PATCH 08/10] parisc: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 05/10] m32r: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 03/10] frv: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

[PATCH 02/10] cris: Add missing RCU idle APIs on idle loop

2012-08-22 Thread Frederic Weisbecker
In the old times, the whole idle task was considered as an RCU quiescent state. But as RCU became more and more successful overtime, some RCU read side critical section have been added even in the code of some architectures idle tasks, for tracing for example. So nowadays, rcu_idle_enter() and rcu

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-22 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 9:40 PM, Cui, Dexuan wrote: > Bjorn Helgaas wrote on 2012-08-21: >> I am still concerned about reset_intel_82599_sfp_virtfn(). It looks >> wrong and possibly unnecessary. It looks wrong because it sets >> PCI_EXP_DEVCTL_BCR_FLR and blindly clears all other bits in >> PCI

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-22 Thread Andrea Arcangeli
On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: > On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: > > CPU0CPU1 > > oldpage[1] == 0 (both guest & host) > > oldpage[0] = 1 > > trigger do_wp_page > > We always do ptep_clear_f

<    1   2   3   4   5   6   7   8   >