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

[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] 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"). > >

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

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

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

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

[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

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

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

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

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

[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

[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

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

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

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

[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

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

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

[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

[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 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 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 07/10] soc: mediatek: refine scysys for mediatek platforms

2017-02-06 Thread Mars Cheng
This adds 2 refinements: avoid fixed spm power statue and add vdec item Signed-off-by: Mars Cheng Signed-off-by: Kevin-CW Chen --- drivers/soc/mediatek/mtk-scpsys.c | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/drivers/soc/mediatek/mt

[PATCH v2 05/10] dt-bindings: arm: mediatek: document clk bindings for MT6797

2017-02-06 Thread Mars Cheng
From: Kevin-CW Chen This patch adds the binding documentation for apmixedsys, imgsys, infracfg, mmsys, topckgen, vdecsys and vencsys for MT6797. Signed-off-by: Kevin-CW Chen Signed-off-by: Mars Cheng --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt |1 + .../bindings/arm/mediatek/me

[PATCH v2 02/10] irqchip: mtk-sysirq: extend intpol base to arbitrary number

2017-02-06 Thread Mars Cheng
Originally driver only supports one base. However, MT6797 has more than one bases to configure interrupt polarity. To support possible design change, here comes a solution to use arbitrary number of bases. Signed-off-by: Mars Cheng --- drivers/irqchip/irq-mtk-sysirq.c | 71

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

2017-02-06 Thread Petr Mladek
On Mon 2017-02-06 11:08:20, Sergey Senozhatsky wrote: > On (02/06/17 10:48), Sergey Senozhatsky wrote: > [..] > > from many places: > > > > 4x printk_safe_flush_buffer() > > 1x __printk_safe_flush() > > > > > > replacing printk_safe_flush_line() with printk_deferred() produces things > >

[PATCH v2 08/10] soc: mediatek: add MT6797 power dt-bindings

2017-02-06 Thread Mars Cheng
This adds power dt-bindings for MT6797 Signed-off-by: Mars Cheng Signed-off-by: Kevin-CW Chen --- .../devicetree/bindings/soc/mediatek/scpsys.txt|6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documenta

Re: [PATCH] iommu: mtk: remove bogus 'select' statements

2017-02-06 Thread Joerg Roedel
On Thu, Feb 02, 2017 at 03:29:03PM +0100, Arnd Bergmann wrote: > The mediatek IOMMU driver enables some drivers that it does not directly > rely on, and that causes a warning for build testing: > > warning: (MTK_IOMMU_V1) selects COMMON_CLK_MT2701_VDECSYS which has unmet > direct dependencies (CO

[PATCH v2 09/10] soc: mediatek: add MT6797 scysys support

2017-02-06 Thread Mars Cheng
This adds scysys support for MT6797 Signed-off-by: Mars Cheng Signed-off-by: Kevin-CW Chen --- drivers/soc/mediatek/mtk-scpsys.c| 114 ++ include/dt-bindings/power/mt6797-power.h | 30 2 files changed, 144 insertions(+) create mode 100644 include

[PATCH v2 00/10] Add Basic SoC support for MT6797

2017-02-06 Thread Mars Cheng
This patch set adds basic SoC support for mediatek's first 10-core chip, X20, also known as MT6797. - based on 4.10-rc2 - support multiple base address for sysirq - support common clk Changes since v1: - add multiple base addresses support, v1 only allow 2 bases - clean up clk driver Kevin-CW C

[PATCH v2 06/10] clk: mediatek: add clk support for MT6797

2017-02-06 Thread Mars Cheng
From: Kevin-CW Chen Add MT6797 clock support, include topckgen, apmixedsys, infracfg and subsystem clocks Signed-off-by: Kevin-CW Chen Signed-off-by: Mars Cheng --- drivers/clk/mediatek/Kconfig | 33 ++ drivers/clk/mediatek/Makefile |5 + drivers/clk/mediatek/clk-mt67

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

2017-02-06 Thread Borislav Petkov
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 utilized 1 conte

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

2017-02-06 Thread Noralf Trønnes
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 --- drivers/gpu/drm/panel/Kconfig | 4 +- drivers/gpu/drm/panel/Makefile

Re: [PATCH v2 0/7] gpio: mockup: extensions for testing purposes

2017-02-06 Thread Bartosz Golaszewski
2017-02-06 13:10 GMT+01:00 Bartosz Golaszewski : > I would like to create an automated test-suite for libgpiod, but > the gpio-mockup driver is quite limited when it comes to current > user space functionality - I can't test neither line event > notifications nor finding GPIO lines by name. > > Thi

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

2017-02-06 Thread Bartosz Golaszewski
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_mockup_add(). Drop the name of the direction enum and rename the enum values

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

2017-02-06 Thread Bartosz Golaszewski
Moving a couple of lines around allows us to shrink the code a bit while keeping the same functionality. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c

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

2017-02-06 Thread Bartosz Golaszewski
Add a devres flavor of __devm_irq_alloc_descs() and corresponding helper macros. Signed-off-by: Bartosz Golaszewski --- include/linux/irq.h | 19 +++ kernel/irq/devres.c | 38 ++ 2 files changed, 57 insertions(+) diff --git a/include/linux/irq

[PATCH v2 0/7] gpio: mockup: extensions for testing purposes

2017-02-06 Thread Bartosz Golaszewski
I would like to create an automated test-suite for libgpiod, but the gpio-mockup driver is quite limited when it comes to current user space functionality - I can't test neither line event notifications nor finding GPIO lines by name. This series proposes to extend the gpio framework by allowing t

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

2017-02-06 Thread Bartosz Golaszewski
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 --- drivers/gpio/gpiolib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index

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

2017-02-06 Thread Bartosz Golaszewski
Setup a dummy irqchip that will allow us to inject line events for testing purposes. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-mockup.c | 65 ++ 2 files changed, 66 insertions(+) diff --git a/drivers/g

[PATCH v2 7/7] gpio: mockup: implement event injecting over debugfs

2017-02-06 Thread Bartosz Golaszewski
Create a debugfs directory for every mockup chip and a single file for every line. Writing (0 or 1) to these files allows the user to inject line events (falling or rising edge respectively). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 115

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

2017-02-06 Thread Bartosz Golaszewski
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. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 35 ++

Re: [PATCH v3 01/14] mm: thp: make __split_huge_pmd_locked visible.

2017-02-06 Thread Zi Yan
On 6 Feb 2017, at 0:12, Naoya Horiguchi wrote: > On Sun, Feb 05, 2017 at 11:12:39AM -0500, Zi Yan wrote: >> From: Zi Yan >> >> It allows splitting huge pmd while you are holding the pmd lock. >> It is prepared for future zap_pmd_range() use. >> >> Signed-off-by: Zi Yan >> --- >> include/linux/h

Re: [PATCH 4/4] regulator: core: make bulk API support optional supplies

2017-02-06 Thread Mark Brown
On Sun, Feb 05, 2017 at 08:30:33PM -0800, Dmitry Torokhov wrote: > On Sun, Feb 05, 2017 at 05:07:37PM +0100, Mark Brown wrote: > > The tlv320aic32x4 driver isn't a particularly well written driver in > > this regard in the first place - I don't recall the details but I > > strongly suspect that th

Re: [PATCH 2/3] thermal: cpu_cooling: Check OPP for errors

2017-02-06 Thread Rafael J. Wysocki
On Monday, February 06, 2017 03:56:28 PM Viresh Kumar wrote: > It is possible for dev_pm_opp_find_freq_exact() to return errors. It was > all fine earlier as dev_pm_opp_get_voltage() had a check within it to > check for invalid OPPs, but dev_pm_opp_put() doesn't have any similar > checks and the ca

Re: [PATCH] drm/panel: simple: ensure Sharp lq123p1jx31 isn't turned off too soon

2017-02-06 Thread Thierry Reding
On Thu, Feb 02, 2017 at 03:38:53PM -0800, Douglas Anderson wrote: > The Sharp lq123p1jx31 has a requirement that the VDD is on for at > least 300 ms before being turned off. At the moment nothing anywhere > in the kernel is ensuring this. Looks to me like .delay.prepare would be a better fit. Tha

Re: [PATCH 5/6] dmaengine: Add Broadcom SBA RAID driver

2017-02-06 Thread Anup Patel
On Sun, Feb 5, 2017 at 11:36 AM, Vinod Koul wrote: > On Thu, Feb 02, 2017 at 10:17:15AM +0530, Anup Patel wrote: >> +config BCM_SBA_RAID >> +tristate "Broadcom SBA RAID engine support" >> +depends on (ARM64 && MAILBOX && RAID6_PQ) || COMPILE_TEST >> +select DMA_ENGINE >> +

Re: [PATCH 1/2] kconfig/mconf: add jumping tip in title of search result textbox

2017-02-06 Thread Jani Nikula
On Mon, 06 Feb 2017, changbin...@intel.com wrote: > From: Changbin Du > > Prompt user how to quickly jump to the item he/she is interested in. :o All these years. I... I didn't know. Thanks! > Signed-off-by: Changbin Du > --- > scripts/kconfig/mconf.c | 8 > 1 file changed, 4 inserti

Re: [PATCH v2] PCI: pciehp: Don't enable PME on runtime suspend

2017-02-06 Thread Rafael J. Wysocki
On Monday, February 06, 2017 06:54:37 AM Lukas Wunner wrote: > Since commit 68db9bc81436 ("PCI: pciehp: Add runtime PM support for PCIe > hotplug ports") we runtime suspend a hotplug port to D3hot when all its > children are runtime suspended or none are present. > > When runtime suspending the po

[tip:WIP.sched/core 166/167] include/sound/control.h:107:2: error: unknown type name 'wait_queue_head_t'

2017-02-06 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 3cb464183709fc66902b262ce921cb5a410697d1 commit: 437af2a38b67158b963a3009f5f79ff9303f45f0 [166/167] hrtimer: Remove the include from config: sparc64-allmodconfig (attached as .config) compiler: sparc64-li

Fractional divider on the Atmel USART controller

2017-02-06 Thread Romain Izard
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 crtscts option, the line does not work, and after checking the line

Re: [PATCH v2] usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver

2017-02-06 Thread Greg KH
On Mon, Feb 06, 2017 at 12:19:40PM +0100, Richard Leitner wrote: > On 02/05/2017 08:42 AM, Greg KH wrote: > > On Fri, Feb 03, 2017 at 11:55:24AM +0100, Richard Leitner wrote: > >> +/** > >> + * ascii2utf16le() - Helper routine for producing UTF-16LE string > >> descriptors > >> + * @s: Null-termin

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

2017-02-06 Thread Thierry Reding
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 option 1 and 3 are supported (SPI). > >> > >> S

Re: pciehp is broken from 4.10-rc1

2017-02-06 Thread Rafael J. Wysocki
On Monday, February 06, 2017 12:37:06 PM Mika Westerberg wrote: > On Sun, Feb 05, 2017 at 08:34:54AM +0100, Lukas Wunner wrote: > > > sca05-0a81fd8d:~ # echo 1 > /sys/bus/pci/slots/11/power > > > [ 375.376609] pci_hotplug: power_write_file: power = 1 > > > [ 375.382175] pciehp :b3:00.0:pcie00

Re: [PATCH] drm/vc4: simplify exit path of a failed allocation of dsi_connector

2017-02-06 Thread Gustavo Padovan
Hi Colin, 2017-02-03 Colin King : > From: Colin Ian King > > If dsi_connector fails to allocate, the exit path via label 'fail' > checks if connector is null, which it always is, so the cleanup > that destroys connector is never going to be called. Hence the > failure path can be more optimall

Re: [PATCH -next] drm: mxsfb: fix error return code in mxsfb_load()

2017-02-06 Thread Gustavo Padovan
Hi Wei, 2017-02-05 Wei Yongjun : > From: Wei Yongjun > > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 + > 1 file changed, 1 insertion(+) > >

Re: linux-next: manual merge of the arm64 tree with the qcom tree

2017-02-06 Thread Will Deacon
On Mon, Feb 06, 2017 at 10:23:29AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the arm64 tree got conflicts in: > > arch/arm/kernel/armksyms.c > arch/arm64/kernel/arm64ksyms.c > arch/arm64/kernel/smccc-call.S > include/linux/arm-smccc.h > > between commits: >

Re: [PATCH 0/6] PM / Domains: Implement domain performance states

2017-02-06 Thread Rafael J. Wysocki
On Monday, February 06, 2017 11:05:05 AM Viresh Kumar wrote: > On 16-01-17, 11:00, Viresh Kumar wrote: > > On 03-01-17, 16:36, Viresh Kumar wrote: > > > Hi, > > > > > > An earlier series[1] tried to implement bindings for PM domain > > > performance states. Rob Herring suggested that we can actual

<    4   5   6   7   8   9   10   11   >