[PATCH v2 03/10] Document: DT: Add bindings for mediatek MT6797 SoC Platform

2017-02-06 Thread Mars Cheng
This adds dt-binding documentation for Mediatek MT6797. Only include very basic items, gic, uart timer and cpu. Signed-off-by: Mars Cheng --- Documentation/devicetree/bindings/arm/mediatek.txt |4 .../interrupt-controller/mediatek,sysirq.txt |1 + .../devicetree/bindings/seria

[PATCH v2 10/10] arm64: dts: mediatek: add clk nodes for MT6797

2017-02-06 Thread Mars Cheng
This adds clk nodes for MT6797 Signed-off-by: Mars Cheng Signed-off-by: Kevin-CW Chen --- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 71 -- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dt

[PATCH v2 01/10] Document: DT: mediatek: multiple base address support for sysirq

2017-02-06 Thread Mars Cheng
This describes how to specify multiple base addresses for sysirq in mediatek platforms. Signed-off-by: Mars Cheng --- .../interrupt-controller/mediatek,sysirq.txt | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/interrup

[PATCH v2 04/10] arm64: dts: mediatek: add mt6797 support

2017-02-06 Thread Mars Cheng
This adds basic chip support for MT6797 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 36 ++ arch/arm64/boot/dts/mediatek/mt6797.dtsi| 187 +++ 3 files changed, 224 inserti

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

2017-02-06 Thread Mike Galbraith
On Mon, 2017-02-06 at 11:31 +0100, Ingo Molnar wrote: > * Mike Galbraith wrote: > > > Hi Ingo, > > > > Doing my ~daily tip merge of -rt, I couldn't help noticing $subject, as > > they grow more functionality in -rt, which is allegedly slowly but > > surely headed toward merge. I don't suppose t

Re: [RFC/PATCH 2/3] security: Add the Timgad module

2017-02-06 Thread Djalal Harouni
Hi James, On Fri, Feb 3, 2017 at 2:02 AM, James Morris wrote: > On Thu, 2 Feb 2017, Djalal Harouni wrote: > >> *) The per-process prctl() settings are: >> prctl(PR_TIMGAD_OPTS, PR_TIGMAD_SET_MOD_RESTRICT, value, 0, 0) >> >> Where value means: >> >> 0 - Classic module load and unload permi

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

2017-02-06 Thread Ingo Molnar
* Borislav Petkov wrote: > Hi guys, > > so I've been tracing recently on an AMD F15h which has those funky counter > constraints and am seeing this: > > # ./perf stat sleep 1 > > Performance counter stats for 'sleep 1': > > 0.749208 task-clock (msec) #0.001 CPUs u

[PATCH 1/2 v4] mm: vmscan: do not pass reclaimed slab to vmpressure

2017-02-06 Thread Vinayak Menon
During global reclaim, the nr_reclaimed passed to vmpressure includes the pages reclaimed from slab. But the corresponding scanned slab pages is not passed. This can cause total reclaimed pages to be greater than scanned, causing an unsigned underflow in vmpressure resulting in a critical event b

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

2017-02-06 Thread Vinayak Menon
At the end of a window period, if the reclaimed pages is greater than scanned, an unsigned underflow can result in a huge pressure value and thus a critical event. Reclaimed pages is found to go higher than scanned because of the addition of reclaimed slab pages to reclaimed in shrink_node without

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

2017-02-06 Thread Thierry Reding
On Mon, Feb 06, 2017 at 01:13:19PM +0100, Noralf Trønnes wrote: > > Den 06.02.2017 11.50, skrev Maxime Ripard: > > Hi Noralf, > > > > On Fri, Feb 03, 2017 at 07:53:58PM +0100, Noralf Trønnes wrote: > > > Den 03.02.2017 10.59, skrev Maxime Ripard: > > > > Signed-off-by: Maxime Ripard > > > > ---

[PATCH v3] staging: lustre: align else if statement to coding standard

2017-02-06 Thread Maksymilian Piechota
- move logical continuations at the end of line - move else if statement to a single line - Replace spaces with tabstop. Signed-off-by: Maksymilian Piechota --- drivers/staging/wlan-ng/prism2mgmt.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/

Re: [PATCH 0/5] PCI: dwc: miscellaneous cleanups and fixes

2017-02-06 Thread Kishon Vijay Abraham I
On Saturday 04 February 2017 01:36 AM, Bjorn Helgaas wrote: > On Wed, Jan 11, 2017 at 05:36:50PM +0530, Kishon Vijay Abraham I wrote: >> This series includes miscellaneous cleanups and fixes in dra7xx >> pci driver and it also adds COMPILE_TEST to all designware >> based drivers (except dra7xx dr

Re: [PATCH v2 04/10] arm64: dts: mediatek: add mt6797 support

2017-02-06 Thread Marc Zyngier
On 06/02/17 12:15, Mars Cheng wrote: > This adds basic chip support for MT6797 SoC. > > Signed-off-by: Mars Cheng > --- > arch/arm64/boot/dts/mediatek/Makefile |1 + > arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 36 ++ > arch/arm64/boot/dts/mediatek/mt6797.dtsi| 187 > +++

[PATCH] ASoC: fix ES8328_I2C/SPI dependencies

2017-02-06 Thread Arnd Bergmann
The two front-ends to the codec can now be selected individually, but fail to build when the bus support is missing: sound/built-in.o: In function `es8328_spi_probe': es8328-spi.c:(.text+0x125854): undefined reference to `__devm_regmap_init_spi' sound/built-in.o: In function `es8328_spi_driver_ini

Re: [PATCH v5] PCI: add a new directory for designware core

2017-02-06 Thread Kishon Vijay Abraham I
On Saturday 04 February 2017 12:49 AM, Bjorn Helgaas wrote: > On Fri, Jan 06, 2017 at 06:22:48PM +0530, Kishon Vijay Abraham I wrote: >> Group all the PCI drivers that use designware core in dwc directory. >> dwc IP is capable of operating in both host mode and device mode and >> keeping it insid

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

2017-02-06 Thread Ingo Molnar
* Mike Galbraith wrote: > On Mon, 2017-02-06 at 11:31 +0100, Ingo Molnar wrote: > > * Mike Galbraith wrote: > > > > > Hi Ingo, > > > > > > Doing my ~daily tip merge of -rt, I couldn't help noticing $subject, as > > > they grow more functionality in -rt, which is allegedly slowly but > > > sur

[PATCH 1/2] crypto: atmel - refine Kconfig dependencies

2017-02-06 Thread Arnd Bergmann
With the new authenc support, we get a harmless Kconfig warning: warning: (CRYPTO_DEV_ATMEL_AUTHENC) selects CRYPTO_DEV_ATMEL_SHA which has unmet direct dependencies (CRYPTO && CRYPTO_HW && ARCH_AT91) The problem is that each of the options has slightly different dependencies, although they all

[PATCH 2/2] crypto: atmel - fix 64-bit build warnings

2017-02-06 Thread Arnd Bergmann
When we enable COMPILE_TEST building for the Atmel sha and tdes implementations, we run into a couple of warnings about incorrect format strings, e.g. In file included from include/linux/platform_device.h:14:0, from drivers/crypto/atmel-sha.c:24: drivers/crypto/atmel-sha.c: In fun

Re: [PATCH v3 3/7] drm/tinydrm: Add MIPI DBI support

2017-02-06 Thread Andrzej Hajda
On 06.02.2017 12:53, Thierry Reding wrote: > On Mon, Feb 06, 2017 at 01:30:09PM +0200, Jani Nikula wrote: >> On Mon, 06 Feb 2017, Thierry Reding wrote: >>> On Tue, Jan 31, 2017 at 05:03:15PM +0100, Noralf Trønnes wrote: Add support for MIPI DBI compatible controllers. Interface type C op

Re: [PATCH 1/6] staging: Import the BCM2835 MMAL-based V4L2 camera driver.

2017-02-06 Thread Mauro Carvalho Chehab
Em Sun, 5 Feb 2017 22:15:21 + Dave Stevenson escreveu: > Hi Mauro. > > I'm going to stick my head above the parapet as one of the original > authors back when I worked at Broadcom. > As it happens I started working at Raspberry Pi last Monday, so that > puts me in a place where I can work

Re: [PATCH v2 04/10] arm64: dts: mediatek: add mt6797 support

2017-02-06 Thread Mars Cheng
On Mon, 2017-02-06 at 12:28 +, Marc Zyngier wrote: > On 06/02/17 12:15, Mars Cheng wrote: > > This adds basic chip support for MT6797 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile |1 + > > arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 3

[PATCH] MIPS: Unify perf counter register definitions

2017-02-06 Thread James Hogan
Unify definitions for MIPS performance counter register fields in mipsregs.h rather than duplicating them in perf_events and oprofile. This will allow future patches to use them to expose performance counters to KVM guests. Signed-off-by: James Hogan Cc: Ralf Baechle Cc: Peter Zijlstra Cc: Ingo

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

2017-02-06 Thread Michal Hocko
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/vmpressure.c > @@ -112,8 +112,10 @@ static enum vmpressure_levels > vmpressure_calc_level(unsigned long scanned, >

Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook

2017-02-06 Thread Djalal Harouni
Hi Tetsuo, On Mon, Feb 6, 2017 at 11:49 AM, Tetsuo Handa wrote: > Djalal Harouni wrote: >> To achieve the above we add the security_task_copy() hook that allows us >> to clone the Timgad context of parent into child task_struct. >> >> The security hook can also be used by new LSMs after the child

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

2017-02-06 Thread Borislav Petkov
On Mon, Feb 06, 2017 at 01:22:31PM +0100, Ingo Molnar wrote: > Looks sensible, and I'd in fact make this the new default behavior (if root > runs > perf stat) - i.e. add a flag to re-enable it, for the rare case where we want > to > debug a hard deadlock while running perf stat ... I'd probabl

Re: net/kcm: WARNING in kcm_write_msgs

2017-02-06 Thread Dmitry Vyukov
[resending as plain text] Hello, The following program triggers WARNING in kcm_write_msgs: WARNING: CPU: 3 PID: 2936 at net/kcm/kcmsock.c:627 kcm_write_msgs+0x12e3/0x1b90 net/kcm/kcmsock.c:627 CPU: 3 PID: 2936 Comm: a.out Not tainted 4.10.0-rc6+ #209 Hardware name: QEMU Standard PC (i440FX + PII

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

2017-02-06 Thread Ingo Molnar
* Borislav Petkov wrote: > On Mon, Feb 06, 2017 at 01:22:31PM +0100, Ingo Molnar wrote: > > Looks sensible, and I'd in fact make this the new default behavior (if root > > runs > > perf stat) - i.e. add a flag to re-enable it, for the rare case where we > > want to > > debug a hard deadlock

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-02-06 Thread Ulf Hansson
On 5 February 2017 at 10:34, Elaine Zhang wrote: > > > On 01/26/2017 05:30 AM, Ulf Hansson wrote: >> >> On 22 January 2017 at 04:34, Elaine Zhang >> wrote: >>> >>> >>> >>> On 01/20/2017 09:16 PM, Ulf Hansson wrote: On 20 January 2017 at 03:21, Elaine Zhang wrote: > >

Re: [PATCH] fs: ext3/ext4: increase the protection of nlink dec and inode destroy

2017-02-06 Thread zhangyi (F)
please ignore this, sorry. on 2017/2/6 20:35, yi zhang said: > From: zhangyi > > Because of the disk and hardware issue, the ext3/4 filesystem have > many errors, the inode->i_nlink of ext3/4 becomes zero abnormally > but the dentry is still positive, it will cause memory corruption > after the

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

2017-02-06 Thread Mike Galbraith
On Mon, 2017-02-06 at 13:29 +0100, Ingo Molnar wrote: > * Mike Galbraith wrote: > > > On Mon, 2017-02-06 at 11:31 +0100, Ingo Molnar wrote: > > > * Mike Galbraith wrote: > > > > > > > Hi Ingo, > > > > > > > > Doing my ~daily tip merge of -rt, I couldn't help noticing $subject, as > > > > they

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

2017-02-06 Thread Borislav Petkov
On Mon, Feb 06, 2017 at 01:44:48PM +0100, Ingo Molnar wrote: > Yeah, if for some whatever reason perf locks up while running perf stat as > root, > so I'd keep the option, as a general principle. :-/ --dont-disable-hwdt it is. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid

Re: [PATCH v3] staging: lustre: align else if statement to coding standard

2017-02-06 Thread Greg Kroah-Hartman
On Mon, Feb 06, 2017 at 07:26:56AM -0500, Maksymilian Piechota wrote: > - move logical continuations at the end of line > - move else if statement to a single line > - Replace spaces with tabstop. That's a lot of different things, happening all at once. Please break this up into multiple patches,

Re: [PATCHSET for-4.11] cgroup: implement cgroup v2 thread mode

2017-02-06 Thread Peter Zijlstra
On Fri, Feb 03, 2017 at 03:59:55PM -0500, Tejun Heo wrote: > Hello, Peter. > > On Fri, Feb 03, 2017 at 09:20:48PM +0100, Peter Zijlstra wrote: > > So my proposal was to do the inverse of what you propose here. Instead > > of marking special 'thread' subtrees, explicitly mark resource domains > > i

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

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 06, 2017 at 04:20:34PM +0900, Namhyung Kim escreveu: > Hello, > > This patchset adds 'delta-abs' compute method to -c/--compute option. > The 'delta-abs' is same as 'delta' but shows entries with bigger > absolute delta first instead of sorting numerically. This is only > useful toget

[PATCH] fs: ext3/ext4: increase the protection of nlink dec and inode destroy

2017-02-06 Thread yi zhang
From: zhangyi Because of the disk and hardware issue, the ext3/4 filesystem have many errors, the inode->i_nlink of ext3/4 becomes zero abnormally but the dentry is still positive, it will cause memory corruption after the following process: 1) Due to the inode->i_nlink is 0, this inode will be

v4.9, 4.4-final: 28 bioset threads on small notebook, 36 threads on cellphone

2017-02-06 Thread Pavel Machek
On Sat 2016-02-20 21:04:32, Pavel Machek wrote: > Hi! > > > > > > > I know it is normal to spawn 8 threads for every single function, > > > > > ... > > > > > > but 28 threads? > > > > > > > > > > > > root 974 0.0 0.0 0 0 ?S< Dec08 0:00 > > > > > > [bioset] > > > > >

Re: [PATCH 1/2 v4] mm: vmscan: do not pass reclaimed slab to vmpressure

2017-02-06 Thread Michal Hocko
On Mon 06-02-17 17:54:09, Vinayak Menon wrote: > During global reclaim, the nr_reclaimed passed to vmpressure includes the > pages reclaimed from slab. But the corresponding scanned slab pages is > not passed. This can cause total reclaimed pages to be greater than > scanned, causing an unsigned

Re: crypto: atmel - Fix authenc compile test warnings

2017-02-06 Thread kbuild test robot
Hi Herbert, [auto build test WARNING on cryptodev/master] [also build test WARNING on v4.10-rc7 next-20170206] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-atmel-Fix-authenc

Re: [PATCH v3] staging: lustre: align else if statement to coding standard

2017-02-06 Thread Maksymilian Piechota
On Mon, Feb 06, 2017 at 01:50:02PM +0100, Greg Kroah-Hartman wrote: > On Mon, Feb 06, 2017 at 07:26:56AM -0500, Maksymilian Piechota wrote: > > - move logical continuations at the end of line > > - move else if statement to a single line > > - Replace spaces with tabstop. > > That's a lot of diffe

[PATCH] Signed-off-by: Ran Algawi

2017-02-06 Thread Ran Algawi
linux-arm-ker...@lists.infradead.org, linux-kernel@vger.kernel.org Bcc: Subject: [PATCH] Signed-off-by: Ran Algawi Reply-To: Signed-off-by: Ran Algawi Description: fixed errors and warnings in file at: /drivers/staging/bcm2835-audio/bcm mostly, i have changed syntax, like using null isntead of

Re: [PATCH 1/6] staging: Import the BCM2835 MMAL-based V4L2 camera driver.

2017-02-06 Thread Hans Verkuil
On 02/06/2017 12:37 PM, Dave Stevenson wrote: > Hi Hans. > > On 06/02/17 09:08, Hans Verkuil wrote: >> Hi Eric, >> >> Great to see this driver appearing for upstream merging! >> >> See below for my review comments, focusing mostly on V4L2 specifics. >> >> On 01/27/2017 10:54 PM, Eric Anholt wrote:

Re: [PATCH] irqchip/gicv3: Fix GICR_WAKE & GICD_IGROUPR accesses from non-secure

2017-02-06 Thread Shanker Donthineni
Hi Marc, On 02/06/2017 03:33 AM, Marc Zyngier wrote: Hi Shanker, On 06/02/17 02:17, Shanker Donthineni wrote: On systems where it supports two security states, both the register GICR_WAKE and GICD_IGROUPR accesses are RAZ/WI from non-secure. The function gic_enable_redist() to wake/sleep redi

Re: [PATCH 1/6] staging: Import the BCM2835 MMAL-based V4L2 camera driver.

2017-02-06 Thread Hans Verkuil
On 01/27/2017 10:54 PM, Eric Anholt wrote: > - Supports raw YUV capture, preview, JPEG and H264. > - Uses videobuf2 for data transfer, using dma_buf. > - Uses 3.6.10 timestamping > - Camera power based on use > - Uses immutable input mode on video encoder > > This code comes from the Raspberry Pi

Re: [PATCH v2 1/3] perf tools: Use offset instead of dwarfnum in register table.

2017-02-06 Thread Will Deacon
On Sat, Feb 04, 2017 at 05:03:20PM +0800, Hekuang wrote: > hi > > 在 2017/2/3 21:00, Will Deacon 写道: > >On Fri, Feb 03, 2017 at 11:06:05AM +, He Kuang wrote: > >>This patch changes the 'dwarfnum' to 'offset' in register table, so > >>the index of array becomes the dwarfnum (the index of each re

Re: [PATCH v3 03/14] mm: use pmd lock instead of racy checks in zap_pmd_range()

2017-02-06 Thread Zi Yan
On 6 Feb 2017, at 1:43, Naoya Horiguchi wrote: > On Sun, Feb 05, 2017 at 11:12:41AM -0500, Zi Yan wrote: >> From: Zi Yan >> >> Originally, zap_pmd_range() checks pmd value without taking pmd lock. >> This can cause pmd_protnone entry not being freed. >> >> Because there are two steps in changing

Re: [PATCH] Signed-off-by: Ran Algawi

2017-02-06 Thread Greg Kroah-Hartman
On Mon, Feb 06, 2017 at 02:56:23PM +0200, Ran Algawi wrote: > linux-arm-ker...@lists.infradead.org, linux-kernel@vger.kernel.org > Bcc: > Subject: [PATCH] Signed-off-by: Ran Algawi > Reply-To: > Signed-off-by: Ran Algawi > Description: fixed errors and warnings in file at: > /drivers/staging/bc

Re: [PATCH v3] staging: lustre: align else if statement to coding standard

2017-02-06 Thread Greg Kroah-Hartman
On Mon, Feb 06, 2017 at 07:56:39AM -0500, Maksymilian Piechota wrote: > On Mon, Feb 06, 2017 at 01:50:02PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Feb 06, 2017 at 07:26:56AM -0500, Maksymilian Piechota wrote: > > > - move logical continuations at the end of line > > > - move else if statement

Re: [PATCH] netfilter: xt_hashlimit: Fix integer divide round to zero.

2017-02-06 Thread Pablo Neira Ayuso
On Sat, Feb 04, 2017 at 11:47:31PM +0100, Alban Browaeys wrote: > Diving the divider by the multiplier before applying to the input. > When this would "divide by zero", divide the multiplier by the divider > first then multiply the input by this value. > > Currently user2creds outputs zero when in

Re: [PATCH] bus: arm-ccn: Fix module autoload

2017-02-06 Thread Pawel Moll
On Fri, 2017-02-03 at 18:31 -0300, Javier Martinez Canillas wrote: > On 01/02/2017 10:02 AM, Javier Martinez Canillas wrote: > > > > If the driver is built as a module, autoload won't work because the module > > alias information is not filled. So user-space can't match the registered > > device wi

Re: [PATCH v5 net-next] net: mvneta: implement .set_wol and .get_wol

2017-02-06 Thread Andrew Lunn
On Mon, Feb 06, 2017 at 02:58:13PM +0800, Jisheng Zhang wrote: > From: Jingju Hou > > The mvneta itself does not support WOL, but the PHY might. > So pass the calls to the PHY > > Signed-off-by: Jingju Hou > Signed-off-by: Jisheng Zhang Reviewed-by: Andrew Lunn Andrew

Re: [PATCH] bus: arm-ccn: Fix module autoload

2017-02-06 Thread Pawel Moll
On Fri, 2017-02-03 at 18:31 -0300, Javier Martinez Canillas wrote: > On 01/02/2017 10:02 AM, Javier Martinez Canillas wrote: > > > > If the driver is built as a module, autoload won't work because the module > > alias information is not filled. So user-space can't match the registered > > device w

Re: [PATCH 2/5] kref: Implement using refcount_t

2017-02-06 Thread Greg KH
On Fri, Feb 03, 2017 at 02:26:00PM +0100, Peter Zijlstra wrote: > Use the refcount_t 'atomic' type to implement kref, this makes kref > more robust by bringing saturation semantics. > > Signed-off-by: Peter Zijlstra (Intel) Acked-by: Greg Kroah-Hartman

Re: [PATCH 1/2] dt-bindings: display: panel: Add bindings for the Sitronix ST7789V panel

2017-02-06 Thread Thierry Reding
On Fri, Feb 03, 2017 at 10:59:05AM +0100, Maxime Ripard wrote: > The Sitronix ST7789V is an LCD panel controller, controlled over SPI, that > can drive 18-bits 240x320 LCD displays. > > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/display/panel/sitronix,st7789v.txt | 36

Re: [PATCH 1/1] iommu: to avoid an unnecessary assignment

2017-02-06 Thread Joerg Roedel
On Fri, Feb 03, 2017 at 05:35:02PM +0800, Zhen Lei wrote: > Move the assignment statement into if branch above, where it only > needs to be. > > Signed-off-by: Zhen Lei > --- > drivers/iommu/iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied, thanks.

Re: [PATCH] iommu: fix static checker warning in iommu_insert_device_resv_regions

2017-02-06 Thread Joerg Roedel
On Mon, Feb 06, 2017 at 10:11:38AM +0100, Eric Auger wrote: > In case the device reserved region list is void, the returned value > of iommu_insert_device_resv_regions is uninitialized. Let's return 0 > in that case. > > This fixes commit 6c65fb318e8b ("iommu: iommu_get_group_resv_regions"). > >

[PATCH] platform/x86: intel_pmc_ipc: read s0ix residency API

2017-02-06 Thread Shanth Murthy
This patch adds a new API to indicate S0ix residency in usec. It utilizes the PMC Global Control Registers (GCR) to read deep and shallow S0ix residency. PMC MMIO resources: o Lower 4kB: IPC1 (PMC inter-processor communication) interface o Upper 4kB: GCR (Global Control Registers)

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

2017-02-06 Thread vinayak menon
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/vmpressure.c >> @@ -112,8 +112,10 @@ static enum vmpressure_levels >

Re: [RFC/PATCH 1/3] security: add the security_task_copy() hook

2017-02-06 Thread Djalal Harouni
On Mon, Feb 6, 2017 at 11:49 AM, Tetsuo Handa wrote: > Djalal Harouni wrote: >> To achieve the above we add the security_task_copy() hook that allows us >> to clone the Timgad context of parent into child task_struct. >> >> The security hook can also be used by new LSMs after the child task has >>

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

2017-02-06 Thread Robert Richter
On 06.02.17 13:49:37, Borislav Petkov wrote: > On Mon, Feb 06, 2017 at 01:44:48PM +0100, Ingo Molnar wrote: > > Yeah, if for some whatever reason perf locks up while running perf stat as > > root, > > so I'd keep the option, as a general principle. :-/ > > --dont-disable-hwdt it is. Isn't there

Re: [PATCH 1/4] perf tools: pass PYTHON config to feature detection

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:01PM -0800, David Carrillo-Cisneros escreveu: > Python's CC and link Makefile variables were not passed to feature > detection, causing feature detection to use system's Python rather than > PYTHON_CONFIG's one. This created a mismatch between the detected Python > sup

Re: [PATCH v2 1/7] gpio: mockup: readability tweaks

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > The following patch tries to improve the readability of the mockup > driver. > > The driver is called gpio-mockup, so add the same prefix to all > functions and structures. > > Add some newlines and use a temporary pointer in gpio_mocku

Re: [PATCH 2/2] perf tools: Support end symbols with no size for filters

2017-02-06 Thread Adrian Hunter
On 04/02/17 00:18, Andi Kleen wrote: > From: Andi Kleen > > Currently a filter like > --filter "filter _text / _end" > doesn't work because _end doesn't have a size. The > filter resolution always wants to use the end of the function > as end. > > Allow this case by assuming the filter just spaw

Re: [PATCH v2 2/7] gpio: mockup: code shrink

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > Moving a couple of lines around allows us to shrink the code a bit > while keeping the same functionality. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

Re: [PATCH v2 3/7] gpio: mockup: implement naming the lines

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > In order to allow testing line lookup by name from user space, add > a new boolean parameter that indicates whether we want the lines to > be named. The name is created by concatenating the chip name and the > line offset value. > > Sig

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

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: [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 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] 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: [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 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

[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 |

[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 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 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 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 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 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 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 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 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 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 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 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 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 |

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