Re: [PATCH v4] powerpc/mm: Add page soft dirty tracking

2015-12-02 Thread Aneesh Kumar K.V
Laurent Dufour writes: > User space checkpoint and restart tool (CRIU) needs the page's change > to be soft tracked. This allows to do a pre checkpoint and then dump > only touched pages. > > This is done by using a newly assigned PTE bit (_PAGE_SOFT_DIRTY) when > the

RE: [PATCH v2 5/5] printk/nmi: Increase the size of the temporary buffer

2015-12-02 Thread David Laight
From: yalin wang > Sent: 30 November 2015 16:42 > > On Nov 27, 2015, at 19:09, Petr Mladek wrote: > > > > Testing has shown that the backtrace sometimes does not fit > > into the 4kB temporary buffer that is used in NMI context. > > > > The warnings are gone when I double the

Re: [PATCH 00/19] Context switch improvements

2015-12-02 Thread Anshuman Khandual
On 10/29/2015 06:13 AM, Anton Blanchard wrote: > Here are various improvements to our context switch path. Some of the > highlights: > > - Group all mfsprs and mtsprs in __switch_to(), which gives us a > 10% improvement on POWER8. > > - Create giveup_all() and flush_all_to_thread() so we only

Re: [PATCH 16/19] powerpc: create giveup_all()

2015-12-02 Thread Michael Ellerman
On Thu, 2015-10-29 at 11:44 +1100, Anton Blanchard wrote: > Create a single function that gives everything up (FP, VMX, VSX, SPE). > Doing this all at once means we only do one MSR write. > > A context switch microbenchmark using yield(): > > http://ozlabs.org/~anton/junkcode/context_switch2.c

Re: [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-02 Thread Denis Kirjanov
On 11/30/15, Christian Zigotzky wrote: > Hi All, > > I have tested the PA Semi Ethernet with the kernels 4.2.3 and 4.3.0 > today. With the kernel 4.2.3 it works but with the kernel 4.3.0 final it > doesn't work. Looking at the changes in pasemi I don't see any significant

Re: [net-next v4 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-02 Thread Scott Wood
On Mon, 2015-11-02 at 19:31 +0200, Madalin Bucur wrote: > Allow the selection of the transmission queue based on the CPU id. Explain why. > > Signed-off-by: Madalin Bucur > --- > drivers/net/ethernet/freescale/dpaa/Kconfig | 10 ++ >

Re: [PATCH 00/19] Context switch improvements

2015-12-02 Thread Michael Neuling
On Wed, 2015-12-02 at 14:12 +0530, Anshuman Khandual wrote: > On 10/29/2015 06:13 AM, Anton Blanchard wrote: > > Here are various improvements to our context switch path. Some of > > the > > highlights: > > > > - Group all mfsprs and mtsprs in __switch_to(), which gives us a > > 10% improvement

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-02 Thread Christian Zigotzky
Hi Michael, Thanks a lot for your answer. We tested some vanilla mainline 4.3 kernels on an Electra reference board. Additionally we tested some patched 4.3 kernels on our Nemo boards. It would be really fantastic, if you could fix the problem. Cheers, Christian On 02 December 2015 at

Re: [PATCH] selftests/powerpc: Add test to check if TAR is corrupted

2015-12-02 Thread Michael Neuling
> Re: [PATCH] selftests/powerpc: Add test to check if TAR is corrupted The patch description should mention TM too. On Wed, 2015-12-02 at 10:42 +0530, Anshuman Khandual wrote: > On 12/02/2015 08:52 AM, Rashmica Gupta wrote: > > If the transaction is aborted, the TAR should be rolled back to the

Re: [PATCH v2] powerpc: Append linux_banner to exception information in xmon.

2015-12-02 Thread Stewart Smith
Rashmica Gupta writes: > Currently if you are in xmon without an oops etc. to view the kernel > version you have to type "d $linux_banner" - not necessarily obvious. As > this is useful information, append to the output of "e" command. > > Example output: > $mon> e > cpu 0x1:

[v3] selftests/powerpc: Add test for forking inside transaction

2015-12-02 Thread Rashmica Gupta
This test does a fork syscall inside a transaction. Basic sniff test to see if we can enter the kernel during a transaction. Signed-off-by: Rashmica Gupta --- This must be run before tm-signal-stack as after this test is run a reboot is required -- changed the order of the

[v3] selftests/powerpc: Add test to check is DSCR is corrupted.

2015-12-02 Thread Rashmica Gupta
If the transaction is aborted, the DSCR should be rolled back to the checkpointed value before the transaction began. The value written to the DSCR when transaction was suspended should only persist if the transaction is successful. Signed-off-by: Rashmica Gupta --- This

[v4] selftests/powerpc: Add test to check if TAR is corrupted

2015-12-02 Thread Rashmica Gupta
If the transaction is aborted, the TAR should be rolled back to the checkpointed value before the transaction began. The value written to the TAR when the transaction is suspended should only remain there if the transaction completes successfully. Signed-off-by: Rashmica Gupta

[PATCH] Revert "powerpc/eeh: Don't unfreeze PHB PE after reset"

2015-12-02 Thread Andrew Donnellan
This reverts commit 527d10ef3a315d3cb9dc098dacd61889a6c26439. The reverted commit breaks cxlflash devices following an EEH reset. Attempting to load the cxlflash driver after a reset results in a call to pci_read_vpd() returning -ENODEV, causing driver initialisation to fail. At this stage, we

Re: [PATCH V6 20/35] powerpc/mm: Don't track subpage valid bit in pte_t

2015-12-02 Thread Anshuman Khandual
On 12/01/2015 09:06 AM, Aneesh Kumar K.V wrote: > This free up 11 bits in pte_t. In the later patch we also change > the pte_t format so that we can start supporting migration pte > at pmd level. We now track 4k subpage valid bit as below > > If we have _PAGE_COMBO set, we override the

Re: [PATCH 3/4] powerpc/powernv: remove FW_FEATURE_OPAL and just use FW_FEATURE_OPALv3

2015-12-02 Thread Stewart Smith
Michael Ellerman writes: > On Fri, 2015-11-27 at 15:45 +1100, Stewart Smith wrote: > >> Long ago, only in the lab, there was OPALv1 and OPALv2. Now there is >> just OPALv3, with nobody ever expecting anything on pre-OPALv3 to >> be cared about or supported by mainline

Re: [PATCH v13 1/6] genalloc:support memory-allocation with bytes-alignment to genalloc

2015-12-02 Thread Andrew Morton
On Mon, 30 Nov 2015 10:48:52 +0800 Zhao Qiang wrote: > Bytes alignment is required to manage some special RAM, > so add gen_pool_first_fit_align to genalloc, > meanwhile add gen_pool_alloc_algo to pass algo in case user > layer using more than one algo, and pass data to

[PATCH 2/4] selftests/powerpc: Import Anton's context_switch2 benchmark

2015-12-02 Thread Michael Ellerman
This gets referred to a lot in commit messages, so let's pull it into the selftests. Almost vanilla from: http://ozlabs.org/~anton/junkcode/context_switch2.c Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman Acked-by: Anton Blanchard

[PATCH 1/4] selftests/powerpc: Move pick_online_cpu() up into utils.c

2015-12-02 Thread Michael Ellerman
We want to use this in another test, so make it available at the top of the powerpc selftests tree. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/pmu/Makefile | 2 +- tools/testing/selftests/powerpc/pmu/ebb/Makefile | 3 ++-

Re: [PATCH v3 1/6] powerpc/mm: any thread in one core can be the first to setup TLB1

2015-12-02 Thread Chenhui Zhao
Hi Scott, Any comment on these pathes? Thanks, Chenhui On Fri, Nov 20, 2015 at 5:13 PM, Chenhui Zhao wrote: On e6500, in the case of cpu hotplug, either thread in one core may be the first thread initilzing the TLB1. The subsequent threads must not setup it

[PATCH v4] powerpc/mm: Add page soft dirty tracking

2015-12-02 Thread Laurent Dufour
User space checkpoint and restart tool (CRIU) needs the page's change to be soft tracked. This allows to do a pre checkpoint and then dump only touched pages. This is done by using a newly assigned PTE bit (_PAGE_SOFT_DIRTY) when the page is backed in memory, and a new _PAGE_SWP_SOFT_DIRTY bit

[PATCH 3/4] selftests/powerpc: Make context_switch do something with no args

2015-12-02 Thread Michael Ellerman
For ease of use make the context_switch test do something useful when called with no arguments. Default to a 30 second run, using threads, doing yield, and use any online cpu. Make it print out what it's doing to avoid confusion. Signed-off-by: Michael Ellerman Acked-by:

[PATCH 4/4] selftests/powerpc: Make context_switch touch FP/altivec/vector by default

2015-12-02 Thread Michael Ellerman
Simply because it touches more code paths that way, and therefore tests more things. Signed-off-by: Michael Ellerman Acked-by: Anton Blanchard --- tools/testing/selftests/powerpc/benchmarks/context_switch.c | 12 ++-- 1 file changed, 6

Re: [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-02 Thread Michael Ellerman
On Wed, 2015-12-02 at 05:59 +0100, Christian Zigotzky wrote: > Hi all, > > We tested some 4.3 kernels on a P.A. Semi reference board. Ultimately, > ethernet does not work, though on the reference board, the interface is > detected, gets link, but will not pass any packets/traffic. > >

Re: [PATCH v4] powerpc/mm: Add page soft dirty tracking

2015-12-02 Thread Denis Kirjanov
On 12/2/15, Laurent Dufour wrote: > User space checkpoint and restart tool (CRIU) needs the page's change > to be soft tracked. This allows to do a pre checkpoint and then dump > only touched pages. > > This is done by using a newly assigned PTE bit (_PAGE_SOFT_DIRTY)

Re: [PATCH v3 1/6] powerpc/mm: any thread in one core can be the first to setup TLB1

2015-12-02 Thread Denis Kirjanov
On 11/20/15, Chenhui Zhao wrote: > On e6500, in the case of cpu hotplug, either thread in one core > may be the first thread initilzing the TLB1. The subsequent threads > must not setup it again. > > The code is derived from the comment of Scott Wood. > >

Re: [v2] selftests/powerpc: Add test to check is DSCR is corrupted.

2015-12-02 Thread Denis Kirjanov
On 12/2/15, Rashmica Gupta wrote: > If the transaction is aborted, the DSCR should be rolled back to the > checkpointed value before the transaction began. The value written to the > DSCR when transaction was suspended should only persist if the transaction > is successful. >

Re: [v3] selftests/powerpc: Add test to check if TAR is corrupted

2015-12-02 Thread Denis Kirjanov
On 12/2/15, Rashmica Gupta wrote: > If the transaction is aborted, the TAR should be rolled back to the > checkpointed value before the transaction began. The value written to the > TAR when the transaction is suspended should only remain there if the > transaction completes

Re: [PATCH v4] powerpc/mm: Add page soft dirty tracking

2015-12-02 Thread Laurent Dufour
On 02/12/2015 12:54, Denis Kirjanov wrote: > On 12/2/15, Laurent Dufour wrote: >> User space checkpoint and restart tool (CRIU) needs the page's change >> to be soft tracked. This allows to do a pre checkpoint and then dump >> only touched pages. >> >> This is done by