* [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support
@ 2023-08-03 2:18 Jinjian Song
2023-08-03 9:24 ` Jiri Pirko
2023-08-05 9:07 ` Jinjian Song
0 siblings, 2 replies; 4+ messages in thread
From: Jinjian Song @ 2023-08-03 2:18 UTC (permalink / raw)
To: netdev
Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain, ilpo.jarvinen,
ricardo.martinez, chiranjeevi.rapolu, haijun.liu, edumazet,
pabeni, chandrashekar.devegowda, m.chetan.kumar, linuxwwan,
linuxwwan_5g, soumya.prakash.mishra, jesse.brandeburg,
danielwinkler, Jinjian Song
From: Jinjian Song <jinjian.song@fibocom.com>
Adds support for t7xx wwan device firmware flashing & coredump collection
using devlink.
On early detection of wwan device in fastboot mode driver sets up CLDMA0 HW
tx/rx queues for raw data transfer and then registers to devlink framework.
On user space application issuing command for firmware update the driver
sends fastboot flash command & firmware to program NAND.
In flashing procedure the fastboot command & response are exchanged between
driver and device. Once firmware flashing is success, user space application
get modem event by sysfs interface.
Below is the devlink command usage for firmware flashing
$devlink dev flash pci/$BDF file ABC.img component ABC
Note: ABC.img is the firmware to be programmed to "ABC" partition.
In case of coredump collection when wwan device encounters an exception
it reboots & stays in fastboot mode for coredump collection by host driver.
On detecting exception state driver collects the core dump, creates the
devlink region & reports an event to user space application for dump
collection. The user space application invokes devlink region read command
for dump collection.
Below are the devlink commands used for coredump collection.
devlink region new pci/$BDF/mr_dump
devlink region read pci/$BDF/mr_dump snapshot $ID address $ADD length $LEN
devlink region del pci/$BDF/mr_dump snapshot $ID
Jinjian Song (6):
net: wwan: t7xx: Infrastructure for early port configuration
net: wwan: t7xx: Driver registers with Devlink framework
net: wwan: t7xx: Implements devlink ops of firmware flashing
net: wwan: t7xx: Creates region & snapshot for coredump log collection
net: wwan: t7xx: Adds sysfs attribute of modem event
net: wwan: t7xx: Devlink documentation
Documentation/networking/devlink/index.rst | 1 +
Documentation/networking/devlink/t7xx.rst | 232 +++++++
drivers/net/wwan/Kconfig | 1 +
drivers/net/wwan/t7xx/Makefile | 4 +-
drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 47 +-
drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 18 +-
drivers/net/wwan/t7xx/t7xx_modem_ops.c | 5 +-
drivers/net/wwan/t7xx/t7xx_pci.c | 79 ++-
drivers/net/wwan/t7xx/t7xx_pci.h | 19 +
drivers/net/wwan/t7xx/t7xx_port.h | 6 +
drivers/net/wwan/t7xx/t7xx_port_ap_msg.c | 78 +++
drivers/net/wwan/t7xx/t7xx_port_ap_msg.h | 11 +
drivers/net/wwan/t7xx/t7xx_port_devlink.c | 723 +++++++++++++++++++++
drivers/net/wwan/t7xx/t7xx_port_devlink.h | 85 +++
drivers/net/wwan/t7xx/t7xx_port_proxy.c | 118 +++-
drivers/net/wwan/t7xx/t7xx_port_proxy.h | 14 +
drivers/net/wwan/t7xx/t7xx_port_wwan.c | 27 +-
drivers/net/wwan/t7xx/t7xx_reg.h | 28 +-
drivers/net/wwan/t7xx/t7xx_state_monitor.c | 137 +++-
drivers/net/wwan/t7xx/t7xx_state_monitor.h | 1 +
20 files changed, 1556 insertions(+), 78 deletions(-)
create mode 100644 Documentation/networking/devlink/t7xx.rst
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.c
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.h
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.c
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.h
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support
2023-08-03 2:18 [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support Jinjian Song
@ 2023-08-03 9:24 ` Jiri Pirko
2023-08-05 9:07 ` Jinjian Song
1 sibling, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2023-08-03 9:24 UTC (permalink / raw)
To: Jinjian Song
Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
ilpo.jarvinen, ricardo.martinez, chiranjeevi.rapolu, haijun.liu,
edumazet, pabeni, chandrashekar.devegowda, m.chetan.kumar,
linuxwwan, linuxwwan_5g, soumya.prakash.mishra, jesse.brandeburg,
danielwinkler, Jinjian Song
Thu, Aug 03, 2023 at 04:18:06AM CEST, songjinjian@hotmail.com wrote:
>From: Jinjian Song <jinjian.song@fibocom.com>
>
>Adds support for t7xx wwan device firmware flashing & coredump collection
>using devlink.
>
>On early detection of wwan device in fastboot mode driver sets up CLDMA0 HW
>tx/rx queues for raw data transfer and then registers to devlink framework.
>On user space application issuing command for firmware update the driver
>sends fastboot flash command & firmware to program NAND.
>
>In flashing procedure the fastboot command & response are exchanged between
>driver and device. Once firmware flashing is success, user space application
>get modem event by sysfs interface.
>
>Below is the devlink command usage for firmware flashing
>
>$devlink dev flash pci/$BDF file ABC.img component ABC
>
>Note: ABC.img is the firmware to be programmed to "ABC" partition.
>
>In case of coredump collection when wwan device encounters an exception
>it reboots & stays in fastboot mode for coredump collection by host driver.
>On detecting exception state driver collects the core dump, creates the
>devlink region & reports an event to user space application for dump
>collection. The user space application invokes devlink region read command
>for dump collection.
>
>Below are the devlink commands used for coredump collection.
>
>devlink region new pci/$BDF/mr_dump
>devlink region read pci/$BDF/mr_dump snapshot $ID address $ADD length $LEN
>devlink region del pci/$BDF/mr_dump snapshot $ID
Interesting. Makes me wonder why you didn't mention the "fastboot" param
in the cover letter...
>
>Jinjian Song (6):
> net: wwan: t7xx: Infrastructure for early port configuration
> net: wwan: t7xx: Driver registers with Devlink framework
> net: wwan: t7xx: Implements devlink ops of firmware flashing
> net: wwan: t7xx: Creates region & snapshot for coredump log collection
> net: wwan: t7xx: Adds sysfs attribute of modem event
> net: wwan: t7xx: Devlink documentation
>
> Documentation/networking/devlink/index.rst | 1 +
> Documentation/networking/devlink/t7xx.rst | 232 +++++++
> drivers/net/wwan/Kconfig | 1 +
> drivers/net/wwan/t7xx/Makefile | 4 +-
> drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 47 +-
> drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 18 +-
> drivers/net/wwan/t7xx/t7xx_modem_ops.c | 5 +-
> drivers/net/wwan/t7xx/t7xx_pci.c | 79 ++-
> drivers/net/wwan/t7xx/t7xx_pci.h | 19 +
> drivers/net/wwan/t7xx/t7xx_port.h | 6 +
> drivers/net/wwan/t7xx/t7xx_port_ap_msg.c | 78 +++
> drivers/net/wwan/t7xx/t7xx_port_ap_msg.h | 11 +
> drivers/net/wwan/t7xx/t7xx_port_devlink.c | 723 +++++++++++++++++++++
> drivers/net/wwan/t7xx/t7xx_port_devlink.h | 85 +++
> drivers/net/wwan/t7xx/t7xx_port_proxy.c | 118 +++-
> drivers/net/wwan/t7xx/t7xx_port_proxy.h | 14 +
> drivers/net/wwan/t7xx/t7xx_port_wwan.c | 27 +-
> drivers/net/wwan/t7xx/t7xx_reg.h | 28 +-
> drivers/net/wwan/t7xx/t7xx_state_monitor.c | 137 +++-
> drivers/net/wwan/t7xx/t7xx_state_monitor.h | 1 +
> 20 files changed, 1556 insertions(+), 78 deletions(-)
> create mode 100644 Documentation/networking/devlink/t7xx.rst
> create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.c
> create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.h
> create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.c
> create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.h
>
>--
>2.34.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support
2023-08-03 2:18 [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support Jinjian Song
2023-08-03 9:24 ` Jiri Pirko
@ 2023-08-05 9:07 ` Jinjian Song
1 sibling, 0 replies; 4+ messages in thread
From: Jinjian Song @ 2023-08-05 9:07 UTC (permalink / raw)
To: jiri
Cc: chandrashekar.devegowda, chiranjeevi.rapolu, danielwinkler, davem,
edumazet, haijun.liu, ilpo.jarvinen, jesse.brandeburg,
jinjian.song, johannes, kuba, linuxwwan, linuxwwan_5g,
loic.poulain, m.chetan.kumar, netdev, pabeni, ricardo.martinez,
ryazanov.s.a, songjinjian, soumya.prakash.mishra
Thu, Aug 03, 2023 at 04:18:06AM CEST, songjinjian@hotmail.com wrote:
>From: Jinjian Song <jinjian.song@fibocom.com>
>
>>Adds support for t7xx wwan device firmware flashing & coredump collection
>>using devlink.
>Interesting. Makes me wonder why you didn't mention the "fastboot" param
>in the cover letter...
Thanks for your review, sorry I forget to add here from ptach 6 Devlink documentation
+ $ devlink dev param set pci/0000:bdf name fastboot value 1 cmode driverinit
+
+The devlink param fastboot is set to true via devlink param command, by
+passing name ``fastboot``, value ``1`` and cmode ``driverinit``.
+
+::
+
+ $ devlink dev reload pci/0000:$bdf action driver_reinit
+
+The wwan device is put into fastboot mode via devlink reload command, by
+passing ``driver_reinit`` action.
I will add here.
>
>>Jinjian Song (6):
>> net: wwan: t7xx: Infrastructure for early port configuration
>> net: wwan: t7xx: Driver registers with Devlink framework
>> net: wwan: t7xx: Implements devlink ops of firmware flashing
>> net: wwan: t7xx: Creates region & snapshot for coredump log collection
>> net: wwan: t7xx: Adds sysfs attribute of modem event
>> net: wwan: t7xx: Devlink documentation
^ permalink raw reply [flat|nested] 4+ messages in thread
* [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support
@ 2023-08-03 2:57 Jinjian Song
0 siblings, 0 replies; 4+ messages in thread
From: Jinjian Song @ 2023-08-03 2:57 UTC (permalink / raw)
To: netdev
Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain, ilpo.jarvinen,
ricardo.martinez, chiranjeevi.rapolu, haijun.liu, edumazet,
pabeni, chandrashekar.devegowda, m.chetan.kumar, linuxwwan,
linuxwwan_5g, soumya.prakash.mishra, jesse.brandeburg,
danielwinkler, Jinjian Song
From: Jinjian Song <jinjian.song@fibocom.com>
Adds support for t7xx wwan device firmware flashing & coredump collection
using devlink.
On early detection of wwan device in fastboot mode driver sets up CLDMA0 HW
tx/rx queues for raw data transfer and then registers to devlink framework.
On user space application issuing command for firmware update the driver
sends fastboot flash command & firmware to program NAND.
In flashing procedure the fastboot command & response are exchanged between
driver and device. Once firmware flashing is success, user space application
get modem event by sysfs interface.
Below is the devlink command usage for firmware flashing
$devlink dev flash pci/$BDF file ABC.img component ABC
Note: ABC.img is the firmware to be programmed to "ABC" partition.
In case of coredump collection when wwan device encounters an exception
it reboots & stays in fastboot mode for coredump collection by host driver.
On detecting exception state driver collects the core dump, creates the
devlink region & reports an event to user space application for dump
collection. The user space application invokes devlink region read command
for dump collection.
Below are the devlink commands used for coredump collection.
devlink region new pci/$BDF/mr_dump
devlink region read pci/$BDF/mr_dump snapshot $ID address $ADD length $LEN
devlink region del pci/$BDF/mr_dump snapshot $ID
Jinjian Song (6):
net: wwan: t7xx: Infrastructure for early port configuration
net: wwan: t7xx: Driver registers with Devlink framework
net: wwan: t7xx: Implements devlink ops of firmware flashing
net: wwan: t7xx: Creates region & snapshot for coredump log collection
net: wwan: t7xx: Adds sysfs attribute of modem event
net: wwan: t7xx: Devlink documentation
Documentation/networking/devlink/index.rst | 1 +
Documentation/networking/devlink/t7xx.rst | 232 +++++++
drivers/net/wwan/Kconfig | 1 +
drivers/net/wwan/t7xx/Makefile | 4 +-
drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 47 +-
drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 18 +-
drivers/net/wwan/t7xx/t7xx_modem_ops.c | 5 +-
drivers/net/wwan/t7xx/t7xx_pci.c | 79 ++-
drivers/net/wwan/t7xx/t7xx_pci.h | 19 +
drivers/net/wwan/t7xx/t7xx_port.h | 6 +
drivers/net/wwan/t7xx/t7xx_port_ap_msg.c | 78 +++
drivers/net/wwan/t7xx/t7xx_port_ap_msg.h | 11 +
drivers/net/wwan/t7xx/t7xx_port_devlink.c | 723 +++++++++++++++++++++
drivers/net/wwan/t7xx/t7xx_port_devlink.h | 85 +++
drivers/net/wwan/t7xx/t7xx_port_proxy.c | 118 +++-
drivers/net/wwan/t7xx/t7xx_port_proxy.h | 14 +
drivers/net/wwan/t7xx/t7xx_port_wwan.c | 27 +-
drivers/net/wwan/t7xx/t7xx_reg.h | 28 +-
drivers/net/wwan/t7xx/t7xx_state_monitor.c | 137 +++-
drivers/net/wwan/t7xx/t7xx_state_monitor.h | 1 +
20 files changed, 1556 insertions(+), 78 deletions(-)
create mode 100644 Documentation/networking/devlink/t7xx.rst
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.c
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_ap_msg.h
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.c
create mode 100644 drivers/net/wwan/t7xx/t7xx_port_devlink.h
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-05 9:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 2:18 [net-next 0/6] net: wwan: t7xx: fw flashing & coredump support Jinjian Song
2023-08-03 9:24 ` Jiri Pirko
2023-08-05 9:07 ` Jinjian Song
-- strict thread matches above, loose matches on Subject: below --
2023-08-03 2:57 Jinjian Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox