Re: How to hack syscall-table, in kernel 2.6+ ?

2012-08-14 Thread richard -rw- weinberger
On Tue, Aug 14, 2012 at 6:13 PM, Ajay Garg ajaygargn...@gmail.com wrote: So, the use-case I am trying to solve, is that only a particular process should be able to read a group of files, and no one else (i.e. no-other-user/ no-other-process/no-other-anything). The only exception is the root

Re: [GIT PULL] New TPM driver, hwrng driver and fixes

2012-08-14 Thread Kent Yoder
On Mon, Aug 13, 2012 at 01:44:10PM -0700, H. Peter Anvin wrote: On 07/27/2012 11:14 AM, Kent Yoder wrote: Hi James, Please pull from this new branch and ignore the 7-25-12 branch. This new branch includes fixes for comments by hpa. I've also included one additional patch from [1] to

[PATCH 4/5] mm: have order 0 compaction start near a pageblock with free pages

2012-08-14 Thread Mel Gorman
commit [7db8889a: mm: have order 0 compaction start off where it left] introduced a caching mechanism to reduce the amount work the free page scanner does in compaction. However, it has a problem. Consider two process simultaneously scanning free pages

[PATCH 3/5] mm: compaction: Capture a suitable high-order page immediately when it is made available

2012-08-14 Thread Mel Gorman
While compaction is migrating pages to free up large contiguous blocks for allocation it races with other allocation requests that may steal these blocks or break them up. This patch alters direct compaction to capture a suitable free page as soon as it becomes available to reduce this race. It

[PATCH 1/5] mm: compaction: Update comment in try_to_compact_pages

2012-08-14 Thread Mel Gorman
The comment about order applied when the check was order PAGE_ALLOC_COSTLY_ORDER which has not been the case since [c5a73c3d: thp: use compaction for all allocation orders]. Fixing the comment while I'm in the general area. Signed-off-by: Mel Gorman mgor...@suse.de Reviewed-by: Rik van Riel

[PATCH 0/5] Improve hugepage allocation success rates under load V4

2012-08-14 Thread Mel Gorman
Changelog since V3 o Add patch to backoff compaction in the event of lock contention o Rebase to mmotm, cope with the removal of __GFP_NO_KSWAPD o Removed RFC Changelog since V2 o Capture !MIGRATE_MOVABLE pages where possible o Document the treatment of MIGRATE_MOVABLE pages while capturing o

[PATCH 5/5] mm: compaction: Abort async compaction if locks are contended or taking too long

2012-08-14 Thread Mel Gorman
Jim Schutt reported a problem that pointed at compaction contending heavily on locks. The workload is straight-forward and in his own words; The systems in question have 24 SAS drives spread across 3 HBAs, running 24 Ceph OSD instances, one per drive. FWIW these servers

[PATCH 2/5] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-14 Thread Mel Gorman
If allocation fails after compaction then compaction may be deferred for a number of allocation attempts. If there are subsequent failures, compact_defer_shift is increased to defer for longer periods. This patch uses that information to scale the number of pages reclaimed with compact_defer_shift

Re: [PATCH] i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20

2012-08-14 Thread Stephen Warren
On 08/14/2012 03:19 AM, Laxman Dewangan wrote: Tegra20 i2c controller does not support the continue transfer which implements the I2C_M_NOSTART functionality of i2c protocol mangling. Removing the I2C_M_NOSTART functionality for Tegra20. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com

Remoteproc: Translating between host and device addresses.

2012-08-14 Thread Sjur BRENDELAND
Hi Ohad, I have one question related to address translation between device address and host-physical address referencing the data-buffer transported in the virtio-rings. The address used in the virtio-ring is the host-physical-address, but the mapping between device-address and

RE: [RFC 4/4] remoteproc: Add driver for STE Modem

2012-08-14 Thread Sjur BRENDELAND
Hi Ohad, It seems to me that a char device will solve these issues: we can use ioctl to control the power, if the user crashes we'll know about it via the release handler, and if the remote processor crashes we can let the user know by sending it a notification for it to read via the fd. How

Re: [PATCH V2 2/2] apple_gmux: Add support for newer hardware

2012-08-14 Thread Bernhard Froemel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/14/2012 05:15 PM, Seth Forshee wrote: On Tue, Aug 14, 2012 at 04:53:47PM +0200, Bernhard Froemel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Only in relation to Seth's future apple-gmux patch series about vgaswitcheroo and

Re: bisected regression: v3.6-rc1: resume from s2ram does not restore ata_piix (v3.5 worked)

2012-08-14 Thread Sergei Trofimovich
On Tue, 14 Aug 2012 22:48:08 +0800 Aaron Lu aaron@gmail.com wrote: On Tue, Aug 14, 2012 at 11:44:20AM +0300, Sergei Trofimovich wrote: The only problem I can see is the offending commit didn't do a gtm for IDE channel during init. It was used to be done in

