/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ |
H A D | ncsi_fsm.c | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 21 #include "platforms/nemora/portable/ncsi.h" 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() [all …]
|
H A D | ncsi.h | 5 * you may not use this file except in compliance with the License. 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 [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | argument.cpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 24 namespace ncsi namespace 30 while (-1 != (option = getopt_long(argc, argv, optionStr, options, NULL))) in ArgumentParser() 35 exit(-1); in ArgumentParser() 39 while ((i->val != option) && (i->val != 0)) in ArgumentParser() 44 if (i->val) in ArgumentParser() 46 arguments[i->name] = (i->has_arg ? optarg : trueString); in ArgumentParser() 60 return i->second; in operator []() 69 " --help | -h Print this menu.\n" in usage() [all …]
|
H A D | ncsi_netlink_main.cpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 22 #include <phosphor-logging/lg2.hpp> 31 phosphor::network::ncsi::ArgumentParser::usage(argv); in exitWithError() 36 static void printInfo(phosphor::network::ncsi::InterfaceInfo& info) in printInfo() 38 using namespace phosphor::network::ncsi; in printInfo() 83 using namespace phosphor::network::ncsi; in main() 141 auto payloadStr = (options)["oem-payload"]; in main() 151 // up for the ncsi-cmd operation, which has these as separate arguments. in main() 161 "ncsi-cmd", in main() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | ast2600-ncsi.dts | 1 /dts-v1/; 3 #include "ast2600-u-boot.dtsi" 6 model = "AST2600 EVB w/ NCSI"; 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; [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 …]
|
/openbmc/openbmc/meta-phosphor/dynamic-layers/aspeed-layer/recipes-bsp/u-boot/files/ |
H A D | 0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch | 3 Date: Thu, 20 Oct 2016 17:42:13 -0700 4 Subject: [PATCH 2/2] board/aspeed, aspeednic: Use MAC2 for networking 8 Upstream-Status: Pending 10 Signed-off-by: Xo Wang <xow@google.com> 11 --- 12 drivers/net/aspeednic.c | 4 ++-- 13 include/configs/ast-g5-ncsi.h | 1 + 14 2 files changed, 3 insertions(+), 2 deletions(-) 16 diff --git a/drivers/net/aspeednic.c b/drivers/net/aspeednic.c 18 --- a/drivers/net/aspeednic.c [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsi_state_machine.cpp | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 74 namespace ncsi namespace 89 (void)snprintf(buffer, size, kStateFormat, state->l2_config_state, in snprintf_state() 90 NCSI_STATE_L2_CONFIG_END, state->l3l4_config_state, in snprintf_state() 91 NCSI_STATE_L3L4_CONFIG_END, state->test_state, in snprintf_state() 115 ncsi_state_.restart_delay_count = NCSI_FSM_RESTART_DELAY_COUNT - 1; in reset() 116 network_debug_.ncsi.test.max_tries = MAX_TRIES; in reset() 118 network_debug_.ncsi.test.ch_under_test = 0; in reset() 119 network_debug_.ncsi.oem_filter_disable = false; in reset() [all …]
|
H A D | ncsi_sockio.cpp | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 30 namespace ncsi namespace 36 "ncsi::SockIO::init() failed"); in init() 44 "ncsi::SockIO::bind_to_iface get_index"); in bind_to_iface() 48 "ncsi::SockIO::bind_to_iface setsockopt failed"); in bind_to_iface() 51 "ncsi::SockIO::bind_to_iface failed"); in bind_to_iface() 63 * ret #-1 95 } // namespace ncsi
|
H A D | ncsid.cpp | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 26 return -1; in main() 34 ncsi::SockIO ncsi_sock; in main() 39 ncsi::StateMachine ncsi_fsm; in main() 43 // If run ever returns -- it's an error. in main() 46 return -1; in main()
|
H A D | ncsi_sockio.h | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 24 namespace ncsi 40 // Since raw packet socket is used for NC-SI, it needs to be bound 48 // Non-blocking version of recv. Uses poll with timeout. 55 } // namespace ncsi
|
H A D | ncsi_state_machine.h | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 27 namespace ncsi 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. [all …]
|
/openbmc/openbmc/meta-google/recipes-google/ncsi/files/ |
H A D | gbmc-ncsi-ra.sh | 5 # you may not use this file except in compliance with the License. 8 # http://www.apache.org/licenses/LICENSE-2.0 16 # shellcheck source=meta-google/recipes-google/networking/gbmc-net-common/gbmc-net-lib.sh 17 source /usr/share/gbmc-net-lib.sh || exit 18 # shellcheck source=meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-lib.sh 19 source /usr/share/gbmc-br-lib.sh || exit 23 # NCSI is known to be closer to the ToR than bridge routes. Prefer over bridge routes. 28 local op="${3-add}" 29 busctl set-property xyz.openbmc_project.Network /xyz/openbmc_project/network/"$RA_IF" \ 36 for file in /run/systemd/network/{00,}-bmc-$RA_IF.network; do [all …]
|
H A D | gbmc-ncsi-smartnic-wa.sh.in | 5 # you may not use this file except in compliance with the License. 8 # http://www.apache.org/licenses/LICENSE-2.0 22 echo 'RP_FLAG=' >/run/gbmc-ncsi-dhcrelay.env 23 systemctl reset-failed gbmc-ncsi-dhcrelay 24 systemctl restart --no-block gbmc-ncsi-dhcrelay 27 echo '@NCSI_IF@' >>/run/gbmc-br-dhcp-intfs 28 if systemctl is-active --quiet gbmc-br-dhcp@gbmcbr; then 29 systemctl reset-failed gbmc-br-dhcp@@NCSI_IF@ 30 systemctl restart --no-block gbmc-br-dhcp@@NCSI_IF@ 33 read -r -d '' contents <<EOF [all …]
|
H A D | gbmc-ncsi-br-deprecated-ips.sh.in | 4 # you may not use this file except in compliance with the License. 7 # http://www.apache.org/licenses/LICENSE-2.0 15 [ -n "${gbmc_ncsi_br_deprecated_ips_lib-}" ] && return 18 source /usr/share/gbmc-net-lib.sh || exit 32 ip -6 neigh replace proxy $ip dev @NCSI_IF@ || st=$? 38 [ -n "$gbmc_ncsi_br_deprecated_ips_init" ] || return 44 printf 'gBMC NCSI Deprecated Addrs: %s\n' \ 45 "${gbmc_ncsi_br_deprecated_ips_lastip:-(deleted)}" >&2 49 if [ -n "$gbmc_ncsi_br_deprecated_ips_lastip" ]; then 57 if [ -e /sys/class/net/gbmcbr ]; then [all …]
|
H A D | gbmc-ncsi-nft.sh.in | 4 # you may not use this file except in compliance with the License. 7 # http://www.apache.org/licenses/LICENSE-2.0 15 [ -n "${gbmc_ncsi_nft_lib-}" ] && return 24 [ -n "$gbmc_ncsi_nft_init" ] || return 26 printf 'NCSI firewall for IPv4(%s) IPv6(%s)\n' \ 27 "${gbmc_ncsi_nft_lastip4:-(deleted)}" \ 28 "${gbmc_ncsi_nft_lastip6:-(deleted)}" >&2 35 if [ -n "$ip4" ]; then 40 if [ -n "$ip6" ]; then 47 local rfile=/run/nftables/30-gbmc-ncsi-in.rules [all …]
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | ncsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NC-SI protocol configuration 11 #include <net/ncsi.h> 12 #include <net/ncsi-pkt.h> 21 #define NCSI_CHANNEL_INDEX(c) ((c) & ((1 << NCSI_PACKAGE_SHIFT) - 1)) 52 u32 version; /* Supported BCD encoded NCSI version */ 53 u32 alpha2; /* Supported BCD encoded NCSI version */ 68 struct ncsi { struct 88 struct ncsi *ncsi_priv; argument 97 np = ncsi_priv->current_package; in ncsi_active() [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-facebook-greatlakes.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include <dt-bindings/i2c/i2c.h> 12 compatible = "facebook,greatlakes-bmc", "aspeed,ast2600"; 23 iio-hwmon { 24 compatible = "iio-hwmon"; 25 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, [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/test/ |
H A D | sock_test.cpp | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 32 // This needs to be negative so that ncsi::SockIO in TEST() 34 constexpr int sock_fake_fd = -10; in TEST() 35 ncsi::SockIO ncsi_sock(sock_fake_fd); in TEST()
|
/openbmc/linux/net/ncsi/ |
H A D | ncsi-netlink.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. 12 #include <net/ncsi.h> 15 #include <uapi/linux/ncsi.h> 18 #include "ncsi-pkt.h" 19 #include "ncsi-netlink.h" 46 pr_err("NCSI netlink: No device for ifindex %u\n", ifindex); in ndp_from_ifindex() 66 nla_put_u32(skb, NCSI_CHANNEL_ATTR_ID, nc->id); in ncsi_write_channel_info() 67 m = &nc->modes[NCSI_MODE_LINK]; in ncsi_write_channel_info() 68 nla_put_u32(skb, NCSI_CHANNEL_ATTR_LINK_STATE, m->data[2]); in ncsi_write_channel_info() [all …]
|
H A D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <net/ncsi.h> 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() [all …]
|
H A D | ncsi-manage.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <net/ncsi.h> 22 #include "ncsi-pkt.h" 23 #include "ncsi-netlink.h" 30 return !!(channel->modes[NCSI_MODE_LINK].data[2] & 0x1); in ncsi_channel_has_link() 43 if (nc->state == NCSI_CHANNEL_ACTIVE && in ncsi_channel_is_last() 53 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() 58 nd->state = ncsi_dev_state_functional; in ncsi_report_link() 60 nd->link_up = 0; in ncsi_report_link() 64 nd->link_up = 0; in ncsi_report_link() [all …]
|
/openbmc/docs/ |
H A D | kernel-development.md | 3 The OpenBMC project maintains a kernel tree for use by the project. The tree's 6 case-by-case basis. If in doubt, start a discussion on the mailing list. 26 2. Use 27 …`git format-patch --subject-prefix="PATCH linux dev-4.7" --to=openbmc@lists.ozlabs.org --to=joel@j… 34 hardware you wish to support. Check the OpenBMC `-dev` tree, check upstream, and 41 process)[https://www.kernel.org/doc/Documentation/process/submitting-patches.rst]. 43 In the past patches underwent 'pre-review' on the OpenBMC mailing list. While 55 There are cases where waiting for upstream acceptance will delay the bring-up of 63 `arch/arm/mach-aspeed/aspeed.c`, and the device tree source files `dts`. The 67 If you find yourself adding to `arch/arm/mach-aspeed/aspeed.c`, first send an [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-nic-config/ |
H A D | gbmc-nic-ra.sh | 5 # you may not use this file except in compliance with the License. 8 # http://www.apache.org/licenses/LICENSE-2.0 30 # This is guaranteed to be closer to the ToR than NCSI, for reliability 34 # shellcheck source=meta-google/recipes-google/networking/gbmc-net-common/gbmc-ra.sh 35 source /usr/share/gbmc-ra.sh || exit
|