[RFCv3 PATCH 42/48] sched: Introduce energy awareness into find_busiest_queue

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann In case that after the gathering of sched domain statistics the current load balancing operation is still in energy-aware mode and a least efficient sched group has been found, detect the least efficient cpu by comparing the cpu efficiency (ratio between cpu usage and cpu e

[RFCv3 PATCH 26/48] sched: Compute cpu capacity available at current frequency

2015-02-04 Thread Morten Rasmussen
capacity_orig_of() returns the max available compute capacity of a cpu. For scale-invariant utilization tracking and energy-aware scheduling decisions it is useful to know the compute capacity available at the current OPP of a cpu. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Morten Rasmus

[RFCv3 PATCH 23/48] sched: Allocate and initialize energy data structures

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann The per sched group sched_group_energy structure plus the related idle_state and capacity_state arrays are allocated like the other sched domain (sd) hierarchy data structures. This includes the freeing of sched_group_energy structures which are not used. One problem is th

[RFCv3 PATCH 40/48] sched: Introduce energy awareness into update_sd_lb_stats

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann Energy-aware load balancing has to work alongside the conventional load based functionality. This includes the tipping point feature, i.e. being able to fall back from energy aware to the conventional load based functionality during an ongoing load balancing action. That is

[RFCv3 PATCH 34/48] sched: Bias new task wakeups towards higher capacity cpus

2015-02-04 Thread Morten Rasmussen
Make wake-ups of new tasks (find_idlest_group) aware of any differences in cpu compute capacity so new tasks don't get handed off to a cpus with lower capacity. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Morten Rasmussen --- kernel/sched/fair.c | 15 +-- 1 file changed, 13

[RFCv3 PATCH 12/48] sched: Make usage tracking cpu scale-invariant

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann Besides the existing frequency scale-invariance correction factor, apply cpu scale-invariance correction factor to usage tracking. Cpu scale-invariance takes cpu performance deviations due to micro-architectural differences (i.e. instructions per seconds) between cpus in H

[RFCv3 PATCH 22/48] sched: Introduce energy data structures

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann The struct sched_group_energy represents the per sched_group related data which is needed for energy aware scheduling. It contains: (1) atomic reference counter for scheduler internal bookkeeping of data allocation and freeing (2) number of elements of the idle s

Re: [PATCH] tty/sysrq: fix sparse warnings

2015-02-04 Thread Lad, Prabhakar
Hi Greg, On Wed, Feb 4, 2015 at 6:32 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 04, 2015 at 06:27:31PM +, Lad Prabhakar wrote: >> From: "Lad, Prabhakar" > > Why put your name in a different order than is normally used? Please > just switch it around, tools don't like ',' all that much. > I

[RFCv3 PATCH 19/48] sched: Include blocked utilization in usage tracking

2015-02-04 Thread Morten Rasmussen
Add the blocked utilization contribution to group sched_entity utilization (se->avg.utilization_avg_contrib) and to get_cpu_usage(). With this change cpu usage now includes recent usage by currently non-runnable tasks, hence it provides a more stable view of the cpu usage. It does, however, also me

[RFCv3 PATCH 20/48] sched: Documentation for scheduler energy cost model

2015-02-04 Thread Morten Rasmussen
This documentation patch provides an overview of the experimental scheduler energy costing model, associated data structures, and a reference recipe on how platforms can be characterized to derive energy models. Signed-off-by: Morten Rasmussen --- Documentation/scheduler/sched-energy.txt | 359 +

[RFCv3 PATCH 27/48] sched: Relocated get_cpu_usage()

2015-02-04 Thread Morten Rasmussen
Move get_cpu_usage() to an earlier position in fair.c. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Morten Rasmussen --- kernel/sched/fair.c | 56 ++--- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/kernel/sched/fair.c b/k

[RFCv3 PATCH 30/48] sched: Calculate energy consumption of sched_group

2015-02-04 Thread Morten Rasmussen
For energy-aware load-balancing decisions it is necessary to know the energy consumption estimates of groups of cpus. This patch introduces a basic function, sched_group_energy(), which estimates the energy consumption of the cpus in the group and any resources shared by the members of the group.

[RFCv3 PATCH 32/48] sched: Estimate energy impact of scheduling decisions

2015-02-04 Thread Morten Rasmussen
Adds a generic energy-aware helper function, energy_diff(), that calculates energy impact of adding, removing, and migrating utilization in the system. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Morten Rasmussen --- kernel/sched/fair.c | 51 +

[RFCv3 PATCH 28/48] sched: Use capacity_curr to cap utilization in get_cpu_usage()

2015-02-04 Thread Morten Rasmussen
With scale-invariant usage tracking get_cpu_usage() should never return a usage above the current compute capacity of the cpu (capacity_curr). The scaling of the utilization tracking contributions should generally cause the cpu utilization to saturate at capacity_curr, but it may temporarily exceed

[RFCv3 PATCH 25/48] arm: topology: Define TC2 energy and provide it to the scheduler

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann This patch is only here to be able to test provisioning of energy related data from an arch topology shim layer to the scheduler. Since there is no code today which deals with extracting energy related data from the dtb or acpi, and process it in the topology shim layer, th

[RFCv3 PATCH 21/48] sched: Make energy awareness a sched feature

2015-02-04 Thread Morten Rasmussen
This patch introduces the ENERGY_AWARE sched feature, which is implemented using jump labels when SCHED_DEBUG is defined. It is statically set false when SCHED_DEBUG is not defined. Hence this doesn't allow energy awareness to be enabled without SCHED_DEBUG. This sched_feature knob will be replaced

[PATCH -next] iio/magnetometer: fix AK09911 dependencies

2015-02-04 Thread Randy Dunlap
to `i2c_smbus_read_i2c_block_data' drivers/built-in.o:(.debug_addr+0x4dad4): undefined reference to `i2c_smbus_read_byte_data' Signed-off-by: Randy Dunlap Cc: Jonathan Cameron Cc: Hartmut Knaack Cc: Lars-Peter Clausen Cc: Peter Meerwald Cc: linux-...@vger.kernel.org --- drive

[RFCv3 PATCH 24/48] sched: Introduce SD_SHARE_CAP_STATES sched_domain flag

2015-02-04 Thread Morten Rasmussen
cpufreq is currently keeping it a secret which cpus are sharing clock source. The scheduler needs to know about clock domains as well to become more energy aware. The SD_SHARE_CAP_STATES domain flag indicates whether cpus belonging to the sched_domain share capacity states (P-states). There is no

[RFCv3 PATCH 18/48] sched: Track blocked utilization contributions

2015-02-04 Thread Morten Rasmussen
Introduces the blocked utilization, the utilization counter-part to cfs_rq->utilization_load_avg. It is the sum of sched_entity utilization contributions of entities that were recently on the cfs_rq that are currently blocked. Combined with sum of contributions of entities currently on the cfs_rq o

Re: [PATCH 2/3] iio: qcom-spmi-iadc: cleanup wait_for_completion return handling

2015-02-04 Thread Jonathan Cameron
On 02/02/15 08:37, Nicholas Mc Guire wrote: > This patch fixes two issues: > * return type of wait_for_completion_timeout is unsigned long not int, > rather than adding a dedicated variable the wait_for_completion_timeout > is moved into the condition directly > * the timeout of wait_for_compl

[RFCv3 PATCH 16/48] arm: Cpu invariant scheduler load-tracking support

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann Reuses the existing infrastructure for cpu_scale to provide the scheduler with a cpu scaling correction factor for more accurate load-tracking. This factor comprises a micro-architectural part, which is based on the cpu efficiency value of a cpu as well as a platform-wide m

Re: [PATCH 1/3] iio: vf610_adc: cleanup wait_for_completion return handling

2015-02-04 Thread Jonathan Cameron
On 02/02/15 08:35, Nicholas Mc Guire wrote: > return type of wait_for_completion_timeout is unsigned long not int, this > patch only fixes up the return handling. > > Signed-off-by: Nicholas Mc Guire Applied to the togreg branch of iio.git which will at somepoint get pushed out as testing for the

[RFCv3 PATCH 15/48] arm: vexpress: Add CPU clock-frequencies to TC2 device-tree

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann To enable the parsing of clock frequency and cpu efficiency values inside parse_dt_topology [arch/arm/kernel/topology.c] to scale the relative capacity of the cpus, this property has to be provided within the cpu nodes of the dts file. The patch is a copy of commit 8f15973

Re: [PATCH] iio: gyro: bmg160: optimize i2c transfers in trigger handler

2015-02-04 Thread Jonathan Cameron
On 30/01/15 04:03, Viorel Suman wrote: > Hi, > > You might need more space in "values" buffer, for more details please check > the > "iio_push_to_buffers_with_timestamp" description and implementation. Whilst that function is a little 'odd', this patch doesn't change the use of buffer (simply how

[RFCv3 PATCH 03/48] sched: remove frequency scaling from cpu_capacity

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot Now that arch_scale_cpu_capacity has been introduced to scale the original capacity, the arch_scale_freq_capacity is no longer used (it was previously used by ARM arch). Remove arch_scale_freq_capacity from the computation of cpu_capacity. The frequency invariance will be ha

Re: [RFC 00/10] Freescale DPAA B/QMan drivers

2015-02-04 Thread Greg KH
On Wed, Feb 04, 2015 at 08:48:32AM -0600, Emil Medve wrote: > > Hello, > > > This is the first attempt to publish the Freescale DPAA B/QMan drivers. They > are > not to be applied yet. At this stage, this is more or less the drivers from > the > Freescale PowerPC SDK roughly squashed and spli

[RFCv3 PATCH 13/48] cpufreq: Architecture specific callback for frequency changes

2015-02-04 Thread Morten Rasmussen
From: Morten Rasmussen Architectures that don't have any other means for tracking cpu frequency changes need a callback from cpufreq to implement a scaling factor to enable scale-invariant per-entity load-tracking in the scheduler. To compute the scale invariance correction factor the architectu

[RFCv3 PATCH 11/48] sched: Make load tracking frequency scale-invariant

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann Apply frequency scale-invariance correction factor to load tracking. Each segment of the sched_avg::runnable_avg_sum geometric series is now scaled by the current frequency so the sched_avg::load_avg_contrib of each entity will be invariant with frequency scaling. As a resu

[RFCv3 PATCH 09/48] sched: add SD_PREFER_SIBLING for SMT level

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot Add the SD_PREFER_SIBLING flag for SMT level in order to ensure that the scheduler will put at least 1 task per core. Signed-off-by: Vincent Guittot Reviewed-by: Preeti U. Murthy --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/cor

Re: [Intel-gfx] [regression in linux-next] i915: broken graphics on laptop

2015-02-04 Thread Chris Wilson
On Wed, Feb 04, 2015 at 09:26:27PM +0300, Andrey Skvortsov wrote: > On Tue, Feb 03, 2015 at 08:21:52PM +, Chris Wilson wrote: > > On Tue, Feb 03, 2015 at 10:15:47PM +0300, Andrey Skvortsov wrote: > > > Hi, > > > > > > tested next-20150202. System boots, but graphic output is broken (empty > >

[RFCv3 PATCH 10/48] sched: move cfs task on a CPU with higher capacity

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load balance to check if it's worth moving its tasks

Re: [PATCH] spmi: pmic_arb: enable build on arm64 platforms

2015-02-04 Thread Paul Bolle
On Wed, 2015-02-04 at 17:27 +0200, Stanimir Varbanov wrote: > On 02/04/2015 05:14 PM, Paul Bolle wrote: > > On Wed, 2015-02-04 at 17:05 +0200, Stanimir Varbanov wrote: > >> On 02/03/2015 10:42 PM, Paul Bolle wrote: > >>> On Tue, 2015-02-03 at 15:50 +0200, Stanimir Varbanov wrote: > diff --git

[RFCv3 PATCH 07/48] sched: get CPU's usage statistic

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot Monitor the usage level of each group of each sched_domain level. The usage is the portion of cpu_capacity_orig that is currently used on a CPU or group of CPUs. We use the utilization_load_avg to evaluate the usage level of each group. The utilization_load_avg only takes i

[RFCv3 PATCH 17/48] sched: Get rid of scaling usage by cpu_capacity_orig

2015-02-04 Thread Morten Rasmussen
From: Dietmar Eggemann Since now we have besides frequency invariant also cpu (uarch plus max system frequency) invariant cfs_rq::utilization_load_avg both, frequency and cpu scaling happens as part of the load tracking. So cfs_rq::utilization_load_avg does not have to be scaled by the original c

[RFCv3 PATCH 01/48] sched: add utilization_avg_contrib

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot Add new statistics which reflect the average time a task is running on the CPU and the sum of these running time of the tasks on a runqueue. The latter is named utilization_load_avg. This patch is based on the usage metric that was proposed in the 1st versions of the per-en

[PATCH 1/1 linux-next] staging: lustre: make obd_updatemax_lock static

2015-02-04 Thread Fabian Frederick
obd_updatemax_lock is only used in class_obd.c Signed-off-by: Fabian Frederick --- drivers/staging/lustre/lustre/obdclass/class_obd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/obdclass/class_obd.c b/drivers/staging/lustre/lustre/obdclass/c

[RFCv3 PATCH 08/48] sched: replace capacity_factor by usage

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot The scheduler tries to compute how many tasks a group of CPUs can handle by assuming that a task's load is SCHED_LOAD_SCALE and a CPU's capacity is SCHED_CAPACITY_SCALE. group_capacity_factor divides the capacity of the group by SCHED_LOAD_SCALE to estimate how many task can

[RFCv3 PATCH 04/48] sched: Make sched entity usage tracking frequency-invariant

2015-02-04 Thread Morten Rasmussen
Apply frequency scale-invariance correction factor to usage tracking. Each segment of the running_load_avg geometric series is now scaled by the current frequency so the utilization_avg_contrib of each entity will be invariant with frequency scaling. As a result, utilization_load_avg which is the s

Re: [PATCH -next] iio/magnetometer: fix AK09911 dependencies

2015-02-04 Thread Jonathan Cameron
st. Unfortunately I failed to apply before sending the pull request on to Greg. Will follow this up asap... (which might not be that quick as I'm travelling until the weekend). Jonathan > drivers/iio/magnetometer/Kconfig |1 + > 1 file changed, 1 insertion(+) > > --- linu

[RFCv3 PATCH 02/48] sched: Track group sched_entity usage contributions

2015-02-04 Thread Morten Rasmussen
Adds usage contribution tracking for group entities. Unlike se->avg.load_avg_contrib, se->avg.utilization_avg_contrib for group entities is the sum of se->avg.utilization_avg_contrib for all entities on the group runqueue. It is _not_ influenced in any way by the task group h_load. Hence it is repr

[RFCv3 PATCH 05/48] sched: make scale_rt invariant with frequency

2015-02-04 Thread Morten Rasmussen
From: Vincent Guittot The average running time of RT tasks is used to estimate the remaining compute capacity for CFS tasks. This remaining capacity is the original capacity scaled down by a factor (aka scale_rt_capacity). This estimation of available capacity must also be invariant with frequenc

[PATCH] scsi: osst: fix sparse warnings

2015-02-04 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch fixes following sparse warnings: osst.c:5699:1: warning: symbol 'dev_attr_ADR_rev' was not declared. Should it be static? osst.c:5713:1: warning: symbol 'dev_attr_media_version' was not declared. Should it be static? osst.c:5726:1: warning: symbol 'dev_attr_ca

[RFC] Implement ambient capability set.

2015-02-04 Thread Christoph Lameter
An attempt to implement this. Probably missing some fine points: Subject: [capabilities] Implement ambient capability set. DRAFT -- untested -- DRAFT Implement an ambient capabilty set to allow capabilties to be inherited with unix semantics used also for other attributes. Implements PR_CAP_AMB

[PATCH linux-next] staging: rtl8712: Do coding style cleanup

2015-02-04 Thread Michael Hornung
* Fix checkpatch.pl warnings "Fix missing space after return type warning". Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/drv_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h

Re: [PATCH] tty/sysrq: fix sparse warnings

2015-02-04 Thread Lad, Prabhakar
On Wed, Feb 4, 2015 at 6:27 PM, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch fixes following sparse warnings: > sysrq.c:58:16: warning: symbol 'platform_sysrq_reset_seq' was not declared. > Should it be static? > sysrq.c:59:5: warning: symbol 'sysrq_reset_downtime_ms' was not dec

[PATCH] orinoco: Delete an unnecessary check before the function call "kfree"

2015-02-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Feb 2015 19:53:11 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/

Re: [PATCH v8 17/21] clocksource / arch_timer: Parse GTDT to initialize arch timer

2015-02-04 Thread Lorenzo Pieralisi
On Mon, Feb 02, 2015 at 12:45:45PM +, Hanjun Guo wrote: > Using the information presented by GTDT (Generic Timer Description Table) > to initialize the arch timer (not memory-mapped). Why are you not initializing the memory mapped timer ? > CC: Daniel Lezcano > Originally-by: Amit Daniel Kac

Re: [PATCH] iommu: Update my email address

2015-02-04 Thread Joe Perches
On Wed, 2015-02-04 at 16:17 +0100, Joerg Roedel wrote: > The AMD address is dead for a long time already, replace it > with a working one. Maybe add a .mailmap entry too. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

[PATCH 1/1 linux-next] scsi: make bnx2fc_global_lock spinlock static

2015-02-04 Thread Fabian Frederick
bnx2fc_global_lock is only used in bnx2fc_fcoe.c Signed-off-by: Fabian Frederick --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 98d06d1..66fb527 100644 --- a/dr

Re: [PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-04 Thread Mark Salter
On Wed, 2015-02-04 at 17:57 +, Catalin Marinas wrote: > On Wed, Feb 04, 2015 at 04:08:27PM +, Mark Salter wrote: > > On Wed, 2015-02-04 at 11:25 +, Catalin Marinas wrote: > > > On Tue, Feb 03, 2015 at 05:29:36PM +, Mark Salter wrote: > > > > On Mon, 2015-02-02 at 23:14 +0100, Rafael

Re: [PATCH] MODULE_DEVICE_TABLE: fix gscps2

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 04:15:35PM +0100, Geert Uytterhoeven wrote: > The patch "module: fix types of device tables aliases" newly requires > that invocations of > > MODULE_DEVICE_TABLE(type, name); > > come *after* the definition of `name'. That is reasonable, but gscps2 > wasn't doing this. F

Re: [PATCH v8 21/21] arm64: ACPI: additions of ACPI documentation for arm64

2015-02-04 Thread Al Stone
On 02/04/2015 11:12 AM, Mark Brown wrote: > On Tue, Feb 03, 2015 at 05:40:20PM -0700, Al Stone wrote: >> Much removed to cut down the size on this and to highlight a couple of >> specific sections pertinent to the ACPI on ARMv8 TODO List. > > This is of course good practice when replying to an

Re: [PATCH] kernel.h: Remove ancient __FUNCTION__ hack

2015-02-04 Thread Joe Perches
On Wed, 2015-02-04 at 10:48 +0100, Rasmus Villemoes wrote: > __FUNCTION__ hasn't been treated as a string literal since gcc 3.4, so > this only helps people who only test-compile using 3.3 > (compiler-gcc3.h barks at anything older than that). Besides, there > are almost no occurrences of __FUNCTIO

Re: [Patch] sunrpc: NULL utsname dereference on NFS umount during namespace cleanup

2015-02-04 Thread Trond Myklebust
On Wed, Feb 4, 2015 at 12:08 PM, Bruno Prémont wrote: > > On Fri, 30 January 2015 Trond Myklebust wrote: > > On Sun, 2015-01-25 at 16:55 -0500, Trond Myklebust wrote: > > > On Sun, Jan 25, 2015 at 4:06 PM, Bruno Prémont wrote: > > > > On a system running home-brown container (mntns, utsns, pidns,

Re: [GIT PULL] USB changes for v3.20

2015-02-04 Thread Greg KH
On Wed, Feb 04, 2015 at 11:21:03AM -0600, Felipe Balbi wrote: > Hi Greg, > > Here's a big pull request for v3.20. All patches have been around > for quite a while. I have tested everything on AM437x SK, AM437x IDK, > AM335x BeagleBoneBlack and AM57x Beagleboard X15. > > Let me know if you want me

Re: [PATCH] eeprom: at24: Add support for large EEPROMs connected to SMBus adapters

2015-02-04 Thread Guenter Roeck
On Wed, Feb 04, 2015 at 06:47:23PM +0100, Wolfram Sang wrote: > > On Wed, Feb 04, 2015 at 08:23:37AM -0800, Guenter Roeck wrote: > > Large EEPROMS (24c32 and larger) require a two-byte data address > > instead of just a single byte. Implement support for such EEPROMs > > with SMBus commands. > >

[PATCH] HostAP: Delete an unnecessary check before the function call "kfree"

2015-02-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Feb 2015 20:06:39 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/

Re: [PATCH 3.18 00/57] 3.18.6-stable review

2015-02-04 Thread Greg Kroah-Hartman
On Wed, Feb 04, 2015 at 06:03:33AM -0800, Guenter Roeck wrote: > On 02/03/2015 03:13 PM, Greg Kroah-Hartman wrote: > >This is the start of the stable review cycle for the 3.18.6 release. > >There are 57 patches in this series, all will be posted as a response > >to this one. If anyone has any issu

Re: [PATCH 3.18 00/57] 3.18.6-stable review

2015-02-04 Thread Greg Kroah-Hartman
On Wed, Feb 04, 2015 at 10:30:28AM -0700, Shuah Khan wrote: > On 02/03/2015 04:13 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.6 release. > > There are 57 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: MADV_DONTNEED semantics? Was: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-04 Thread Michael Kerrisk (man-pages)
On 4 February 2015 at 18:02, Vlastimil Babka wrote: > On 02/04/2015 03:00 PM, Michael Kerrisk (man-pages) wrote: >> >> Hello Vlastimil, >> >> On 4 February 2015 at 14:46, Vlastimil Babka wrote: > > - that covers mlocking ok, not sure if the rest fits the "shared pages" > case > th

Re: [PATCH 1/5] LLVMLinux: Correct size_index table before replacing the bootstrap kmem_cache_node.

2015-02-04 Thread Pekka Enberg
On 2/3/15 3:37 PM, Daniel Sanders wrote: This patch moves the initialization of the size_index table slightly earlier so that the first few kmem_cache_node's can be safely allocated when KMALLOC_MIN_SIZE is large. The patch looks OK to me but how is this related to LLVM? - Pekka -- To unsubscr

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-04 Thread Theodore Ts'o
On Wed, Feb 04, 2015 at 03:52:02PM +0100, Lukáš Czerner wrote: > > I'm happy for all the feedback. But it doesn't help me. I'm not going to > > spend > > the necessary time unpaid. > > Right, you'd much rather have someone else to spend the time on your > request unpaid. That's understandable, bu

[PATCH] ASoC: Intel: fix sst firmware path

2015-02-04 Thread Kevin Strasser
All sst firmware is provided under the intel directory of the linux-firmware tree. By default this directory structure is kept when installing on a target system. Change the path to expect a default linux-firmware installation. Signed-off-by: Kevin Strasser --- sound/soc/intel/sst/sst_acpi.c | 6

[RFC][PATCH] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2015-02-04 Thread Steven Rostedt
I posted this patch a while back ago here: https://lkml.org/lkml/2012/12/12/354 It solved an issue that is very prevalent on large count CPUs. Tracing showed it nicely. When we have more than 16 CPUs, the lock contention on the run queue lock made a very noticeable delay. So much so, that Mike

[PATCH] net: brcm80211: Delete unnecessary checks before two function calls

2015-02-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Feb 2015 20:28:49 +0100 The functions brcmu_pkt_buf_free_skb() and usb_free_urb() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. Signed-off-by: Markus Elfring --- drivers/net/wireless/brcm80211/brc

Re: [PATCH 1/4] Input - synaptics: fix middle button on Lenovo 2015 products

2015-02-04 Thread Benjamin Tissoires
On Feb 02 2015 or thereabouts, Dmitry Torokhov wrote: > On Wed, Jan 28, 2015 at 03:10:04PM -0500, Benjamin Tissoires wrote: > > On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle > > button of the trackstick (attached to the touchpad serio device, of course) > > seems to get

[for-next][PATCH 9/9] ktest: Place quotes around item variable

2015-02-04 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Seems that some of the new console logic causes doprint to possibly get evaluated. When printing a commit message that contains parenthesis, it fails with a shell parsing error. This gets fixed when we add quotes around the $item variable, and prevent it from bei

[for-next][PATCH 8/9] ktest: Cleanup terminal on dodie() failure

2015-02-04 Thread Steven Rostedt
From: Josh Poimboeuf If dodie() is called with the console open, restore the terminal's original settings before dying. Link: http://lkml.kernel.org/r/20150130025453.gb20...@treble.redhat.com Signed-off-by: Josh Poimboeuf Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 7 +++

[for-next][PATCH 1/9] ktest: Add timings for commands

2015-02-04 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" I find that I usually like to see how long a make or other command takes, and adding a start and end time and reporting how long each command runs (in seconds) is helpful. Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 13 + 1 file

[for-next][PATCH 0/9] ktest: Updates for 3.20

2015-02-04 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git for-next Head SHA1: 7c2c49eceb79eb4738f38a00270830057b5bfb76 Josh Poimboeuf (4): ktest: Restore tty settings after closing console ktest: Give console process a dedicated tty ktest: Enable user input to the

[for-next][PATCH 5/9] ktest: Give console process a dedicated tty

2015-02-04 Thread Steven Rostedt
From: Josh Poimboeuf Create a pseudoterminal (pty pair) to give the console a dedicated tty so it doesn't mess with ktest's terminal settings. Link: http://lkml.kernel.org/r/37b0127f9efad09ff4fc994334db998141e4f6ca.1422473610.git.jpoim...@redhat.com Signed-off-by: Josh Poimboeuf Signed-off-by

[for-next][PATCH 6/9] ktest: Enable user input to the console

2015-02-04 Thread Steven Rostedt
From: Josh Poimboeuf Allow the user to send input to the console by putting the terminal in cbreak mode (to allow reading stdin one character at a time) and copying all stdin data to the console's pty. Link: http://lkml.kernel.org/r/bb1bbe7d202c95a3ce7894cfffdd8c725875978e.1422473610.git.jpoim.

[for-next][PATCH 4/9] ktest: Rename start_monitor_and_boot to start_monitor_and_install

2015-02-04 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The function start_monitor_and_boot is a misnomer. It use to, but now it starts the monitor and installs. It does not boot. Rename it before I get confused by it again. Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 10 +- 1 file chang

[for-next][PATCH 7/9] ktest: Print build,install,boot,test times at success and failure

2015-02-04 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Since both success and failure may shortcut and exit ktest, it is better to print the status times there too. Once times are printed, the values for the times are reset, so they will not print more than once. Signed-off-by: Steven Rostedt --- tools/testing/ktes

[for-next][PATCH 3/9] ktest: Show times for build, install, boot and test

2015-02-04 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Seeing the times for how long a build, install, reboot and the test takes is helpful for analyzing the test process. Seeing how different changes affect the timings. Show the build, install, boot and test times when at the end of the test, or between each interva

[for-next][PATCH 2/9] ktest: Restore tty settings after closing console

2015-02-04 Thread Steven Rostedt
From: Josh Poimboeuf When ktest runs the console program as a child process, the parent and child share the same tty for stdin and stderr. This is problematic when using a libvirt target. The "virsh console" program makes a lot of changes to the tty settings, making ktest's output hard to read

[PATCH net-next v2 05/17] net: usnic: use __ethtool_get_ksettings

2015-02-04 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 d71ba62..f6f67c9 1

[PATCH net-next v2 07/17] net: ipvlan: use __ethtool_get_ksettings

2015-02-04 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 4f4099d..79e3516 100644 --- a/drivers/net/ipvlan/ipvlan

[PATCH net-next v2 08/17] net: macvlan: use __ethtool_get_ksettings

2015-02-04 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 1df38bd..ce934c3 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -925,

[PATCH net-next v2 14/17] net: core: use __ethtool_get_ksettings

2015-02-04 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 9993412..f54ae21 100644 --- a/net/cor

[PATCH net-next v2 13/17] net: bridge: use __ethtool_get_ksettings

2015-02-04 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 b087d27..57282a5 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -35,10 +35,10 @@ */

[PATCH net-next v2 16/17] net: mlx4: identify predicate for debug messages

2015-02-04 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 944a112..96bf728 100644

[PATCH net-next v2 17/17] net: mlx4: use new ETHTOOL_G/SSETTINGS API

2015-02-04 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 328 drivers/net/ethernet/mellanox/mlx4/en_main.c| 1 + drivers/net/ethernet/mellanox/mlx4/mlx4_en.h| 1 + 3 files changed, 162 insertions(+), 168 dele

[PATCH net-next v2 15/17] net: ethtool: remove unused __ethtool_get_settings

2015-02-04 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 | 49 ++--- 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/include/linux/ethtoo

[PATCH] SGI-XPC: Delete an unnecessary check before the function call "kfree"

2015-02-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Feb 2015 20:50:31 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/misc

[PATCH net-next v2 01/17] net: usnic: remove unused call to ethtool_ops::get_settings

2015-02-04 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 53bd6a2..61337c7c 100644 --- a/drivers/in

[PATCH net-next v2 11/17] net: rdma: use __ethtool_get_ksettings

2015-02-04 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 ce55906..782bb8c 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_add

[PATCH net-next v2 10/17] net: fcoe: use __ethtool_get_ksettings

2015-02-04 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 bdc8989..6097f0d

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-04 Thread Alexander Holler
Am 04.02.2015 um 20:33 schrieb Theodore Ts'o: And indeed, people who do have salaries paid by companies who care about this general problem in actual products have been working on addressing it using encryption, such that when the user is removed from the device, the key is blasted. More import

[PATCH net-next v2 06/17] net: bonding: use __ethtool_get_ksettings

2015-02-04 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 c9e519c..9aba5a8 100644 --- a/drivers/net/bonding/b

[PATCH net-next v2 12/17] net: 8021q: use __ethtool_get_ksettings

2015-02-04 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 1189564..b301bf6 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -655,12 +6

[PATCH net-next v2 02/17] net: usnic: use __ethtool_get_settings

2015-02-04 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 61337c7c..d71ba62 100644 -

[PATCH net-next v2 09/17] net: team: use __ethtool_get_ksettings

2015-02-04 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 0e62274..85196c5 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.

[PATCH net-next v2 03/17] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-02-04 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 ethtool_c

Re: [PATCH 1/4] Input - synaptics: fix middle button on Lenovo 2015 products

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 02:43:32PM -0500, Benjamin Tissoires wrote: > On Feb 02 2015 or thereabouts, Dmitry Torokhov wrote: > > On Wed, Jan 28, 2015 at 03:10:04PM -0500, Benjamin Tissoires wrote: > > > On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle > > > button of the tra

[PATCH net-next v2 04/17] tx4939: use __ethtool_get_ksettings

2015-02-04 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 --- a/arch/mips/

Re: [PATCH v2] staging: rtl8192u: r8192U_core: Fix for possible null pointer dereference

2015-02-04 Thread Rickard Strandqvist
2015-02-02 17:51 GMT+01:00 Sudip Mukherjee : > On Thu, Jan 29, 2015 at 07:59:12PM +0100, Rickard Strandqvist wrote: >> Fix a possible null pointer dereference, there is >> otherwise a risk of a possible null pointer dereference. >> >> This was found using a static code analysis program called cppch

[PATCH net-next v2 00/17] RFC: new ETHTOOL_GSETTINGS/SSETTINGS API

2015-02-04 Thread David Decotigny
From: David Decotigny History: v2 - keep return 0 in get_settings when successful, instead of propagating positive result from driver's get_settings callback. v1 - original submission The main goal of this series is to support ethtool link mode masks larger than 32 bits. It implements a

Re: [PATCH] sound: soc: codecs/ts3a227e: fix sparse warning

2015-02-04 Thread Mark Brown
On Wed, Feb 04, 2015 at 05:29:30PM +, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch fixes following sparse warning: > ts3a227e.c:222:5: warning: symbol 'ts3a227e_enable_jack_detect' was not > declared. Should it be static? Applied, thanks. Please use subject lines matching t

Re: [PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-04 Thread Sergei Shtylyov
Hello. On 02/04/2015 02:59 PM, David Laight wrote: -static inline int hci_test_bit(int nr, void *addr) +static inline int hci_test_bit(int nr, const void *addr) { return *((__u32 *) addr + (nr >> 5)) & ((__u32) 1 << (nr & 31)); } Is there a 'standard' function lurking that will d

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