Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sand...@freescale.com wrote: +/* Data structures required for sysfs */ +static struct tdm_sysfs attr = { + .attr.name = use_latest_data, + .attr.mode = 0664, + .cmd_type = TDM_LATEST_DATA, +}; What is this for? +int

Re: [PATCH] uprobes: don't enable/disable signle step if the user did it

2012-07-27 Thread Oleg Nesterov
On 07/27, Sebastian Andrzej Siewior wrote: On 07/26/2012 07:31 PM, Oleg Nesterov wrote: Well. I agree, this needs changes. To begin with, uprobe should avoid user_enable_single_step() which does access_process_vm(). And I suspect uprobes have the problems with TIF_FORCED_TF logic. Why?

[PATCH] hwmon: (applesmc) Decode and act on read/write status codes

2012-07-27 Thread Henrik Rydberg
The behavior of the SMC has changed several times over the years, causing read failures in the driver. It seems the problem can be explained by a shift in SMC speed combined with improper action on status codes. We should first wait for the SMC to settle, which was the most frequent response on

Re: [2/3][PATCH][v2] TDM Framework

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sand...@freescale.com wrote: +static struct kobj_type tdm_type = { + .sysfs_ops = tdm_ops, + .default_attrs = tdm_attr, +}; Ah, also, as per the documentation in the kernel (go look, it's there), I now get to publicly mock you for ignoring the

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Matthew Wilcox
On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: Registers a character device for the nvme module and creates character files as /dev/nvmeN for each nvme device probed, where N is the device instance. The character devices support nvme admin ioctl commands so that nvme devices

Re: [Pv-drivers] [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Dmitry Torokhov
Hi Alan, On Fri, Jul 27, 2012 at 10:53:57AM +0100, Alan Cox wrote: +enum { + VMCI_SUCCESS_QUEUEPAIR_ATTACH = 5, + VMCI_SUCCESS_QUEUEPAIR_CREATE = 4, + VMCI_SUCCESS_LAST_DETACH= 3, + VMCI_SUCCESS_ACCESS_GRANTED = 2, + VMCI_SUCCESS_ENTRY_DEAD = 1, We've

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

2012-07-27 Thread Kent Yoder
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 close a race and prevent possibly sensitive data from being free'd before being zeroed. I'm attaching this entire diff

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 10:20:43AM -0700, Andrew Stiegmann wrote: The kernel style is to use lower_case for everything. So this would become: vmci_device_get() This is obviously a very general comment and applies everywhere. I wish I could lower case these symbols but VMCI has

[PATCH] smb347_charger: Add support for battery power supply attributes registration

2012-07-27 Thread Ramakrishna Pallala
This patch adds the support to use power supply attributes registration mechanism for battery properties. This will be useful if the platform has a main/primary battery and it relies on smb347 driver to get some critical battery attributes. Anton, I have to rework on this patch once we get an

[PATCH] max17042_battery: add support for battery STATUS and CHARGE_TYPE

2012-07-27 Thread Ramakrishna Pallala
This patch adds the support to report the battery power supply attributes STATUS and CHARGE_TYPE. This patch makes use of power_supply_get_external_attr() API to get these attributes through power supply core. Signed-off-by: Ramakrishna Pallala ramakrishna.pall...@intel.com ---

[PATCH 4/4] zcache: promote to drivers/mm/

2012-07-27 Thread Seth Jennings
This patchset promtes the zcache driver from staging to drivers/mm/. zcache captures swap pages via frontswap and pages that fall out of the page cache via cleancache and compress them in RAM, providing a compressed RAM swap and a compressed second-chance page cache. Signed-off-by: Seth Jennings

[PATCH 3/4] drivers: add memory management driver class

2012-07-27 Thread Seth Jennings
This patchset creates a new driver class under drivers/ for memory management related drivers, like zcache. This driver class would be for drivers that don't actually enabled a hardware device, but rather augment the memory manager in some way. In-tree candidates for this driver class are

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 09:05:48PM +0900, Alexandre Courbot wrote: Some device drivers (panel backlights especially) need to follow precise sequences for powering on and off, involving gpios, regulators, PWMs with a precise powering order and delays to respect between each steps. These

[PATCH 2/4] zsmalloc: promote to mm/

2012-07-27 Thread Seth Jennings
This patch promotes the slab-based zsmalloc memory allocator from the staging tree to mm/ zcache depends on this allocator for storing compressed RAM pages in an efficient way under system wide memory pressure where high-order (greater than 0) page allocation are very likely to fail. For more

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 09:05:48PM +0900, Alexandre Courbot wrote: +++ b/include/linux/power_seq.h @@ -0,0 +1,139 @@ +/* + * power_seq.h + * + * Simple interpreter for defining power sequences as platform data or device + * tree properties. Initially designed for use with backlight drivers.

Re: [PATCH/RFC] platform: Add support for automatic device IDs

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 01:46:25PM +0200, Jean Delvare wrote: Right now we have support for explicit platform device IDs, as well as ID-less platform devices when a given device type can only have one instance. However there are cases where multiple instances of a device type can exist, and

Re: [PATCH] staging/olpc_dcon: fix checkpatch warnings

2012-07-27 Thread Andres Salomon
Looks fine to me, thanks. Acked-by: Andres Salomon dilin...@queued.net On Fri, 27 Jul 2012 20:45:52 +0900 Toshiaki Yamane yamaneto...@gmail.com wrote: fixed some checkpatch warnings. (Excluding -WARNING: msleep 20ms can sleep for up to 20ms-) $ find drivers/staging/olpc_dcon/ -name

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 02:12:12PM -0400, Matthew Wilcox wrote: On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: Registers a character device for the nvme module and creates character files as /dev/nvmeN for each nvme device probed, where N is the device instance. The character

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

2012-07-27 Thread H. Peter Anvin
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 close a race and prevent possibly sensitive data from being free'd

[PATCH 0/4] promote zcache from staging

2012-07-27 Thread Seth Jennings
/MM this year on zcache: http://oss.oracle.com/projects/tmem/dist/documentation/presentations/LSFMM12-zcache-final.pdf This patchset is based on next-20120727 + 3-part zsmalloc patchset below https://lkml.org/lkml/2012/7/18/353 The zsmalloc patchset is already acked and will be integrated by Greg

RE: [PATCH v2] power_supply: Added support for power supply attribute sources

2012-07-27 Thread Pallala, Ramakrishna
Hi Anton, On Thu, Jul 26, 2012 at 08:47:24PM +0530, Ramakrishna Pallala wrote: On some platforms one driver(or HW chip) may not be able to provide all the necessary attributes of the power supply connected to the platform or may provide very limited info which can be used by core/primary

[PATCH 1/4] zsmalloc: collapse internal .h into .c

2012-07-27 Thread Seth Jennings
The patch collapses in the internal zsmalloc_int.h into the zsmalloc-main.c file. This is done in preparation for the promotion to mm/ where separate internal headers are discouraged. Signed-off-by: Seth Jennings sjenn...@linux.vnet.ibm.com --- drivers/staging/zsmalloc/zsmalloc-main.c | 132

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Andrew Stiegmann
- Original Message - From: Greg KH gre...@linuxfoundation.org To: Andrew Stiegmann astiegm...@vmware.com Cc: Sam Ravnborg s...@ravnborg.org, linux-kernel@vger.kernel.org, virtualizat...@lists.linux-foundation.org, pv-driv...@vmware.com, vm-crosst...@vmware.com, csch...@vmware.com

Re: [PATCH 2/7] netpoll: make __netpoll_cleanup non-block

2012-07-27 Thread Neil Horman
On Fri, Jul 27, 2012 at 11:37:59PM +0800, Cong Wang wrote: Like the previous patch, slave_disable_netpoll() and __netpoll_cleanup() may be called with read_lock() held too, so we should make them non-block, by moving the cleanup and kfree() to call_rcu_bh() callbacks. Cc: David S. Miller

[PATCH 1/5] jiffies: Allow CLOCK_TICK_RATE to be undefined

2012-07-27 Thread John Stultz
From: Catalin Marinas catalin.mari...@arm.com CLOCK_TICK_RATE is a legacy constant that defines the timer device's granularity. On hardware with particularly coarse granularity, this constant is used to reduce accumulated time error when using jiffies as a clocksource, by calculating the

[PATCH 5/5] time: Remove all direct references to timekeeper

2012-07-27 Thread John Stultz
Ingo noted that the numerous timekeeper.value references made the timekeeping code ugly and caused many long lines that had to be broken up. He recommended replacing timekeeper.value references with tk-value. This patch provides a local tk value for all top level time functions and sets it to

[PATCH 4/5] time: Cleanup offs_real/wall_to_mono and offs_boot/total_sleep_time updates

2012-07-27 Thread John Stultz
For performance reasons, we maintain ktime_t based duplicates of wall_to_monotonic (offs_real) and total_sleep_time (offs_boot). Since large problems could occur (such as the resume regression on 3.5-rc7, or the leapsecond hrtimer issue) if these value pairs were to be inconsistently updated,

[PATCH 2/5] jiffies: Rename ACTHZ to SHIFTED_HZ

2012-07-27 Thread John Stultz
Ingo noted that ACTHZ is a confusing name, and requested it be renamed, so this patch renames ACTHZ to SHIFTED_HZ to better describe it. Cc: Ingo Molnar mi...@kernel.org Cc: Thomas Gleixner t...@linutronix.de Cc: Prarit Bhargava pra...@redhat.com Cc: Thomas Gleixner t...@linutronix.de

[PATCH 3/5] time: Stray newline cleanups

2012-07-27 Thread John Stultz
Ingo noted inconsistent newline usage between functions. This patch cleans those up. Cc: Ingo Molnar mi...@kernel.org Cc: Thomas Gleixner t...@linutronix.de Cc: Prarit Bhargava pra...@redhat.com Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: John Stultz john.stu...@linaro.org ---

[PATCH -next] nfs: fix stub return type warnings

2012-07-27 Thread Randy Dunlap
rdun...@xenotime.net Cc: Trond Myklebust trond.mykleb...@netapp.com --- fs/nfs/nfs4_fs.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20120727.orig/fs/nfs/nfs4_fs.h +++ linux-next-20120727/fs/nfs/nfs4_fs.h @@ -380,7 +380,7 @@ static inline int nfs4_register_sysctl(v

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 11:39:23AM -0700, Andrew Stiegmann wrote: - Original Message - From: Greg KH gre...@linuxfoundation.org To: Andrew Stiegmann astiegm...@vmware.com Cc: Sam Ravnborg s...@ravnborg.org, linux-kernel@vger.kernel.org,

Re: Re: [Qemu-devel] [RFC PATCH 0/6] virtio-trace: Support virtio-trace

2012-07-27 Thread Blue Swirl
On Wed, Jul 25, 2012 at 8:15 AM, Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: (2012/07/25 5:26), Blue Swirl wrote: The following patch set provides a low-overhead system for collecting kernel tracing data of guests by a host in a virtualization environment. A guest OS generally

Re: [ 39/40] cpuset: mm: reduce large amounts of memory barrier related damage v3

2012-07-27 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2012 at 04:23:47PM +0100, Mel Gorman wrote: --- a/mm/slub.c +++ b/mm/slub.c @@ -1457,6 +1457,7 @@ static struct page *get_any_partial(stru struct zone *zone; enum zone_type high_zoneidx = gfp_zone(flags); struct page *page; + unsigned int

Re: [RFC] PCI/PM: Add ABI document for sysfs file d3cold_allowed

2012-07-27 Thread Rafael J. Wysocki
On Friday, July 27, 2012, Huang Ying wrote: This patch adds ABI document for the following sysfs file: /sys/bus/pci/devices/.../d3cold_allowed Signed-off-by: Huang Ying ying.hu...@intel.com Acked-by: Rafael J. Wysocki r...@sisk.pl --- Documentation/ABI/testing/sysfs-bus-pci | 12

[PATCH 1/3] regmap: fix some error messages to take account of irq_reg_stride

2012-07-27 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com A number of places in the code were printing error messages that included the address of a register, but were not calculating the register address in the same way as the access to the register. Use a temporary to solve this. Signed-off-by: Stephen Warren

[PATCH 2/3] regmap: implement irq chip suspend/resume operations

2012-07-27 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com When suspending, we set up the wake mask registers as required. Some chips don't have separate wake mask registers, so they set mask_base equal to wake_base. In that case, when resuming, we re-program the interrupt enable registers based on enable state

[PATCH 3/3] regmap: enhance regmap-irq to handle 1 IRQ feeding n chips

2012-07-27 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Some devices contain a single interrupt output, and multiple separate interrupt controllers that all trigger that interrupt output, yet provide no top-level interrupt controller/registers to allow determination of which child interrupt controller caused the

[PATCH] mfd: arizona: convert to regmap_add_irq_chips

2012-07-27 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com The Arizona chip contains a single interrupt that represents the unified output of multiple internal interrupt controllers. This pattern has been factored out into regmap-irq, so convert the Arizona driver to use the new regmap-irq code. This introduces

[PATCH V2] mfd: add MAX8907 core driver

2012-07-27 Thread Stephen Warren
From: Gyungoh Yoo jack@maxim-ic.com The MAX8907 is an I2C-based power-management IC containing voltage regulators, a reset controller, a real-time clock, and a touch-screen controller. The original driver was written by: * Gyungoh Yoo jack@maxim-ic.com Various fixes and enhancements by:

[GIT PATCH] TTY/serial patches for 3.6-rc1

2012-07-27 Thread Greg KH
The following changes since commit 28a33cbc24e4256c143dce96c7d93bf423229f92: Linux 3.5 (2012-07-21 13:58:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-3.6-rc1 for you to fetch changes up to

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Matthew Wilcox
On Fri, Jul 27, 2012 at 11:25:46AM -0700, Greg KH wrote: On Fri, Jul 27, 2012 at 02:12:12PM -0400, Matthew Wilcox wrote: I don't see a problem here, but I'm no expert at sysfs / character devices. Alan, Greg, anyone else see any problems with how this character device is created /

[PATCH 0/5] time/jiffies changes for tip/timers/core

2012-07-27 Thread John Stultz
Hey Thomas, Ingo, Here's updated time/jiffies patches including Ingo's feedback for tip/timers/core. Let me know if there's any further tweaks you'd like to see. thanks -john Cc: Ingo Molnar mi...@kernel.org Cc: Thomas Gleixner t...@linutronix.de Cc: Prarit Bhargava pra...@redhat.com

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Greg KH
On Fri, Jul 27, 2012 at 03:08:21PM -0400, Matthew Wilcox wrote: On Fri, Jul 27, 2012 at 11:25:46AM -0700, Greg KH wrote: On Fri, Jul 27, 2012 at 02:12:12PM -0400, Matthew Wilcox wrote: I don't see a problem here, but I'm no expert at sysfs / character devices. Alan, Greg, anyone else

[RESEND PATCH] slub: reduce failure of this_cpu_cmpxchg in put_cpu_partial() after unfreezing

2012-07-27 Thread Joonsoo Kim
In current implementation, after unfreezing, we doesn't touch oldpage, so it remain 'NOT NULL'. When we call this_cpu_cmpxchg() with this old oldpage, this_cpu_cmpxchg() is mostly be failed. We can change value of oldpage to NULL after unfreezing, because unfreeze_partial() ensure that all the

RE: [PATCH 0/4] promote zcache from staging

2012-07-27 Thread Dan Magenheimer
From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] Subject: [PATCH 0/4] promote zcache from staging zcache is the remaining piece of code required to support in-kernel memory compression. The other two features, cleancache and frontswap, have been promoted to mainline in 3.0 and 3.5.

Re: [RFC] page-table walkers vs memory order

2012-07-27 Thread Hugh Dickins
On Thu, 26 Jul 2012, Peter Zijlstra wrote: On Tue, 2012-07-24 at 14:51 -0700, Hugh Dickins wrote: I do love the status quo, but an audit would be welcome. When it comes to patches, personally I tend to prefer ACCESS_ONCE() and smp_read_barrier_depends() and accompanying comments to be

Re: [PATCH 4/6] rbtree: faster augmented insert

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: --- a/lib/rbtree.c +++ b/lib/rbtree.c @@ -88,7 +88,8 @@ __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, root-rb_node = new; } -void rb_insert_color(struct rb_node *node, struct rb_root *root)

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Jeff Garzik
On 07/27/2012 02:12 PM, Matthew Wilcox wrote: On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: Registers a character device for the nvme module and creates character files as /dev/nvmeN for each nvme device probed, where N is the device instance. The character devices support nvme

Re: RAID extremely slow

2012-07-27 Thread Bill Davidsen
Kevin Ross wrote: unused devices:none # cat /proc/sys/dev/raid/speed_limit_min 1 MD is unable to reach its minimum rebuild rate while other system activity is ongoing. You might want to lower this number to see if that gets you out of the stalls. Or temporarily shut down mythtv. I

Re: [PATCH 0/7] KDB: Kiosk (reduced capabilities) mode

2012-07-27 Thread Colin Cross
On Thu, Jul 26, 2012 at 7:25 AM, Anton Vorontsov anton.voront...@linaro.org wrote: Hi all, Here is a patchset that implements kiosk mode for KDB debugger. The mode provides reduced set of features, so that it is no longer possible to leak sensitive data via the debugger, and not possible to

Re: [PATCH 4/6] rbtree: faster augmented insert

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: rb_insert_color() is now a special case of rb_insert_augmented() with a do-nothing callback. I used inlining to optimize out the callback, with the intent that this would generate the same code as previously for

Re: [PATCH/RFC] platform: Add support for automatic device IDs

2012-07-27 Thread Jean Delvare
Hi Greg, On Fri, 27 Jul 2012 11:21:55 -0700, Greg Kroah-Hartman wrote: On Fri, Jul 27, 2012 at 01:46:25PM +0200, Jean Delvare wrote: Right now we have support for explicit platform device IDs, as well as ID-less platform devices when a given device type can only have one instance. However

Re: [PATCH 0/3] add new API to sysfs and device core code

2012-07-27 Thread Colin Cross
On Fri, Jul 27, 2012 at 8:50 AM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Jul 27, 2012 at 12:02:40PM +0800, Bryan Wu wrote: Send out a uevent when create file in sysfs, which is required by userspace application such udev in Android There is no such thing as udev in Android the last

Re: [RFC] page-table walkers vs memory order

2012-07-27 Thread Paul E. McKenney
On Fri, Jul 27, 2012 at 12:22:46PM -0700, Hugh Dickins wrote: On Thu, 26 Jul 2012, Peter Zijlstra wrote: On Tue, 2012-07-24 at 14:51 -0700, Hugh Dickins wrote: I do love the status quo, but an audit would be welcome. When it comes to patches, personally I tend to prefer ACCESS_ONCE() and

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

2012-07-27 Thread Kent Yoder
Since you no longer modify *max anywhere in this function, why leave it a pointer? Making it pass by value seems more logical at that point (and cleaner). The only consumer which can make use of partial result is tpm_rng_read(), but that will now return zero unless the buffer is filled.

Re: [PATCH 5/6] rbtree: faster augmented erase

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -1,5 +1,6 @@ #include linux/module.h #include linux/rbtree.h +#include linux/rbtree_internal.h This confuses me.. either its internal to the rb-tree implementation and users

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Sam Ravnborg
+ +#define CAN_BLOCK(_f) (!((_f) VMCI_QPFLAG_NONBLOCK)) +#define QP_PINNED(_f) ((_f) VMCI_QPFLAG_PINNED) Looks like poor obscufation. Use a statis inline function if you need a helper for this. These definitions are intended more as a helper to make reading the code easier.

Re: [PATCH 5/6] rbtree: faster augmented erase

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: +static inline void +rb_erase_augmented(struct rb_node *node, struct rb_root *root, + rb_augment_propagate *augment_propagate, + rb_augment_rotate *augment_rotate) So why put all this in a static

Re: [PATCH 4/6] rbtree: faster augmented insert

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: +static void augment_rotate(struct rb_node *rb_old, struct rb_node *rb_new) +{ + struct test_node *old = rb_entry(rb_old, struct test_node, rb); + struct test_node *new = rb_entry(rb_new, struct test_node, rb); + +

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Andrew Stiegmann
- Original Message - From: Sam Ravnborg s...@ravnborg.org To: Andrew Stiegmann astiegm...@vmware.com Cc: linux-kernel@vger.kernel.org, virtualizat...@lists.linux-foundation.org, pv-driv...@vmware.com, vm-crosst...@vmware.com, csch...@vmware.com, gre...@linuxfoundation.org Sent:

Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread adam radford
On 7/27/12, Jiri Kosina jkos...@suse.cz wrote: On Sat, 21 Jul 2012, Jiri Kosina wrote: The device identifies itself as 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 and seems to be functionally compatible

Re: [PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-27 Thread Jiri Kosina
On Fri, 27 Jul 2012, adam radford wrote: The device identifies itself as 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 and seems to be functionally compatible with 0x0054 PID. The request for

[PATCH v2] platform: Add support for automatic device IDs

2012-07-27 Thread Jean Delvare
Right now we have support for explicit platform device IDs, as well as ID-less platform devices when a given device type can only have one instance. However there are cases where multiple instances of a device type can exist, and their IDs aren't (and can't be) known in advance and do not matter.

Re: [RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not

2012-07-27 Thread Tony Luck
On Fri, Jul 27, 2012 at 3:28 AM, Wen Congyang we...@cn.fujitsu.com wrote: +static inline int pfns_present(unsigned long pfn, unsigned long nr_pages) +{ + int i; + for (i = 0; i nr_pages; i++) { + if (pfn_present(pfn + 1)) Typo? I think you meant pfn + i +

[PATCH] slub: remove one code path and reduce lock contention in __slab_free()

2012-07-27 Thread Joonsoo Kim
When we try to free object, there is some of case that we need to take a node lock. This is the necessary step for preventing a race. After taking a lock, then we try to cmpxchg_double_slab(). But, there is a possible scenario that cmpxchg_double_slab() is failed. Following example explains this.

Re: [PATCH] x86: don't ever patch back to UP if we unplug cpus.

2012-07-27 Thread Suresh Siddha
On Fri, 2012-07-27 at 17:08 +0930, Rusty Russell wrote: Paul McKenney points out: mean offline overhead is 6251/48=130.2 milliseconds. If I remove the alternatives_smp_switch() from the offline path [...] the mean offline overhead is 550/42=13.1 milliseconds Basically, we're never

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Matthew Wilcox
On Fri, Jul 27, 2012 at 03:28:25PM -0400, Jeff Garzik wrote: On 07/27/2012 02:12 PM, Matthew Wilcox wrote: On Fri, Jul 27, 2012 at 10:44:18AM -0600, Keith Busch wrote: Registers a character device for the nvme module and creates character files as /dev/nvmeN for each nvme device probed, where

Re: [Pv-drivers] [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Dmitry Torokhov
On Fri, Jul 27, 2012 at 11:16:39AM -0700, Greg KH wrote: On Fri, Jul 27, 2012 at 10:20:43AM -0700, Andrew Stiegmann wrote: The kernel style is to use lower_case for everything. So this would become: vmci_device_get() This is obviously a very general comment and applies

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

2012-07-27 Thread Kent Yoder
Hi, Since you no longer modify *max anywhere in this function, why leave it a pointer? Making it pass by value seems more logical at that point (and cleaner). The only consumer which can make use of partial result is tpm_rng_read(), but that will now return zero unless the buffer is

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Matthew Wilcox
On Fri, Jul 27, 2012 at 12:21:00PM -0700, Greg KH wrote: Also, why are you creating your own class? Can't this just be a misc device? And if you want to create your own class, please don't, use a bus, as that is what is really happening here, right? We are trying to move away from

Re: [PATCH] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread David Miller
From: Jiri Kosina jkos...@suse.cz Date: Fri, 27 Jul 2012 16:05:06 +0200 (CEST) #ifdef CONFIG_NET_DMA - if (tcp_dma_try_early_copy(sk, skb, tcp_header_len)) { + if (tp-ucopy.task == current +

[PATCH v2] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread Jiri Kosina
Back in 2006, commit 1a2449a87b ([I/OAT]: TCP recv offload to I/OAT) added support for receive offloading to IOAT dma engine if available. The code in tcp_rcv_established() tries to perform early DMA copy if applicable. It however does so without checking whether the userspace task is actually

Re: [PATCH] NVMe: Add a character device for each nvme device

2012-07-27 Thread Jeff Garzik
On 07/27/2012 04:26 PM, Matthew Wilcox wrote: Maybe we should design such a mechanism, but maybe we shouldn't ... as we find common things to do, we tend to move those to sysfs, not ioctls, and the kinds of commands that are being sent here are essentially vendor-specific NVMe commands; it's not

Re: [PATCHv3] locks: prevent side-effects of locks_release_private before file_lock is initialized

2012-07-27 Thread J. Bruce Fields
On Fri, Jul 27, 2012 at 12:42:52AM -0400, Filipe Brandenburger wrote: When calling fcntl(fd, F_SETLEASE, lck) [with lck=F_WRLCK or F_RDLCK], the custom signal or owner (if any were previously set using F_SETSIG or F_SETOWN fcntls) would be reset when F_SETLEASE was called for the second time

Re: [PATCH] of: drop of_pdt_build_more in pdt.c

2012-07-27 Thread David Miller
From: Sam Ravnborg s...@ravnborg.org Date: Fri, 27 Jul 2012 13:40:09 +0200 From bc1fde5cacff425c4bddc061a72e52d3ecb9eeb2 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg s...@ravnborg.org Date: Fri, 27 Jul 2012 13:34:54 +0200 Subject: [PATCH] of: drop of_pdt_build_more in pdt.c It is no longer

Re: [PATCH] slub: remove one code path and reduce lock contention in __slab_free()

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: Subject and commit log are changed from v1. That looks a bit better. But the changelog could use more cleanup and clearer expression. @@ -2490,25 +2492,17 @@ static void __slab_free(struct kmem_cache *s, struct page *page, return;

Re: [PATCH v2] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread David Miller
From: Jiri Kosina jkos...@suse.cz Date: Fri, 27 Jul 2012 22:38:50 +0200 (CEST) Back in 2006, commit 1a2449a87b ([I/OAT]: TCP recv offload to I/OAT) added support for receive offloading to IOAT dma engine if available. The code in tcp_rcv_established() tries to perform early DMA copy if

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: move_pages() syscall may return success in case that do_move_page_to_node_array return positive value which means migration failed. Nope. It only means that the migration for some pages has failed. This may still be considered successful for the app if

Re: [RESEND PATCH 2/4 v3] mm: fix possible incorrect return value of migrate_pages() syscall

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: do_migrate_pages() can return the number of pages not migrated. Because migrate_pages() syscall return this value directly, migrate_pages() syscall may return the number of pages not migrated. In fail case in migrate_pages() syscall, we should return

Re: [PATCH 0/4] promote zcache from staging

2012-07-27 Thread Konrad Rzeszutek Wilk
On Fri, Jul 27, 2012 at 12:21:50PM -0700, Dan Magenheimer wrote: From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] Subject: [PATCH 0/4] promote zcache from staging zcache is the remaining piece of code required to support in-kernel memory compression. The other two features,

Re: [lm-sensors] [PATCH] hwmon: (applesmc) Decode and act on read/write status codes

2012-07-27 Thread Guenter Roeck
Hi Henrik, On Fri, Jul 27, 2012 at 08:12:46PM +0200, Henrik Rydberg wrote: The behavior of the SMC has changed several times over the years, causing read failures in the driver. It seems the problem can be explained by a shift in SMC speed combined with improper action on status codes. We

[PATCH] x86, EFI: Calculate the EFI framebuffer size instead of trusting the firmware

2012-07-27 Thread Matthew Garrett
Seth Forshee reported that his system was reporting that the EFI framebuffer stretched from 0x9001-0xb001 despite the GPU's BAR only covering 0x9000-0x9ff. It's safer to calculate this value from the pixel stride and screen height (values we already depend on) rather than face

[PATCH] Bluetooth: Another vendor specific ID for BCM20702A0 [0a5c:21f1]

2012-07-27 Thread Michal Marek
Bus 002 Device 003: ID 0a5c:21f1 Broadcom Corp. Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 1 bDeviceProtocol 1 bMaxPacketSize064 idVendor

Re: [PATCH] sctp: Make Invalid Stream Identifier ERROR follows SACK when bundling

2012-07-27 Thread Vlad Yasevich
here is an untested prototype of what I was talking about. This should handle multiple data chunks. -vlad --- include/net/sctp/command.h |1 + net/sctp/sm_sideeffect.c | 22 ++ net/sctp/sm_statefuns.c| 18 ++ 3 files changed, 33

Re: pull request: wireless 2012-07-27

2012-07-27 Thread David Miller
From: John W. Linville linvi...@tuxdriver.com Date: Fri, 27 Jul 2012 11:58:06 -0400 These fixes are intended for the 3.6 stream. Hauke Mehrtens provides a pair of bcma fixes, one to fix a build regression on mips and another to correct a pair of missing iounmap calls. Thomas Huehn offers

Re: [PATCH v8 0/7] power management patch set

2012-07-27 Thread Kumar Gala
On Jul 26, 2012, at 10:14 PM, Li Yang wrote: On Fri, Jul 27, 2012 at 1:29 AM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 26, 2012, at 9:02 AM, Li Yang wrote: On Fri, Jul 20, 2012 at 8:42 PM, Zhao Chenhui chenhui.z...@freescale.com wrote: Changes for v8: * Separated the cpu

Re: [lm-sensors] [PATCH] hwmon: (applesmc) Decode and act on read/write status codes

2012-07-27 Thread Henrik Rydberg
As I mentioned in a previous mail, backporting e70acc100 by itself is not a good idea, but together with this patch it should be ok. I think the patches should mature a bit in mainline. We can decide in a month or so if we want to backport them to previous releases. Yes, sorry, that was

Re: [PATCH 4/6] rbtree: faster augmented insert

2012-07-27 Thread Michel Lespinasse
On Fri, Jul 27, 2012 at 12:26 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: --- a/lib/rbtree.c +++ b/lib/rbtree.c @@ -88,7 +88,8 @@ __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, root-rb_node =

RE: [PATCH 0/4] promote zcache from staging

2012-07-27 Thread Dan Magenheimer
From: Konrad Rzeszutek Wilk [mailto:kon...@darnok.org] Sent: Friday, July 27, 2012 3:00 PM Subject: Re: [PATCH 0/4] promote zcache from staging On Fri, Jul 27, 2012 at 12:21:50PM -0700, Dan Magenheimer wrote: From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] Subject: [PATCH 0/4]

Re: RAID extremely slow

2012-07-27 Thread Kevin Ross
On 07/27/2012 12:08 PM, Bill Davidsen wrote: Have you set the io scheduler to deadline on all members of the array? That's kind of job one on older kernels. I have not, thanks for the tip, I'll look into that now. Thanks! -- Kevin -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v2 09/15] NFSd: make nfsd4_manager allocated per network namespace context.

2012-07-27 Thread J. Bruce Fields
On Wed, Jul 25, 2012 at 04:56:58PM +0400, Stanislav Kinsbursky wrote: Signed-off-by: Stanislav Kinsbursky skinsbur...@parallels.com --- fs/nfsd/netns.h |2 ++ fs/nfsd/nfs4state.c | 32 +++- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git

Re: [PATCH v2 00/15] Lockd: grace period containerization

2012-07-27 Thread J. Bruce Fields
On Wed, Jul 25, 2012 at 04:55:45PM +0400, Stanislav Kinsbursky wrote: Bruce, I feel this patch set is ready for inclusion. v2: 1) Rebase on Bruce's for-3.6 branch. This patch set makes grace period and hosts reclaiming network namespace aware. On a quick skim--yes, that looks reasonable

Re: [PATCH 4/6] rbtree: faster augmented insert

2012-07-27 Thread Michel Lespinasse
On Fri, Jul 27, 2012 at 1:04 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote: +static void augment_rotate(struct rb_node *rb_old, struct rb_node *rb_new) +{ + struct test_node *old = rb_entry(rb_old, struct test_node, rb); +

Re: [PATCH] powerpc/smp: Do not disable IPI interrupts during suspend

2012-07-27 Thread Kumar Gala
On Jul 20, 2012, at 7:47 AM, Zhao Chenhui wrote: During suspend, all interrupts including IPI will be disabled. In this case, the suspend process will hang in SMP. To prevent this, pass the flag IRQF_NO_SUSPEND when requesting IPI irq. Signed-off-by: Zhao Chenhui chenhui.z...@freescale.com

[PATCH] sh: pfc: Fix build issues in pinctrl.c

2012-07-27 Thread Rafael J. Wysocki
First off, drivers/sh/pfc/pinctrl.c doesn't build after commit 5d589b0 (pinctrl: remove pinctrl_remove_gpio_range), because sh_pfc_pinctrl_remove() uses the function that has been removed by that commit. Fix this by removing the pinctrl_remove_gpio_range() call, which is not necessary any more,

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

2012-07-27 Thread H. Peter Anvin
On 07/27/2012 01:30 PM, Kent Yoder wrote: + + do { + tpm_cmd.header.in = tpm_getrandom_header; + tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); + + err = transmit_cmd(chip, tpm_cmd, +

Re: [PATCH] powerpc/smp: Do not disable IPI interrupts during suspend

2012-07-27 Thread Benjamin Herrenschmidt
On Fri, 2012-07-27 at 16:58 -0500, Kumar Gala wrote: On Jul 20, 2012, at 7:47 AM, Zhao Chenhui wrote: During suspend, all interrupts including IPI will be disabled. In this case, the suspend process will hang in SMP. To prevent this, pass the flag IRQF_NO_SUSPEND when requesting IPI irq.

Re: [RFC] ARM: sched_clock: update epoch_cyc on resume

2012-07-27 Thread Linus Walleij
On Tue, Jul 24, 2012 at 11:16 AM, Bedia, Vaibhav vaibhav.be...@ti.com wrote: A connecting theme is that of being avle to flag clock sources as sched_clock providers. If all clocksources were tagged with rating, and only clocksources were used for sched_clock(), the kernel could select the

kernel BUG at fs/buffer.c:2886! Linux 3.5.0

2012-07-27 Thread Vincent ETIENNE
Hello Get this on first write made ( by deliver sending mail to inform of the restart of services ) Home partition (the one receiving the mail) is based on ocfs2 created from drbd block device in primary/primary mode These drbd devices are based on lvm. system is running linux-3.5.0, identical

Re: [PATCH v2] create sun sysfs file

2012-07-27 Thread Toshi Kani
On Fri, 2012-07-27 at 12:03 +0900, Yasuaki Ishimatsu wrote: Even if a device has _SUN method, there is no way to know the slot unique-ID. Thus the patch creates sun file in sysfs so that we can recognize it. Hi Yasuaki, Thanks for the update. This version looks good to me. Did you forget to

<    1   2   3   4   5   6   7   8   9   10   >