[PATCH 3.2 65/94] IB/mlx4: Fix the SQ size of an RC QP

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Yishai Hadas commit f2940e2c76bb554a7fbdd28ca5b90904117a9e96 upstream. When calculating the required size of an RC QP send queue, leave enough space for masked atomic

[PATCH 3.16 173/305] USB: quirks: Fix entries on wrong list in 3.16.y

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Commits ddbe1fca0bcb ("USB: Add device quirk for ASUS T100 Base Station keyboard") and e5dff0e80463 ("USB: Add OTG PET device to TPL") were wrongly

[PATCH 3.2 65/94] IB/mlx4: Fix the SQ size of an RC QP

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Yishai Hadas commit f2940e2c76bb554a7fbdd28ca5b90904117a9e96 upstream. When calculating the required size of an RC QP send queue, leave enough space for masked atomic operations, which require

[PATCH 3.16 173/305] USB: quirks: Fix entries on wrong list in 3.16.y

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Commits ddbe1fca0bcb ("USB: Add device quirk for ASUS T100 Base Station keyboard") and e5dff0e80463 ("USB: Add OTG PET device to TPL") were wrongly backported to 3.16.y. The

[PATCH 3.16 078/305] ring-buffer: Prevent overflow of size in ring_buffer_resize()

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" commit 59643d1535eb220668692a5359de22545af579f6 upstream. If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE

[PATCH 3.16 277/305] ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Kangjie Lu commit cec8f96e49d9be372fdb0c3836dcf31ec71e457e upstream. The stack object “tread” has a total size of 32 bytes. Its field “event” and “val” both contain 4

[PATCH 3.16 053/305] MIPS: Don't unwind to user mode with EVA

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: James Hogan commit a816b306c62195b7c43c92cb13330821a96bdc27 upstream. When unwinding through IRQs and exceptions, the unwinding only continues if the PC is a kernel

[PATCH 3.16 078/305] ring-buffer: Prevent overflow of size in ring_buffer_resize()

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" commit 59643d1535eb220668692a5359de22545af579f6 upstream. If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE then the

[PATCH 3.16 277/305] ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Kangjie Lu commit cec8f96e49d9be372fdb0c3836dcf31ec71e457e upstream. The stack object “tread” has a total size of 32 bytes. Its field “event” and “val” both contain 4 bytes padding. These 8

[PATCH 3.16 053/305] MIPS: Don't unwind to user mode with EVA

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: James Hogan commit a816b306c62195b7c43c92cb13330821a96bdc27 upstream. When unwinding through IRQs and exceptions, the unwinding only continues if the PC is a kernel text address, however

[PATCH 3.2 29/94] sunrpc: Update RPCBIND_MAXNETIDLEN

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit 4b9c7f9db9a003f5c342184dc4401c1b7f2efb39 upstream. Commit 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL transports") added a 5-character

[PATCH 3.16 281/305] rds: fix an infoleak in rds_inc_info_copy

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Kangjie Lu commit 4116def2337991b39919f3b448326e21c40e0dbb upstream. The last field "flags" of object "minfo" is not initialized. Copying this object out may leak kernel

[PATCH 3.2 29/94] sunrpc: Update RPCBIND_MAXNETIDLEN

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Chuck Lever commit 4b9c7f9db9a003f5c342184dc4401c1b7f2efb39 upstream. Commit 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL transports") added a 5-character netid, but did not bump

[PATCH 3.16 281/305] rds: fix an infoleak in rds_inc_info_copy

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Kangjie Lu commit 4116def2337991b39919f3b448326e21c40e0dbb upstream. The last field "flags" of object "minfo" is not initialized. Copying this object out may leak kernel stack data. Assign 0

[PATCH 3.16 005/305] ath5k: Change led pin configuration for compaq c700 laptop

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Joseph Salisbury commit 7b9bc799a445aea95f64f15e0083cb19b5789abe upstream. BugLink: http://bugs.launchpad.net/bugs/972604 Commit

[PATCH 3.16 201/305] hwmon: (dell-smm) Restrict fan control and serial number to CAP_SYS_ADMIN by default

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Pali Rohár commit 7613663cc186f8f3c50279390ddc60286758001c upstream. For security reasons ordinary user must not be able to control fan speed via /proc/i8k by default.

