[PATCH v3 0/4] nds32: Perf Support

2018-10-23 Thread Nickhu
* Sorry everyone, I forgot to add the version number of the patch set I just sent. These four commits are perf supporting for nds32. There are three perfomance counters in nds32, and each of them can counts different events. You can use 'perf list' to show the available events that can be used.

[PATCH v3 0/4] nds32: Perf Support

2018-10-23 Thread Nickhu
* Sorry everyone, I forgot to add the version number of the patch set I just sent. These four commits are perf supporting for nds32. There are three perfomance counters in nds32, and each of them can counts different events. You can use 'perf list' to show the available events that can be used.

Re: [PATCH -V6 00/21] swap: Swapout/swapin THP in one piece

2018-10-23 Thread Huang, Ying
Hi, Daniel, Daniel Jordan writes: > On Wed, Oct 10, 2018 at 03:19:03PM +0800, Huang Ying wrote: >> And for all, Any comment is welcome! >> >> This patchset is based on the 2018-10-3 head of mmotm/master. > > There seems to be some infrequent memory corruption with THPs that have been > swapped

[GIT] Sparc

2018-10-23 Thread David Miller
Mostly VDSO cleanups and optimizations. Please pull, thanks a lot! The following changes since commit 91b15613ce7fb3e724ca0d433eef8e6bf15322af: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2018-10-19 09:16:20 +0200) are available in the Git repository at:

Re: [PATCH -V6 00/21] swap: Swapout/swapin THP in one piece

2018-10-23 Thread Huang, Ying
Hi, Daniel, Daniel Jordan writes: > On Wed, Oct 10, 2018 at 03:19:03PM +0800, Huang Ying wrote: >> And for all, Any comment is welcome! >> >> This patchset is based on the 2018-10-3 head of mmotm/master. > > There seems to be some infrequent memory corruption with THPs that have been > swapped

[GIT] Sparc

2018-10-23 Thread David Miller
Mostly VDSO cleanups and optimizations. Please pull, thanks a lot! The following changes since commit 91b15613ce7fb3e724ca0d433eef8e6bf15322af: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2018-10-19 09:16:20 +0200) are available in the Git repository at:

Re: [PATCH v2 1/5] x86/vdso: Renames variable to fix shadow warning.

2018-10-23 Thread Leonardo Bras
Hello Andy, Yeah, it's much better. I will replace this part of the commit message. It will be fixed for v3. Thank you! On Mon, Oct 22, 2018 at 11:13 PM Andy Lutomirski wrote: > How about “The go32() and go64() functions has an argument and a local > variable called ‘name’. Rename both to

Re: [PATCH v2 1/5] x86/vdso: Renames variable to fix shadow warning.

2018-10-23 Thread Leonardo Bras
Hello Andy, Yeah, it's much better. I will replace this part of the commit message. It will be fixed for v3. Thank you! On Mon, Oct 22, 2018 at 11:13 PM Andy Lutomirski wrote: > How about “The go32() and go64() functions has an argument and a local > variable called ‘name’. Rename both to

Re: [LKP] [null_blk] e50b1e327a: blktests.block.022.fail

2018-10-23 Thread Jens Axboe
On 10/23/18 7:19 PM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: e50b1e327aeb4b224364aa6f85c1713ff8b3654b ("null_blk: remove legacy IO > path") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase: blktests

Re: [LKP] [null_blk] e50b1e327a: blktests.block.022.fail

2018-10-23 Thread Jens Axboe
On 10/23/18 7:19 PM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: e50b1e327aeb4b224364aa6f85c1713ff8b3654b ("null_blk: remove legacy IO > path") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in testcase: blktests

Re: [GIT PULL] XArray for 4.20

2018-10-23 Thread Matthew Wilcox
On Tue, Oct 23, 2018 at 01:08:25PM -0700, Matthew Wilcox wrote: > In preparing this pull request, I realised I messed up and pushed a > rebase from two days ago to infradead. There's no substantial change > from the version I pushed out to infradead for linux-next testing on > September 29th

Re: [GIT PULL] XArray for 4.20

2018-10-23 Thread Matthew Wilcox
On Tue, Oct 23, 2018 at 01:08:25PM -0700, Matthew Wilcox wrote: > In preparing this pull request, I realised I messed up and pushed a > rebase from two days ago to infradead. There's no substantial change > from the version I pushed out to infradead for linux-next testing on > September 29th

Re: [PATCH 06/17] prmem: test cases for memory protection

2018-10-23 Thread Randy Dunlap
On 10/23/18 2:34 PM, Igor Stoppa wrote: > diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug > index 9a7b8b049d04..57de5b3c0bae 100644 > --- a/mm/Kconfig.debug > +++ b/mm/Kconfig.debug > @@ -94,3 +94,12 @@ config DEBUG_RODATA_TEST > depends on STRICT_KERNEL_RWX > ---help--- >This

