[PATCH v3, part2 16/20] PCI, via-camera: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance via-camera drviers to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Daniel Drake d...@laptop.org Cc: Jonathan Corbet cor...@lwn.net Cc: Javier Martin javier.mar...@vista-silicon.com Cc:

[PATCH v3, part2 17/20] PCI, iommu: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance iommu drviers to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Joerg Roedel j...@8bytes.org Cc: Ingo Molnar mi...@kernel.org Cc: Donald Dutile ddut...@redhat.com Cc: Hannes Reinecke h...@suse.de Cc: Li, Zhen-Hua zhen-h...@hp.com Cc:

[PATCH v3, part2 18/20] PCI, eeepc-laptop: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance eeepc-laptop drvier to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Corentin Chary corentin.ch...@gmail.com Cc: Matthew Garrett matthew.garr...@nebula.com Cc: acpi4asus-u...@lists.sourceforge.net Cc: platform-driver-...@vger.kernel.org

[PATCH v3, part2 19/20] PCI, asus-wmi: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance asus-wmi drvier to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Corentin Chary corentin.ch...@gmail.com Cc: Matthew Garrett matthew.garr...@nebula.com Cc: acpi4asus-u...@lists.sourceforge.net Cc: platform-driver-...@vger.kernel.org Cc:

[PATCH v3, part2 20/20] PCI, ARM: use hotplug-safe PCI bus iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance ARM architecture specific code to use new hotplug-safe PCI bus iterators to walk PCI buses. Change pcibios_report_status implementation so that it doesn't access pci_root_buses global list. The pci_root_buses list will be scheduled to be removed. Signed-off-by: Jiang Liu

[PATCH v3, part2 15/20] PCI, EDAC: use hotplug-safe PCI bus iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance EDAC drviers to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Doug Thompson dougthomp...@xmission.com Cc: linux-e...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[PATCH v3, part2 03/20] PCI, hotplug: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance PCI hotplug drivers to use hotplug-safe iterators to walk PCI buses. In other words, replace pci_find_bus(), pci_find_next_bus() and pci_root_buses with pci_bus_exists(), pci_get_bus(), pci_get_next_bus() and pci_get_next_root_bus() etc. Signed-off-by: Jiang Liu jiang@huawei.com

[PATCH v3, part2 09/20] PCI, mn10300: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance mn10300 architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Koichi Yasutake yasutake.koi...@jp.panasonic.com Cc: linux-kernel@vger.kernel.org ---

[PATCH v3, part2 01/20] PCI: introduce hotplug-safe PCI bus iterators

2013-05-26 Thread Jiang Liu
Introduce hotplug-safe PCI bus iterators as below, which hold a reference on the returned PCI bus object. bool pci_bus_exists(int domain, int busnr); struct pci_bus *pci_get_bus(int domain, int busnr); struct pci_bus *pci_get_next_bus(struct pci_bus *from); struct pci_bus

[PATCH v3, part2 02/20] PCI, core: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance PCI core to use hotplug-safe iterators to walk PCI buses. In other words, replace pci_find_bus(), pci_find_next_bus() and pci_root_buses with pci_bus_exists(), pci_get_bus(), pci_get_next_bus() and pci_get_next_root_bus() etc. Signed-off-by: Jiang Liu jiang@huawei.com Acked-by:

[PATCH v3, part2 05/20] PCI, Alpha: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread Jiang Liu
Enhance Alpha architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Cc: Greg Kroah-Hartman

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
On Sun, May 26, 2013 at 11:30 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 10:55:32AM -0400, KOSAKI Motohiro wrote: On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: +

Re: [PATCH 0/3] pinctrl: pinctrl-single: Add full fledge support to configure multiple pins of different modules

2013-05-26 Thread Haojian Zhuang
On 24 May 2013 17:03, Linus Walleij linus.wall...@linaro.org wrote: On Tue, May 21, 2013 at 4:07 PM, Manjunathappa, Prakash prakash...@ti.com wrote: Based function-mask and submask preoperties patch allocates and registers pins. Patch is fixes the issue reported and discussed here:

Re: [Patch v1] skbuff: Hide GFP_ATOMIC page allocation failures for dropped packets

2013-05-26 Thread Sergei Shtylyov
Hello. On 26-05-2013 17:17, atom...@redhat.com wrote: From: Aaron Tomlin atom...@redhat.com Failed GFP_ATOMIC allocations by the network stack result in dropped packets, which will be received on a subsequent retransmit, and an unnecessary, noisy warning with a kernel backtrace. These

Re: [PATCH 02/02] swapon: allow a more flexible swap discard policy

2013-05-26 Thread KOSAKI Motohiro
(5/26/13 12:31 AM), Rafael Aquini wrote: Introduce the necessary changes to swapon(8) allowing a sysadmin to leverage the new changes introduced to sys_swapon by swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES, therefore allowing a more flexible set of choices when selection the

Re: [PATCH v3] watchdog: core: don't try to stop device if not running

2013-05-26 Thread Wim Van Sebroeck
Hi Hector, A watchdog device may be stopped from userspace using WDIOC_SETOPTIONS ioctl and flag WDIOS_DISABLECARD. If the device is closed after this operation, watchdog_release() is called and status bits checked for stopping it. Besides, if the device has not been unregistered a critical

[PATCH] hid: driver for PS2/3 Buzz controllers

2013-05-26 Thread Colin Leitner
Added a driver for PlayStation 2/3 Buzz controllers, which exposes the LEDs and maps all buttons to BTN_TRIGGER_HAPPY1 to 20. Applies to kernel version 3.10.0-rc2. Tested with Debian 7 and with a minor change on kernel 3.8.5 on Fedora 18. Couldn't test the wireless version, but what can be

Re: [PATCH] powerpc: Make Book E watchdog reset type configurable

2013-05-26 Thread Wim Van Sebroeck
Hi Dirk, having a closer look, I realized booke_wdt is not device-tree based yet. Migrating it would come close to a rewrite, breaking compatibility for all current users. Sorry, this is way beyond the time I have for this project. So I suggest merging the change the way it is, as it is

Re: [PATCH v3, part2 11/20] PCI, SPARC: use hotplug-safe iterators to walk PCI buses

2013-05-26 Thread David Miller
From: Jiang Liu liu...@gmail.com Date: Sun, 26 May 2013 23:53:08 +0800 Enhance SPARC architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu jiang@huawei.com Acked-by: David S. Miller da...@davemloft.net -- To unsubscribe from this list: send

Re: [PATCH v3] mmc: card: Adding support for sanitize in eMMC 4.5

2013-05-26 Thread Chris Ball
Hi Maya, On Thu, Apr 18 2013, Maya Erez wrote: The sanitize support is added as a user-app ioctl call, and was removed from the block-device request, since its purpose is to be invoked not via File-System but by a user. This feature deletes the unmap memory region of the eMMC card, by

Re: [PATCH] mmc: atmel-mci: convert to dma_request_slave_channel_compat()

2013-05-26 Thread Chris Ball
Hi Nicolas, On Fri, May 10 2013, Nicolas Ferre wrote: From: Ludovic Desroches ludovic.desroc...@atmel.com Use generic DMA DT helper. Platforms booting with or without DT populated are both supported. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Jean-Christophe

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Linus Torvalds
On Sun, May 26, 2013 at 2:08 AM, Manfred Spraul manf...@colorfullife.com wrote: I've split my patch into 4 parts: - 1: Fix-missing-wakeups-in-do_smart_update - 2: seperate-wait-for-zero-and-alter-tasks - 3: Always-use-only-one-queue-for-alter-operations - 4:

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Casey Schaufler
On 5/25/2013 10:19 PM, Linus Torvalds wrote: On Sat, May 25, 2013 at 10:04 PM, James Morris jmor...@namei.org wrote: On Sat, 25 May 2013, Linus Torvalds wrote: But I haven't even looked at what non-selinux setups do to performance. Last time I tried Ubuntu (they still use apparmor, no?),

Re: rcu_read_lock() used illegally while idle!

2013-05-26 Thread Jiri Olsa
On Sat, May 25, 2013 at 02:20:04PM -0400, Steven Rostedt wrote: On Sat, 2013-05-25 at 09:59 -0400, Dave Jones wrote: On Fri, May 24, 2013 at 03:23:40PM -0400, Steven Rostedt wrote: On Fri, 2013-05-24 at 10:23 -0400, Dave Jones wrote: .config:

[PATCH] w1: add family based automatic module loading

2013-05-26 Thread Alexander Stein
This patch allows the 1-wire bus to autoload the corresponding module for each slave being attached. This works similar to bluetooth protocols. Signed-off-by: Alexander Stein alexander.st...@informatik.tu-chemnitz.de --- Documentation/w1/w1.generic| 4 ++-- drivers/w1/slaves/w1_ds2408.c | 1

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
On Sun 26-05-13 07:58:42, KOSAKI Motohiro wrote: As KOSAKI Motohiro mentioned, memory hotplug don't support 32bit since it was born, Why? any reference? This reasoning is really weak. I have no seen any highmem support in memory hotplug code and I don't think this patch fixes all

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
On Sun 26-05-13 17:06:17, Wanpeng Li wrote: On Sun, May 26, 2013 at 11:00:54AM +0200, Michal Hocko wrote: On Sun 26-05-13 13:58:38, Wanpeng Li wrote: As KOSAKI Motohiro mentioned, memory hotplug don't support 32bit since it was born, Why? any reference? This reasoning is really weak.

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Linus Torvalds
On Sun, May 26, 2013 at 10:59 AM, Casey Schaufler ca...@schaufler-ca.com wrote: The whole secid philosophy comes out of the need to keep security out of other people's way. It has performance impact. Sure, SELinux hashes lookups, but a blob pointer gets you right where you want to be. When we

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Casey Schaufler
On 5/26/2013 5:02 AM, Theodore Ts'o wrote: On Sat, May 25, 2013 at 11:33:46AM -0700, Casey Schaufler wrote: Now I'll put on my Smack maintainer hat. Performance improvement is always welcome, but I would rather see attention to performance of the LSM architecture than SELinux specific hacks.

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Casey Schaufler
On 5/26/2013 11:17 AM, Linus Torvalds wrote: On Sun, May 26, 2013 at 10:59 AM, Casey Schaufler ca...@schaufler-ca.com wrote: The whole secid philosophy comes out of the need to keep security out of other people's way. It has performance impact. Sure, SELinux hashes lookups, but a blob pointer

Re: WARNING: at kernel/rcutree.c:388 rcu_eqs_enter

2013-05-26 Thread Paul E. McKenney
On Thu, May 23, 2013 at 11:51:52AM -0400, Dave Jones wrote: On Wed, May 22, 2013 at 02:51:29AM -0700, Paul E. McKenney wrote: trace: Allow idle-safe tracepoints to be called from irq __DECLARE_TRACE_RCU() currently creates an _rcuidle() tracepoint which may safely be invoked from

Re: [RFC][PATCH] ftrace/rcu: Prevent function tracer from calling into rcu debug checks

2013-05-26 Thread Paul E. McKenney
On Fri, May 24, 2013 at 10:22:27PM -0400, Steven Rostedt wrote: I was testing a config for one bug and triggered a livelock lockup. A NMI watchdog dump showed what was happening: [ 65.972000] NMI backtrace for cpu 2 [ 65.972000] CPU: 2 PID: 48 Comm: kworker/2:1 Not tainted

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Theodore Ts'o
On Sun, May 26, 2013 at 11:23:01AM -0700, Casey Schaufler wrote: I believe that Yama points to a serious change in the way operating systems are being developed. The desktop is not the sweet spot for Linux development, nor is the enterprise server. Six years ago the Bell LaPadula

[GIT PULL] Please pull NFS client bugfixes

2013-05-26 Thread Myklebust, Trond
Hi Linus, The following changes since commit f722406faae2d073cc1d01063d1123c35425939e: Linux 3.10-rc1 (2013-05-11 17:14:08 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-3.10-3 for you to fetch changes up to

Re: Stupid VFS name lookup interface..

2013-05-26 Thread Linus Torvalds
On Sun, May 26, 2013 at 12:11 PM, Theodore Ts'o ty...@mit.edu wrote: And if we can't rip out that fundamental assumption, it's not obvious to me it will be possible to simplify the core LSM architecture. One thing that may be sufficient is to maintain a complex model as a *possible* case, but

[PATCH 1/1] bfa: Fix for possible null pointer dereference

2013-05-26 Thread Jakob Normark
Fix for cppcheck error in bfa_fcs_lport.c Kernel version: v3.10-rc2 Signed-off-by: Jakob Normark jakobnorm...@gmail.com --- drivers/scsi/bfa/bfa_fcs_lport.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/bfa/bfa_fcs_lport.c

Re: [PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-26 Thread Sebastian Hesselbarth
On 05/26/2013 06:04 AM, David Miller wrote: From: Sebastian Hesselbarthsebastian.hesselba...@gmail.com Date: Wed, 22 May 2013 22:04:01 +0200 + memcpy((void *)p-value, reg, 6); This cast is completely unnecessary, non-void to void pointer casts are automatic. If it is

[Patch v2] skbuff: Hide GFP_ATOMIC page allocation failures for dropped packets

2013-05-26 Thread atomlin
From: Aaron Tomlin atom...@redhat.com Since v1: - Removed unnecessary parentheses ---8--- Failed GFP_ATOMIC allocations by the network stack result in dropped packets, which will be received on a subsequent retransmit, and an unnecessary, noisy warning with a kernel backtrace. These warnings

[PATCH 1/2] MIPS: cavium-octeon: cvmx-helper-board: print unknown board warning only once

2013-05-26 Thread Aaro Koskinen
When booting a new board for the first time, the console is flooded with Unknown board messages. This is not really helpful. Board type is not going to change after the boot, so it's sufficient to print the warning only once. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi ---

[PATCH 2/2] MIPS: cavium-octeon: enable interfaces on EdgeRouter Lite

2013-05-26 Thread Aaro Koskinen
Enable interfaces on EdgeRouter Lite. Tested with cavium_octeon_defconfig and busybox shell. DHCP ping works with eth0, eth1 and eth2. The board type UBNT_E100 is taken from the sources of the vendor kernel shipped with the product. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi ---

Re: [PATCH 1/6] ASoC: ux500: Drop pinctrl sleep support

2013-05-26 Thread Mark Brown
On Fri, May 24, 2013 at 12:39:15PM +0200, Fabio Baltieri wrote: Drop pinctrl default/sleep state switching code, as it was breaking the capture interface by putting the I2S pins in hi-z mode regardless of its usage status, and not giving any real benefit. Applied all, thanks, but please do

Re: [PATCH 2/6] ASoC: ab8500-codec: Move codec ops on a separate structure

2013-05-26 Thread Mark Brown
On Fri, May 24, 2013 at 12:39:16PM +0200, Fabio Baltieri wrote: Define ab8500 codec operations structure on its own rather than inline with snd_soc_dai_drivers to clean up the code and make the style coherent with other codec drivers. Applied this and the rest, thanks. signature.asc

Re: [PATCH] regulator: 88pm800: add regulator driver

2013-05-26 Thread Mark Brown
On Fri, May 24, 2013 at 11:01:45AM +0800, yi zhang wrote: 2013/5/23 Mark Brown broo...@kernel.org: On Wed, May 22, 2013 at 08:10:53PM +0800, yizhang.m...@gmail.com wrote: +static const unsigned int BUCK1_table[] = { + /* 0x00-0x4F: from 0.6 to 1.5875V with step 0.0125V */ + /*

[Patch v2] skbuff: Hide GFP_ATOMIC page allocation failures for dropped packets

2013-05-26 Thread atomlin
From: Aaron Tomlin atom...@redhat.com Since v1: - Removed unnecessary parentheses (sergei.shtylyov) ---8--- Failed GFP_ATOMIC allocations by the network stack result in dropped packets, which will be received on a subsequent retransmit, and an unnecessary, noisy warning with a kernel

Re: [RFC PATCHv4 1/6] arm: TI-Nspire platform code

2013-05-26 Thread Arnd Bergmann
On Saturday 25 May 2013, Daniel Tang wrote: +static struct map_desc nspire_io_desc[] __initdata = { + { + .virtual= NSPIRE_EARLY_UART_VIRT_BASE, + .pfn= __phys_to_pfn(NSPIRE_EARLY_UART_PHYS_BASE), + .length = SZ_4K, +

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Davidlohr Bueso
On Sun, 2013-05-26 at 11:08 +0200, Manfred Spraul wrote: I've split my patch into 4 parts: - 1: Fix-missing-wakeups-in-do_smart_update - 2: seperate-wait-for-zero-and-alter-tasks - 3: Always-use-only-one-queue-for-alter-operations - 4: Rename-try_atomic_semop-to-perform_atomic Linus: -

Re: [PATCH 06/13] pwm: pwm-mxs: Let device core handle pinctrl

2013-05-26 Thread Fabio Estevam
Hi Thierry, On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam fabio.este...@freescale.com wrote: Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for handling pinctrl. So remove devm_pinctrl_get_select_default() from the driver. Cc:

Re: [PATCH 06/13] pwm: pwm-mxs: Let device core handle pinctrl

2013-05-26 Thread Thierry Reding
On Sun, May 26, 2013 at 06:02:16PM -0300, Fabio Estevam wrote: Hi Thierry, On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam fabio.este...@freescale.com wrote: Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for handling pinctrl.

Re: [RFC PATCHv4 0/6] arm: Initial TI-Nspire support

2013-05-26 Thread Arnd Bergmann
On Saturday 25 May 2013, Daniel Tang wrote: Changes between v3 and v4: * Remove redundant clock-names in device tree * Re-enable bus access to some peripherals on bootup * Clean up nspire-classic-timer code. - Implement a nspire_timer_set_mode function - Removed messy IO_MATCHx and

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Stefan Richter
(Adding LKML and Greg KH, in case that there are general opinions about how a bus_type should work.) On May 26 Takashi Sakamoto wrote: Hi all, I'm a newbile for Linux Firewire subsystem and not used to IEEE 1394 bus programing in Linux. So I happy to get your advices. Currently I'm

[PATCH v5 0/8] posix timers fixlet

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com Glibc's posix timer testcase found a lot of bugs in posix timer code. This series, hopefully, fixes all of them. All patches are independent each other logically. Changes from v4 - [1/8] comments colarification, fix

[PATCH 1/8] posix-cpu-timers: don't account cpu timer after stopped thread runtime accounting

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com When tsk-signal-cputimer-running is 1, signal-cputimer (i.e. per process timer account) and tsk-sum_sched_runtime (i.e. per thread timer account) increase at the same pace because update_curr() increases both accounting. However, there is one

[PATCH 2/8] posix-cpu-timers: fix acounting delta_exec twice

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com Currently glibc rt/tst-cpuclock2 test(*) sporadically fails because scheduler delta can be accounted twice from thread_group_cputimer() and account_group_exec_runtime(). Finally, clock_nanosleep() wakes up before an argument. This is posix

[PATCH 2/8] posix-cpu-timers: fix acounting delta_exec twice

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com Currently glibc rt/tst-cpuclock2 test(*) sporadically fails because scheduler delta can be accounted twice from thread_group_cputimer() and account_group_exec_runtime(). Finally, clock_nanosleep() wakes up earlier than an argument. This is

[PATCH 3/8] posix-cpu-timers: fix wrong timer initialization

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com Currently glibc's rt/tst-cputimer1 testcase sporadically fails because a timer created by timer_create() may fire earlier than specified. posix_cpu_timer_set() uses val as current time for three purpose. 1) initialize sig-cputimer. 2)

[PATCH 4/8] posix-cpu-timers: timer functions should use timer time instead of clock time

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com For process timers, we use cpu_clock_sample_group() and cpu_timer_sample_group() correctly. However, for thread timers, we always use cpu_clock_sample(). This is wrong because a cpu_clock_sample() accounts uncommitted delta_exec too. And this

[PATCH 5/8] posix-cpu-timers: check_thread_timers() uses task_sched_runtime()

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com A type of tsk-se.sum_exec_runtime is u64. Thus, reading it is racy when running 32bit. We should use task_sched_runtime(). Cc: Olivier Langlois oliv...@trillion01.com Cc: Thomas Gleixner t...@linutronix.de Cc: Frederic Weisbecker

[PATCH 6/8] sched: task_sched_runtime introduce micro optimization

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com rq lock in task_sched_runtime() is necessary for two reasons. 1) accessing se.sum_exec_runtime is not atomic on 32bit and 2) do_task_delta_exec() require it. So, 64bit can avoid holding rq lock when add_delta is false and delta_exec is 0. Cc:

[PATCH 7/8] posix-cpu-timers: cleanup cpu_{clock,timer}_sample{,_group}

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com Now we have four similar timer related functions, cpu_clock_sample(), cpu_clock_sample_group(), cpu_timer_sample() and cpu_timer_sample_group(). For readability, make do_cpu_clock_timer_sample() and thread_cputime() helper functions and all

[PATCH 8/8] posix-cpu-timers: fix cputimer initialization mistake for {u,s}time

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com When using CPUCLOCK_VIRT or CPUCLOCK_PROF, we need to round an expire up because jiffies based accounting may point to one jiffy behind at maximum. So, current code lead to wake up posix timer too early. This patch adds one jiffy at timer

Re: [PATCH 1/7] posix-cpu-timers: don't account cpu timer after stopped thread runtime accounting

2013-05-26 Thread KOSAKI Motohiro
(5/7/13 11:24 AM), Frederic Weisbecker wrote: 2013/5/7 KOSAKI Motohiro kosaki.motoh...@gmail.com: + /* + * After turning over se.sum_exec_runtime to sig-sum_sched_runtime + * in __exit_signal(), we must not account exec_runtime for consistency. + */ + if

securebits: add exec_inherit flag to prevent changes to process credentials during execve

2013-05-26 Thread Stephen Mell
From: Stephen Mell sub.atomic.fus...@gmail.com Currently, it is nearly impossible to give a capability to a non-root user that will stick around after the first execve. This patch adds a new securebit, exec_inherit, which causes all credential modification logic to be skipped. This is already

Re: [Patch v1] skbuff: Hide GFP_ATOMIC page allocation failures for dropped packets

2013-05-26 Thread Joe Perches
On Sun, 2013-05-26 at 20:28 +0400, Sergei Shtylyov wrote: On 26-05-2013 17:17, atom...@redhat.com wrote: Failed GFP_ATOMIC allocations by the network stack result in dropped packets, which will be received on a subsequent retransmit, and an unnecessary, noisy warning with a kernel

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread KOSAKI Motohiro
(5/26/13 2:09 PM), Michal Hocko wrote: On Sun 26-05-13 07:58:42, KOSAKI Motohiro wrote: As KOSAKI Motohiro mentioned, memory hotplug don't support 32bit since it was born, Why? any reference? This reasoning is really weak. I have no seen any highmem support in memory hotplug code and I

Re: [PATCH v2 1/1] uio.c: solve memory leak

2013-05-26 Thread Cong Ding
On Thu, Apr 25, 2013 at 12:19 PM, Cong Ding ding...@gmail.com wrote: On Thu, Feb 14, 2013 at 12:43:15PM +0100, Cong Ding wrote: On Sun, Jan 20, 2013 at 10:01:41PM +0100, Hans J. Koch wrote: On Fri, Jan 18, 2013 at 02:00:50PM -0800, Greg Kroah-Hartman wrote: On Fri, Jan 18, 2013 at

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Stefan Richter
On May 26 Stefan Richter wrote: (Adding LKML and Greg KH, in case that there are general opinions about how a bus_type should work.) On May 26 Takashi Sakamoto wrote: Hi all, I'm a newbile for Linux Firewire subsystem and not used to IEEE 1394 bus programing in Linux. So I happy to

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Greg Kroah-Hartman
On Sun, May 26, 2013 at 11:35:13PM +0200, Stefan Richter wrote: I think your approach is sensible. There is of course just the little problem that firewire-core keeps the matching device_id table entry as a secret to itself. Therefore, struct ieee1394_device_id.driver_data is currently

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Linus Torvalds
On Sun, May 26, 2013 at 1:50 PM, Davidlohr Bueso davidlohr.bu...@hp.com wrote: In lack of getting my swingbench DSS environment back, I ran these changes against the semop-multi program on my laptop. For 256 threads, with Manfred's patchset the ops/sec suffers around -7.3%. Hmm. That test

Re: [PATCH 00/14] misc/ep93xx_pwm: cleanup driver for conversion to PWM framework

2013-05-26 Thread Ryan Mallon
On 25/05/13 09:19, H Hartley Sweeten wrote: This driver needs to be converted to the new PWM framework. Before converting it clean up all the cruft, H Hartley Sweeten (14): misc/ep93xx_pwm: use managed device resources misc/ep93xx_pwm: use {read,write}* instead of __raw_* versions for

Re: [RFC] Add co-maintainer for fbdev

2013-05-26 Thread Florian Tobias Schandinat
Hi Jean-Christophe, On 05/24/2013 06:56 PM, Arnd Bergmann wrote: On Friday 24 May 2013, Olof Johansson wrote: [+akpm] [+florian] Thanks for CC'ing me. Lately I got dropped frequently from the mailinglist (after 1 or 2 days). Guess I should try subscribing via my own mail server. On Fri,

[PATCH v4 1/3] mm/hugetlb: use already exist interface huge_page_shift

2013-05-26 Thread Wanpeng Li
Changelog: v1 - v2: * update alloc_bootmem_huge_page in powerpc * add Michal reviewed-by Use already exist interface huge_page_shift instead of h-order + PAGE_SHIFT. Reviewed-by: Michal Hocko mho...@suse.cz Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com ---

[PATCH v4 2/3] mm/pageblock: remove get/set_pageblock_flags

2013-05-26 Thread Wanpeng Li
Changelog: v1 - v2: * add Michal reviewed-by get_pageblock_flags and set_pageblock_flags are not used any more, this patch remove them. Reviewed-by: Michal Hocko mho...@suse.cz Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- include/linux/pageblock-flags.h | 6 -- 1

[PATCH v4 3/3] mm/hugetlb: remove hugetlb_prefault

2013-05-26 Thread Wanpeng Li
Changelog: v1 - v2: * add Michal reviewed-by hugetlb_prefault are not used any more, this patch remove it. Reviewed-by: Michal Hocko mho...@suse.cz Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- include/linux/hugetlb.h | 2 -- 1 file changed, 2 deletions(-) diff --git

Linux 3.10-rc3

2013-05-26 Thread Linus Torvalds
Another week, another rc. A *big* one. I'm not thrilled about it, and -rc3 is much bigger than -rc2 was, although there isn't anything particularly scary that stands out. Just a lot of small details. A number of people apparently missed rc2, and then made rc3. Oh, well. I can pretty much

Re: Adding fscache branch to linux-next

2013-05-26 Thread Stephen Rothwell
Hi David, On Thu, 23 May 2013 16:20:28 +0100 David Howells dhowe...@redhat.com wrote: Can you add: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache Please use git URL's when talking about git trees. To linux-next please? Added

Re: [PATCH v8 3/9] vmcore: treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/24 22:12), Vivek Goyal wrote: On Thu, May 23, 2013 at 02:49:28PM -0700, Andrew Morton wrote: On Thu, 23 May 2013 14:25:13 +0900 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com wrote: Treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list.

[PATCH 3.9-stable] NFSv4.1 Fix a pNFS session draining deadlock

2013-05-26 Thread Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it? -- From: Andy Adamson and...@netapp.com commit 774d5f14ee1ecac55f42a84ff35eb00b896b00b6 upstream On a CB_RECALL the callback service thread flushes the inode using filemap_flush prior to scheduling

linux-next: manual merge of the parisc-hd tree with Linus' tree

2013-05-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the parisc-hd tree got conflicts in arch/parisc/include/asm/processor.h and arch/parisc/kernel/irq.c between commit d96b51ec1465 (parisc: fix irq stack on UP and SMP) from Linus' tree and commit 1c92ce8487f6 (parisc: use arch_spinlock_t instead of

Re: [PATCH 1/1] rtc: rtc-ds1307: use devm_*() functions

2013-05-26 Thread Jingoo Han
On Saturday, May 25, 2013 10:51 AM, Devendra Naga wrote: On Sat, May 25, 2013 at 10:41 AM, Nikolay Balandin wrote: From: Nikolay Balandin nbalan...@dev.rtsoft.ru [.] - ds1307-rtc = rtc_device_register(client-name, client-dev, + ds1307-rtc =

[PATCH 3.9-stable] cpufreq / intel_pstate: Add additional supported CPU ID

2013-05-26 Thread Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it? -- From: Dirk Brandewie dirk.j.brande...@intel.com commit c96d53d600643ee0adfd1cb90814bd9510e62b71 upstream Add CPU ID for Ivybrigde processor. Signed-off-by: Dirk Brandewie

Re: [PATCH 3.9-stable] NFSv4.1 Fix a pNFS session draining deadlock

2013-05-26 Thread Myklebust, Trond
On Mon, 2013-05-27 at 09:23 +0900, Jonghwan Choi wrote: This patch looks like it should be in the 3.9-stable tree, should we apply it? It's a condition which appears to be extremely rare: so far, we've only seen it during extreme stress testing at NetApp. For that reason, and because it is

Re: [PATCH 2/7] Documentation/devices.txt: Remove /dev/oldmem description

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/26 9:58), Zhang Yanfei wrote: 于 2013年05月26日 07:20, Eric W. Biederman 写道: Zhang Yanfei zhangyanfei@gmail.com writes: From: Zhang Yanfei zhangyan...@cn.fujitsu.com Won't we want to keep this reservation around to so that this number doesn't get reused, and cause people confusion

Re: [PATCH 2/7] Documentation/devices.txt: Remove /dev/oldmem description

2013-05-26 Thread Zhang Yanfei
于 2013年05月27日 09:27, HATAYAMA Daisuke 写道: (2013/05/26 9:58), Zhang Yanfei wrote: 于 2013年05月26日 07:20, Eric W. Biederman 写道: Zhang Yanfei zhangyanfei@gmail.com writes: From: Zhang Yanfei zhangyan...@cn.fujitsu.com Won't we want to keep this reservation around to so that this number

Re: [PATCH] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-26 Thread Chen Gang
On 05/26/2013 06:28 PM, Chen Gang wrote: When failure occurs at the last looping cycle (when 'i == 0'), it will print bad PC value instead of (%08x) , which needs additional 1 byte. If not add 1 byte, the str will not be NUL terminated, and the next printk() will cause issue. Oh, I

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/26 15:36), Zhang Yanfei wrote: From: Zhang Yanfei zhangyan...@cn.fujitsu.com Signed-off-by: Zhang Yanfei zhangyan...@cn.fujitsu.com Cc: Dave Jones da...@redhat.com --- Documentation/devices.txt |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 2/2] f2fs: add sysfs support for controlling the gc_thread

