Re: [PATCH] mm: replace mmap_sem for mm->exe_file serialization

2015-02-27 Thread Davidlohr Bueso
On Fri, 2015-02-27 at 18:36 +0100, Oleg Nesterov wrote: > On 02/26, Cyrill Gorcunov wrote: > > > > On Thu, Feb 26, 2015 at 11:36:57AM -0800, Davidlohr Bueso wrote: > > > We currently use the mmap_sem to serialize the mm exe_file. > > > This is atrocious and a clear example of the misuses this > >

Re: [RFC PATCH] ARM64: cmpxchg.h: Clear the exclusive access bit on fail

2015-02-27 Thread Catalin Marinas
On Fri, Feb 27, 2015 at 06:25:25PM +, Pranith Kumar wrote: > On Fri, Feb 27, 2015 at 5:06 AM, Will Deacon wrote: > > On Fri, Feb 27, 2015 at 05:46:55AM +, Pranith Kumar wrote: > >> In cmpxchg(), we do a load exclusive on an address and upon a comparison > >> fail, > >> we skip the store

Re: [PATCH 1/1] tty: fix up atime/mtime mess, take four

2015-02-27 Thread Linus Torvalds
Looks sane, On Fri, Feb 27, 2015 at 9:40 AM, Jiri Slaby wrote: > Cc: Linus Torvalds Acked-by: Linus Torvalds Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH v2] net: 8390: axnet_cs: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b;

Re: [PATCH 1/3] locking: ww_mutex: add one level of indirection for access of the lock

2015-02-27 Thread Maarten Lankhorst
Assuming it's compile tested, can't really test that here. :) Reviewed-by: Maarten Lankhorst I can't review the second or third patch, I don't understand rt mutexes well enough. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH] mm: set khugepaged_max_ptes_none by 1/8 of HPAGE_PMD_NR

2015-02-27 Thread Ebru Akagunduz
Using THP, programs can access memory faster, by having the kernel collapse small pages into large pages. The parameter max_ptes_none specifies how many extra small pages (that are not already mapped) can be allocated when collapsing a group of small pages into one large page. A larger value of

RE: [PATCH v2 1/2] x86: mce: kexec: turn off MCE in kexec

2015-02-27 Thread Luck, Tony
> When CR4.MCE=0b and an MCE happens, it will shutdown the system, at > least on Intel, according to Tony I checked with the architects ... and I was right. If you clear CR4.MCE you'll still see the machine check - and you'll pull the big system reset lever. If you think the other cpus can

Re: [RFC PATCH] ARM64: cmpxchg.h: Clear the exclusive access bit on fail

2015-02-27 Thread Pranith Kumar
On Fri, Feb 27, 2015 at 5:06 AM, Will Deacon wrote: > On Fri, Feb 27, 2015 at 05:46:55AM +, Pranith Kumar wrote: >> In cmpxchg(), we do a load exclusive on an address and upon a comparison >> fail, >> we skip the store exclusive instruction. This can result in the exclusive bit >> still set.

Re: [Intel-gfx] [PATCH] drm/i915: fix failure to power off after hibernate

2015-02-27 Thread Imre Deak
On Fri, 2015-02-27 at 14:15 +0200, David Weinehall wrote: > On Thu, Feb 26, 2015 at 09:01:27PM +0100, Daniel Vetter wrote: > > On Thu, Feb 26, 2015 at 08:50:48PM +0200, Imre Deak wrote: > > [snip] > > > > > > The problem seems to be that after the kernel puts the device into D3 > > > the BIOS

[PATCH v2] net: 8390: pcnet_cs: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b;

[PATCH] Staging: vt6655: replace C99 style comments

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: ERROR: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/key.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/key.h b/drivers/staging/vt6655/key.h index

