/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ |
H A D | ncsi_client.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * Client module for interacting with NC-SI capable network cards. 23 * DMTF v1.0.0 NC-SI specification: 41 * Return the state of our connection to the NIC. Does not map to NC-SI spec. 48 * Return the expected length for the response to a given NC-SI comamnds 51 * cmd_type: id for the given commands as defined in the NC-SI spec 59 * Return the expected length for the response to a given OEM NC-SI comamnds 74 /* Standard NC-SI commands */ 82 * channel: NC-SI channel to filter on (corresponds to a physical port). 94 * channel: NC-SI channel targeted (corresponds to a physical port). [all …]
|
H A D | ncsi_fsm.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 /* Nemora NC-SI (Finite) State Machine implementation */ 32 /* The network state is defined as a combination of the NC-SI connection state 34 * - we cannot DHCP unless the NC-SI connection is up 35 * - we cannot do the OEM L3/L4 NC-SI configuration unless we have a valid 40 * test the NC-SI connection regardless of whether we have network configuration 43 * For this reason there are actually 3 NC-SI finite state machines: 44 * - L2 configuration (i.e. enabling all available NC-SI channel for passthrough 46 * - L3/L4 configuration (i.e. configuring flow steering for RX traffic that 49 * - Connection test (i.e. periodically doing a ping test between the EC and the [all …]
|
H A D | ncsi_server.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * Module for constructing NC-SI response commands on the NIC 23 * DMTF v1.0.0 NC-SI specification: 40 * request_buf: buffer containing NC-SI request. 56 * request_buf: buffer containing NC-SI request. 70 * request_buf: buffer containing NC-SI request. 87 * request_buf: buffer containing NC-SI request. 104 * request_buf: buffer containing NC-SI request. 120 * request_buf: buffer containing NC-SI request. 134 * request_buf: buffer containing NC-SI request. [all …]
|
H A D | ncsi.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * Module for interacting with NC-SI capable network cards. 23 * DMTF v1.0.0 NC-SI specification: 40 // Define states for our NC-SI connection to the NIC. 41 // There is no mapping to the NC-SI specification for these states, but they 42 // reflect the outcome of NC-SI commands used in our configuration state 45 // 'DOWN' - while in this state, periodically restart the configuration state 47 // 'LOOPBACK' - the response to the first NC-SI command of the configuration 51 // 'UP' - all commands were responded successfully, but need DHCP configuration 54 // 'UP_AND_CONFIGURED' - NC-SI OEM commands for L3/L4 configuration (which [all …]
|
H A D | ncsi_client.c | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 * Library of NC-SI commands compliant with version 1.0.0. 22 * Checksums are optional and not implemented here. All NC-SI checksums are set 37 // todo - To save space these tables use the notion that no response is 39 // todo - Replace 0's with actual sizes once the commands are supported 81 * Sets _most_ of the NC-SI header fields. Caller is expected to set 82 * payload_length field if it is > 0. For many NC-SI commands it is 0. 88 memset(header->ethhdr.dest.octet, 0xFF, sizeof(header->ethhdr.dest.octet)); in set_header_fields() 90 memset(header->ethhdr.src.octet, 0xAB, sizeof(header->ethhdr.src.octet)); in set_header_fields() 91 header->ethhdr.ethertype = htons(NCSI_ETHERTYPE); in set_header_fields() [all …]
|
H A D | ncsi_server.c | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 * Library of NC-SI commands compliant with version 1.0.0. 22 * Checksums are optional and not implemented here. All NC-SI checksums are set 41 response->response_code = response_code; in ncsi_build_response_header() 42 response->reason_code = reason_code; in ncsi_build_response_header() 45 response->hdr.control_packet_type = in ncsi_build_response_header() 46 request_header->control_packet_type | NCSI_RESPONSE; in ncsi_build_response_header() 47 response->hdr.payload_length = htons(payload_length); in ncsi_build_response_header() 55 sizeof(ncsi_simple_response_t) - sizeof(ncsi_header_t)); in ncsi_build_simple_ack() 65 sizeof(ncsi_simple_response_t) - sizeof(ncsi_header_t)); in ncsi_build_simple_nack() [all …]
|
H A D | ncsi_fsm.c | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 // TODO - This state machine needs to be rewritten, now that we have a 30 // The NC-SI related states of the state machine are currently organized in 32 // this resulted in more hard-coded pairs which worked okay for X 36 // the second channel is supported (1) or not (3 - skip over the second channel 39 do { *variable += (ncsi_state->channel_count == 1)\ 52 network_debug->ncsi.fail_count++; in ncsi_fsm_fail() 53 memcpy(&network_debug->ncsi.state_that_failed, ncsi_state, in ncsi_fsm_fail() 54 sizeof(network_debug->ncsi.state_that_failed)); in ncsi_fsm_fail() 60 if (!network_debug->ncsi.enabled) { in ncsi_fsm_connection_state() [all …]
|
/openbmc/docs/designs/ |
H A D | ncsi-coredump.md | 1 # NC-SI core dump 9 NIC core-dump is essential for NIC issue debugging, and it could be retrieved 10 via both in-band and out of band method. The design here is providing the 11 solution for NIC out of band dumping from BMC over NC-SI protocol. 15 NC-SI command for dump retrieval: Reference: NC-SI spec v1.2: section: 8.4.114 18 NC-SI over MCTP: 23 This feature requires Linux kernel to support transferring new NC-SI command 31 This design will reuse existing phosphor-debug-collector module: 32 <https://github.com/openbmc/phosphor-debug-collector> and extend the dump 33 creation interface with a new "NC-SICoreDump" dump type. [all …]
|
/openbmc/google-misc/subprojects/ncsid/doc/ |
H A D | ncsid_internals.md | 1 # NC-SId Internals 3 **NOTE**: This documents describes the internal architecture of NC-SId daemon. 11 - **NC-SId Core**. These are new components implemented in NC-SId. 13 - **Hardware**. External hardware components, in this case, the NIC. 15 - **EC**. This is the code borrowed from EC. The three state machines are pretty 18 - **External Components**. These are external services/daemons NC-SIs interacts 25 In the NIC — NC-SId interactions, NIC acts as a server, replying to NC-SId 26 requests and NC-SId itself acts as a client, sending those requests. Thus, there 27 is no state in NIC (server), but there is a state in NC-SId (client). 31 NC-SId reuses the state machines from EC. They are treated like black boxes. [all …]
|
H A D | ncsid_arch.dot | 24 core [label="NC-SId Core" fillcolor="lightblue"]; 28 } -> NIC [style="invis"]; 32 p_networkd [label="phosphord-networkd"]; 44 net_iface -> net_ifacebase [arrowhead="diamond"]; 45 ncsi_sockio -> net_iface [label="bind"]; 51 ncsi_sockio -> ncsid:sockio [arrowhead="diamond"]; 52 NIC -> ncsi_sockio [dir="both" label="NC-SI Cable" color="limegreen"]; 54 p_config -> ncsid:config [arrowhead="diamond"]; 55 p_config -> p_networkd [style="dashed"]; 56 p_config -> d_bus; [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsi_state_machine.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 35 // * L2 -- performs basic NC-SI setup, reads NIC MAC addr 36 // * L3/4 -- once network is configured on the interface, 37 // sets up NC-SI filter in the NIC. 38 // * Test -- runs several basic NC-SI link tests, like 40 // Also, reads hostless/host-based flag from the NIC, see 52 // NC-SI State Machine's main function. 56 // How often Test FSM re-runs, in seconds. 71 // Helper function for printing NC-SI error to stdout. 95 // How long (in seconds) to wait before re-running NC-SI test state [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | NetworkAdapterMetrics.v1_1_0.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 42 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 57 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 60 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 63 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 66 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | NetworkAdapterMetrics_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!----> 3 <!--################################################################################ --> 4 <!--# Redfish Schema: NetworkAdapterMetrics v1.1.0 --> 5 <!--# --> 6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 8 <!--# Copyright 2014-2024 DMTF. --> 9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --> 10 <!--################################################################################ --> [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | ast2600-ncsi.dts | 1 /dts-v1/; 3 #include "ast2600-u-boot.dtsi" 9 /delete-node/&mac0; 10 /delete-node/&mac1; 14 phy-mode = "NC-SI"; 15 use-ncsi; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_rmii3_default>; 18 /delete-property/phy-handle; 23 phy-mode = "NC-SI"; [all …]
|
H A D | ast2600-p10bmc.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "ast2600-u-boot.dtsi" 9 compatible = "ibm,everest-bmc", "ibm,rainier-bmc", "ibm,p10bmc", "aspeed,ast2600"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 22 no-map; 28 stdout-path = &uart5; 40 clock-frequency = <800000000>; [all …]
|
H A D | ast2500-romulus.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "ast2500-u-boot.dtsi" 9 compatible = "ibm,romulus-bmc", "aspeed,ast2500"; 17 stdout-path = &uart5; 29 u-boot,dm-pre-reloc; 34 clock-frequency = <400000000>; 38 u-boot,dm-pre-reloc; 43 u-boot,dm-pre-reloc; 50 phy-mode = "NC-SI"; [all …]
|
H A D | ast2400-palmetto.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "ast2400-u-boot.dtsi" 8 compatible = "tyan,palmetto-bmc", "aspeed,ast2400"; 16 stdout-path = &uart5; 26 u-boot,dm-pre-reloc; 31 clock-frequency = <200000000>; 35 u-boot,dm-pre-reloc; 40 u-boot,dm-pre-reloc; 47 phy-mode = "NC-SI"; [all …]
|
/openbmc/u-boot/cmd/aspeed/nettest/ |
H A D | cmd_nettest.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 "Share LAN (NC-SI) test program", NULL); 34 // ------------------------------------------------------------------------------ 50 "Share LAN (NC-SI) test program and display more information", NULL);
|
H A D | comminf.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 13 //--------------------------------------------------------- 15 //--------------------------------------------------------- 33 //--------------------------------------------------------- 35 //--------------------------------------------------------- 69 //--------------------------------------------------------- 71 //--------------------------------------------------------- 90 /* old interface - deprecated */ 118 //--------------------------------------------------------- 120 //--------------------------------------------------------- [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | faraday,ftgmac100.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - $ref: ethernet-controller.yaml# 13 - Po-Yu Chuang <ratbert@faraday-tech.com> 18 - const: faraday,ftgmac100 19 - items: 20 - enum: 21 - aspeed,ast2400-mac 22 - aspeed,ast2500-mac [all …]
|
/openbmc/google-misc/subprojects/ncsid/ |
H A D | README.md | 1 # NC-SI Daemon for gBMC 3 - [Internals](doc/ncsid_internals.md)
|
/openbmc/u-boot/include/net/ |
H A D | ncsi.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NC-SI PHY
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | ncsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NC-SI protocol configuration 12 #include <net/ncsi-pkt.h> 21 #define NCSI_CHANNEL_INDEX(c) ((c) & ((1 << NCSI_PACKAGE_SHIFT) - 1)) 32 static void ncsi_send_ebf(unsigned int np, unsigned int nc); 33 static void ncsi_send_ae(unsigned int np, unsigned int nc); 34 static void ncsi_send_gls(unsigned int np, unsigned int nc); 35 static int ncsi_send_command(unsigned int np, unsigned int nc, unsigned int cmd, 92 unsigned int np, nc; in ncsi_active() local 97 np = ncsi_priv->current_package; in ncsi_active() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | reconfig-net-interface | 20 # wait getting address from NC-SI 21 systemctl restart network-wait-ipv6-ll@"$INTF".service
|
/openbmc/linux/fs/unicode/ |
H A D | utf8-norm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 int i = um->tables->utf8agetab_size - 1; in utf8version_is_supported() 13 while (i >= 0 && um->tables->utf8agetab[i] != 0) { in utf8version_is_supported() 14 if (version == um->tables->utf8agetab[i]) in utf8version_is_supported() 16 i--; in utf8version_is_supported() 22 * UTF-8 valid ranges. 24 * The UTF-8 encoding spreads the bits of a 32bit word over several 35 * There is an additional requirement on UTF-8, in that only the 47 * Actual unicode characters are limited to the range 0x0 - 0x10FFFF, 51 * 0 - 0x7F: 0 - 0x7F [all …]
|