[PATCH 5/5] powerpc/64s/exception: simplify hmi control flow

2019-06-28 Thread Nicholas Piggin
Branch to the relocated 0xc000 address early (still in real mode), to simplify subsequent branches. Have the virt mode handler avoid just 'windup' and redo the exception from scratch, rather than branching back to the trampoline. Rearrange the stack setup instruction location to match the system

[PATCH 4/5] powerpc/64s/exception: hmi remove special case macro

2019-06-28 Thread Nicholas Piggin
No code change. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 89ea4f3b07cb..23aba27b2f59 100644 ---

Re: [PATCH 41/87] sound: ppc: remove memset after dma_alloc_coherent

2019-06-28 Thread Takashi Iwai
On Thu, 27 Jun 2019 19:40:17 +0200, Fuqian Huang wrote: > > In commit af7ddd8a627c > ("Merge tag 'dma-mapping-4.21' of > git://git.infradead.org/users/hch/dma-mapping"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Signed-off-by: Fuqian Huang Applied,

[PATCH 1/5] powerpc/64s/exception: remove bad stack branch

2019-06-28 Thread Nicholas Piggin
The bad stack test in interrupt handlers has a few problems. For performance it is taken in the common case, which is a fetch bubble and a waste of i-cache. For code development and maintainence, it requires yet another stack frame setup routine, and that constrains all exception handlers to

[PATCH 0/5] rework bad stack, sreset, hmi handling

2019-06-28 Thread Nicholas Piggin
These are some significant changes to generated code here, again with the aim of simplifying and improving code sharing. Patches 1, 2-3, and 4-5 are independent in case any run into problems. Last big thing to do is machine check I'll try to send out tonight. After that we can start more

Re: [PATCH v2 4/7] powerpc/ftrace: Additionally nop out the preceding mflr with -mprofile-kernel

2019-06-28 Thread Nicholas Piggin
Naveen N. Rao's on June 27, 2019 9:23 pm: > With -mprofile-kernel, gcc emits 'mflr r0', followed by 'bl _mcount' to > enable function tracing and profiling. So far, with dynamic ftrace, we > used to only patch out the branch to _mcount(). However, mflr is > executed by the branch unit that can

Re: [PATCH v2 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent

2019-06-28 Thread Fuqian Huang
The merge commit log tells (dma-mapping: zero memory returned from dma_alloc_* and deprecating the dma_zalloc_coherent). I used this commit just want to say that dma_alloc_coherent has zeroed the allocated memory. Sorry for this mistake. Maybe this commit 518a2f1925c3("dma-mapping: zero memory

Re: [alsa-devel] [PATCH v2 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent

2019-06-28 Thread Takashi Iwai
On Fri, 28 Jun 2019 11:11:08 +0200, Fuqian Huang wrote: > > The merge commit log tells (dma-mapping: zero memory returned from > dma_alloc_* and deprecating the dma_zalloc_coherent). > I used this commit just want to say that dma_alloc_coherent has > zeroed the allocated memory. > Sorry for this

[PATCH 2/5] powerpc/64s/exception: optimise system_reset for idle, clean up non-idle case

2019-06-28 Thread Nicholas Piggin
The idle wake up code in the system reset interrupt is not very optimal. There are two requirements: perform idle wake up quickly; and save everything including CFAR for non-idle interrupts, with no performance requirement. The problem with placing the idle test in the middle of the handler and

[PATCH 3/5] powerpc/64s/exception: sreset move trampoline ahead of common code

2019-06-28 Thread Nicholas Piggin
Follow convention and move tramp ahead of common. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S

[PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-28 Thread Aravinda Prasad
Calculating the maximum memory based on the number of lmbs and lmb size does not account for the RMA region. Hence use memory_hotplug_max(), which already accounts for the RMA region, to fetch the maximum memory value. Thanks to Nathan Lynch for suggesting the memory_hotplug_max() function.

[PATCH kernel] powerpc/powernv: Fix stale iommu table base after VFIO

2019-06-28 Thread Alexey Kardashevskiy
The powernv platform uses @dma_iommu_ops for non-bypass DMA. These ops need an iommu_table pointer which is stored in dev->archdata.iommu_table_base. It is initialized during pcibios_setup_device() which handles boot time devices. However when a device is taken from the system in order to pass it

Re: [PATCH 41/87] sound: ppc: remove memset after dma_alloc_coherent

2019-06-28 Thread Takashi Iwai
On Fri, 28 Jun 2019 10:53:14 +0200, Christophe Leroy wrote: > > > > Le 28/06/2019 à 10:48, Takashi Iwai a écrit : > > On Thu, 27 Jun 2019 19:40:17 +0200, > > Fuqian Huang wrote: > >> > >> In commit af7ddd8a627c > >> ("Merge tag 'dma-mapping-4.21' of > >>

Re: [PATCH 41/87] sound: ppc: remove memset after dma_alloc_coherent

2019-06-28 Thread Christophe Leroy
Le 28/06/2019 à 10:48, Takashi Iwai a écrit : On Thu, 27 Jun 2019 19:40:17 +0200, Fuqian Huang wrote: In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed.

Re: [PATCH v2 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent

2019-06-28 Thread Christophe Leroy
Le 28/06/2019 à 04:50, Fuqian Huang a écrit : In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. You are refering to a merge commit, is that correct ? I can't

Re: [PATCH 41/87] sound: ppc: remove memset after dma_alloc_coherent

2019-06-28 Thread Takashi Iwai
On Fri, 28 Jun 2019 10:54:34 +0200, Takashi Iwai wrote: > > On Fri, 28 Jun 2019 10:53:14 +0200, > Christophe Leroy wrote: > > > > > > > > Le 28/06/2019 à 10:48, Takashi Iwai a écrit : > > > On Thu, 27 Jun 2019 19:40:17 +0200, > > > Fuqian Huang wrote: > > >> > > >> In commit af7ddd8a627c > >

[PATCH] powerpc/imc: Dont create debugfs files for cpu-less nodes

2019-06-28 Thread Anju T Sudhakar
From: Madhavan Srinivasan Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for imc-mode and imc') added debugfs interface for the nest imc pmu devices to support changing of different ucode modes. Primarily adding this capability for debug. But when doing so, the code did not

Re: [PATCH v2 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent

2019-06-28 Thread Christophe Leroy
Le 28/06/2019 à 11:11, Fuqian Huang a écrit : The merge commit log tells (dma-mapping: zero memory returned from dma_alloc_* and deprecating the dma_zalloc_coherent). I used this commit just want to say that dma_alloc_coherent has zeroed the allocated memory. Sorry for this mistake. Maybe

Re: power9 NUMA crash while reading debugfs imc_cmd

2019-06-28 Thread Anju T Sudhakar
On 6/28/19 9:04 AM, Qian Cai wrote: On Jun 27, 2019, at 11:12 PM, Michael Ellerman wrote: Qian Cai writes: Read of debugfs imc_cmd file for a memory-less node will trigger a crash below on this power9 machine which has the following NUMA layout. What type of machine is it? description:

[PATCH 05/43] docs: powerpc: convert docs to ReST and rename to *.rst

2019-06-28 Thread Mauro Carvalho Chehab
Convert docs to ReST and add them to the arch-specific book. The conversion here was trivial, as almost every file there was already using an elegant format close to ReST standard. The changes were mostly to mark literal blocks and add a few missing section title identifiers. One note with

[PATCH 32/39] docs: serial: move it to the driver-api

2019-06-28 Thread Mauro Carvalho Chehab
The contents of this directory is mostly driver-api stuff. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/index.rst | 1 + Documentation/{ => driver-api}/serial/cyclades_z.rst | 0 Documentation/{ => driver-api}/serial/driver.rst | 2 +-

Re: power9 NUMA crash while reading debugfs imc_cmd

2019-06-28 Thread Qian Cai
On Fri, 2019-06-28 at 17:19 +0530, Anju T Sudhakar wrote: > On 6/28/19 9:04 AM, Qian Cai wrote: > > > > > On Jun 27, 2019, at 11:12 PM, Michael Ellerman > > > wrote: > > > > > > Qian Cai writes: > > > > Read of debugfs imc_cmd file for a memory-less node will trigger a crash > > > > below > >

[PATCH 18/39] docs: admin-guide: add kdump documentation into it

2019-06-28 Thread Mauro Carvalho Chehab
The Kdump documentation describes procedures with admins use in order to solve issues on their systems. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/bug-hunting.rst| 4 ++-- Documentation/admin-guide/index.rst | 1 + Documentation/{ =>

[PATCH 22/39] docs: ocxl.rst: add it to the uAPI book

2019-06-28 Thread Mauro Carvalho Chehab
The content of this file is user-faced. Signed-off-by: Mauro Carvalho Chehab --- Documentation/{ => userspace-api}/accelerators/ocxl.rst | 2 -- Documentation/userspace-api/index.rst | 1 + MAINTAINERS | 2 +- 3 files changed, 2

[PATCH 13/39] docs: add arch doc directories to the index

2019-06-28 Thread Mauro Carvalho Chehab
Now that several arch documents were converted to ReST, add their indexes to Documentation/index.rst and remove the :orphan: from them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/arm/index.rst | 2 -- Documentation/arm64/index.rst | 2 -- Documentation/ia64/index.rst|

[PATCH v3] powerpc/setup_64: fix -Wempty-body warnings

2019-06-28 Thread Qian Cai
At the beginning of setup_64.c, it has, #ifdef DEBUG #define DBG(fmt...) udbg_printf(fmt) #else #define DBG(fmt...) #endif where DBG() could be compiled away, and generate warnings, arch/powerpc/kernel/setup_64.c: In function 'initialize_cache_info':

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Christophe Leroy
Le 28/06/2019 à 18:36, Andreas Schwab a écrit : On Jun 28 2019, Christophe Leroy wrote: diff --git a/arch/powerpc/include/uapi/asm/ptrace.h b/arch/powerpc/include/uapi/asm/ptrace.h index f5f1ccc740fc..37d7befbb8dc 100644 --- a/arch/powerpc/include/uapi/asm/ptrace.h +++

[PATCH v4 3/8] KVM: PPC: Ultravisor: Add generic ultravisor call handler

2019-06-28 Thread Claudio Carvalho
From: Ram Pai Add the ucall() function, which can be used to make ultravisor calls with varied number of in and out arguments. Ultravisor calls can be made from the host or guests. This copies the implementation of plpar_hcall(). Signed-off-by: Ram Pai [ Change ucall.S to not save CR, rename

[PATCH v4 1/8] KVM: PPC: Ultravisor: Introduce the MSR_S bit

2019-06-28 Thread Claudio Carvalho
From: Sukadev Bhattiprolu The ultravisor processor mode is introduced in POWER platforms that supports the Protected Execution Facility (PEF). Ultravisor is higher privileged than hypervisor mode. In PEF enabled platforms, the MSR_S bit is used to indicate if the thread is in secure state. With

Re: [PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-28 Thread Naveen N. Rao
Nathan Lynch wrote: Aravinda Prasad writes: Calculating the maximum memory based on the number of lmbs and lmb size does not account for the RMA region. Hence use memory_hotplug_max(), which already accounts for the RMA region, to fetch the maximum memory value. Thanks to Nathan Lynch for

Re: [PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-28 Thread Nathan Lynch
"Naveen N. Rao" writes: > Nathan Lynch wrote: >> It would likely help with review and future maintenance if the semantics >> and intended use of the MaxMem field are made a little more >> explicit. For example, is it supposed to include persistent memory? >> Perhaps a follow-up patch could

[PATCH v4 5/8] KVM: PPC: Ultravisor: Restrict flush of the partition tlb cache

2019-06-28 Thread Claudio Carvalho
From: Ram Pai Ultravisor is responsible for flushing the tlb cache, since it manages the PATE entries. Hence skip tlb flush, if the ultravisor firmware is available. Signed-off-by: Ram Pai Signed-off-by: Claudio Carvalho --- arch/powerpc/mm/book3s64/pgtable.c | 33

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Andreas Schwab
On Jun 28 2019, Christophe Leroy wrote: > Le 28/06/2019 à 18:36, Andreas Schwab a écrit : >> On Jun 28 2019, Christophe Leroy wrote: >> >>> diff --git a/arch/powerpc/include/uapi/asm/ptrace.h >>> b/arch/powerpc/include/uapi/asm/ptrace.h >>> index f5f1ccc740fc..37d7befbb8dc 100644 >>> ---

Re: [PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-28 Thread Nathan Lynch
Aravinda Prasad writes: > Calculating the maximum memory based on the number of lmbs > and lmb size does not account for the RMA region. Hence > use memory_hotplug_max(), which already accounts for the > RMA region, to fetch the maximum memory value. Thanks to > Nathan Lynch for suggesting the

[PATCH v4 0/8] kvmppc: Paravirtualize KVM to support ultravisor

2019-06-28 Thread Claudio Carvalho
POWER platforms that supports the Protected Execution Facility (PEF) introduce features that combine hardware facilities and firmware to enable secure virtual machines. That includes a new processor mode (ultravisor mode) and the ultravisor firmware. In PEF enabled systems, the ultravisor

[PATCH v4 4/8] KVM: PPC: Ultravisor: Use UV_WRITE_PATE ucall to register a PATE

2019-06-28 Thread Claudio Carvalho
From: Michael Anderson When running under an ultravisor, the ultravisor controls the real partition table and has it in secure memory where the hypervisor can't access it, and therefore we (the HV) have to do a ucall whenever we want to update an entry. The HV still keeps a copy of its view of

[PATCH v4 6/8] KVM: PPC: Ultravisor: Restrict LDBAR access

2019-06-28 Thread Claudio Carvalho
When the ultravisor firmware is available, it takes control over the LDBAR register. In this case, thread-imc updates and save/restore operations on the LDBAR register are handled by ultravisor. Signed-off-by: Claudio Carvalho Reviewed-by: Ram Pai Reviewed-by: Ryan Grimm Acked-by: Madhavan

[PATCH v4 8/8] KVM: PPC: Ultravisor: Check for MSR_S during hv_reset_msr

2019-06-28 Thread Claudio Carvalho
From: Michael Anderson - Check for MSR_S so that kvmppc_set_msr will include it. Prior to this change return to guest would not have the S bit set. - Patch based on comment from Paul Mackerras Signed-off-by: Michael Anderson Signed-off-by: Claudio Carvalho Acked-by: Paul Mackerras ---

[PATCH v4 2/8] powerpc: Introduce FW_FEATURE_ULTRAVISOR

2019-06-28 Thread Claudio Carvalho
This feature tells if the ultravisor firmware is available to handle ucalls. Signed-off-by: Claudio Carvalho [ Device node name to "ibm,ultravisor" ] Signed-off-by: Michael Anderson --- arch/powerpc/include/asm/firmware.h | 5 +++-- arch/powerpc/include/asm/ultravisor.h | 15 +++

Re: [PATCH] powerpc/rtas: Fix hang in race against concurrent cpu offline

2019-06-28 Thread Juliet Kim
On 6/26/19 6:51 PM, Nathan Lynch wrote: > Hi Juliet, > > Juliet Kim writes: >> On 6/25/19 12:29 PM, Nathan Lynch wrote: >>> Juliet Kim writes: However, that fix failed to notify Hypervisor that the LPM attempted had been abandoned which results in a system hang. >>> It is surprising

[PATCH v4 7/8] KVM: PPC: Ultravisor: Enter a secure guest

2019-06-28 Thread Claudio Carvalho
From: Sukadev Bhattiprolu To enter a secure guest, we have to go through the ultravisor, therefore we do a ucall when we are entering a secure guest. This change is needed for any sort of entry to the secure guest from the hypervisor, whether it is a return from an hcall, a return from a

Re: [RFC PATCH 03/12] powerpc/prom_init: Add the ESM call to prom_init

2019-06-28 Thread Thiago Jung Bauermann
Hello Alexey, Thanks for reviewing this patch! Alexey Kardashevskiy writes: > On 21/05/2019 14:49, Thiago Jung Bauermann wrote: >> @@ -1707,6 +1723,43 @@ static void __init prom_close_stdin(void) >> } >> } >> >> +#ifdef CONFIG_PPC_SVM >> +static int prom_rtas_os_term_hcall(uint64_t

[RFC PATCH v2 03/12] powerpc/ptrace: drop PARAMETER_SAVE_AREA_OFFSET

2019-06-28 Thread Christophe Leroy
PARAMETER_SAVE_AREA_OFFSET is not used, drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/powerpc/kernel/ptrace/ptrace.c b/arch/powerpc/kernel/ptrace/ptrace.c index 0afb223c4d57..cc8efcb404d6

[RFC PATCH v2 01/12] powerpc: move ptrace into a subdirectory.

2019-06-28 Thread Christophe Leroy
In order to allow splitting of ptrace depending on the different CONFIG_ options, create a subdirectory dedicated to ptrace and move ptrace.c and ptrace32.c into it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Makefile| 7 +++ arch/powerpc/kernel/ptrace/Makefile

[RFC PATCH v2 04/12] powerpc/ptrace: split out VSX related functions.

2019-06-28 Thread Christophe Leroy
Move CONFIG_VSX functions out of ptrace.c, into ptrace-vsx.c and ptrace-novsx.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 26 + arch/powerpc/kernel/ptrace/ptrace-novsx.c | 83 ++

[RFC PATCH v2 00/12] Reduce ifdef mess in ptrace

2019-06-28 Thread Christophe Leroy
The purpose of this series is to reduce the amount of #ifdefs in ptrace.c This is a first try. Most of it is done, there are still some #ifdefs that could go away. Please comment and tell whether it is worth continuing in that direction. v2: - Fixed several build failures. Now builts cleanly on

[RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Christophe Leroy
Drop a bunch of #ifdefs CONFIG_PPC64 that are not vital. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ptrace.h | 9 - arch/powerpc/include/uapi/asm/ptrace.h | 12 arch/powerpc/kernel/ptrace/ptrace.c| 24 +++- 3 files changed, 11

[RFC PATCH v2 08/12] powerpc/ptrace: move register viewing functions out of ptrace.c

2019-06-28 Thread Christophe Leroy
Create a dedicated ptrace-view.c file. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 +- arch/powerpc/kernel/ptrace/ptrace-decl.h | 43 ++ arch/powerpc/kernel/ptrace/ptrace-view.c | 953 ++ arch/powerpc/kernel/ptrace/ptrace.c

[RFC PATCH v2 06/12] powerpc/ptrace: split out SPE related functions.

2019-06-28 Thread Christophe Leroy
Move CONFIG_SPE functions out of ptrace.c, into ptrace-spe.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 9 arch/powerpc/kernel/ptrace/ptrace-spe.c | 92

[RFC PATCH v2 10/12] powerpc/ptrace: create ptrace_get_debugreg()

2019-06-28 Thread Christophe Leroy
Create ptrace_get_debugreg() to handle PTRACE_GET_DEBUGREG and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 9 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 2 ++ arch/powerpc/kernel/ptrace/ptrace-noadv.c | 13 +

[RFC PATCH v2 05/12] powerpc/ptrace: split out ALTIVEC related functions.

2019-06-28 Thread Christophe Leroy
Move CONFIG_ALTIVEC functions out of ptrace.c, into ptrace-altivec.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-altivec.c | 151 arch/powerpc/kernel/ptrace/ptrace-decl.h| 9 ++

[RFC PATCH v2 07/12] powerpc/ptrace: split out TRANSACTIONAL_MEM related functions.

2019-06-28 Thread Christophe Leroy
Move TRANSACTIONAL_MEM functions out of ptrace.c, into ptrace-tm.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 89 +++ arch/powerpc/kernel/ptrace/ptrace-tm.c | 879 +

[RFC PATCH v2 09/12] powerpc/ptrace: split out ADV_DEBUG_REGS related functions.

2019-06-28 Thread Christophe Leroy
Move ADV_DEBUG_REGS functions out of ptrace.c, into ptrace-adv.c and ptrace-noadv.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-adv.c | 487 ++ arch/powerpc/kernel/ptrace/ptrace-decl.h | 5 +

[RFC PATCH v2 11/12] powerpc/ptrace: create ppc_gethwdinfo()

2019-06-28 Thread Christophe Leroy
Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 15 +++ arch/powerpc/kernel/ptrace/ptrace-decl.h | 1 + arch/powerpc/kernel/ptrace/ptrace-noadv.c | 20

[RFC PATCH v2 12/12] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2019-06-28 Thread Christophe Leroy
ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/hw_breakpoint.c | 16 arch/powerpc/kernel/ptrace/ptrace.c | 18 -- 2

[PATCH] powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler()

2019-06-28 Thread Christophe Leroy
On 8xx, breakpoints stop after executing the instruction, so stepping/emulation is not needed. Move it into a sub-function and remove the #ifdefs. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/hw_breakpoint.c | 60 - 1 file changed, 33

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Andreas Schwab
On Jun 28 2019, Christophe Leroy wrote: > diff --git a/arch/powerpc/include/uapi/asm/ptrace.h > b/arch/powerpc/include/uapi/asm/ptrace.h > index f5f1ccc740fc..37d7befbb8dc 100644 > --- a/arch/powerpc/include/uapi/asm/ptrace.h > +++ b/arch/powerpc/include/uapi/asm/ptrace.h > @@ -43,12 +43,11 @@