[PATCH 3.16 224/305] ALSA: dummy: Fix a use-after-free at closing

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit d5dbbe6569481bf12dcbe3e12cff72c5f78d272c upstream. syzkaller fuzzer spotted a potential use-after-free case in snd-dummy driver when hrtimer is used as

[PATCH 3.16 005/305] ath5k: Change led pin configuration for compaq c700 laptop

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Joseph Salisbury commit 7b9bc799a445aea95f64f15e0083cb19b5789abe upstream. BugLink: http://bugs.launchpad.net/bugs/972604 Commit 09c9bae26b0d3c9472cb6ae45010460a2cee8b8d ("ath5k: add led pin

[PATCH 3.16 201/305] hwmon: (dell-smm) Restrict fan control and serial number to CAP_SYS_ADMIN by default

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Pali Rohár commit 7613663cc186f8f3c50279390ddc60286758001c upstream. For security reasons ordinary user must not be able to control fan speed via /proc/i8k by default. Some malicious software

[PATCH 3.16 224/305] ALSA: dummy: Fix a use-after-free at closing

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit d5dbbe6569481bf12dcbe3e12cff72c5f78d272c upstream. syzkaller fuzzer spotted a potential use-after-free case in snd-dummy driver when hrtimer is used as backend: >

[PATCH 3.2 05/94] alpha/PCI: Call iomem_is_exclusive() for IORESOURCE_MEM, but not IORESOURCE_IO

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit c20e128030caf0537d5e906753eac1c28fefdb75 upstream. The alpha pci_mmap_resource() is used for both IORESOURCE_MEM and IORESOURCE_IO resources, but

[PATCH 3.16 270/305] xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Beulich commit 6f2d9d99213514360034c6d52d2c3919290b3504 upstream. As of Xen 4.7 PV CPUID doesn't expose either of CPUID[1].ECX[7] and CPUID[0x8007].EDX[7] anymore,

[PATCH 3.2 05/94] alpha/PCI: Call iomem_is_exclusive() for IORESOURCE_MEM, but not IORESOURCE_IO

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit c20e128030caf0537d5e906753eac1c28fefdb75 upstream. The alpha pci_mmap_resource() is used for both IORESOURCE_MEM and IORESOURCE_IO resources, but iomem_is_exclusive() is

[PATCH 3.16 270/305] xen/acpi: allow xen-acpi-processor driver to load on Xen 4.7

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Beulich commit 6f2d9d99213514360034c6d52d2c3919290b3504 upstream. As of Xen 4.7 PV CPUID doesn't expose either of CPUID[1].ECX[7] and CPUID[0x8007].EDX[7] anymore, causing the driver

[PATCH 3.16 133/305] powerpc: Use privileged SPR number for MMCR2

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Huth commit 8dd75ccb571f3c92c48014b3dabd3d51a115ab41 upstream. We are already using the privileged versions of MMCR0, MMCR1 and MMCRA in the kernel, so for MMCR2, we

[PATCH 3.16 133/305] powerpc: Use privileged SPR number for MMCR2

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Huth commit 8dd75ccb571f3c92c48014b3dabd3d51a115ab41 upstream. We are already using the privileged versions of MMCR0, MMCR1 and MMCRA in the kernel, so for MMCR2, we should better use

[PATCH 3.2 28/94] fs/cifs: correctly to anonymous authentication for the NTLM(v2) authentication

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefan Metzmacher commit 1a967d6c9b39c226be1b45f13acd4d8a5ab3dc44 upstream. Only server which map unknown users to guest will allow access using a non-null NTLMv2_Response.

[PATCH 3.16 259/305] x86/power/64: Fix kernel text mapping corruption during image restoration

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: "Rafael J. Wysocki" commit 65c0554b73c920023cc8998802e508b798113b46 upstream. Logan Gunthorpe reports that hibernation stopped working reliably for him after

[PATCH 3.2 28/94] fs/cifs: correctly to anonymous authentication for the NTLM(v2) authentication

2016-08-13 Thread Ben Hutchings
3.2.82-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefan Metzmacher commit 1a967d6c9b39c226be1b45f13acd4d8a5ab3dc44 upstream. Only server which map unknown users to guest will allow access using a non-null NTLMv2_Response. For Samba it's the

[PATCH 3.16 259/305] x86/power/64: Fix kernel text mapping corruption during image restoration

