On 09/02/2015 03:50 PM, Michael Neuling wrote:
> On Wed, 2015-09-02 at 15:37 +0530, Anshuman Khandual wrote:
>> Hello,
>>
>> Worked on a modified version of the following selftest
>> test case in the kernel source.
>>
>> tools/testing/selftests/vm/hugepage-mm
page not available
[0.473417] HugeTLB registered 16 GB page size, pre-allocated 0 pages
[0.473423] HugeTLB registered 16 MB page size, pre-allocated 16 pages
Signed-off-by: Anshuman Khandual
---
arch/powerpc/mm/hugetlbpage.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions
On 09/14/2015 09:54 PM, Nishanth Aravamudan wrote:
> On 14.09.2015 [18:59:25 +0530], Aneesh Kumar K.V wrote:
>> > Anshuman Khandual writes:
>> >
>>> > > When a 16GB huge page is requested on POWER platform through kernel
>>> > > command
>&
On 09/21/2015 12:10 PM, Aneesh Kumar K.V wrote:
> Convert from asm to C
>
> Signed-off-by: Aneesh Kumar K.V
> ---
> arch/powerpc/include/asm/book3s/64/hash-64k.h | 3 +-
> arch/powerpc/include/asm/book3s/64/hash.h | 1 +
> arch/powerpc/mm/hash64_64k.c | 134 +++-
On 07/28/2015 08:38 AM, Anshuman Khandual wrote:
> On 07/27/2015 09:49 AM, Michael Ellerman wrote:
>> > On Tue, 2015-30-06 at 08:20:27 UTC, Anshuman Khandual wrote:
>>> >> BHRB (Branch History Rolling Buffer) is a rolling buffer. Hence we
>>> >> might en
Hey Ben/Michael,
Why does 0xa410 value of DSISR called weird here ? What does this
signify ? Just wondering if we can replace it with a meaningful
macro instead.
arch/powerpc/kernel/exceptions-64s.S
/*
* Hash table stuff
*/
.align 7
do_hash_page:
std r3,_DAR(r1)
st
On 09/30/2015 07:57 AM, Aneesh Kumar K.V wrote:
> Signed-off-by: Aneesh Kumar K.V
> ---
> arch/powerpc/mm/Makefile| 3 +
> arch/powerpc/mm/hash64_64k.c| 202 +
> arch/powerpc/mm/hash_low_64.S | 380
>
> arch/powerpc/mm/
On 09/30/2015 07:57 AM, Aneesh Kumar K.V wrote:
> We should not expect pte bit position in asm code. Simply
> by moving part of that to C
I guess this does not depend on the new code changes and can
simply be part of the preparatory patches at the beginning.
_
On 10/01/2015 01:48 AM, Benjamin Herrenschmidt wrote:
> On Wed, 2015-09-30 at 17:37 +0530, Anshuman Khandual wrote:
>>> + if (unlikely(old_pte & _PAGE_BUSY))
>>> + return 0;
>>> + /* If PTE permissions don't match,
lity.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/perf/core-book3s.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c
index 5a6fd9c..463ddd3 100644
--- a/arch/powerpc/perf/core-book3s.c
+++ b/ar
privilege mode branch filters itself.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/asm/perf_event_server.h | 3 +++
arch/powerpc/perf/core-book3s.c | 37 ++--
arch/powerpc/perf/power8-pmu.c | 13 --
3 files changed, 49 insertions
meet those protocols. POWER8 PMU can only handle one HW based branch
filter request at any point of time. For all other combinations PMU will
pass it on to the SW.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/perf/power8-pmu.c | 51 --
1 file changed
ted. This patch also changes 'check_excludes' for
the same reason.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/perf/core-book3s.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-b
This patch adds a test for verifying that all the branch stack
sampling filters supported on powerpc work correctly. It also
adds some assembly helper functions in this regard. This patch
extends the generic event description to handle kernel mapped
ring buffers.
Signed-off-by: Anshuman Khandual
Generic powerpc branch analysis support added in the code patching
library which will help the subsequent patch on SW based filtering
of branch records in perf.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/asm/code-patching.h | 15
arch/powerpc/lib/code-patching.c
This patch cleans up some existing indentation problem in code and
re organizes the BHRB processing code with an helper function named
'update_branch_entry' making it more readable. This patch does not
change any functionality.
Signed-off-by: Anshuman Khandual
---
arch/powerpc
This patch does some code re-arrangements to make it clear that kernel
ignores any separate privilege level branch filter request and does not
support any combinations of HW PMU branch filters.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/perf/power8-pmu.c | 22 +++---
1
'pred'
to 'mispred' making the logical inversion process more meaningful
and readable.
Reported-by: Daniel Axtens
Signed-off-by: Anshuman Khandual
---
arch/powerpc/perf/core-book3s.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/arch/p
lters and leave it upto the SW to handle them all. Its
the PMU code's responsibility to uphold this protocol to be able to
conform to the overall OR semantic of perf branch stack sampling framework.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/asm/perf_event_server.h | 7 +-
MU neutral SW branch filtering code, PMU specific HW branch
filtering code
(3) Added new instruction analysis functionality into powerpc code-patching
library
(4) Changed name for some of the functions
(5) Fixed couple of spelling mistakes
(6) Changed code documentation in multiple places
Changes
On 05/19/2015 08:37 PM, Anshuman Khandual wrote:
> Test Result
> ---
> ptrace-ebbPASS
> ptrace-gprPASS
> ptrace-tm-gpr PASS
> ptrace-tm-spd-gpr PASS
> ptrace-tarFAIL
> ptrace-tm-tar FAIL
> ptrace-tm-sp
/PTRACE_SETREGSET using the individual NT_PPC* core
note type instead
- Fixed couple of attribute values for REGSET_TM_CGPR register set
- Renamed flush_tmreg_to_thread as flush_tmregs_to_thread
- Fixed 32 bit checkpointed GPR support
- Changed commit messages accordingly
Anshuman Khandual (28):
elf: Add
sets, EBB related register set etc. Addition of
these new ELF core note sections extends the existing ELF
ABI on powerpc arch without affecting it in any manner.
Signed-off-by: Anshuman Khandual
---
include/uapi/linux/elf.h | 12
1 file changed, 12 insertions(+)
diff --git a
This patch creates a function flush_tmregs_to_thread which
will then be used by subsequent patches in this series. The
function checks for self tracing ptrace interface attempts
while in the TM context and logs appropriate warning message.
Signed-off-by: Anshuman Khandual
---
arch/powerpc
transaction is
active. This patch makes these functions adapt to situations
when the transaction is active.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 93 ++--
1 file changed, 89 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/kernel
is active. This patch makes these
functions adapt to situations when the transaction is active.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 90 ++--
1 file changed, 87 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/kernel
transaction is active. This patch makes these
functions adapt to situations when the transaction is active.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 64
1 file changed, 64 insertions(+)
diff --git a/arch/powerpc/kernel/ptrace.c b/arch
This patch splits gpr32_get, gpr32_set functions to accommodate
in transaction ptrace requests implemented in patches later in
the series.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 64 +++-
1 file changed, 51 insertions(+), 13
the get, set and active functions for this new
register set added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 222 +++
1 file changed, 222 insertions(+)
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index
the get, set and active functions for this new
register set added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 126 +++
1 file changed, 126 insertions(+)
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index
the get, set and active functions for this new
register set added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/uapi/asm/elf.h | 1 +
arch/powerpc/kernel/ptrace.c| 158
2 files changed, 159 insertions(+)
diff --git a/arch/powerpc/include
the get, set and active functions for this new
register set added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/uapi/asm/elf.h | 1 +
arch/powerpc/kernel/ptrace.c| 129
2 files changed, 130 insertions(+)
diff --git a/arch/powerpc/include
, set and active functions for
this new register set added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/uapi/asm/elf.h | 1 +
arch/powerpc/kernel/ptrace.c| 143 +++-
2 files changed, 143 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc
and
REGSET_TM_CDSCR in powerpc corresponding to the ELF core note
sections added. It implements the get, set and active functions
for all these new register sets added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 178 +++
1 file
corresponding to the ELF core
note sections added in this regad. It implements the get, set and
active functions for all these new register sets added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/kernel/ptrace.c | 117 +++
1 file changed, 117
This patch moves 'reg.h' file from pmu 'ebb' sub directory
to the powerpc root directory to make all the register
definitions and instructions available for tests present
in other subsystems.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/pmu/ebb/ebb.c
. It also implements the get, set and active functions
for this new register sets added.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/include/uapi/asm/elf.h | 3 +
arch/powerpc/kernel/ptrace.c| 147
2 files changed, 150 insertions(+)
diff --git a
This patch adds SPR number for TAR, PPR, DSCR special
purpose registers. It also adds TM, VSX, VMX related
instructions which will then be used by patches later
in the series.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/reg.h | 21 +
1 file changed
This patch adds ptrace interface test for EBB specific
registers. This also adds some generic ptrace interface
based helper functions to be used by other patches later
on in the series.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/Makefile | 2 +-
tools
This patch adds ptrace interface test for GPR/FPR registers.
This adds ptrace interface based helper functions related to
GPR/FPR access and some assembly helper functions related to
GPR/FPR registers.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 5
This patch adds ptrace interface test for GPR/FPR registers
inside TM context. This adds ptrace interface based helper
functions related to checkpointed GPR/FPR access.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 3 +-
.../selftests/powerpc/ptrace
This patch adds ptrace interface test for GPR/FPR registers
inside suspended TM context.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 2 +-
.../selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c | 319 +
2 files changed, 320
This patch adds ptrace interface test for TAR, PPR, DSCR
registers. This also adds ptrace interface based helper
functions related to TAR, PPR, DSCR register access.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 3 +-
.../testing/selftests/powerpc
This patch adds ptrace interface test for TAR, PPR, DSCR
registers inside TM context. This also adds ptrace
interface based helper functions related to checkpointed
TAR, PPR, DSCR register access.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 2
This patch adds ptrace interface test for TAR, PPR, DSCR
registers inside suspended TM context.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 2 +-
.../selftests/powerpc/ptrace/ptrace-tm-spd-tar.c | 184 +
2 files changed, 185
This patch adds ptrace interface test for VSX, VMX registers.
This also adds ptrace interface based helper functions related
to VSX, VMX registers access. This also adds some assembly
helper functions related to VSX and VMX registers.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests
This patch adds ptrace interface test for VSX, VMX registers
inside TM context. This also adds ptrace interface based helper
functions related to chckpointed VSX, VMX registers access.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 3
This patch adds ptrace interface test for VSX, VMX registers
inside suspended TM context.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 3 +-
.../selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c | 212 +
2 files changed, 214
This patch adds ptrace interface test for TM SPR registers. This
also adds ptrace interface based helper functions related to TM
SPR registers access.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/Makefile| 2 +-
.../selftests/powerpc/ptrace/ptrace-tm-spr.c
This patch adds a .gitignore file for all the executables in
the ptrace test directory thus making invisible with git status
query.
Signed-off-by: Anshuman Khandual
---
tools/testing/selftests/powerpc/ptrace/.gitignore | 11 +++
1 file changed, 11 insertions(+)
create mode 100644 tools
ppc_md.
setup_arch inside setup_arch during boot.
Signed-off-by: Anshuman Khandual
---
Before the change:
# numactl -H
available: 2 nodes (0,3)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29 30 31
node 0 size: 0 MB
node 0 free: 0 MB
node 3 cpus:
node 3
On 10/14/2015 02:49 PM, Michael Ellerman wrote:
> On Wed, 2015-10-14 at 14:32 +0530, Anshuman Khandual wrote:
>> On shared processor LPARs, H_HOME_NODE_ASSOCIATIVITY hcall provides the
>> dynamic virtual-physical mapping for any given processor. Currently we
>> use VPHN nod
-by: Anshuman Khandual
---
- Works for normal page migration on both 64K and 4K base pages
- Works for 16MB huge page migration (64K) on Aneesh's V2 PTE changes
tools/testing/selftests/powerpc/mm/Makefile| 14 +-
.../selftests/powerpc/mm/hugepage-migration.c | 30
On 10/16/2015 07:54 AM, Michael Ellerman wrote:
> On Wed, 2015-10-14 at 15:43 +0530, Anshuman Khandual wrote:
>> On 10/14/2015 02:49 PM, Michael Ellerman wrote:
>>> On Wed, 2015-10-14 at 14:32 +0530, Anshuman Khandual wrote:
>>>> On shared processor LPARs, H_HOME_NOD
On 10/16/2015 07:57 AM, Michael Ellerman wrote:
> On Wed, 2015-10-14 at 14:32 +0530, Anshuman Khandual wrote:
>> On shared processor LPARs, H_HOME_NODE_ASSOCIATIVITY hcall provides the
>> dynamic virtual-physical mapping for any given processor. Currently we
>> use VPHN nod
On 10/15/2015 09:16 PM, Anshuman Khandual wrote:
> This adds two tests for memory page migration. One for normal page
> migration which works for both 4K or 64K base page size kernel and
> the other one is for 16MB huge page migration which will work both
> 4K or 64K base page siz
On 10/16/2015 05:09 PM, Aneesh Kumar K.V wrote:
> Anshuman Khandual writes:
>
>> On 10/15/2015 09:16 PM, Anshuman Khandual wrote:
>>> This adds two tests for memory page migration. One for normal page
>>> migration which works for both 4K or 64K base page size kerne
On 11/13/2015 10:27 AM, Michael Neuling wrote:
> Currently we can hit a scenario where we'll tm_reclaim() twice. This
> results in a TM bad thing exception because the second reclaim occurs
> when not in suspend mode.
>
> The scenario in which this can happen is the following. We attempt to
> de
On 11/13/2015 10:27 AM, Michael Neuling wrote:
> Print the MSR TM bits in oops messages. This appends them to the end
> like this:
> MSR: 800502823031
>
> You get the TM[] only if at least one TM MSR bit is set. Inside the
> TM[], E means Enabled (bit 32), S means Suspended (bit 33), and T
On 11/19/2015 02:45 PM, Denis Kirjanov wrote:
> On 11/19/15, Rashmica Gupta wrote:
>> > Most architectures use NR_syscalls as the #define for the number of
>> > syscalls.
>> >
>> > We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls.
>> >
>> > __NR_syscalls is not used outside arch
y: Rashmica Gupta
>
> Reviewed-by: Andrew Donnellan
Reviewed-by: Anshuman Khandual
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
On 11/19/2015 11:34 AM, Rashmica Gupta wrote:
> Most architectures use NR_syscalls as the #define for the number of syscalls.
>
> We use __NR_syscalls, and then define NR_syscalls as __NR_syscalls.
>
> __NR_syscalls is not used outside arch code, whereas NR_syscalls is. So as
> NR_syscalls must b
On 11/21/2015 11:38 AM, Rashmica Gupta wrote:
> It is common practice with powerpc to use 'rN' to refer to register 'N'.
> However
> when using the pt_regs_offset table we have to use 'gprN'.
>
> So add aliases such that both 'rN' and 'gprN' can be used.
>
> For example, we can currently do:
> $
On 11/20/2015 09:45 AM, Michael Neuling wrote:
> Test the kernel's signal return code to ensure that it doesn't crash
> when both the transactional and suspend MSR bits are set in the signal
> context.
>
> Signed-off-by: Michael Neuling
Tes
On 11/20/2015 09:45 AM, Michael Neuling wrote:
> Test the kernels signal generation code to ensure it can handle an
> invalid stack pointer when transactional.
>
> Signed-off-by: Michael Neuling
Tested-by: Anshuman Khandual
___
Linuxppc
-by: Anshuman Khandual
---
Changes in V2:
- Changed the script to accommodate review comments from Michael
- Disabled huge page migration test till it is supported on POWER
tools/testing/selftests/powerpc/mm/Makefile| 14 +-
.../selftests/powerpc/mm/hugepage-migration.c | 30
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Hi All,
>
> This patch series attempt to update book3s 64 linux page table format to
> make it more flexible. Our current pte format is very restrictive and we
> overload multiple pte bits. This is due to the non-availability of free bits
> in pte_
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> diff --git a/arch/powerpc/include/asm/pte-hash64-4k.h
> b/arch/powerpc/include/asm/book3s/64/hash-4k.h
> similarity index 99%
> rename from arch/powerpc/include/asm/pte-hash64-4k.h
> rename to arch/powerpc/include/asm/book3s/64/hash-4k.h
> index c1
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> +++ b/arch/powerpc/include/asm/book3s/pgtable.h
> @@ -0,0 +1,10 @@
> +#ifndef _ASM_POWERPC_BOOK3S_PGTABLE_H
> +#define _ASM_POWERPC_BOOK3S_PGTABLE_H
> +
> +#ifdef CONFIG_PPC64
> +#include
> +#else
> +#include
> +#endif
> +
> +#endif
Just as other
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> This further make a copy of pte defines to book3s/64/hash*.h. This
> remove the dependency on ppc64-4k.h and ppc64-64k.h
>
These files are pgtable-ppc64-4k.h and pgtable-ppc64-64k.h instead.
> Acked-by: Scott Wood
> Signed-off-by: Aneesh Kumar K
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Keep it seperate to make rebasing easier
This is confusing considering the fact that we are in between
some renaming/moving of header files, changing the references
they had before and so on. Could you please elaborate a bit
about what kind of chan
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> We copy only needed PTE bits define from pte-common.h to respective
> hash related header. This should greatly simply later patches in which
Will it be simplify
> we are going to change the pte f
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> +extern struct page *pmd_page(pmd_t pmd);
> static inline pte_t pud_pte(pud_t pud)
> {
> return __pte(pud_val(pud));
> @@ -294,15 +115,14 @@ static inline void pgd_set(pgd_t *pgdp, unsigned long
> val)
> * Find an entry in a page-table-di
Some sort of commit message enlisting what we copied from where and
which all header file references have changed will be helpful here.
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Acked-by: Scott Wood
> Signed-off-by: Aneesh Kumar K.V
> ---
> arch/powerpc/include/asm/{pgtable-ppc32.h => n
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Acked-by: Scott Wood
> Signed-off-by: Aneesh Kumar K.V
This and some previous patches can use some amount of description
in the commit message to make them clear. Now these first 17 patches
in the series are code movement and re organization of h
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> No real change, only style changes
If there are no real changes and it does not help upcoming
patches in the series, should not it just follow patch 17
after all the header movement has been completed before we
get down to real changes. IMHO the se
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> We should not expect pte bit position in asm code. Simply
> by moving part of that to C
There is a full stop missing in the second sentence. The commit
message here does not tell about why we would want to process the
page access flags or other PTE
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Only difference here is, we apply the WIMG mapping early, so rflags
> passed to updatepp will also be changed.
This patch can be folded back with the previous patch.
___
Linuxppc-dev mailing list
Linuxpp
On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> Currently we use 4 bits for each slot and pack all the 16 slot
> information related to a 64K linux page in a 64bit value. To do this
> we use 16 bits of pte_t. Move the hash slot valid bit out of pte_t
Looking into the existing function __real_pte
re
> happening on a 4K page at an address previously mapped by hugetlb.
>
> Signed-off-by: Aneesh Kumar K.V
Reviewed-by: Anshuman Khandual
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
On 12/01/2015 10:38 AM, Rashmica Gupta wrote:
> Currently tbegin, tend etc are written as opcodes or asm instructions. So
> standardise these to asm instructions.
I think the asm instructions can be used with only newer versions of GCC.
But not sure, does it work with the older gcc as well ?
On 12/01/2015 10:38 AM, Rashmica Gupta wrote:
> +int test_fork(void)
> +{
> + SKIP_IF(!have_htm());
> +
> + asm __volatile__(
> + "tbegin.;"
> + "blt1f; "
> + "li 0, 2;" /* fork syscall */
> + "sc ;"
> + "tend.;"
> +
On 12/02/2015 09:10 AM, Michael Ellerman wrote:
> On Tue, 2015-12-01 at 13:38 +0530, Anshuman Khandual wrote:
>> > On 12/01/2015 10:38 AM, Rashmica Gupta wrote:
>>> > > Currently tbegin, tend etc are written as opcodes or asm instructions.
>>> > > So
>
On 12/02/2015 08:52 AM, Rashmica Gupta wrote:
> If the transaction is aborted, the TAR should be rolled back to the
> checkpointed value before the transaction began.
And if it does not abort, it should continue to hold the changed
(inside the transaction) TAR value after the transaction finishes.
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 w
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 _PAGE_F_GIX
On 12/22/2015 10:44 AM, David Gibson wrote:
> I've discussed with Paul and Ben previously the possibility of
> extending PAPR to allow changing the size of a running guest's hash
> page table (HPT). This would allow for much more flexible memory
> hotplug, since the HPT wouldn't have to be sized i
On 12/24/2015 04:08 PM, David Gibson wrote:
> On Thu, Dec 24, 2015 at 02:52:53PM +0530, Anshuman Khandual wrote:
>> > On 12/22/2015 10:44 AM, David Gibson wrote:
>>> > > I've discussed with Paul and Ben previously the possibility of
>>> > > extendi
On 01/25/2016 11:16 AM, Michael Ellerman wrote:
> On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote:
>> > This makes vmalloc_to_phys() public as there will be another user
>> > (in-kernel VFIO acceleration) for it soon.
>> >
>> > As a part of future little optimization, this changes t
On 01/25/2016 02:03 PM, Madhavan Srinivasan wrote:
> Commit: 7a7868326d77 introduced PPMU_HAS_SSLOT flag to
> remove assumption of MMCRA[SLOT] with respect to
> PPMU_ALT_SIPR flag. Commit 7a7868326d77's message also
> specifies that Power8 does not support MMCRA[SLOT].
> But still PPMU_HAS_SSL
On 11/24/2015 01:42 PM, Denis Kirjanov wrote:
> On 11/24/15, Anshuman Khandual wrote:
>> This adds two tests for memory page migration. One for normal page
>> migration which works for both 4K or 64K base page size kernel and
>> the other one is for 16MB huge page migration
changes
to the PTE format, HugeTLB page migration happens successfully.
Signed-off-by: Anshuman Khandual
---
arch/powerpc/Kconfig | 4
1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index e4824fd..65d52a0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch
-by: Anshuman Khandual
---
Changes in V3:
- Minor changes to the code for considering skipped pages
- Enabled HugeTLB test in the script as it works now
Changes in V2:
- Changed the script to accommodate review comments from Michael
- Disabled huge page migration test till it is supported on POWER
On 01/28/2016 02:41 PM, Anshuman Khandual wrote:
> This enables HugeTLB page migration for PPC64_BOOK3S systems which implement
> HugeTLB page at the PMD level. It enables the kernel configuration option
As mentioned above, it works only for 16MB HugeTLB page migration on 64K base
On 01/28/2016 08:14 PM, Aneesh Kumar K.V wrote:
> Anshuman Khandual writes:
>
>> This enables HugeTLB page migration for PPC64_BOOK3S systems which implement
>> HugeTLB page at the PMD level. It enables the kernel configuration option
>> CONFIG_ARCH_ENABLE_HUGEPAGE_MI
On 01/29/2016 10:53 AM, David Gibson wrote:
> Here's a second prototype of the guest side work for runtime resizing
> of the has page table in PAPR guests.
>
> This is now feature complete. It implements the resizing, advertises
> it with CAS, and will automatically invoke it to maintain a good H
tplug is not configured.
>
> To allow for upcoming code which will need memblock_phys_mem_size() in the
> hotplug path, change it from __init to __init_memblock.
>
> Signed-off-by: David Gibson
Reviewed-by: Anshuman Khandual
___
Linuxppc-de
On 01/29/2016 10:53 AM, David Gibson wrote:
> Currently, the only error that htab_remove_mapping() can report is -EINVAL,
> if removal of bolted HPTEs isn't implemeted for this platform. We make
> a few clean ups to the handling of this:
>
> * EINVAL isn't really the right code - there's nothing
On 01/29/2016 10:53 AM, David Gibson wrote:
> At the moment the hpte_removebolted callback in ppc_md returns void and
> will BUG_ON() if the hpte it's asked to remove doesn't exist in the first
> place. This is awkward for the case of cleaning up a mapping which was
> partially made before failing
On 01/29/2016 10:53 AM, David Gibson wrote:
> This makes a number of cleanups to handling of mapping failures during
> memory hotplug on Power:
>
> For errors creating the linear mapping for the hot-added region:
> * This is now reported with EFAULT which is more appropriate than the
> previ
601 - 700 of 1528 matches
Mail list logo