Re: [PATCH 8/8] macintosh/adb-iop: Implement SRQ autopolling

2020-06-01 Thread Geert Uytterhoeven
Hi Brad, On Sun, May 31, 2020 at 10:01 PM Brad Boyer wrote: > On Sun, May 31, 2020 at 10:38:04AM +0200, Geert Uytterhoeven wrote: > > > arch/m68k/include/asm/adb_iop.h | 1 + > > As this header file is used by a single source file only, perhaps it should > > just be absorbed by the latter? > >

Re: [PATCH 8/8] macintosh/adb-iop: Implement SRQ autopolling

2020-06-01 Thread Geert Uytterhoeven
Hi Finn, On Mon, Jun 1, 2020 at 2:15 AM Finn Thain wrote: > On Sun, 31 May 2020, Geert Uytterhoeven wrote: > > On Sun, May 31, 2020 at 1:20 AM Finn Thain > > wrote: > > > arch/m68k/include/asm/adb_iop.h | 1 + > > > drivers/macintosh/adb-iop.c | 32 ++-- > > >

Re: [PATCH v5] powerpc/irq: inline call_do_irq() and call_do_softirq() on PPC32

2020-06-01 Thread Christophe Leroy
Hi Michael, Le 07/12/2019 à 18:20, Christophe Leroy a écrit : call_do_irq() and call_do_softirq() are simple enough to be worth inlining. Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. It also allows GCC to keep the saved ksp_limit in an nonvolatile reg. This is inspired

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Jan Kara
On Sat 30-05-20 09:35:19, Dan Williams wrote: > On Sat, May 30, 2020 at 12:18 AM Aneesh Kumar K.V > wrote: > > > > On 5/30/20 12:52 AM, Dan Williams wrote: > > > On Fri, May 29, 2020 at 3:55 AM Aneesh Kumar K.V > > > wrote: > > >> > > >> On 5/29/20 3:22 PM, Jan Kara wrote: > > >>> Hi! > > >>> >

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Segher Boessenkool
Hi Joseph, On Mon, Jun 01, 2020 at 09:28:25PM +, Joseph Myers wrote: > On Fri, 29 May 2020, Will Springer via Binutils wrote: > > > Hey all, a couple of us over in #talos-workstation on freenode have been > > working on an effort to bring up a Linux PowerPC userland that runs in > > 32-bit

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 04:12, Segher Boessenkool wrote: > On Mon, Jun 01, 2020 at 11:45:51PM +, Joseph Myers wrote: > > On Tue, 2 Jun 2020, Daniel Kolesa wrote: > > > Are you sure this would be a new port? Glibc already works in this > > > combination, as it seems to me it'd be best if it

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Segher Boessenkool
On Tue, Jun 02, 2020 at 04:12:26AM +0200, Daniel Kolesa wrote: > On Tue, Jun 2, 2020, at 03:58, Segher Boessenkool wrote: > > I recommend new ports that cannot jump to IEEE QP float directly to use > > long double == double for the time being, avoiding the extra > > complications that IBM double

Re: [PATCH] powerpc/nvram: Replace kmalloc with kzalloc in the error message

2020-06-01 Thread Michael Ellerman
Markus Elfring writes: >> Please just remove the message instead, it's a tiny allocation that's >> unlikely to ever fail, and the caller will print an error anyway. > > How do you think about to take another look at a previous update suggestion > like the following? > > powerpc/nvram: Delete

[PATCH 0/7] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm

2020-06-01 Thread Ravi Bangoria
Last series[1] was to add basic infrastructure support for more than one watchpoint on Book3S powerpc. This series actually enables the 2nd DAWR for baremetal and powervm. Kvm guest is still not supported. This series depends on Alistair's "Base support for POWER10"[2] series. [1]:

[PATCH 6/7] powerpc/watchpoint: Return available watchpoints dynamically

2020-06-01 Thread Ravi Bangoria
So far Book3S Powerpc supported only one watchpoint. But Power10 is introducing 2nd DAWR. Enable 2nd DAWR support for Power10. Availability of 2nd DAWR will depend on CPU_FTR_DAWR1. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 4 +++-

[PATCH] cxl: Remove dead Kconfig options

