[GIT PULL] pwm: Changes for v3.11-rc1

2013-07-08 Thread Thierry Reding
Hi Linus, The following changes since commit c7788792a5e7b0d5d7f96d0766b4cb6112d47d75: Linux 3.10-rc2 (2013-05-20 14:37:38 -0700) are available in the git repository at: git://gitorious.org/linux-pwm/linux-pwm.git tags/for-3.11-rc1 for you to fetch changes up to

Re: [PATCH v6 3/5] vmcore: Introduce remap_oldmem_pfn_range()

2013-07-08 Thread HATAYAMA Daisuke
(2013/07/08 23:28), Vivek Goyal wrote: On Mon, Jul 08, 2013 at 11:28:39AM +0200, Michael Holzheu wrote: On Mon, 08 Jul 2013 14:32:09 +0900 HATAYAMA Daisuke wrote: (2013/07/02 4:32), Michael Holzheu wrote: For zfcpdump we can't map the HSA storage because it is only available via a read

Re: [PATCH 1/1] ia64/pci: set mmio decoding on for some host bridge

2013-07-08 Thread ZhenHua
Hi Bjorn, Thank you for reviewing this patch. I have created a new one and sent it out. And your questions are answered in that new wmail. Regards ZhenHua On 07/09/2013 04:35 AM, Bjorn Helgaas wrote: On Sun, Jul 7, 2013 at 6:16 PM, Li, Zhen-Hua wrote: On some IA64 platforms with intel PCI

[PATCH 1/1] ia64/pci: set mmio decoding on for some host bridge

2013-07-08 Thread Li, Zhen-Hua
On some IA64 platforms with intel PCI bridge, for example, HP BL890c i2 with Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port, when kernel tries to disable the mmio decoding on the PCI bridge devices, kernel may crash. And in the comment of function quirk_mmio_always_on, it also

Re: [PATCH 3/8] vfio: add external user support

2013-07-08 Thread Alexey Kardashevskiy
On 07/09/2013 07:52 AM, Alex Williamson wrote: > On Sun, 2013-07-07 at 01:07 +1000, Alexey Kardashevskiy wrote: >> VFIO is designed to be used via ioctls on file descriptors >> returned by VFIO. >> >> However in some situations support for an external user is required. >> The first user is KVM on

Re: [PATCH 0/5] Add phy support for AM335X platform using Generic PHy framework

2013-07-08 Thread George Cherian
On 7/9/2013 1:14 AM, Sebastian Andrzej Siewior wrote: On 07/08/2013 12:43 PM, George Cherian wrote: This patch series adds phy support for AM335X platform. This patch series is based on Generic PHY framework [1]. This series has - adds dual musb instances support for am335x platform

Re: [PATCH v6 3/5] vmcore: Introduce remap_oldmem_pfn_range()

2013-07-08 Thread HATAYAMA Daisuke
(2013/07/08 18:28), Michael Holzheu wrote: On Mon, 08 Jul 2013 14:32:09 +0900 HATAYAMA Daisuke wrote: (2013/07/02 4:32), Michael Holzheu wrote: For zfcpdump we can't map the HSA storage because it is only available via a read interface. Therefore, for the new vmcore mmap feature we have

Re: dell_rbu: Select CONFIG_FW_LOADER_USER_HELPER explicitly

2013-07-08 Thread Takashi Iwai
At Tue, 9 Jul 2013 11:15:20 +0800, Ming Lei wrote: > > On Mon, Jul 8, 2013 at 5:05 PM, Takashi Iwai wrote: > > At Sat, 6 Jul 2013 15:30:03 -0700, > > Greg KH wrote: > >> > >> On Sat, Jul 06, 2013 at 06:14:01PM -0400, Dave Jones wrote: > >> > On Tue, Jul 02, 2013 at 07:27:49PM +, Linux Kernel

Re: [PATCH v1 4/4] spi/xilinx: Use of_property_read_u32 for reading value from node

2013-07-08 Thread Michal Simek
Hi Mark, On 07/08/2013 04:51 PM, Mark Brown wrote: > On Mon, Jul 08, 2013 at 03:29:17PM +0200, Michal Simek wrote: >> It simplifies driver probing. > > Applied, thanks. have you applied this patch? I can't see it in your topic/xilinx branch.

Re: [PATCH v2 0/4] Minor perf build fixes

2013-07-08 Thread Namhyung Kim
Hi Ramkumar, On Fri, 5 Jul 2013 15:46:13 +0530, Ramkumar Ramachandra wrote: > Hi, > > After Namhyung's review of the first iteration, I realized that I'd > made a few mistakes. This iteration should be much better. > > [1/4] is the same as before. > > [2/4] is new, and is used in [4/4]. > >

Re: [PATCH] virtio-net: put virtio net header inline with data

