Skip to content

cdx: provide sysfs interface for cdx device resources

Abhijit Gangurde lkml 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 0 repliesNew
  2. v66 patches 0 repliesSuperseded
  3. v55 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches0 repliesSuperseded
v35 patches5 repliesSuperseded
v24 patches6 repliesSuperseded
v14 patches12 repliesSuperseded

Changes in v7 from the cover letter

- Create symbol namespaces for cdx subsystem

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cdx: Remove cdx controller list from cdx bus systemdrivers/cdx/cdx.c include/linux/cdx/cdx_bus.h+30 -140 replies
2/7cdx: Introduce lock to protect controller opsdrivers/cdx/cdx.c+12 -00 replies
3/7cdx: Create symbol namespaces for cdx subsystemdrivers/cdx/Makefile drivers/cdx/cdx.c drivers/cdx/controller/cdx_controller.c +1 more+7 -30 replies
4/7cdx: Register cdx bus as a device on cdx subsystemdrivers/cdx/cdx.c drivers/cdx/cdx.h drivers/cdx/controller/cdx_controller.c +1 more+93 -70 replies
5/7cdx: add support for bus enable and disableDocumentation/ABI/testing/sysfs-bus-cdx drivers/cdx/cdx.c drivers/cdx/controller/cdx_controller.c +4 more+203 -00 replies
6/7cdx: add sysfs for bus resetDocumentation/ABI/testing/sysfs-bus-cdx drivers/cdx/cdx.c+26 -80 replies
7/7cdx: add sysfs for subsystem, class and revisionDocumentation/ABI/testing/sysfs-bus-cdx drivers/cdx/cdx.c drivers/cdx/cdx.h +5 more+135 -30 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchPieter Jansen van VuurenNikhil Agarwal
1/7
2/7
3/7
4/7
5/7
6/7
7/7R-b T-b

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

Read the v7 thread

Cover letter [PATCH v7 0/7] cdx: provide sysfs interface for cdx device resources

This patch series provides sysfs interface to
- enable and disable of cdx bus
- reset all the devices on cdx bus
- subsystem, class and revision for cdx device

Changes in v7:
- Create symbol namespaces for cdx subsystem

Changes in v6:
- Register cdx bus on cdx subsystem
- Remove bus attributes enable, disable and reset
- Add new device attributes enable visible only for bus device.
- Use reset attribute of cdx device for bus reset.

Changes in v5:
- Rebased on Linux 6.6

Changes in v4:
- Make ida as static
- Improve commit message
- Add sparse markings for the lock

Changes in v3:
- Remove local cdx controller list from cdx bus system and instead use platform bus to locate controller
- Use ida to allocate unique id for registered controller

Changes in v2:
- Introduce lock to protect controller ops
- Split sysfs entry enable to enable and disable
- sysfs entry enable and disable take bus number as an argument
- sysfs entry reset takes bus number as an argument

Abhijit Gangurde (7):
cdx: Remove cdx controller list from cdx bus system
cdx: Introduce lock to protect controller ops
cdx: Create symbol namespaces for cdx subsystem
cdx: Register cdx bus as a device on cdx subsystem
cdx: add support for bus enable and disable
cdx: add sysfs for bus reset
cdx: add sysfs for subsystem, class and revision

 Documentation/ABI/testing/sysfs-bus-cdx |  66 +++++-
 drivers/cdx/Makefile                    |   2 +
 drivers/cdx/cdx.c                       | 264 +++++++++++++++++++++---
 drivers/cdx/cdx.h                       |  22 +-
 drivers/cdx/controller/cdx_controller.c |  20 ++
 drivers/cdx/controller/mc_cdx_pcol.h    |  54 +++++
 drivers/cdx/controller/mcdi_functions.c |  31 +++
 drivers/cdx/controller/mcdi_functions.h |  18 ++
 drivers/vfio/cdx/main.c                 |   1 +
 include/linux/cdx/cdx_bus.h             |  41 +++-
 include/linux/mod_devicetable.h         |  10 +
 scripts/mod/devicetable-offsets.c       |   4 +
 scripts/mod/file2alias.c                |   8 +
 13 files changed, 506 insertions(+), 35 deletions(-)
Signature · 1 line
2.34.1