[PATCH RESEND 04/15] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging request at a0003480 [

[PATCH RESEND 15/15] Drivers: hv: vmbus: Add support for the NetworkDirect GUID

2015-02-27 Thread K. Y. Srinivasan
NetworkDirect is a service that supports guest RDMA. Define the GUID for this service. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |2 ++ include/linux/hyperv.h| 10 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel_mgmt.c

Re: [PATCH net-next v4 0/3] Linn Ethernet Packet Sniffer driver

2015-02-27 Thread Richard Cochran
On Fri, Feb 27, 2015 at 05:09:24PM +, Stathis Voukelatos wrote: > To summarize (and confirm my understanding) your suggestion is for the > sniffer to be configured to match PTP packets and (similarly to the > dp83640) return the Message Type and Sequence Id fields that will allow > them to be

[PATCH RESEND 12/15] hv: channel_mgmt: match var type to return type of wait_for_completion

2015-02-27 Thread K. Y. Srinivasan
From: Nicholas Mc Guire return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 ++- 1 files changed, 2

[PATCH RESEND 10/15] hv: vmbus_open(): reset the channel state on ENOMEM

2015-02-27 Thread K. Y. Srinivasan
From: Dexuan Cui Without this patch, the state is put to CHANNEL_OPENING_STATE, and when the driver is loaded next time, vmbus_open() will fail immediately due to newchannel->state != CHANNEL_OPEN_STATE. CC: "K. Y. Srinivasan" Signed-off-by: Dexuan Cui Reviewed-by: Jason Wang Signed-off-by:

[PATCH RESEND 06/15] clockevents: export clockevents_unbind_device instead of clockevents_unbind

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov It looks like clockevents_unbind is being exported by mistake as: - it is static; - it is not listed in include/linux/clockchips.h; - EXPORT_SYMBOL_GPL(clockevents_unbind) follows clockevents_unbind_device() implementation. I think clockevents_unbind_device should be

[PATCH RESEND 01/15] Drivers: hv: vmbus: prevent cpu offlining on newer hypervisors

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When an SMP Hyper-V guest is running on top of 2012R2 Server and secondary cpus are sent offline (with echo 0 > /sys/devices/system/cpu/cpu$cpu/online) the system freeze is observed. This happens due to the fact that on newer hypervisors (Win8, WS2012R2, ...) vmbus channel

[PATCH RESEND 14/15] Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()

2015-02-27 Thread K. Y. Srinivasan
Correctly rollback state if the failure occurs after we have handed over the ownership of the buffer to the host. Signed-off-by: K. Y. Srinivasan Cc: sta...@vger.kernel.org --- drivers/hv/channel.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH RESEND 07/15] Drivers: hv: vmbus: Teardown clockevent devices on module unload

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Newly introduced clockevent devices made it impossible to unload hv_vmbus module as clockevents_config_and_register() takes additional reverence to the module. To make it possible again we do the following: - avoid setting dev->owner for clockevent devices; - implement

[PATCH] Staging: vt6655: remove C99 style comments.

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: ERROR: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/device_main.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git

[PATCH RESEND 11/15] hv: channel: match var type to return type of wait_for_completion

2015-02-27 Thread K. Y. Srinivasan
From: Nicholas Mc Guire return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |3 ++- 1 files changed, 2 insertions(+), 1

