[PATCH 30/89] sched/headers: Move the 'init_mm' declaration from to

2017-02-06 Thread Ingo Molnar
Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/mm_types.h | 2 ++ include/linux/sched.h| 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mm_types.

[PATCH 34/89] sched/core: Move include to kernel/sched/sched.h

2017-02-06 Thread Ingo Molnar
Recent header reorganizations unearthed this hidden dependency: kernel/sched/core.c:199:25: error: 'paravirt_steal_rq_enabled' undeclared (first use in this function) kernel/sched/core.c:200:11: error: implicit declaration of function 'paravirt_steal_clock' [-Werror=implicit-function-declara

[PATCH 35/89] kasan, sched/headers: Remove from and uninline kasan_enable/disable_current()

2017-02-06 Thread Ingo Molnar
is a low level header that is included early in affected kernel headers. But it includes which complicates the cleanup of sched.h dependencies. But kasan.h has almost no need for sched.h: its only use of scheduler functionality is in two inline functions which are not used very frequently - so u

Re: [PATCH v2 6/7] gpiolib: include from gpiolib.h

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > We want pull gpiolib.h in from the gpio mockup driver, but gpiod_flags > is defined in consumer.h, so we need that too indirectly. > > Signed-off-by: Bartosz Golaszewski Can't you just add the include to the mockup driver...? Yours,

[PATCH 39/89] sched/headers: Remove various unrelated headers from

2017-02-06 Thread Ingo Molnar
Remove the following header inclusions from : #include #include #include #include #include #include #include #include #include #include #include #include #include #include

[PATCH 38/89] sched/headers: Remove from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/i2c.h | 1 + include/linux/sched.h

[PATCH 40/89] sched/headers: Move CONFIG_TASK_XACCT bits out of into

2017-02-06 Thread Ingo Molnar
The CONFIG_TASK_XACCT accounting inline functions are only used by fs/read_write.c, so move them into a separate header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- fs/read_write.c |

Re: [PATCH v13 1/2] serial: exar: split out the exar code from 8250_pci

2017-02-06 Thread Jan Kiszka
On 2017-02-03 22:31, Sudip Mukherjee wrote: > On Friday 03 February 2017 02:02 PM, Jan Kiszka wrote: >> BTW, are you personally the copyright holder or your employer Codethink? >> Depends on your contractual situation, but the former is less common. > > Well, Codethink has nothing to do with this

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-02-06 Thread Frederic Weisbecker
On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > Ingo, > > Please pull the cputime/nsecs-for-tip branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > cputime/nsecs-for-tip Ping! :-)

Re: [PATCH] cpumask: add cpumask_any_and_but()

2017-02-06 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 11:38:52AM +, Mark Rutland wrote: > In some cases, it's useful to be able to select a random cpu from the > intersection of two masks, excluding a particular CPU. > > For example, in some systems an uncore PMU is shared by a subset of > CPUs, and management of this PMU

Re: [PATCH net-next v5 3/4] net: phy: Allow pre-declaration of MDIO devices

2017-02-06 Thread Andrew Lunn
> diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h > index 8a57f0b1242d..8850fcaf50db 100644 > --- a/include/linux/mod_devicetable.h > +++ b/include/linux/mod_devicetable.h > @@ -501,6 +501,7 @@ struct platform_device_id { > kernel_ulong_t driver_data; > }; >

[PATCH 36/89] sched/headers: Remove inclusion from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Note that even if the count where we need to add extra headers seems high, it's still a net win, because is included in over 2,200 files ... Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner C

[PATCH 37/89] sched/headers: Remove from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/alpha/math-emu/math.c| 1 + arch/sh/kernel/cpu/fp

[PATCH 46/89] sched/headers: Move the NOHZ APIs from to

2017-02-06 Thread Ingo Molnar
There's a number of NOHZ/dyntics related functionality in , but only a handful of timer files are making use of them. Move them into their own header. This better documents these APIs and unclutters . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kerne

[PATCH 42/89] sched/headers: Move the memalloc_noio_*() APIs to

2017-02-06 Thread Ingo Molnar
In preparation to remove the include from . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- drivers/base/power/runtime.c | 2 +- drivers/md/dm-bufio.c| 1 + drivers/md/dm-ioctl.c|

[PATCH 41/89] sched/headers: Move signal wakeup & sigpending methods from into

2017-02-06 Thread Ingo Molnar
... and fix up affected files that only incidentally included the signal functionality. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/arm/common/bL_switcher.c |

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Richard Genoud
Hi Romain, On 06/02/2017 12:56, Romain Izard wrote: > Hello, > > On Atmel SAMA5D2, when trying to configure a serial port for 3 Mbauds > operation, I do not always get the requested baud rate. If the hardware > flow control is disabled by software, the line works correctly. But if I > set the crts

[PATCH 44/89] sched/headers: Move task statistics from to

2017-02-06 Thread Ingo Molnar
There are a number of task statistics related variables and methods exported via sched.h - collect them into and include it from their usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- ar

[PATCH 48/89] sched/headers, time/timekeeping: Move the xtime_update() prototype from to

2017-02-06 Thread Ingo Molnar
This was in only for hysterical raisins. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 2 -- include/linux/time.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH 45/89] mm/vmacache, sched/headers: Introduce 'struct vmacache' and move it from to

2017-02-06 Thread Ingo Molnar
The header includes various vmacache related defines, which are arguably misplaced. Move them to mm_types.h and minimize the sched.h impact by putting all task vmacache state into a new 'struct vmacache' structure. No change in functionality. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas G

[PATCH 53/89] sched/headers: Simplify dependencies

2017-02-06 Thread Ingo Molnar
Move rcu_copy_process() into kernel/fork.c, which is the only user of this inline function. This simplifies to the level that does not have to be included in it anymore. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-

[PATCH 49/89] sched/headers: Move include from the middle of to the header portion

2017-02-06 Thread Ingo Molnar
Linux-0.01 already defined 'current' in the middle of sched.h, so this is an ancient historical precedent - but still in a modern kernel it looks a bit weird that we have: #include in the middle of the header. Move it further up. If this was done for some obscure dependency reasons then

[PATCH 52/89] sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
There's a fair amount of task lifetime management (a.k.a fork()) related APIs in , but only a small fraction of the users of the generic sched.h header make use of them. Split out these functions into the header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc

[PATCH 56/89] sched/headers: Move the PREEMPT_COUNT defines from to

2017-02-06 Thread Ingo Molnar
These defines are not really part of the scheduler's driver API, but are related to the preempt count - so move them to . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/preempt.h | 21

[PATCH v11 6/9] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-02-06 Thread Jan Glauber
Add a platform driver for ThunderX ARM SOCs. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 2 + drivers/mmc/host/cavium-mmc.h | 38 ++ drivers/mmc

Re: [PATCHSET 0/3] perf diff: Introduce delta-abs compute method

2017-02-06 Thread Namhyung Kim
On Mon, Feb 06, 2017 at 11:26:17AM +0100, Jiri Olsa wrote: > On Mon, Feb 06, 2017 at 04:20:34PM +0900, Namhyung Kim wrote: > > SNIP > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > > > Thanks, > > Namhyung > > > > > > Namhyung Kim (3): > > perf diff: Add

[PATCH v11 1/9] dt-bindings: mmc: Add Cavium SOCs MMC bindings

2017-02-06 Thread Jan Glauber
Add description of Cavium Octeon and ThunderX SOC device tree bindings. CC: Ulf Hansson CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- .../devicetree/bindings/mmc/cavium-mmc.txt

