Connecting an external PHY device to a MAC device using a management data input/output interface
阅读说明:本技术 使用管理数据输入/输出接口将外部phy设备连接到mac设备 (Connecting an external PHY device to a MAC device using a management data input/output interface ) 是由 J·福纳尔 Z·福多尔 于 2019-08-12 设计创作,主要内容包括:示例包括通过确定外部物理层设备与介质访问控制设备之间的通信链路的模式来将外部物理层设备连接到介质访问控制设备;以及当通信链路的模式是串行千兆比特介质无关接口(SGMII)时,启用外部物理层设备与介质访问控制设备之间的集成电路间(I2C)接口,并且将管理数据输入/输出(MDIO)事务的目的地设置为外部物理层设备。(Examples include connecting an external physical layer device to a media access control device by determining a mode of a communication link between the external physical layer device and the media access control device; and when the mode of the communication link is Serial Gigabit Media Independent Interface (SGMII), enabling an inter-integrated circuit (I2C) interface between the external physical layer device and the media access control device and setting a destination of a management data input/output (MDIO) transaction as the external physical layer device.)
1. A method, comprising:
determining a mode of a communication link between an external physical layer device and a medium access control device; and
when the mode of the communication link is Serial Gigabit Media Independent Interface (SGMII), enabling an inter-integrated circuit (I2C) interface between the external physical layer device and the media access control device and setting a destination for management data input/output (MDIO) transactions as the external physical layer device.
2. The method of claim 1, comprising setting a media type to copper when the mode is SGMII.
3. The method of claim 1 including setting an SGMII activity variable to true when the pattern is SGMII.
4. The method of claim 1, comprising performing an MDIO transaction between the external physical layer device and the media access control device in SGMII mode using an MDIO protocol when the mode is SGMII.
5. The method of claim 1, wherein the media access control device comprises an ethernet Network Interface Controller (NIC).
6. The method of claim 1, comprising transmitting Audio Video Bridge (AVB) packets between the external physical layer device and the media access control device.
7. A processing system, comprising:
a network input/output (I/O) device coupled with at least one external physical layer device; and
a network I/O device driver to determine a mode of a communication link between the network I/O device and the at least one external physical layer device; and when the mode of the communication link is Serial Gigabit Media Independent Interface (SGMII), enabling an inter-integrated circuit (I2C) interface between the external physical layer device and the network I/O device and setting a destination of a management data input/output (MDIO) transaction as the external physical layer device.
8. The processing system of claim 7, comprising the network I/O device driver to set a media type to copper when the mode is SGMII.
9. The processing system of claim 7, comprising the network I/O device driver to set an SGMII activity variable to true when the mode is SGMII.
10. The processing system of claim 7, wherein the network I/O device comprises MDIO circuitry to perform an MDIO transaction between the external physical layer device and the network I/O device in SGMII mode using an MDIO protocol when the mode is SGMII.
11. The processing system of claim 7, wherein the network I/O device comprises an ethernet Network Interface Controller (NIC) having media access control circuitry.
12. The processing system of claim 7, comprising an operating system including the network I/O device driver.
13. The processing system of claim 12, wherein the operating system is LinuxTM。
14. The processing system of claim 7, comprising the network I/O device to control sending Audio Video Bridge (AVB) packets between the external physical layer device and the network I/O device.
15. At least one machine readable medium comprising a plurality of instructions that in response to being executed by a system, cause the system to carry out a method according to any one of claims 1 to 6.
16. An apparatus comprising means for performing the method of any of claims 1-6.
Background
The Open Systems Interconnection (OSI) model is a conceptual framework that characterizes and standardizes the communication functions of a telecommunications or computing system, regardless of its underlying internal structure and technology. The model divides the communication system into abstraction layers.
The physical layer (PHY) is responsible for transmitting and receiving unstructured raw data between the device and the physical transmission medium. The layer specification defines characteristics such as voltage level, timing of voltage changes, physical data rate, maximum transmission distance, and physical connectors. These characteristics include pin layout, voltage, line impedance, cable specifications, signal timing and frequency of the wireless device. The components of the physical layer may be described in terms of network topology. An example of a protocol using the physical layer is ethernet (as defined by the Institute of Electrical and Electronics Engineers (IEEE)802.3 standard, described at standards.
The data link layer provides node-to-node data transfer — a link between two directly connected nodes. The data link layer defines the protocol used to establish and terminate a connection between two physically connected devices. The data link layer also defines a protocol for flow control between two physically connected devices. In one example, the IEEE 802.3 ethernet standard divides the data link layer into two sub-layers: a) media Access Control (MAC) layer-responsible for controlling how devices in the network gain access to the medium and permission to transfer data; and b) Logical Link Control (LLC) layer, responsible for identifying and encapsulating network layer protocols, and controlling error checking and frame synchronization.
In some cases, there are difficulties in connecting an external PHY device to a MAC device (e.g., an ethernet Network Interface Controller (NIC)). One approach is to integrate PHY devices into MAC devices (referred to as internal PHY methods). However, this approach introduces various limitations on the ability to be delivered by the PHY module. Notably, internal PHY approaches fail to provide the ability to switch to a different, more suitable PHY device (e.g., in terms of better supported connections, better supported temperature ranges, etc.).
Another approach is to use an external PHY device but with a connection through a serializer/deserializer (SERDES) interface. The SERDES interface includes a pair of functional blocks that are typically used for high speed communications to compensate for limited input/output. These blocks convert data in each direction between the serial data and parallel interfaces. The primary purpose of SerDes is to provide data transmission over a single line or differential pair in order to minimize the number of I/O pins and interconnects. In this approach, the connection to the external PHY device is achieved by using an integrated circuit capable of converting parallel data into the serial equivalent of data (and vice versa). Unfortunately, some external PHY devices do not support SERDES connections. Therefore, a better method is needed.
Drawings
FIG. 1 illustrates an example computing system.
FIG. 2 illustrates an example network I/O device.
FIG. 3 illustrates an example software stack for network I/O processing.
Fig. 4 illustrates an example flow diagram of a process for connecting an external PHY device to a MAC device using a management data I/o (mdio) interface.
Fig. 5 shows an example flow diagram of a process for establishing a media type.
Fig. 6 shows an example of a storage medium.
FIG. 7 illustrates another example computing platform.
Detailed Description
Embodiments of the present invention disclose an improved device driver for a network I/O device (e.g., an Ethernet NIC) to successfully establish full link functionality for a hardware configuration including one or more external PHY devices using a management data I/O (MDIO) interface. In an embodiment, the full link functionality provides the ability to send and receive Audio Video Bridge (AVB) packets in accordance with the IEEE802.1 BA Standard, known as the Local and Metropolitan area network IEEE Standard-Audio Video Bridging (AVB) System (IEEE Standard for Local and metropolian area networks-Audio-Visual Bridging (AVB) System, which is available at www.ieee802.org/1/pages/802.1BA.
FIG. 1 illustrates an
According to some examples,
In some examples,
The
According to some examples,
FIG. 2 illustrates an example network I/
The MII222 is defined as a standard interface for connecting gigabit ethernet (MAC) blocks to PHY chips. MII is defined by IEEE 802.3 (available at standards. ee. org) and connects different types of PHY to MAC. The media independent representation may use different types of PHY devices for connection to different media (i.e., twisted pair, fiber, etc.) without redesigning or replacing the MAC hardware (i.e., network I/O device 110). Thus, any MAC may be used with any PHY independent of the network signaling medium. The MII may be used to connect the MAC to an external PHY using a pluggable connector, or directly to an internal PHY chip located on the same Printed Circuit Board (PCB).
Management data I/O (MDIO)218 serial bus circuitry is associated with the MII, which is used to communicate management information between the MAC and PHY components. Auto-negotiation is used at system power-up, unless settings are changed via the MDIO interface, the PHY device adapts to any MAC device it is connected to. Serial Gigabit Media Independent Interface (SGMII) is a variant of MII. SGMII is used for gigabit Ethernet, but can also carry 10/100 Mbit/s Ethernet. In an embodiment, the MII222 comprises an SGMII. SGMII uses differential pairs at 625 MHz clock frequency Double Data Rate (DDR) for Transmit (TX) and Receive (RX) data and TX and RX clocks. SGMII provides a serial 8b/10b encoded interface with low power and low pin count. The transmit path and the receive path each use one differential pair for data and the other differential pair for a clock. The TX/RX clock must be generated at the device output but is optional at the device input. In an embodiment, the MII222 is a SERDES interface. In an embodiment, the MII222 includes capabilities for both the SGMII interface and the SERDES interface.
Network I/
In an embodiment, the network I/
In an embodiment, the network I/
FIG. 3 illustrates an
The
The
The network I/
FIG. 4 shows an example of a process for connecting an external PHY device to a MAC device using a management data I/O (MDIO) interfaceExample flow diagram 400. In an embodiment, the
Fig. 5 shows an example flow diagram 500 of a process for establishing a media type. At
SGMII provides two options-an internal MDIO and an external MDIO. Embodiments of the present invention use external MDIO. In an embodiment, the link mode is obtained by reading the value from CTRL _
In an embodiment, a query mechanism is implemented within the network I/O device driver to query the MDIC registers for available values of the PHY register Address field and the PHY _ Address field within MDIC nfg registers 228. The
The following is example pseudo code for this query mechanism.
In an embodiment, a module parameter is introduced that specifies the PHY _ Address to be used when loading the network I/O device driver. LinuxTMThe MODULE _ PARAM _ DESC macro defined in (1) enables this feature. The arguments specified by the user to load the network I/O device driver module into the OS are then used in the initialization process of the device driver.
Sudo insmod device_driver PHY_Addr=<specified_PHY_Address>
At
Fig. 6 shows an example of a storage medium 600. The storage medium 600 may comprise an article of manufacture. In some examples, storage medium 600 may include any non-transitory computer-readable or machine-readable medium, such as an optical, magnetic, or semiconductor storage device. Storage medium 600 may store various types of computer-executable instructions, such as
FIG. 7 illustrates an example computing platform 700. In some examples, as shown in fig. 7, computing platform 700 may include a processing component 702, other platform components 704, and/or a communication interface 706. In an embodiment, computing platform 700 is an infotainment system residing in a vehicle (e.g., automobile, truck, motorcycle, etc.), ship, aircraft, or spacecraft.
According to some examples, processing component 702 may execute processing operations or logic directed to instructions stored on storage medium 600. The processing component 702 may include various hardware elements, software elements, or a combination of both. Examples of hardware elements may include devices, logic devices, components, processors, microprocessors, circuits, processor circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, and so forth), integrated circuits, Application Specific Integrated Circuits (ASIC), Programmable Logic Devices (PLD), Digital Signal Processors (DSP), Field Programmable Gate Array (FPGA), memory units, logic gates, registers, semiconductor device, chips, microchips, chip sets, and so forth. Examples of software elements may include software components, programs, applications, computer programs, application programs, device drivers, system programs, software development programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, procedures, software interfaces, Application Program Interfaces (API), instruction sets, computing code, computer code, code segments, computer code segments, words, values, symbols, or any combination thereof. Determining example implementation using hardware elements and/or software elements may vary in accordance with any number of factors, such as desired computational rate, power levels, heat tolerances, processing cycle budget, input data rates, output data rates, memory resources, data bus speeds and other design or performance constraints, as desired for a given example.
In some examples, other platform components 704 may include common computing elements, such as one or more processors, multi-core processors, co-processors, memory units, chipsets, controllers, peripherals, interfaces, oscillators, timing devices, video cards, audio cards, multimedia input/output (I/O) components (e.g., digital displays), power supplies, and so forth. Examples of memory units may include, but are not limited to, various types of computer-readable and machine-readable storage media in the form of one or more higher speed memory units, such as Read Only Memory (ROM), Random Access Memory (RAM), dynamic RAM (dram), double data rate dram (ddram), synchronous dram (sdram), static RAM (sram), programmable ROM (prom), erasable programmable ROM (eprom), electrically erasable programmable ROM (eeprom), types of non-volatile memory such as 3-D cross-point memory that may be byte or block addressable. The non-volatile type of memory may also include other types of byte or block addressable non-volatile memory, such as, but not limited to, multi-threshold level NAND flash memory, NOR flash memory, single or multi-level PCM, resistive memory, nanowire memory, FeTRAM, MRAM in conjunction with memristor technology, STT-MRAM, or a combination of any of the above. Other types of computer-readable and machine-readable storage media may also include magnetic or optical cards, arrays of devices such as Redundant Array of Independent Disks (RAID) drives, solid state memory devices (e.g., USB memory), Solid State Drives (SSDs), and any other type of storage media suitable for storing information.
In some examples, the communication interface 706 may include logic and/or features to support a communication interface. For these examples, communication interface 706 may include one or more communication interfaces operating according to various communication protocols or standards to communicate over direct or network communication links or channels. Direct communication may occur via use of communication protocols or standards (e.g., those associated with the PCIe specification) described in one or more industry standards, including progeny and variants. Network communication may occur via use of communication protocols or standards such as those described in one or more of the IEEE published ethernet standards. For example, one such ethernet standard may include IEEE 802.3. Network communications may also occur in accordance with one or more OpenFlow specifications, such as the OpenFlow switch specification.
The components and features of computing platform 700, including the logic represented by the instructions stored on storage medium 600, may be implemented using any combination of discrete circuitry, ASICs, logic gates and/or single-chip architectures. Furthermore, the features of computing platform 700 may be implemented using microcontrollers, programmable logic arrays and/or microprocessors or any combination of the foregoing where suitably appropriate. It should be noted that hardware, firmware, and/or software elements may be collectively or individually referred to herein as "logic" or "circuitry".
It should be appreciated that the exemplary computing platform 700 shown in the block diagram of FIG. 7 may represent one functionally descriptive example of many potential implementations. Thus, division, omission or inclusion of block functions depicted in the accompanying figures does not infer that the hardware components, circuits, software and/or elements for implementing these functions would be divided, omitted, or included in the embodiments.
Various examples may be implemented using hardware elements, software elements, or a combination of both. In some examples, hardware elements may include devices, components, processors, microprocessors, circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, and so forth), integrated circuits, ASICs, Programmable Logic Devices (PLDs), Digital Signal Processors (DSPs), FPGAs, memory units, logic gates, registers, semiconductor device, chips, microchips, chip sets, and so forth. In some examples, a software element may include a software component, a program, an application, a computer program, an application, a system program, a machine program, operating system software, middleware, firmware, a software module, a routine, a subroutine, a function, a method, a procedure, a software interface, an Application Program Interface (API), an instruction set, computing code, computer code, a code segment, a computer code segment, a word, a value, a symbol, or any combination thereof. Determining example implementation using hardware elements and/or software elements may vary in accordance with any number of factors, such as desired computational rate, power levels, heat tolerances, processing cycle budget, input data rates, output data rates, memory resources, data bus speeds and other design or performance constraints, as desired for a given implementation.
Some examples may include an article of manufacture or at least one computer-readable medium. The computer-readable medium may include a non-transitory storage medium for storing logic. In some examples, a non-transitory storage medium may include one or more types of computer-readable storage media capable of storing electronic data, including volatile memory or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writeable or re-writeable memory, and so forth. In some examples, logic may include various software elements, such as software components, programs, applications, computer programs, application programs, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, procedures, software interfaces, APIs, instruction sets, computing code, computer code, code segments, computer code segments, words, values, symbols, or any combination thereof.
Some examples may be described using the expression "in one example" or "an example" and derivatives thereof. The terms mean that a particular feature, structure, or characteristic described in connection with the example is included in at least one example. The appearances of the phrase "in one example" in various places in the specification are not necessarily all referring to the same example.
Included herein are logical flows or schemes representing example methods for performing novel aspects of the disclosed architecture. While, for purposes of simplicity of explanation, the one or more methodologies shown herein are shown and described as a series of acts, those skilled in the art will understand and appreciate that the methodologies are not limited by the order of acts. Some acts may occur in different orders and/or concurrently with other acts from that shown and described herein. For example, those skilled in the art will understand and appreciate that a methodology could alternatively be represented as a series of interrelated states or events, such as in a state diagram. Moreover, not all acts illustrated in a methodology may be required for a novel implementation.
The logic flows or schemes may be implemented in software, firmware, and/or hardware. In software and firmware embodiments, the logic flows or schemes may be implemented by computer-executable instructions stored on at least one non-transitory computer-readable medium or machine-readable medium (e.g., optical, magnetic, or semiconductor memory devices). The embodiments are not limited in this context.
Some examples are described using the expression "coupled" and "connected" along with their derivatives. These terms are not necessarily intended as synonyms for each other. For example, descriptions using the terms "connected" and/or "coupled" may indicate that two or more elements are in direct physical or electrical contact with each other. The term "coupled," however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other.
It should be emphasized that the abstract of the present disclosure is provided to comply with section 1.72(b) of the 37 c.f.r. requiring an abstract that will allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. Additionally, in the foregoing detailed description, it can be seen that various features are grouped together in a single example for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed examples require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed example. Thus the following claims are hereby incorporated into the detailed description, with each claim standing on its own as a separate example. In the appended claims, the terms "including" and "in which" are used as the plain-english equivalents of the respective terms "comprising" and "in which", respectively. Furthermore, the terms "first," "second," "third," and the like are used merely as labels, and are not intended to impose numerical requirements on their objects.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:基于FPGA的传输数据的方法、设备及系统