[PATCH RESEND 03/15] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash on driver unload: [

[PATCH RESEND 13/15] hv: hv_balloon: match var type to return type of wait_for_completion

2015-02-27 Thread K. Y. Srinivasan
From: Nicholas Mc Guire return type of wait_for_completion_timeout is unsigned long not int, this patch changes the type of t from int to unsigned long. Signed-off-by: Nicholas Mc Guire Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |3 ++- 1 files changed, 2 insertions(+),

[PATCH RESEND 09/15] hv: vmbus_post_msg: retry the hypercall on some transient errors

2015-02-27 Thread K. Y. Srinivasan
From: Dexuan Cui I got HV_STATUS_INVALID_CONNECTION_ID on Hyper-V 2008 R2 when keeping running "rmmod hv_netvsc; modprobe hv_netvsc; rmmod hv_utils; modprobe hv_utils" in a Linux guest. Looks the host has some kind of throttling mechanism if some kinds of hypercalls are sent too frequently.

[PATCH RESEND 08/15] hv: hv_util: move vmbus_open() to a later place

2015-02-27 Thread K. Y. Srinivasan
From: Dexuan Cui Before the line vmbus_open() returns, srv->util_cb can be already running and the variables, like util_fw_version, are needed by the srv->util_cb. So we have to make sure the variables are initialized before the vmbus_open(). CC: "K. Y. Srinivasan" Reviewed-by: Vitaly

[PATCH RESEND 05/15] drivers: hv: vmbus: Teardown synthetic interrupt controllers on module unload

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov SynIC has to be switched off when we unload the module, otherwise registered memory pages can get corrupted after (as Hyper-V host still writes there) and we see the following crashes for random processes: [ 89.116774] BUG: Bad page map in process sh pte:4989c716

[PATCH RESEND 02/15] Drivers: hv: vmbus: rename channel work queues

2015-02-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov All channel work queues are named 'hv_vmbus_ctl', this makes them indistinguishable in ps output and makes it hard to link to the corresponding vmbus device. Rename them to hv_vmbus_ctl/N and make vmbus device names match, e.g. now vmbus_1 device is served by

[PATCH RESEND 00/15] Drivers: hv: vmbus: Miscellaneous fixes/enhancements

2015-02-27 Thread K. Y. Srinivasan
Windows hosts starting with Ws2012 R2 permit re-establishing the vmbus connection from the guest. This patch-set includes patches from Vitaly to cleanup the VMBUS unload path so we can potentially reload the driver. Also included here are some bug fixes from Dexuan and me. Dexuan Cui (3): hv:

[PATCH v2] net: smc91c92_cs: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b;

Re: [PATCH v2] android: binder: fix binder mmap failures

2015-02-27 Thread John Stultz
On Fri, Feb 27, 2015 at 9:44 AM, Andrey Ryabinin wrote: > binder_update_page_range() initializes only addr and size > fields in 'struct vm_struct tmp_area;' and passes it to > map_vm_area(). > > Before 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") > this was because

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tejun Heo
On Fri, Feb 27, 2015 at 12:45:03PM -0500, Tejun Heo wrote: > If your complaint is that this is taking too long, I hear you, and > there's a certain amount of validity in arguing that upstreaming a > temporary measure is the better trade-off, but the rationale for nproc > (or nfds, or virtual

Re: [RFC PATCH 1/1] proc: introduce /proc//lbr_stack

2015-02-27 Thread Andi Kleen
On Fri, Feb 27, 2015 at 08:58:29AM +0100, Peter Zijlstra wrote: > On Mon, Feb 23, 2015 at 09:44:48AM -0800, Andi Kleen wrote: > > On Mon, Feb 23, 2015 at 05:49:57PM +0100, Peter Zijlstra wrote: > > > On Mon, Feb 23, 2015 at 03:43:41AM +, kan.li...@intel.com wrote: > > > > From: Kan Liang > >

Re: [PATCH 0/2] incorrect cpumask behavior with CPUMASK_OFFSTACK

2015-02-27 Thread Oleg Drokin
Hello! On Feb 27, 2015, at 6:46 AM, Rusty Russell wrote: > gr...@linuxhacker.ru writes: >> From: Oleg Drokin >> >> I just got a report today from Tyson Whitehead >> that Lustre crashes when CPUMASK_OFFSTACK is enabled. >> >> A little investigation revealed that this code: >>cpumask_t

[REGRESSION][4.0-rc1] My i386 fails to do CPU hotplug

2015-02-27 Thread Steven Rostedt
Running my test suite on 4.0-rc1, my i386 run of my tests crashed with the following: Initializing CPU#1 invalid opcode: [#1] SMP Modules linked in: ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 ppdev parport_pc microcode r8169 parport CPU: 1

House keeping for the perf PMU dump/reset code

2015-02-27 Thread Andi Kleen
The perf core PMU driver has functions to dump the PMU, and also reset it when something goes wrong. These code paths hadn't quite keep up with newer PMU features. This patchkit fixes various issues. Shouldn't make a difference unless something goes wrong with the PMU. -Andi -- To unsubscribe

[PATCH 1/3] perf, x86: Reset more state in PMU reset

2015-02-27 Thread Andi Kleen
From: Andi Kleen The PMU reset code didn't quite keep up with newer PMU features. Improve it a bit to really reset a modern PMU: - Clear all overflow status - Clear LBRs and freezing state - Disable fixed counters too Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel.c | 11

[PATCH 3/3] perf, x86: Only dump PEBS register when PEBS has been detected

2015-02-27 Thread Andi Kleen
From: Andi Kleen Technically PEBS_ENABLED is only guaranteed to exist when we detected PEBS. So add a check for this to the PMU dump function. I don't think it can happen on a real CPU, but could in a VM. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 6 -- 1 file

[PATCH 2/3] perf, x86: Dump DEBUGCTL in pmu dump

2015-02-27 Thread Andi Kleen
From: Andi Kleen LBRs and LBR freezing are controlled through DEBUGCTL. So dump the state of DEBUGCTL too when dumping the PMU state. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v6 4/5] Input: add haptic drvier on max77843

