is not embedded.
Reviewed-by: Christophe Leroy
Tested-by: Shirisha Ganta
Signed-off-by: Mahesh Salgaonkar
---
Changes in v5:
- Invert the percpu chunk checks as suggested by mpe.
- Fix mirowatt build, microwatt config has CONFIG_PPC64=y and CONFIG_SMP=n.
- v4 at
https://lore.kernel.o
bedded.
Signed-off-by: Mahesh Salgaonkar
---
Changes in v4:
- Fix coding style issues.
Changes in v3:
- Address comments from Christophe Leroy to avoid using #ifdefs in the
code
- v2 at
https://lore.kernel.org/linuxppc-dev/20240205053647.1763446-1-mah...@linux.ibm.com/
Changes in v2:
- Reb
bedded.
Signed-off-by: Mahesh Salgaonkar
---
Changes in v3:
- Address comments from Christophe Leroy to avoid using #ifdefs in the
code
- v2 at
https://lore.kernel.org/linuxppc-dev/20240205053647.1763446-1-mah...@linux.ibm.com/
Changes in v2:
- Rebase to upstream master
- Use jump_labels, if CO
bedded.
Signed-off-by: Mahesh Salgaonkar
---
Changes in v2:
- Rebase to upstream master
- Use jump_labels, if CONFIG_JUMP_LABEL is enabled, to avoid redoing the
test at each interrupt entry.
- v1 is at
https://lore.kernel.org/linuxppc-dev/164578465828.74956.6065296024817333750.stgit@jupiter/
--
with
nr_cpus=X where X will be aligned up in multiple of SMT threads per core.
Signed-off-by: Mahesh Salgaonkar
---
Change in RFCv2:
- Fix checkpatch.pl reported errors and build issues against few powerpc
configs.
- Move add_node_props() from file_load_64.c to core_64.c so that it can be
reused
with nr_cpus=X where X will be aligned up
in multiple of SMT threads per core.
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/include/asm/kexec.h |1
arch/powerpc/kernel/prom.c| 13
arch/powerpc/kexec/core_64.c | 128 +
arch/powerpc/k
out the PCI error and stop any active operations.
In normal cases (non-EEH case) rpaphp_get_sensor_state() will continue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
Reviewed-by: Nathan Lynch
Acked-by: Bjorn Helgaas
---
Change in v
Also, #define descriptive names for common rtas return codes and use it
instead of numeric values.
Signed-off-by: Mahesh Salgaonkar
---
Change in v9:
- Keep the existing function name rtas_error_rc().
- Use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL
https://lore.kernel.org/all/877cpxdksx.fsf
out the PCI error and stop any active operations.
In normal cases (non-EEH case) rpaphp_get_sensor_state() will continue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
Reviewed-by: Nathan Lynch
Acked-by: Bjorn Helgaas
---
Change in v
rtas_generic_errno() function will convert the generic rtas return codes
into errno. Also, #define descriptive names for rtas return codes and use
it instead of numeric values.
Signed-off-by: Mahesh Salgaonkar
---
(no changes since v7)
Change in V7:
- Until v6 there was only one patch with
t the PCI error and stop any active operations.
In normal cases (non-EEH case) rpaphp_get_sensor_state() will continue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
Reviewed-by: Nathan Lynch
---
Change in v7:
- Modified patch descrip
rtas_generic_errno() function will convert the generic rtas return codes
into errno. Also, #define descriptive names for rtas return codes and use
it instead of numeric values.
Signed-off-by: Mahesh Salgaonkar
---
- Until v6 there was only one patch with subject "PCI hotplug: rpaphp:
positive run-time warning.
Reported-by: Aneesh Kumar K.V
Signed-off-by: Mahesh Salgaonkar
---
Change from v1:
- Rework the memcpy to copy message header and rest of the message
separately without adding flex array.
---
arch/powerpc/platforms/powernv/opal-prd.c |4 +++-
1 file changed, 3
id false positive run-time warning.
Reported-by: Aneesh Kumar K.V
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/platforms/powernv/opal-prd.c |7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/powernv/opal-prd.c
b/arch/powerpc/platforms/p
tinue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
Reviewed-by: Nathan Lynch
---
Change in v6:
- Fixed typo's in the patch description as per review comments.
Change in v5:
- Fixup #define macros with parentheses around th
tinue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
---
Change in v5:
- Fixup #define macros with parentheses around the values.
Change in V4:
- Error out on sensor busy only if pe is going through EEH recovery instead
of a
bedded.
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/include/asm/interrupt.h | 15 +++
arch/powerpc/include/asm/percpu.h|2 ++
arch/powerpc/kernel/setup_64.c |3 +++
3 files changed, 20 insertions(+)
diff --git a/arch/powerpc/include/asm/interrupt.h
b/arch/
tinue to
invoke rtas_get_sensor() as it was earlier with no change in existing
behavior.
Signed-off-by: Mahesh Salgaonkar
---
Change in V4:
- Error out on sensor busy only if pe is going through EEH recovery instead
of always error out.
Change in V3:
- Invoke rtas_call(get-sensor-state
ck
returns BUSY condition. In normal cases it returns immediately with a
correct presence state value. Hence this change has no impact on normal pci
dlpar operations.
Signed-off-by: Mahesh Salgaonkar
---
Change in V3:
- Invoke rtas_call(get-sensor-state) directly from
rpaphp_get_sensor_state() directly
get_sensor_fast() variant, but it thorws WARN_ON on BUSY
condition. The rtas_get_sensor_nonblocking() suppresses WARN_ON.
Signed-off-by: Mahesh Salgaonkar
---
This is an alternate approach to fix the EEH issue instead of delaying slot
presence check proposed at
https://lists.ozlabs.org/pipermail/li
c32364] dev_watchdog+0x434/0x440
To fix this issue, delay the slot presence check after notifying the driver
about the pci error.
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/kernel/eeh_driver.c | 42 --
1 file changed, 22 insertions(+), 20 del
ot;powerpc/pseries: PCIE PHB reset")
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/platforms/pseries/eeh_pseries.c |4
1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c
b/arch/powerpc/platforms/pseries/eeh_pseries.c
index bc15200852b7c
ck only if device
PE state is temporarily unavailable(5).
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/include/asm/eeh.h |1 +
arch/powerpc/kernel/eeh.c| 14 --
arch/powerpc/kernel/eeh_driver.c | 18 ++
3 files changed, 31 insertions(+), 2 deletion
vering PHB#30-PE#1
[ 964.324002] EEH: PE location: N/A, PHB location: N/A
[ 964.324006] EEH: Frozen PHB#30-PE#1 detected
<..>
Cc: sta...@vger.kernel.org
Fixes: 33439620680be ("powerpc/eeh: Handle hugepages in ioremap space")
Signed-off-by: Mahesh Salgaonkar
Signed-off-by:
vering PHB#30-PE#1
[ 964.324002] EEH: PE location: N/A, PHB location: N/A
[ 964.324006] EEH: Frozen PHB#30-PE#1 detected
<..>
Cc: sta...@vger.kernel.org
Fixes: 33439620680be ("powerpc/eeh: Handle hugepages in ioremap space")
Signed-off-by: Mahesh Salgaonkar
Signed-off-by
oday and there
is need as well. Hence change it to return void to make this fix complete.
Fixes: 774fea1a38c6 ("powerpc/powernv: Read OPAL error log and export it
through sysfs")
Cc: # v3.15+
Reported-by: Oliver O'Halloran
Signed-off-by: Mahesh Salgaonkar
Signed-off-by: Aneesh
ing used today and there
is need as well. Hence change it to return void to make this fix complete.
Fixes: 774fea1a38c6 ("powerpc/powernv: Read OPAL error log and export it
through sysfs")
Cc: # v3.15+
Reported-by: Oliver O'Halloran
Signed-off-by: Mahesh Salgaonkar
Signed-o
ion/notification by holding an additional reference count on kobject
until we safely send kobject_uevent().
Reported-by: Oliver O'Halloran
Signed-off-by: Mahesh Salgaonkar
Signed-off-by: Aneesh Kumar K.V
---
Change in v2:
- Instead of mutex and use extra reference count on kobject to avoid th
ion/notification using mutex lock per elog record.
Reported-by: Oliver O'Halloran
Signed-off-by: Mahesh Salgaonkar
---
arch/powerpc/platforms/powernv/opal-elog.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/powerpc/platforms/powernv/opal-elog.c
b/arch/powerpc/platforms
inside paca for safe access in realmode.
[1]
https://lore.kernel.org/linuxppc-dev/20200608070904.387440-1-aneesh.ku...@linux.ibm.com/
Suggested-by: Aneesh Kumar K.V
Signed-off-by: Mahesh Salgaonkar
---
Machine check handling as well touches percpu variables in realmode. Will
address that in separate
moving the hmi irq stat inside paca for safe
access in realmode.
Suggested-by: Aneesh Kumar K.V
Signed-off-by: Mahesh Salgaonkar
---
Machine check handling as well touches percpu variables in realmode. Will
address that in separate patchset.
---
arch/powerpc/include/asm/hardirq.h |1 -
arch
: 2950.00MHz
revision: 17.0 (pvr 004f 1100)
With this change it reflects the correct revision:
$ cat /proc/cpuinfo
processor : 0
cpu : POWER9P, altivec supported
clock : 2633.00MHz
revision: 1.0 (pvr 004f 1100)
Signed-off-by: Mahesh Salgaonkar
Software error (some chance of hardware
cause)
Signed-off-by: Mahesh Salgaonkar
---
Change in v2:
- Rephrase the wording for error class as suggested by Michael.
---
arch/powerpc/include/asm/mce.h | 10
arch/powerpc/kernel/mce.c | 12
arch/powerpc/kernel/mce_power.c | 107
Currently all machine check errors are printed as severe errors which isn't
correct. Print soft errors as warning instead of severe errors.
Signed-off-by: Mahesh Salgaonkar
---
change in v2:
- Use kernel types i.e. u8, u64 etc.
- Define sync_error as bool.
---
arch/powerpc/include/asm/
: PID: 24765 Comm: qemu-system-ppc Guest NIP:
[7fffa309dc60]
[ 1289.447634] MCE: CPU80: Probable software error (some chance of hardware
cause)
Signed-off-by: Mahesh Salgaonkar
---
CHange in v3:
- Print physical address if available.
Change in v2:
- Address comments from Michael.
---
arch
r by its offset.
- regs_within_kernel_stack(struct pt_regs *regs, unsigned long addr)
Check the address is in the kernel stack.
- regs_get_kernel_stack_nth(struct pt_regs *reg, unsigned int nth)
Get Nth entry of the kernel stack. (N >= 0)
Signed-off-by: Mahesh Salgaonkar
Acked-by
ct pt_regs *reg, unsigned int nth)
Get Nth entry of the kernel stack. (N >= 0)
Signed-off-by: Mahesh Salgaonkar
Acked-by: Masami Hiramatsu
---
arch/powerpc/include/asm/ptrace.h | 61 ++
arch/powerpc/kernel/ptrace.c | 102 +
ke
r)
Check the address is in the kernel stack.
- regs_get_kernel_stack_nth(struct pt_regs *reg, unsigned int nth)
Get Nth entry of the kernel stack. (N >= 0)
- regs_get_argument_nth(struct pt_regs *reg, unsigned int nth)
Get Nth argument at function call. (N >= 0)
Signed-off-by: Mahesh
38 matches
Mail list logo