Re: [PATCH v3 5/6] PCI: pnv_php: Fix surprise plug detection and recovery

2025-07-17 Thread Timothy Pearson
- Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christop

Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-07-15 Thread Timothy Pearson
Apologies for that, I had meant to send v3 in and apparently it got dropped. I believe I have addressed the comments in the v3 I just sent in. Thank you! - Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "Krishna Kumar&qu

[PATCH v3 6/6] PCI: pnv_php: Enable third attention indicator state

2025-07-15 Thread Timothy Pearson
The PCIe specification allows three attention indicator states, on, off, and blink. Enable all three states instead of basic on / off control. This changes the userspace API to match the behavior of pcihp. Signed-off-by: Timothy Pearson --- drivers/pci/hotplug/pnv_php.c | 15

[PATCH v3 5/6] PCI: pnv_php: Fix surprise plug detection and recovery

2025-07-15 Thread Timothy Pearson
device in the slot. Issue the appropriate unfreeze and rescan commands on hotplug events, and don't oops on hotplug if pci_bus_to_OF_node() returns NULL. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/pci-hotplug.c | 3 + drivers/pci/hotplug/pnv_php.c

[PATCH v3 4/6] powerpc/eeh: Make EEH driver device hotplug safe

2025-07-15 Thread Timothy Pearson
remove safe. Also clean up a few minor formatting / readability issues. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/eeh_driver.c | 48 +--- arch/powerpc/kernel/eeh_pe.c | 10 --- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/arch

[PATCH v3 3/6] powerpc/eeh: Export eeh_unfreeze_pe()

2025-07-15 Thread Timothy Pearson
The PowerNV hotplug driver needs to be able to clear any frozen PE(s) on the PHB after suprise removal of a downstream device. Export the eeh_unfreeze_pe() symbol to allow implementation of this functionality in the php_nv module. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/eeh.c

[PATCH v3 2/6] PCI: pnv_php: Work around switches with broken presence detection

2025-07-15 Thread Timothy Pearson
downstream devices not being re-detected. Work around this by additionally checking whether the PCIe data link is active or not when performing presence detection on downstream switches' ports, similar to the pciehp_hpc.c driver. Signed-off-by: Shawn Anastasio Signed-off-by: Timothy Pe

[PATCH v3 1/6] PCI: pnv_php: Properly clean up allocated IRQs on unplug

2025-07-15 Thread Timothy Pearson
store+0x40/0x5c sysfs_kf_write+0x64/0x78 kernfs_fop_write_iter+0x1b0/0x290 vfs_write+0x3bc/0x50c ksys_write+0x84/0x140 system_call_exception+0x124/0x230 system_call_vectored_common+0x15c/0x2ec Signed-off-by: Shawn Anastasio Signed-off-by: Timothy Pearson --- drivers/pci/hotplug

[PATCH v3 0/6] PowerNV PCIe Hotplug Driver Fixes

2025-07-15 Thread Timothy Pearson
sence detection Timothy Pearson (4): powerpc/eeh: Export eeh_unfreeze_pe() powerpc/eeh: Make EEH driver device hotplug safe PCI: pnv_php: Fix surprise plug detection and recovery PCI: pnv_php: Enable third attention indicator state arch/powerpc/kernel/eeh.c | 1 + arch/powerpc/k

Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-07-11 Thread Timothy Pearson
- Original Message - > From: "Krishna Kumar" > To: "Bjorn Helgaas" , "Timothy Pearson" > > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Mic

Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-06-24 Thread Timothy Pearson
- Original Message - > From: "Krishna Kumar" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "Shawn Anastasio" > , "linux-kernel" > , "linux-pci" , > "Madhavan Srinivasan" , > "Michael

Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-06-21 Thread Timothy Pearson
- Original Message - > From: "Krishna Kumar" > To: "linuxppc-dev" , "Timothy Pearson" > , "Shawn > Anastasio" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan

Re: [PATCH v2 2/6] pci/hotplug/pnv_php: Work around switches with broken

2025-06-20 Thread Timothy Pearson
- Original Message - > From: "Lukas Wunner" > To: "Timothy Pearson" > Cc: "Bjorn Helgaas" , "linuxppc-dev" > , "linux-kernel" > , "linux-pci" , > "Madhavan Srinivasan" , > "Michael Eller

Re: [PATCH v2 2/6] pci/hotplug/pnv_php: Work around switches with broken

