Skip to content

WWAN debugfs tweaks

Sergey Ryazanov netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/24 patches 2 repliesApplied 4/4
  2. v2 posting 1/24 patches 2 repliesSuperseded
  3. v1 posting 2/25 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/25 patches0 repliesSuperseded

Changes in v2 from the cover letter

* 1st and 2nd patches were not changed
* add missed field description in the 3rd patch
* 4th and 5th patches have been merged into a single one with rework of the configuration options and and a few other fixes (see detailed changelog in the patch)

1. https://lore.kernel.org/netdev/[email protected]
2. https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Patches in v2 posting 2/2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: wwan: iosm: consolidate trace port init codedrivers/net/wwan/iosm/iosm_ipc_imem.c drivers/net/wwan/iosm/iosm_ipc_imem_ops.c drivers/net/wwan/iosm/iosm_ipc_imem_ops.h +1 more+9 -210 repliesApplied
2/4net: wwan: iosm: allow trace port be uninitializeddrivers/net/wwan/iosm/iosm_ipc_imem.c drivers/net/wwan/iosm/iosm_ipc_trace.c drivers/net/wwan/iosm/iosm_ipc_trace.h+11 -50 repliesApplied
3/4net: wwan: iosm: move debugfs knobs into a subdirdrivers/net/wwan/iosm/Makefile drivers/net/wwan/iosm/iosm_ipc_debugfs.c drivers/net/wwan/iosm/iosm_ipc_debugfs.h +3 more+49 -80 repliesApplied
4/4net: wwan: make debugfs optionaldrivers/net/wwan/Kconfig drivers/net/wwan/iosm/Makefile drivers/net/wwan/iosm/iosm_ipc_debugfs.h +6 more+68 -100 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLeon RomanovskyLoic PoulainM Chetan Kumar
SeriesR-b A-b
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH RESEND net-next v2 0/4] WWAN debugfs tweaks

Resent after dependency [2] was merged to the net-next tree. Added Leon's reviewed-by tag from the first V2 submission.

This is a follow-up series to just applied IOSM (and WWAN) debugfs interface support [1]. The series has two main goals:
1. move the driver-specific debugfs knobs to a subdirectory;
2. make the debugfs interface optional for both IOSM and for the WWAN core.

As for the first part, I must say that it was my mistake. I suggested to place debugfs entries under a common per WWAN device directory. But I missed the driver subdirectory in the example, so it become:

/sys/kernel/debugfs/wwan/wwan0/trace

Since the traces collection is a driver-specific feature, it is better to keep it under the driver-specific subdirectory:

/sys/kernel/debugfs/wwan/wwan0/iosm/trace

It is desirable to be able to entirely disable the debugfs interface. It can be disabled for several reasons, including security and consumed storage space. See detailed rationale with usage example in the 4th patch.

The changes themselves are relatively simple, but require a code rearrangement. So to make changes clear, I chose to split them into preparatory and main changes and properly describe each of them.

IOSM part is compile-tested only since I do not have IOSM supported device, so it needs Ack from the driver developers.

I would like to thank Johannes Berg and Leon Romanovsky. Their suggestions and comments helped a lot to rework the initial over-engineered solution to something less confusing and much more simple. Thanks!

Changes since v1:
* 1st and 2nd patches were not changed
* add missed field description in the 3rd patch
* 4th and 5th patches have been merged into a single one with rework of the configuration options and and a few other fixes (see detailed changelog in the patch)

1. https://lore.kernel.org/netdev/[email protected]
2. https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Cc M Chetan Kumar <[email protected]>
Cc Intel Corporation <[email protected]>
Cc Loic Poulain <[email protected]>
Cc Johannes Berg <[email protected]>
Cc Leon Romanovsky <[email protected]>

Sergey Ryazanov (4):
net: wwan: iosm: consolidate trace port init code
net: wwan: iosm: allow trace port be uninitialized
net: wwan: iosm: move debugfs knobs into a subdir
net: wwan: make debugfs optional

 drivers/net/wwan/Kconfig                  | 13 +++++++++-
 drivers/net/wwan/iosm/Makefile            |  5 +++-
 drivers/net/wwan/iosm/iosm_ipc_debugfs.c  | 29 +++++++++++++++++++++++
 drivers/net/wwan/iosm/iosm_ipc_debugfs.h  | 17 +++++++++++++
 drivers/net/wwan/iosm/iosm_ipc_imem.c     | 13 ++++------
 drivers/net/wwan/iosm/iosm_ipc_imem.h     |  6 +++++
 drivers/net/wwan/iosm/iosm_ipc_imem_ops.c | 18 --------------
 drivers/net/wwan/iosm/iosm_ipc_imem_ops.h |  2 +-
 drivers/net/wwan/iosm/iosm_ipc_trace.c    | 23 ++++++++++++------
 drivers/net/wwan/iosm/iosm_ipc_trace.h    | 25 ++++++++++++++++++-
 drivers/net/wwan/wwan_core.c              | 17 +++++++++----
 include/linux/wwan.h                      |  7 ++++++
 12 files changed, 134 insertions(+), 41 deletions(-)
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_debugfs.c
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_debugfs.h
Signature · 1 line
2.32.0