2013-05-26 Thread Jaegeuk Kim
Hi Namjae, This is an interesting functionality. Could you describe why and when we need to do this? What are pros and cons? How can we use this? IMO, when users try to control IO latencies, it seems that they can trigger such the explicit GCs, but in order to do that, they also need to know the

Re: [PATCH v8 9/9] vmcore: support mmap() on /proc/vmcore

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/24 18:02), Maxim Uvarov wrote: 2013/5/24 Andrew Morton a...@linux-foundation.org mailto:a...@linux-foundation.org On Thu, 23 May 2013 14:25:48 +0900 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com mailto:d.hatay...@jp.fujitsu.com wrote: This patch introduces mmap_vmcore().

Re: [PATCH] arch: blackfin: kernel: using strlcpy instead of strncpy

2013-05-26 Thread Chen Gang
On 05/26/2013 03:04 PM, Chen Gang wrote: For NULL terminated string, need always be sure of ended by zero. 'command_line' is a static variable which will be initialized automatically, and cmdline_init() is __init function, so need not initialize it again, can just use strlcpy instead of

[PATCH v2] arch: blackfin: kernel: using strlcpy() instead of strncpy()

2013-05-26 Thread Chen Gang
For NULL terminated string, need always be sure of ended by zero. Just use strlcpy() instead of strncpy(). Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/blackfin/kernel/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/kernel/setup.c