2025-06-19 Thread Timothy Pearson
- Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christoph

Re: [PATCH v2 5/6] pci/hotplug/pnv_php: Fix surprise plug detection and

2025-06-19 Thread Timothy Pearson
- Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christoph

Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-06-18 Thread Timothy Pearson
- Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christoph

Re: [PATCH v2 2/6] pci/hotplug/pnv_php: Work around switches with broken

2025-06-18 Thread Timothy Pearson
- Original Message - > From: "Bjorn Helgaas" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christoph

[PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-06-18 Thread Timothy Pearson
state The PCIe specification allows three attention indicator states, on, off, and blink. Enable all three states instead of basic on / off control. Signed-off-by: Timothy Pearson --- drivers/pci/hotplug/pnv_php.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff

[PATCH v2 5/6] pci/hotplug/pnv_php: Fix surprise plug detection and

2025-06-18 Thread Timothy Pearson
the device in the slot. Issue the appropriate unfreeze and rescan commands on hotplug events, and don't oops on hotplug if pci_bus_to_OF_node() returns NULL. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/pci-hotplug.c | 3 ++ drivers/pci/hotplug/pnv_php.c

[PATCH v2 4/6] powerpc/eeh: Make EEH driver device hotplug safe

2025-06-18 Thread Timothy Pearson
remove safe. Also clean up a few minor formatting / readability issues. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/eeh_driver.c | 48 +--- arch/powerpc/kernel/eeh_pe.c | 10 --- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/arch

[PATCH v2 3/6] powerpc/eeh: Export eeh_unfreeze_pe()

2025-06-18 Thread Timothy Pearson
The PowerNV hotplug driver needs to be able to clear any frozen PE(s) on the PHB after suprise removal of a downstream device. Export the eeh_unfreeze_pe() symbol to allow implementation of this functionality in the php_nv module. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/eeh.c

[PATCH v2 2/6] pci/hotplug/pnv_php: Work around switches with broken

2025-06-18 Thread Timothy Pearson
ff-by: Timothy Pearson --- drivers/pci/hotplug/pnv_php.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index aec0a6d594ac..bac8af3df41a 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/ho

[PATCH v2 1/6] pci/hotplug/pnv_php: Properly clean up allocated IRQs on

2025-06-18 Thread Timothy Pearson
attr_store+0x40/0x5c sysfs_kf_write+0x64/0x78 kernfs_fop_write_iter+0x1b0/0x290 vfs_write+0x3bc/0x50c ksys_write+0x84/0x140 system_call_exception+0x124/0x230 system_call_vectored_common+0x15c/0x2ec Signed-off-by: Shawn Anastasio Signed-off-by: Timothy Pearson --- drivers/p

Re: [PATCH 3/8] powerpc/pseries/eeh: Export eeh_unfreeze_pe() and eeh_ops

2025-06-18 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Christoph Hellwig" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christ

[PATCH v2 0/6] PowerNV PCIe Hotplug Driver Fixes

2025-06-18 Thread Timothy Pearson
roken presence detection Timothy Pearson (5): powerpc/pseries/eeh: Export eeh_unfreeze_pe() and eeh_ops powerpc/eeh: Make EEH driver device hotplug safe pci/hotplug/pnv_php: Fix surprise plug detection and recovery pci/hotplug/pnv_php: Enable third atetntion indicator state arch/po

Re: [PATCH 3/8] powerpc/pseries/eeh: Export eeh_unfreeze_pe() and eeh_ops

2025-06-18 Thread Timothy Pearson
- Original Message - > From: "Christoph Hellwig" > To: "Timothy Pearson" > Cc: "linuxppc-dev" , "linux-kernel" > , "linux-pci" > , "Madhavan Srinivasan" , > "Michael Ellerman" , > "christ

[PATCH 3/8] powerpc/pseries/eeh: Export eeh_unfreeze_pe() and eeh_ops

2025-06-17 Thread Timothy Pearson
The PowerNV hotplug driver needs to be able to detect and clear any frozen PE on the PHB after suprise removal of a downstream device. Export the eeh_unfreeze_pe() and eeh_ops symbols to allow implementation of this functionality in the php_nv module. Signed-off-by: Timothy Pearson --- arch

[PATCH 1/8] pci/hotplug/pnv_php: Properly clean up allocated IRQs on

2025-06-17 Thread Timothy Pearson
attr_store+0x40/0x5c sysfs_kf_write+0x64/0x78 kernfs_fop_write_iter+0x1b0/0x290 vfs_write+0x3bc/0x50c ksys_write+0x84/0x140 system_call_exception+0x124/0x230 system_call_vectored_common+0x15c/0x2ec Signed-off-by: Shawn Anastasio Signed-off-by: Timothy Pearson --- drivers/p

[PATCH 2/8] pci/hotplug/pnv_php: Work around switches with broken

2025-06-17 Thread Timothy Pearson
ff-by: Timothy Pearson --- drivers/pci/hotplug/pnv_php.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index 2c07544216fb..1a734adb5b10 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/ho

[PATCH 6/6] pci/hotplug/pnv_php: Enable third attention indicator

2025-06-17 Thread Timothy Pearson
state The PCIe specification allows three attention indicator states, on, off, and blink. Enable all three states instead of basic on / off control. Signed-off-by: Timothy Pearson --- drivers/pci/hotplug/pnv_php.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff

[PATCH 0/6] PowerNV PCIe Hotplug Driver Fixes

2025-06-17 Thread Timothy Pearson
roken presence detection Timothy Pearson (5): powerpc/pseries/eeh: Export eeh_unfreeze_pe() and eeh_ops powerpc/eeh: Make EEH driver device hotplug safe pci/hotplug/pnv_php: Fix surprise plug detection and recovery pci/hotplug/pnv_php: Enable third atetntion indicator state arch/po

[PATCH 5/6] pci/hotplug/pnv_php: Fix surprise plug detection and

2025-06-17 Thread Timothy Pearson
upstream slot interrupts enabled on slot deactivation, and don't oops on hotplug if pci_bus_to_OF_node() returns NULL. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/pci-hotplug.c | 3 ++ drivers/pci/hotplug/pnv_php.c | 71 +-- 2 files change

[PATCH 4/8] powerpc/eeh: Make EEH driver device hotplug safe

2025-06-17 Thread Timothy Pearson
>From 21d8f844bf1971b609e9b07086fddfc76e1d1ec7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 17 Jun 2025 23:16:37 -0500 Subject: [PATCH 4/8] powerpc/eeh: Make EEH driver device hotplug safe Multiple race conditions existed between the PCIe hotplug driver and the EEH driver, lead

Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables

2024-03-19 Thread Timothy Pearson
- Original Message - > From: "Jason Gunthorpe" > To: "Shivaprasad G Bhat" > Cc: "Timothy Pearson" , "Alex Williamson" > , "linuxppc-dev" > , "Michael Ellerman" , > "npiggin" , "christo

Re: [PATCH v3] powerpc: Add gpr1 and fpu save/restore functions

2024-02-17 Thread Timothy Pearson
- Original Message - > From: "christophe leroy" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Saturday, February 17, 2024 10:39:06 AM > Subject: Re: [PATCH v3] powerpc: Add gpr1 and fpu save/restore functions > Le 16/02/2024 à 1

Re: [PATCH v2] powerpc: Add gpr1 and fpu save/restore functions

2024-02-16 Thread Timothy Pearson
- Original Message - > From: "christophe leroy" > To: "Timothy Pearson" , "linuxppc-dev" > > Sent: Tuesday, February 13, 2024 9:13:41 AM > Subject: Re: [PATCH v2] powerpc: Add gpr1 and fpu save/restore functions > Le 12/02/2024 à 18:14, T

[PATCH v3] powerpc: Add gpr1 and fpu save/restore functions

2024-02-16 Thread Timothy Pearson
save/restore functions per the PowerPC 64-bit ELFv2 ABI documentation. Tested on a Talos II with a WX7100 installed and running in DisplayCore mode. Reported-by: kernel test robot Tested-by: Timothy Pearson Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/prom_init_check.sh | 4

Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "Segher Boessenkool" > > Cc: "linuxppc-dev" > Sent: Monday, February 12, 2024 11:23:30 PM > Subject: Re: [PATCH] powerpc: Add gpr1 and fpu save/resto

Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
- Original Message - > From: "Segher Boessenkool" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Monday, February 12, 2024 12:23:22 PM > Subject: Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions > On Mon, Feb 12,

Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
- Original Message - > From: "Segher Boessenkool" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Monday, February 12, 2024 11:59:06 AM > Subject: Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions > On Mon, Feb 12,

Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
- Original Message - > From: "Segher Boessenkool" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Monday, February 12, 2024 11:30:43 AM > Subject: Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions > > Long long t

[PATCH v2] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
save/restore functions per the PowerPC 64-bit ELFv2 ABI documentation. Tested on a Talos II with a WX7100 installed and running in DisplayCore mode. Reported-by: kernel test robot Tested-by: Timothy Pearson Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/prom_init_check.sh | 4

Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
- Original Message - > From: "Segher Boessenkool" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Monday, February 12, 2024 11:02:07 AM > Subject: Re: [PATCH] powerpc: Add gpr1 and fpu save/restore functions > On Mon, Feb 12,

[PATCH] powerpc: Add gpr1 and fpu save/restore functions

2024-02-12 Thread Timothy Pearson
save/restore functions per the ABI v2 documentation. Tested on a Talos II with a WX7100 installed and running in DisplayCore mode. Reported-by: kernel test robot Tested-by: Timothy Pearson Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/prom_init_check.sh | 4 +- arch/powerpc/lib

Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-26 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Jason Gunthorpe" > Cc: "Timothy Pearson" , "Shivaprasad G Bhat" > , "iommu" > , "linuxppc-dev" , > "linux-kernel" , > "Michael E

Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-26 Thread Timothy Pearson
- Original Message - > From: "Jason Gunthorpe" > To: "Timothy Pearson" > Cc: "Shivaprasad G Bhat" , "iommu" > , "linuxppc-dev" > , "linux-kernel" > , "Michael Ellerman" > , "npiggi

Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call

2024-01-26 Thread Timothy Pearson
- Original Message - > From: "Jason Gunthorpe" > To: "Shivaprasad G Bhat" > Cc: io...@lists.linux.dev, "linuxppc-dev" , > "linux-kernel" > , "Michael Ellerman" , > "npiggin" , "christophe > ler

Re: PowerNV PCIe hotplug support?

2023-12-28 Thread Timothy Pearson
--- interrupt: 3000 [ 157.330275] Code: 3842d8f0 7c0802a6 6000 7c0802a6 fbe1fff8 7c7f1b78 f8010010 f821ffd1 4bffc9f5 6000 3920 e94d0908 <7d00f8a8> 7c284800 40c20010 7d40f9ad [ 157.330467] ---[ end trace ]--- [ 157.902980] note: bash[1170] exited with irqs dis

Re: PowerNV PCIe hotplug support?

2023-12-27 Thread Timothy Pearson
f1b78 f8010010 f821ffd1 4bffc9f5 6000 3920 e94d0908 <7d00f8a8> 7c284800 40c20010 7d40f9ad [ 3771.108510] ---[ end trace ]--- - Original Message - > From: "Timothy Pearson" > To: "linuxppc-dev" > Sent: Wednesday, December 27,

PowerNV PCIe hotplug support?

2023-12-27 Thread Timothy Pearson
I've been evaluating some new options for our POWER9-based hardware in the NVMe space, and would like some clarification on the current status of PCIe hotplug for the PowerNV platforms. >From what I understand, the pnv_php driver provides the basic hotplug >functionality on PowerNV. What I'm n

Re: [RFC PATCH 10/12] drm/amd/display: Use ARCH_HAS_KERNEL_FPU_SUPPORT

2023-12-13 Thread Timothy Pearson
- Original Message - > From: "Samuel Holland" > To: "Michael Ellerman" > Cc: "linux-kernel" , "amd-gfx" > , "linux-arch" > , "linux-arm-kernel" > , loonga...@lists.linux.dev, > "linuxppc-dev&q

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-30 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Tuesday, November 28,

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-27 Thread Timothy Pearson
Just wanted to check back and see if this patch was going to be queued up soon? We're still having to work around / advertise the data destruction issues the underlying bug is causing on e.g. Debian Stable. Thanks!

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-23 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Tuesday, Novem

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-20 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Michael Ellerman" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Monday, Novem

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-20 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Monday, November 20,

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-20 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" > Cc: "Jens Axboe" , "regressions" > , "npiggin" , > "christophe leroy" , "linuxppc-dev" > > Sent: Monday, November 20,

Re: [PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-20 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "Jens Axboe" > , "regressions" > , "npiggin" , "christophe > leroy" , > "linuxppc-dev" > Sent: Monday, November 20,

[PATCH v2] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-19 Thread Timothy Pearson
77956.javamail.zim...@raptorengineeringinc.com/ Tested-by: Timothy Pearson Tested-by: Jens Axboe Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/fpu.S| 13 + arch/powerpc/kernel/vector.S | 2 ++ 2 files changed, 15 insertions(+) diff --git a/arch/powerpc/kernel/fpu.S b/arch/po

Re: [PATCH] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-18 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Jens Axboe" , "regressions" > , "Michael Ellerman" > , "npiggin" , "christophe leroy" > , "linuxppc-dev" > > Sent: Saturday, Novem

[PATCH] powerpc: Don't clobber fr0/vs0 during fp|altivec register save

2023-11-18 Thread Timothy Pearson
ption using the above sequence, see MariaDB bug MDEV-30728. Restore fr0/vs0 after FPSCR/VSCR store has completed for both the fp and altivec register save paths. Tested under QEMU in kvm mode, running on a Talos II workstation with dual POWER9 DD2.2 CPUs. Tested-by: Timothy Pearson Signed-off-by: Ti

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-17 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Timothy Pearson" > Cc: "npiggin" , "linuxppc-dev" > > Sent: Friday, November 17, 2023 2:26:37 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI > -

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-17 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "npiggin" > Cc: "linuxppc-dev" > Sent: Friday, November 17, 2023 2:20:29 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI > - Original Message - >> From: &

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-17 Thread Timothy Pearson
- Original Message - > From: "npiggin" > To: "Timothy Pearson" , "Michael Ellerman" > > Cc: "linuxppc-dev" > Sent: Friday, November 17, 2023 2:01:12 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI &g

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-16 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Michael Ellerman" , "npiggin" > Cc: "linuxppc-dev" > Sent: Friday, November 17, 2023 1:39:37 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI > -

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-16 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "linuxppc-dev" > > Cc: "Jens Axboe" > Sent: Tuesday, November 14, 2023 6:14:37 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI > Hi

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-14 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "linuxppc-dev" > > Cc: "Jens Axboe" > Sent: Tuesday, November 14, 2023 6:14:37 AM > Subject: Re: [PATCH] powerpc: Fix data corruption on IPI > Hi

[PATCH] powerpc: Fix data corruption on IPI

2023-11-14 Thread Timothy Pearson
>From 0b2678b7cdada1a3d9aec8626f31a988d81373fa Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Nov 2023 22:42:58 -0600 Subject: [PATCH] powerpc: Fix data corruption on IPI On multithreaded SMP workloads such as those using io_uring, it is possible for multiple threads to hold

Re: [PATCH] powerpc: Fix data corruption on IPI

2023-11-14 Thread Timothy Pearson
- Original Message - > From: "Salvatore Bonaccorso" > To: "Timothy Pearson" > Cc: "Linuxppc-dev" > , "Jens > Axboe" > , "regressions" , "Michael > Ellerman" , "npiggin" > , "christ

Re: linux-next: Tree for Jun 2 (arch/powerpc/kernel/iommu.c)

2023-06-15 Thread Timothy Pearson
- Original Message - > From: "Randy Dunlap" > To: "Timothy Pearson" , "Michael Ellerman" > > Cc: "Stephen Rothwell" , "Linux Next Mailing List" > , "linux-kernel" > , "linuxppc-dev" > , &q

[PATCH] powerpc/iommu: Only build sPAPR access functions on pSeries

2023-06-05 Thread Timothy Pearson
and PowerNV A build failure with CONFIG_HAVE_PCI=y set without PSERIES or POWERNV set was caught by the random configuration checker. Guard the sPAPR specific IOMMU functions on CONFIG_PPC_PSERIES || CONFIG_PPC_POWERNV. Signed-off-by: Timothy Pearson --- arch/powerpc/kernel/iommu.c | 4

Re: linux-next: Tree for Jun 2 (arch/powerpc/kernel/iommu.c)

2023-06-03 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Randy Dunlap" , "Stephen Rothwell" > , "Linux Next Mailing List" > > Cc: "linux-kernel" , "linuxppc-dev" > , "Alexey > Kardashevskiy"

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-21 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "Timothy Pearson" > > Cc: "kvm" , "linuxppc-dev" > > Sent: Tuesday, March 21, 2023 5:33:57 AM > Subject: Re: [PATCH v2 0/4] Reenable VFIO

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-18 Thread Timothy Pearson
- Original Message - > From: "Timothy Pearson" > To: "Michael Ellerman" > Cc: "Timothy Pearson" , "kvm" > , "linuxppc-dev" > > Sent: Thursday, March 9, 2023 1:28:20 PM > Subject: Re: [PATCH v2 0/4] Reenabl

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-09 Thread Timothy Pearson
- Original Message - > From: "Michael Ellerman" > To: "Timothy Pearson" , "kvm" > > Cc: "linuxppc-dev" > Sent: Thursday, March 9, 2023 5:40:01 AM > Subject: Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems >

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-07 Thread Timothy Pearson
- Original Message - > From: "Alex Williamson" > To: "Timothy Pearson" > Cc: "kvm" , "linuxppc-dev" > > Sent: Monday, March 6, 2023 6:59:41 PM > Subject: Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems > On

[PATCH] Check for IOMMU table validity in error handler

2023-03-07 Thread Timothy Pearson
initial observation! Signed-off-by: Timothy Pearson --- drivers/vfio/vfio_iommu_spapr_tce.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c index 60a50ce8701e..c012ecb42ebc 100644 --- a/drivers

Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-06 Thread Timothy Pearson
- Original Message - > From: "Alex Williamson" > To: "Timothy Pearson" > Cc: "kvm" , "linuxppc-dev" > > Sent: Monday, March 6, 2023 5:46:07 PM > Subject: Re: [PATCH v2 0/4] Reenable VFIO support on POWER systems > On

[PATCH v2 0/4] Reenable VFIO support on POWER systems

2023-03-06 Thread Timothy Pearson
;borrowing" iommu_table_group_ops powerpc/pci_64: Init pcibios subsys a bit later powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domains Timothy Pearson (1): Add myself to MAINTAINERS for Power VFIO support MAINTAINERS | 5 + arch/powerpc/incl

[PATCH v2 1/4] powerpc/iommu: Add "borrowing" iommu_table_group_ops

2023-03-06 Thread Timothy Pearson
way. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Timothy Pearson --- arch/powerpc/include/asm/iommu.h | 6 +- arch/powerpc/kernel/iommu.c | 98 ++- arch/powerpc/platforms/powernv/pci-ioda.c | 6 +- arch/powerpc/platforms/pseries/iommu.c|

[PATCH v2 2/4] powerpc/pci_64: Init pcibios subsys a bit later

2023-03-06 Thread Timothy Pearson
The following patches are going to add dependency/use of iommu_ops which is initialized in subsys_initcall as well. This moves pciobios_init() to the next initcall level. This should not cause behavioral change. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Timothy Pearson --- arch

[PATCH v2] KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE support platform

2023-03-06 Thread Timothy Pearson
capability support advertising to platforms and stops advertising it on XIVE, i.e. POWER9 and later. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Timothy Pearson --- arch/arm64/kvm/arm.c | 3 +++ arch/mips/kvm/mips.c | 3 +++ arch/powerpc/kvm/powerpc.c | 6 ++ arch/risc

[PATCH v2 4/4] Add myself to MAINTAINERS for Power VFIO support

2023-03-06 Thread Timothy Pearson
Signed-off-by: Timothy Pearson --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8d5bc223f305..876f96e82d66 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9836,6 +9836,11 @@ F: drivers/crypto/vmx/ghash* F: drivers/crypto/vmx/ppc

[PATCH v2 3/4] powerpc/iommu: Add iommu_ops to report capabilities and

2023-03-06 Thread Timothy Pearson
Cc: Daniel Henrique Barboza Cc: Fabiano Rosas Cc: Murilo Opsfelder Araujo Cc: Nicholas Piggin Co-authored-by: Timothy Pearson Signed-off-by: Alexey Kardashevskiy Signed-off-by: Timothy Pearson --- arch/powerpc/include/asm/pci-bridge.h | 7 + arch/powerpc/kernel/iommu.c

Re: [PATCH] drm/amdgpu: Re-enable DCN for 64-bit powerpc

2022-07-25 Thread Timothy Pearson
- Original Message - > From: "Linus Torvalds" > To: "Michael Ellerman" > Cc: "linuxppc-dev" , "Alex Deucher" > , "amd-gfx" > , li...@roeck-us.net, "linux-kernel" > , "Dan Horák" > , "

Re: [PATCH RFC 3/5] powerpc/speculation: Add support for 'cpu_spec_mitigations=' cmdline options

2019-04-04 Thread Timothy Pearson
Will be joining in ~ 5 mins. Getting Chromium set up here. - Original Message - > From: "Jiri Kosina" > To: "Josh Poimboeuf" > Cc: "Peter Zijlstra" , "Heiko Carstens" > , "Paul Mackerras" > , "H . Peter Anvin" , "Ingo Molnar" > , "Andrea Arcangeli" > , linux-s...@vger.kernel.org, x...

Re: [PATCH 0/7] Add initial version of "cognitive DMA"

2018-06-24 Thread Timothy Pearson
23 at 18:52 -0500, Timothy Pearson wrote: > > There's still more to do and this shouldn't be merged yet - would > encourage anyone with suitable hardware to test though. > >> POWER9 (PHB4) requires all peripherals using DMA to be either >> restricted >> to 3

[PATCH 4/7] powerpc/powernv/pci: Safety fixes for pseudobypass TCE

2018-06-23 Thread Timothy Pearson
allocation Signed-off-by: Russell Currey --- arch/powerpc/platforms/powernv/pci-dma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-dma.c b/arch/powerpc/platforms/powernv/pci-dma.c index 1d5409be343e..237940a2a052 100644 --- a/arch

[PATCH 3/7] powerpc/powernv/pci: Track DMA and TCE tables in debugfs

2018-06-23 Thread Timothy Pearson
Add a new debugfs entry to trigger dumping out the tracking table and TCEs for a given PE, for example PE 0x4 of PHB 2: echo 0x4 > /sys/kernel/debug/powerpc/PCI0002/sketchy This will result in the table being dumped out in dmesg. Signed-off-by: Russell Currey --- arch/powerpc/platforms/power

[PATCH 7/7] powerpc/powernv/pci: Don't use the lower 4G TCEs in

2018-06-23 Thread Timothy Pearson
pseudo-DMA mode Four TCEs are reserved for legacy 32-bit DMA mappings in psuedo DMA mode. Mark these with an invalid address to avoid their use by the TCE cache mapper. Signed-off-by: Timothy Pearson --- arch/powerpc/platforms/powernv/pci-ioda.c | 8 +++- 1 file changed, 7 insertions

[PATCH 5/7] powerpc/powernv/pci: Export

2018-06-23 Thread Timothy Pearson
pnv_pci_ioda2_tce_invalidate_pe Pseudo DMA support requires a method to invalidate the TCE cache Export pnv_pci_ioda2_tce_invalidate_pe for use by the pseudo DMA mapper. Signed-off-by: Timothy Pearson --- arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- arch/powerpc/platforms/powernv/pci.h

[PATCH 6/7] powerpc/powernv/pci: Invalidate TCE cache after DMA map

2018-06-23 Thread Timothy Pearson
setup Per the IODA2, TCEs must be invalidated after their settings have been changed. Invalidate the cache after the address is changed during TCE allocation when using pseudo DMA. Signed-off-by: Timothy Pearson --- arch/powerpc/platforms/powernv/pci-dma.c | 3 +-- 1 file changed, 1

[PATCH 1/7] powerpc/powernv/pci: Track largest available TCE order

2018-06-23 Thread Timothy Pearson
per PHB Knowing the largest possible TCE size of a PHB is useful, so get it out of the device tree. This relies on the property being added in OPAL. It is assumed that any PHB4 or later machine would be running firmware that implemented this property, and otherwise assumed to be PHB3, which has

[PATCH 2/7] powerpc/powernv: DMA operations for discontiguous

2018-06-23 Thread Timothy Pearson
allocation Cognitive DMA is a new set of DMA operations that solve some issues for devices that want to address more than 32 bits but can't address the 59 bits required to enable direct DMA. The previous implementation for POWER8/PHB3 worked around this by configuring a bypass from the default 3

[PATCH 0/7] Add initial version of "cognitive DMA"

2018-06-23 Thread Timothy Pearson
owernv/pci: Safety fixes for pseudobypass TCE allocation Timothy Pearson (3): powerpc/powernv/pci: Export pnv_pci_ioda2_tce_invalidate_pe powerpc/powernv/pci: Invalidate TCE cache after DMA map setup powerpc/powernv/pci: Don't use the lower 4G TCEs in pseudo-DMA mode arch/powerpc/