2020-06-01 Thread Andrew Donnellan
The CXL_AFU_DRIVER_OPS and CXL_LIB Kconfig options were added to coordinate merging of new features. They no longer serve any purpose, so remove them. Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/Kconfig | 8 1 file changed, 8 deletions(-) diff --git a/drivers/misc/cxl/Kconfig

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Segher Boessenkool
On Tue, Jun 02, 2020 at 01:26:37AM +0200, Daniel Kolesa wrote: > On Mon, Jun 1, 2020, at 23:28, Joseph Myers wrote: > Are you sure this would be a new port? Glibc already works in this > combination, as it seems to me it'd be best if it was just a variant of the > existing 32-bit PowerPC port,

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Segher Boessenkool
On Mon, Jun 01, 2020 at 11:45:51PM +, Joseph Myers wrote: > On Tue, 2 Jun 2020, Daniel Kolesa wrote: > > Are you sure this would be a new port? Glibc already works in this > > combination, as it seems to me it'd be best if it was just a variant of > > the existing 32-bit PowerPC port,

[PATCH kernel] powerpc/perf: Stop crashing with generic_compat_pmu

2020-06-01 Thread Alexey Kardashevskiy
The bhrb_filter_map ("The Branch History Rolling Buffer") callback is only defined in raw CPUs' power_pmu structs. The "architected" CPUs use generic_compat_pmu which does not have this callback and crashed occur. This add a NULL pointer check for bhrb_filter_map() which behaves as if the

[PATCH 4/7] powerpc/watchpoint: Rename current H_SET_MODE DAWR macro

2020-06-01 Thread Ravi Bangoria
Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 2 +- arch/powerpc/include/asm/plpar_wrappers.h | 2 +- arch/powerpc/kvm/book3s_hv.c

[PATCH 3/7] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit

2020-06-01 Thread Ravi Bangoria
bit 0 of byte 64 in pa-features property indicates availability of 2nd DAWR registers. i.e. If this bit is set, 2nd DAWR is present, otherwise not. Host generally uses "cpu-features", which masks "pa-features". But "cpu-features" are still not used for guests and thus this change is mostly

[PATCH 5/7] powerpc/watchpoint: Guest support for 2nd DAWR hcall

2020-06-01 Thread Ravi Bangoria
2nd DAWR can be set/unset using H_SET_MODE hcall with resource value 5. Enable powervm guest support with that. This has no effect on kvm guest because kvm will return error if guest does hcall with resource value 5. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 1

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Segher Boessenkool
On Mon, Jun 01, 2020 at 12:29:56AM +0200, Daniel Kolesa wrote: > On Sun, May 31, 2020, at 22:42, Segher Boessenkool wrote: > > > There was just an assumption that LE == powerpc64le in libgo, spotted by > > > q66 (daniel@ on the CC). I just pushed the patch to [1]. > > > > Please send GCC patches

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 03:58, Segher Boessenkool wrote: > On Tue, Jun 02, 2020 at 01:26:37AM +0200, Daniel Kolesa wrote: > > On Mon, Jun 1, 2020, at 23:28, Joseph Myers wrote: > > Are you sure this would be a new port? Glibc already works in this > > combination, as it seems to me it'd be best

Re: [RFC PATCH 1/4] powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()

2020-06-01 Thread Michael Neuling
On Fri, 2020-05-29 at 11:24 +1000, Alistair Popple wrote: > For what it's worth I tested this series on Mambo PowerNV and it seems to > correctly enable/disable the prefix FSCR bit based on the cpu feature so feel > free to add: > > Tested-by: Alistair Popple > > Mikey is going to test out

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 04:36, Segher Boessenkool wrote: > On Tue, Jun 02, 2020 at 04:12:26AM +0200, Daniel Kolesa wrote: > > On Tue, Jun 2, 2020, at 03:58, Segher Boessenkool wrote: > > > I recommend new ports that cannot jump to IEEE QP float directly to use > > > long double == double for the

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 03:42, Segher Boessenkool wrote: > Hi Joseph, > > On Mon, Jun 01, 2020 at 09:28:25PM +, Joseph Myers wrote: > > On Fri, 29 May 2020, Will Springer via Binutils wrote: > > > > > Hey all, a couple of us over in #talos-workstation on freenode have been > > > working on

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Jeffrey Walton
On Mon, Jun 1, 2020 at 9:58 PM Segher Boessenkool wrote: > > On Tue, Jun 02, 2020 at 01:26:37AM +0200, Daniel Kolesa wrote: > > On Mon, Jun 1, 2020, at 23:28, Joseph Myers wrote: > > Are you sure this would be a new port? Glibc already works in this > > combination, as it seems to me it'd be

[PATCH 2/7] powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR

2020-06-01 Thread Ravi Bangoria
Add new device-tree feature for 2nd DAWR. If this feature is present, 2nd DAWR is supported, otherwise not. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 7 +-- arch/powerpc/kernel/dt_cpu_ftrs.c | 7 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff

[PATCH 1/7] powerpc/watchpoint: Enable watchpoint functionality on power10 guest

2020-06-01 Thread Ravi Bangoria
CPU_FTR_DAWR is by default enabled for host via CPU_FTRS_DT_CPU_BASE (controlled by CONFIG_PPC_DT_CPU_FTRS). But cpu-features device-tree node is not PAPR compatible and thus not yet used by kvm or pHyp guests. Enable watchpoint functionality on power10 guest (both kvm and powervm) by adding

[PATCH] hw_breakpoint: Fix build warnings with clang

2020-06-01 Thread Ravi Bangoria
kbuild test robot reported few build warnings with hw_breakpoint code when compiled with clang[1]. Fix those. [1]: https://lore.kernel.org/linuxppc-dev/202005192233.oi9cjrta%25...@intel.com/ Reported-by: kbuild test robot Signed-off-by: Ravi Bangoria --- Note: Prepared on top of powerpc/next.

Re: [PATCH v1 3/4] KVM: PPC: Book3S HV: migrate remaining normal-GFNs to secure-GFNs in H_SVM_INIT_DONE

2020-06-01 Thread Ram Pai
On Mon, Jun 01, 2020 at 05:25:18PM +0530, Bharata B Rao wrote: > On Sat, May 30, 2020 at 07:27:50PM -0700, Ram Pai wrote: > > H_SVM_INIT_DONE incorrectly assumes that the Ultravisor has explicitly > > called H_SVM_PAGE_IN for all secure pages. > > I don't think that is quite true. HV doesn't

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Jan Kara
On Mon 01-06-20 17:31:50, Aneesh Kumar K.V wrote: > On 6/1/20 3:39 PM, Jan Kara wrote: > > On Fri 29-05-20 16:25:35, Aneesh Kumar K.V wrote: > > > On 5/29/20 3:22 PM, Jan Kara wrote: > > > > On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: > > > > > Thanks Michal. I also missed Jeff in this email

Re: [PATCH v8 2/5] seq_buf: Export seq_buf_printf

2020-06-01 Thread Vaibhav Jain
Steven Rostedt writes: > On Mon, 01 Jun 2020 17:31:31 +0530 > Vaibhav Jain wrote: > >> Hi Christoph and Steven, >> >> Have addressed your review comment to update the patch description and >> title for this patch. Can you please provide your ack to this patch. >> >> > > I thought I already

Re: [PATCH v1 3/4] KVM: PPC: Book3S HV: migrate remaining normal-GFNs to secure-GFNs in H_SVM_INIT_DONE

2020-06-01 Thread Bharata B Rao
On Sat, May 30, 2020 at 07:27:50PM -0700, Ram Pai wrote: > H_SVM_INIT_DONE incorrectly assumes that the Ultravisor has explicitly > called H_SVM_PAGE_IN for all secure pages. I don't think that is quite true. HV doesn't assume anything about secure pages by itself. > These GFNs continue to be >

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Michal Suchánek
On Mon, Jun 01, 2020 at 05:31:50PM +0530, Aneesh Kumar K.V wrote: > On 6/1/20 3:39 PM, Jan Kara wrote: > > On Fri 29-05-20 16:25:35, Aneesh Kumar K.V wrote: > > > On 5/29/20 3:22 PM, Jan Kara wrote: > > > > On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: > > > > > Thanks Michal. I also missed

Re: [PATCH v8 2/5] seq_buf: Export seq_buf_printf

2020-06-01 Thread Steven Rostedt
On Mon, 01 Jun 2020 17:31:31 +0530 Vaibhav Jain wrote: > Hi Christoph and Steven, > > Have addressed your review comment to update the patch description and > title for this patch. Can you please provide your ack to this patch. > > I thought I already did, but it appears it was a reply to a

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Jan Kara
On Fri 29-05-20 16:25:35, Aneesh Kumar K.V wrote: > On 5/29/20 3:22 PM, Jan Kara wrote: > > On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: > > > Thanks Michal. I also missed Jeff in this email thread. > > > > And I think you'll also need some of the sched maintainers for the prctl > > bits...

Re: [PATCH v8 2/5] seq_buf: Export seq_buf_printf

2020-06-01 Thread Vaibhav Jain
Hi Christoph and Steven, Have addressed your review comment to update the patch description and title for this patch. Can you please provide your ack to this patch. Thanks, ~ Vaibhav Vaibhav Jain writes: > 'seq_buf' provides a very useful abstraction for writing to a string > buffer without

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Aneesh Kumar K.V
On 6/1/20 3:39 PM, Jan Kara wrote: On Fri 29-05-20 16:25:35, Aneesh Kumar K.V wrote: On 5/29/20 3:22 PM, Jan Kara wrote: On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: Thanks Michal. I also missed Jeff in this email thread. And I think you'll also need some of the sched maintainers for