2016-08-13 Thread Ben Hutchings
3.16.37-rc1 review patch. If anyone has any objections, please let me know. -- From: "Rafael J. Wysocki" commit 65c0554b73c920023cc8998802e508b798113b46 upstream. Logan Gunthorpe reports that hibernation stopped working reliably for him after commit ab76f7b4ab23 (x86/mm: Set

[PATCH] pinctrl: meson: get rid of unneeded domain structures

2016-08-13 Thread Beniamino Galvani
The driver originally supported more domains (register ranges) per pinctrl device, but since commit 9dab1868ec0d ("pinctrl: amlogic: Make driver independent from two-domain configuration") each device gets assigned a single domain and we instantiate multiple pinctrl devices in the DT. Therefore,

[PATCH] pinctrl: meson: get rid of unneeded domain structures

2016-08-13 Thread Beniamino Galvani
The driver originally supported more domains (register ranges) per pinctrl device, but since commit 9dab1868ec0d ("pinctrl: amlogic: Make driver independent from two-domain configuration") each device gets assigned a single domain and we instantiate multiple pinctrl devices in the DT. Therefore,

Re: [dm-devel] [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-08-13 Thread Mikulas Patocka
On Fri, 12 Aug 2016, Michal Hocko wrote: > On Thu 04-08-16 14:49:41, Mikulas Patocka wrote: > > > On Wed, 3 Aug 2016, Michal Hocko wrote: > > > > > But the device congestion is not the only condition required for the > > > throttling. The pgdat has also be marked congested which means that

Re: [dm-devel] [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-08-13 Thread Mikulas Patocka
On Fri, 12 Aug 2016, Michal Hocko wrote: > On Thu 04-08-16 14:49:41, Mikulas Patocka wrote: > > > On Wed, 3 Aug 2016, Michal Hocko wrote: > > > > > But the device congestion is not the only condition required for the > > > throttling. The pgdat has also be marked congested which means that

Re: staging: ks7010: Replace three printk() calls by pr_err()

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 13:10 +0200, SF Markus Elfring wrote: > > > Prefer usage of the macro "pr_err" over the interface "printk". > > Not correct > A checkpatch warning like "PREFER_PR_LEVEL" can point additional > possibilities out > for this use case. > Would you like to introduce any of the

Re: staging: ks7010: Replace three printk() calls by pr_err()

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 13:10 +0200, SF Markus Elfring wrote: > > > Prefer usage of the macro "pr_err" over the interface "printk". > > Not correct > A checkpatch warning like "PREFER_PR_LEVEL" can point additional > possibilities out > for this use case. > Would you like to introduce any of the

Re: [PATCH v3 0/7] x86: Rewrite switch_to()

2016-08-13 Thread Linus Torvalds
On Sat, Aug 13, 2016 at 9:38 AM, Brian Gerst wrote: > This patch set simplifies the switch_to() code, by moving the stack switch > code out of line into an asm stub before calling __switch_to(). This ends > up being more readable, and using the C calling convention instead of

Re: [PATCH v3 0/7] x86: Rewrite switch_to()

2016-08-13 Thread Linus Torvalds
On Sat, Aug 13, 2016 at 9:38 AM, Brian Gerst wrote: > This patch set simplifies the switch_to() code, by moving the stack switch > code out of line into an asm stub before calling __switch_to(). This ends > up being more readable, and using the C calling convention instead of > clobbering all

[PATCH 1/3] befs: fix typos in datastream.c

2016-08-13 Thread Luis de Bethencourt
Signed-off-by: Luis de Bethencourt --- Hi, This is a series of patches fixing small issues in datastream.c. On the process of doing the same for the rest of files. To finish cleanup and start adding documentation and new features. Thanks, Luis fs/befs/datastream.c |

[PATCH 1/3] befs: fix typos in datastream.c

2016-08-13 Thread Luis de Bethencourt
Signed-off-by: Luis de Bethencourt --- Hi, This is a series of patches fixing small issues in datastream.c. On the process of doing the same for the rest of files. To finish cleanup and start adding documentation and new features. Thanks, Luis fs/befs/datastream.c | 8 1 file

[PATCH 2/3] befs: improve documentation in datastream.c

2016-08-13 Thread Luis de Bethencourt
Convert function descriptions to kernel-doc style. Signed-off-by: Luis de Bethencourt --- fs/befs/datastream.c | 193 ++- 1 file changed, 98 insertions(+), 95 deletions(-) diff --git a/fs/befs/datastream.c

[PATCH 2/3] befs: improve documentation in datastream.c

2016-08-13 Thread Luis de Bethencourt
Convert function descriptions to kernel-doc style. Signed-off-by: Luis de Bethencourt --- fs/befs/datastream.c | 193 ++- 1 file changed, 98 insertions(+), 95 deletions(-) diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c index

[PATCH 3/3] befs: befs: fix style issues in datastream.c

2016-08-13 Thread Luis de Bethencourt
Fixing the following checkpatch.pl errors: ERROR: "foo * bar" should be "foo *bar" +befs_blocknr_t blockno, befs_block_run * run); WARNING: Missing a blank line after declarations + struct buffer_head *bh; + befs_debug(sb, "---> %s length: %llu", __func__,

[PATCH 3/3] befs: befs: fix style issues in datastream.c

2016-08-13 Thread Luis de Bethencourt
Fixing the following checkpatch.pl errors: ERROR: "foo * bar" should be "foo *bar" +befs_blocknr_t blockno, befs_block_run * run); WARNING: Missing a blank line after declarations + struct buffer_head *bh; + befs_debug(sb, "---> %s length: %llu", __func__,

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-13 Thread Oleg Nesterov
Forgot to mention... On 08/12, Bart Van Assche wrote: > > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -1643,7 +1643,12 @@ find_page: >* wait_on_page_locked is used to avoid unnecessarily >* serialisations and why it's safe. >

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-13 Thread Oleg Nesterov
Forgot to mention... On 08/12, Bart Van Assche wrote: > > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -1643,7 +1643,12 @@ find_page: >* wait_on_page_locked is used to avoid unnecessarily >* serialisations and why it's safe. >

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 09:41 -0700, Joe Perches wrote: > On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_cmnd *sc) > > > >    _cmd.dma); > >

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 09:41 -0700, Joe Perches wrote: > On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_cmnd *sc) > > > >    _cmd.dma); > >

[PATCH] android: binder: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue is being used to run deferred work for the android binder. The "binder_deferred_workqueue" queues only a single work item and hence does not require ordering. Also, this workqueue is not being used on a memory recliam path. Hence, the singlethreaded workqueue has been replaced with

[PATCH] android: binder: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue is being used to run deferred work for the android binder. The "binder_deferred_workqueue" queues only a single work item and hence does not require ordering. Also, this workqueue is not being used on a memory recliam path. Hence, the singlethreaded workqueue has been replaced with

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_cmnd *sc) > > >   _cmd.dma); > > >   if (nonemb_cmd.va == NULL) { > > >   

Re: [PATCH 2/2 v3] be2iscsi: Fix some error messages

2016-08-13 Thread Joe Perches
On Sat, 2016-08-13 at 14:31 +0200, Christophe JAILLET wrote: > Le 13/08/2016 à 13:35, Joe Perches a écrit : > > > @@ -268,7 +268,7 @@ static int beiscsi_eh_abort(struct scsi_cmnd *sc) > > >   _cmd.dma); > > >   if (nonemb_cmd.va == NULL) { > > >   

[PATCH] edac: wq: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. wq has been identity converted since it is used to detect things like ECC memory errors. It's not recommended to stall it from memory pressure. Hence,

[PATCH] edac: wq: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. wq has been identity converted since it is used to detect things like ECC memory errors. It's not recommended to stall it from memory pressure. Hence,

[PATCH v3 6/7] x86: Fix thread_saved_pc()

2016-08-13 Thread Brian Gerst
thread_saved_pc() was using a completely bogus method to get the return address. Since switch_to() was previously inlined, there was no sane way to know where on the stack the return address was stored. Now with the frame of a sleeping thread well defined, this can be implemented correctly.

[PATCH v3 6/7] x86: Fix thread_saved_pc()

2016-08-13 Thread Brian Gerst
thread_saved_pc() was using a completely bogus method to get the return address. Since switch_to() was previously inlined, there was no sane way to know where on the stack the return address was stored. Now with the frame of a sleeping thread well defined, this can be implemented correctly.

[PATCH v3 3/7] x86: Add struct inactive_task_frame

2016-08-13 Thread Brian Gerst
Add struct inactive_task_frame, which defines the layout of the stack for a sleeping process. For now, the only defined field is the BP register (frame pointer). Signed-off-by: Brian Gerst --- arch/x86/include/asm/stacktrace.h | 4 ++-- arch/x86/include/asm/switch_to.h | 5

[PATCH v3 4/7] x86: Rewrite switch_to() code

2016-08-13 Thread Brian Gerst
Move the low-level context switch code to an out-of-line asm stub instead of using complex inline asm. This allows constructing a new stack frame for the child process to make it seamlessly flow to ret_from_fork without an extra test and branch in __switch_to(). It also improves code generation

[PATCH v3 5/7] x86: Pass kernel thread parameters in fork_frame

2016-08-13 Thread Brian Gerst
Instead of setting up a fake pt_regs context, put the kernel thread function pointer and arg into the unused callee-restored registers of struct fork_frame. Signed-off-by: Brian Gerst --- arch/x86/entry/entry_32.S| 31 +++

[PATCH v3 7/7] Revert "sched: Mark __schedule() stack frame as non-standard"

2016-08-13 Thread Brian Gerst
Now that the x86 switch_to() uses the standard C calling convention, STACK_FRAME_NON_STANDARD is no longer needed. Suggested-by: Josh Poimboeuf Signed-off-by: Brian Gerst --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v3 3/7] x86: Add struct inactive_task_frame

2016-08-13 Thread Brian Gerst
Add struct inactive_task_frame, which defines the layout of the stack for a sleeping process. For now, the only defined field is the BP register (frame pointer). Signed-off-by: Brian Gerst --- arch/x86/include/asm/stacktrace.h | 4 ++-- arch/x86/include/asm/switch_to.h | 5 +

[PATCH v3 4/7] x86: Rewrite switch_to() code

2016-08-13 Thread Brian Gerst
Move the low-level context switch code to an out-of-line asm stub instead of using complex inline asm. This allows constructing a new stack frame for the child process to make it seamlessly flow to ret_from_fork without an extra test and branch in __switch_to(). It also improves code generation

[PATCH v3 5/7] x86: Pass kernel thread parameters in fork_frame

2016-08-13 Thread Brian Gerst
Instead of setting up a fake pt_regs context, put the kernel thread function pointer and arg into the unused callee-restored registers of struct fork_frame. Signed-off-by: Brian Gerst --- arch/x86/entry/entry_32.S| 31 +++ arch/x86/entry/entry_64.S|

[PATCH v3 7/7] Revert "sched: Mark __schedule() stack frame as non-standard"

2016-08-13 Thread Brian Gerst
Now that the x86 switch_to() uses the standard C calling convention, STACK_FRAME_NON_STANDARD is no longer needed. Suggested-by: Josh Poimboeuf Signed-off-by: Brian Gerst --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index

[PATCH v3 0/7] x86: Rewrite switch_to()

2016-08-13 Thread Brian Gerst
This patch set simplifies the switch_to() code, by moving the stack switch code out of line into an asm stub before calling __switch_to(). This ends up being more readable, and using the C calling convention instead of clobbering all registers improves code generation. It also allows newly

[PATCH v3 1/7] x86-32, kgdb: Don't use thread.ip in sleeping_thread_to_gdb_regs()

2016-08-13 Thread Brian Gerst
Match 64-bit and set gdb_regs[GDB_PC] to zero. thread.ip is always the same point in the scheduler (except for newly forked processes), and will be removed in a future patch. Signed-off-by: Brian Gerst --- arch/x86/kernel/kgdb.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v3 0/7] x86: Rewrite switch_to()

2016-08-13 Thread Brian Gerst
This patch set simplifies the switch_to() code, by moving the stack switch code out of line into an asm stub before calling __switch_to(). This ends up being more readable, and using the C calling convention instead of clobbering all registers improves code generation. It also allows newly

[PATCH v3 1/7] x86-32, kgdb: Don't use thread.ip in sleeping_thread_to_gdb_regs()

2016-08-13 Thread Brian Gerst
Match 64-bit and set gdb_regs[GDB_PC] to zero. thread.ip is always the same point in the scheduler (except for newly forked processes), and will be removed in a future patch. Signed-off-by: Brian Gerst --- arch/x86/kernel/kgdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v3 2/7] x86-64, kgdb: clear GDB_PS on 64-bit

2016-08-13 Thread Brian Gerst
switch_to() no longer saves EFLAGS, so it's bogus to look for it on the stack. Set it to zero like 32-bit. Signed-off-by: Brian Gerst --- arch/x86/kernel/kgdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/kgdb.c

[PATCH v3 2/7] x86-64, kgdb: clear GDB_PS on 64-bit

2016-08-13 Thread Brian Gerst
switch_to() no longer saves EFLAGS, so it's bogus to look for it on the stack. Set it to zero like 32-bit. Signed-off-by: Brian Gerst --- arch/x86/kernel/kgdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c index

[PATCH 8/8] power: ds2760_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "monitor_wqueue" is used to monitor the battery status. It has been identity converted. It queues multiple work items viz >monitor_work,

[PATCH 8/8] power: ds2760_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "monitor_wqueue" is used to monitor the battery status. It has been identity converted. It queues multiple work items viz >monitor_work,

[PATCH 7/8] power: ab8500_fg: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "fg_wq" is used for running the FG algorithm periodically. It has been identity converted. It has multiple work items viz fg_periodic_work,

[PATCH 7/8] power: ab8500_fg: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "fg_wq" is used for running the FG algorithm periodically. It has been identity converted. It has multiple work items viz fg_periodic_work,

[PATCH 6/8] power: ipaq_micro_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "wq" is used for handling battery related tasks. It has a single work item viz >update and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to

[PATCH 6/8] power: ipaq_micro_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "wq" is used for handling battery related tasks. It has a single work item viz >update and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-13 Thread Oleg Nesterov
On 08/12, Bart Van Assche wrote: > > On 08/12/2016 09:16 AM, Oleg Nesterov wrote: > > Please drop two patches I sent before and try the new one below. > > Hello Oleg, > > Thanks for the patch. In addition to your patch I also applied the > attached two patches And I guess you did this because you

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-13 Thread Oleg Nesterov
On 08/12, Bart Van Assche wrote: > > On 08/12/2016 09:16 AM, Oleg Nesterov wrote: > > Please drop two patches I sent before and try the new one below. > > Hello Oleg, > > Thanks for the patch. In addition to your patch I also applied the > attached two patches And I guess you did this because you

[PATCH 5/8] power: ab8500_charger: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "charger_wq" is used for the IRQs and checking HW state of the charger. It has been identity converted. It has multiple work items viz

[PATCH 5/8] power: ab8500_charger: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "charger_wq" is used for the IRQs and checking HW state of the charger. It has been identity converted. It has multiple work items viz

[PATCH 4/8] power: intel_mid_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "monitor_wqueue" is used to monitor the PMIC battery status. It queues a single work item (pbi->monitor_battery) and hence doesn't require ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. Since PMIC battery status needs

[PATCH 4/8] power: intel_mid_battery: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "monitor_wqueue" is used to monitor the PMIC battery status. It queues a single work item (pbi->monitor_battery) and hence doesn't require ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. Since PMIC battery status needs

[PATCH 3/8] power: pm2301_charger: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "charger_wq" is used for running all the charger related tasks. This involves charger detection, checking for HW failure and HW status. This

[PATCH 3/8] power: pm2301_charger: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "charger_wq" is used for running all the charger related tasks. This involves charger detection, checking for HW failure and HW status. This

[PATCH 2/8] power: ab8500_btemp: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "btemp_wq" is used for measuring the temperature periodically. It queues a single workitem (btemp_periodic_work) and hence doesn't require ordering. Thus, the deprecated create_singlethread_workqueue() instance has been replaced with alloc_workqueue(). The WQ_MEM_RECLAIM flag has

[PATCH 2/8] power: ab8500_btemp: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue "btemp_wq" is used for measuring the temperature periodically. It queues a single workitem (btemp_periodic_work) and hence doesn't require ordering. Thus, the deprecated create_singlethread_workqueue() instance has been replaced with alloc_workqueue(). The WQ_MEM_RECLAIM flag has

[PATCH 1/8] power: abx500_chargalg: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "chargalg_wq" is used for running the charging algorithm. It has multiple workitems viz >chargalg_periodic_work, >chargalg_wd_work, >chargalg_work

[PATCH 1/8] power: abx500_chargalg: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "chargalg_wq" is used for running the charging algorithm. It has multiple workitems viz >chargalg_periodic_work, >chargalg_wd_work, >chargalg_work

[PATCH 0/8] Remove deprecated workqueue interface users

2016-08-13 Thread Bhaktipriya Shridhar
This patch set removes the instances of deprecated create_singlethread_workqueues in drivers/power by making the appropriate conversions. Bhaktipriya Shridhar (8): power: abx500_chargalg: Remove deprecated create_singlethread_workqueue power: ab8500_btemp: Remove deprecated