Re: Weird disk idling

2013-05-26 Thread Alexander Holler
Am 26.05.2013 07:29, schrieb Fredrik Tolf: I'm sure you all know what the various fields are (except the first, Hmm, I had to look at Documentation/block/stat.txt. which is just a timestamp), so as you can see, there are 135 requests in the queue, but no reads or writes happen, in this case,

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread Zhang Yanfei
于 2013年05月27日 09:46, HATAYAMA Daisuke 写道: (2013/05/26 15:36), Zhang Yanfei wrote: From: Zhang Yanfei zhangyan...@cn.fujitsu.com Signed-off-by: Zhang Yanfei zhangyan...@cn.fujitsu.com Cc: Dave Jones da...@redhat.com --- Documentation/devices.txt |3 +-- 1 files changed, 1

[PATCH v2] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-26 Thread Chen Gang
When failure occurs at the last looping cycle (when 'i == 0'), it will print bad PC value instead of (%08x) , which needs additional 1 byte. If not add 1 byte, the 'str' may be memory overflow. Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/arm64/kernel/traps.c |2 +- 1 files

Re: [PATCH v7 03/11] KVM: MMU: fast invalidate all pages

2013-05-26 Thread Xiao Guangrong
Hi Marcelo, On 05/25/2013 04:23 AM, Marcelo Tosatti wrote: +static void kvm_zap_obsolete_pages(struct kvm *kvm) +{ +struct kvm_mmu_page *sp, *node; +LIST_HEAD(invalid_list); + +restart: +list_for_each_entry_safe_reverse(sp, node, + kvm-arch.active_mmu_pages, link) {

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Greg KH
On Sun, May 26, 2013 at 11:08:51AM +0200, Manfred Spraul wrote: I've split my patch into 4 parts: - 1: Fix-missing-wakeups-in-do_smart_update - 2: seperate-wait-for-zero-and-alter-tasks - 3: Always-use-only-one-queue-for-alter-operations - 4: Rename-try_atomic_semop-to-perform_atomic

[PATCH V2] ARM: EXYNOS: add PM dependency to PM_GENERIC_DOMAINS

2013-05-26 Thread Jingoo Han
PM_GENERIC_DOMAINS needs PM dependency. Fixed build warning as below: warning: (PLAT_S3C64XX CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) warning: (PLAT_S3C64XX CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM)

Re: [PATCH 0/3 v3] dcache: make it more scalable on large system

2013-05-26 Thread Dave Chinner
On Thu, May 23, 2013 at 05:34:23PM -0400, Waiman Long wrote: On 05/23/2013 05:42 AM, Dave Chinner wrote: On Wed, May 22, 2013 at 09:37:25PM -0400, Waiman Long wrote: Change log: v2-v3 - Fix the RCU lock problem found by Al Viro. - Rebase the code to the latest v3.10-rc1 linux mainline.

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/27 10:54), Zhang Yanfei wrote: 于 2013年05月27日 09:46, HATAYAMA Daisuke 写道: (2013/05/26 15:36), Zhang Yanfei wrote: From: Zhang Yanfei zhangyan...@cn.fujitsu.com Signed-off-by: Zhang Yanfei zhangyan...@cn.fujitsu.com Cc: Dave Jones da...@redhat.com --- Documentation/devices.txt |

Re: linux-next: build failure after merge of the crypto tree

2013-05-26 Thread Herbert Xu
On Fri, May 24, 2013 at 05:57:15PM +0800, Herbert Xu wrote: On Tue, May 21, 2013 at 11:45:48AM +1000, Stephen Rothwell wrote: Hi Herbert, After merging the crypto tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/crypto/crct10dif-pclmul_glue.c: In

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-26 Thread Xiao Guangrong
On 05/25/2013 04:34 AM, Marcelo Tosatti wrote: On Thu, May 23, 2013 at 03:55:53AM +0800, Xiao Guangrong wrote: Zap at lease 10 pages before releasing mmu-lock to reduce the overload caused by requiring lock After the patch, kvm_zap_obsolete_pages can forward progress anyway, so update the

[PATCH 03/24] drivers/scsi/dmx3191d: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/scsi/dmx3191d.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c old mode 100644 new mode

<    1   2   3   4   5   6   >