[PATCH v11 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-02-06 Thread Jan Glauber
This core driver will be used by a MIPS platform driver or by an ARM64 PCI driver. The core driver implements the mmc_host_ops and slot probe & remove functions. Callbacks are provided to allow platform specific interrupt enable and bus locking. The host controller supports: - up to 4 slots that c

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Ludovic Desroches
Hello Romain, On Mon, Feb 06, 2017 at 12:56:42PM +0100, Romain Izard wrote: > Hello, > > On Atmel SAMA5D2, when trying to configure a serial port for 3 Mbauds > operation, I do not always get the requested baud rate. If the hardware > flow control is disabled by software, the line works correctly

[PATCH v11 3/9] mmc: cavium: Add MMC platform driver for Octeon SOCs

2017-02-06 Thread Jan Glauber
Add a platform driver for Octeon MIPS SOCs. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 2 + drivers/mmc/host/cavium-mmc.h | 19 drivers/mmc/ho

[PATCH 58/89] sched/headers: Move the 'root_task_group' declaration to

2017-02-06 Thread Ingo Molnar
Also remove the duplicate declaration from . ( That declaration was originally duplicated for dependency hell reasons, but there's no problem including the much smaller header now, to pick up the right prototype. ) Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torval

Re: [PATCH] drbd: avoid clang warning about pointless switch statement

2017-02-06 Thread Lars Ellenberg
Ack. Ok, not exactly "pintless", it's a valid compile time assert for uniq ids, basically a BUILD_BUG_ON(duplicate-ids). But adding a default clause there does not hurt. Thanks, Lars On Wed, Feb 01, 2017 at 05:55:02PM +0100, Arnd Bergmann wrote: > The drbd code causes warnings that we canno

Re: [PATCH 2/3] perf diff: Add diff.order config option

2017-02-06 Thread Namhyung Kim
Hi Taeung, On Mon, Feb 06, 2017 at 06:44:42PM +0900, Taeung Song wrote: > Hi, Namhyung :) > > On 02/06/2017 04:20 PM, Namhyung Kim wrote: > > In many cases, I need to look at differences between two data so I often > > used the -o option to sort the result base on the difference first. > > It'd b

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 2:50 AM, Daniel Vetter wrote: > On Fri, Feb 03, 2017 at 09:36:31PM -0600, Rob Herring wrote: >> The OF graph API leaves too much of the graph walking to clients when >> in many cases the driver doesn't care about accessing the port or >> endpoint nodes. The drivers typically

Re: [PATCH v2 5/7] gpio: mockup: add a dummy irqchip

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 2:31 PM, Bartosz Golaszewski wrote: > 2017-02-06 14:29 GMT+01:00 Linus Walleij : >> On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski >> wrote: >> >>> Setup a dummy irqchip that will allow us to inject line events for >>> testing purposes. >>> >>> Signed-off-by: Bartosz G

[PATCH v11 4/9] mmc: cavium: Work-around hardware bug on cn6xxx and cnf7xxx

2017-02-06 Thread Jan Glauber
Prevent data corruption on cn6xxx and cnf7xxx. Due to an imperfection in the design of the MMC bus hardware, the 2nd to last cache block of a DMA read must be locked into the L2 cache. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- arch/mips/cavium-octe

[PATCH v11 8/9] mmc: cavium: Support DDR mode for eMMC devices

2017-02-06 Thread Jan Glauber
Add support for switching to DDR mode for eMMC devices. Although the host controller only supports 3.3 Volt and DDR52 uses 1.8 Volt according to the specification it is possible to use DDR also with 3.3 Volt for eMMC chips. To switch to DDR mode MMC_CAP_1_8V_DDR is required. Signed-off-by: Jan Gl

[PATCH v11 0/9] Cavium MMC driver

2017-02-06 Thread Jan Glauber
Hi Ulf, I've implemented the fixed regulator support as requested. Nevertheless we need to keep the code for the global power gpio around because that will still be used by existing Octeon systems (where we can't update the DT). I've kept the dummy device approach for mmc_of_parse() and devm*, be

[PATCH v11 7/9] mmc: cavium: Add scatter-gather DMA support

2017-02-06 Thread Jan Glauber
Add Support for the scatter-gather DMA available in the ThunderX MMC units. Up to 16 DMA requests can be processed together. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/cavium-mmc.c | 105 - d

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:52 AM, Philipp Zabel wrote: > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: >> Convert drivers to use the new of_graph_get_remote_node() helper >> instead of parsing the endpoint node and then getting the remote device >> node. Now drivers can just specify the devi

[PATCH v11 9/9] MAINTAINERS: Add entry for Cavium MMC driver

2017-02-06 Thread Jan Glauber
Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2c171ad..81afd78 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2999,6 +2999,14 @@ S: Supported

[PATCH v11 5/9] mmc: cavium: Add support for Octeon cn7890

2017-02-06 Thread Jan Glauber
The MMC unit on Octeon cn7890 differs in that it has multiple interrupts. Requires a lock for the interrupt handler. DMA addresses have a dedicated 64 bit register now, so use that when available. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/m

[PATCH 57/89] sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
Split out the task->stack related functionality, which is not really part of the core scheduler APIs. Update the code that uses those facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch

[PATCH 64/89] sched/headers: Remove 'init_pid_ns' prototype from

2017-02-06 Thread Ingo Molnar
pid.h already defines it. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h inde

Re: [PATCH 00/89] Major reorganization of

2017-02-06 Thread Ingo Molnar
* Ingo Molnar wrote: > sched/core: Clean up comments > delayacct: Include > sched/rq_clock: Consolidate the ordering of the rq_clock methods > sched/core: Remove unnecessary #include headers > sched/topology: Split out scheduler topology code from core.c into > topology.c > sched/t

Re: [PATCH 3/4] tools lib feature: Do not redefine compiler configuration

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:03PM -0800, David Carrillo-Cisneros escreveu: > Feature detection redefines CC, CCX and PKG_CONFIG, making the > output of feature detection inconsistent with the actual features > available during compilation when the above variables are used. > > Fix it by using con

[PATCH 63/89] sched/headers: Remove the dependency from

2017-02-06 Thread Ingo Molnar
Use the freshly introduced, reduced size header instead. Update the code that relied on sched.h including the MM types for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/alpha/include/a

[PATCH 55/89] sched/core: Clean up structure predeclarations and remove stale entries

2017-02-06 Thread Ingo Molnar
Most of the structure predeclarations were at the head of sched.h, but not all of them - there were a number of lines spread around sched.h, in random places. Move them to the head, and also sort them alphabetically. Also, while at it: - remove a stray #include - remove runqueue_is_locked()

[PATCH 61/89] sched/headers: Reduce signal API dependency

2017-02-06 Thread Ingo Molnar
Instead of including the full , only include the types-only header in , to further decouple the scheduler header from the signal headers. Also update which now needs the additional header. Update the code that relied on sched.h's inclusion of the signal.h header. Cc: Peter Zijlstra Cc: Mike G

[PATCH 62/89] mm/headers, sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
Separate all the MM types that are embedded directly in 'struct task_struct' into the new header. The goal is to include this header in , not the full header, to reduce the size, complexity and coupling of . (This patch does not change yet.) Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas

[PATCH 60/89] signals: Split out from

2017-02-06 Thread Ingo Molnar
Separate out just the pure data types - sched.h will be able to use this reduced size header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/mips/include/asm/abi.h | 2 ++ include/linux/signa

Applied "regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors" to the regulator tree

2017-02-06 Thread Mark Brown
The patch regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually someti

[PATCH 59/89] sched/core: Move the get_preempt_disable_ip() inline to sched/core.c

2017-02-06 Thread Ingo Molnar
It's defined in , but nothing outside the scheduler uses it - so move it to the sched/core.c usage site. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 9 - kernel/sc

[PATCH 69/89] sched/headers: Move sched_info_on() and force_schedstat_enabled() from to

2017-02-06 Thread Ingo Molnar
These APIs are not core scheduler but statistics related. Update usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/x86/kvm/cpuid.c | 2 ++ arch/x86/kvm/x86.c | 2 ++

[PATCH 67/89] sched/headers: Move the task_lock()/unlock() APIs to

2017-02-06 Thread Ingo Molnar
The task_lock()/task_unlock() APIs are not realated to core scheduling, they are task lifetime APIs, i.e. they belong into . Move them and update the code that uses these facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org

[PATCH 68/89] sched/headers: Split cputime functionality out of , into

2017-02-06 Thread Ingo Molnar
Move cputime related functionality out of , as most code that includes does not use that functionality. Move data types that are not included in task_struct directly to the signal definitions, into . Also merge the (small) existing header into . Update all code that relies on these facilities

Re: [PATCH 2/2] arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA

2017-02-06 Thread Robert Richter
On 14.12.16 09:11:47, Ard Biesheuvel wrote: > The NUMA code may get confused by the presence of NOMAP regions within > zones, resulting in spurious BUG() checks where the node id deviates > from the containing zone's node id. > > Since the kernel has no business reasoning about node ids of pages i

[PATCH 72/89] sched/headers: Move kstack_end() from to

2017-02-06 Thread Ingo Molnar
... and update usage sites, where necessary. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/m32r/kernel/traps.c | 2 ++ arch/metag/kernel/stacktrace.c | 1 + arch/openrisc/kernel/tr

[PATCH 71/89] sched/headers, vfs/execve: Move the do_execve*() prototypes from to

2017-02-06 Thread Ingo Molnar
... and update the usage sites where necessary. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/binfmts.h | 10 ++ include/linux/sched.h | 8 init/main.c

[PATCH 89/89] sched/headers: Clean up

2017-02-06 Thread Ingo Molnar
Now that dependencies have been sorted out, do various trivial cleanups: - remove unnecessary structure predeclarations - fix various typos - update comments where necessary - remove pointless comments - use consistent types - tabulate consistently - use a consistent comment style - clean

[PATCH 88/89] sched/headers: Remove #ifdefs from

2017-02-06 Thread Ingo Molnar
We can remove two pairs of #ifdefs by defining structures in a smarter way. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 12 1 file changed, 4 insertions(+), 8

[PATCH 70/89] sched/core: Remove unused prefetch_stack()

2017-02-06 Thread Ingo Molnar
prefetch_stack() is defined by IA64, but not actually used anywhere anymore. Remove it. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/ia64/include/asm/processor.h | 2 -- arch/ia64/kernel/en

[PATCH 65/89] sched/headers: Move 'init_task' and 'init_thread_union' from to

2017-02-06 Thread Ingo Molnar
'init_task' is really not part of core scheduler APIs but part of the fork() interface between the scheduler and process management. So move the declarations - and update affected code. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.o

[PATCH 73/89] sched/headers: Move exit_files() and exit_itimers() from to

2017-02-06 Thread Ingo Molnar
These two functions are task management related, not core scheduler APIs. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 4 include/linux/sched/task.h | 3 +++ kern

[PATCH 86/89] sched/headers: Remove the include from

2017-02-06 Thread Ingo Molnar
It's used only by a single (rarely used) inline function (task_node(p)), which we can move to . ( Add , because we rely on that. ) Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched

[PATCH 87/89] sched/headers: Move the sched_exec() prototype to

2017-02-06 Thread Ingo Molnar
sched_exec() better fits into the task lifetime APIs than into the core scheduler APIs. This reduces the size of a bit. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h |

[PATCH 79/89] sched/core: Remove the tsk_nr_cpus_allowed() wrapper

2017-02-06 Thread Ingo Molnar
tsk_nr_cpus_allowed() too is a pretty pointless wrapper that is not used consistently and which makes the code both harder to read and longer as well. So remove it - this also shrinks a bit. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.ke

[PATCH 74/89] sched/headers: Move _init() prototypes from to

2017-02-06 Thread Ingo Molnar
trap_init() and cpu_init() belong into , sched_init*() into . ... and update usage sites where necessary. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/ia64/kernel/setup.c | 1 + arch/m32

[PATCH 80/89] sched/headers: Move the include to

2017-02-06 Thread Ingo Molnar
It's not used by any of the scheduler methods, but needs it to pick up STACK_END_MAGIC. Update files that depended on the magic.h inclusion. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- drivers/

[PATCH 85/89] hrtimer: Remove the include from

2017-02-06 Thread Ingo Molnar
In our quest to simplify 's header dependencies, remove the inclusion from - which does not appear to be necessary, as hrtimer.h does not use waitqueues. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar

[PATCH 77/89] sched/headers: Move the get_task_struct()/put_task_struct() and related APIs from to

2017-02-06 Thread Ingo Molnar
Also update usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- drivers/dma/dmatest.c | 1 + drivers/gpu/drm/etnaviv/etnaviv_gem.c | 1 + drivers/infiniband

[PATCH 81/89] sched/headers: Remove spurious inclusion dependencies

2017-02-06 Thread Ingo Molnar
In the next couple of patches we are going to remove various headers from sched.h and other headers that sched.h includes. To make those patches build cleanly prepare the scene by adding dependencies to various files that learned to rely on those to-be-removed dependencies. These changes all make

Re: tip: demise of tsk_cpus_allowed() and tsk_nr_cpus_allowed()

2017-02-06 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 01:29:28PM +0100, Ingo Molnar wrote: > > +/* Future-safe accessor for struct task_struct's cpus_allowed. */ > > +static inline const struct cpumask *tsk_cpus_allowed(struct task_struct *p) > > +{ > > + if (__migrate_disabled(p)) > > + return cpumask_of(ta

[PATCH 83/89] timers: Remove the include from

2017-02-06 Thread Ingo Molnar
So we want to simplify 's header dependencies, but one roadblock of that is 's inclusion of sysctl.h, which brings in other, problematic headers. Note that timer.h's inclusion of sysctl.h can be avoided if we pre-declare ctl_table - so do that. Also update usage sites that depended on the inclusi

[PATCH 84/89] x86/apic: Remove the header inclusion from

2017-02-06 Thread Ingo Molnar
We want to simplify 's header dependencies, but one roadblock to that is 's inclusion of pm.h, which brings in other, problematic headers. Remove it, as it appears to be entirely spurious, apic.h does not actually make use of any PM facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas G

[PATCH 82/89] rcu: Separate the rcu synchronization types and APIs into

2017-02-06 Thread Ingo Molnar
So rcupdate.h is a pretty complex header, in particular it includes which includes - creating a dependency that includes in , which prevents the isolation of from the derived header. Solve part of the problem by decoupling rcupdate.h from completions: this can be done by separating out the rc

Re: [PATCH v2 5/7] gpio: mockup: add a dummy irqchip

2017-02-06 Thread Bartosz Golaszewski
2017-02-06 14:29 GMT+01:00 Linus Walleij : > On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski > wrote: > >> Setup a dummy irqchip that will allow us to inject line events for >> testing purposes. >> >> Signed-off-by: Bartosz Golaszewski > > This is obviously exactly how we should do this. > >

[PATCH 76/89] sched/headers, mm: Move 'struct tlbflush_unmap_batch' from to

2017-02-06 Thread Ingo Molnar
Unclutter some more. Also move the CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH condition inside the structure body definition, to remove a pair of #ifdefs from sched.h. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: I

[PATCH 78/89] sched/core: Remove the tsk_cpus_allowed() wrapper

2017-02-06 Thread Ingo Molnar
So the original intention of tsk_cpus_allowed() was to 'future-proof' the field - but it's pretty ineffectual at that, because half of the code uses ->cpus_allowed directly ... Also, the wrapper makes the code longer than the original expression! So just get rid of it. This also shrinks a bit.

[PATCH 54/89] sched/headers: Make the include/linux/sched/*.h headers build standalone

2017-02-06 Thread Ingo Molnar
Make each header self-sufficient, so that it can be built successfully both in an allnoconfig and allyesconfig kernel. Also standardize the naming of their header guards. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-b

[PATCH 75/89] sched/headers, timekeeping: Consolidate the timer tick function prototypes

2017-02-06 Thread Ingo Molnar
Move the update_process_times() and xtime_update() prototypes to . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 1 - include/linux/time.h| 2 -- include/linux

[PATCH 66/89] sched/headers: Use instead of in

2017-02-06 Thread Ingo Molnar
We don't actually need the full rculist.h header anymore, include the smaller rcupdate.h header instead. Update code that relied on the implicit header inclusion. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo

[PATCH 25/89] sched/headers, cgroups: Remove the threadgroup_change_*() wrappery

2017-02-06 Thread Ingo Molnar
threadgroup_change_begin()/end() is a pointless wrapper around cgroup_threadgroup_change_begin()/end(), minus a might_sleep() in the !CONFIG_CGROUPS=y case. Remove the wrappery, move the might_sleep() (the down_read() already has a might_sleep() check). This debloats a bit and simplifies this AP

[PATCH 18/89] sched/core: Move task->mm handling methods to

2017-02-06 Thread Ingo Molnar
Move the following task->mm helper APIs into a new header file, , to further reduce the size and complexity of : # mm_alloc(): arch/arm/mach-rpc/ecard.c fs/exec.c include/linux/sched/mm.h kernel/fork.c # __mmdrop(): arch/arc/include/asm/mmu_context.h include/linux/sched/mm.h ker

[PATCH 50/89] sched/core: Convert ___assert_task_state() link time assert to BUILD_BUG_ON()

2017-02-06 Thread Ingo Molnar
The length of TASK_STATE_TO_CHAR_STR was still checked using the old link-time manual error method - convert it to BUILD_BUG_ON(). This has a couple of advantages: - it's more obvious what's going on - it reduces the size and complexity of - BUILD_BUG_ON() will fail during compilation, with

[PATCH 23/89] sched/headers, softlockup: Move softlockup detector watchdog methods to

2017-02-06 Thread Ingo Molnar
These methods don't belong into , they are neither directly related to task_struct or are scheduler functionality. Put them next to the other watchdog methods in . ( Arguably that header's name is a misnomer, and this patch makes it more so - but it should be renamed in another patch. ) Cc: Pe

[PATCH 33/89] sched/headers: Move the JOBCTL_ defines and methods from to

2017-02-06 Thread Ingo Molnar
Only a small fraction of sched.h users actually utilizes these defines, and they are not scheduler functionality in any case, so move them into their separate header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: In

[PATCH 31/89] sched/headers: Move in_vfork() from to

2017-02-06 Thread Ingo Molnar
The in_vfork() function deals with task->mm, so it better belongs into . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h| 26 -- include/linux/sched/

[PATCH 02/89] delayacct: Include

2017-02-06 Thread Ingo Molnar
include/linux/delayacct.h relies on 'struct taskstats' but does not include the header that defines it. This worked so far because files that included also happened to include other headers that included uapi/linux/taskstats.h. Fix it. Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner

[PATCH 47/89] sched/headers: Move debugging functions from to

2017-02-06 Thread Ingo Molnar
Collect the various scheduler and task state debugging APIs scattered around into the new header. In particular the show_regs() and show_stack() prototype affects many files, update them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kern

[PATCH 43/89] sched/headers: Remove include from

2017-02-06 Thread Ingo Molnar
is still needed - but we at least don't have MM headers in sched.h anymore, except . Fix dependencies in files that depended on this include. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include

[PATCH 51/89] sched/headers: Split hotplug CPU interfaces out of into

2017-02-06 Thread Ingo Molnar
Split the CPU hotplug scheduler APIs out of the common header and update the usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/arm/kernel/smp.c| 1 + arch/arm

[PATCH 08/89] sched/idle: Move wake_up_if_idle prototype to

2017-02-06 Thread Ingo Molnar
No need to clutter with this rarely used prototype. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 2 -- include/linux/sched/idle.h | 2 ++ kernel/smp.c |

Re: [PATCH v2 5/7] gpio: mockup: add a dummy irqchip

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > Setup a dummy irqchip that will allow us to inject line events for > testing purposes. > > Signed-off-by: Bartosz Golaszewski This is obviously exactly how we should do this. However since it needs the devm* helpers from the irq subs

Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines

2017-02-06 Thread Steven Rostedt
On Mon, 6 Feb 2017 13:16:52 +0100 Petr Mladek wrote: > > > just in case, the patch (which I prefer to be ignored) > > > > let's keep printk_safe_flush_line(). > > I do not have strong opinion but I would slightly prefer > to keep the helper function. The use of printk_deferred() > is a bi

Re: [PATCH 2/2] drm/panel: Add driver for sitronix ST7789V panel

2017-02-06 Thread Thierry Reding
On Fri, Feb 03, 2017 at 10:59:06AM +0100, Maxime Ripard wrote: > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/panel/Kconfig | 4 +- > drivers/gpu/drm/panel/Makefile | 1 +- > drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 435 ++- > 3

Re: [PATCH v2 4/7] irqdesc: add memory managed version of irq_alloc_descs()

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > Add a devres flavor of __devm_irq_alloc_descs() and corresponding > helper macros. > > Signed-off-by: Bartosz Golaszewski Oh that was interesting. I will leave the IRQ subsystems specific review to Thomas and Marc, but I think you nee

Re: [PATCH 2/2 RESEND] mm: vmpressure: fix sending wrong events on underflow

2017-02-06 Thread Michal Hocko
On Mon 06-02-17 18:39:03, vinayak menon wrote: > On Mon, Feb 6, 2017 at 6:10 PM, Michal Hocko wrote: > > On Mon 06-02-17 17:54:10, Vinayak Menon wrote: > > [...] > >> diff --git a/mm/vmpressure.c b/mm/vmpressure.c > >> index 149fdf6..3281b34 100644 > >> --- a/mm/vmpressure.c > >> +++ b/mm/vmpressu

Re: [PATCH] sched/fair: Fix the nohz.next_balance update mess

2017-02-06 Thread Vincent Guittot
On 6 February 2017 at 09:33, Wanpeng Li wrote: > Hi Vincent, > 2017-02-06 16:07 GMT+08:00 Vincent Guittot : >> Hi Wanpeng >> >> On 5 February 2017 at 10:57, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> The commit: >>> c5afb6a87f2 ("sched/fair: Fix nohz.next_balance update") >>> >>> intends t

Re: [RFC PATCH] perf/stat: Add --disable-hwdt

2017-02-06 Thread Borislav Petkov
On Mon, Feb 06, 2017 at 02:18:32PM +0100, Robert Richter wrote: > Isn't there the danger the previous watchdog state is never restored > if for some reason perf got killed? So maybe have some other task > running that restores it once perf is gone. Currently, I'm restoring it in the atexit() sigha

<    3   4   5   6   7   8   9   10   11   >