2015-02-27 Thread Dmitry Torokhov
On Thu, Feb 26, 2015 at 11:49:36AM +0900, Jaewon Kim wrote: > Hi Dmitry, > > On 26/02/2015 10:23, Dmitry Torokhov wrote: > >Hi Jaewon, > > > >On Tue, Feb 24, 2015 at 10:29:07AM +0900, Jaewon Kim wrote: > >>+static void max77843_haptic_play_work(struct work_struct *work) > >>+{ > >>+ struct

[PATCH v2] android: binder: fix binder mmap failures

2015-02-27 Thread Andrey Ryabinin
binder_update_page_range() initializes only addr and size fields in 'struct vm_struct tmp_area;' and passes it to map_vm_area(). Before 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") this was because map_vm_area() didn't use any other fields in vm_struct except addr and

Re: [PATCH] net: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
On Fri, Feb 27, 2015 at 11:11 PM, David Miller wrote: > > I'm not applying these patches. > > Your Subject lines need adjusting. You have to say what specific > thing you are touching in each change. > > All of your changes say "net: " therefore someone scanning the > "git shortlog" can't tell

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tejun Heo
On Fri, Feb 27, 2015 at 09:25:10AM -0800, Tim Hockin wrote: > > In general, I'm pretty strongly against adding controllers for things > > which aren't fundamental resources in the system. What's next? Open > > files? Pipe buffer? Number of flocks? Number of session leaders or > > program

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

2015-02-27 Thread Stephen Boyd
On 02/26/15 19:08, Stephen Rothwell wrote: > Hi Mike, > > After merging the clk tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/trace/define_trace.h:90:0, > from include/trace/events/clk.h:198, > from

Re: [PATCH] x86, traps: maps all IDTs to fixmap area.

2015-02-27 Thread Kees Cook
On Thu, Feb 26, 2015 at 9:16 PM, Wang Nan wrote: > On 2015/2/27 2:31, Andy Lutomirski wrote: >> On Thu, Feb 26, 2015 at 8:45 AM, Kees Cook wrote: >>> On Thu, Feb 26, 2015 at 7:17 AM, Andy Lutomirski >>> wrote: On Wed, Feb 25, 2015 at 11:06 PM, Wang Nan wrote: > The reason why mapping

Re: [PATCH] net: Use setup_timer and mod_timer

2015-02-27 Thread David Miller
I'm not applying these patches. Your Subject lines need adjusting. You have to say what specific thing you are touching in each change. All of your changes say "net: " therefore someone scanning the "git shortlog" can't tell what might be difference in one of these changes vs. another. -- To

Re: [PATCH v2] net: bcmgenet: fix throughtput regression

2015-02-27 Thread Florian Fainelli
On 27/02/15 06:27, Jaedon Shin wrote: > This patch adds bcmgenet_tx_poll for all active tx_rings. It can reduce > the interrupt load and send xmit in upper network stack on time. > > The bcmgenet_tx_reclaim of tx_ring[{0,1,2,3}] process only under 18 > descriptors is to late reclaiming

Re: [PATCH] android: binder: fix binder mmap failures

2015-02-27 Thread Andrey Ryabinin
On 02/27/2015 08:26 PM, John Stultz wrote: > On Fri, Feb 27, 2015 at 8:30 AM, Andrey Ryabinin > wrote: >> binder_update_page_range() initializes only addr and size >> fields in 'struct vm_struct tmp_area;' and passes it to >> map_vm_area(). >> >> Before 71394fe50146 ("mm: vmalloc: add flag

[PATCH] Introduce the simple waitqueue (swait) implementation

2015-02-27 Thread Sebastian Andrzej Siewior
From: Peter Zijlstra The existing wait queue support has support for custom wake up call backs, wake flags, wake key (passed to call back) and exclusive flags that allow wakers to be tagged as exclusive, for limiting the number of wakers. In a lot of cases, none of these features are used, and

Re: [PATCH] mm: replace mmap_sem for mm->exe_file serialization

2015-02-27 Thread Oleg Nesterov
On 02/26, Cyrill Gorcunov wrote: > > On Thu, Feb 26, 2015 at 11:36:57AM -0800, Davidlohr Bueso wrote: > > We currently use the mmap_sem to serialize the mm exe_file. > > This is atrocious and a clear example of the misuses this > > lock has all over the place, making any significant changes > > to

[PATCH] netxen_nic: Fix trivial typos in comments

2015-02-27 Thread Yannick Guerrini
Change 'mutliple' to 'multiple' Change 'Firmare' to 'Firmware' Signed-off-by: Yannick Guerrini --- drivers/net/ethernet/qlogic/netxen/netxen_nic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic.h

[PATCH 1/1] tty: fix up atime/mtime mess, take four

2015-02-27 Thread Jiri Slaby
This problem was taken care of three times already in * b0de59b5733d18b0d1974a060860a8b5c1b36a2e (TTY: do not update atime/mtime on read/write), * 37b7f3c76595e23257f61bd80b223de8658617ee (TTY: fix atime/mtime regression), and * b0b885657b6c8ef63a46bc9299b2a7715d19acde (tty: fix up atime/mtime

[PATCH 2/2 linux-next] FS/HFSPLUS: move xattr_name allocation in hfsplus_setxattr()

2015-02-27 Thread Fabian Frederick
security/trusted/user/osx setxattr did the same xattr_name initialization. Move that operation in hfsplus_setxattr(). Tested with security/trusted/user getfattr/setfattr Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/hfsplus/xattr.c | 37

[PATCH 1/2 linux-next] FS/HFSPLUS: move xattr_name allocation in hfsplus_getxattr()

2015-02-27 Thread Fabian Frederick
security/trusted/user/osx getxattr did the same xattr_name initialization. Move that operation in hfsplus_getxattr(). Tested with security/trusted/user getfattr/setfattr Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/hfsplus/xattr.c | 38

Re: [PATCH v2 1/1] Bluetooth: make hci_test_bit's addr const

2015-02-27 Thread Marcel Holtmann
Hi Jiri, >>> gcc5 warns about passing a const array to hci_test_bit which takes a >>> non-const pointer: >>> net/bluetooth/hci_sock.c: In function ‘hci_sock_sendmsg’: >>> net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of >>> ‘hci_test_bit’ discards ‘const’ qualifier from pointer

Re: [PATCH v2 1/1] Bluetooth: make hci_test_bit's addr const

2015-02-27 Thread Marcel Holtmann
Hi Jiri, > gcc5 warns about passing a const array to hci_test_bit which takes a > non-const pointer: > net/bluetooth/hci_sock.c: In function ‘hci_sock_sendmsg’: > net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of ‘hci_test_bit’ > discards ‘const’ qualifier from pointer target type

Re: [PATCH] android: binder: fix binder mmap failures

2015-02-27 Thread John Stultz
On Fri, Feb 27, 2015 at 8:30 AM, Andrey Ryabinin wrote: > binder_update_page_range() initializes only addr and size > fields in 'struct vm_struct tmp_area;' and passes it to > map_vm_area(). > > Before 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") > this was because

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tim Hockin
On Fri, Feb 27, 2015 at 9:06 AM, Tejun Heo wrote: > Hello, > > On Fri, Feb 27, 2015 at 11:42:10AM -0500, Austin S Hemmelgarn wrote: >> Kernel memory consumption isn't the only valid reason to want to limit the >> number of processes in a cgroup. Limiting the number of processes is very >> useful

Re: [PATCH net-next v4 0/3] Linn Ethernet Packet Sniffer driver

2015-02-27 Thread Stathis Voukelatos
Hi Richard, On 25/02/15 17:30, Richard Cochran wrote: I need some more time to study your other suggestions regarding the PHY timestamping framework. From my (limited) understanding of your HW device, I should think that it will work. The PHY time stamping subsystem is not the most obvious

Re: [PATCH v2 7/7] thermal: export thermal_zone_parameters to sysfs

2015-02-27 Thread Javi Merino
On Thu, Feb 26, 2015 at 10:04:24PM +, Eduardo Valentin wrote: > On Thu, Feb 26, 2015 at 05:30:00PM -0400, Eduardo Valentin wrote: > > On Thu, Feb 26, 2015 at 07:00:33PM +, Javi Merino wrote: > > > It's useful for tuning to be able to edit thermal_zone_parameters from > > > userspace.

Re: [PATCH v2] net: bcmgenet: fix throughtput regression

2015-02-27 Thread Eric Dumazet
On Fri, 2015-02-27 at 23:27 +0900, Jaedon Shin wrote: > This patch adds bcmgenet_tx_poll for all active tx_rings. It can reduce > the interrupt load and send xmit in upper network stack on time. > > The bcmgenet_tx_reclaim of tx_ring[{0,1,2,3}] process only under 18 > descriptors is to late

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tejun Heo
On Fri, Feb 27, 2015 at 09:12:45AM -0800, Tim Hockin wrote: > I was told that the plan was to use kmemcg - but I was told that YEARS > AGO. In the mean time we all either do our own thing or we do nothing > and suffer. Wasn't it like a year ago? Yeah, it's taking longer than everybody hoped but

Re: [PATCH 2/3] soc: ti: Add wkup_m3_ipc driver

2015-02-27 Thread Tony Lindgren
* Dave Gerlach [150227 09:04]: > Tony, > On 02/26/2015 04:08 PM, Tony Lindgren wrote: > > * Dave Gerlach [150226 12:05]: > >> Tony, > >> On 01/05/2015 04:51 PM, Tony Lindgren wrote: > >>> * Dave Gerlach [150105 14:51]: > Felipe, > On 01/02/2015 02:16 PM, Felipe Balbi wrote: > > On

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tim Hockin
On Fri, Feb 27, 2015 at 8:42 AM, Austin S Hemmelgarn wrote: > On 2015-02-27 06:49, Tejun Heo wrote: >> >> Hello, >> >> On Mon, Feb 23, 2015 at 02:08:09PM +1100, Aleksa Sarai wrote: >>> >>> The current state of resource limitation for the number of open >>> processes (as well as the number of open

[PATCH] qlcnic: Fix trivial typo in comment

2015-02-27 Thread Yannick Guerrini
Change 'Firmare' to 'Firmware' Signed-off-by: Yannick Guerrini --- drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h index fa43176..f221126

[PATCH 3/2] cpusets,isolcpus: document relationship between cpusets & isolcpus

2015-02-27 Thread Rik van Riel
Document the subtly changed relationship between cpusets and isolcpus. Turns out the old documentation did not quite match the code... Signed-off-by: Rik van Riel Suggested-by: Peter Zijlstra --- Documentation/cgroups/cpusets.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-)

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Tejun Heo
Hello, On Fri, Feb 27, 2015 at 11:42:10AM -0500, Austin S Hemmelgarn wrote: > Kernel memory consumption isn't the only valid reason to want to limit the > number of processes in a cgroup. Limiting the number of processes is very > useful to ensure that a program is working correctly (for

rt_mutex based ww_mutex implementation

2015-02-27 Thread Sebastian Andrzej Siewior
On -RT we use struct rt_mutex instead of struct mutex for a regular "mutex". And since people use GPUs there, too we needed a port of ww_mutex based rtmutex. I snipped the implementaton out of -RT tried to fit on mainline and not breaking too much. It doesn't look that bad now :) #1 is here to

[PATCH] regulator: act8865: Add act8600 support

2015-02-27 Thread Zubair Lutfullah Kakakhel
This patch adds act8600 support to the act8865 driver. VBUS and USB charger supported by this chip can be added later Tested on MIPS Creator CI20 Signed-off-by: Zubair Lutfullah Kakakhel --- I've tried to be least intrusive. But can't use the macro because of differences in SUDCDC and

Re: [RFC 2/3] x86: Switch all C consumers of kernel_stack to this_cpu_sp0

2015-02-27 Thread Denys Vlasenko
On 02/27/2015 01:07 AM, Andy Lutomirski wrote: > This will make modifying the semantics of kernel_stack easier. > > Cc: Konrad Rzeszutek Wilk > Cc: Boris Ostrovsky > Cc: Rusty Russell > Signed-off-by: Andy Lutomirski > --- > arch/x86/include/asm/thread_info.h | 3 +-- >

Re: [PATCH 2/3] soc: ti: Add wkup_m3_ipc driver

2015-02-27 Thread Dave Gerlach
Tony, On 02/26/2015 04:08 PM, Tony Lindgren wrote: > * Dave Gerlach [150226 12:05]: >> Tony, >> On 01/05/2015 04:51 PM, Tony Lindgren wrote: >>> * Dave Gerlach [150105 14:51]: Felipe, On 01/02/2015 02:16 PM, Felipe Balbi wrote: > On Fri, Jan 02, 2015 at 02:00:16PM -0600, Dave

[PATCH 2/3] locking: ww_mutex: Allow to use rt_mutex instead of mutex for the baselock

2015-02-27 Thread Sebastian Andrzej Siewior
This patch makes it possible to replace the base mutex by a rt_mutex. In general one would not do this. In -RT we use rt_mutex instead of the mutex by default and this means we need the ww_mutex functionality based on rt_mutex. This patch includes a slightly modified version of what we have in the

[PATCH v3] spi: qup: Add DMA capabilities

2015-02-27 Thread Stanimir Varbanov
From: Andy Gross This patch adds DMA capabilities to the spi-qup driver. If DMA channels are present, the QUP will use DMA instead of block mode for transfers to/from SPI peripherals for transactions larger than the length of a block. Signed-off-by: Andy Gross Signed-off-by: Stanimir Varbanov

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

2015-02-27 Thread Tony Lindgren
* Pali Rohár [150227 08:05]: > On Friday 27 February 2015 16:43:20 Tony Lindgren wrote: > > * Pali Rohár [150226 05:54]: > > > Harmattan system on Nokia N9 and N950 devices uses omap > > > crypto support. Bootloader on those devices is known that > > > it enables HW crypto support. This patch

Re: [PATCH] Staging: rtl8188eu: fix coding style errors

2015-02-27 Thread Larry Finger
On 02/27/2015 10:44 AM, Matteo Semenzato wrote: From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) ERROR: switch and case should be at the same indent Signed-off-by: Matteo Semenzato

Re: [PATCH net-next 2/2] net: netcp: select davinci_mdio driver by default

2015-02-27 Thread Tony Lindgren
* Murali Karicheri [150224 13:31]: > Keystone netcp driver re-uses davinci mdio driver. So enable it > by default for keystone netcp driver. > > Signed-off-by: Murali Karicheri > --- > drivers/net/ethernet/ti/Kconfig |1 + > 1 file changed, 1 insertion(+) > > diff --git

[PATCH 3/3] locking: rtmutex: set state back to running on error

2015-02-27 Thread Sebastian Andrzej Siewior
The "usual" path is: - rt_mutex_slowlock() - set_current_state() - task_blocks_on_rt_mutex() (ret 0) - __rt_mutex_slowlock() - sleep or not but do return with __set_current_state(TASK_RUNNING) - back to caller. In the early error case where task_blocks_on_rt_mutex() return -EDEADLK we

[PATCH 1/3] locking: ww_mutex: add one level of indirection for access of the lock

2015-02-27 Thread Sebastian Andrzej Siewior
This level of indirection is one step towards replacing the "mutex" with a different kind of locking mechanism. The new functions of the form "__.*_lock" provide access to whatever is hidden behind the "base" member in ww-mutex's struct Signed-off-by: Sebastian Andrzej Siewior ---

Re: [PATCH net-next 1/2] net: davinci_mdio: don't request io address range

2015-02-27 Thread Tony Lindgren
* Murali Karicheri [150224 13:32]: > From: Grygorii Strashko > > Historically Davinci MDIO driver was created with assumption that > MDIO is standalone device, but for Keystone 2 it's a part > of NETCP module and now NETCP driver requests IO range which > includes MDIO IO range too. This

Re: [PATCH] Staging: rtl8188eu: fix coding style errors

2015-02-27 Thread Greg KH
On Fri, Feb 27, 2015 at 05:44:09PM +0100, Matteo Semenzato wrote: > From: Matteo Semenzato > > This patch fixes the following errors: > ERROR: space prohibited before that ',' (ctx:WxW) > ERROR: space prohibited before that ',' (ctx:WxW) > ERROR: switch and case should be at the same indent

Re: [PATCH] Staging: rtl8188eu: fix style errors

2015-02-27 Thread Greg KH
On Fri, Feb 27, 2015 at 05:49:15PM +0100, Matteo Semenzato wrote: > From: Matteo Semenzato > > This patch fixes the following errors: > ERROR: code indent should use tabs where possible > ERROR: space prohibited before that Again, multiple things means multiple patches. -- To unsubscribe from

[PATCH] Staging: rtl8188eu: fix style errors

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: code indent should use tabs where possible ERROR: space prohibited before that Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 4 ++-- drivers/staging/rtl8188eu/hal/odm.c

[PATCH] Staging: rtl8188eu: fix coding style errors

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) ERROR: switch and case should be at the same indent Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_efuse.c

Re: [PATCH RFC 0/2] add nproc cgroup subsystem

2015-02-27 Thread Austin S Hemmelgarn
On 2015-02-27 06:49, Tejun Heo wrote: Hello, On Mon, Feb 23, 2015 at 02:08:09PM +1100, Aleksa Sarai wrote: The current state of resource limitation for the number of open processes (as well as the number of open file descriptors) requires you to use setrlimit(2), which means that you are

Re: [PATCH] perf report: Fix branch stack mode cannot be set

2015-02-27 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 27, 2015 at 05:58:44PM +0800, He Kuang escreveu: > ping.. Thanks, applied to perf/core. - Arnaldo > 在 2015/2/15 10:33, He Kuang 写道: > >When perf.data file be abtained by using 'perf record -b', perf report > >should use branch stack mode to generate output. But this function is >

[PATCH] android: binder: fix binder mmap failures

2015-02-27 Thread Andrey Ryabinin
binder_update_page_range() initializes only addr and size fields in 'struct vm_struct tmp_area;' and passes it to map_vm_area(). Before 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") this was because map_vm_area() didn't use any other fields in vm_struct except addr and

randconfig build error with next-20150227, in drivers/rtc/rtc-abx805.c

2015-02-27 Thread Jim Davis
Building with the attached random configuration file, drivers/rtc/rtc-abx805.c: In function 'abx805_read_multiple_regs': drivers/rtc/rtc-abx805.c:55:2: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration] if ((i2c_transfer(client->adapter, [0], 2)) !=

Re: [PATCH v2 1/1] Bluetooth: make hci_test_bit's addr const

2015-02-27 Thread Jiri Slaby
On 02/19/2015, 05:10 PM, Marcel Holtmann wrote: > Hi Jiri, > >> gcc5 warns about passing a const array to hci_test_bit which takes a >> non-const pointer: >> net/bluetooth/hci_sock.c: In function ‘hci_sock_sendmsg’: >> net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of >>

[PATCH RFC 1/3] Drivers: hv: kvp: convert userspace/kernel communication to using char device

2015-02-27 Thread Vitaly Kuznetsov
Userspace/kernel communication via netlink has a number of issues: - It is hard for userspace to figure out if the kernel part was loaded or not and this fact can change as there is a way to enable/disable the service from host side. Racy daemon startup is also a problem. - When the userspace

[RFC] i2c-tools: i2ctransfer: add new tool

2015-02-27 Thread Wolfram Sang
This tool allows to construct and concat multiple I2C messages into one single transfer. Its aim is to test I2C master controllers, and so there is no SMBus fallback. Signed-off-by: Wolfram Sang --- I've been missing such a tool a number of times now, so I finally got around to writing it

[PATCH RFC 2/3] Drivers: hv: vss: convert userspace/kernel communication to using char device

2015-02-27 Thread Vitaly Kuznetsov
Userspace/kernel communication via netlink has a number of issues: - It is hard for userspace to figure out if the kernel part was loaded or not and this fact can change as there is a way to enable/disable the service from host side. Racy daemon startup is also a problem. - When the userspace

[PATCH] sh_eth: Fix lost MAC address on kexec

2015-02-27 Thread Geert Uytterhoeven
Commit 740c7f31c094703c ("sh_eth: Ensure DMA engines are stopped before freeing buffers") added a call to sh_eth_reset() to the sh_eth_set_ringparam() and sh_eth_close() paths. However, setting the software reset bit(s) in the EDMR register resets the MAC Address Registers to zero. Hence after

[PATCH RFC 3/3] Drivers: hv: fcopy: make it consistent with vss/kvp

2015-02-27 Thread Vitaly Kuznetsov
Re-implement fcopy in a consistent with "Drivers: hv: vss/kvp: convert userspace/kernel communication to using char device" way. In particular: - Implement "state machine" for the driver instead of 3 separate syncronization variables ('fcopy_transaction.active', 'fcopy_transaction.read_sema',

[PATCH RFC 0/3] Drivers: hv: utils: re-implement the kernel/userspace communication layer

2015-02-27 Thread Vitaly Kuznetsov
This series converts kvp/vss daemons to use misc char devices instead of netlink for userspace/kernel communication and then updates fcopy to be consistent with kvp/vss. Userspace/kernel communication via netlink has a number of issues: - It is hard for userspace to figure out if the kernel part

Re: [RFC 2/3] x86: Switch all C consumers of kernel_stack to this_cpu_sp0

2015-02-27 Thread Denys Vlasenko
On 02/27/2015 01:07 AM, Andy Lutomirski wrote: > This will make modifying the semantics of kernel_stack easier. > > Cc: Konrad Rzeszutek Wilk > Cc: Boris Ostrovsky > Cc: Rusty Russell > Signed-off-by: Andy Lutomirski > --- > arch/x86/include/asm/thread_info.h | 3 +-- >

Re: [PATCH v2 4/7] thermal: introduce the Power Allocator governor

2015-02-27 Thread Javi Merino
On Thu, Feb 26, 2015 at 08:36:16PM +, Eduardo Valentin wrote: > Javi, > > Replying in v2. > > On Thu, Feb 26, 2015 at 07:00:30PM +, Javi Merino wrote: > > > > > + > > +/** > > + * divvy_up_power() - divvy the allocated power between the actors > > + * @req_power: each actor's

RE: [PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

2015-02-27 Thread Haiyang Zhang
> -Original Message- > From: Andrew Schwartzmeyer [mailto:and...@schwartzmeyer.com] > Sent: Thursday, February 26, 2015 7:27 PM > To: Haiyang Zhang > Cc: KY Srinivasan; de...@linuxdriverproject.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; hall5...@vandals.uidaho.edu; >

[PATCH] staging: comedi: adv_pci1710: fix AI INSN_READ for non-zero channel

2015-02-27 Thread Ian Abbott
Reading of analog input channels by the `INSN_READ` comedi instruction is broken for all except channel 0. `pci171x_ai_insn_read()` calls `pci171x_ai_read_sample()` with the wrong value for the third parameter. It is supposed to be the current index in a channel list (which is always of length 1

Re: [PATCH] [trivial] treewide: Fix typo in printk messages

2015-02-27 Thread Andy Shevchenko
On Fri, Feb 27, 2015 at 4:52 PM, Masanari Iida wrote: > This patch fix spelling typo in printk messages. > Can you split by subsystems / drivers under question? > Signed-off-by: Masanari Iida > --- > arch/arc/kernel/unwind.c | 2 +- > arch/powerpc/kernel/prom.c

Re: potential corruption in synclink driver

2015-02-27 Thread Jiri Slaby
On 12/09/2014, 09:52 AM, Dan Carpenter wrote: > Hi Jiri, I hate to bother you with this, but you're the TTY expert. I'm > getting the following static checker warning: > > drivers/tty/synclink.c:4057 save_tx_buffer_request() > error: 'BufferSize' from user is not capped properly > >

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