Re: [PATCH 6/6] workqueue: deprecate WQ_NON_REENTRANT

2012-08-14 Thread Marc Dietrich
Hi Tejun, On Monday 13 August 2012 18:49:46 Tejun Heo wrote: WQ_NON_REENTRANT is now spurious. Make alloc_workqueue() trigger WARN_ON() if the flag is specified and drop it from all in-kernel users. If you're cc'd and wondering what's going on: Now all workqueues are non-reentrant, so

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-14 Thread Michal Hocko
On Thu 09-08-12 17:01:14, Glauber Costa wrote: This patch introduces infrastructure for tracking kernel memory pages to a given memcg. This will happen whenever the caller includes the flag __GFP_KMEMCG flag, and the task belong to a memcg other than the root. In memcontrol.h those functions

Re: [rfc patch] fs,reiserfs: unlock superblock before callling reiserfs_quota_on_mount()

2012-08-14 Thread Mike Galbraith
On Tue, 2012-08-14 at 17:18 +0200, Thomas Gleixner wrote: On Tue, 14 Aug 2012, Mike Galbraith wrote: On Tue, 2012-08-14 at 16:39 +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 10:23 -0400, Steven Rostedt wrote: On Tue, 2012-08-14 at 15:06 +0200, Mike Galbraith wrote:

Re: [GIT PULL] Disintegrate the User API from the kernel headers

2012-08-14 Thread Oliver Hartkopp
this? Some of the patches needed tweaking to apply due to fixes you've pulled changing headers, so I've regenerated the patches again on top of your tree as of the morning of the 14th (UK time). See tag: uapi-post-split-20120814 The old tags are still around. Interestingly

Re: [PATCH 0/7] HID: picoLCD updates

2012-08-14 Thread Tejun Heo
Hello, On Tue, Aug 14, 2012 at 08:30:44AM +0200, Bruno Prémont wrote: I'm kinda shooting in the dark but who flushes / cancels fb_info-deferred_work? fb_deferred_io_cleanup() does so and is called by destroy fbops (when last reference to fb_info is returned): I see. Sorry but just from

Re: [PATCH 6/6] workqueue: deprecate WQ_NON_REENTRANT

2012-08-14 Thread Tejun Heo
Hello, On Tue, Aug 14, 2012 at 07:24:59PM +0200, Marc Dietrich wrote: the nvec driver had its own workqueue because we found that it reduced some timimg induced protocol errors. I just tested your patch which uses the system workqueue and I failed to reproduce these protocol errors under

Re: [PATCH 0/7] zram/zsmalloc promotion

2012-08-14 Thread Seth Jennings
On 08/14/2012 12:36 AM, Nitin Gupta wrote: On 08/13/2012 07:35 PM, Greg Kroah-Hartman wrote: On Wed, Aug 08, 2012 at 03:12:13PM +0900, Minchan Kim wrote: This patchset promotes zram/zsmalloc from staging. Both are very clean and zram is used by many embedded product for a long time. [1-3]

Re: linux-next: Tree for July 26 (uml)

2012-08-14 Thread Randy Dunlap
On 08/14/2012 08:17 AM, Richard Weinberger wrote: Am 14.08.2012 17:15, schrieb David Howells: How about this then? David --- diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig index 9926e11..a4b0c10 100644 --- a/arch/x86/um/Kconfig +++ b/arch/x86/um/Kconfig @@ -21,9 +21,11 @@ config

Re: [rfc patch] fs,reiserfs: unlock superblock before callling reiserfs_quota_on_mount()

2012-08-14 Thread Steven Rostedt
On Tue, 2012-08-14 at 19:26 +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 17:18 +0200, Thomas Gleixner wrote: On Tue, 14 Aug 2012, Mike Galbraith wrote: On Tue, 2012-08-14 at 16:39 +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 10:23 -0400, Steven Rostedt wrote: On