Re: [PATCH 06/17] prmem: test cases for memory protection

2018-10-23 Thread Randy Dunlap
On 10/23/18 2:34 PM, Igor Stoppa wrote: > diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug > index 9a7b8b049d04..57de5b3c0bae 100644 > --- a/mm/Kconfig.debug > +++ b/mm/Kconfig.debug > @@ -94,3 +94,12 @@ config DEBUG_RODATA_TEST > depends on STRICT_KERNEL_RWX > ---help--- >This

Re: [PATCH] sched/core: Don't mix isolcpus and housekeeping CPUs

2018-10-23 Thread Srikar Dronamraju
> url: > https://github.com/0day-ci/linux/commits/Srikar-Dronamraju/sched-core-Don-t-mix-isolcpus-and-housekeeping-CPUs/20181024-025019 > config: i386-tinyconfig (attached as .config) > compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 > reproduce: > # save the attached .config to linux build

[GIT PULL] xfs: 4.20 merge

2018-10-23 Thread Dave Chinner
Hi Linus, Can you please pull the XFS 4.20 update from the tag listed below? There's not a huge amount of change in this cycle - Darrick has been out of action for a couple of months (hence me sending the last few pull requests), so we decided a quiet cycle mainly focussed on bug fixes was a good

Re: [PATCH] sched/core: Don't mix isolcpus and housekeeping CPUs

2018-10-23 Thread Srikar Dronamraju
> url: > https://github.com/0day-ci/linux/commits/Srikar-Dronamraju/sched-core-Don-t-mix-isolcpus-and-housekeeping-CPUs/20181024-025019 > config: i386-tinyconfig (attached as .config) > compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 > reproduce: > # save the attached .config to linux build

[GIT PULL] xfs: 4.20 merge

2018-10-23 Thread Dave Chinner
Hi Linus, Can you please pull the XFS 4.20 update from the tag listed below? There's not a huge amount of change in this cycle - Darrick has been out of action for a couple of months (hence me sending the last few pull requests), so we decided a quiet cycle mainly focussed on bug fixes was a good

Re: [PATCH v4 02/17] remoteproc: add rproc_va_to_pa function

2018-10-23 Thread Suman Anna
On 10/23/18 2:51 PM, Loic PALLARDY wrote: > Hi Suman, > >> -Original Message- >> From: Suman Anna >> Sent: mardi 23 octobre 2018 18:51 >> To: Loic PALLARDY ; bjorn.anders...@linaro.org; >> o...@wizery.com >> Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; >> Arnaud

Re: [PATCH v4 02/17] remoteproc: add rproc_va_to_pa function

2018-10-23 Thread Suman Anna
On 10/23/18 2:51 PM, Loic PALLARDY wrote: > Hi Suman, > >> -Original Message- >> From: Suman Anna >> Sent: mardi 23 octobre 2018 18:51 >> To: Loic PALLARDY ; bjorn.anders...@linaro.org; >> o...@wizery.com >> Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; >> Arnaud

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 9/27/18 3:18 PM, Wendy Liang wrote: > Hi Loic, > > > On Thu, Sep 27, 2018 at 12:22 PM Loic PALLARDY wrote: >> >> Hi Wendy >> >>> -Original Message- >>> From: Wendy Liang >>> Sent: Thursday, September 27, 2018 7:17 PM >>> To: Loic PALLARDY >>> Cc: Bjorn Andersson ; Ohad Ben-Cohen

Re: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-10-23 Thread Suman Anna
On 9/27/18 3:18 PM, Wendy Liang wrote: > Hi Loic, > > > On Thu, Sep 27, 2018 at 12:22 PM Loic PALLARDY wrote: >> >> Hi Wendy >> >>> -Original Message- >>> From: Wendy Liang >>> Sent: Thursday, September 27, 2018 7:17 PM >>> To: Loic PALLARDY >>> Cc: Bjorn Andersson ; Ohad Ben-Cohen

Re: [PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-10-23 Thread Suman Anna
Hi Bjorn, > >> -Original Message- >> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >> Sent: Thursday, May 10, 2018 2:53 AM >> To: Loic PALLARDY >> Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Arnaud POULIQUEN ; >>

Re: [PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-10-23 Thread Suman Anna
Hi Bjorn, > >> -Original Message- >> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >> Sent: Thursday, May 10, 2018 2:53 AM >> To: Loic PALLARDY >> Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Arnaud POULIQUEN ; >>

Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-23 Thread Matthew Wilcox
On Wed, Oct 24, 2018 at 12:34:55AM +0300, Igor Stoppa wrote: > The connection between each page and its vmap_area avoids more expensive > searches through the btree of vmap_areas. Typo -- it's an rbtree. > +++ b/include/linux/mm_types.h > @@ -87,13 +87,24 @@ struct page { >

Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-23 Thread Matthew Wilcox
On Wed, Oct 24, 2018 at 12:34:55AM +0300, Igor Stoppa wrote: > The connection between each page and its vmap_area avoids more expensive > searches through the btree of vmap_areas. Typo -- it's an rbtree. > +++ b/include/linux/mm_types.h > @@ -87,13 +87,24 @@ struct page { >

[PATCH 1/4] nds32: Fix bug in bitfield.h

2018-10-23 Thread Nickhu
There two bitfield bug for perfomance counter in bitfield.h: PFM_CTL_offSEL1 21 --> 16 PFM_CTL_offSEL2 27 --> 22 This commit fix it. Signed-off-by: Nickhu --- arch/nds32/include/asm/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 1/4] nds32: Fix bug in bitfield.h

2018-10-23 Thread Nickhu
There two bitfield bug for perfomance counter in bitfield.h: PFM_CTL_offSEL1 21 --> 16 PFM_CTL_offSEL2 27 --> 22 This commit fix it. Signed-off-by: Nickhu --- arch/nds32/include/asm/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 0/4] nds32: Perf Support

2018-10-23 Thread Nickhu
These four commits are perf supporting for nds32. There are three perfomance counters in nds32, and each of them can counts different events. You can use 'perf list' to show the available events that can be used. Nickhu (4): nds32: Fix bug in bitfield.h nds32: Perf porting nds32: Add perf

[PATCH 2/4] nds32: Perf porting

2018-10-23 Thread Nickhu
This is the commit that porting the perf for nds32. 1.Raw event: The raw events start with 'r'. Usage: perf stat -e rXYZ ./app X: the index of performance counter. YZ: the index(convert to hexdecimal)

[PATCH 0/4] nds32: Perf Support

2018-10-23 Thread Nickhu
These four commits are perf supporting for nds32. There are three perfomance counters in nds32, and each of them can counts different events. You can use 'perf list' to show the available events that can be used. Nickhu (4): nds32: Fix bug in bitfield.h nds32: Perf porting nds32: Add perf

[PATCH 2/4] nds32: Perf porting

2018-10-23 Thread Nickhu
This is the commit that porting the perf for nds32. 1.Raw event: The raw events start with 'r'. Usage: perf stat -e rXYZ ./app X: the index of performance counter. YZ: the index(convert to hexdecimal)

Re: in_compat_syscall() returns from kernel thread for X86_32.

2018-10-23 Thread NeilBrown
On Thu, Oct 18 2018, Andy Lutomirski wrote: > On Wed, Oct 17, 2018 at 9:36 PM NeilBrown wrote: >> >> On Wed, Oct 17 2018, Andy Lutomirski wrote: >> >> > On Wed, Oct 17, 2018 at 6:48 PM NeilBrown wrote: >> >> >> >> >> >> Was: Re: [tip:x86/asm] x86/entry: Rename is_{ia32,x32}_task() to >> >>

[PATCH 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU in devicetree. Signed-off-by: Nickhu --- Documentation/devicetree/bindings/nds32/pmu.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt diff --git

[PATCH 3/4] nds32: Add perf call-graph support.

2018-10-23 Thread Nickhu
The perf call-graph option can trace the callchain between functions. This commit add the perf callchain for nds32. There are kerenl callchain and user callchain. The kerenl callchain can trace the function in kernel space. There are two type for user callchain. One for the 'optimize for size'

Re: in_compat_syscall() returns from kernel thread for X86_32.

2018-10-23 Thread NeilBrown
On Thu, Oct 18 2018, Andy Lutomirski wrote: > On Wed, Oct 17, 2018 at 9:36 PM NeilBrown wrote: >> >> On Wed, Oct 17 2018, Andy Lutomirski wrote: >> >> > On Wed, Oct 17, 2018 at 6:48 PM NeilBrown wrote: >> >> >> >> >> >> Was: Re: [tip:x86/asm] x86/entry: Rename is_{ia32,x32}_task() to >> >>

[PATCH 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU in devicetree. Signed-off-by: Nickhu --- Documentation/devicetree/bindings/nds32/pmu.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt diff --git

[PATCH 3/4] nds32: Add perf call-graph support.

2018-10-23 Thread Nickhu
The perf call-graph option can trace the callchain between functions. This commit add the perf callchain for nds32. There are kerenl callchain and user callchain. The kerenl callchain can trace the function in kernel space. There are two type for user callchain. One for the 'optimize for size'

[PATCH v2] sched/core: Don't mix isolcpus and housekeeping CPUs

2018-10-23 Thread Srikar Dronamraju
Load balancer and NUMA balancer are not suppose to work on isolcpus. Currently when setting sched affinity, there are no checks to see if the requested cpumask has CPUs from both isolcpus and housekeeping CPUs. If user passes a mix of isolcpus and housekeeping CPUs, then NUMA balancer can pick a

[PATCH v2] sched/core: Don't mix isolcpus and housekeeping CPUs

2018-10-23 Thread Srikar Dronamraju
Load balancer and NUMA balancer are not suppose to work on isolcpus. Currently when setting sched affinity, there are no checks to see if the requested cpumask has CPUs from both isolcpus and housekeeping CPUs. If user passes a mix of isolcpus and housekeeping CPUs, then NUMA balancer can pick a

Re: [PATCH v4 16/17] remoteproc: st: add reserved memory support

2018-10-23 Thread Suman Anna
Hi Loic, On 7/27/18 8:14 AM, Loic Pallardy wrote: > ST remote processor needs some specified memory regions for > firmware and IPC. > Memory regions are defined as reserved memory and should > be registered in remoteproc core thanks to rproc_add_carveout > function before rproc_start. For this,

Re: [PATCH v4 16/17] remoteproc: st: add reserved memory support

2018-10-23 Thread Suman Anna
Hi Loic, On 7/27/18 8:14 AM, Loic Pallardy wrote: > ST remote processor needs some specified memory regions for > firmware and IPC. > Memory regions are defined as reserved memory and should > be registered in remoteproc core thanks to rproc_add_carveout > function before rproc_start. For this,

Re: [PATCH v4 15/17] remoteproc: da8xx: declare reserved memory region for vdev device

2018-10-23 Thread Suman Anna
Hi Loic, On 7/27/18 8:14 AM, Loic Pallardy wrote: > This patch introduces da8xx_rproc_parse_fw() to declare a > carveout region based on reserved memory for vdev buffer > allocation. > > Signed-off-by: Loic Pallardy > --- > drivers/remoteproc/da8xx_remoteproc.c | 38 >

Re: [PATCH v4 15/17] remoteproc: da8xx: declare reserved memory region for vdev device

2018-10-23 Thread Suman Anna
Hi Loic, On 7/27/18 8:14 AM, Loic Pallardy wrote: > This patch introduces da8xx_rproc_parse_fw() to declare a > carveout region based on reserved memory for vdev buffer > allocation. > > Signed-off-by: Loic Pallardy > --- > drivers/remoteproc/da8xx_remoteproc.c | 38 >

[RFC v2 05/14] kunit: test: add the concept of expectations

2018-10-23 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins --- include/kunit/test.h | 259 +++ 1 file changed, 259 insertions(+) diff --git a/include/kunit/test.h b/include/kunit/test.h

[RFC v2 05/14] kunit: test: add the concept of expectations

2018-10-23 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins --- include/kunit/test.h | 259 +++ 1 file changed, 259 insertions(+) diff --git a/include/kunit/test.h b/include/kunit/test.h

Re: [PATCH v12 06/12] livepatch: Simplify API by removing registration step

2018-10-23 Thread Josh Poimboeuf
On Tue, Oct 23, 2018 at 11:39:43AM -0500, Josh Poimboeuf wrote: > Given this discussion, I'm thinking there wouldn't be much to discuss at > LPC for this topic unless we had a prototype to look at (which I won't > have time to do). So I may drop my talk in favor of giving more time > for other

Re: [PATCH v12 06/12] livepatch: Simplify API by removing registration step

2018-10-23 Thread Josh Poimboeuf
On Tue, Oct 23, 2018 at 11:39:43AM -0500, Josh Poimboeuf wrote: > Given this discussion, I'm thinking there wouldn't be much to discuss at > LPC for this topic unless we had a prototype to look at (which I won't > have time to do). So I may drop my talk in favor of giving more time > for other

Re: [PATCH v2 3/5] Creates macro to avoid variable shadowing

2018-10-23 Thread Leonardo Bras
Hello Helen, On Tue, Oct 23, 2018 at 6:35 PM Helen Koike wrote: > Like this you are not changing the logic in this file, you are just > renaming the variable which is more then enough to solve the -Wshadow > warning. > I don't it is worthy changing the logic. You are right, that was what the

Re: [PATCH v2 3/5] Creates macro to avoid variable shadowing

2018-10-23 Thread Leonardo Bras
Hello Helen, On Tue, Oct 23, 2018 at 6:35 PM Helen Koike wrote: > Like this you are not changing the logic in this file, you are just > renaming the variable which is more then enough to solve the -Wshadow > warning. > I don't it is worthy changing the logic. You are right, that was what the

Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-10-23 Thread Suman Anna
On 7/27/18 8:14 AM, Loic Pallardy wrote: > Current version of rproc_alloc_vring function supports only dynamic vring > allocation. > > This patch allows to allocate vrings based on memory region declatation. > Vrings are now manage like memory carveouts, to communize memory management > code in

Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-10-23 Thread Suman Anna
On 7/27/18 8:14 AM, Loic Pallardy wrote: > Current version of rproc_alloc_vring function supports only dynamic vring > allocation. > > This patch allows to allocate vrings based on memory region declatation. > Vrings are now manage like memory carveouts, to communize memory management > code in

[PATCH 4/5] spi: lpspi: enable runtime pm for lpspi

2018-10-23 Thread Clark Wang
Enable the runtime pm for lpspi module BuildInfo: - U-Boot 2018.03-imx_4.14.y Signed-off-by: Han Xu Reviewed-by: Frank Li Signed-off-by: Xiaoning Wang --- drivers/spi/spi-fsl-lpspi.c | 116 1 file changed, 91 insertions(+), 25 deletions(-) diff

[PATCH 4/5] spi: lpspi: enable runtime pm for lpspi

2018-10-23 Thread Clark Wang
Enable the runtime pm for lpspi module BuildInfo: - U-Boot 2018.03-imx_4.14.y Signed-off-by: Han Xu Reviewed-by: Frank Li Signed-off-by: Xiaoning Wang --- drivers/spi/spi-fsl-lpspi.c | 116 1 file changed, 91 insertions(+), 25 deletions(-) diff

[PATCH 1/5] spi: lpspi: Add slave mode support for imx7ulp

2018-10-23 Thread Clark Wang
Add SPI slave mode support for imx7ulp, in PIO mode. Add "spi-slave" attribute in spi node of dts file to boot. For now, slave has to send the message which is same as the length of message master sent. Wire connection: GND, SCK, MISO(to MISO of slave), MOSI(to MOSI of slave), SCS

[PATCH 5/5] spi: lpspi: CLK pin becomes low when CR_RST=1

2018-10-23 Thread Clark Wang
Remove Reset operation in fsl_lpspi_config(). This RST may cause both CLK and CS pins go from high to low level under cs-gpio mode. Add fsl_lpspi_reset() function after one message transfer to clear all flags in use. Signed-off-by: Xiaoning Wang Reviewed-by: Fugang Duan ---

[PATCH 1/5] spi: lpspi: Add slave mode support for imx7ulp

2018-10-23 Thread Clark Wang
Add SPI slave mode support for imx7ulp, in PIO mode. Add "spi-slave" attribute in spi node of dts file to boot. For now, slave has to send the message which is same as the length of message master sent. Wire connection: GND, SCK, MISO(to MISO of slave), MOSI(to MOSI of slave), SCS

[PATCH 5/5] spi: lpspi: CLK pin becomes low when CR_RST=1

2018-10-23 Thread Clark Wang
Remove Reset operation in fsl_lpspi_config(). This RST may cause both CLK and CS pins go from high to low level under cs-gpio mode. Add fsl_lpspi_reset() function after one message transfer to clear all flags in use. Signed-off-by: Xiaoning Wang Reviewed-by: Fugang Duan ---

[PATCH 3/5] spi: lpspi: Add 8qm/qxp support for lpspi

2018-10-23 Thread Clark Wang
Add both ipg and per clock for lpspi to support i.MX8QM/QXP boards. Signed-off-by: Xiaoning Wang --- drivers/spi/spi-fsl-lpspi.c | 52 + 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c

[RFC v2 01/14] kunit: test: add KUnit test runner core

2018-10-23 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call

[PATCH 2/5] spi: lpspi: Improve the stability of lpspi data transmission

2018-10-23 Thread Clark Wang
Use SR_TDF to judge if need send data, and SR_FCF to judge if transmission end to replace the waiting after transmission end. This waiting has no actual meaning, for the real end will set the FCF flag. Resolved an issue that could cause a transmission timeout when transferring large amounts of

[PATCH 3/5] spi: lpspi: Add 8qm/qxp support for lpspi

2018-10-23 Thread Clark Wang
Add both ipg and per clock for lpspi to support i.MX8QM/QXP boards. Signed-off-by: Xiaoning Wang --- drivers/spi/spi-fsl-lpspi.c | 52 + 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c

[RFC v2 01/14] kunit: test: add KUnit test runner core

2018-10-23 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call

[PATCH 2/5] spi: lpspi: Improve the stability of lpspi data transmission

2018-10-23 Thread Clark Wang
Use SR_TDF to judge if need send data, and SR_FCF to judge if transmission end to replace the waiting after transmission end. This waiting has no actual meaning, for the real end will set the FCF flag. Resolved an issue that could cause a transmission timeout when transferring large amounts of

RE: [PATCH] thermal: qoriq: add multiple sensors support

2018-10-23 Thread Andy Tang
Hi Daniel, > -Original Message- > From: Daniel Lezcano > Sent: 2018年10月16日 19:21 > To: Andy Tang ; rui.zh...@intel.com > Cc: edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org; Rob Herring > Subject: Re: [PATCH] thermal: qoriq: add multiple sensors support >

RE: [PATCH] thermal: qoriq: add multiple sensors support

2018-10-23 Thread Andy Tang
Hi Daniel, > -Original Message- > From: Daniel Lezcano > Sent: 2018年10月16日 19:21 > To: Andy Tang ; rui.zh...@intel.com > Cc: edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org; Rob Herring > Subject: Re: [PATCH] thermal: qoriq: add multiple sensors support >

[PATCH] Documentation/x86: fix typo in zero_page.txt

2018-10-23 Thread Randy Dunlap
From: Randy Dunlap Fix a typo in Documentation/x86/zero_page.txt. Signed-off-by: Randy Dunlap --- Documentation/x86/zero-page.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-419.orig/Documentation/x86/zero-page.txt +++ lnx-419/Documentation/x86/zero-page.txt @@ -25,7

[PATCH] Documentation/x86: fix typo in zero_page.txt

2018-10-23 Thread Randy Dunlap
From: Randy Dunlap Fix a typo in Documentation/x86/zero_page.txt. Signed-off-by: Randy Dunlap --- Documentation/x86/zero-page.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-419.orig/Documentation/x86/zero-page.txt +++ lnx-419/Documentation/x86/zero-page.txt @@ -25,7

[RFC v2 12/14] kunit.py: improve output from python wrapper

2018-10-23 Thread Brendan Higgins
- add colors to displayed output - add timing and summary Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins --- tools/testing/kunit/kunit.py| 20 ++- tools/testing/kunit/kunit_parser.py | 93 - 2 files changed, 109 insertions(+), 4 deletions(-)

[RFC v2 12/14] kunit.py: improve output from python wrapper

2018-10-23 Thread Brendan Higgins
- add colors to displayed output - add timing and summary Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins --- tools/testing/kunit/kunit.py| 20 ++- tools/testing/kunit/kunit_parser.py | 93 - 2 files changed, 109 insertions(+), 4 deletions(-)

[PATCH 06/25] afs: Set up the iov_iter before calling afs_extract_data() [ver #2]

2018-10-23 Thread David Howells
afs_extract_data sets up a temporary iov_iter and passes it to AF_RXRPC each time it is called to describe the remaining buffer to be filled. Instead: (1) Put an iterator in the afs_call struct. (2) Set the iterator for each marshalling stage to load data into the appropriate places. A

[PATCH 06/25] afs: Set up the iov_iter before calling afs_extract_data() [ver #2]

2018-10-23 Thread David Howells
afs_extract_data sets up a temporary iov_iter and passes it to AF_RXRPC each time it is called to describe the remaining buffer to be filled. Instead: (1) Put an iterator in the afs_call struct. (2) Set the iterator for each marshalling stage to load data into the appropriate places. A

[PATCH 05/25] afs: Better tracing of protocol errors [ver #2]

2018-10-23 Thread David Howells
Include the site of detection of AFS protocol errors in trace lines to better be able to determine what went wrong. Signed-off-by: David Howells --- fs/afs/cmservice.c |6 ++ fs/afs/fsclient.c | 117 +++- fs/afs/inode.c

[PATCH 05/25] afs: Better tracing of protocol errors [ver #2]

2018-10-23 Thread David Howells
Include the site of detection of AFS protocol errors in trace lines to better be able to determine what went wrong. Signed-off-by: David Howells --- fs/afs/cmservice.c |6 ++ fs/afs/fsclient.c | 117 +++- fs/afs/inode.c

[PATCH 04/25] iov_iter: Add I/O discard iterator [ver #2]

2018-10-23 Thread David Howells
Add a new iterator, ITER_DISCARD, that can only be used in READ mode and just discards any data copied to it. This is useful in a network filesystem for discarding any unwanted data sent by a server. Signed-off-by: David Howells --- include/linux/uio.h |7 ++ lib/iov_iter.c |

[PATCH 01/25] amd-gpu: Don't undefine READ and WRITE [ver #2]

2018-10-23 Thread David Howells
Remove the undefinition of READ and WRITE because these constants may be used elsewhere in subsequently included header files, thus breaking them. These constants don't actually appear to be used in the driver, so the undefinition seems pointless. Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display

[PATCH 04/25] iov_iter: Add I/O discard iterator [ver #2]

2018-10-23 Thread David Howells
Add a new iterator, ITER_DISCARD, that can only be used in READ mode and just discards any data copied to it. This is useful in a network filesystem for discarding any unwanted data sent by a server. Signed-off-by: David Howells --- include/linux/uio.h |7 ++ lib/iov_iter.c |

[PATCH 01/25] amd-gpu: Don't undefine READ and WRITE [ver #2]

2018-10-23 Thread David Howells
Remove the undefinition of READ and WRITE because these constants may be used elsewhere in subsequently included header files, thus breaking them. These constants don't actually appear to be used in the driver, so the undefinition seems pointless. Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display

[PATCH 03/25] iov_iter: Separate type from direction and use accessor functions [ver #2]

2018-10-23 Thread David Howells
In the iov_iter struct, separate the iterator type from the iterator direction and use accessor functions to access them in most places. Convert a bunch of places to use switch-statements to access them rather then chains of bitwise-AND statements. This makes it easier to add further iterator

[PATCH 03/25] iov_iter: Separate type from direction and use accessor functions [ver #2]

2018-10-23 Thread David Howells
In the iov_iter struct, separate the iterator type from the iterator direction and use accessor functions to access them in most places. Convert a bunch of places to use switch-statements to access them rather then chains of bitwise-AND statements. This makes it easier to add further iterator

[PATCH 02/25] iov_iter: Use accessor function [ver #2]

2018-10-23 Thread David Howells
Use accessor functions to access an iterator's type and direction. This allows for the possibility of using some other method of determining the type of iterator than if-chains with bitwise-AND conditions. Signed-off-by: David Howells --- block/bio.c |2 +- fs/block_dev.c

[PATCH 02/25] iov_iter: Use accessor function [ver #2]

2018-10-23 Thread David Howells
Use accessor functions to access an iterator's type and direction. This allows for the possibility of using some other method of determining the type of iterator than if-chains with bitwise-AND conditions. Signed-off-by: David Howells --- block/bio.c |2 +- fs/block_dev.c

[PATCH 00/25] AFS development [ver #2]

2018-10-23 Thread David Howells
Hi Al, Here's a set of development patches for AFS if you could pull it for the upcoming merge window. Its main features are: (1) Provide wrapper functions for accessing iov iterators and provide a new read discard iterator type (ITER_DISCARD). (2) Use iov iterators more directly in

[PATCH 00/25] AFS development [ver #2]

2018-10-23 Thread David Howells
Hi Al, Here's a set of development patches for AFS if you could pull it for the upcoming merge window. Its main features are: (1) Provide wrapper functions for accessing iov iterators and provide a new read discard iterator type (ITER_DISCARD). (2) Use iov iterators more directly in

Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-10-23 Thread Suman Anna
Hi Bjorn, Loic, On 10/15/18 1:40 AM, Bjorn Andersson wrote: > On Wed 10 Oct 11:58 PDT 2018, Loic PALLARDY wrote: > >> >> >>> -Original Message- >>> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >>> Sent: mercredi 10 octobre 2018 07:32 >>> To: Loic PALLARDY >>> Cc:

Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-10-23 Thread Suman Anna
Hi Bjorn, Loic, On 10/15/18 1:40 AM, Bjorn Andersson wrote: > On Wed 10 Oct 11:58 PDT 2018, Loic PALLARDY wrote: > >> >> >>> -Original Message- >>> From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] >>> Sent: mercredi 10 octobre 2018 07:32 >>> To: Loic PALLARDY >>> Cc:

Re: [PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nick Desaulniers
On Tue, Oct 23, 2018 at 4:11 PM Nathan Chancellor wrote: > > Commit 77b0bf55bc67 ("kbuild/Makefile: Prepare for using macros in > inline assembly code to work around asm() related GCC inlining bugs") > added -Wa,- to KBUILD_CFLAGS, which breaks compiling with Clang (hangs > indefinitely at

Re: [PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nadav Amit
From: Nathan Chancellor Sent: October 23, 2018 at 11:11:25 PM GMT > To: Thomas Gleixner; Ingo Molnar; Borislav Petkov > Cc: H. Peter Anvin; x...@kernel.org, linux-kernel@vger.kernel.org, Nadav > Amit; Kees Cook; Masahiro Yamada; Nick Desaulniers; Nathan Chancellor > Subject: [PATCH] x86: Remove

Re: [PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nick Desaulniers
On Tue, Oct 23, 2018 at 4:11 PM Nathan Chancellor wrote: > > Commit 77b0bf55bc67 ("kbuild/Makefile: Prepare for using macros in > inline assembly code to work around asm() related GCC inlining bugs") > added -Wa,- to KBUILD_CFLAGS, which breaks compiling with Clang (hangs > indefinitely at

Re: [PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nadav Amit
From: Nathan Chancellor Sent: October 23, 2018 at 11:11:25 PM GMT > To: Thomas Gleixner; Ingo Molnar; Borislav Petkov > Cc: H. Peter Anvin; x...@kernel.org, linux-kernel@vger.kernel.org, Nadav > Amit; Kees Cook; Masahiro Yamada; Nick Desaulniers; Nathan Chancellor > Subject: [PATCH] x86: Remove

[PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nathan Chancellor
Commit 77b0bf55bc67 ("kbuild/Makefile: Prepare for using macros in inline assembly code to work around asm() related GCC inlining bugs") added -Wa,- to KBUILD_CFLAGS, which breaks compiling with Clang (hangs indefinitely at compiling init/main.o). This happens because while Clang accepts -pipe

[PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nathan Chancellor
Commit 77b0bf55bc67 ("kbuild/Makefile: Prepare for using macros in inline assembly code to work around asm() related GCC inlining bugs") added -Wa,- to KBUILD_CFLAGS, which breaks compiling with Clang (hangs indefinitely at compiling init/main.o). This happens because while Clang accepts -pipe

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread hpa
On October 23, 2018 3:53:10 PM PDT, Nick Desaulniers wrote: >On Tue, Oct 23, 2018 at 3:44 PM Nathan Chancellor > wrote: >> >> On Tue, Oct 23, 2018 at 03:08:53PM -0700, Nick Desaulniers wrote: >> > On Tue, Oct 23, 2018 at 2:58 PM Nathan Chancellor >> > wrote: >> > > >> > > On Tue, Oct 23, 2018

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread hpa
On October 23, 2018 3:53:10 PM PDT, Nick Desaulniers wrote: >On Tue, Oct 23, 2018 at 3:44 PM Nathan Chancellor > wrote: >> >> On Tue, Oct 23, 2018 at 03:08:53PM -0700, Nick Desaulniers wrote: >> > On Tue, Oct 23, 2018 at 2:58 PM Nathan Chancellor >> > wrote: >> > > >> > > On Tue, Oct 23, 2018

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread Nick Desaulniers
On Tue, Oct 23, 2018 at 3:44 PM Nathan Chancellor wrote: > > On Tue, Oct 23, 2018 at 03:08:53PM -0700, Nick Desaulniers wrote: > > On Tue, Oct 23, 2018 at 2:58 PM Nathan Chancellor > > wrote: > > > > > > On Tue, Oct 23, 2018 at 01:01:22PM -0700, H. Peter Anvin wrote: > > > > On 10/23/18 11:40,

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread Nick Desaulniers
On Tue, Oct 23, 2018 at 3:44 PM Nathan Chancellor wrote: > > On Tue, Oct 23, 2018 at 03:08:53PM -0700, Nick Desaulniers wrote: > > On Tue, Oct 23, 2018 at 2:58 PM Nathan Chancellor > > wrote: > > > > > > On Tue, Oct 23, 2018 at 01:01:22PM -0700, H. Peter Anvin wrote: > > > > On 10/23/18 11:40,

[PATCH 6/9] fs/locks: change all *_conflict() functions to return bool.

2018-10-23 Thread NeilBrown
posix_locks_conflict() and flock_locks_conflict() both return int. leases_conflict() returns bool. This inconsistency will cause problems for the next patch if not fixed. So change posix_locks_conflict() and flock_locks_conflict() to return bool. Also change the locks_conflict() helper. And

[PATCH 6/9] fs/locks: change all *_conflict() functions to return bool.

2018-10-23 Thread NeilBrown
posix_locks_conflict() and flock_locks_conflict() both return int. leases_conflict() returns bool. This inconsistency will cause problems for the next patch if not fixed. So change posix_locks_conflict() and flock_locks_conflict() to return bool. Also change the locks_conflict() helper. And

[PATCH 9/9] VFS: locks: remove unnecessary white space.

2018-10-23 Thread NeilBrown
- spaces before tabs, - spaces at the end of lines, - multiple blank lines, - blank lines before EXPORT_SYMBOL, can all go. Signed-off-by: NeilBrown --- fs/locks.c | 33 - 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/fs/locks.c

[PATCH 9/9] VFS: locks: remove unnecessary white space.

2018-10-23 Thread NeilBrown
- spaces before tabs, - spaces at the end of lines, - multiple blank lines, - blank lines before EXPORT_SYMBOL, can all go. Signed-off-by: NeilBrown --- fs/locks.c | 33 - 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/fs/locks.c

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