Browse Source

pmci: Move MCTP into the PMCI subsys

PMCI conveys a stack of specifications from DMTF including MCTP (a
transport layer protocol), PLDM (request/response messaging protocol),
and ancillary SPDM messaging. Placing all these libraries under PMCI
subsystem makes more sense than simply adding MCTP as its own subsystem.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
pull/88616/head
Tom Burdick 4 months ago committed by Benjamin Cabé
parent
commit
1e0af58b51
  1. 17
      MAINTAINERS.yml
  2. 0
      include/zephyr/pmci/mctp/mctp_uart.h
  3. 5
      samples/modules/pmci/index.rst
  4. 0
      samples/modules/pmci/mctp/endpoint/CMakeLists.txt
  5. 2
      samples/modules/pmci/mctp/endpoint/README.rst
  6. 0
      samples/modules/pmci/mctp/endpoint/boards/nrf52840dk_nrf52840.overlay
  7. 0
      samples/modules/pmci/mctp/endpoint/prj.conf
  8. 2
      samples/modules/pmci/mctp/endpoint/src/main.c
  9. 0
      samples/modules/pmci/mctp/host/CMakeLists.txt
  10. 2
      samples/modules/pmci/mctp/host/README.rst
  11. 0
      samples/modules/pmci/mctp/host/boards/nrf52840dk_nrf52840.overlay
  12. 0
      samples/modules/pmci/mctp/host/prj.conf
  13. 2
      samples/modules/pmci/mctp/host/src/main.c
  14. 0
      samples/modules/pmci/mctp/mctp.rst
  15. 2
      subsys/CMakeLists.txt
  16. 2
      subsys/Kconfig
  17. 3
      subsys/pmci/CMakeLists.txt
  18. 14
      subsys/pmci/Kconfig
  19. 0
      subsys/pmci/mctp/CMakeLists.txt
  20. 0
      subsys/pmci/mctp/Kconfig
  21. 2
      subsys/pmci/mctp/mctp_uart.c

17
MAINTAINERS.yml

@ -3188,6 +3188,20 @@ PHYTEC Platforms: @@ -3188,6 +3188,20 @@ PHYTEC Platforms:
labels:
- "platform: PHYTEC"
PMCI:
status: maintained
maintainers:
- teburd
collaborators:
- nashif
- inteljiangwe1
- kehintel
files:
- subsys/pmci/
- samples/modules/pmci/
labels:
- "area: PMCI"
POSIX API layer:
status: maintained
maintainers:
@ -5189,8 +5203,7 @@ West: @@ -5189,8 +5203,7 @@ West:
collaborators:
- nashif
- inteljiangwe1
files:
- samples/modules/mctp/
files: []
labels:
- "area: MCTP"

0
include/zephyr/mctp/mctp_uart.h → include/zephyr/pmci/mctp/mctp_uart.h

5
samples/modules/pmci/index.rst

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
.. zephyr:code-sample-category:: pmci
:name: PMCI
:show-listing:
These samples demonstrate the use of PMCI related protocols in Zephyr.

0
samples/modules/mctp/mctp_endpoint/CMakeLists.txt → samples/modules/pmci/mctp/endpoint/CMakeLists.txt

2
samples/modules/mctp/mctp_endpoint/README.rst → samples/modules/pmci/mctp/endpoint/README.rst

@ -29,7 +29,7 @@ Building and Running @@ -29,7 +29,7 @@ Building and Running
.. zephyr-app-commands::
:zephyr-app: samples/modules/mctp/mctp_endpoint
:zephyr-app: samples/modules/pmci/mctp/endpoint
:host-os: unix
:board: nrf52840_nrf52840dk
:goals: run

0
samples/modules/mctp/mctp_endpoint/boards/nrf52840dk_nrf52840.overlay → samples/modules/pmci/mctp/endpoint/boards/nrf52840dk_nrf52840.overlay

0
samples/modules/mctp/mctp_endpoint/prj.conf → samples/modules/pmci/mctp/endpoint/prj.conf

2
samples/modules/mctp/mctp_endpoint/src/main.c → samples/modules/pmci/mctp/endpoint/src/main.c

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include <unistd.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <zephyr/mctp/mctp_uart.h>
#include <zephyr/pmci/mctp/mctp_uart.h>
#include <libmctp.h>
#include <zephyr/logging/log.h>

0
samples/modules/mctp/mctp_host/CMakeLists.txt → samples/modules/pmci/mctp/host/CMakeLists.txt

2
samples/modules/mctp/mctp_host/README.rst → samples/modules/pmci/mctp/host/README.rst

@ -28,7 +28,7 @@ Building and Running @@ -28,7 +28,7 @@ Building and Running
********************
.. zephyr-app-commands::
:zephyr-app: samples/modules/mctp/mctp_host
:zephyr-app: samples/modules/pmci/mctp/host
:host-os: unix
:board: nrf52840_nrf52840dk
:goals: run

0
samples/modules/mctp/mctp_host/boards/nrf52840dk_nrf52840.overlay → samples/modules/pmci/mctp/host/boards/nrf52840dk_nrf52840.overlay

0
samples/modules/mctp/mctp_host/prj.conf → samples/modules/pmci/mctp/host/prj.conf

2
samples/modules/mctp/mctp_host/src/main.c → samples/modules/pmci/mctp/host/src/main.c

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <libmctp.h>
#include <zephyr/mctp/mctp_uart.h>
#include <zephyr/pmci/mctp/mctp_uart.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mctp_host);

0
samples/modules/mctp/mctp.rst → samples/modules/pmci/mctp/mctp.rst

2
subsys/CMakeLists.txt

@ -22,6 +22,7 @@ add_subdirectory(mem_mgmt) @@ -22,6 +22,7 @@ add_subdirectory(mem_mgmt)
add_subdirectory(mgmt)
add_subdirectory(modbus)
add_subdirectory(pm)
add_subdirectory(pmci)
add_subdirectory(portability)
add_subdirectory(random)
add_subdirectory(rtio)
@ -46,7 +47,6 @@ add_subdirectory_ifdef(CONFIG_IMG_MANAGER dfu) @@ -46,7 +47,6 @@ add_subdirectory_ifdef(CONFIG_IMG_MANAGER dfu)
add_subdirectory_ifdef(CONFIG_INPUT input)
add_subdirectory_ifdef(CONFIG_JWT jwt)
add_subdirectory_ifdef(CONFIG_LLEXT llext)
add_subdirectory_ifdef(CONFIG_MCTP mctp)
add_subdirectory_ifdef(CONFIG_MODEM_MODULES modem)
add_subdirectory_ifdef(CONFIG_NETWORKING net)
add_subdirectory_ifdef(CONFIG_PROFILING profiling)

2
subsys/Kconfig

@ -26,13 +26,13 @@ source "subsys/jwt/Kconfig" @@ -26,13 +26,13 @@ source "subsys/jwt/Kconfig"
source "subsys/llext/Kconfig"
source "subsys/logging/Kconfig"
source "subsys/lorawan/Kconfig"
source "subsys/mctp/Kconfig"
source "subsys/mem_mgmt/Kconfig"
source "subsys/mgmt/Kconfig"
source "subsys/modbus/Kconfig"
source "subsys/modem/Kconfig"
source "subsys/net/Kconfig"
source "subsys/pm/Kconfig"
source "subsys/pmci/Kconfig"
source "subsys/portability/Kconfig"
source "subsys/profiling/Kconfig"
source "subsys/random/Kconfig"

3
subsys/pmci/CMakeLists.txt

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(mctp)

14
subsys/pmci/Kconfig

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
# PMCI configuration options
# Copyright (c) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menu "Platform Management Communication Infrastruction (PMCI)"
# zephyr-keep-sorted-start
source "subsys/pmci/mctp/Kconfig"
# zephyr-keep-sorted-stop
endmenu

0
subsys/mctp/CMakeLists.txt → subsys/pmci/mctp/CMakeLists.txt

0
subsys/mctp/Kconfig → subsys/pmci/mctp/Kconfig

2
subsys/mctp/mctp_uart.c → subsys/pmci/mctp/mctp_uart.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include <zephyr/sys/__assert.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/mctp/mctp_uart.h>
#include <zephyr/pmci/mctp/mctp_uart.h>
#include <crc-16-ccitt.h>
#include <zephyr/logging/log.h>
Loading…
Cancel
Save