Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-14 Thread Arnd Bergmann
On Monday 14 December 2015 14:52:06 Wolfram Sang wrote: > > > What about not ifdeffing the inline function and keep the build error > > > whenever someone uses it without I2C_SLAVE being selected? > > > > The inline function is only added there for the case that I2C_SLAVE is > > disabled, so that

[PATCH RESEND 27/27] tools: hv: vss: fix the write()'s argument: error -> vss_msg

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui Fix the write()'s argument in the daemon code. Cc: Vitaly Kuznetsov Cc: "K. Y. Srinivasan" Signed-off-by: Dexuan Cui Cc: sta...@vger.kernel.org Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

Re: [POWERPC] bootwrapper: One check less in fsl_get_immr() after error detection

2015-12-14 Thread Scott Wood
On Mon, 2015-12-14 at 23:10 +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 14 Dec 2015 23:01:32 +0100 > > A status check was performed by the fsl_get_immr() function even if it > was known already that a system setting did not fit to the expectations. > > This

[PATCH RESEND 11/27] Drivers: hv: vss: run only on supported host versions

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering The Backup integration service on WS2012 has appearently trouble to negotiate with a guest which does not support the provided util version. Currently the VSS driver supports only version 5/0. A WS2012 offers only version 1/x and 3/x, and vmbus_prep_negotiate_resp correctly

[PATCH RESEND 14/27] Drivers: hv: vmbus: Get rid of the unused macro

2015-12-14 Thread K. Y. Srinivasan
The macro VMBUS_DEVICE() is unused; get rid of it. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index b9f3bb2..f773a68 100644 ---

[PATCH RESEND 25/27] Drivers: hv: vmbus: Force all channel messages to be delivered on CPU 0

2015-12-14 Thread K. Y. Srinivasan
Force all channel messages to be delivered on CPU0. These messages are not performance critical and are used during the setup and teardown of the channel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] kobject: Ensure child's resources get released before parent's resources

2015-12-14 Thread Rajat Jain
On Mon, Dec 14, 2015 at 1:40 PM, Greg Kroah-Hartman wrote: > On Mon, Dec 14, 2015 at 11:02:46AM -0800, Rajat Jain wrote: >> If the only remaining reference to a parent, is the one taken by >> the child (in kobject_add_internal()), then when the last >> reference to the child goes away, both child

[PATCH RESEND 18/27] Drivers: hv: vmbus: fix rescind-offer handling for device without a driver

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui In the path vmbus_onoffer_rescind() -> vmbus_device_unregister() -> device_unregister() -> ... -> __device_release_driver(), we can see for a device without a driver loaded: dev->driver is NULL, so dev->bus->remove(dev), namely vmbus_remove(), isn't invoked. As a result,

Re: [RFC PATCH 3/3] x86: Create dma_mark_dirty to dirty pages used for DMA by VM guest

2015-12-14 Thread Alexander Duyck
On Mon, Dec 14, 2015 at 12:52 PM, Michael S. Tsirkin wrote: > On Mon, Dec 14, 2015 at 09:59:13AM -0800, Alexander Duyck wrote: >> On Mon, Dec 14, 2015 at 9:20 AM, Michael S. Tsirkin wrote: >> > On Mon, Dec 14, 2015 at 08:34:00AM -0800, Alexander Duyck wrote: >> >> > This way distro can use a

[PATCH RESEND 21/27] drivers:hv: Allow for MMIO claims that span ACPI _CRS records

2015-12-14 Thread K. Y. Srinivasan
From: Jake Oshins This patch makes 16GB GPUs work in Hyper-V VMs, since, for compatibility reasons, the Hyper-V BIOS lists MMIO ranges in 2GB chunks in its root bus's _CRS object. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 1

Re: [RFC/PATCHSET 0/6] perf tools: Support dynamic sort keys for tracepoints (v1)

2015-12-14 Thread David Ahern
On 12/14/15 10:47 AM, Arnaldo Carvalho de Melo wrote: With dynamic sort keys, you can use as a sort key. Those dynamic keys are checked and created on demand. For instance, below is to sort by next_pid field on the same data file. $ perf report -s comm,sched:sched_switch.next_pid --stdio

[PATCH RESEND 20/27] Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui spinlock is unnecessary here. mutex is enough. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 12 ++-- drivers/hv/connection.c |7 +++ drivers/hv/hyperv_vmbus.h |2 +- 3 files changed, 10 insertions(+), 11

[PATCH RESEND 16/27] Drivers: hv: vmbus: serialize process_chn_event() and vmbus_close_internal()

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui process_chn_event(), running in the tasklet, can race with vmbus_close_internal() in the case of SMP guest, e.g., when the former is accessing channel->inbound.ring_buffer, the latter could be freeing the ring_buffer pages. To resolve the race, we can serialize them by

[PATCH RESEND 26/27] Drivers: hv: utils: Invoke the poll function after handshake

2015-12-14 Thread K. Y. Srinivasan
When the handshake with daemon is complete, we should poll the channel since during the handshake, we will not be processing any messages. This is a potential bug if the host is waiting for a response from the guest. I would like to thank Dexuan for pointing this out. Signed-off-by: K. Y.

[PATCH RESEND 23/27] Drivers: hv: vmbus: Fix a Host signaling bug

2015-12-14 Thread K. Y. Srinivasan
Currently we have two policies for deciding when to signal the host: One based on the ring buffer state and the other based on what the VMBUS client driver wants to do. Consider the case when the client wants to explicitly control when to signal the host. In this case, if the client were to defer

[PATCH RESEND 24/27] drivers/hv: correct tsc page sequence invalid value

2015-12-14 Thread K. Y. Srinivasan
From: Andrey Smetanin Hypervisor Top Level Functional Specification v3/4 says that TSC page sequence value = -1(0x) is used to indicate that TSC page no longer reliable source of reference timer. Unfortunately, we found that Windows Hyper-V guest side implementation uses sequence value =

[PATCH RESEND 05/27] Drivers: hv: util: catch allocation errors

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Catch allocation errors in hvutil_transport_send. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 ++--- 1 files changed, 6

[PATCH RESEND 07/27] drivers/hv: cleanup synic msrs if vmbus connect failed

2015-12-14 Thread K. Y. Srinivasan
From: Andrey Smetanin Before vmbus_connect() synic is setup per vcpu - this means hypervisor receives writes at synic msr's and probably allocate hypervisor resources per synic setup. If vmbus_connect() failed for some reason it's neccessary to cleanup synic setup by call hv_synic_cleanup() at

[PATCH RESEND 03/27] tools: hv: report ENOSPC errors in hv_fcopy_daemon

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Currently some "Unspecified error 0x80004005" is reported on the Windows side if something fails. Handle the ENOSPC case and return ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning full error. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan

[PATCH RESEND 19/27] Drivers: hv: vmbus: release relid on error in vmbus_process_offer()

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui We want to simplify vmbus_onoffer_rescind() by not invoking hv_process_channel_removal(NULL, ...). Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff

[PATCH RESEND 06/27] Drivers: hv: utils: use memdup_user in hvt_op_write

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Use memdup_user to handle OOM. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 - 1 files changed, 4 insertions(+), 5

Re: [PATCH v2] extcon: add Maxim MAX3355 driver

2015-12-14 Thread Sergei Shtylyov
Hello. On 12/15/2015 01:21 AM, Rob Herring wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also

[PATCH RESEND 04/27] tools: hv: remove repeated HV_FCOPY string

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering HV_FCOPY is already used as identifier in syslog. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c

[PATCH RESEND 02/27] Drivers: hv: utils: run polling callback always in interrupt context

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering All channel interrupts are bound to specific VCPUs in the guest at the point channel is created. While currently, we invoke the polling function on the correct CPU (the CPU to which the channel is bound to) in some cases we may run the polling function in a non-interrupt

[PATCH RESEND 01/27] Drivers: hv: util: Increase the timeout for util services

2015-12-14 Thread K. Y. Srinivasan
Util services such as KVP and FCOPY need assistance from daemon's running in user space. Increase the timeout so we don't prematurely terminate the transaction in the kernel. Host sets up a 60 second timeout for all util driver transactions. The host will retry the transaction if it times out. Set

Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables

2015-12-14 Thread Borislav Petkov
On Mon, Dec 14, 2015 at 10:58:45AM -0700, Ross Zwisler wrote: > With this code if CONFIG_MCE_KERNEL_RECOVERY isn't defined you'll get > a compiler error that the function doesn't have a return statement, > right? I think we need an #else to return NULL, or to have the #ifdef > encompass the whole

Re: 4.4-rc5: ugly warn on: 5 W+X pages found

2015-12-14 Thread Andy Lutomirski
On Mon, Dec 14, 2015 at 1:24 PM, Arjan van de Ven wrote: > >> That's weird. The only API to do that seems to be manually setting >> kmap_prot to _PAGE_KERNEL_EXEC, and nothing does that. (Why is >> kmap_prot a variable on x86 at all? It has exactly one writer, and >> that's the code that

Re: [PATCH RESEND] misc/bmp085: Enable building as a module

2015-12-14 Thread Arnd Bergmann
On Monday 14 December 2015 14:29:23 Ben Hutchings wrote: > Commit 985087dbcb02 'misc: add support for bmp18x chips to the bmp085 > driver' changed the BMP085 config symbol to a boolean. I see no > reason why the shared code cannot be built as a module, so change it > back to tristate. > > Fixes:

Re: [PATCH v2] extcon: add Maxim MAX3355 driver

2015-12-14 Thread Rob Herring
On Mon, Dec 14, 2015 at 11:36 AM, Sergei Shtylyov wrote: > Hello. > > On 12/14/2015 04:24 AM, Rob Herring wrote: > >>> Maxim Integrated MAX3355E chip integrates a charge pump and comparators >>> to >>> enable a system with an integrated USB OTG dual-role transceiver to >>> function >>> as an

RE: [PATCH RESEND 00/27] Drivers: hv: Miscellaneous fixes.

2015-12-14 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Monday, December 14, 2015 10:59 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com >

Re: [PATCH v4] mlock.2: mlock2.2: Add entry to for new mlock2 syscall

2015-12-14 Thread Michael Kerrisk (man-pages)
On 11/09/2015 07:27 PM, Eric B Munson wrote: > Update the mlock.2 man page with information on mlock2() and the new > mlockall() flag MCL_ONFAULT. Hello Eric, Thanks for the nicely written patch. I've applied. Cheers, Michael > Signed-off-by: Eric B Munson > Acked-by: Michal Hocko >

Re: WARNING: CPU: 0 PID: 913 at fs/inode.c:275 drop_nlink+0x4b/0x50()

2015-12-14 Thread Andrew Morton
On Sun, 13 Dec 2015 23:19:31 +0100 Vegard Nossum wrote: > On 11/26/2015 09:30 AM, OGAWA Hirofumi wrote: > > Vegard Nossum writes: > >> On 11/25/2015 10:54 PM, OGAWA Hirofumi wrote: > >>> Vegard Nossum writes: > On 11/23/2015 11:21 PM, Richard Weinberger wrote: > > Am 23.11.2015 um

Re: question about cpusets vs sched_setaffinity()

2015-12-14 Thread Jason Baron
On 12/11/2015 06:26 PM, Chris Friesen wrote: > On 12/11/2015 04:15 PM, Jason Baron wrote: >> On 12/10/2015 04:30 PM, Chris Friesen wrote: > >>> If I put a task into a cpuset and then call sched_setaffinity() on it, >>> it will be affined to the intersection of the two sets of cpus. (Those >>>

[POWERPC] bootwrapper: One check less in fsl_get_immr() after error detection

2015-12-14 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 14 Dec 2015 23:01:32 +0100 A status check was performed by the fsl_get_immr() function even if it was known already that a system setting did not fit to the expectations. This implementation detail could be improved by an adjustment for a jump label according to

Re: [lkp] [mm] 3f5d849cb0: page dumped because: VM_BUG_ON_PAGE(!PageLocked(page))

2015-12-14 Thread Stephen Rothwell
Hi all, On Mon, 14 Dec 2015 10:26:53 -0500 Johannes Weiner wrote: > > I'm fairly certain this is this unlocked page issue: > http://www.spinics.net/lists/kernel/msg2142719.html > > The fix went into Linus's tree only yesterday: > dfd01f0 ("sched/wait: Fix the signal handling fix") And will be

Re: [PATCH v2 2/2] iio: health: Add driver for the TI AFE4404 heart monitor

2015-12-14 Thread Andrew F. Davis
On 12/12/2015 09:41 AM, Jonathan Cameron wrote: On 07/12/15 17:26, Andrew F. Davis wrote: On 12/05/2015 12:21 PM, Jonathan Cameron wrote: On 02/12/15 19:57, Andrew F. Davis wrote: Add driver for the TI AFE4404 heart rate monitor and pulse oximeter. This device detects reflected LED light

Re: [PATCH] arm64: add HAVE_LATENCYTOP_SUPPORT config

2015-12-14 Thread Shi, Yang
Hi folks, I tried to enable latencytop for arm64 and came across this discussion, so any plan about when this will get merged into mainline? 4.5 merge window? Thanks, Yang On 11/10/2015 3:34 AM, Heiko Carstens wrote: From: Will Deacon Date: Tue, 10 Nov 2015 11:10:04 + Subject: [PATCH]

Re: [PATCH 1/2] ARM: dts: modify rk3288 jaq backlight-level

2015-12-14 Thread Heiko Stübner
Hi Caesar, Am Montag, 7. Dezember 2015, 21:11:08 schrieb Caesar Wang: > the panel which jaq use require the pwm duty cycle larger than 3%, > when the backlight status from power off to power on, otherwise the > backlight will flush, so we modify the second brightness-level to 8, > and when the

Re: [PATCH] ARM: multi_v7_defconfig: Enable Rockchip generic power domain.

2015-12-14 Thread Heiko Stübner
Hi Enric, defconfig changes are supposed to be applied by the armsoc maintainers, so you should probably also include a...@kernel.org as real "To" Am Montag, 14. Dezember 2015, 18:22:15 schrieben Sie: > cc'ing: Heiko Stuebner (rockchip maintainer) > > 2015-12-14 18:17 GMT+01:00 Enric Balletbo

Re: [PATCH] Fix int1 recursion with unregistered breakpoints

2015-12-14 Thread Jeff Merkey
On 12/14/15, H. Peter Anvin wrote: > On 12/14/15 13:03, Jeff Merkey wrote: >> Please consider the attached patch. >> >> I have reviewed all the code that touches this patch and have >> determined it will function and support all of the software that >> depends on this handler properly. I have

Re: [PATCH] tty/n_gsm.c: fix false positive WARN_ON and do some codes improvement

2015-12-14 Thread Greg Kroah-Hartman
On Wed, Nov 25, 2015 at 07:18:37PM +0800, xinhui wrote: > From: xinhui > > If gsm driver fails to activate one mux, and this mux is not stored in > gsm_mux[], there would be a warning in gsm_cleanup_mux(). Actually this > is a legal case. So just do a simple check instead of WARN_ON. > > There

Re: [PATCH] Fix int1 recursion with unregistered breakpoints

2015-12-14 Thread H. Peter Anvin
On 12/14/15 13:03, Jeff Merkey wrote: > Please consider the attached patch. > > I have reviewed all the code that touches this patch and have > determined it will function and support all of the software that > depends on this handler properly. I have compiled and tested this > patch with a test

Re: [PATCH] kobject: Ensure child's resources get released before parent's resources

2015-12-14 Thread Greg Kroah-Hartman
On Mon, Dec 14, 2015 at 11:02:46AM -0800, Rajat Jain wrote: > If the only remaining reference to a parent, is the one taken by > the child (in kobject_add_internal()), then when the last > reference to the child goes away, both child and its parents > shall be released. However, currently the

Re: [PATCH RESEND 00/27] Drivers: hv: Miscellaneous fixes.

2015-12-14 Thread Greg KH
On Fri, Dec 11, 2015 at 08:21:24PM -0800, K. Y. Srinivasan wrote: > Most of the patches in this set are being resent. Why? What changed? Also, your series can't be sorted by subject at all, so I can't apply them in the correct order (some have RESEND in the subject, some do not...) Please

Re: [PATCH] [PATCH 1/3] staging: dgnc: Patch includes the checkpatch fixes

2015-12-14 Thread Greg KH
On Sat, Dec 12, 2015 at 02:58:50AM -0500, Sanidhya Solanki wrote: > >From a1635ea5e75cb2f10728ae4ddf3a21567958e98f Mon Sep 17 00:00:00 2001 > From: Sanidhya Solanki > Date: Sat, 12 Dec 2015 02:20:03 -0500 > Subject: [PATCH] [PATCH 1/3] staging: dgnc: Patch includes the checkpatch > fixes > >

Re: [PATCH 1/2] Staging: dgnc: dgnc_neo.c: usleep_range is preferred over udelay

2015-12-14 Thread Greg KH
On Fri, Nov 13, 2015 at 04:48:10PM +0530, Nizam Haider wrote: > removed heckpatch warning heckpatch? And what warning is that? -- 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] Fix int1 recursion with unregistered breakpoints