2013-07-08 Thread Michael S. Tsirkin
On Tue, Jul 09, 2013 at 11:46:23AM +0930, Rusty Russell wrote: > "Michael S. Tsirkin" writes: > > For small packets we can simplify xmit processing > > by linearizing buffers with the header: > > most packets seem to have enough head room > > we can use for this purpose. > > Since existing

[PATCH v2 2/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Michael S. Tsirkin
virtio net called virtqueue_enable_cq on RX path after napi_complete, so with NAPI_STATE_SCHED clear - outside the implicit napi lock. This violates the requirement to synchronize virtqueue_enable_cq wrt virtqueue_add_buf. In particular, used event can move backwards, causing us to lose

[PATCH v2 1/2] virtio: support unlocked queue poll

2013-07-08 Thread Michael S. Tsirkin
This adds a way to check ring empty state after enable_cb outside any locks. Will be used by virtio_net. Note: there's room for more optimization: caller is likely to have a memory barrier already, which means we might be able to get rid of a barrier here. Deferring this optimization until we do

[PATCH v2 0/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Michael S. Tsirkin
Jason Wang reported a race in RX VQ processing: virtqueue_enable_cb is called outside napi lock, violating virtio serialization rules. The race has been there from day 1, but it got especially nasty in 3.0 when commit a5c262c5fd83ece01bd649fb08416c501d4c59d7 "virtio_ring: support event idx

Re: [PATCH] lib: One less subtraction in binary search iterations.

2013-07-08 Thread Wedson Almeida Filho
On Mon, Jul 8, 2013 at 9:12 PM, Joe Perches wrote: >> There is no functional change, but this change eliminates a subtraction that >> the compiler doesn't optimize out (as of gcc 4.7.3). > > That's flatly incorrect. I'm not arguing this. I in fact already acknowledged that the statement is

[PATCH] cris: remove deprecated IRQF_DISABLED

2013-07-08 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from CRIS architecture code. It's a NOOP since 2.6.35 and it will be removed one day. Comments mentioning IRQF_DISABLED are also updated, knowing that all interrupts are now "fast interrupts", their handlers running with interrupts disabled.

RE: [linuxppc-dev] Unbinding device from a driver

2013-07-08 Thread Gupta Ruchika-R66431
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 09, 2013 5:04 AM > To: Gupta Ruchika-R66431 > Cc: linuxppc-...@linux.freescale.net; linux-kernel@vger.kernel.org > Subject: Re: [linuxppc-dev] Unbinding device from a driver > > On 07/04/2013 05:35:28 AM, Gupta

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

2013-07-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in kernel/irq/generic-chip.c between commit 1aa0dd94ca07 ("irqdomain: Eliminate revmap type") from Linus' tree and commit 002fca5df168 ("genirq: generic chip: Use DIV_ROUND_UP to calculate numchips") from the tip tree. I fixed it up

Re: [PATCH 0/2] powerpc: allow kvm to use kerel debug framework

2013-07-08 Thread Michael Neuling
Alexander Graf wrote: > > On 04.07.2013, at 08:15, Bharat Bhushan wrote: > > > From: Bharat Bhushan > > > > This patchset moves the debug registers in a structure, which allows > > kvm to use same structure for debug emulation. > > > > Note: Earilier a patchset > >

[PATCH] ARM: footbridge: remove obsolete IRQF_DISABLED

2013-07-08 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from footbridge code. It's a NOOP since 2.6.35. Signed-off-by: Michael Opdenacker --- arch/arm/mach-footbridge/dc21285-timer.c | 2 +- arch/arm/mach-footbridge/dc21285.c | 10 +- arch/arm/mach-footbridge/isa-timer.c | 2 +-

[PATCH RFC nohz_full 2/7] nohz_full: Add rcu_dyntick data for scalable detection of all-idle state

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds fields to the rcu_dyntick structure that are used to detect idle CPUs. These new fields differ from the existing ones in that the existing ones consider a CPU executing in user mode to be idle, where the new ones consider CPUs executing in user mode to

[PATCH RFC nohz_full 6/7] nohz_full: Add full-system-idle state machine

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's quiescent-state-forcing mechanism, which invokes rcu_sysidle_check_cpu() to collect per-CPU idle

Re: [PATCH] lib: One less subtraction in binary search iterations.

2013-07-08 Thread Joe Perches
On Mon, 2013-07-08 at 20:51 -0700, Wedson Almeida Filho wrote: > On Sat, Jul 6, 2013 at 9:59 PM, Joe Perches wrote: > > > > Not correct. > > > >> while (start < end) { > >> - size_t mid = start + (end - start) / 2; > >> + size_t mid = (start + end) / 2; > > > >

Re: /sys/module/pcie_aspm/parameters/policy not writable?

2013-07-08 Thread Greg KH
On Tue, Jul 09, 2013 at 03:26:11AM +0200, Pavel Machek wrote: > Hi! > > My thinkpad has rather high ping latencies... and perhaps it is due to > PCIE ASPM. Why would that be the problem? The odds that the PCIE bus is the issue seems strange to me. greg k-h -- To unsubscribe from this list:

[PATCH] f2fs: Modify do_garbage_collect() to collect all the segs in once

2013-07-08 Thread Gu Zheng
Current do_garbage_collect() collect per segment per time. If there are more than one segments in section, we need to call do_garbage_collect() many times to collect all the segments(current is a for loop). We can move the loop into the do_garbage_collect(), so that we can collect all the segs of

Re: [PATCH 0/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread David Miller
From: "Michael S. Tsirkin" Date: Mon, 8 Jul 2013 12:05:26 +0300 > Jason Wang reported a race in RX VQ processing: > virtqueue_enable_cb is called outside napi lock, > violating virtio serialization rules. > The race has been there from day 1, but it got especially nasty in 3.0 > when commit

Re: [PATCH] lib: One less subtraction in binary search iterations.

2013-07-08 Thread Wedson Almeida Filho
On Sat, Jul 6, 2013 at 9:59 PM, Joe Perches wrote: > > Not correct. > >> while (start < end) { >> - size_t mid = start + (end - start) / 2; >> + size_t mid = (start + end) / 2; > > size_t start = 0x8000; > size_t end = 0x8001; Good point,

[PATCH] kernel/params.c: print failure information instead of 'KOBJ_ADD' to user space, when sysfs_create_file() fails.

2013-07-08 Thread Chen Gang
When sysfs_create_file() fails, recommend to print the related failure information. And it is useless to still 'KOBJ_ADD' to user space. Signed-off-by: Chen Gang --- kernel/params.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/kernel/params.c b/kernel/params.c

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-08 Thread Michael Ellerman
On Mon, Jul 08, 2013 at 10:24:34PM -0400, Vince Weaver wrote: > On Tue, 9 Jul 2013, Michael Ellerman wrote: > > > On Thu, Jul 04, 2013 at 02:57:00PM +0200, Peter Zijlstra wrote: > > > > > > Right; I think Stephane and Jiri are in favour of creating a 'new' > > > project that > > > includes just

Re: [PATCH 2/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Jason Wang
On 07/08/2013 05:04 PM, Michael S. Tsirkin wrote: > virtio net called virtqueue_enable_cq on RX path after napi_complete, so > with NAPI_STATE_SCHED clear - outside the implicit napi lock. > This violates the requirement to synchronize virtqueue_enable_cq wrt > virtqueue_add_buf. In particular,

Re: [PATCH 1/2] virtio: support unlocked queue poll

2013-07-08 Thread Jason Wang
On 07/08/2013 05:04 PM, Michael S. Tsirkin wrote: > This adds a way to check ring empty state after enable_cb outside any > locks. Will be used by virtio_net. > > Note: there's room for more optimization: caller is likely to have a > memory barrier already, which means we might be able to get rid

Re: linux-next: manual merge of the vhost tree with the target-updates tree

2013-07-08 Thread Stephen Rothwell
Hi Nicholas, On Mon, 08 Jul 2013 18:13:26 -0700 "Nicholas A. Bellinger" wrote: > > On Mon, 2013-07-08 at 13:47 +1000, Stephen Rothwell wrote: > > > > Today's linux-next merge of the vhost tree got a conflict in > > drivers/vhost/scsi.c between commit 084ed45b3846 ("vhost/scsi: Convert to > >

Re: [PATCH 0/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Jason Wang
On 07/08/2013 05:05 PM, Michael S. Tsirkin wrote: > Jason Wang reported a race in RX VQ processing: > virtqueue_enable_cb is called outside napi lock, > violating virtio serialization rules. > The race has been there from day 1, but it got especially nasty in 3.0 > when commit

Re: dell_rbu: Select CONFIG_FW_LOADER_USER_HELPER explicitly

2013-07-08 Thread Ming Lei
On Mon, Jul 8, 2013 at 5:05 PM, Takashi Iwai wrote: > At Sat, 6 Jul 2013 15:30:03 -0700, > Greg KH wrote: >> >> On Sat, Jul 06, 2013 at 06:14:01PM -0400, Dave Jones wrote: >> > On Tue, Jul 02, 2013 at 07:27:49PM +, Linux Kernel wrote: >> > > Gitweb: >> >

[PATCH] x86: ce4100: add head file for reboot type

2013-07-08 Thread Xiong Zhou
From: Xiong Zhou Add head file for reboot type stuff to fix this: error: ‘reboot_type’ undeclared (first use in this function) error: ‘BOOT_KBD’ undeclared (first use in this function) Signed-off-by: Xiong Zhou --- arch/x86/platform/ce4100/ce4100.c |1 + 1 file changed, 1 insertion(+)

Re: [PATCH] btusb: fix overflow return values

2013-07-08 Thread Adam Lee
On Mon, Jul 08, 2013 at 11:50:54AM -0700, Marcel Holtmann wrote: > Hi Adam, > > > PTR_ERR() returns a long type value, but btusb_setup_intel() and > > btusb_setup_intel_patching() should return an int type value. > > > > This bug makes the judgement "if (ret < 0)" not working on x86_64 > >

Re: [PATCH] sched: smart wake-affine

2013-07-08 Thread Michael Wang
On 07/09/2013 10:36 AM, Davidlohr Bueso wrote: [snip] >> 2. is the 3.10-rc5 in image also disabled the hyperthreading? > > Yes, I happened to have data already collected for 3.10-rc5. While the > runs with this patch was with -rc7, unless there was some performance > related commit I missed, I

Re: [GIT] Networking

2013-07-08 Thread Andrew Morton
On Mon, 08 Jul 2013 09:38:29 +0300 Eliezer Tamir wrote: > On 08/07/2013 06:14, David Miller wrote: > > From: Linus Torvalds > > Date: Sun, 7 Jul 2013 15:33:31 -0700 > > > >> End result: I think the code is salvageable and people who want this > >> kind of busy-looping can have it. But I really

Re: [PATCH] sched: smart wake-affine

2013-07-08 Thread Davidlohr Bueso
On Tue, 2013-07-09 at 10:30 +0800, Michael Wang wrote: > Hi, Davidlohr > > Thanks for the testing :) > > On 07/09/2013 02:59 AM, Davidlohr Bueso wrote: > [snip] > >> > >> OK, I'll apply the patches, we'll see what happens. If there significant > >> fallout we'll immediately have more information

Re: [PATCH] sched: smart wake-affine

2013-07-08 Thread Michael Wang
Hi, Davidlohr Thanks for the testing :) On 07/09/2013 02:59 AM, Davidlohr Bueso wrote: [snip] >> >> OK, I'll apply the patches, we'll see what happens. If there significant >> fallout we'll immediately have more information anyway ;-) > > So I gave the v2 a spin on my aim7 benchmark on an

Re: [GIT] Networking

2013-07-08 Thread Rob Landley
On 07/07/2013 04:27:54 PM, Linus Torvalds wrote: And dammit, I'd expect the VFS people to be cc'd on changes to the VFS layer functions. I wasn't, Al wasn't. Um, does that mean I should have cc'd you on the initmpfs patch series back before the merge window opened?

Re: [PATCH net-next] net: rename low latency sockets functions to busy poll

2013-07-08 Thread David Miller
From: Linus Torvalds Date: Mon, 8 Jul 2013 12:37:06 -0700 > I think it's getting closer, and I'm ok with the last final details > being sorted out later. I just can't reasonably test any of my > suggestions, so I'd like to get it to a point where when I pull, I > don't feel like I'm pulling core

Re: Bluez with uclibc

2013-07-08 Thread Rob Landley
On 07/08/2013 03:06:15 AM, l...@serverphorums.com wrote: Hi, Today, I need to cross compile Bluez for arm with uclibc library into Buildroot environment. However, I meet some dependencies between bluez-utils package and MMU deactivation due to dBus. Do you know a way to use Bluez with

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-08 Thread Vince Weaver
On Tue, 9 Jul 2013, Michael Ellerman wrote: > On Thu, Jul 04, 2013 at 02:57:00PM +0200, Peter Zijlstra wrote: > > > > Right; I think Stephane and Jiri are in favour of creating a 'new' project > > that > > includes just the event definitions in a plain text format and a little > > library > >

Re: [PATCH] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree

2013-07-08 Thread Chen Gang
On 07/08/2013 02:43 PM, Chen Gang wrote: > On 07/05/2013 12:06 PM, Chen Gang wrote: >> On 06/19/2013 03:19 PM, Chen Gang wrote: >>> On 06/19/2013 03:10 PM, Andrew Morton wrote: On Wed, 19 Jun 2013 14:55:13 +0800 Chen Gang wrote: >> >> 'lru' may be used without initialized, so

Re: [PATCH] virtio-net: put virtio net header inline with data

2013-07-08 Thread Rusty Russell
"Michael S. Tsirkin" writes: > For small packets we can simplify xmit processing > by linearizing buffers with the header: > most packets seem to have enough head room > we can use for this purpose. > Since existing hypervisors require that header > is the first s/g element, we need a feature bit

Re: [v3.10 regression] deadlock on cpu hotplug

2013-07-08 Thread Michael Wang
Hi, Bartlomiej On 07/08/2013 11:26 PM, Bartlomiej Zolnierkiewicz wrote: [snip] > > # echo 0 > /sys/devices/system/cpu/cpu3/online > # echo 0 > /sys/devices/system/cpu/cpu2/online > # echo 0 > /sys/devices/system/cpu/cpu1/online > # while true;do echo 1 > /sys/devices/system/cpu/cpu1/online;echo

[PATCH RFC nohz_full 7/7] nohz_full: Force RCU's grace-period kthreads onto timekeeping CPU

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" Because RCU's quiescent-state-forcing mechanism is used to drive the full-system-idle state machine, and because this mechanism is executed by RCU's grace-period kthreads, this commit forces these kthreads to run on the timekeeping CPU (tick_do_timer_cpu). To do

[PATCH RFC nohz_full 5/7] nohz_full: Add full-system-idle arguments to API

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds an isidle and jiffies argument to force_qs_rnp(), dyntick_save_progress_counter(), and rcu_implicit_dynticks_qs() to enable RCU's force-quiescent-state process to check for full-system idle. Signed-off-by: Paul E. McKenney Cc: Frederic Weisbecker Cc:

[PATCH RFC nohz_full 0/7] v3 Provide infrastructure for full-system idle

2013-07-08 Thread Paul E. McKenney
Whenever there is at least one non-idle CPU, it is necessary to periodically update timekeeping information. Before NO_HZ_FULL, this updating was carried out by the scheduling-clock tick, which ran on every non-idle CPU. With the advent of NO_HZ_FULL, it is possible to have non-idle CPUs that

[GIT PULL] battery-2.6.git

2013-07-08 Thread Anton Vorontsov
Hello Linus, Please pull battery-2.6 git tree to receive changes prepared for the v3.11 release. This time there is nothing exciting in there, just assorted fixes and cleanups. Thanks! Anton The following changes since commit d683b96b072dc4680fc74964eca77e6a23d1fa6e: Linux 3.10-rc4

[PATCH RFC nohz_full 1/7] nohz_full: Add Kconfig parameter for scalable detection of all-idle state

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" At least one CPU must keep the scheduling-clock tick running for timekeeping purposes whenever there is a non-idle CPU. However, with the new nohz_full adaptive-idle machinery, it is difficult to distinguish between all CPUs really being idle as opposed to all non-idle

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-08 Thread Michael Ellerman
On Thu, Jul 04, 2013 at 02:57:00PM +0200, Peter Zijlstra wrote: > On Thu, Jul 04, 2013 at 10:52:18PM +1000, Michael Ellerman wrote: > > I don't think it even needs libpfm4, just some csv files in tools/perf > > would do the trick. > > Right; I think Stephane and Jiri are in favour of creating a

[PATCH RFC nohz_full 4/7] nohz_full: Add full-system idle states and variables

2013-07-08 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds control variables and states for full-system idle. The system will progress through the states in numerical order when the system is fully idle (other than the timekeeping CPU), and reset down to the initial state if any non-timekeeping CPU goes

/sys/module/pcie_aspm/parameters/policy not writable?

2013-07-08 Thread Pavel Machek
Hi! My thinkpad has rather high ping latencies... and perhaps it is due to PCIE ASPM. Its help text says: CONFIG_PCIEASPM: This enables OS control over PCI Express ASPM (Active State Power Management) and Clock Power Management. ASPM supports state L0/L0s/L1. ... ASPM can be disabled or

[PATCH v6 06/14] coda-fs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/coda/dir.c |2 +- 1 files

[PATCH v6 05/14] ceph-fs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/ceph/inode.c |4 ++--

[PATCH v6 00/14] Lockless update of reference count protected by spinlock

2013-07-08 Thread Waiman Long
v5->v6: - Add a new GENERIC_SPINLOCK_REFCOUNT config parameter for using the generic implementation. - Add two parameters LOCKREF_WAIT_SHIFT and LOCKREF_RETRY_COUNT which can be specified differently for each architecture. - Update various spinlock_refcount.* files to incorporate review

[PATCH v6 07/14] config-fs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/configfs/dir.c |2 +- 1 files

[PATCH v6 04/14] auto-fs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/autofs4/expire.c |8

[PATCH v6 03/14] dcache: Add a new helper function d_count() to return refcount

2013-07-08 Thread Waiman Long
This patch adds a new helper function d_count() in dcache.h for returning the current reference count of the dentry object. It should be used by all the files outside of the core dcache.c and namei.c files. Signed-off-by: Waiman Long --- include/linux/dcache.h | 10 ++ 1 files

[PATCH v6 08/14] ecrypt-fs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/ecryptfs/inode.c |2 +- 1 files

[PATCH v6 13/14] dcache: rename d_count field of dentry to d_refcount

2013-07-08 Thread Waiman Long
Before converting the d_lock and d_count field of the dentry data structure to the new lockref structure, we need to consider the implication of such a change. All current references of d_count and d_lock have to be changed accordingly. One way to minimize the changes is to redefine the original

[PATCH v6 10/14] nfs: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/nfs/dir.c|6 +++---

[PATCH v6 09/14] file locking: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long --- fs/locks.c |2 +- 1 files changed, 1

[PATCH v6 12/14] lustre-fs: Use the standard d_count() helper to access refcount

2013-07-08 Thread Waiman Long
The Lustre FS should use the newly defined d_count() helper function to access the dentry's reference count instead of defining its own d_refcount() macro for the same purpose. Since the current lustre code is marked as broken, no build test was attempted for this change. Signed-off-by: Waiman

[PATCH v6 14/14] dcache: Enable lockless update of refcount in dentry structure

2013-07-08 Thread Waiman Long
The current code takes the dentry's d_lock lock whenever the d_refcount is being updated. In reality, nothing big really happens until d_refcount goes to 0 in dput(). So it is not necessary to take the lock if the reference count won't go to 0. On the other hand, there are cases where d_refcount

[PATCH v6 11/14] nilfs2: replace direct access of d_count with the d_count() helper

2013-07-08 Thread Waiman Long
All readonly references to d_count outside of the core dcache code should be changed to use the new d_count() helper as they shouldn't access its value directly. There is no change in logic and everything should just work. Signed-off-by: Waiman Long Acked-by: Ryusuke Konishi ---

[PATCH v6 02/14] spinlock: Enable x86 architecture to do lockless refcount update

2013-07-08 Thread Waiman Long
This patch enables the x86 architecture to do lockless reference count update using the generic lockref implementation with default parameters. Only the x86/Kconfig file needs to be changed. Signed-off-by: Waiman Long --- arch/x86/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0

[PATCH v6 01/14] spinlock: A new lockref structure for lockless update of refcount

2013-07-08 Thread Waiman Long
This patch introduces a new set of spinlock_refcount.h header files to be included by kernel codes that want to do a faster lockless update of reference count protected by a spinlock. The new lockref structure consists of just the spinlock and the reference count data. Helper functions are

Re: [PATCH] pci: exynos: split into two parts such as Synopsys part and Exynos part

2013-07-08 Thread Jingoo Han
On Friday, July 05, 2013 7:46 PM, Arnd Bergmann wrote: > On Friday 05 July 2013, Jingoo Han wrote: > > > --- /dev/null > > +++ b/drivers/pci/host/pcie-exynos.c > > > + > > +/* PCIe ELBI registers */ > > +#define PCIE_IRQ_PULSE 0x000 > > +#define IRQ_INTA_ASSERT

Re: sending SEGV to qemu crashes host kernel in Fedora 19

2013-07-08 Thread Dave Airlie
On Tue, Jul 9, 2013 at 10:35 AM, Dave Airlie wrote: > Hi, > > F19 > kernel-3.9.8-300.fc19.x86_64 > qemu-kvm-1.4.2-4.fc19.x86_64 > > If I start a complete F19 install in the guest and send the qemu > process a SEGV signal, the host kernel starts giving me random kmalloc > errors soon after, if I

Re: linux-next: manual merge of the vhost tree with the target-updates tree

2013-07-08 Thread Nicholas A. Bellinger
On Mon, 2013-07-08 at 13:47 +1000, Stephen Rothwell wrote: > Hi Michael, > > Today's linux-next merge of the vhost tree got a conflict in > drivers/vhost/scsi.c between commit 084ed45b3846 ("vhost/scsi: Convert to > se_cmd->cmd_kref TARGET_SCF_ACK_KREF usage") from the target-updates tree > and

Re: [PATCH 0/2] powerpc: allow kvm to use kerel debug framework

2013-07-08 Thread Alexander Graf
On 04.07.2013, at 08:15, Bharat Bhushan wrote: > From: Bharat Bhushan > > This patchset moves the debug registers in a structure, which allows > kvm to use same structure for debug emulation. > > Note: Earilier a patchset >

Re: [PATCH v2] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Chen Gang
On 07/09/2013 08:46 AM, Wang YanQing wrote: > On Tue, Jul 09, 2013 at 08:43:05AM +0800, Chen Gang wrote: >> > When failure occurs in hotplug_cfd(), need release related resources, >> > or will cause memory leak. >> > >> > Signed-off-by: Chen Gang >> > --- >> > kernel/smp.c |5 - >> > 1

Re: [PATCH v2] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Wang YanQing
On Tue, Jul 09, 2013 at 08:43:05AM +0800, Chen Gang wrote: > When failure occurs in hotplug_cfd(), need release related resources, > or will cause memory leak. > > Signed-off-by: Chen Gang > --- > kernel/smp.c |5 - > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git

[PATCH v2] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Chen Gang
When failure occurs in hotplug_cfd(), need release related resources, or will cause memory leak. Signed-off-by: Chen Gang --- kernel/smp.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index 02a885d..2a3a017 100644 --- a/kernel/smp.c

sending SEGV to qemu crashes host kernel in Fedora 19

2013-07-08 Thread Dave Airlie
Hi, F19 kernel-3.9.8-300.fc19.x86_64 qemu-kvm-1.4.2-4.fc19.x86_64 If I start a complete F19 install in the guest and send the qemu process a SEGV signal, the host kernel starts giving me random kmalloc errors soon after, if I send a normal kill signal things seem fine. CPU is Intel(R) Core(TM)

[RFT][PATCH 2/2] irqchip: vt8500: Support 'rising and falling edge' trigger mode

2013-07-08 Thread Axel Lin
This chip supports below interrupt request trigger mode: Destination Control Register: BIT[5:4] Interrupt Request Trigger Mode. 00: High level trigger 01: Posedge trigger 10: Negedge trigger 11: Both posedge and negedge trigger This patch adds support for setting

Re: [PATCH] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Chen Gang
On 07/09/2013 08:28 AM, Wang YanQing wrote: > On Mon, Jul 08, 2013 at 04:50:24PM +0800, Chen Gang wrote: >> > When failure occurs in hotplug_cfd(), need release related resources, >> > or will cause memory leak. >> > >> > Also beautify the related code. >> > >> > Signed-off-by: Chen Gang >> >

Re: [PATCH] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Wang YanQing
On Mon, Jul 08, 2013 at 04:50:24PM +0800, Chen Gang wrote: > When failure occurs in hotplug_cfd(), need release related resources, > or will cause memory leak. > > Also beautify the related code. > > Signed-off-by: Chen Gang > --- > kernel/smp.c | 13 + > 1 files changed, 9

Re: [PATCH] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Chen Gang F T
On 07/08/2013 10:26 PM, Paul Gortmaker wrote: > [[PATCH] kernel/smp.c: free related resources when failure occurs in > hotplug_cfd()] On 08/07/2013 (Mon 16:50) Chen Gang wrote: > >> > When failure occurs in hotplug_cfd(), need release related resources, >> > or will cause memory leak. >> > >>

Re: [Xen-devel] [PATCH] xen: remove unused Kconfig parameter

2013-07-08 Thread Konrad Rzeszutek Wilk
Paul Bolle wrote: >On Mon, 2013-07-08 at 22:58 +0200, Borislav Petkov wrote: >> On Mon, Jul 08, 2013 at 01:29:40PM -0700, H. Peter Anvin wrote: >> > What. The. Fuck. >> >> This is just marvellous: grub2 has a bunch of scripts in /etc/grub.d >> which rely on the presence of kernel config files in

[RFT][PATCH 1/2] irqchip: vt8500: Fix implementation for irq_ack and irq_mask

2013-07-08 Thread Axel Lin
Current code sets both irq_ack and irq_mask callbacks to vt8500_irq_mask(). However, vt8500_irq_mask does not clear interrupt enable bit when the interrupt trigger mode is edge trigger. This patch moves the code clearing Interrupt Status Register bit to irq_ack(). irq_mask() always clear

[RFC][PATCH 8/8] ACPI / hotplug / PCI: Merge hotplug event handling functions

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There are separate handling event functions for hotplug bridges and for hotplug functions, but they may be combined into one common hotplug event handling function which simplifies the code slightly. That also allows a theoretical bug to be dealt with which in principle

[RFC][PATCH 4/8] ACPI / hotplug / PCI: Hotplug context objects for bridges and functions

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When either a new hotplug brigde or a new hotplug function is added by the ACPI-based PCI hotplug (acpiphp) code, attach a context object to its ACPI handle to store hotplug-related information in it. To start with, put the handle's bridge and function pointers into that

[RFC][PATCH 6/8] ACPI / hotplug / PCI: Drop acpiphp_handle_to_bridge()

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Using the hotplug context objects introduced previously rework the ACPI-based PCI hotplug (acpiphp) core code to get to acpiphp_bridge objects associated with hotplug bridges from those context objects rather than from the global list of hotplug bridges. After that the

[RFC][PATCH 3/8] ACPI / hotplug / PCI: Always return success after adding a function

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When a new ACPIPHP function is added by register_slot() and the notify handler cannot be installed for it, register_slot() returns an error status without cleaning up, which causes the entire namespace walk in acpiphp_enumerate_slots() to be aborted, although it still may

[RFC][PATCH 5/8] ACPI / hotplug / PCI: Unified notify handler for hotplug events

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Using the hotplug context objects introduced previously rework the ACPI-based PCI hotplug (acpiphp) core code so that all notifications for ACPI device objects corresponding to the hotplug PCI devices are handled by one function, handle_hotplug_event(), which recognizes

[RFC][PATCH 7/8] ACPI / hotplug / PCI: Pass hotplug context object to event handlers

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Modify handle_hotplug_event() to pass the entire context object (instead of its fields individually) to work functions started by it. This change makes the subsequent consolidation of the event handling work functions a bit more straightforward. Signed-off-by: Rafael J.

[RFC][PATCH 1/8] ACPI / PCI: Make bus registration and unregistration symmetric

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_pci_slot_enumerate() and acpiphp_enumerate_slots() can get the ACPI device handle they need from bus->bridge, it is not necessary to pass that handle to them as an argument. Drop the second argument of acpi_pci_slot_enumerate() and acpiphp_enumerate_slots(),

[RFC][PATCH 2/8] ACPI / hotplug / PCI: Consolidate acpiphp_enumerate_slots()

2013-07-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The acpiphp_enumerate_slots() function is now split into two parts, acpiphp_enumerate_slots() proper and init_bridge_misc() which is only called by the former. If these functions are combined, it is possible to make the code easier to follow and to clean up the error

[RFC][PATCH 0/8] ACPI / hotplug / PCI: Consolidation of handling notifications (in progress)

2013-07-08 Thread Rafael J. Wysocki
Hi, Following is the current set of acpiphp updates targeted at the consolidation of device notifications handling and removal of suprefluous infrastructure. Still on top of 3.10 with ACPI+PM 3.11 material merged on top (I'll rebase it on top of linux-pm.git/bleeding-edge eventually). [1/8] Make

RE: [PATCH 1/1] drivers: input: touchscreen: Initial support for SYNAPTICS_I2C_RMI touchscreen

2013-07-08 Thread Christopher Heiny
Sorry if this is a duplicate - there's some email issues here at work. On 07/08/2013 03:39 PM, Dmitry Torokhov wrote: > On Monday, July 08, 2013 10:21:16 PM Christopher Heiny wrote: >> On 07/08/2013 01:25 AM, Balint Czobor wrote: >>> Add initial support for Synaptics RMI over I2C based

Re: [Xen-devel] [PATCH] xen: remove unused Kconfig parameter

2013-07-08 Thread Paul Bolle
On Mon, 2013-07-08 at 22:58 +0200, Borislav Petkov wrote: > On Mon, Jul 08, 2013 at 01:29:40PM -0700, H. Peter Anvin wrote: > > What. The. Fuck. > > This is just marvellous: grub2 has a bunch of scripts in /etc/grub.d > which rely on the presence of kernel config files in /boot or / and > greps

Re: [linuxppc-dev] Unbinding device from a driver

2013-07-08 Thread Scott Wood
On 07/04/2013 05:35:28 AM, Gupta Ruchika-R66431 wrote: Hi, I am trying to unbind a platform device from a driver. Even when the remove function of the device returns an EBUSY error, the device is unbound from the driver. Is this the right behavior ? Why does kernel forcefully unbind the

Re: [PATCH 2/3] ACPI / hotplug / PCI: Hotplug context objects for bridges and functions

2013-07-08 Thread Rafael J. Wysocki
On Monday, July 08, 2013 03:30:16 PM Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > When either a new hotplug brigde or a new hotplug function is added > by the ACPI-based PCI hotplug (acpiphp) code, attach a context object > to its ACPI handle to store hotplug-related information in it.

Re: [PATCH v1 0/4] ARM: STi fixes and ethernet support

2013-07-08 Thread Arnd Bergmann
On Monday 08 July 2013, Srinivas KANDAGATLA wrote: > From: Srinivas Kandagatla > > This patch series fixes 2 configuration issues and adds ethernet support to > STiH415, STiH416 based B2000, B2020 boards. > With this patchset B2000 and B2020 can have basic ethernet support in > MII and RGMII

Re: [PATCH V7 00/30] thermal: exynos: Re-structure driver and add support for exynos5440

2013-07-08 Thread Eduardo Valentin
On 24-06-2013 06:50, Amit Daniel Kachhap wrote: > Submitting V7 version with all comments fixed. Most of the patches are acked > by > Eduardo. All the un-acked patches are modified according to the review > comments. > If any comments please let me know. Applied on linux-soc-thermal branch

Re: [PATCH] menuconfig: Allow j/k to move down/up the menu

2013-07-08 Thread Sören Brinkmann
On Sat, Jul 06, 2013 at 06:00:05PM -0500, Rob Landley wrote: > On 07/05/2013 06:32:59 AM, Ramkumar Ramachandra wrote: > >Like in Vim. > > > >Cc: Michal Marek > >Signed-off-by: Ramkumar Ramachandra > >--- > > Unsure why nobody has done this yet. > > While you're at it, why don't you add the ws

  1   2   3   4   5   6   7   8   9   10   >