Re: [PATCH v7 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-08-14 Thread Rafael Aquini
On Mon, Aug 13, 2012 at 11:26:19AM +0300, Michael S. Tsirkin wrote: +static inline bool movable_balloon_page(struct page *page) +{ + return (page-mapping page-mapping == balloon_mapping); I am guessing this needs smp_read_barrier_depends, and maybe ACCESS_ONCE ... I'm curious about

[PATCH v2 01/31] arm64: Assembly macros and definitions

2012-08-14 Thread Catalin Marinas
This patch introduces several assembly macros and definitions used in the .S files across arch/arm64/ like IRQ disabling/enabling, together with asm-offsets.c. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com ---

[PATCH v2 17/31] arm64: System calls handling

2012-08-14 Thread Catalin Marinas
This patch adds support for system calls coming from 64-bit applications. It uses the asm-generic/unistd.h definitions with the canonical set of system calls. The private system calls are only used for 32-bit (compat) applications as 64-bit ones can set the TLS and flush the caches entirely from

[PATCH v2 22/31] arm64: Floating point and SIMD

2012-08-14 Thread Catalin Marinas
This patch adds support for FP/ASIMD register bank saving and restoring during context switch and FP exception handling to generate SIGFPE. There are 32 128-bit registers and the context switching is currently done non-lazily. Benchmarks on real hardware are required before implementing lazy FP

[PATCH v2 25/31] arm64: Performance counters support

2012-08-14 Thread Catalin Marinas
From: Will Deacon will.dea...@arm.com This patch adds support for the AArch64 performance counters. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- arch/arm64/include/asm/perf_event.h | 22 + arch/arm64/include/asm/pmu.h| 82

[PATCH v2 26/31] arm64: Miscellaneous library functions

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier marc.zyng...@arm.com This patch adds udelay, memory and bit operations together with the ksyms exports. Signed-off-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com ---

[PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-14 Thread Catalin Marinas
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch) and page table management. The user translation table is pointed to by TTBR0 and the kernel one (swapper_pg_dir) by TTBR1. There is no translation information shared or address space

[PATCH v2 05/31] arm64: MMU initialisation

2012-08-14 Thread Catalin Marinas
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Only five memory types are defined: Device nGnRnE (equivalent to Strongly Ordered), Device nGnRE (classic Device memory), Device GRE, Normal Non-cacheable and Normal Cacheable. Cache policies are

[PATCH v2 28/31] arm64: Generic timers support

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier marc.zyng...@arm.com This patch adds support for the ARM generic timers with A64 instructions for accessing the timer registers. It uses the physical counter as the clock source and the virtual counter as sched_clock. The timer frequency can be specified via DT or read from

[PATCH v2 29/31] arm64: Miscellaneous header files

2012-08-14 Thread Catalin Marinas
This patch introduces a few AArch64-specific header files together with Kbuild entries for generic headers. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- arch/arm64/include/asm/Kbuild| 51 ++

[PATCH v2 31/31] arm64: MAINTAINERS update

2012-08-14 Thread Catalin Marinas
This patch updates the MAINTAINERS file for the AArch64 Linux kernel port. Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 94b823f..6d7c5f4 100644 ---

[PATCH v2 30/31] arm64: Build infrastructure

2012-08-14 Thread Catalin Marinas
This patch adds Makefile and Kconfig files required for building an AArch64 kernel. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com --- arch/arm64/Kconfig | 261 ++ arch/arm64/Kconfig.debug

[PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-14 Thread Catalin Marinas
The patch adds the kernel booting and the initial setup code. Documentation/arm64/booting.txt describes the booting protocol on the AArch64 Linux kernel. This is subject to change following the work on boot standardisation, ACPI. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by:

[PATCH v2 03/31] arm64: Exception handling

2012-08-14 Thread Catalin Marinas
The patch contains the exception entry code (kernel/entry.S), pt_regs structure and related accessors, undefined instruction trapping and stack tracing. AArch64 Linux kernel (including kernel threads) runs in EL1 mode using the SP1 stack. The vectors don't have a fixed address, only alignment

[PATCH v2 04/31] arm64: MMU definitions

2012-08-14 Thread Catalin Marinas
The virtual memory layout is described in Documentation/arm64/memory.txt. This patch adds the MMU definitions for the 4KB and 64KB translation table configurations. The SECTION_SIZE is 2MB with 4KB page and 512MB with 64KB page configuration. PHYS_OFFSET is calculated at run-time and stored in a

Re: linux-next: Tree for Aug 14 (media/dvb/dvb-usb-v2/anysee)

2012-08-14 Thread Randy Dunlap
On 08/13/2012 08:55 PM, Stephen Rothwell wrote: Hi all, Changes since 20120813: on x86_64: In file included from drivers/media/dvb/dvb-usb-v2/anysee.c:34:0: drivers/media/dvb/dvb-usb-v2/anysee.h:51:0: warning: debug_dump redefined drivers/media/dvb/dvb-usb-v2/anysee.h:47:0: note: this

Re: workqueues and percpu (was: [PATCH] dm: remake of the verity target)

2012-08-14 Thread Tejun Heo
Hello, On Fri, Mar 09, 2012 at 02:06:23PM -0800, Mandeep Singh Baines wrote: I think the right thing to do for now is to add cpu hotplug notifier and do flush_work_sync() on the work item. We can later move that logic into workqueue and remove it from crypto. That seems like the

[PATCH v2 27/31] arm64: Loadable modules

2012-08-14 Thread Catalin Marinas
From: Will Deacon will.dea...@arm.com This patch adds support for loadable modules. Loadable modules are loaded 64MB below the kernel image due to branch relocation restrictions (see Documentation/arm64/memory.txt). Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas

[PATCH v2 10/31] arm64: TLB maintenance functionality

2012-08-14 Thread Catalin Marinas
This patch adds the TLB maintenance functions. There is no distinction made between the I and D TLBs. TLB maintenance operations are automatically broadcast between CPUs in hardware. The inner-shareable operations are always present, even on UP systems. NOTE: Large part of this patch to be

[PATCH v2 15/31] arm64: SMP support

2012-08-14 Thread Catalin Marinas
This patch adds SMP initialisation and spinlocks implementation for AArch64. The spinlock support uses the new load-acquire/store-release instructions to avoid explicit barriers. The architecture also specifies that an event is automatically generated when clearing the exclusive monitor state to

[PATCH v2 18/31] arm64: VDSO support

2012-08-14 Thread Catalin Marinas
From: Will Deacon will.dea...@arm.com This patch adds VDSO support for 64-bit applications. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the user-accessible generic counter). Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin

[PATCH v2 16/31] arm64: ELF definitions

2012-08-14 Thread Catalin Marinas
This patch adds definitions for the ELF format, including personality personality setting and EXEC_PAGESIZE. The are only two hwcap definitions for 64-bit applications - HWCAP_FP and HWCAP_ASIMD. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com

[PATCH v2 11/31] arm64: IRQ handling

2012-08-14 Thread Catalin Marinas
From: Marc Zyngier marc.zyng...@arm.com This patch adds the support for IRQ handling. The actual interrupt controller will be part of a separate patch (going into drivers/irqchip/). Signed-off-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by:

[PATCH v2 19/31] arm64: Signal handling support

2012-08-14 Thread Catalin Marinas
This patch adds support for signal handling. The sigreturn is done via VDSO, introduced by a previous patch. The SA_RESTORER is still defined as it is required for 32-bit (compat) support but it is not to be used for 64-bit applications. Signed-off-by: Will Deacon will.dea...@arm.com

[PATCH v2 12/31] arm64: Atomic operations

2012-08-14 Thread Catalin Marinas
This patch introduces the atomic, mutex and futex operations. Many atomic operations use the load-acquire and store-release operations which imply barriers, avoiding the need for explicit DMB. Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Catalin Marinas catalin.mari...@arm.com

[PATCH v2 13/31] arm64: Device specific operations

2012-08-14 Thread Catalin Marinas
This patch adds several definitions for device communication, including I/O accessors and ioremap(). The __raw_* accessors are implemented as inline asm to avoid compiler generation of post-indexed accesses (less efficient to emulate in a virtualised environment). Signed-off-by: Will Deacon

[PATCH v2 14/31] arm64: DMA mapping API

2012-08-14 Thread Catalin Marinas
This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility and it currently supports swiotlb. This patch could be simplified further if the DMA accesses are coherent (not mandated by the architecture) or if corresponding hooks are placed in the generic swiotlb code to

[PATCH v2 20/31] arm64: User access library functions

2012-08-14 Thread Catalin Marinas
This patch add support for various user access functions. These functions use the standard LDR/STR instructions and not the LDRT/STRT variants in order to allow kernel addresses (after set_fs(KERNEL_DS)). Signed-off-by: Will Deacon will.dea...@arm.com Signed-off-by: Marc Zyngier

[PATCH v2 24/31] arm64: Add support for /proc/sys/debug/exception-trace

2012-08-14 Thread Catalin Marinas
This patch allows setting of the show_unhandled_signals variable via /proc/sys/debug/exception-trace. The default value is currently 1 showing unhandled user faults (undefined instructions, data aborts) and invalid signal stack frames. Signed-off-by: Catalin Marinas catalin.mari...@arm.com ---

Re: linux-next: Tree for Aug 14 (drivers/input/touchscreen/edt-ft5x06.c)

2012-08-14 Thread Randy Dunlap
On 08/13/2012 08:55 PM, Stephen Rothwell wrote: Hi all, Changes since 20120813: on x86_64, when CONFIG_DEBUG_FS is not enabled: drivers/input/touchscreen/edt-ft5x06.c: In function 'edt_ft5x06_ts_remove': drivers/input/touchscreen/edt-ft5x06.c:846:14: error: 'struct edt_ft5x06_ts_data'

[PATCH v2 07/31] arm64: Process management

2012-08-14 Thread Catalin Marinas
The patch adds support for thread creation and context switching. The context switching CPU specific code is introduced with the CPU support patch (part of the arch/arm64/mm/proc.S file). AArch64 supports ASID-tagged TLBs and the ASID can be either 8 or 16-bit wide (detectable via the

[PATCH v2 09/31] arm64: Cache maintenance routines

2012-08-14 Thread Catalin Marinas
The patch adds functionality required for cache maintenance. The AArch64 architecture mandates non-aliasing VIPT or PIPT D-cache and VIPT (may have aliases) or ASID-tagged VIVT I-cache. Cache maintenance operations are automatically broadcast in hardware between CPUs. Signed-off-by: Will Deacon

[PATCH v2 00/31] AArch64 Linux kernel port

2012-08-14 Thread Catalin Marinas
This is the 2nd version of the set of patches implementing Linux kernel support for the 64-bit ARM architecture (AArch64). Thanks to all who provided feedback on the previous version. The Linux kernel patches are available on this tree:

[PATCH v2 08/31] arm64: CPU support

2012-08-14 Thread Catalin Marinas
This patch adds AArch64 CPU specific functionality. It assumes that the implementation is generic to AArch64 and does not require specific identification. Different CPU implementations may require the setting of various ACTLR_EL1 bits but such information is not currently available and it should

Re: efi_pstore: question about how to remove create_sysfs_entry() from a write callback.

2012-08-14 Thread Mike Waychison
On Tue, Aug 14, 2012 at 9:05 AM, Seiji Aguchi seiji.agu...@hds.com wrote: Hi, I'm sending an email to discuss how to remove create_sysfs_entry() from a write callback. [Problem] Current efi_pstore creates sysfs entries ,which enable users to access to NVRAM, in a write callback. If a

Re: [PATCH 2/5] workqueue: change value of lcpu in queue_delayed_work_on()

2012-08-14 Thread JoonSoo Kim
Why not just do if (cpu == WORK_CPU_UNBOUND) cpu = raw_smp_processor_id(); if (!(wq-flags...) { ... if (gcwq gcwq-cpu != WORK_CPU_UNBOUND) lcpu = gcwq-cpu; else

[PATCH 0/2] Align MIPS swapper_pg_dir for faster code.

2012-08-14 Thread David Daney
From: David Daney david.da...@cavium.com The MIPS swapper_pg_dir needs 64K alignment for faster TLB refills in kernel mappings. There are two parts to the patch set: 1) Modify generic vmlinux.lds.h to allow architectures to place additional sections at the start of .bss. This allows

[PATCH 2/2] MIPS: Align swapper_pg_dir to 64K for better TLB Refill code.

2012-08-14 Thread David Daney
From: David Daney david.da...@cavium.com We can save an instruction in the TLB Refill path for kernel mappings by aligning swapper_pg_dir on a 64K boundary. The address of swapper_pg_dir can be generated with a single LUI instead of LUI/{D}ADDUI. The alignment of __init_end is bumped up to 64K

[PATCH 1/2] vmlinux.lds.h: Allow architectures to add sections to the front of .bss

2012-08-14 Thread David Daney
From: David Daney david.da...@cavium.com Follow-on MIPS patch will put an object here that needs 64K alignment to minimize padding. For those architectures that don't define BSS_FIRST_SECTIONS, there is no change. Signed-off-by: David Daney david.da...@cavium.com ---

Re: [rfc patch] fs,reiserfs: unlock superblock before callling reiserfs_quota_on_mount()

2012-08-14 Thread Mike Galbraith
On Tue, 2012-08-14 at 13:44 -0400, Steven Rostedt wrote: On Tue, 2012-08-14 at 19:26 +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 17:18 +0200, Thomas Gleixner wrote: On Tue, 14 Aug 2012, Mike Galbraith wrote: On Tue, 2012-08-14 at 16:39 +0200, Mike Galbraith wrote: On

[PATCH v2 0/6] system_highpri_wq

2012-08-14 Thread Joonsoo Kim
Change from v1 [ALL] Add cover-letter [ALL] Rebase on git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-3.7 [1/6] No change [2/6] First added into this series. [3/6] Add change log to clarify what pacth do, Add logic to handle the case @cpu is WORK_CPU_UNBOUND [4/6] Fix awsome

[PATCH v2 2/6] workqueue: correct req_cpu in trace_workqueue_queue_work()

2012-08-14 Thread Joonsoo Kim
When we do tracing workqueue_queue_work(), it records requested cpu. But, if !(@wq-flag WQ_UNBOUND) and @cpu is WORK_CPU_UNBOUND, requested cpu is changed as local cpu. In case of @wq-flag WQ_UNBOUND, above change is not occured, therefore it is reasonable to correct it. Use temporary local

[PATCH v2 4/6] workqueue: introduce system_highpri_wq

2012-08-14 Thread Joonsoo Kim
Commit 3270476a6c0ce322354df8679652f060d66526dc ('workqueue: reimplement WQ_HIGHPRI using a separate worker_pool') introduce separate worker pool for HIGHPRI. When we handle busyworkers for gcwq, it can be normal worker or highpri worker. But, we don't consider this difference in rebind_workers(),

[PATCH v2 1/6] workqueue: use enum value to set array size of pools in gcwq

2012-08-14 Thread Joonsoo Kim
Commit 3270476a6c0ce322354df8679652f060d66526dc ('workqueue: reimplement WQ_HIGHPRI using a separate worker_pool') introduce separate worker_pool for HIGHPRI. Although there is NR_WORKER_POOLS enum value which represent size of pools, definition of worker_pool in gcwq doesn't use it. Using it

[PATCH v2 6/6] workqueue: use system_highpri_wq for unbind_work

2012-08-14 Thread Joonsoo Kim
To speed cpu down processing up, use system_highpri_wq. As scheduling priority of workers on it is higher than system_wq and it is not contended by other normal works on this cpu, work on it is processed faster than system_wq. Signed-off-by: Joonsoo Kim js1...@gmail.com diff --git

[PATCH v2 5/6] workqueue: use system_highpri_wq for highpri workers in rebind_workers()

2012-08-14 Thread Joonsoo Kim
In rebind_workers(), we do inserting a work to rebind to cpu for busy workers. Currently, in this case, we use only system_wq. This makes a possible error situation as there is mismatch between cwq-pool and worker-pool. To prevent this, we should use system_highpri_wq for highpri worker to match

[PATCH v2 3/6] workqueue: change value of lcpu in __queue_delayed_work_on()

2012-08-14 Thread Joonsoo Kim
We assign cpu id into work struct's data field in __queue_delayed_work_on(). In current implementation, when work is come in first time, current running cpu id is assigned. If we do __queue_delayed_work_on() with CPU A on CPU B, __queue_work() invoked in delayed_work_timer_fn() go into the

Re: [PATCH 00/16] generic hashtable implementation

2012-08-14 Thread J. Bruce Fields
On Tue, Aug 14, 2012 at 06:24:34PM +0200, Sasha Levin wrote: SUNRPC/cache: use new hashtable implementation .. lockd: use new hashtable implementation FWIW, these look fine (and I ran them through some nfs tests and didn't see any problems). --b. -- To unsubscribe from this list: send the

[PATCH] staging: line6: variax.c: Eliminated remaining strict_stroul()s

2012-08-14 Thread Johannes Thumshirn
Eliminated remaining calls to strict_stroul() and replaced them with strict_kstrtou8(). Signed-off-by: Johannes Thumshirn morbid...@googlemail.com --- drivers/staging/line6/variax.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/line6/variax.c

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-14 Thread Rafael Aquini
On Mon, Aug 13, 2012 at 11:41:23AM +0300, Michael S. Tsirkin wrote: @@ -141,7 +151,10 @@ static void fill_balloon(struct virtio_balloon *vb, size_t num) set_page_pfns(vb-pfns + vb-num_pfns, page); vb-num_pages += VIRTIO_BALLOON_PAGES_PER_PAGE;

RE: [PATCH 1/2 v2] staging: comedi: new adl_pci7x3x driver

2012-08-14 Thread H Hartley Sweeten
On Tuesday, August 14, 2012 1:59 AM, Ian Abbott wrote: On 2012-08-14 02:36, H Hartley Sweeten wrote: On Monday, August 13, 2012 6:30 PM, Greg KH wrote: On Fri, Aug 03, 2012 at 10:28:18AM -0700, H Hartley Sweeten wrote: Currently the ADLink PCI-7230 and PCI-7432 Isolated Digital I/O Boards are

Re: [PATCH v2 5/6] workqueue: use system_highpri_wq for highpri workers in rebind_workers()

2012-08-14 Thread Tejun Heo
On Wed, Aug 15, 2012 at 03:10:15AM +0900, Joonsoo Kim wrote: In rebind_workers(), we do inserting a work to rebind to cpu for busy workers. Currently, in this case, we use only system_wq. This makes a possible error situation as there is mismatch between cwq-pool and worker-pool. To prevent

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-14 Thread Al Viro
On Tue, Aug 14, 2012 at 06:03:45PM +0400, Cyrill Gorcunov wrote: This patch brings ability to plug in auxiliary fdinfo providers. For example in further patches eventfd, evenpoll and fsnotify will print out information associated with files. This feature is CONFIG_CHECKPOINT_RESTORE guarded

Re: [PATCH v2 2/6] workqueue: correct req_cpu in trace_workqueue_queue_work()

2012-08-14 Thread Tejun Heo
Hello, On Wed, Aug 15, 2012 at 03:10:12AM +0900, Joonsoo Kim wrote: When we do tracing workqueue_queue_work(), it records requested cpu. But, if !(@wq-flag WQ_UNBOUND) and @cpu is WORK_CPU_UNBOUND, requested cpu is changed as local cpu. In case of @wq-flag WQ_UNBOUND, above change is not

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-14 Thread Cyrill Gorcunov
On Tue, Aug 14, 2012 at 07:31:42PM +0100, Al Viro wrote: Initially we considered to inject some show metod to file_operations but since there really a number of file_operations declared inside kernel (and in real the further patches cover onle eventfd/epoll/inotify) the waste of memory

Re: [PATCH 0/2] Align MIPS swapper_pg_dir for faster code.

2012-08-14 Thread Arnd Bergmann
On Tuesday 14 August 2012, David Daney wrote: Since the initial use of the code is for MIPS, perhaps both parts could be merged by Ralf's tree (after collecting any Acked-bys). Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: linux-next: Tree for Aug 14 (media/dvb/dvb-usb-v2/anysee)

2012-08-14 Thread Antti Palosaari
On 08/14/2012 08:54 PM, Randy Dunlap wrote: On 08/13/2012 08:55 PM, Stephen Rothwell wrote: Hi all, Changes since 20120813: on x86_64: In file included from drivers/media/dvb/dvb-usb-v2/anysee.c:34:0: drivers/media/dvb/dvb-usb-v2/anysee.h:51:0: warning: debug_dump redefined

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-14 Thread Rafael Aquini
On Tue, Aug 14, 2012 at 11:33:20AM +0300, Michael S. Tsirkin wrote: On Tue, Aug 14, 2012 at 09:29:49AM +0930, Rusty Russell wrote: On Mon, 13 Aug 2012 11:41:23 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Aug 10, 2012 at 02:55:15PM -0300, Rafael Aquini wrote: +/* + *

Re: [PATCH 1/2] ARM: local timers: Unmask interrupt before new TVAL is set

2012-08-14 Thread Rohit Vaswani
On 8/11/2012 3:17 AM, Marc Zyngier wrote: On Fri, 10 Aug 2012 14:57:34 -0700, Rohit Vaswani rvasw...@codeaurora.org wrote: Level triggered interrupt is deasserted when a new TVAL is written only when the interrupt is unmasked. Make sure that the interrupt is unmasked in CTL register before TVAL

RE: efi_pstore: question about how to remove create_sysfs_entry() from a write callback.

2012-08-14 Thread Seiji Aguchi
Can we not serialize this with efivars-lock if it is updated to disable interrupts? A loop in the workqueue that locks, iterates through -get_next_variable, and compares against searches in efivars-list should work, no? If my understanding is correct, your pseudo code is as follows.

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-14 Thread Anthony Liguori
Marcelo Tosatti mtosa...@redhat.com writes: On Tue, Aug 14, 2012 at 05:55:54PM +0300, Yan Vugenfirer wrote: On Aug 14, 2012, at 1:42 PM, Jan Kiszka wrote: On 2012-08-14 10:56, Daniel P. Berrange wrote: On Mon, Aug 13, 2012 at 03:21:32PM -0300, Marcelo Tosatti wrote: On Wed, Aug 08,

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Thomas Gleixner
On Wed, 8 Aug 2012, Tejun Heo wrote: Timer internals are protected by irqsafe lock but the lock is naturally dropped and irq enabled while a timer is executed. This makes dequeueing timer for execution and the actual execution non-atomic against IRQs. No matter what the timer function does,

Re: [PATCH v2 2/6] workqueue: correct req_cpu in trace_workqueue_queue_work()

2012-08-14 Thread JoonSoo Kim
2012/8/15 Tejun Heo t...@kernel.org: Hello, On Wed, Aug 15, 2012 at 03:10:12AM +0900, Joonsoo Kim wrote: When we do tracing workqueue_queue_work(), it records requested cpu. But, if !(@wq-flag WQ_UNBOUND) and @cpu is WORK_CPU_UNBOUND, requested cpu is changed as local cpu. In case of

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-14 Thread Greg Thelen
On Mon, Aug 13 2012, Glauber Costa wrote: + WARN_ON(mem_cgroup_is_root(memcg)); + size = (1 order) PAGE_SHIFT; + memcg_uncharge_kmem(memcg, size); + mem_cgroup_put(memcg); Why do we need ref-counting here ? kmem res_counter cannot work as reference ? This is of course the pair of the

Re: [PATCH v2 3/6] workqueue: change value of lcpu in __queue_delayed_work_on()

2012-08-14 Thread Tejun Heo
On Wed, Aug 15, 2012 at 03:10:13AM +0900, Joonsoo Kim wrote: We assign cpu id into work struct's data field in __queue_delayed_work_on(). In current implementation, when work is come in first time, current running cpu id is assigned. If we do __queue_delayed_work_on() with CPU A on CPU B,

Re: [PATCH v3] mmc: card: Skip secure option for MoviNAND.

2012-08-14 Thread Jae hoon Chung
Looks good to me Acked-by: Jaehoon Chung jh80.ch...@samsung.com 2012/8/14 IAN CHEN ian.cy.c...@samsung.com: For several MoviNAND, there are some known issue with secure option. For these specific MoviNAND device, we skip secure option. You could refer this discussion in XDA developers.

miss-leading help in configuration options

2012-08-14 Thread Stefan Beller
I was configuring a kernel build and stumbled across some options, which default to [n], but the help says If unsure, say Y. Also the other way round defaulting to [y], but the help saying If unsure, say N. So now I am really unsure, what to pick. Here is a list of options, which I found with a

pull request: wireless 2012-08-14

2012-08-14 Thread John W. Linville
commit 1e55217e174f4e6920fd441dcd3aaf8e37645460 Dave, This batch of fixes is intended for 3.6. Alexey Khoroshilov provides a potential memory leak in rndis_wlan. Bob Copeland gives us an ath5k fix for a lockdep problem. Dan Carpenter fixes a signedness mismatch in at76c50x. Felix Fietkau

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, Thomas. On Tue, Aug 14, 2012 at 08:55:16PM +0200, Thomas Gleixner wrote: * mod_delayed_work() can't be used from IRQ handlers. This function does not exist. So what? It makes the workqueue users messy. It's difficult to get completely correct and subtle errors are difficult to

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Thomas Gleixner
On Mon, 13 Aug 2012, Tejun Heo wrote: On Wed, Aug 08, 2012 at 11:10:24AM -0700, Tejun Heo wrote: Timer internals are protected by irqsafe lock but the lock is naturally dropped and irq enabled while a timer is executed. This makes dequeueing timer for execution and the actual execution

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-14 Thread Marcelo Tosatti
On Tue, Aug 14, 2012 at 01:53:01PM -0500, Anthony Liguori wrote: Marcelo Tosatti mtosa...@redhat.com writes: On Tue, Aug 14, 2012 at 05:55:54PM +0300, Yan Vugenfirer wrote: On Aug 14, 2012, at 1:42 PM, Jan Kiszka wrote: On 2012-08-14 10:56, Daniel P. Berrange wrote: On Mon, Aug

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-14 Thread Tejun Heo
Hello, On Tue, Aug 14, 2012 at 09:16:16PM +0200, Thomas Gleixner wrote: Why the hell are you trying to rush stuff which affects a well maintained part of the kernel through your own tree w/o having the courtesy of contacting the maintainer politely instead of sending an ultimatum? You

RE: efi_pstore: question about how to remove create_sysfs_entry() from a write callback.

2012-08-14 Thread Seiji Aguchi
Mike, Previous pseudo code was not correct. More precisely, it is as follows. But, we still need to alloc memory dynamically in the part of Save information about new entry because a workqueue can't know how many new entries in advance. spin_lock_irqsave(efivars_lock); do {

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-14 Thread Michael S. Tsirkin
On Tue, Aug 14, 2012 at 03:44:09PM -0300, Rafael Aquini wrote: On Tue, Aug 14, 2012 at 11:33:20AM +0300, Michael S. Tsirkin wrote: On Tue, Aug 14, 2012 at 09:29:49AM +0930, Rusty Russell wrote: On Mon, 13 Aug 2012 11:41:23 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Aug

[PATCH] mtd: m25p80: add support for Micron N25Q256A

2012-08-14 Thread Vivien Didelot
The manufacturer datasheet can be found on the Micron website, under the name n25q_256mb_3v_65nm.pdf: http://www.micron.com/search?source=psq=n25q_256mb_3v_65nm Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/mtd/devices/m25p80.c | 3 +++ 1 file changed, 3

Re: [PATCH 02/19] Input: Improve the events-per-packet estimate

2012-08-14 Thread Ping Cheng
On Sun, Aug 12, 2012 at 2:42 PM, Henrik Rydberg rydb...@euromail.se wrote: Many MT devices send a number of keys along with the mt information. This patch makes sure that there is room for them in the packet buffer. Signed-off-by: Henrik Rydberg rydb...@euromail.se ---

Re: [PATCH v7 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-08-14 Thread Michael S. Tsirkin
On Tue, Aug 14, 2012 at 02:44:05PM -0300, Rafael Aquini wrote: On Mon, Aug 13, 2012 at 11:26:19AM +0300, Michael S. Tsirkin wrote: +static inline bool movable_balloon_page(struct page *page) +{ + return (page-mapping page-mapping == balloon_mapping); I am guessing this needs

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-14 Thread Anthony Liguori
Marcelo Tosatti mtosa...@redhat.com writes: On Tue, Aug 14, 2012 at 01:53:01PM -0500, Anthony Liguori wrote: Marcelo Tosatti mtosa...@redhat.com writes: On Tue, Aug 14, 2012 at 05:55:54PM +0300, Yan Vugenfirer wrote: On Aug 14, 2012, at 1:42 PM, Jan Kiszka wrote: On 2012-08-14

<    6   7   8   9   10   11   12   13   14   >