Re: [RFC PATCH 1/2] libnvdimm: Add prctl control for disabling synchronous fault support.

2020-06-01 Thread Aneesh Kumar K.V
On 6/1/20 5:37 PM, Michal Suchánek wrote: On Mon, Jun 01, 2020 at 05:31:50PM +0530, Aneesh Kumar K.V wrote: On 6/1/20 3:39 PM, Jan Kara wrote: On Fri 29-05-20 16:25:35, Aneesh Kumar K.V wrote: On 5/29/20 3:22 PM, Jan Kara wrote: On Fri 29-05-20 15:07:31, Aneesh Kumar K.V wrote: Thanks

[powerpc:next-test 177/198] arch/powerpc/kernel/rtas.c:519:9: error: 'local_paca' undeclared; did you mean 'local_inc'?

2020-06-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: e376ca093587eafd840bb0f9df04090e2a54249c commit: a3871a8b701613da2a13d6d1c523d0bb29ba62de [177/198] powerpc/rtas: Implement reentrant rtas call config: powerpc-chrp32_defconfig (attached as .config)

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Joseph Myers
On Mon, 1 Jun 2020, Joseph Myers wrote: > The minimum supported architecture for powerpc64le (POWER8) has VSX. My > understanding was that the suggestion was for 32-bit userspace to run > under powerpc64le kernels running on POWER8 or later, meaning that such a > 32-bit LE port, and any ABI

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Mon, Jun 1, 2020, at 23:28, Joseph Myers wrote: > On Fri, 29 May 2020, Will Springer via Binutils wrote: > > > Hey all, a couple of us over in #talos-workstation on freenode have been > > working on an effort to bring up a Linux PowerPC userland that runs in > > 32-bit > > little-endian mode,

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Joseph Myers
On Tue, 2 Jun 2020, Daniel Kolesa wrote: > Are you sure this would be a new port? Glibc already works in this > combination, as it seems to me it'd be best if it was just a variant of > the existing 32-bit PowerPC port, sharing most conventions besides > endianness with the BE port. The

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Joseph Myers
On Fri, 29 May 2020, Will Springer via Binutils wrote: > Hey all, a couple of us over in #talos-workstation on freenode have been > working on an effort to bring up a Linux PowerPC userland that runs in 32-bit > little-endian mode, aka ppcle. As far as we can tell, no ABI has ever been >

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 01:45, Joseph Myers wrote: > On Tue, 2 Jun 2020, Daniel Kolesa wrote: > > > Are you sure this would be a new port? Glibc already works in this > > combination, as it seems to me it'd be best if it was just a variant of > > the existing 32-bit PowerPC port, sharing most

Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Daniel Kolesa
On Tue, Jun 2, 2020, at 01:55, Joseph Myers wrote: > On Mon, 1 Jun 2020, Joseph Myers wrote: > > > The minimum supported architecture for powerpc64le (POWER8) has VSX. My > > understanding was that the suggestion was for 32-bit userspace to run > > under powerpc64le kernels running on POWER8

Re: [musl] Re: ppc64le and 32-bit LE userland compatibility

2020-06-01 Thread Rich Felker
On Mon, Jun 01, 2020 at 09:28:25PM +, Joseph Myers wrote: > On Fri, 29 May 2020, Will Springer via Binutils wrote: > > > Hey all, a couple of us over in #talos-workstation on freenode have been > > working on an effort to bring up a Linux PowerPC userland that runs in > > 32-bit > >

Re: [PATCH 8/8] macintosh/adb-iop: Implement SRQ autopolling

2020-06-01 Thread Finn Thain
On Mon, 1 Jun 2020, Geert Uytterhoeven wrote: > > > > Sure, it could be absorbed by both asm/mac_iop.h and > > drivers/macintosh/adb-iop.c [...] > > asm/mac_iop.h doesn't include asm/adb_iop.h (at least not in my tree, > but perhaps you have plans to change that?), so there's only a single >

Re: [PATCH] powerpc/64/syscall: Disable sanitisers for C syscall entry/exit code

2020-06-01 Thread Michael Ellerman
On Fri, 2020-05-29 at 06:14:46 UTC, Daniel Axtens wrote: > syzkaller is picking up a bunch of crashes that look like this: > > Unrecoverable exception 380 at c037ed60 (msr=80001031) > Oops: Unrecoverable exception, sig: 6 [#1] > LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA

Re: [PATCH] powerpc/64s: Fix restore of NV GPRs after facility unavailable exception

2020-06-01 Thread Michael Ellerman
On Tue, 2020-05-26 at 06:18:08 UTC, Michael Ellerman wrote: > Commit 702f09805222 ("powerpc/64s/exception: Remove lite interrupt > return") changed the interrupt return path to not restore non-volatile > registers by default, and explicitly restore them in paths where it is > required. > > But it

[PATCH] powerpc/kvm: Enable support for ISA v3.1 guests

2020-06-01 Thread Alistair Popple
Adds support for emulating ISAv3.1 guests by adding the appropriate PCR and FSCR bits. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/reg.h | 1 + arch/powerpc/kvm/book3s_hv.c | 11 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] pseries extended cede cpu offline mode removal

2020-06-01 Thread Nathan Lynch
I propose removing the "extended cede" offline mode for CPUs as well as the partition suspend code which accommodates it by temporarily onlining all CPUs prior to suspending the LPAR. Detailed justifications are within the individual commit messages. I'm hoping to move the pseries partition

[PATCH 2/2] powerpc/rtas: don't online CPUs for partition suspend

2020-06-01 Thread Nathan Lynch
Partition suspension, used for hibernation and migration, requires that the OS place all but one of the LPAR's processor threads into one of two states prior to calling the ibm,suspend-me RTAS function: * the architected offline state (via RTAS stop-self); or * the H_JOIN hcall, which does

Re: [PATCH] powerpc/nvram: Replace kmalloc with kzalloc in the error message

2020-06-01 Thread Markus Elfring
>>> Please just remove the message instead, it's a tiny allocation that's >>> unlikely to ever fail, and the caller will print an error anyway. >> >> How do you think about to take another look at a previous update suggestion >> like the following? >> >> powerpc/nvram: Delete three error messages

Re: [PATCH] hw_breakpoint: Fix build warnings with clang

2020-06-01 Thread Christophe Leroy
Le 02/06/2020 à 06:12, Ravi Bangoria a écrit : kbuild test robot reported few build warnings with hw_breakpoint code when compiled with clang[1]. Fix those. [1]: https://lore.kernel.org/linuxppc-dev/202005192233.oi9cjrta%25...@intel.com/ Reported-by: kbuild test robot Signed-off-by: Ravi

[PATCH 1/4] powerpc: Add a ppc_inst_as_str() helper

2020-06-01 Thread Jordan Niethe
There are quite a few places where instructions are printed, this is done using a '%x' format specifier. With the introduction of prefixed instructions, this does not work well. Currently in these places, ppc_inst_val() is used for the value for %x so only the first word of prefixed instructions

[PATCH 4/4] powerpc: Handle prefixed instructions in show_instructions()

2020-06-01 Thread Jordan Niethe
Currently show_instructions() treats prefixed instructions as two separate word instructions. '<' and '>' are placed around the instruction at the NIP, but as a result they only wrap around the prefix. Make '<' and '>' straddle the whole prefixed instruction. Currently showing a prefixed

[PATCH 7/7] powerpc/watchpoint: Remove 512 byte boundary

2020-06-01 Thread Ravi Bangoria
Power10 has removed 512 bytes boundary from match criteria. i.e. The match range can be 512 bytes unaligned as well. Signed-off-by: Ravi Bangoria --- arch/powerpc/kernel/hw_breakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/hw_breakpoint.c

[PATCH 1/2] powerpc/pseries: remove cede offline state for CPUs

2020-06-01 Thread Nathan Lynch
This effectively reverts commit 3aa565f53c39 ("powerpc/pseries: Add hooks to put the CPU into an appropriate offline state"), which added an offline mode for CPUs which uses the H_CEDE hcall instead of the architected stop-self RTAS function in order to facilitate "folding" of dedicated mode

[PATCH 2/4] powerpc/xmon: Improve dumping prefixed instructions

2020-06-01 Thread Jordan Niethe
Currently prefixed instructions are dumped as two separate word instructions. Use mread_instr() so that prefixed instructions are read as such and update the incrementor in the loop to take this into account. 'dump_func' is print_insn_powerpc() which comes from ppc-dis.c which is taken from

[PATCH 3/4] powerpc: Handle prefixed instructions in show_user_instructions()

2020-06-01 Thread Jordan Niethe
Currently prefixed instructions are treated as two word instructions by show_user_instructions(), treat them as a single instruction. '<' and '>' are placed around the instruction at the NIP, and for prefixed instructions this is placed around the prefix only. Make the '<' and '>' wrap the prefix