tests/powerpc: Add matrix multiply assist
(MMA) test")
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/math/mma.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/powerpc/math/mma.S
b/tools/testing/selftests/powerpc/math/mma.S
index 8528c9849565..6
The comment being referred to was deleted in commit af1bbc3dd3d5 ("powerpc:
Remove UP only lazy floating point and vector optimisations").
Add a bit more detail so it's clear why we need to clear the FP/VEC/VSX
bits here.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/
The facility unavailable exception is only available on ppc book3s
machines so use CONFIG_PPC_BOOK3S_64 rather than CONFIG_PPC64.
tm_unavailable is only called from facility_unavailable_exception so can
also be under this Kconfig symbol.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel
it was never used either, so remove it as well.
>
Looks good to me.
Reviewed-by: Rashmica Gupta
> Fixes: aac6a91fea93 ("powerpc/asm: Remove unused symbols in asm-
> offsets.c")
> Cc: Rashmica Gupta
> Signed-off-by: Christophe Leroy
> ---
> arch/powerpc/
0x
> [14]: register SPRN_PMC6 = 0x
> ...
> PMC5/6 overflow 2
> [FAIL] Test FAILED on line 87
> failure: pmc56_overflow
> =
>
> Signed-off-by: Desnes A. Nunes do Rosario
Reviewed-by: Rashmica Gupta
> ---
> tools/testing/selft
EBBs")
> Signed-off-by: Gustavo Romero
> [desnesn: Only set MMCR0_PMAE when disabling MMCR0_FC, reflow
> comment]
> Signed-off-by: Desnes A. Nunes do Rosario
Reviewed and Tested-by: Rashmica Gupta
> ---
> .../testing/selftests/powerpc/pmu/ebb/cycles_with_freeze_test
FAIL] Test FAILED on line 52
> failure: cycles
> ==
>
> [desnesn: reflow of original comment]
> Signed-off-by: Desnes A. Nunes do Rosario
Reviewed and Tested-by: Rashmica Gupta
> ---
> .../powerpc/pmu/ebb/back_to_back_ebbs_test.c | 2 +-
> .../testing/s
We were always calling base_hpte_find() with primary = true,
even when we wanted to check the secondary table...
Fixes: 1515ab932156 powerpc/mm: Dump hash table
Signed-off-by: Rashmica Gupta
---
Thanks Paul for spotting this :)
arch/powerpc/mm/dump_hashpagetable.c | 2 +-
1 file changed, 1
fragile logic in setup_cpu_spec()
which detects when we're using a logical PVR and copies back the PMU
related fields from the raw CPU entry. So lets check the PVR directly.
Suggested-by: Michael Ellerman
Signed-off-by: Rashmica Gupta
---
v2: fixed misspelling of PVR_VER_E500V2
arch/power
fragile logic in setup_cpu_spec()
which detects when we're using a logical PVR and copies back the PMU
related fields from the raw CPU entry. So lets check the PVR directly.
Suggested-by: Michael Ellerman
Signed-off-by: Rashmica Gupta
---
arch/powerpc/perf/e500-pmu.c| 10 ++
On Mon, 2018-09-17 at 09:32 +0200, David Hildenbrand wrote:
> Am 03.09.18 um 02:36 schrieb Rashmica:
> > Hi David,
> >
> >
> > On 21/08/18 20:44, David Hildenbrand wrote:
> >
> > > There seem to be some problems as result of 30467e0b3be ("mm,
>
l now not attempt to remove memory that spans multiple
resources.
Signed-off-by: Rashmica Gupta
---
To replicate the above issue hot-remove and hot-add memory of different
sizes a bunch of times. This does it for me on POWER8 and POWER9:
for i in `seq 1 10`; do
echo $(( $i * 268435456)) > /s
On 08/08/18 17:25, Michael Ellerman wrote:
> Christophe Leroy writes:
>> diff --git a/lib/test_hexdump.c b/lib/test_hexdump.c
>> index 3f415d8101f3..626f580b4ff7 100644
>> --- a/lib/test_hexdump.c
>> +++ b/lib/test_hexdump.c
>> @@ -32,16 +32,33 @@ static const char * const test_data_2_le[] __in
Signed-off-by: Rashmica Gupta
---
Documentation/ABI/testing/ppc-memtrace | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/ABI/testing/ppc-memtrace
b/Documentation/ABI/testing/ppc-memtrace
index 2e8b93741270..9606aed33137 100644
--- a/Documentation/ABI
This patch allows the memory removed by memtrace to be readded to the
kernel. So now you don't have to reboot your system to add the memory
back to the kernel or to have a different amount of memory removed.
Signed-off-by: Rashmica Gupta
---
To remove 1GB from each node:
echo 1073741824 &g
On 26/07/18 04:11, John Allen wrote:
> Hi All,
>
> Under heavy stress and constant memory hot add/remove, I have observed
> the following loop to occasionally loop infinitely:
>
> mm/memory_hotplug.c:__offline_pages
>
> repeat:
> /* start memory hot removal */
> ret = -EINTR;
>
ssues are now resolved because we split the
> linear mapping at hotunplug time if necessary, as implemented in commit
> 4dd5f8a99e79 ("powerpc/mm/radix: Split linear mapping on hot-unplug").
>
> Signed-off-by: Balbir Singh
> Signed-off-by: Michael Neuling
Tested-by: Rashm
ry
> tracing")
> because the older code uses ppc64_caches.l1d.size instead of
> ppc64_caches.l1d.line_size
>
> Signed-off-by: Balbir Singh
Reviewed-by: Rashmica Gupta
gt; reliablly if prior to the hot-unplug of the memtrace
> region, we memset the regions we are about to
> hot unplug). After these patches no custom flushing
> is needed in the memtrace code.
>
> Signed-off-by: Balbir Singh
Reviewed-by: Rashmica Gupta
CONFIG_PPC64_HARDWARE_TRACING must be set to use this feature. This can only
be used on powernv platforms.
Signed-off-by: Rashmica Gupta
---
Documentation/ABI/testing/ppc-memtrace | 45 ++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/ABI
allows memory to be removed during runtime for the trace macro
to utilise.
Signed-off-by: Rashmica Gupta
---
v2 -> v3 : - Some changes required to compile with 4.12-rc3.
- Iterating from end of node rather than the start.
- As io_remap_pfn_range is defined as remap_pfn_range, just
This patch adds the config option to enable the removal
of memory from the kernel mappings at runtime. This needs
to be enabled for the hardware trace macro to work.
Signed-off-by: Rashmica Gupta
---
v2 -> v3: Better description
arch/powerpc/platforms/powernv/Kconfig | 8
a
ed-by: Rashmica Gupta
^^ x2
Signed-off-by: Anton Blanchard
Signed-off-by: Oliver O'Halloran
---
v1 -> v2: Fixed the commit author
Added VM_WARN_ON() if we attempt to remove an unbolted hpte
---
arch/powerpc/mm/hash_native_64.c | 33 +
1 fil
On 14/05/17 14:55, Anshuman Khandual wrote:
On 05/09/2017 12:36 PM, Rashmica Gupta wrote:
Sorry for the late reply, I somehow missed this.
On 03/05/17 21:56, Anshuman Khandual wrote:
On 05/03/2017 09:22 AM, Rashmica Gupta wrote:
On 28/04/17 19:52, Anshuman Khandual wrote:
On 04/28/2017
Sorry for the late reply, I somehow missed this.
On 03/05/17 21:56, Anshuman Khandual wrote:
On 05/03/2017 09:22 AM, Rashmica Gupta wrote:
On 28/04/17 19:52, Anshuman Khandual wrote:
On 04/28/2017 11:12 AM, Rashmica Gupta wrote:
Some powerpc hardware features may want to gain access to a
On 03/05/17 13:52, Rashmica Gupta wrote:
On 28/04/17 19:52, Anshuman Khandual wrote:
+static int check_memblock_online(struct memory_block *mem, void *arg)
+{
+if (mem->state != MEM_ONLINE)
+return -1;
+
+return 0;
+}
+
+static int change_memblock_state(str
On 03/05/17 13:52, Rashmica Gupta wrote:
On 28/04/17 19:52, Anshuman Khandual wrote:
+static int check_memblock_online(struct memory_block *mem, void *arg)
+{
+if (mem->state != MEM_ONLINE)
+return -1;
+
+return 0;
+}
+
+static int change_memblock_state(str
On 28/04/17 19:52, Anshuman Khandual wrote:
On 04/28/2017 11:12 AM, Rashmica Gupta wrote:
Some powerpc hardware features may want to gain access to a chunk of
What kind of features ? Please add specifics.
undisturbed real memory. This update provides a means to unplug said memory
On 28/04/17 19:39, Anshuman Khandual wrote:
On 04/28/2017 11:12 AM, Rashmica Gupta wrote:
Signed-off-by: Rashmica Gupta
Please describe a bit about the function/feature you are trying
to add with this new config option. The subject says " Add config
option for removal of memory" b
Anton Blanchard
Signed-off-by: Rashmica Gupta
---
This requires the 'Wire up hpte_removebolted for powernv' patch.
RFC -> v1: Added in two missing locks. Replaced the open-coded
flush_memory_region() with the existing
flush_inval_dcache_range(start, end).
memtrace_offline_pag
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/powernv/Kconfig | 4
arch/powerpc/platforms/powernv/Makefile | 1 +
2 files changed, 5 insertions(+)
diff --git a/arch/powerpc/platforms/powernv/Kconfig
b/arch/powerpc/platforms/powernv/Kconfig
index 6a6f4ef..1b8b3a8 100644
--- a
On 24/04/17 10:35, Michael Ellerman wrote:
Currently the code that dumps SLB entries uses a double-nested if. This
means the actual dumping logic is a bit squashed. Deindent it by using
continue.
Signed-off-by: Michael Ellerman
Reviewed-by: Rashmica Gupta
---
arch/powerpc/xmon/xmon.c
will appear to be contiguous. This patch
modifies the range coalescing so that only ranges that are both physically
and virtually contiguous are combined. This patch also adds to the dump
output the physical address at the start of each range.
Cc: Rashmica Gupta
Signed-off-by: Oliver O'Halloran
ifies the dumper so
both flags are shown in the dump.
Cc: Rashmica Gupta
Signed-off-by: Oliver O'Halloran
Should we also add in _PAGE_SAO that is in Book3s?
---
arch/powerpc/mm/dump_linuxpagetables.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/arch/
On 12/04/17 10:18, Stephen Rothwell wrote:
Hi Oliver,
On Wed, 12 Apr 2017 08:50:56 +1000 Anton Blanchard wrote:
From: Rashmica Gupta
Adds support for removing bolted (i.e kernel linear mapping) mappings
on powernv. This is needed to support memory hot unplug operations
which are required
ist in the hash table from 0GB to 9GB. This patch
changes the behaviour to iterate up to the end of RAM.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/mm/dump_hashpagetable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/mm/dump_hashpagetable.c
b/arch/
/memtrace/enable, the code will remove that much
memory from the end of each available chip's memory space. In addition, the
means to read out the contents of the unplugged memory is also provided by
reading out the /sys/kernel/debug/powerpc/memtrace//dump file.
Signed-off-by: Rashmica
))
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/asm-offsets.c | 30 --
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/arch/powerpc/kernel/asm-offsets.c
b/arch/powerpc/kernel/asm-offsets.c
index 3dbd3bd016ba..5efe5e297256 100644
--- a/arch/powerpc
: Rashmica Gupta
---
arch/powerpc/kernel/asm-offsets.c | 61 ---
1 file changed, 32 insertions(+), 29 deletions(-)
diff --git a/arch/powerpc/kernel/asm-offsets.c
b/arch/powerpc/kernel/asm-offsets.c
index 345a351909c5..3dbd3bd016ba 100644
--- a/arch/powerpc/kernel/asm
A lot of entries in asm-offests.c look like this:
DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
But there is a common macro, OFFSET, which makes this cleaner:
OFFSET(TI_flags, thread_info, flags), so use this.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/asm-offsets.c | 685
removed in commit
401d1f029beb ("[PATCH] syscall entry/exit revamp")
CLONE_VM: Added in commit 14cf11af6cf6 ("powerpc: Merge enough to start
building in arch/powerpc.") and currently unused.
---
CLONE_UNTRACED: Added in commit 14cf11af6cf6 ("powerpc: Merge enough to
sta
On 31/05/16 11:34, Rashmica wrote:
On 30/05/16 17:32, Benjamin Herrenschmidt wrote:
On Mon, 2016-05-30 at 16:18 +1000, Rashmica Gupta wrote:
MPIC was only used by Power3 which is now unsupported, so drop support
for MPIC. XICS is now the only supported interrupt controller for
pSeries so
On 30/05/16 17:32, Benjamin Herrenschmidt wrote:
On Mon, 2016-05-30 at 16:18 +1000, Rashmica Gupta wrote:
MPIC was only used by Power3 which is now unsupported, so drop support
for MPIC. XICS is now the only supported interrupt controller for
pSeries so make the XICS functions generic.
The
MPIC was only used by Power3 which is now unsupported, so remove MPIC
code. XICS is now the only supported interrupt controller for
pSeries so do some cleanups too.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/pseries/event_sources.c | 53 +++---
1 file changed
MPIC was only used by Power3 which is now unsupported, so remove MPIC
code.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/pseries/hotplug-cpu.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c
b/arch/powerpc/platforms
MPIC was only used by Power3 which is now unsupported, so remove MPIC
code. XICS is now the only supported interrupt controller for
pSeries so do some cleanups too.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/pseries/kexec.c | 23 +--
arch/powerpc/platforms
MPIC was only used by Power3 which is now unsupported, so remove MPIC
code. XICS is now the only supported interrupt controller for
pSeries so do some cleanups too.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/pseries/pseries.h | 6 ++
arch/powerpc/platforms/pseries/setup.c
MPIC was only used by Power3 which is now unsupported, so drop support
for MPIC. XICS is now the only supported interrupt controller for
pSeries so make the XICS functions generic.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/platforms/pseries/setup.c | 77
onfig option must be selected.
Signed-off-by: Rashmica Gupta
---
v2 -> v3: Changed to be compatible with P9.
arch/powerpc/mm/Makefile | 3 +-
arch/powerpc/mm/dump_hashpagetable.c | 543 +++
2 files changed, 545 insertions(+), 1 deletion(-)
cre
Useful to be able to dump the kernels page tables to check permissions
and memory types - derived from arm64's implementation.
Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.
Signed-off-by: Rashmica Gupta
---
v2 -> v3: Chang
This patch adds SROP mitigation logic to the powerpc signal delivery
and sigreturn code. The cookie is placed in the sigframe just after (at
a lower address) the ABI gap.
This is derived from the x86 SROP mitigation patch:
https://lkml.org/lkml/2016/3/29/791.
Signed-off-by: Rashmica Gupta
This is based off Scotty's patch: https://lkml.org/lkml/2016/3/29/792.
The only difference being that the sig_cookie is apart of the struct
sighand_struct instead of task_struct so the the sig_cookie is shared
between threads.
Signed-off-by: Rashmica Gupta
---
fs/exec.c
c5 to rc5 with these patches no new tests failed.
Any comments/suggestions are welcome!
Rashmica Gupta (2):
powerpc/SROP Mitigation: Architecture independent SROP mitigation code
powerpc/SROP mitigation: Add cookies to sigframes
arch/powerpc/kernel/signal_32.c
The same logic for tm_abort appears twice, so pull it out into a
function.
Signed-off-by: Rashmica Gupta
---
v2: Removed some #ifdefs from inside C code and changed the formatting of the
comment.
arch/powerpc/mm/hash_utils_64.c | 56 +++--
1 file changed, 26
On 11/05/16 15:03, Balbir Singh wrote:
On 11/05/16 14:55, Rashmica Gupta wrote:
The same logic for tm_abort appears twice, so pull it out into a
function.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/mm/hash_utils_64.c | 47 ++---
1 file changed, 21
The same logic for tm_abort appears twice, so pull it out into a
function.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/mm/hash_utils_64.c | 47 ++---
1 file changed, 21 insertions(+), 26 deletions(-)
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch
test-hexdump.c doesn't work on BE because the test data is in LE format.
So add in data for BE.
Signed-off-by: Rashmica Gupta
---
V2: Checking __BYTE_ORDER__.
lib/test_hexdump.c | 35 +++
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git
Support for the A2 cpu was removed in commit fb5a515704d7 ("powerpc:
Remove platforms/wsp and associated pieces"), and the externs:
__setup_cpu_a2 and __restore_cpu_a2 are still around and unused, so
remove them.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/cputable.c | 2
test-hexdump.c doesn't work on BE because the test data is in LE format.
So add in data for BE.
Signed-off-by: Rashmica Gupta
---
lib/test_hexdump.c | 35 +++
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git a/lib/test_hexdump.c b/lib/test_hexd
Useful to be able to dump the kernel hash page table to check
which pages are hashed along with their sizes and other details.
Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/mm/Makefile
Useful to be able to dump the kernels page tables to check permissions
and memory types - derived from arm64's implementation.
Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.
Signed-off-by: Rashmica Gupta
---
Do not check for COMBO
Useful to be able to dump the kernel hash page table to check
which pages are hashed along with their sizes and other details.
Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/mm/Makefile
Useful to be able to dump the kernels page tables to check permissions
and memory types - derived from arm64's implementation.
Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
config option must be selected.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/Kconfig.
On 23/02/16 16:30, Anshuman Khandual wrote:
On 02/23/2016 03:57 AM, Rashmica wrote:
Hi Anshuman,
Thanks for the feedback!
On 22/02/16 21:13, Anshuman Khandual wrote:
On 02/22/2016 11:32 AM, Rashmica Gupta wrote:
Useful to be able to dump the kernel page tables to check permissions
and
Hi Anshuman,
Thanks for the feedback!
On 22/02/16 21:13, Anshuman Khandual wrote:
On 02/22/2016 11:32 AM, Rashmica Gupta wrote:
Useful to be able to dump the kernel page tables to check permissions and
memory types - derived from arm64's implementation.
Add a debugfs file to check the
c
new file mode 100644
index ..937b10fc40cc
--- /dev/null
+++ b/arch/powerpc/mm/dump.c
@@ -0,0 +1,364 @@
+/*
+ * Copyright 2016, Rashmica Gupta, IBM Corp.
+ *
+ * Debug helper to dump the current kernel pagetables of the system
+ * so that we can see what the various memory ra
te the range of FORCE_MAX_ZONEORDER from 9-64 to 8-9 for 64K pages
and from 13-64 to 9-13 for 4K pages.
Signed-off-by: Rashmica Gupta
---
v2: Changed the range for 4K pages and minimum for 64K pages as suggested
by Balbir Singh.
arch/powerpc/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
On 19/02/16 15:08, Balbir Singh wrote:
On 19/02/16 12:55, Rashmica Gupta wrote:
Currently on PPC64 changing kernel pagesize from 4K to 64K leaves
FORCE_MAX_ZONEORDER set to 13 - which produces a compile error.
The error occurs because of the following constraint (from
include/linux/mmzone.h
-9.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index e4824fd04bb7..3bd3465b93ba 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -585,7 +585,7 @@ endc
Testing that the TM SPRs are behaving the way they should. Uses more
threads than cpus to see if the following register values persist with
context switching:
- the FS (failure summary) flag in TEXASR
- TFIAR and TFHAR
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/tm
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
---
tools/testing
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
---
tools/testing/selftests/powerpc/tm/.gitignore | 1 +
tools/testing/selftests/powerpc/tm/Makefile | 2 +-
tools/testing/selftests
Currently tbegin, tend etc are written as opcodes or asm instructions. So
standardise these to asm instructions.
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 16 +---
tools/testing/selftests/powerpc/tm/tm-signal-stack.c | 4 ++--
2 files
Currently there is a reg.h in pmu/ebb that has defines that are useful in
other powerpc selftests so move this up into selftests/powerpc folder. Also
include in utils.h - as this is often used in self tests. Add in some other
useful register defines.
---
tools/testing/selftests/powerpc/pmu/ebb/ebb
Rebase the previous powerpc selftests against the current next tree.
Rashmica Gupta (5):
selftests/powerpc: Make reg.h common to all powerpc selftests
selftests/powerpc: Standardise TM calls
selftests/powerpc: Add test for forking inside transaction
selftests/powerpc: Add TM test to check
Just testing that things are behaving the way they should. Uses more
threads than cpus to see if the following values persist with context
switching:
- the FS (failure summary) flag in TEXASR
- TFIAR and TFHAR
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/tm/.gitignore | 1
When a transaction is aborted, VSR values should rollback to the
checkpointed values before the transaction began. VSRs used elsewhere in
the kernel during a transaction, or while the transaction is suspended
should not affect the checkpointed values.
Signed-off-by: Rashmica Gupta
---
Prior to
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
---
This must be
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 must be run before tm
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 tests in the Makefile
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
---
Updated description. No functional changes.
tools/testing/selftests/powerpc/tm/.gitignore | 1 +
tools/testing/selftests/powerpc/tm
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
---
No functional changes. Fixed
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
---
Added more
If the transaction is aborted, the TAR should be rolled back to the
checkpointed value before the transaction began.
Signed-off-by: Rashmica Gupta
---
Somehow had a missing brace and extra whitespace.
tools/testing/selftests/powerpc/tm/.gitignore | 1 +
tools/testing/selftests/powerpc/tm
If the transaction is aborted, the TAR should be rolled back to the
checkpointed value before the transaction began.
Signed-off-by: Rashmica Gupta
---
To check this yourself, undo the changes from the patch "powerpc/tm: Fix
context switching TAR, PPR and DSCR SPRs".
tools/testing
If the transaction is aborted, the DSCR should be rolled back to the
checkpointed value before the transaction began.
Signed-off-by: Rashmica Gupta
---
To check this yourself, undo the changes from the patch "powerpc/tm: Fix
context switching TAR, PPR and DSCR SPRs".
tools/testing
15 10:38 AM, Rashmica Gupta wrote:
+int test_fork(void)
+{
+ SKIP_IF(!have_htm());
+
+ asm __volatile__(
+ "tbegin.;"
+ "blt1f; "
+ "li 0, 2;" /* fork syscall */
+ "sc ;"
The resched-dscr test does not currently check for TM, so add in check.
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/powerpc/tm/tm-resched-dscr.c
b/tools/testing/selftests
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
---
tools/testing/selftests/powerpc/tm/.gitignore | 1 +
tools/testing/selftests/powerpc/tm/Makefile | 2 +-
tools/testing/selftests
Currently tbegin, tend etc are written as opcodes or asm instructions. So
standardise these to asm instructions.
Signed-off-by: Rashmica Gupta
---
tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 16 ++--
tools/testing/selftests/powerpc/tm/tm-signal-stack.c | 4 ++--
2 files
This is reliant on the following patch series:
- selftests/powerpc by Michael Ellerman
- selftests/powerpc by Michael Neuling
- powerpc/tm by Michael Neuling
Rashmica Gupta (3):
selftests/powerpc: Standardise TM calls
selftests/powerpc: Add test for forking inside transaction
selftests
All users of QPACE have upgraded to QPACE2 so remove the Cell QPACE code.
Signed-off-by: Rashmica Gupta
---
Also removed the reference to QPACE in the Documentation.
Documentation/devicetree/bindings/serial/8250.txt | 1 -
arch/powerpc/boot/Makefile| 2 -
arch
All users of QPACE have upgraded to QPACE2 so remove the Cell QPACE code.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/boot/Makefile| 2 -
arch/powerpc/configs/ppc64_defconfig | 1 -
arch/powerpc/platforms/cell/Kconfig | 5 -
arch/powerpc/platforms/cell
version 4.4.0-rc2-8-gc51af91c3ab3-dirty (rashmica@circle) (gcc
version 5.1.1 20150629 (GCC) ) #45 SMP Wed Nov 25 10:25:12 AEDT 2015
Signed-off-by: Rashmica Gupta
---
Added example output and word wrapping.
arch/powerpc/xmon/xmon.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/pow
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.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/xmon/xmon.c | 2 +
The ml command in xmon currently only works for 32-bit values and so fails
to find 64-bit values on a ppc64 machine. So change to work for 64-bit
values.
This is based off a patch by Josh Boyer.
Signed-off-by: Rashmica Gupta
---
Based off this patch: http://patchwork.ozlabs.org/patch/90309
:string %r5:s32
%r6:s32 %r7:s32" > /sys/kernel/debug/tracing/kprobe_events
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/ptrace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 737c0d0b53ac..30a03c03fe73 1006
__NR_syscalls
with NR_syscalls.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/include/asm/unistd.h| 3 +--
arch/powerpc/include/asm/vdso_datapage.h | 2 +-
arch/powerpc/kernel/systbl_chk.c | 2 +-
arch/powerpc/kernel/systbl_chk.sh| 2 +-
arch/powerpc/kernel/vdso.c | 2
This function has been unused since commit 14cf11af6cf6 ("powerpc: Merge enough
to start building in arch/powerpc."), so remove it.
Signed-off-by: Rashmica Gupta
---
arch/powerpc/kernel/traps.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/arch/powerpc/kernel/traps.c b/ar
99 matches
Mail list logo