[PATCH 0/8] Remove deprecated workqueue interface users

2016-08-13 Thread Bhaktipriya Shridhar
This patch set removes the instances of deprecated create_singlethread_workqueues in drivers/power by making the appropriate conversions. Bhaktipriya Shridhar (8): power: abx500_chargalg: Remove deprecated create_singlethread_workqueue power: ab8500_btemp: Remove deprecated

Re: [RFC PATCH 0/3] Documentation: switch to pdflatex and fix pdf build

2016-08-13 Thread Markus Heiser
Am 13.08.2016 um 00:40 schrieb Jonathan Corbet : > On Wed, 10 Aug 2016 18:54:06 +0300 > Jani Nikula wrote: > >> With these you should be able to get started with pdf generation. It's a >> quick transition to pdflatex, the patches are not very pretty, but

Re: [RFC PATCH 0/3] Documentation: switch to pdflatex and fix pdf build

2016-08-13 Thread Markus Heiser
Am 13.08.2016 um 00:40 schrieb Jonathan Corbet : > On Wed, 10 Aug 2016 18:54:06 +0300 > Jani Nikula wrote: > >> With these you should be able to get started with pdf generation. It's a >> quick transition to pdflatex, the patches are not very pretty, but the >> pdf output is. Patch 3/3 works

RE: [RFC][PATCH 7/7] cpufreq: intel_pstate: Change P-state selection algorithm for Core

2016-08-13 Thread Doug Smythies
On 2016.08.05 17:02 Rafael J. Wysocki wrote: >> On 2016.08.03 21:19 Doug Smythies wrote: >>> On 2016.07.31 16:49 Rafael J. Wysocki wrote: >>> >>> The PID-base P-state selection algorithm used by intel_pstate for >>> Core processors is based on very weak foundations. >> >> ...[cut]... >> >>>

RE: [RFC][PATCH 7/7] cpufreq: intel_pstate: Change P-state selection algorithm for Core

2016-08-13 Thread Doug Smythies
On 2016.08.05 17:02 Rafael J. Wysocki wrote: >> On 2016.08.03 21:19 Doug Smythies wrote: >>> On 2016.07.31 16:49 Rafael J. Wysocki wrote: >>> >>> The PID-base P-state selection algorithm used by intel_pstate for >>> Core processors is based on very weak foundations. >> >> ...[cut]... >> >>>

[PATCH] whci: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue replaces the deprecated create_singlethread_workqueue. The workqueue "workqueue" has multiple workitems which may require ordering. Hence, a dedicated ordered workqueue has been used. Since the workqueue is not being used on a memory reclaim path, WQ_MEM_RECLAIM has not

[PATCH] whci: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue replaces the deprecated create_singlethread_workqueue. The workqueue "workqueue" has multiple workitems which may require ordering. Hence, a dedicated ordered workqueue has been used. Since the workqueue is not being used on a memory reclaim path, WQ_MEM_RECLAIM has not

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-08-13 Thread Frederic Weisbecker
On Fri, Aug 12, 2016 at 09:19:19AM -0700, Paul E. McKenney wrote: > On Fri, Aug 12, 2016 at 04:26:13PM +0200, Frederic Weisbecker wrote: > > On Fri, Aug 12, 2016 at 09:23:13AM -0500, Christoph Lameter wrote: > > > On Thu, 11 Aug 2016, Paul E. McKenney wrote: > > > > > > > Heh! The only really

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-08-13 Thread Frederic Weisbecker
On Fri, Aug 12, 2016 at 09:19:19AM -0700, Paul E. McKenney wrote: > On Fri, Aug 12, 2016 at 04:26:13PM +0200, Frederic Weisbecker wrote: > > On Fri, Aug 12, 2016 at 09:23:13AM -0500, Christoph Lameter wrote: > > > On Thu, 11 Aug 2016, Paul E. McKenney wrote: > > > > > > > Heh! The only really

[PATCH v2] cfag12864b: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue has a single workitem(_work) and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, the singlethreaded workqueue has been replaced with the use of system_wq. System workqueues have been able to handle high level of concurrency for a long time

[PATCH v2] cfag12864b: Remove deprecated create_singlethread_workqueue

2016-08-13 Thread Bhaktipriya Shridhar
The workqueue has a single workitem(_work) and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, the singlethreaded workqueue has been replaced with the use of system_wq. System workqueues have been able to handle high level of concurrency for a long time

  1   2   >