CN114003538B - Identification method of intelligent network card and intelligent network card - Google Patents

Identification method of intelligent network card and intelligent network card Download PDF

Info

Publication number
CN114003538B
CN114003538B CN202111233189.5A CN202111233189A CN114003538B CN 114003538 B CN114003538 B CN 114003538B CN 202111233189 A CN202111233189 A CN 202111233189A CN 114003538 B CN114003538 B CN 114003538B
Authority
CN
China
Prior art keywords
intelligent network
network card
pcie
storage medium
management controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111233189.5A
Other languages
Chinese (zh)
Other versions
CN114003538A (en
Inventor
梁盛楠
朱英澍
曹风兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111233189.5A priority Critical patent/CN114003538B/en
Publication of CN114003538A publication Critical patent/CN114003538A/en
Application granted granted Critical
Publication of CN114003538B publication Critical patent/CN114003538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The utility model discloses an intelligent network card identification method and intelligent network card, through add the first storage medium that is connected through the PCIe golden finger of I2C bus with intelligent network card on the board card of intelligent network card, wherein the unique identification that has stored intelligent network card, the base plate management controller of host computer end is after the power on, when receiving the inquiry equipment state command that basic input output system sent, read the PCIe equipment that inserts on the PCIe trench, if can read identification information and identification information is unanimous with intelligent network card identification information that prestores, just discern as intelligent network card, and then accomplish corresponding connection configuration accurately, the erroneous judgement problem that can cause through I2C input/output expander output bit data only in the current intelligent network card identification scheme has been eliminated, promote the server normal start, the security risk that erroneous judgement intelligent network card led to the fact to the system service has been eliminated.

Description

Identification method of intelligent network card and intelligent network card
Technical Field
The present disclosure relates to the field of server technologies, and in particular, to an intelligent network card and an identification method thereof.
Background
The baseboard management controller (Baseboard Management Controller, BMC) is a control chip on the server motherboard, which can remotely operate the central processing unit (central processing unit, CPU), is a set of system independent of the CPU end of the switch, can remotely monitor some performance indexes on the switch system, and can perform a series of operations such as startup and shutdown operations, system upgrading, equipment checking and the like on the switch.
An intelligent network card (SmartNIC) is novel network equipment which is used together with a server in recent years, and mainly bears network processing work on an original server CPU, so that the server performance in a cloud and private data center is improved. The hardware management design of the intelligent network card is similar to that of a server main board, and the intelligent network card also has a baseboard management controller for monitoring and managing the hardware state of the whole intelligent network card, the system health and other indexes.
The intelligent network card is used as a pluggable PCIe (peripheral component interconnect express) device on the server, from the perspective of the server, the device connected with the intelligent network card can be correctly identified as the intelligent network card after the intelligent network card is powered on for the first time, and a basic input output system (Basic Input Output System, BIOS) of the server can be used for carrying out a series of initialization operations in a targeted manner, so that the normal execution of the intelligent network card service is ensured after the server is started.
The current identification scheme of the server for the intelligent network card is that an 8-bit I2C input/output expander (I2C I/O expander, such as PCA 9554) is placed on the intelligent network card, and the device can output corresponding bit data according to external hardware resistance configuration. After the intelligent network card leaves the factory, the bit data is a fixed value, the fixed value is used as the board ID of the intelligent network card, the basic input/output system at the host end can read the bit data output by the I2C input/output expander through the PCIe golden finger of the intelligent network card and the I2C bus led out from the I2C input/output expander, and the intelligent network card is connected on the current PCIe slot position according to the bit data.
However, the fixed bit data is easy to repeat, and if other PCIe devices or other intelligent network cards output the same bit data, the host basic input output system of the server may misjudge the type of the access device, so that the system service of the server may be seriously affected.
Disclosure of Invention
The purpose of the application is to provide an intelligent network card identification method and an intelligent network card, which are used for avoiding misjudgment of other PCIe devices as the intelligent network card and accurately identifying the specific intelligent network card.
In order to solve the above technical problems, the present application provides an identification method of an intelligent network card, a baseboard management controller based on a motherboard end, including:
after power-on, when a device state inquiring command sent by the basic input/output system is received, reading PCIe devices accessed on PCIe slots;
if the identification information can be read, comparing the identification information with pre-stored intelligent network card identification information;
if the comparison is consistent, determining that the PCIe equipment is an intelligent network card;
the first storage medium of the intelligent network card stores a unique identifier of the intelligent network card, and the first storage medium is connected with a PCIe golden finger of the intelligent network card through an I2C bus.
Optionally, the unique identifier is specifically an identifier which is generated according to the production information of the intelligent network card and uniquely corresponds to the intelligent network card;
the production information includes at least a serial number and a product name.
Optionally, the first storage medium is specifically a charged erasable programmable read-only memory.
Optionally, the intelligent network card identification information specifically includes the unique identification and bit data output by the I2C input/output expander of the intelligent network card after power-on;
correspondingly, if the comparison is consistent, determining that the PCIe device is the intelligent network card, specifically:
if the identification information comprises the unique identification corresponding to the intelligent network card and the bit data corresponding to the intelligent network card, the PCIe equipment is the intelligent network card;
the I2C input/output expander is connected with the PCIe golden finger through an I2C bus.
Optionally, the intelligent network card further includes a data selector disposed between the first storage medium and a baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
and the data selector is used for connecting the first storage medium with the PCIe golden finger by default when being electrified.
Optionally, the method further comprises:
and after the baseboard management controller of the intelligent network card controls the data selector to communicate the baseboard management controller of the intelligent network card with the first storage medium and update the unique identifier, updating the intelligent network card identifier information.
In order to solve the above technical problem, the present application further provides an intelligent network card, including: the first storage medium and the PCIe golden finger;
the first storage medium is connected with the PCIe golden finger through an I2C bus, and the unique identifier of the intelligent network card is stored in the first storage medium.
Optionally, the device further comprises an I2C input/output expander which is connected with the PCIe golden finger through an I2C bus and is used for outputting bit data after power-on.
Optionally, the system further comprises a data selector arranged between the first storage medium and the baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
and the data selector defaults to connect the first storage medium with the PCIe golden finger of the intelligent network card when the data selector is electrified.
Optionally, the data selector is configured to communicate the baseboard management controller of the intelligent network card with the first storage medium under control of the baseboard management controller of the intelligent network card, so that the baseboard management controller controls the first storage medium to update the unique identifier.
According to the identification method of the intelligent network card, the first storage medium connected with the PCIe golden finger of the intelligent network card through the I2C bus is additionally arranged on the board card of the intelligent network card, the unique identification of the intelligent network card is stored in the first storage medium, after the base plate management controller at the host end is electrified, when the inquiry equipment state command sent by the basic input and output system is received, PCIe equipment accessed on the PCIe slot is read, if identification information can be read and is consistent with the prestored intelligent network card identification information, the intelligent network card is identified, the corresponding connection configuration is further accurately completed, the misjudgment problem possibly caused by outputting bit data only through the I2C input and output expander in the existing intelligent network card identification scheme is eliminated, the normal starting of a server is promoted, and the safety risk of misjudgment of the intelligent network card on system service is eliminated.
The application further provides an intelligent network card, which has the beneficial effects and is not described in detail herein.
Drawings
For a clearer description of embodiments of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description that follow are only some embodiments of the present application, and that other drawings may be obtained from these drawings by a person of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic structural diagram of an intelligent network card according to an embodiment of the present application;
fig. 2 is a flowchart of an identification method of an intelligent network card according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an identification device of an intelligent network card according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an identification device of an intelligent network card according to an embodiment of the present application.
Detailed Description
The core of the application is to provide an intelligent network card identification method and an intelligent network card, which are used for avoiding misjudgment of other PCIe devices as the intelligent network card and accurately identifying the specific intelligent network card.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a schematic structural diagram of an intelligent network card according to an embodiment of the present application.
As shown in fig. 1, an intelligent network card provided in an embodiment of the present application includes: a first storage medium 101 and a PCIe gold finger 102;
the first storage medium 101 is connected with the PCIe golden finger 102 through the I2C bus, and the first storage medium 101 stores the unique identification of the intelligent network card.
In an implementation, as shown in fig. 1, the PCIe gold finger 102 of the intelligent network card is used in a PCIe slot of the access server. On the board card of the intelligent network card, the PCIe gold finger 102 is connected with a baseboard management controller (such as an I2C1 interface of the SNIC BMC in fig. 1) of the intelligent network card through an I2C bus. Wherein PCA9617 is an I2C bus repeater.
The first storage medium 101 is connected to the I2C bus connected to the PCIe gold finger 102, so that after the PCIe gold finger 102 of the intelligent network card is inserted into the PCIe slot of the server, the intelligent network card is powered on, at this time, the baseboard management controller of the intelligent network card is not powered on yet, but the host end of the server can directly read information in the first storage medium 101 through the PCIe gold finger 102.
The first storage medium 101 may employ charged erasable programmable read-only memory (Electrically Erasable Programmable read only memory, EEPROM) to replace the unique identifier stored therein when needed.
The unique identifier is used for uniquely determining the intelligent network card, so that the baseboard management controller of the server host accurately identifies the intelligent network card and avoids misjudging other PCIe devices as the intelligent network card. The unique identifier may be generated according to production information of the intelligent network card, and may include a serial number, a product name, and the like without sensitive information of the intelligent network card.
Further, the intelligent network card provided in the embodiment of the present application may further include an I2C input/output extender 104 connected to the PCIe gold finger 102 through an I2C bus and configured to output bit data after power-on.
As shown in fig. 1, the I2C input output spreader 104 may specifically employ PCA9554.PCA9554 may output 8 bits of data depending on the external hardware resistance configuration. The dual verification of the identity information of the intelligent network card is formed through the bit data output by the I2C input/output expander 104 and the unique identifier stored in the first storage medium 101, so that the accuracy of the identification of the intelligent network card is further improved.
Further, the intelligent network card provided in the embodiment of the present application may further include a data selector 103 disposed between the first storage medium 101 and the baseboard management controller of the intelligent network card;
the fixed end of the data selector 103 is connected with the first storage medium 101, the first selection end of the data selector 103 is connected with the PCIe golden finger 102 of the intelligent network card, and the second selection end of the data selector 103 is connected with the baseboard management controller of the intelligent network card;
the data selector 103 defaults to a PCIe gold finger 102 that connects the first storage medium 101 to the smart network card when powered on.
As shown in fig. 1, the data selector 103 may be a two-out selector, which is used to connect the first storage medium 101 to a different device. The data selector 103 connects the first storage medium 101 with the PCIe gold finger 102 of the intelligent network card by default when power is applied, so that after the PCIe gold finger 102 of the intelligent network card is inserted into the PCIe slot of the server, the intelligent network card is powered on, at this time, the baseboard management controller of the intelligent network card is not powered on yet, but the host end of the server can directly read information in the first storage medium 101 through the PCIe gold finger 102.
The second selection end of the data selector 103 is connected to the baseboard management controller of the intelligent network card, so that after the second selection end is communicated with the fixed end, (I2C 2 interface of) the baseboard management controller of the intelligent network card is connected to the first storage medium 101, so that the baseboard management controller of the intelligent network card manages the first storage medium 101.
The control end of the data selector 103 may be connected to the outside, for example, to switch the internal connection channel under the control of a dial switch, or may be connected to a baseboard management controller (not shown in fig. 1) of the intelligent network card, so as to switch the internal connection channel under the control of the baseboard management controller.
On this basis, the data selector 103 communicates the baseboard management controller of the intelligent network card with the first storage medium 101 under the control of the baseboard management controller of the intelligent network card, so that the baseboard management controller controls the first storage medium 101 to update the unique identifier.
The original storage medium (in this embodiment, referred to as a second storage medium) of the intelligent network card, only the baseboard management controller of the intelligent network card has a read right, where all information for the intelligent network card is stored, including MAC address, FRU information, various configuration information, device asset information, and the like. The baseboard management controller of the intelligent network card can read the FRU information in the second storage medium after power-on to update the unique identifier in the first storage medium 101, and send the updated unique identifier to the host end through communication with the host end, so that the host end updates the pre-stored intelligent network card identifier information.
Various embodiments corresponding to the intelligent network card are described in detail above, and on the basis of the embodiments, the application also discloses an identification method of the intelligent network card corresponding to the intelligent network card.
Fig. 2 is a flowchart of an identification method of an intelligent network card according to an embodiment of the present application.
As shown in fig. 2, the method for identifying an intelligent network card provided in the embodiment of the present application includes:
s201: after power-on, when a command for inquiring the device state sent by the basic input/output system is received, reading PCIe devices accessed on PCIe slots.
S202: if the identification information can be read, the identification information is compared with the pre-stored intelligent network card identification information.
S203: if the comparison is consistent, determining that the PCIe device is an intelligent network card.
The first storage medium of the intelligent network card stores a unique identifier of the intelligent network card, and is connected with a PCIe golden finger of the intelligent network card through an I2C bus.
In specific implementation, a first storage medium connected with a PCIe golden finger of the intelligent network card through an I2C bus is additionally arranged on a board card of the intelligent network card, and a unique identifier of the intelligent network card is stored in the first storage medium so that equipment connected with the PCIe golden finger can be directly read through the PCIe golden finger and the I2C bus. The method comprises the steps that intelligent network card identification information and consistency judging logic are stored in advance in a host end of a server, identification information read from PCIe equipment connected with PCIe slots is compared with prestored intelligent network card identification information, if the identification information is consistent with the prestored intelligent network card identification information, the PCIe equipment is confirmed to be an intelligent network card, and accordingly corresponding configuration files are called to conduct connection configuration of the host end and the intelligent network card.
The first storage medium may employ charged erasable programmable read-only memory (Electrically Erasable Programmable read only memory, EEPROM) to replace the unique identifier stored therein when needed.
The unique identifier is used for uniquely determining the intelligent network card, so that the baseboard management controller of the server host accurately identifies the intelligent network card and avoids misjudging other PCIe devices as the intelligent network card. The unique identifier may be generated according to production information of the intelligent network card, and may include a serial number, a product name, and the like without sensitive information of the intelligent network card.
In practical application, after the host is powered on, the baseboard management controller at the host obtains the control right of the PCIe gold finger I2C line, and at this time, the intelligent network card is not powered on yet. The basic input/output system at the host end is blocked after being started, and a query device status command (IPMI oem) is sent to the baseboard management controller at the host end in a circulating way. And the substrate management controller at the host computer end reads the identification information of the PCIe device at the PCIe slot position, if the identification information can be read and analyzed into the intelligent network card, the flag bit is set, and a query device state command sent to the basic input/output system returns the correct intelligent network card device type. And the basic input/output system performs initialization setting related to the intelligent network card, and then continues the starting-up flow.
If the baseboard management controller at the host detects that the PCIe slot is connected with the device but cannot read the identification information or cannot parse the identification information into the intelligent network card identification information, the state command of the query device sent by the basic input/output system cannot return a correct result all the time, and after reaching a timeout time (for example, 2 minutes), the basic input/output system considers that the intelligent network card is not currently inserted, and continues to execute a common startup procedure.
According to the identification method of the intelligent network card, the first storage medium connected with the PCIe golden finger of the intelligent network card through the I2C bus is additionally arranged on the board card of the intelligent network card, the unique identification of the intelligent network card is stored in the first storage medium, after the base plate management controller at the host end is electrified, when the inquiry equipment state command sent by the basic input and output system is received, PCIe equipment accessed on the PCIe slot is read, if identification information can be read and is consistent with the prestored intelligent network card identification information, the intelligent network card is identified, corresponding connection configuration is further accurately completed, the misjudgment problem possibly caused by outputting bit data only through the I2C input and output expander in the existing intelligent network card identification scheme is eliminated, normal starting of a server is promoted, and the safety risk of the misjudgment intelligent network card on system service is eliminated.
On the basis of the embodiment, in order to improve the accuracy of identifying the intelligent network card, the intelligent network card identification information specifically comprises a unique identification and bit data output by the I2C input/output expander of the intelligent network card after power on.
Accordingly, step S203: if the comparison is consistent, determining that the PCIe device is an intelligent network card, specifically:
if the identification information comprises a unique identification corresponding to the intelligent network card and bit data corresponding to the intelligent network card, the PCIe device is the intelligent network card.
The I2C input/output expander is connected with the PCIe golden finger through an I2C bus.
In a specific implementation, the intelligent network card identification information stored in the baseboard management controller at the host end may include a board ID of the intelligent network card (i.e. bit data corresponding to the external resistor configuration of the I2C input/output expander) and FRU key information (e.g. product name). The baseboard management controller at the host end compares whether the card ID is correct or not, and then analyzes the product name field from FRU data. If the unique identification and the bit data are consistent with the record of the prestored intelligent network card identification information, indicating that the intelligent network card equipment is in place at the moment, and setting the self-marking position; if the two data or data parsing errors cannot be read from the I2C bus, the flag bits are consistent with an error state.
Based on the above embodiment, in order to update the data in the first storage medium conveniently, in the identification method of the intelligent network card provided in the embodiment of the present application, the intelligent network card further includes a data selector disposed between the first storage medium and a baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
the data selector defaults to connect the first storage medium with the PCIe golden finger when powered on.
In an implementation, the data selector may be a two-out selector, which is used to connect the first storage medium to a different device. The first storage medium is communicated with the PCIe golden finger of the intelligent network card by default when the data selector is electrified, so that after the PCIe golden finger of the intelligent network card is inserted into the PCIe slot of the server, the intelligent network card is electrified, at the moment, the substrate management controller of the intelligent network card is not electrified yet, but the host end of the server can directly read the information in the first storage medium through the PCIe golden finger.
The second selection end of the data selector is connected with the baseboard management controller of the intelligent network card, so that after the second selection end is communicated with the fixed end, the (I2C 2 interface of the) baseboard management controller of the intelligent network card is connected with the first storage medium, and the baseboard management controller of the intelligent network card can manage the first storage medium.
The control end of the data selector may be externally connected, for example, by switching the internal connection channel under the control of the dial switch, or may be connected to a baseboard management controller (not shown in fig. 1) of the intelligent network card, so as to switch the internal connection channel under the control of the baseboard management controller.
On the basis, the data selector is communicated with the substrate management controller of the intelligent network card and the first storage medium under the control of the substrate management controller of the intelligent network card.
On the basis of the above embodiment, the method for identifying an intelligent network card provided in the embodiment of the present application further includes:
after the baseboard management controller of the intelligent network card controls the data selector to communicate the baseboard management controller of the intelligent network card with the first storage medium and update the unique identifier, the intelligent network card identification information is updated.
In a specific implementation, after the basic input/output system of the host end completes the startup process, the baseboard management controller of the host end establishes communication connection with the baseboard management controller of the intelligent network card. After updating the unique identifier in the first storage medium, the baseboard management controller of the intelligent network card sends a unique identifier updating notification to the baseboard management controller of the host, and the baseboard management controller of the host updates the identifier information of the intelligent network card accordingly.
Various embodiments corresponding to the identification method of the intelligent network card are detailed above, and on the basis of the embodiments, the application also discloses an identification device, equipment and a computer readable storage medium of the intelligent network card corresponding to the identification method.
Fig. 3 is a schematic structural diagram of an identification device of an intelligent network card according to an embodiment of the present application.
As shown in fig. 3, the device for identifying an intelligent network card provided in the embodiment of the present application includes:
the reading unit is used for reading PCIe equipment accessed on the PCIe slot position when receiving the query equipment state command sent by the basic input/output system after power-on;
the identification unit is used for comparing the identification information with the pre-stored intelligent network card identification information if the identification information can be read; if the comparison is consistent, determining that the PCIe device is an intelligent network card.
The first storage medium of the intelligent network card stores a unique identifier of the intelligent network card, and is connected with a PCIe golden finger of the intelligent network card through an I2C bus.
Optionally, the unique identifier is specifically an identifier which is generated according to the production information of the intelligent network card and uniquely corresponds to the intelligent network card;
the production information includes at least a serial number and a product name.
Optionally, the first storage medium is specifically a charged erasable programmable read only memory.
Optionally, the intelligent network card identification information specifically includes a unique identification and bit data output by the I2C input/output expander of the intelligent network card after power-on;
correspondingly, if the comparison is consistent, the identification unit determines that the PCIe device is an intelligent network card, specifically:
if the identification information comprises a unique identification corresponding to the intelligent network card and bit data corresponding to the intelligent network card, the PCIe device is the intelligent network card.
The I2C input/output expander is connected with the PCIe golden finger through an I2C bus.
Optionally, the intelligent network card further comprises a data selector arranged between the first storage medium and the baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
the data selector defaults to connect the first storage medium with the PCIe golden finger when powered on.
Optionally, the identifying device for an intelligent network card provided in the embodiment of the present application further includes:
and the updating unit is used for updating the identification information of the intelligent network card after the substrate management controller of the intelligent network card controls the data selector to communicate the substrate management controller of the intelligent network card with the first storage medium and update the unique identification.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 4 is a schematic structural diagram of an identification device of an intelligent network card according to an embodiment of the present application.
As shown in fig. 4, the identifying device for an intelligent network card provided in the embodiment of the present application includes:
a memory 410, configured to store instructions, where the instructions include steps of the method for identifying an intelligent network card according to any one of the foregoing embodiments;
and a processor 420 for executing the instructions.
Processor 420 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc., among others. The processor 420 may be implemented in at least one hardware form of digital signal processing DSP (Digital Signal Processing), field programmable gate array FPGA (Field-Programmable Gate Array), programmable logic array PLA (Programmable Logic Array). Processor 420 may also include a main processor, which is a processor for processing data in an awake state, also referred to as central processor CPU (Central Processing Unit), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 420 may be integrated with an image processor GPU (Graphics Processing Unit), a GPU for use in responsible for rendering and rendering of the content required to be displayed by the display screen. In some embodiments, the processor 420 may also include an artificial intelligence AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 410 may include one or more computer-readable storage media, which may be non-transitory. Memory 410 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 410 is at least used for storing a computer program 411, where the computer program 411 can implement relevant steps in the method for identifying an intelligent network card disclosed in any of the foregoing embodiments after being loaded and executed by the processor 420. In addition, the resources stored in the memory 410 may further include an operating system 412, data 413, and the like, where the storage manner may be transient storage or permanent storage. The operating system 412 may be Windows. The data 413 may include, but is not limited to, data related to the above-described method.
In some embodiments, the identification device of the intelligent network card may further include a display 430, a power source 440, a communication interface 450, an input-output interface 460, a sensor 470, and a communication bus 480.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is not limiting of the identification device of the intelligent network card and may include more or fewer components than shown.
The identification device of the intelligent network card provided by the embodiment of the application comprises the memory and the processor, and the processor can realize the identification method of the intelligent network card when executing the program stored in the memory, so that the effects are the same.
It should be noted that the apparatus and device embodiments described above are merely exemplary, and for example, the division of modules is merely a logic function division, and there may be other division manners in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application.
To this end, the embodiments of the present application further provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the identification method, such as a smart network card.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (ram) RAM (Random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer program included in the computer readable storage medium provided in this embodiment can implement the steps of the identification method of the intelligent network card as described above when executed by the processor, and the same effects are achieved.
The identification method of the intelligent network card and the intelligent network card provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. The apparatus, device and computer readable storage medium of the embodiments are described more simply because they correspond to the methods of the embodiments, and the description thereof will be given with reference to the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. The identification method of the intelligent network card is characterized by comprising the following steps of:
after power-on, when a device state inquiring command sent by the basic input/output system is received, reading PCIe devices accessed on PCIe slots;
if the identification information can be read, comparing the identification information with pre-stored intelligent network card identification information;
if the comparison is consistent, determining that the PCIe equipment is an intelligent network card;
the first storage medium of the intelligent network card stores a unique identifier of the intelligent network card, and the first storage medium is connected with a PCIe golden finger of the intelligent network card through an I2C bus.
2. The identification method according to claim 1, wherein the unique identifier is specifically an identifier which is generated according to production information of the intelligent network card and uniquely corresponds to the intelligent network card;
the production information includes at least a serial number and a product name.
3. The identification method according to claim 1, wherein the first storage medium is in particular a charged erasable programmable read only memory.
4. The identification method according to claim 1, wherein the intelligent network card identification information specifically includes the unique identification and bit data output by the I2C input/output extender of the intelligent network card after power-on;
correspondingly, if the comparison is consistent, determining that the PCIe device is the intelligent network card, specifically:
if the identification information comprises the unique identification corresponding to the intelligent network card and the bit data corresponding to the intelligent network card, the PCIe equipment is the intelligent network card;
the I2C input/output expander is connected with the PCIe golden finger through an I2C bus.
5. The identification method of claim 1, wherein the intelligent network card further comprises a data selector disposed between the first storage medium and a baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
and the data selector is used for connecting the first storage medium with the PCIe golden finger by default when being electrified.
6. The identification method of claim 5, further comprising:
and after the baseboard management controller of the intelligent network card controls the data selector to communicate the baseboard management controller of the intelligent network card with the first storage medium and update the unique identifier, updating the intelligent network card identifier information.
7. An intelligent network card, comprising: the first storage medium and the PCIe golden finger;
the first storage medium is connected with the PCIe golden finger through an I2C bus, the first storage medium stores unique identification of the intelligent network card, so that after the base plate management controller at the main board end is electrified, when a query device state command sent by the basic input output system is received, PCIe devices accessed on PCIe slots are read, if identification information can be read, the identification information is compared with prestored intelligent network card identification information, and if the comparison is consistent, the PCIe devices are determined to be intelligent network cards.
8. The intelligent network card of claim 7, further comprising an I2C input-output extender connected to the PCIe gold finger through an I2C bus for outputting bit data after power up.
9. The intelligent network card of claim 7, further comprising a data selector disposed between the first storage medium and a baseboard management controller of the intelligent network card;
the fixed end of the data selector is connected with the first storage medium, the first selection end of the data selector is connected with the PCIe golden finger of the intelligent network card, and the second selection end of the data selector is connected with the baseboard management controller of the intelligent network card;
and the data selector defaults to connect the first storage medium with the PCIe golden finger of the intelligent network card when the data selector is electrified.
10. The intelligent network card of claim 9, wherein the data selector communicates the baseboard management controller of the intelligent network card with the first storage medium under control of the baseboard management controller of the intelligent network card, such that the baseboard management controller controls the first storage medium to update the unique identification.
CN202111233189.5A 2021-10-22 2021-10-22 Identification method of intelligent network card and intelligent network card Active CN114003538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111233189.5A CN114003538B (en) 2021-10-22 2021-10-22 Identification method of intelligent network card and intelligent network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111233189.5A CN114003538B (en) 2021-10-22 2021-10-22 Identification method of intelligent network card and intelligent network card

Publications (2)

Publication Number Publication Date
CN114003538A CN114003538A (en) 2022-02-01
CN114003538B true CN114003538B (en) 2023-07-14

Family

ID=79923910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111233189.5A Active CN114003538B (en) 2021-10-22 2021-10-22 Identification method of intelligent network card and intelligent network card

Country Status (1)

Country Link
CN (1) CN114003538B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143194B (en) * 2022-02-07 2022-04-26 苏州浪潮智能科技有限公司 Method, device, equipment and medium for initializing intelligent network card by server
CN114721900B (en) * 2022-03-18 2022-11-25 北京百度网讯科技有限公司 Connection relation establishing method, mainboard, device, equipment and storage medium
CN115098426B (en) * 2022-06-22 2023-09-12 深圳云豹智能有限公司 PCIE equipment management method, interface management module, PCIE system, equipment and medium
CN115344520B (en) * 2022-10-18 2023-03-24 苏州浪潮智能科技有限公司 Method and device for using PCIe interface compatible with silver fir card, storage medium and equipment
CN115686147B (en) * 2022-10-26 2024-07-19 超聚变数字技术有限公司 Memory card and computing device
CN115941464B (en) * 2022-12-27 2024-06-07 苏州浪潮智能科技有限公司 Intelligent network card power supply state control method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768730A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and apparatus for operating intelligent network adapter
EP3444715A1 (en) * 2017-08-18 2019-02-20 Quanta Computer Inc. Method to locate sas jbod cable routing
CN109743105A (en) * 2019-01-08 2019-05-10 郑州云海信息技术有限公司 Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
US10795846B1 (en) * 2019-07-15 2020-10-06 Cisco Technology, Inc. Scalable NVMe storage management over system management bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3444715A1 (en) * 2017-08-18 2019-02-20 Quanta Computer Inc. Method to locate sas jbod cable routing
CN108768730A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and apparatus for operating intelligent network adapter
CN109743105A (en) * 2019-01-08 2019-05-10 郑州云海信息技术有限公司 Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
US10795846B1 (en) * 2019-07-15 2020-10-06 Cisco Technology, Inc. Scalable NVMe storage management over system management bus

Also Published As

Publication number Publication date
CN114003538A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN103412769B (en) External card parameter configuration, equipment and system
US9411990B2 (en) Working method of a multi-slot card reader based on the standard CCID protocol
CN108008914A (en) The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN101620580B (en) Computer system and control method of the same
CN118051277A (en) Method and device for starting server, storage medium and electronic equipment
CN113608684A (en) Memory information acquisition method, device and system, electronic equipment and storage medium
US7725806B2 (en) Method and infrastructure for recognition of the resources of a defective hardware unit
CN117370118A (en) Method, device and equipment for detecting hard disk slot number and readable storage medium
CN115599191B (en) Power-on method and power-on device of intelligent network card
CN111193818A (en) Method, system, equipment and medium for obtaining IP address
CN110119625A (en) A kind of trusted computing method
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN115373749A (en) Method for identifying PCIE terminal equipment and computing equipment
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN114116337A (en) Hard disk test method, system, terminal and storage medium based on PCIE link configuration
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN114510259A (en) Method and device for importing and exporting BIOS configuration based on BMC
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN110119624A (en) A kind of security measure method
CN106548311B (en) Inventory management setting system
US20090138692A1 (en) Self describing line cards in network switch
CN117421257B (en) Memory bank initialization method, device, equipment and storage medium
CN114115977B (en) BMC mirror image construction method, system, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant