[PATCH] selftests/powerpc: Fix matrix multiply assist test

2022-06-16 Thread Rashmica Gupta
rpc: 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..61cc88b1b26

[PATCH] powerpc/signal: Update comment for clarity

2022-06-16 Thread Rashmica Gupta
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/signa

[PATCH] powerpc: make facility_unavailable_exception 64s

2022-06-16 Thread Rashmica Gupta
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

Re: [PATCH] powerpc/asm-offsets: GPR14 is not needed either

2021-03-24 Thread Rashmica Gupta
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/

Re: [PATCH 3/3] selftests/powerpc: ensure PMC reads are set and ordered on count_pmc

2020-04-22 Thread Rashmica Gupta
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

Re: [PATCH, RESEND, 2/3] selftests/powerpc: enable performance alerts when freezing counters on cycles_with_freeze_test selftest

2020-04-22 Thread Rashmica Gupta
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

Re: [PATCH, RESEND, 1/3] selftests/powerpc: Use write_pmc instead of count_pmc to reset PMCs on ebb tests

2020-04-22 Thread Rashmica Gupta
; [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

[PATCH] powerpc/mm: Check secondary hash page table

2019-02-12 Thread Rashmica Gupta
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

[PATCH v2] powerpc/perf: Use PVR rather than oprofile field to determine CPU version

2019-02-05 Thread Rashmica Gupta
gic 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/powerpc/perf/e500-pm

[PATCH] powerpc/perf: Use PVR rather than oprofile field to determine CPU version

2019-02-05 Thread Rashmica Gupta
gic 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 ++ arch/powerpc/p

Re: [PATCH RFCv2 3/6] mm/memory_hotplug: fix online/offline_pages called w.o. mem_hotplug_lock

2018-09-24 Thread Rashmica Gupta
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, >

[PATCH] powerpc/memtrace: Remove memory in chunks

2018-08-16 Thread Rashmica Gupta
will 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

Re: [PATCH] lib/test_hexdump: fix failure on big endian cpu

2018-08-08 Thread rashmica
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[]

[PATCH 2/2] Update documentation on ppc-memtrace

2018-08-03 Thread Rashmica Gupta
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

[PATCH 1/2] powerpc: Allow memory that has been hot-removed to be hot-added

2018-08-03 Thread Rashmica Gupta
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 > /

Re: Infinite looping observed in __offline_pages

2018-07-31 Thread Rashmica
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; >    

Re: [resend] Revert "powerpc/powernv: Increase memory block size to 1GB on radix"

2018-05-01 Thread rashmica
chael Neuling <mi...@neuling.org> Tested-by: Rashmica Gupta <rashmic...@gmail.com> > --- > > Resend with a newer commit message grabbed from an email sent by mpe. > > arch/powerpc/platforms/powernv/setup.c | 10 +- > 1 file changed, 1 insertion(+), 9 deletions(-) >

Re: [PATCH 2/2] powerpc/mm/memtrace: Let the arch hotunplug code flush cache

2018-04-10 Thread rashmica
gt; tracing") > because the older code uses ppc64_caches.l1d.size instead of > ppc64_caches.l1d.line_size > > Signed-off-by: Balbir Singh <bsinghar...@gmail.com> Reviewed-by: Rashmica Gupta <rashmic...@gmail.com>

Re: [PATCH 1/2] powerpc/mm: Flush cache on memory hot(un)plug

2018-04-10 Thread rashmica
eliablly 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 <bsinghar...@gmail.com> Reviewed-by: Rashmica Gupta <rashmic...@gmail.com>

[PATCH v3 3/3] Add documentation for the powerpc memtrace debugfs files

2017-05-31 Thread 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 <rashmic...@gmail.com> --- Documentation/ABI/testing/ppc-memtrace | 45 ++ 1 file changed, 45 insertions(+) create mode

[PATCH v3 2/3] powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-31 Thread Rashmica Gupta
allows memory to be removed during runtime for the trace macro to utilise. Signed-off-by: Rashmica Gupta <rashmic...@gmail.com> --- 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 i

[PATCH v3 1/3] powerpc/powernv: Add config option for removal of memory

2017-05-31 Thread Rashmica Gupta
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 <rashmic...@gmail.com> --- v2 -> v3: Better description arch/powerpc/platforms/powernv/Kco

Re: [PATCH 1/6] powerpc/mm: Wire up hpte_removebolted for powernv

2017-05-24 Thread Rashmica Gupta
evices. Reviewed-by: Rashmica Gupta <rashmic...@gmail.com> ^^ x2 Signed-off-by: Anton Blanchard <an...@samba.org> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> --- v1 -> v2: Fixed the commit author Added VM_WARN_ON() if we attempt to remove an unbolted

Re: [PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-14 Thread Rashmica Gupta
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

Re: [PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-09 Thread Rashmica Gupta
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

Re: [PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-03 Thread Rashmica Gupta
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

Re: [PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-03 Thread Rashmica Gupta
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

Re: [PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-05-02 Thread Rashmica Gupta
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

Re: [PATCH 1/2] powerpc/powernv: Add config option for removal of memory

2017-05-02 Thread Rashmica Gupta
On 28/04/17 19:39, Anshuman Khandual wrote: On 04/28/2017 11:12 AM, Rashmica Gupta wrote: Signed-off-by: Rashmica Gupta <rashmic...@gmail.com> Please describe a bit about the function/feature you are trying to add with this new config option. The subject says " Add config option

[PATCH 2/2] v1 powerpc/powernv: Enable removal of memory for in memory tracing

2017-04-27 Thread Rashmica Gupta
Blanchard <an...@samba.org> Signed-off-by: Rashmica Gupta <rashmic...@gmail.com> --- 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_r

[PATCH 1/2] powerpc/powernv: Add config option for removal of memory

2017-04-27 Thread Rashmica Gupta
Signed-off-by: Rashmica Gupta <rashmic...@gmail.com> --- 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 6

Re: [PATCH] powerpc/xmon: Deindent the SLB dumping logic

2017-04-23 Thread Rashmica Gupta
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 <m...@ellerman.id.au> Reviewed-by: Rashmica Gupta &l

Re: [PATCH 2/2] powerpc/mm: add phys addr to linux page table dump

2017-04-11 Thread Rashmica Gupta
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 <rashmic...@gmail.com> Signed-off-by:

Re: [PATCH 1/2] powerpc/mm: fix up pgtable dump flags

2017-04-11 Thread Rashmica Gupta
the dumper so both flags are shown in the dump. Cc: Rashmica Gupta <rashmic...@gmail.com> Signed-off-by: Oliver O'Halloran <ooh...@gmail.com> Should we also add in _PAGE_SAO that is in Book3s? --- arch/powerpc/mm/dump_linuxpagetables.c | 13 + 1 file changed, 1

Re: [PATCH 8/9] powerpc/mm: Wire up hpte_removebolted for powernv

2017-04-11 Thread Rashmica Gupta
On 12/04/17 10:18, Stephen Rothwell wrote: Hi Oliver, On Wed, 12 Apr 2017 08:50:56 +1000 Anton Blanchard <an...@samba.org> wrote: From: Rashmica Gupta <rashmic...@gmail.com> Adds support for removing bolted (i.e kernel linear mapping) mappings on powernv. This is needed to su

[PATCH] powerpc/mm: Dump hash table

2017-04-09 Thread Rashmica Gupta
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 <rashmic...@gmail.com> --- arch/powerpc/mm/dump_hashpagetable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/dump_hashpagetabl

[RFC] Remove memory from nodes for memtrace.

2017-02-22 Thread Rashmica Gupta
/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 Gupta

[PATCH 3/3] powerpc/asm: Add STACK_INT_OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
)) Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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

[PATCH 2/3] powerpc/asm: Define STACK_OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
-by: Rashmica Gupta <rashm...@gmail.com> --- 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

[PATCH 1/3] powerpc/asm: Use OFFSET macro in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/

[PATCH] powerpc/asm: Remove unused symbols in asm-offsets.c

2016-06-01 Thread Rashmica Gupta
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

Re: [PATCH 1/5] powerpc/pseries: Drop support for MPIC in pseries

2016-05-30 Thread Rashmica
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

Re: [PATCH 1/5] powerpc/pseries: Drop support for MPIC in pseries

2016-05-30 Thread Rashmica
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

[PATCH 5/5] powerpc/pseries: Remove MPIC from pseries event sources

2016-05-30 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/platforms/pseries/event_sources.

[PATCH 4/5] powerpc/pseries: Remove MPIC from pseries cpu hotplug

2016-05-30 Thread Rashmica Gupta
MPIC was only used by Power3 which is now unsupported, so remove MPIC code. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c

[PATCH 3/5] powerpc/pseries: Remove MPIC from pseries kexec

2016-05-30 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/platforms/pseries/kexec.c | 23 +--

[PATCH 2/5] powerpc/pseries: Remove MPIC from pseries smp

2016-05-30 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/platforms/pseries/pseries.h | 6 ++ arch/powerpc/pla

[PATCH 1/5] powerpc/pseries: Drop support for MPIC in pseries

2016-05-30 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/platforms/pseries/setup.

[v3 PATCH 2/2] powerpc/mm: Dump hash table

2016-05-26 Thread Rashmica Gupta
option must be selected. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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

[v3 PATCH 1/2] powerpc/mm: Dump linux pagetables

2016-05-26 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- v2

[PATCH 2/2] powerpc/SROP mitigation: Add cookies to sigframes

2016-05-17 Thread Rashmica Gupta
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 <ra

[PATCH 1/2] powerpc/SROP Mitigation: Architecture independent SROP mitigation code

2016-05-17 Thread 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 <rashm...@gmail.com> --- fs/

[RFC 0/2] SROP Mitigation for powerpc

2016-05-17 Thread Rashmica Gupta
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 | 33

Re: [PATCH] powerpc/tm: Clean up duplication of code

2016-05-11 Thread Rashmica
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 <rashm...@gmail.com> --- arch/powerpc/mm/hash_utils_64.

[PATCH] powerpc/tm: Clean up duplication of code

2016-05-10 Thread Rashmica Gupta
The same logic for tm_abort appears twice, so pull it out into a function. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- arch/powerpc/mm/hash_utils_64.c | 47 ++--- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/arch/powe

[PATCH V2] lib/test-hexdump: Changed to work on BE

2016-05-09 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- V2: Checking __BYTE_ORDER__. lib/test_hexdump.c | 35 +++ 1 file changed, 27 insertions(+), 8 del

[PATCH] powerpc: Remove unused remnants from A2 cpu

2016-04-11 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arc

[PATCH] lib/test-hexdump: Changed to work on BE

2016-04-11 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- lib/test_hexdump.c | 35 +++ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/lib/test_hexdu

[PATCH 2/2] powerpc/pagetable: Add option to dump kernel hashpagetable

2016-03-28 Thread Rashmica Gupta
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 <rashm...@gmail.com> ---

[v2 PATCH 1/2] powerpc/pagetable: Add option to dump the linux pagetables

2016-03-28 Thread Rashmica Gupta
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 <rashm...@gmail.com>

[PATCH 2/2] powerpc/pagetable: Add option to dump kernel hashpagetable

2016-03-21 Thread Rashmica Gupta
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 <rashm...@gmail.com> ---

[PATCH 1/2] powerpc/pagetable: Add option to dump the linux pagetables

2016-03-21 Thread Rashmica Gupta
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 <rashm...@gmail.com> ---

Re: [PATCH] powerpc/pagetable: Add option to dump kernel pagetable

2016-02-22 Thread Rashmica
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

Re: [PATCH] powerpc/pagetable: Add option to dump kernel pagetable

2016-02-22 Thread Rashmica
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 page

[PATCH] powerpc/pagetable: Add option to dump kernel pagetable

2016-02-21 Thread Rashmica Gupta
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 rang

[PATCH V2] powerpc/Kconfig: Update config option based on page size.

2016-02-18 Thread Rashmica Gupta
pdate 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 <rashm...@gmail.com> --- v2: Changed the range for 4K pages and minimum for 64K pages as suggested by Balbir Singh. arch/powerpc/Kconfig | 4 ++-- 1 file change

Re: [PATCH] powerpc/Kconfig: Update config option based on page size.

2016-02-18 Thread Rashmica
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

[PATCH] powerpc/Kconfig: Update config option based on page size.

2016-02-18 Thread Rashmica Gupta
-9. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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/Kco

[PATCH 1/5] selftests/powerpc: Make reg.h common to all powerpc selftests

2015-12-22 Thread Rashmica Gupta
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. ---

[PATCH 2/5] selftests/powerpc: Standardise TM calls

2015-12-22 Thread Rashmica Gupta
Currently tbegin, tend etc are written as opcodes or asm instructions. So standardise these to asm instructions. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 16 +--- tools/testing/selftests/powerpc/tm/tm-signal-s

[PATCH 5/5] selftests/powerpc: Add test to check if TM SPRs are corrupted

2015-12-22 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- tools/t

[PATCH 3/5] selftests/powerpc: Add test for forking inside transaction

2015-12-22 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 <rashm...@gmail.com> --- tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selftests/powerpc/tm/Makefile | 2 +-

[PATCH 4/5] selftests/powerpc: Add TM test to check if TAR is corrupted

2015-12-22 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 <rashm...@gmail.

[PATCH 0/5] Rebase powerpc selftests

2015-12-22 Thread Rashmica Gupta
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

[PATCH] selftests/powerpc: Add test to check if TM SPRs are corrupted

2015-12-15 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- tools/testing/selftests/p

[PATCH] selftests/powerpc: Add test to check if VSRs are corrupted

2015-12-08 Thread Rashmica Gupta
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 <ra

[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 <rashm...@gmail.com> --- This must be run before tm-signal-stack as after this test is run a reboot is required -- changed 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 <rashm...@gmail.

[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 <rashm...@gmail.

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

2015-12-01 Thread Rashmica Gupta
If the transaction is aborted, the DSCR should be rolled back to the checkpointed value before the transaction began. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- To check this yourself, undo the changes from the patch "powerpc/tm: Fix context switching TAR, PPR and DSCR SPR

Re: [PATCH 2/3] selftests/powerpc: Add test for forking inside transaction

2015-12-01 Thread Rashmica
:38 AM, Rashmica Gupta wrote: +int test_fork(void) +{ + SKIP_IF(!have_htm()); + + asm __volatile__( + "tbegin.;" + "blt1f; " + "li 0, 2;" /* fork syscall */ + "sc ;" +

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

2015-12-01 Thread Rashmica Gupta
If the transaction is aborted, the TAR should be rolled back to the checkpointed value before the transaction began. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- To check this yourself, undo the changes from the patch "powerpc/tm: Fix context switching TAR, PPR and DSCR SPR

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

2015-12-01 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 <rashm...@gmail.com> --- Updated description. No functional changes. tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/t

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

2015-12-01 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 <rashm...@gmail.

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

2015-12-01 Thread Rashmica Gupta
If the transaction is aborted, the TAR should be rolled back to the checkpointed value before the transaction began. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- Somehow had a missing brace and extra whitespace. tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/t

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

2015-12-01 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 <rashm...@gmail.

[PATCH 3/3] selftests/powerpc: Add in check for TM

2015-11-30 Thread Rashmica Gupta
The resched-dscr test does not currently check for TM, so add in check. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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

[PATCH 2/3] selftests/powerpc: Add test for forking inside transaction

2015-11-30 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 <rashm...@gmail.com> --- tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selftests/powerpc/tm/Makefile | 2 +-

[PATCH 1/3] selftests/powerpc: Standardise TM calls

2015-11-30 Thread Rashmica Gupta
Currently tbegin, tend etc are written as opcodes or asm instructions. So standardise these to asm instructions. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- tools/testing/selftests/powerpc/tm/tm-resched-dscr.c | 16 ++-- tools/testing/selftests/powerpc/tm/tm-signal-s

[v2] powerpc/cell: Remove the Cell QPACE code

2015-11-30 Thread Rashmica Gupta
All users of QPACE have upgraded to QPACE2 so remove the Cell QPACE code. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- Also removed the reference to QPACE in the Documentation. Documentation/devicetree/bindings/serial/8250.txt | 1 - arch/powerpc/boot/Ma

[PATCH 0/3] selftests/powerpc: Transactional Memory

2015-11-30 Thread Rashmica Gupta
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

[PATCH] powerpc/cell: Remove the Cell QPACE code.

2015-11-25 Thread Rashmica Gupta
All users of QPACE have upgraded to QPACE2 so remove the Cell QPACE code. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- arch/powerpc/boot/Makefile| 2 - arch/powerpc/configs/ppc64_defconfig | 1 - arch/powerpc/platforms/cell/Kconfig | 5 - arch/p

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

2015-11-24 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- ar

[PATCH] powerpc: Fix xmon ml command to work with 64 bit values.

2015-11-24 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- Based off this patch

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

2015-11-24 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- Added example output and word wrapping. arch/powerpc/xmon/xmon.c | 2 ++ 1 file changed, 2 insertions(+) d

[PATCH] powerpc: Add rN aliases to the pt_regs_offset table.

2015-11-20 Thread Rashmica Gupta
el/debug/tracing/kprobe_events Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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 100644 --- a/arch/powerpc/ke

[PATCH] powerpc: Remove unused function trace_syscall()

2015-11-18 Thread Rashmica Gupta
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 <rashm...@gmail.com> --- arch/powerpc/kernel/traps.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arc

[PATCH] powerpc: Standardise on NR_syscalls rather than __NR_syscalls.

2015-11-18 Thread Rashmica Gupta
__NR_syscalls with NR_syscalls. Signed-off-by: Rashmica Gupta <rashm...@gmail.com> --- 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/