CN113961489B - Method, device, equipment and storage medium for data access - Google Patents

Method, device, equipment and storage medium for data access Download PDF

Info

Publication number
CN113961489B
CN113961489B CN202111267366.1A CN202111267366A CN113961489B CN 113961489 B CN113961489 B CN 113961489B CN 202111267366 A CN202111267366 A CN 202111267366A CN 113961489 B CN113961489 B CN 113961489B
Authority
CN
China
Prior art keywords
target access
data
access data
target
pch
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
CN202111267366.1A
Other languages
Chinese (zh)
Other versions
CN113961489A (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 CN202111267366.1A priority Critical patent/CN113961489B/en
Publication of CN113961489A publication Critical patent/CN113961489A/en
Application granted granted Critical
Publication of CN113961489B publication Critical patent/CN113961489B/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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • 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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • 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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/18Handling requests for interconnection or transfer for access to memory bus based on priority control
    • 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

Abstract

The invention discloses a data access method, a device, equipment and a storage medium, which are applied to a controller, wherein the controller is respectively connected with PCH, BMC and Run-time Flash, and the method comprises the following steps: acquiring a target access request sent by an access object and a target protocol type corresponding to the access object, wherein the access object is at least one of the PCH, the BMC and the Run-time Flash; determining a protocol type of target access data based on the target access request and acquiring the target access data; and when the protocol type of the target access data is different from the target protocol type, carrying out protocol conversion on the target access data, and sending the converted target access data to the access object. According to the invention, the ESPI bus data is detected, preprocessed and data distributed by the controller, bus occupation arbitration is performed, occupation of internal resources of a hardware bus and PCH is reduced, and real-time of Run-time Flash data access by the BMC is ensured.

Description

Method, device, equipment and storage medium for data access
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for data access.
Background
The IPMI protocol defines a Non-volatile storage unit for storing information such as system logs and configuration. This requires an additional flash to store the above information.
In the server field, PCH (English: platform Controller Hub Chinese: platform controller) on the Intel published Eagle Stream new platform uses ESPI (English: enhanced Serial Peripheral Chinese: bus interface Specification) bus to communicate with other peripherals on the motherboard. Run-time Flash Access Channel defined by the ESPI bus provides a way for the PCH and ESPI slave (BMC etc.) to share SPI flash (english: serial Peripheral Interface chinese: serial peripheral interface) for storing system log, configuration etc. information. In the existing scheme, the BMC (English: baseboard Manager Controller Chinese: baseboard management controller) accesses Run-time Flash, and the running Flash must be transferred through PCH, and each access needs to occupy three hardware links: PCH reads BMC, PCH reads Run-time Flash, PCH returns data to BMC; there are two simultaneous data format conversions requiring PCH processing: ESPI to SPI and SPI to ESPI. The overall data interaction mode is complex, the occupation of internal resources of buses and PCH is large, and meanwhile, the real-time performance of data interaction is reduced.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method, apparatus, device, and storage medium for data access, which aim to solve the problems of higher occupancy rate of internal resources of a hardware bus and PCH and poor real-time performance of data transfer.
According to a first aspect, an embodiment of the present invention provides a method for accessing data, which is applied to a controller, where the controller is respectively connected with a PCH, a BMC and a Run-time Flash, and the method includes:
acquiring a target access request sent by an access object and a target protocol type corresponding to the access object, wherein the access object is at least one of the PCH, the BMC and the Run-time Flash;
determining a protocol type of target access data based on the target access request and acquiring the target access data;
and when the protocol type of the target access data is different from the target protocol type, carrying out protocol conversion on the target access data, and sending the converted target access data to the access object.
According to the data access method provided by the embodiment of the invention, when the access request is sent between the access objects, the transmission of the target access data can be carried out only by following the target protocol types between the access objects, when the target protocol types between the access objects are different, the protocol types of the target access data need to be converted through the controller, when the target protocol types between the access objects are the same, the target access data is directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not needed, the controller is used for assisting in processing the target access data, the process of BMC accessing Run-time Flash is simplified, the occupation of hardware buses and PCH internal resources is reduced, and the real-time of BMC on the transmission of the Run-time Flash target access data is ensured.
With reference to the first aspect, in a first implementation manner of the first aspect, interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and determining a protocol type of the target access data based on the target access request includes:
and confirming the protocol type of the target access data based on the arbitrary two access objects for target access data interaction.
According to the data access method provided by the embodiment of the invention, when the target protocol types among the access objects are different, the protocol types of the target access data are required to be converted through the controller, when the target protocol types among the access objects are the same, the target access data are directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not required, the interaction of the target access data between the PCH and the Run-time Flash adopts the SPI protocol, the interaction of the target access data between the PCH and the Run-time Flash does not need to be converted, the interaction of the target access data between the PCH and the BMC adopts the ESPI protocol, the interaction of the target access data between the PCH and the BMC does not need to be converted, but when the target protocol types adopted by the interaction of the target access data between the BMC and the Run-time Flash are different, the interaction transmission of the target access data can be carried out only through the conversion of the protocol types of the target access data through the controller, the participation of PCH is not required, and the occupation of internal resources is reduced.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the method further includes the following steps:
acquiring the access frequency of each target access data;
and when the access frequency is higher than a preset value, storing the corresponding target access data.
According to the data access method provided by the embodiment of the invention, when the access frequency of the target access data is higher than the preset value, the target access data is indicated to be the common data, so that the target access data is stored in the controller, and the target access data is directly accessed later, so that the access speed is increased, and the efficiency is improved.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, when the access frequency is higher than a preset value, the storing the corresponding target access data includes:
recording the action of the target access request, wherein the action comprises the address and the access times of the target access data;
and when the access times in unit time exceeds a preset threshold value, storing the corresponding target access data.
According to the data access method provided by the embodiment of the invention, when the target access data of the same address is accessed next time, the target access data in the cache can be directly accessed, so that the access speed of the access object to the target access data is increased, and the operation of the opposite terminal access object is reduced.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, when the number of accesses per unit time exceeds a preset threshold, the storing the corresponding target access data step includes:
judging whether target access data corresponding to the target access request is stored locally or not;
when stored locally, the stored target access data is directly accessed.
According to the data access method provided by the embodiment of the invention, when the target access data is stored locally, the target access data is the common data, the common data is stored through the controller, and when the accessed target access data is the common data stored locally, the common data in the controller is directly accessed, so that the access speed of an access object to the target access data is increased, and meanwhile, the operation of an opposite-end access object is reduced.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the step of obtaining a target access request sent by an access object and a target protocol type corresponding to the access object includes:
and when the monitored target access data is the data interaction of other access objects except the PCH, the BMC and the Run-time Flash, the target access data is transmitted.
According to the data access method provided by the embodiment of the invention, when PCH, BMC and Run-time Flash are target data access to other access objects, the target access data is directly transmitted without conversion of the target access data protocol type, and the working efficiency can be improved through the monitoring of the controller.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the method further includes the following steps:
acquiring the target access data processing priority of the PCH, the BMC and the Run-time Flash;
and carrying out interactive transmission of the target access data based on the target access data processing priority.
According to the data access method provided by the embodiment of the invention, as the PCH, the BMC and the Run-time Flash are connected by the same bus, but different access objects have different target protocol types, the controller can arbitrate the occupation of the bus, set the target access data processing priority, and increase the use efficiency of the hardware bus.
According to a second aspect, an embodiment of the present invention further provides a device for data access, where the device is applied to a controller, and the controller is connected to a PCH, a BMC and a Run-time Flash, respectively, and includes:
the access object is at least one of the PCH, the BMC and the Run-time Flash;
a type acquisition unit, configured to determine a protocol type of target access data based on the target access request and acquire the target access data;
and the conversion unit is used for carrying out protocol conversion on the target access data when the protocol type of the target access data is different from the target protocol type, and sending the converted target access data to the access object.
According to the data access device provided by the embodiment of the invention, when the access request is sent between the access objects, the transmission of the target access data can be carried out only by following the target protocol types between the access objects, when the target protocol types between the access objects are different, the protocol types of the target access data need to be converted through the controller, when the target protocol types between the access objects are the same, the target access data is directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not needed, the controller is used for assisting in processing the target access data, the process of BMC accessing Run-time Flash is simplified, the occupation of hardware buses and PCH internal resources is reduced, and the real-time of BMC on the transmission of the Run-time Flash target access data is ensured.
With reference to the second aspect, in a first implementation manner of the second aspect, interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and the type obtaining unit is specifically configured to:
and confirming the protocol type of the target access data based on the arbitrary two access objects for target access data interaction.
With reference to the first embodiment of the second aspect, in a second embodiment of the second aspect, the method further includes:
a frequency acquisition unit configured to acquire an access frequency of each of the target access data;
and the storage unit is used for storing the corresponding target access data when the access frequency is higher than a preset value.
With reference to the second embodiment of the second aspect, in a third embodiment of the second aspect, the storage unit is specifically configured to:
a recording unit, configured to record an action of the target access request, where the action includes an address and an access number of the target access data;
and the storage unit is used for storing the corresponding target access data when the access times in unit time exceed a preset threshold value.
With reference to the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the method further includes:
the judging unit is used for judging whether the target access data corresponding to the target access request is stored locally or not;
and the access unit is used for directly accessing the stored target access data when the target access data are stored locally.
With reference to the second aspect, in a fifth implementation manner of the second aspect, the acquiring unit is specifically configured to:
and the transparent transmission unit is used for transparent transmission of the target access data when the monitored target access data is the data interaction of other access objects except the PCH, the BMC and the Run-time Flash.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the method further includes:
the priority obtaining unit is used for obtaining the target access data processing priority of the PCH, the BMC and the Run-time Flash;
and the interaction unit is used for carrying out interaction transmission of the target access data based on the target access data processing priority.
According to a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby performing the method for accessing data in the first aspect or any implementation manner of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect or any implementation of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for data access provided by an embodiment of the present invention;
FIG. 2 is a hardware connection diagram of a method application for data access provided by an embodiment of the present invention;
FIG. 3 is a functional block diagram of an apparatus for data access provided by an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the method for data access provided in the embodiment of the present application, the execution body may be a device for data access, and the device for data access may be implemented by software, hardware, or a combination of software and hardware as part or all of a computer device, where the computer device may be a server or a terminal, where the server in the embodiment of the present application may be a server or a server cluster formed by multiple servers, and the terminal in the embodiment of the present application may be an intelligent mobile phone, a personal computer, a tablet computer, a wearable device, and other intelligent hardware devices such as an intelligent robot. In the following method embodiments, the execution subject is an electronic device.
In one embodiment of the present application, as shown in fig. 1, a method for accessing data is provided, and the method is applied to a controller, where the controller is connected with a PCH, a BMC and a Run-time Flash, and the application of the method and an electronic device are illustrated as examples, and the method includes the following steps:
s100, acquiring a target access request sent by an access object and a target protocol type corresponding to the access object, wherein the access object is at least one of the PCH, the BMC and the Run-time Flash.
In this embodiment, when data interaction transmission is performed between the access objects PCH, BMC and Run-time Flash, the following target protocol types are different, so that two access objects performing data interaction need to be acquired first, and then it is determined what target protocol type should be adopted by the two access objects to perform data interaction transmission.
S200, determining the protocol type of the target access data based on the target access request and acquiring the target access data.
In this embodiment, after determining the access object for data exchange, the access object sending the target access request determines the protocol type of the target access data according to the target access data of the peer access object.
And S300, when the protocol type of the target access data is different from the target protocol type, performing protocol conversion on the target access data, and transmitting the converted target access data to the access object.
Referring to fig. 2, the access objects PCH, BMC and Run-time Flash are all connected to the controller through buses, in this embodiment, the controller uses a CPLD (english: complex Programmable Logic Device chinese: complex programmable logic device), in other embodiments, other controllers, such as FPGA, may also be used, which is not limited herein, the access object first sends the target access data to a monitoring module in control, the monitoring module monitors the protocol type of the target access data, and determines the target protocol type of the opposite access object, when the protocol type of the target access data is different from the target protocol type, the conversion module in the controller converts the protocol of the target access data and sends the target access data to the opposite access object, and when the protocol type of the target access data is identical to the target protocol type, the controller directly sends the target access data to the opposite access object.
According to the data access method provided by the embodiment of the invention, when the access request is sent between the access objects, the transmission of the target access data can be carried out only by following the target protocol types between the access objects, when the target protocol types between the access objects are different, the protocol types of the target access data need to be converted through the controller, when the target protocol types between the access objects are the same, the target access data is directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not needed, the controller is used for assisting in processing the target access data, the process of BMC accessing Run-time Flash is simplified, the occupation of hardware buses and PCH internal resources is reduced, and the real-time of BMC on the transmission of the Run-time Flash target access data is ensured.
In an optional embodiment of the present application, as shown in fig. 1, the interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, the interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and the determining, in S200, the protocol type of the target access data based on the target access request includes:
(1) And confirming the protocol type of the target access data based on the arbitrary two access objects for target access data interaction.
In this embodiment, referring to fig. 2, when a monitoring module in a controller monitors interaction of target access data between Run-time Flash and a BMC, the controller does not return the target access data to PCH, but directly accesses the Run-time Flash through a conversion module in the controller, then the conversion module converts the target access data into a protocol type, and then the converted target access data is sent to the BMC, thereby completing data interaction of the BMC to the Run-time Flash without the PCH participating in conversion of the protocol type of the target access data; when a monitoring module in the controller monitors an access request of the PCH to the BMC or Run-time Flash, the controller directly sends target access data to an opposite terminal without converting the target access data protocol type.
According to the data access method provided by the embodiment of the invention, when the target protocol types among the access objects are different, the protocol types of the target access data are required to be converted through the controller, when the target protocol types among the access objects are the same, the target access data are directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not required, the interaction of the target access data between the PCH and the Run-time Flash adopts the SPI protocol, the interaction of the target access data between the PCH and the Run-time Flash does not need to be converted, the interaction of the target access data between the PCH and the BMC adopts the ESPI protocol, the interaction of the target access data between the PCH and the BMC does not need to be converted, but when the target protocol types adopted by the interaction of the target access data between the BMC and the Run-time Flash are different, the interaction transmission of the target access data can be carried out only through the conversion of the protocol types of the target access data through the controller, the participation of PCH is not required, and the occupation of internal resources is reduced.
In an alternative embodiment of the present application, as shown in fig. 1, the method further includes the following steps:
(1) Acquiring the access frequency of each target access data;
(2) And when the access frequency is higher than a preset value, storing the corresponding target access data.
According to the data access method provided by the embodiment of the invention, when the access frequency of the target access data is higher than the preset value, the target access data is indicated to be the common data, so that the target access data is stored in the cache module of the controller, and is conveniently and directly accessed later, the access speed is increased, and the efficiency is improved.
In an optional embodiment of the present application, as shown in fig. 1, the "storing the corresponding target access data when the access frequency is higher than a preset value" in the foregoing includes:
(1) Recording the action of the target access request, wherein the action comprises the address and the access times of the target access data;
(2) And when the access times in unit time exceeds a preset threshold value, storing the corresponding target access data.
According to the data access method provided by the embodiment of the invention, when the target access data of the same address is accessed next time, the target access data in the cache module can be directly accessed, so that the access speed of the access object to the target access data is increased, and the operation of the opposite terminal access object is reduced.
In an optional embodiment of the present application, as shown in fig. 1, after the step of storing the corresponding target access data when the number of accesses per unit time exceeds a preset threshold, the method includes:
(1) Judging whether target access data corresponding to the target access request is stored locally or not;
(2) When stored locally, the stored target access data is directly accessed.
According to the data access method provided by the embodiment of the invention, when the target access data is stored locally, the target access data is the common data, the local area referred to in the embodiment is the cache module in the controller, the common data is stored through the controller, and when the accessed target access data is the local common data, the common data in the controller is directly accessed, so that the access speed of an access object to the target access data is increased, and meanwhile, the operation of an opposite-end access object is reduced.
In an optional embodiment of the present application, as shown in fig. 1, the "the obtaining the target access request sent by the access object and the target protocol type corresponding to the access object" in S100 includes:
(1) And when the monitored target access data is the data interaction of other access objects except the PCH, the BMC and the Run-time Flash, the target access data is transmitted.
According to the data access method provided by the embodiment of the invention, when PCH, BMC and Run-time Flash are target data access to other access objects, the target access data is directly transmitted without conversion of the target access data protocol type, and the working efficiency can be improved through the monitoring of the controller.
In an alternative embodiment of the present application, as shown in fig. 1, the method further includes the following steps:
(1) Acquiring the target access data processing priority of the PCH, the BMC and the Run-time Flash;
(2) And carrying out interactive transmission of the target access data based on the target access data processing priority.
According to the data access method provided by the embodiment of the invention, as the PCH, the BMC and the Run-time Flash are connected by the same bus, but different access objects have different target protocol types, the controller can arbitrate the occupation of the bus, set the target access data processing priority, and increase the use efficiency of the hardware bus.
In this embodiment, the CPLD arbitrates bus occupation, and PCH is used as a master in the data communication process, and has the highest priority for bus occupation:
(1) When the PCH and the CPLD both need to access the Run-time flash, the CPLD actively pauses the access and waits for the PCH to finish the access and then continues;
(2) Similarly, when the interaction of the target access data between the PCH and the BMC and the return of the CPLD data to the BMC are performed simultaneously, the PCH takes precedence;
(3) When CPLD operates Run-time flash, interaction of target access data between PCH and BMC can be normally performed; in addition, PCH can be carried out on Run-time flash access and the operation of mapping data in the cache to BMC by CPLD at the same time. The use efficiency of the hardware bus is increased.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 1 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or other steps.
As shown in fig. 3, the embodiment further provides a device for data access, which is applied to a controller, wherein the controller is respectively connected with a PCH, a BMC and a Run-time Flash, and includes an obtaining unit 1, a type obtaining unit 2 and a converting unit 3, wherein:
the access control unit 1 is configured to obtain a target access request sent by an access object and a target protocol type corresponding to the access object, where the access object is at least one of the PCH, the BMC, and the Run-time Flash;
a type acquisition unit 2 for determining a protocol type of target access data based on the target access request and acquiring the target access data;
and the conversion unit 3 is used for carrying out protocol conversion on the target access data when the protocol type of the target access data is different from the target protocol type, and sending the converted target access data to the access object.
According to the data access device provided by the embodiment of the invention, when the access request is sent between the access objects, the transmission of the target access data can be carried out only by following the target protocol types between the access objects, when the target protocol types between the access objects are different, the protocol types of the target access data need to be converted through the controller, when the target protocol types between the access objects are the same, the target access data is directly sent to the opposite terminal through the controller, the protocol type conversion of the target access data is not needed, the controller is used for assisting in processing the target access data, the process of BMC accessing Run-time Flash is simplified, the occupation of hardware buses and PCH internal resources is reduced, and the real-time of BMC on the transmission of the Run-time Flash target access data is ensured.
In one embodiment of the present application, the interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, and the interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and the above type obtaining unit is specifically configured to:
and confirming the protocol type of the target access data based on the arbitrary two access objects for target access data interaction.
In an embodiment of the present application, the method further comprises a frequency acquisition unit and a storage unit, wherein:
a frequency acquisition unit configured to acquire an access frequency of each of the target access data;
and the storage unit is used for storing the corresponding target access data when the access frequency is higher than a preset value.
In an embodiment of the present application, the storage unit further includes a recording unit, specifically configured to:
a recording unit, configured to record an action of the target access request, where the action includes an address and an access number of the target access data;
and the storage unit is used for storing the corresponding target access data when the access times in unit time exceed a preset threshold value.
In an embodiment of the present application, the method further includes a judging unit and an accessing unit, where:
the judging unit is used for judging whether the target access data corresponding to the target access request is stored locally or not;
and the access unit is used for directly accessing the stored target access data when the target access data are stored locally.
In an embodiment of the present application, the acquiring unit further includes a transparent transmitting unit, specifically configured to:
and the transparent transmission unit is used for transparent transmission of the target access data when the monitored target access data is the data interaction of other access objects except the PCH, the BMC and the Run-time Flash.
In an embodiment of the present application, the system further includes a priority acquiring unit and an interaction unit, where:
the priority obtaining unit is used for obtaining the target access data processing priority of the PCH, the BMC and the Run-time Flash;
and the interaction unit is used for carrying out interaction transmission of the target access data based on the target access data processing priority.
The specific limitations of the apparatus for data access and the advantages thereof are referred to above as limitations of the method, and are not described herein. The various modules in the data access apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the electronic device, or may be stored in software in a memory in the electronic device, so that the processor may call and execute operations corresponding to the above modules.
The embodiment of the invention also provides electronic equipment, which is provided with the data access device shown in the figure 4.
Fig. 4 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, as shown in fig. 4, where the electronic device may include: at least one processor 71, such as a CPU (Central Processing Unit ), at least one communication interface 73, a memory 74, at least one communication bus 72. Wherein the communication bus 72 is used to enable connected communication between these components. The communication interface 73 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional communication interface 73 may further include a standard wired interface and a wireless interface. The memory 74 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 74 may alternatively be at least one memory device located remotely from the processor 71. In which the processor 71 may store an application program in the memory 74 in connection with the means for data access described in fig. 3, and the processor 71 invokes the program code stored in the memory 74 for performing any of the method steps described above.
The communication bus 72 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The communication bus 72 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Wherein the memory 74 may include volatile memory (English) such as random-access memory (RAM); the memory may also include a nonvolatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated as HDD) or a solid state disk (english: solid-state drive, abbreviated as SSD); memory 74 may also include a combination of the above types of memory.
The processor 71 may be a central processor (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 71 may further include a hardware chip, among others. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field programmable gate array (English: field-programmable gate array, abbreviated: FPGA), a general-purpose array logic (English: generic array logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 74 is also used for storing program instructions. Processor 71 may invoke program instructions to implement the method of data access as shown in the embodiment of fig. 1 of the present application.
Embodiments of the present invention also provide a non-transitory computer storage medium storing computer-executable instructions that are operable to perform the method of data access in any of the method embodiments described above. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. The method for accessing the data in the server is characterized by being applied to a controller, wherein the controller is respectively connected with PCH, BMC and Run-time Flash, and any two of the PCH, the BMC and the Run-time Flash are communicated through the controller, and the method comprises the following steps:
acquiring a target access request sent by an access object and a target protocol type corresponding to the access object, wherein the access object is at least one of the PCH, the BMC and the Run-time Flash;
determining a protocol type of target access data based on the target access request and acquiring the target access data;
when the protocol type of the target access data is different from the target protocol type, carrying out protocol conversion on the target access data, and sending the converted target access data to the access object;
when the protocol type of the target access data is the same as the target protocol type, the target access data is sent to an opposite-end access object through the controller;
the interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, and the interaction of the target access data between the PCH and the Run-time Flash does not need to carry out conversion of the type of the target access data protocol; the interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and the interaction of the target access data between the PCH and the BMC does not need to carry out conversion of the type of the target access data protocol; and the BMC and the Run-time Flash interact with target access data, the controller does not return the target access data to the PCH, and the protocol type of the target access data is converted through the controller.
2. The method of server internal data access according to claim 1, wherein the determining a protocol type of target access data based on the target access request comprises:
and confirming the protocol type of the target access data based on the arbitrary two access objects for target access data interaction.
3. The method for server internal data access according to claim 2, further comprising the steps of:
acquiring the access frequency of each target access data;
and when the access frequency is higher than a preset value, storing the corresponding target access data.
4. A method for accessing data in a server according to claim 3, wherein the step of storing the corresponding target access data when the access frequency is higher than a preset value comprises:
recording the action of the target access request, wherein the action comprises the address and the access times of the target access data;
and when the access times in unit time exceeds a preset threshold value, storing the corresponding target access data.
5. The method for accessing data in a server according to claim 4, wherein after the step of storing the corresponding target access data when the number of accesses per unit time exceeds a preset threshold, the method comprises:
judging whether target access data corresponding to the target access request is stored locally or not;
when stored locally, the stored target access data is directly accessed.
6. The method for accessing data in a server according to claim 1, wherein the step of obtaining the target access request sent by the access object and the target protocol type corresponding to the access object includes:
and when the monitored target access data is the data interaction of other access objects except the PCH, the BMC and the Run-time Flash, the target access data is transmitted.
7. The method for server internal data access according to claim 1, further comprising the steps of:
acquiring the target access data processing priority of the PCH, the BMC and the Run-time Flash;
and carrying out interactive transmission of the target access data based on the target access data processing priority.
8. The device for accessing the data in the server is characterized by being applied to a controller, wherein the controller is respectively connected with PCH, BMC and Run-time Flash, and any two of the PCH, the BMC and the Run-time Flash are communicated through the controller, and the device comprises:
the access object is at least one of the PCH, the BMC and the Run-time Flash;
a type acquisition unit, configured to determine a protocol type of target access data based on the target access request and acquire the target access data;
the conversion unit is used for carrying out protocol conversion on the target access data when the protocol type of the target access data is different from the target protocol type, and sending the converted target access data to the access object;
when the protocol type of the target access data is the same as the target protocol type, the target access data is sent to an opposite-end access object through the controller;
the interaction of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, and the interaction of the target access data between the PCH and the Run-time Flash does not need to carry out conversion of the type of the target access data protocol; the interaction of the target access data between the PCH and the BMC adopts an ESPI protocol, and the interaction of the target access data between the PCH and the BMC does not need to carry out conversion of the type of the target access data protocol; and the BMC and the Run-time Flash interact with target access data, the controller does not return the target access data to the PCH, and the protocol type of the target access data is converted through the controller.
9. An electronic device comprising a memory having stored therein computer instructions and a processor that, upon execution of the computer instructions, performs the method of server internal data access of any of claims 1-7.
10. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of server internal data access of any of claims 1-7.
CN202111267366.1A 2021-10-28 2021-10-28 Method, device, equipment and storage medium for data access Active CN113961489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111267366.1A CN113961489B (en) 2021-10-28 2021-10-28 Method, device, equipment and storage medium for data access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111267366.1A CN113961489B (en) 2021-10-28 2021-10-28 Method, device, equipment and storage medium for data access

Publications (2)

Publication Number Publication Date
CN113961489A CN113961489A (en) 2022-01-21
CN113961489B true CN113961489B (en) 2023-07-14

Family

ID=79468078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111267366.1A Active CN113961489B (en) 2021-10-28 2021-10-28 Method, device, equipment and storage medium for data access

Country Status (1)

Country Link
CN (1) CN113961489B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008006314A1 (en) * 2006-07-05 2008-01-17 Huawei Technologies Co., Ltd. A gateway system and the method for implementing various media accesses
WO2009018730A1 (en) * 2007-08-09 2009-02-12 Huawei Technologies Co., Ltd. Charging method, system, equipment and message processing equipment
CN110971587A (en) * 2018-10-01 2020-04-07 费希尔-罗斯蒙特系统公司 Wireless protocol converter for field device
CN111600909A (en) * 2020-06-24 2020-08-28 腾讯科技(深圳)有限公司 Data processing method, device, protocol conversion equipment and storage medium
CN213934618U (en) * 2021-02-07 2021-08-10 北京中船信息科技有限公司 Multi-protocol data center machine room environment monitoring system
CN115291658A (en) * 2022-08-31 2022-11-04 吉安英佳电子科技有限公司 Intelligent Internet of things environment control system based on Android system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008006314A1 (en) * 2006-07-05 2008-01-17 Huawei Technologies Co., Ltd. A gateway system and the method for implementing various media accesses
WO2009018730A1 (en) * 2007-08-09 2009-02-12 Huawei Technologies Co., Ltd. Charging method, system, equipment and message processing equipment
CN110971587A (en) * 2018-10-01 2020-04-07 费希尔-罗斯蒙特系统公司 Wireless protocol converter for field device
CN111600909A (en) * 2020-06-24 2020-08-28 腾讯科技(深圳)有限公司 Data processing method, device, protocol conversion equipment and storage medium
CN213934618U (en) * 2021-02-07 2021-08-10 北京中船信息科技有限公司 Multi-protocol data center machine room environment monitoring system
CN115291658A (en) * 2022-08-31 2022-11-04 吉安英佳电子科技有限公司 Intelligent Internet of things environment control system based on Android system

Also Published As

Publication number Publication date
CN113961489A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN107728936B (en) Method and apparatus for transmitting data processing requests
US9632557B2 (en) Active state power management (ASPM) to reduce power consumption by PCI express components
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
CN116243995B (en) Communication method, communication device, computer readable storage medium, and electronic apparatus
CN116541227B (en) Fault diagnosis method and device, storage medium, electronic device and BMC chip
CN107562672A (en) A kind of system and method for improving vector network analyzer message transmission rate
CN109062834B (en) DMA-based SPI communication method, electronic equipment, storage medium and device
CN116719700B (en) Method and device for monitoring hardware partition of server host system
CN116244229B (en) Access method and device of hardware controller, storage medium and electronic equipment
CN111488308A (en) System and method for supporting multi-processor expansion of different architectures
CN107066413B (en) Method for processing data of multiple bus devices and bus system thereof
CN113961489B (en) Method, device, equipment and storage medium for data access
WO2012103768A1 (en) Method and apparatus for data processing, pci-e bus system and server
CN114528234B (en) Out-of-band management method and device for multi-path server system
CN113051213B (en) Processor, data transmission method, device and system
CN115344393A (en) Service processing method and related equipment
CN114281499A (en) Interrupt transmission processing method and system during bus interconnection
CN111092817A (en) Data transmission method and device
CN112148453A (en) Computing chip for privacy computation and network computing system
CN116389357B (en) Hole address processing method, device, equipment and medium based on network on chip
CN201465098U (en) Multi-channel crossed DMA
CN116405377B (en) Network state detection method, protocol conversion component, equipment and storage medium
US20190179778A1 (en) System memory controller with client preemption
CN115756824B (en) Out-of-band query/configuration method of processor information in server and server
JPH0675887A (en) Polling interval determining system

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