Skip to content

cxl: Add AFU virtual PHB and in kernel API

Michael Neuling linuxppc-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest24 patches 0 repliesNew
  2. v221 patches 0 repliesSuperseded
  3. v119 patches 20 repliesSuperseded

Changes in v3 from the cover letter

Cleans up device disable and adds a new API call. Details:
- Added pci_disable_device() hook to powerpc.
- Added cxl pci_disable_device() to PCI controller ops.
- Added cxl_fops_get_context() API call for cxlflash team.
- Fixed error path on probe().
- Removed a verbose print from cxl_remove().

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24powerpc/copro: Fix faulting kernel segmentsarch/powerpc/mm/copro_fault.c+5 -20 replies
2/24powerpc/pci: Export symbols for CXLarch/powerpc/kernel/pci-common.c+3 -00 replies
3/24powerpc/pci: Add release_device() hook to phb opsarch/powerpc/include/asm/pci-bridge.h arch/powerpc/kernel/pci-hotplug.c+7 -00 replies
4/24powerpc: Add cxl context to device archdataarch/powerpc/include/asm/device.h+3 -00 replies
5/24powerpc/pci: Add shutdown hook to pci_controller_opsarch/powerpc/include/asm/pci-bridge.h arch/powerpc/platforms/powernv/pci-ioda.c arch/powerpc/platforms/powernv/pci.c +1 more+9 -110 replies
6/24powerpc/pci: Add pcibios_disable_device() hookarch/powerpc/include/asm/pci-bridge.h arch/powerpc/kernel/pci-common.c+10 -00 replies
7/24cxl: Document external user of existing APIDocumentation/ABI/testing/sysfs-class-cxl Documentation/powerpc/cxl.txt+26 -00 replies
8/24cxl: Add shutdown hookdrivers/misc/cxl/pci.c+1 -00 replies
9/24cxl: Remove unnecessarily verbose print in cxl_remove()drivers/misc/cxl/pci.c+0 -20 replies
10/24cxl: Re-order card init to check the VSEC earlierdrivers/misc/cxl/pci.c+15 -150 replies
11/24cxl: Fix error path on probedrivers/misc/cxl/pci.c+1 -00 replies
12/24cxl: Dump debug info on the AFU configuration recorddrivers/misc/cxl/pci.c+11 -10 replies
13/24cxl: Add cookie parameter to afu_release_irqs()drivers/misc/cxl/context.c drivers/misc/cxl/cxl.h drivers/misc/cxl/file.c +1 more+5 -50 replies
14/24cxl: Rework detach context functionsdrivers/misc/cxl/context.c drivers/misc/cxl/cxl.h+14 -70 replies
15/24cxl: cxl_afu_reset() -> __cxl_afu_reset()drivers/misc/cxl/cxl.h drivers/misc/cxl/native.c drivers/misc/cxl/pci.c +1 more+8 -80 replies
16/24cxl: Export some symbolsdrivers/misc/cxl/cxl.h drivers/misc/cxl/native.c+10 -50 replies
17/24cxl: Only check pid for userspace contextsdrivers/misc/cxl/fault.c+19 -150 replies
18/24cxl: Split afu_register_irqs() functiondrivers/misc/cxl/cxl.h drivers/misc/cxl/irq.c+25 -70 replies
19/24cxl: Configure PSL for kernel contexts and merge codedrivers/misc/cxl/native.c+35 -280 replies
20/24cxl: Rework context lifetimesdrivers/misc/cxl/context.c drivers/misc/cxl/file.c+3 -30 replies
21/24cxl: Cleanup Makefiledrivers/misc/cxl/Makefile+2 -10 replies
22/24cxl: Move include file cxl.h -> cxl-base.hMAINTAINERS arch/powerpc/include/asm/pnv-pci.h arch/powerpc/mm/copro_fault.c +8 more+12 -120 replies
23/24cxl: Export file ops for use by APIdrivers/misc/cxl/cxl.h drivers/misc/cxl/file.c+23 -90 replies
24/24cxl: Add AFU virtual PHB and kernel APIdrivers/misc/cxl/Makefile drivers/misc/cxl/api.c drivers/misc/cxl/cxl.h +3 more+822 -40 replies

Reviews trailers per patch

17 of 24 patches have a Reviewed-by or Acked-by.

PatchIan Munsie
1/24
2/24
3/24
4/24
5/24
6/24
7/24A-b
8/24A-b
9/24A-b
10/24
11/24A-b
12/24A-b
13/24A-b
14/24A-b
15/24A-b
16/24A-b
17/24A-b
18/24A-b
19/24A-b
20/24A-b
21/24A-b
22/24A-b
23/24A-b
24/24A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/24] cxl: Add AFU virtual PHB and in kernel API

This patch series adds the ability to present AFUs as PCI devices on a virtual PHB.

It also adds an in kernel API (to the existing userspace API) so AFU drivers can be written as kernel drivers.

This series is dependant on Daniel DMA set mask and MSI PCI controller ops patch series.

v3:
Cleans up device disable and adds a new API call. Details:
- Added pci_disable_device() hook to powerpc.
- Added cxl pci_disable_device() to PCI controller ops.
- Added cxl_fops_get_context() API call for cxlflash team.
- Fixed error path on probe().
- Removed a verbose print from cxl_remove().

v2:
- Address comments from Ian
o Rename some functions now they are global
o Rework context lifetime
o Merge and fix SR calculation
o Added ACKs from Ian
o correct from Ian on one patch
- Fixed powernv pci shutdown hook

Mikey