2015-12-14 Thread Jeff Merkey
Please consider the attached patch. I have reviewed all the code that touches this patch and have determined it will function and support all of the software that depends on this handler properly. I have compiled and tested this patch with a test harness that tests the robustness of the linux

Re: [PATCH 0/3] cpuidle: avoid module usage in non-modular code

2015-12-14 Thread Paul Gortmaker
[Re: [PATCH 0/3] cpuidle: avoid module usage in non-modular code] On 14/12/2015 (Mon 22:31) Rafael J. Wysocki wrote: > On Sunday, December 13, 2015 06:57:09 PM Paul Gortmaker wrote: > > This series of commits is a part of a larger project to ensure > > people don't reference modular support

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Luca Abeni
On Mon, 14 Dec 2015 17:51:28 +0100 Peter Zijlstra wrote: > On Mon, Dec 14, 2015 at 04:56:17PM +0100, Vincent Guittot wrote: > > I agree that if the WCET is far from reality, we will underestimate > > available capacity for CFS. Have you got some use case in mind which > > overestimates the WCET

Re: [PATCH] cpufreq: powernv: Redesign the presentation of throttle notification

2015-12-14 Thread Paul Clarke
On 12/13/2015 12:17 PM, Shilpasri G Bhat wrote: Replace the throttling event console messages to perf trace event "power:powernv_throttle" and throttle counter stats which are exported in sysfs. The newly added sysfs files are as follows: 1)/sys/devices/system/node/node0/throttle_frequencies

RE: Season Greetings

2015-12-14 Thread Edpsych
From: Edpsych Sent: 14 December 2015 19:21 To: Edpsych Subject: Season Greetings You Have Been Picked , Email:(mr_sgloria_macken...@email.com) For More Info

Re: 4.4-rc5: ugly warn on: 5 W+X pages found

2015-12-14 Thread Arjan van de Ven
That's weird. The only API to do that seems to be manually setting kmap_prot to _PAGE_KERNEL_EXEC, and nothing does that. (Why is kmap_prot a variable on x86 at all? It has exactly one writer, and that's the code that initializes it in the first place. Shouldn't we #define kmap_prot

Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0

2015-12-14 Thread Dave Chinner
On Mon, Dec 14, 2015 at 09:15:26PM +0100, Andrea Gelmini wrote: > On Tue, Dec 15, 2015 at 06:54:22AM +1100, Dave Chinner wrote: > > What line of code does this address correspond to in your kernel? > > > > xfs_iflush_cluster+0x9d7 > > gelma@glen:~/dev/kernel/v4.4.x$ git grep -Iin

Re: [PATCH] wan: wanxl: add pci_disable_device in case of error

2015-12-14 Thread David Miller
From: Saurabh Sengar Date: Sat, 12 Dec 2015 00:58:19 +0530 > If there is 'no suitable DMA available' error, device should be disabled > before returning > > Signed-off-by: Saurabh Sengar Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 4/8 v4] thermal: rcar: retern error rcar_thermal_get_temp() if no ctemp update

2015-12-14 Thread Eduardo Valentin
On Tue, Dec 08, 2015 at 05:28:13AM +, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current rcar_thermal_get_temp() returns latest temperature, but it might > not be updated if some HW issue happened. This means user might get > wrong temperature. This patch solved this issue. > >

Re: [PATCH 0/4] gpio: pxa: integrate with pincontrol

2015-12-14 Thread Robert Jarzmik
Linus Walleij writes: > On Thu, Dec 10, 2015 at 6:31 PM, Robert Jarzmik > wrote: >> Linus Walleij writes: >> - the GPDR (gpio direction register) shared access bothers me a bit >>> >>> How is it shared and between what users? >> >> It's shared between the pin controller and the gpio

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Luca Abeni
On Mon, 14 Dec 2015 16:07:59 + Juri Lelli wrote: [...] > > I agree that if the WCET is far from reality, we will underestimate > > available capacity for CFS. Have you got some use case in mind which > > overestimates the WCET ? > > I guess simply the fact that one task can be admitted to

Re: [PATCH 0/3] cpuidle: avoid module usage in non-modular code

2015-12-14 Thread Daniel Lezcano
On 12/14/2015 12:57 AM, Paul Gortmaker wrote: This series of commits is a part of a larger project to ensure people don't reference modular support functions in non-modular code. Overall there was roughly 5k lines of dead code in the kernel due to this. So far we've fixed several areas, like

[PATCH net-next v5 02/19] test_bitmap: unit tests for lib/bitmap.c

2015-12-14 Thread David Decotigny
From: David Decotigny This is mainly testing bitmap construction and conversion to/from u32[] for now. Tested: qemu i386, x86_64, ppc, ppc64 BE and LE, ARM. Signed-off-by: David Decotigny --- lib/Kconfig.debug | 8 + lib/Makefile | 1 +

[PATCH net-next v5 03/19] net: usnic: remove unused call to ethtool_ops::get_settings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index f8e3211..5b60579 100644 ---

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Luca Abeni
On Mon, 14 Dec 2015 16:56:17 +0100 Vincent Guittot wrote: [...] > >> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > >> index 08858d1..e44c6be 100644 > >> --- a/kernel/sched/sched.h > >> +++ b/kernel/sched/sched.h > >> @@ -519,6 +519,8 @@ struct dl_rq { > >> #else > >> struct

Re: [PATCH net] stmmac: dwmac-sunxi: Call exit cleanup function in probe error path

2015-12-14 Thread David Miller
From: Chen-Yu Tsai Date: Fri, 11 Dec 2015 18:03:49 +0800 > dwmac-sunxi has 2 callbacks that were called from stmmac_platform as > part of the probe and remove sequences. > > Ater the conversion of dwmac-sunxi into a standalone platform driver, > the .init function is called before calling into

Re: [Xen-devel] linux 4.4 Regression: 100% cpu usage on idle pv guest under Xen with single vcpu

2015-12-14 Thread Sander Eikelenboom
On 2015-12-14 20:48, Eric Shelton wrote: Please note that the same issue appears to have been introduced in the recent 4.2.7 kernel. It perhaps has to do with b4ff8389ed14b849354b59ce9b360bdefcdbf99c having a matching commit e8d097151d309eb71f750bbf34e6a7ef6256da7e in linux-stable.git. The

Re: [PATCH] sched/wait: Fix the signal handling fix

2015-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2015 at 07:50:04PM +0100, Oleg Nesterov wrote: > > + ret = (*action)(>key, mode); > > And every action() should check signal_pending_state()... > > So why we can't change __wait_on_bit/etc instead and remove all the signal- > pending checks from the callbacks?

[PATCH net-next v5 05/19] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-12-14 Thread David Decotigny
From: David Decotigny This patch defines a new ETHTOOL_GSETTINGS/SSETTINGS API, handled by the new get_ksettings/set_ksettings callbacks. This API provides support for most legacy ethtool_cmd fields, adds support for larger link mode masks (up to 4064 bits, variable length), and removes

Re: [RFC] mm: change find_vma() function

2015-12-14 Thread Kirill A. Shutemov
On Mon, Dec 14, 2015 at 06:55:09PM +0100, Oleg Nesterov wrote: > On 12/14, Kirill A. Shutemov wrote: > > > > On Mon, Dec 14, 2015 at 07:02:25PM +0800, yalin wang wrote: > > > change find_vma() to break ealier when found the adderss > > > is not in any vma, don't need loop to search all vma. > > >

Re: [PATCH 8/8 v4] thermal: of-thermal: of_thermal_set_trip_temp() call thermal_zone_device_update()

2015-12-14 Thread Eduardo Valentin
Hey! On Tue, Dec 08, 2015 at 05:30:00AM +, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > of_thermal_set_trip_temp() updates trip temperature. It should call > thermal_zone_device_update() immediately. > > Signed-off-by: Kuninori Morimoto > --- > v3 -> v4 > > - no change > >

[PATCH net-next v5 06/19] tx4939: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- arch/mips/txx9/generic/setup_tx4939.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index e3733cd..4a3ebf6 100644 ---

[PATCH net-next v5 07/19] net: usnic: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index e082170..e0d12d4

[PATCH net-next v5 01/19] lib/bitmap.c: conversion routines to/from u32 array

2015-12-14 Thread David Decotigny
From: David Decotigny Aimed at transferring bitmaps to/from user-space in a 32/64-bit agnostic way. Tested: unit tests (next patch) on qemu i386, x86_64, ppc, ppc64 BE and LE, ARM. Signed-off-by: David Decotigny --- include/linux/bitmap.h | 6 lib/bitmap.c | 86

[PATCH net-next v5 10/19] net: macvlan: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/macvlan.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 06c8bfe..a95b793 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@

[PATCH net-next v5 09/19] net: ipvlan: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ipvlan/ipvlan_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index a9268db..63b3aa5 100644 ---

[PATCH net-next v5 04/19] net: usnic: use __ethtool_get_settings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index 5b60579..e082170 100644

[PATCH net-next v5 08/19] net: bonding: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/bonding/bond_main.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index fe0e7a6..ce8c026 100644 ---

[PATCH net-next v5 15/19] net: bridge: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/bridge/br_if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 8d1d4a2..d1022fd 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -36,10 +36,10 @@ */

Re: [PATCH v12] Add Mediatek thermal support

2015-12-14 Thread Eduardo Valentin
On Mon, Dec 14, 2015 at 11:37:39AM +0100, Sascha Hauer wrote: > Eduardo, > > Ok, to apply this? There seem to be no further comments. Yeah, sorry for the delay. I will do one more review round, but I dont see much. So, hopefully should be applied in the coming days. BR -- To unsubscribe from

[PATCH net-next v5 12/19] net: fcoe: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/scsi/fcoe/fcoe_transport.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index d7597c0..2d5909f

[PATCH net-next v5 16/19] net: core: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/core/net-sysfs.c | 15 +-- net/packet/af_packet.c | 11 +-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index f88a62a..3dd4bb1 100644 ---

[PATCH net-next v5 11/19] net: team: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/team/team.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 059c0f6..7cc98a7 100644 --- a/drivers/net/team/team.c +++

[PATCH net-next v5 17/19] net: ethtool: remove unused __ethtool_get_settings

2015-12-14 Thread David Decotigny
From: David Decotigny replaced by __ethtool_get_ksettings. Signed-off-by: David Decotigny --- include/linux/ethtool.h | 4 net/core/ethtool.c | 45 ++--- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/include/linux/ethtool.h

[PATCH net-next v5 18/19] net: mlx4: convenience predicate for debug messages

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index 35de7d2..b04054d

[PATCH net-next v5 13/19] net: rdma: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- include/rdma/ib_addr.h | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index 1152859..1820f26 100644 --- a/include/rdma/ib_addr.h +++

[PATCH net-next v5 14/19] net: 8021q: use __ethtool_get_ksettings

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/8021q/vlan_dev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index fded865..e607fee 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -620,12

[PATCH net-next v5 19/19] net: mlx4: use new ETHTOOL_G/SSETTINGS API

2015-12-14 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 344 drivers/net/ethernet/mellanox/mlx4/en_main.c| 1 + drivers/net/ethernet/mellanox/mlx4/mlx4_en.h| 1 + 3 files changed, 177 insertions(+), 169

[PATCH net-next v5 00/19] new ETHTOOL_GSETTINGS/SSETTINGS API

2015-12-14 Thread David Decotigny
From: David Decotigny History: v5 note: please see v4 bullets for a question regarding bitmap.c - minor fix to make allyesconfig/allmodconfig v4 - removed typedef for link mode bitmaps - moved bitmap<->u32[] conversion routines to bitmap.c . This is the naive implementation. I have an

[PATCH] Fix int1 recursion with unregistered breakpoints

2015-12-14 Thread Jeff Merkey
Please consider the attached patch. I have reviewed all the code that touches this patch and have determined it will function and support all of the software that depends on this handler properly. I have compiled and tested this patch with a test harness that tests the robustness of the linux

Re: 4.4-rc5: ugly warn on: 5 W+X pages found

2015-12-14 Thread Andy Lutomirski
On Mon, Dec 14, 2015 at 12:26 PM, Pavel Machek wrote: > Hi! > >> > I know. But either someone cares, and it should be fixes, or noone >> > cares, and the check should be removed. >> >> Someone cares, and it should be scheduled to be fixed for 4.5. The EFI >> mapping changes that were required to

Re: [PATCH 0/3] cpuidle: avoid module usage in non-modular code

2015-12-14 Thread Rafael J. Wysocki
On Sunday, December 13, 2015 06:57:09 PM Paul Gortmaker wrote: > This series of commits is a part of a larger project to ensure > people don't reference modular support functions in non-modular > code. Overall there was roughly 5k lines of dead code in the > kernel due to this. So far we've

Re: [PATCH v7 1/4] acpi: pci: Setup MSI domain for ACPI based pci devices

2015-12-14 Thread Rafael J. Wysocki
On Monday, December 14, 2015 03:13:48 PM Marc Zyngier wrote: > On 10/12/15 16:55, Suravee Suthikulpanit wrote: > > This patch introduces pci_msi_register_fwnode_provider() for irqchip > > to register a callback, to provide a way to determine appropriate MSI > > domain for a pci device. > > > > It

Re: [RFC PATCH 3/3] x86: Create dma_mark_dirty to dirty pages used for DMA by VM guest

2015-12-14 Thread Michael S. Tsirkin
On Mon, Dec 14, 2015 at 09:59:13AM -0800, Alexander Duyck wrote: > On Mon, Dec 14, 2015 at 9:20 AM, Michael S. Tsirkin wrote: > > On Mon, Dec 14, 2015 at 08:34:00AM -0800, Alexander Duyck wrote: > >> > This way distro can use a guest agent to disable > >> > dirtying until before migration starts.

Re: [PATCH v6 4/4] x86: mm: support ARCH_MMAP_RND_BITS.

2015-12-14 Thread Daniel Cashman
On 12/14/2015 10:58 AM, H. Peter Anvin wrote: > On 12/11/15 09:52, Daniel Cashman wrote: >> diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c >> index 844b06d..647fecf 100644 >> --- a/arch/x86/mm/mmap.c >> +++ b/arch/x86/mm/mmap.c >> @@ -69,14 +69,14 @@ unsigned long arch_mmap_rnd(void) >> {

[PATCH V03 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread Peter Ujfalusi
The two API function can cover most, if not all current APIs used to request a channel. With minimal effort dmaengine drivers, platforms and dmaengine user drivers can be converted to use the two function. struct dma_chan *dma_request_chan_by_mask(const dma_cap_mask_t *mask); To request any

[PATCH V03 5/5] dmaengine: omap-dma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi Reviewed-by: Arnd Bergmann --- drivers/dma/omap-dma.c | 4 include/linux/omap-dma.h | 6 ++ 2 files changed, 10 insertions(+) diff

[PATCH V03 1/5] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-14 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi Reviewed-by: Andy Shevchenko Reviewed-by: Arnd Bergmann --- drivers/dma/dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmaengine.c

[PATCH V03 2/5] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-14 Thread Peter Ujfalusi
Channel matching with private_candidate() is used in two paths, the error checking is slightly different in them and they are duplicating code also. Move the code under find_candidate() to provide consistent execution and going to allow us to reuse this mode of channel lookup later.

[PATCH V03 4/5] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi Reviewed-by: Arnd Bergmann --- drivers/dma/edma.c | 4 include/linux/platform_data/edma.h | 7 +++ 2 files changed, 11

[PATCH V03 0/5] dmaengine: New 'universal' API for requesting channel

2015-12-14 Thread Peter Ujfalusi
Hi, Changes since v2: - in patch 3 some tabs got replaced by spaces, now they are fixed - added Reviewed-by from Arnd Changes since v1: - Added Reviewed-by from Andy for patch 1-2, I decided to not add the reviewed-by to patch 3 due to the changes since v1 - patch for omap-dma to support

Re: [RFC/RFT PATCH] watchdog: Move watchdog device creation to watchdog_dev.c

2015-12-14 Thread Wim Van Sebroeck
On Sun, Dec 13, 2015 at 10:24:35PM -0800, Guenter Roeck wrote: > On 12/13/2015 02:02 PM, Damien Riegel wrote: > >On Mon, Dec 07, 2015 at 09:41:03PM +0100, Wim Van Sebroeck wrote: > >>Hi All, > >> > >>>On 12/07/2015 08:15 AM, Damien Riegel wrote: > On Sun, Dec 06, 2015 at 11:51:41AM -0800,

Re: [PATCH v6 3/4] arm64: mm: support ARCH_MMAP_RND_BITS.

2015-12-14 Thread Daniel Cashman
On 12/14/2015 03:19 AM, Will Deacon wrote: >> +# max bits determined by the following formula: >> +# VA_BITS - PAGE_SHIFT - 3 > > Now that we have this comment, I think we can drop the unsupported > combinations from the list below. That means we just end up with: > >> +config

Re: Is PROT_SOCK still relevant?

2015-12-14 Thread Jason Newton
On Mon, Dec 14, 2015 at 2:39 PM, One Thousand Gnomes wrote: >> Perhaps lets consider this in another way if it is strongly held that >> this is worth while in the default configuration: can it default off >> in the context of selinux / other security frameworks (preferably >> based on their

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