Skip to content
kyanitecomputerPublic

About

Dependency-free Go implementation of the DMTF MCTP, NC-SI, PLDM and SPDM protocols for bare-metal firmware

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

DMTF

DMTF is an experimental, dependency-free Go implementation of the DMTF binary platform management protocols: MCTP, NC-SI (including NC-SI and Ethernet over MCTP), PLDM and SPDM. It is aimed at bare-metal BMC firmware running on TamaGo, and runs on any Go target.

Part of the Kyanite stack. This is an independent implementation, not affiliated with or endorsed by DMTF.

Status: experimental — only the MCTP packet layer exists so far; expect breaking changes.

Design

  • One module, one package per protocol. Import only what you use; nothing is registered globally.

  • No third-party dependencies, and no dependency on Kyanite core, redfish, the HAL, lneto or any SoC. Applications such as Cairn connect the protocols to hardware, network stacks and Redfish.

  • Wire types are views over caller-owned byte slices, with explicit validation. Decoding and encoding do not allocate.

  • Protocol engines take caller-supplied buffers, storage, time and transport. They start no goroutines, do not sleep, do not read the wall clock and do not panic on hostile input.

  • Upper-layer protocols do not depend on MCTP. Their MCTP bindings live in a mctp subpackage (ncsi/mctp, pldm/mctp, spdm/mctp), so SPDM over PCIe DOE, for example, does not import the MCTP engine:

    import (
        "src.kyanite.computer/dmtf/mctp"
        "src.kyanite.computer/dmtf/ncsi"
        ncsimctp "src.kyanite.computer/dmtf/ncsi/mctp"
    )

The full design is in docs/architecture.md.

Packages

  • mctp: MCTP transport header view, validation and encoding; endpoint ID classes; message type codes and the IC/message type byte (DSP0236, DSP0239). Fragmentation, reassembly, tags and routing are not implemented yet.

The planned packages and their order are in ROADMAP.md.

Standards

The specification revisions each package is written against, and what is implemented, are listed in docs/standards.md. How test vectors are sourced and which implementations are used for interoperability testing is described in docs/interop.md.

Development

go test ./...
go vet ./...
go test ./mctp -run '^$' -fuzz FuzzPacket -fuzztime 30s
go test ./mctp -run '^$' -bench . -benchmem

Inside the Kyanite workspace checkout, set GOWORK=off: the module is standalone and the workspace go.work does not list it.

The CI pipeline also runs the tests on a 32-bit target and builds the packages with the TamaGo compiler:

dagger call check

Contributing

See the org-wide CONTRIBUTING guide. Contributions are dual-licensed.

Security

See the org-wide SECURITY policy.

License

Dual-licensed under either of Apache-2.0 (LICENSE-APACHE) or MIT (LICENSE-MIT) at your option.

About

Dependency-free Go implementation of the DMTF MCTP, NC-SI, PLDM and SPDM protocols for bare-metal firmware

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages