Skip to content

net: wwan: iosm: fw flashing & cd collection

M Chetan Kumar netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 2 repliesApplied

Changes in v2 from the cover letter

* Break down single patch into multiple patches.
* IOSM Driver devlink documentation.
* Fixes NULL parameter deference in ipc_devlink_flash_update() reported by smatch static checker.
* Fixes memory leak in ipc_devlink_create_region().
* Use kmemdup instead of kzalloc and memcpy in ipc_flash_boot_psi().
* Fixes linux-net build error.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6net: wwan: iosm: devlink registrationdrivers/net/wwan/iosm/iosm_ipc_devlink.c drivers/net/wwan/iosm/iosm_ipc_devlink.h+570 -01 reply
2/6net: wwan: iosm: fw flashing supportdrivers/net/wwan/iosm/iosm_ipc_flash.c drivers/net/wwan/iosm/iosm_ipc_flash.h+832 -00 replies
3/6net: wwan: iosm: coredump collection supportdrivers/net/wwan/iosm/iosm_ipc_coredump.c drivers/net/wwan/iosm/iosm_ipc_coredump.h+185 -00 replies
4/6net: wwan: iosm: transport layer support for fw flashing/cddrivers/net/wwan/iosm/iosm_ipc_chnl_cfg.c drivers/net/wwan/iosm/iosm_ipc_chnl_cfg.h drivers/net/wwan/iosm/iosm_ipc_imem.c +3 more+464 -300 replies
5/6net: wwan: iosm: devlink fw flashing & cd collection documentationDocumentation/networking/devlink/index.rst Documentation/networking/devlink/iosm.rst+183 -00 replies
6/6net: wwan: iosm: fw flashing & cd collection infrastructure changesdrivers/net/wwan/Kconfig drivers/net/wwan/iosm/Makefile+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 net-next 0/6] net: wwan: iosm: fw flashing & cd collection

This patch series brings-in support for M.2 7560 Device firmware flashing & coredump collection using devlink.
- Driver Registers with Devlink framework.
- Register devlink params callback for configuring device params required in flashing or coredump flow.
- Implements devlink ops flash_update callback that programs modem firmware.
- Creates region & snapshot required for device coredump log collection.

On early detection of device in boot rom stage. Driver registers with Devlink framework and establish transport channel for PSI (Primary Signed Image) injection. Once PSI is injected to device, the device execution stage details are read to determine whether device is in flash or exception mode. The collected information is reported to devlink user space application & based on this informationi, application proceeds with either modem firmware flashing or coredump collection.

Refer to iosm devlink documentation for details on Devlink Params, flash update and coredump collection command usage.

Note: Patches are interdependent. Need to apply complete patch series for compilation.

Changes since v1:
* Break down single patch into multiple patches.
* IOSM Driver devlink documentation.
* Fixes NULL parameter deference in ipc_devlink_flash_update() reported by smatch static checker.
* Fixes memory leak in ipc_devlink_create_region().
* Use kmemdup instead of kzalloc and memcpy in ipc_flash_boot_psi().
* Fixes linux-net build error.

M Chetan Kumar (6):
net: wwan: iosm: devlink registration
net: wwan: iosm: fw flashing support
net: wwan: iosm: coredump collection support
net: wwan: iosm: transport layer support for fw flashing/cd
net: wwan: iosm: devlink fw flashing & cd collection documentation
net: wwan: iosm: fw flashing & cd collection infrastructure changes

 Documentation/networking/devlink/index.rst |   1 +
 Documentation/networking/devlink/iosm.rst  | 182 +++++++
 drivers/net/wwan/Kconfig                   |   1 +
 drivers/net/wwan/iosm/Makefile             |   5 +-
 drivers/net/wwan/iosm/iosm_ipc_chnl_cfg.c  |   6 +-
 drivers/net/wwan/iosm/iosm_ipc_chnl_cfg.h  |   1 +
 drivers/net/wwan/iosm/iosm_ipc_coredump.c  | 110 ++++
 drivers/net/wwan/iosm/iosm_ipc_coredump.h  |  75 +++
 drivers/net/wwan/iosm/iosm_ipc_devlink.c   | 363 +++++++++++++
 drivers/net/wwan/iosm/iosm_ipc_devlink.h   | 207 ++++++++
 drivers/net/wwan/iosm/iosm_ipc_flash.c     | 561 +++++++++++++++++++++
 drivers/net/wwan/iosm/iosm_ipc_flash.h     | 271 ++++++++++
 drivers/net/wwan/iosm/iosm_ipc_imem.c      | 103 +++-
 drivers/net/wwan/iosm/iosm_ipc_imem.h      |  18 +-
 drivers/net/wwan/iosm/iosm_ipc_imem_ops.c  | 317 ++++++++++++
 drivers/net/wwan/iosm/iosm_ipc_imem_ops.h  |  49 +-
 16 files changed, 2239 insertions(+), 31 deletions(-)
 create mode 100644 Documentation/networking/devlink/iosm.rst
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_coredump.c
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_coredump.h
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_devlink.c
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_devlink.h
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_flash.c
 create mode 100644 drivers/net/wwan/iosm/iosm_ipc_flash.h
Signature · 1 line
2.25.1