CN113961489A - Data access method, device, equipment and storage medium - Google Patents

Data access method, device, equipment and storage medium Download PDF

Info

Publication number
CN113961489A
CN113961489A CN202111267366.1A CN202111267366A CN113961489A CN 113961489 A CN113961489 A CN 113961489A CN 202111267366 A CN202111267366 A CN 202111267366A CN 113961489 A CN113961489 A CN 113961489A
Authority
CN
China
Prior art keywords
data
target access
access
target
access data
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.)
Granted
Application number
CN202111267366.1A
Other languages
Chinese (zh)
Other versions
CN113961489B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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 a PCH, a BMC and a 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, performing protocol conversion on the target access data, and sending the converted target access data to the access object. The invention detects, preprocesses and distributes the ESPI bus data through the controller, and arbitrates the bus occupation, thereby reducing the occupation of hardware bus and PCH internal resources and ensuring the real-time of the BMC accessing the Run-time Flash data.

Description

Data access method, device, equipment and storage medium
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 components of Non-volatile storage for storing information such as system log and configuration. This requires an additional flash to store the information.
In the server field, on the new Eagle Stream Platform released by Intel, the PCH (Platform Controller in english) uses the ESPI (Enhanced Serial Peripheral chinese bus interface specification) bus to communicate with other peripherals on the motherboard. The Run-time Flash Access Channel defined by the ESPI bus provides a way for PCH and ESPI slave (BMC, etc.) to share SPI Flash (English: Serial Peripheral Interface Chinese: Serial Peripheral Interface), which is used for storing information such as system log, configuration, etc. In the existing scheme, the access of BMC (English: Baseboard management Controller Chinese: Baseboard management Controller) to Run-time Flash must be transferred through PCH, and each access needs to occupy three hardware links: the PCH reads BMC, the PCH reads Run-time Flash, and the PCH transmits data back to the BMC; there are two simultaneous data format conversions that require PCH processing: ESPI to SPI and SPI to ESPI. The overall data interaction mode is complex, the occupation of bus and PCH internal resources is large, and the real-time performance of data interaction is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for data access, which aim to solve the problems of high occupancy rates of hardware buses and internal resources of a PCH and poor real-time performance of data transfer.
According to a first aspect, an embodiment of the present invention provides a data access method, which is applied to a controller, where the controller is connected to a PCH, a BMC, and a Run-time Flash, respectively, 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, performing 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 target access data can be transmitted only by following the target protocol type between the access objects, when the target protocol types between the access objects are different, the protocol type of the target access data needs 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 end through the controller without the protocol type conversion of the target access data, the target access data is assisted and processed by the controller, the process of accessing Run-time Flash by BMC is simplified, the occupation of hardware bus and PCH internal resources is reduced, and the real-time performance of transmitting the Run-time Flash target access data by BMC is ensured.
With reference to the first aspect, in a first implementation manner of the first aspect, the interacting of the target access data between the PCH and the Run-time Flash adopts an SPI protocol, the interacting of the target access data between the PCH and the BMC adopts an ESPI protocol, and the determining the 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 any two access objects for performing target access data interaction.
In the method for data access provided by the embodiment of the invention, when the types of the target protocols between the access objects are different, the protocol type of the target access data needs to be converted by the controller, when the types of the target protocols between the access objects are the same, the target access data is directly sent to the opposite terminal by the controller without the protocol type conversion of the target access data, the target access data interaction between the PCH and the Run-time Flash adopts the SPI protocol, so that the target access data interaction between the PCH and the Run-time Flash does not need the conversion of the target access data protocol type, the target access data interaction between the PCH and the BMC adopts the ESPI protocol, the target access data interaction between the PCH and the BMC does not need the conversion of the target access data protocol type, but when the target access data interaction between the BMC and the Run-time Flash adopts different target protocol types, therefore, the interactive transmission of the target access data can be carried out only by converting the protocol type of the target access data by the controller, and the PCH does not need to participate, thereby reducing the occupation of internal resources of the PCH.
With reference to the first embodiment of the first aspect, in the second embodiment 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 for direct access to the target access data in the following process, 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, the step of storing the corresponding target access data when the access frequency is higher than a preset value 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 exceed 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 accessing the object at the opposite end is reduced.
With reference to the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, 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:
judging whether target access data corresponding to the target access request is stored locally;
and when the data is stored locally, directly accessing the stored target access data.
According to the data access method provided by the embodiment of the invention, the target access data is the common data when being stored locally, the common data is stored through the controller, and the common data in the controller is directly accessed when the accessed target access data is the common data stored locally, so that the access speed of the access object to the target access data is increased, and meanwhile, the operation of accessing the object at the opposite end 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, transmitting the target access data.
According to the data access method provided by the embodiment of the invention, when the PCH, the BMC and the Run-time Flash are used for accessing the target data of other access objects, the target access data are directly transmitted in a transparent mode without conversion of the target access data protocol type, and the working efficiency can be improved through monitoring by the controller.
With reference to the first aspect, in a sixth embodiment 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 performing 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 same bus is connected among the PCH, the BMC and the Run-time Flash, but the target protocol types of different access objects are different, the controller can arbitrate the bus occupation, set the processing priority of the target access data, and increase the use efficiency of the hardware bus.
According to a second aspect, an embodiment of the present invention further provides a data access apparatus, which is applied to a controller, where the controller is connected to a PCH, a BMC, and a Run-time Flash respectively, and the apparatus includes:
an obtaining unit, 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;
the type acquisition unit is used for determining the protocol type of the target access data based on the target access request and acquiring the target access data;
and the conversion unit is used for performing 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 target access data can be transmitted only by following the target protocol type between the access objects, when the target protocol types between the access objects are different, the protocol type of the target access data needs 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 end through the controller without the protocol type conversion of the target access data, the target access data is assisted and processed by the controller, the process of accessing Run-time Flash by BMC is simplified, the occupation of hardware bus and PCH internal resources is reduced, and the real-time performance of transmitting the Run-time Flash target access data by BMC is ensured.
With reference to the second aspect, in the first embodiment of the second aspect, an SPI protocol is used for target access data interaction between the PCH and the Run-time Flash, an ESPI protocol is used for target access data interaction between the PCH and the BMC, and the type obtaining unit is specifically configured to:
and confirming the protocol type of the target access data based on the any two access objects for performing target access data interaction.
With reference to the first embodiment of the second aspect, in the 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 aspect, in a third embodiment of the second aspect, the storage unit is specifically configured to:
the recording unit is used for recording the action of the target access request, wherein the action comprises the address and the access times 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 embodiment of the second aspect, in a fourth embodiment 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;
and the access unit is used for directly accessing the stored target access data when the target access data is stored locally.
With reference to the second aspect, in a fifth embodiment of the second aspect, the obtaining unit is specifically configured to:
and the transparent transmission unit is used for transmitting 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 embodiment of the second aspect, the method further includes:
a priority obtaining unit, configured to obtain 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 interactive transmission on 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, the memory stores computer instructions, and the processor executes the computer instructions to perform the method for data access 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 for data access described in the first aspect or any one of the implementation manners 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 used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart diagram illustrating a method for providing data access in accordance with 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 providing data access using an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device to which an embodiment of the present invention is applied.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the method for data access provided in the embodiment of the present application, an execution subject may be a data access device, and the data access device may be implemented in a software, hardware, or a combination of software and hardware to become 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 one server or a server cluster composed of multiple servers, and the terminal in the embodiment of the present application may be another intelligent hardware device such as a smart phone, a personal computer, a tablet computer, a wearable device, and an intelligent robot. In the following method embodiments, the execution subject is an electronic device as an example.
In an embodiment of the present application, as shown in fig. 1, a method for data access is provided, and is applied to a controller, where the controller is respectively connected to a PCH, a BMC, and a Run-time Flash, and an application of the method and an electronic device are exemplified to describe the method, including 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, target protocol types to be followed are different, and therefore, two access objects for data interaction need to be obtained first, and then it is determined which target protocol type should be used by the two access objects for 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 inter-transmission, the access object sending the target access request may determine the protocol type of the target access data according to the target access data of the opposite-end access object.
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 sending the converted target access data to the access object.
Referring to fig. 2, the objects of access PCH, BMC and Run-time Flash are all connected to the controller via a bus, in this embodiment, the controller is a CPLD (Complex Programmable Logic Device), in other embodiments, other controllers such as an FPGA, without limitation, the access object first sends the target access data to the monitoring module in the control center, the monitoring module monitors the protocol type of the target access data, and judging the target protocol type of the opposite terminal access object, when the protocol type of the target access data is different from the target protocol type, the target access data is sent to the opposite-end access object after being subjected to protocol conversion through a conversion module in the controller, and when the protocol type of the target access data is the same as the target protocol type, directly sending the target access data to the opposite-end access object through the controller.
According to the data access method provided by the embodiment of the invention, when the access request is sent between the access objects, the target access data can be transmitted only by following the target protocol type between the access objects, when the target protocol types between the access objects are different, the protocol type of the target access data needs 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 end through the controller without the protocol type conversion of the target access data, the target access data is assisted and processed by the controller, the process of accessing Run-time Flash by BMC is simplified, the occupation of hardware bus and PCH internal resources is reduced, and the real-time performance of transmitting the Run-time Flash target access data by BMC is ensured.
In an optional embodiment of the present application, as shown in fig. 1, the target access data interaction between the PCH and the Run-time Flash adopts an SPI protocol, the target access data interaction between the PCH and the BMC adopts an ESPI protocol, and the "determining a protocol type of the target access data based on the target access request" in S200 includes:
(1) and confirming the protocol type of the target access data based on the any two access objects for performing target access data interaction.
In this embodiment, referring to fig. 2, when a monitoring module in a controller monitors that BMC interacts with target access data between Run-time Flash, 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 performs protocol type conversion on the target access data, and then sends the converted target access data to BMC, thereby completing data interaction of the BMC with the Run-time Flash without the PCH participating in protocol type conversion of the target access data; when a monitoring module in the controller monitors that the PCH requests the access of BMC or Run-time Flash, the controller directly sends target access data to an opposite terminal without conversion of the target access data protocol type.
In the method for data access provided by the embodiment of the invention, when the types of the target protocols between the access objects are different, the protocol type of the target access data needs to be converted by the controller, when the types of the target protocols between the access objects are the same, the target access data is directly sent to the opposite terminal by the controller without the protocol type conversion of the target access data, the target access data interaction between the PCH and the Run-time Flash adopts the SPI protocol, so that the target access data interaction between the PCH and the Run-time Flash does not need the conversion of the target access data protocol type, the target access data interaction between the PCH and the BMC adopts the ESPI protocol, the target access data interaction between the PCH and the BMC does not need the conversion of the target access data protocol type, but when the target access data interaction between the BMC and the Run-time Flash adopts different target protocol types, therefore, the interactive transmission of the target access data can be carried out only by converting the protocol type of the target access data by the controller, and the PCH does not need to participate, thereby reducing the occupation of internal resources of the PCH.
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 so as to be directly accessed to the target access data subsequently, the access speed is increased, and the efficiency is improved.
In an optional embodiment of the present application, as shown in fig. 1, the above "storing the corresponding target access data when the access frequency is higher than a preset value" 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 exceed 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 accessing the object by an opposite terminal is reduced.
In an optional embodiment of the 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;
(2) and when the data is stored locally, directly accessing the stored target access data.
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 access data 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 common data stored locally, the common data in the controller is directly accessed, so that the access speed of the access object to the target access data is increased, and meanwhile, the operation of the opposite-end access object is reduced.
In an optional embodiment of the present application, as shown in fig. 1, the "acquiring a target access request sent by an access object and a 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, transmitting the target access data.
According to the data access method provided by the embodiment of the invention, when the PCH, the BMC and the Run-time Flash are used for accessing the target data of other access objects, the target access data are directly transmitted in a transparent mode without conversion of the target access data protocol type, and the working efficiency can be improved through monitoring by 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 performing 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 same bus is connected among the PCH, the BMC and the Run-time Flash, but the target protocol types of different access objects are different, the controller can arbitrate the bus occupation, set the processing priority of the target access data, and increase the use efficiency of the hardware bus.
In this embodiment, the CPLD arbitrates bus occupation, the PCH serves as a master in the data communication process, and the occupation of the bus has the highest priority:
(1) when both the PCH and the CPLD need to access the Run-time flash, the CPLD actively suspends the access and continues after the PCH finishes the access;
(2) similarly, when the interaction of the target access data between the PCH and the BMC and the CPLD return data to the BMC are carried out simultaneously, the PCH takes precedence;
(3) when the CPLD operates the Run-time flash, the interaction of target access data between the PCH and the BMC can be normally carried out; in addition, the operation of the PCH on Run-time flash access and the operation of the CPLD for mapping data in the cache to the BMC can be simultaneously carried out. The efficiency of use of the hardware bus is increased.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
As shown in fig. 3, this embodiment further provides a data access device, which is applied in a controller, where the controller is respectively connected to the PCH, the BMC, and the Run-time Flash, and includes an obtaining unit 1, a type obtaining unit 2, and a converting unit 3, where:
an obtaining unit 1, 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 obtaining unit 2, configured to determine a protocol type of target access data based on the target access request and obtain the target access data;
and the conversion unit 3 is configured to perform protocol conversion on the target access data when the protocol type of the target access data is different from the target protocol type, and send 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 target access data can be transmitted only by following the target protocol type between the access objects, when the target protocol types between the access objects are different, the protocol type of the target access data needs 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 end through the controller without the protocol type conversion of the target access data, the target access data is assisted and processed by the controller, the process of accessing Run-time Flash by BMC is simplified, the occupation of hardware bus and PCH internal resources is reduced, and the real-time performance of transmitting the Run-time Flash target access data by BMC is ensured.
In an embodiment of the present application, the target access data interaction between the PCH and the Run-time Flash adopts an SPI protocol, the target access data interaction 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 any two access objects for performing target access data interaction.
In one embodiment of the present application, the apparatus further includes a frequency obtaining 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 application, the storage unit further includes a recording unit, and the recording unit is specifically configured to:
the recording unit is used for recording the action of the target access request, wherein the action comprises the address and the access times 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 system further includes a determining unit and an accessing unit, wherein:
the judging unit is used for judging whether the target access data corresponding to the target access request is stored locally;
and the access unit is used for directly accessing the stored target access data when the target access data is stored locally.
In an embodiment of the application, the obtaining unit further includes a transparent transmission unit, and is specifically configured to:
and the transparent transmission unit is used for transmitting 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 obtaining unit and an interaction unit, where:
a priority obtaining unit, configured to obtain 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 interactive transmission on the target access data based on the target access data processing priority.
The specific limitations and advantages of the data access device can be referred to the limitations of the method above, and are not described herein. The various modules in the above-described data access apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present invention further provides an electronic device, which has the data access apparatus shown in fig. 4.
As shown in fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 4, the electronic device may include: at least one processor 71, such as a CPU (Central Processing Unit), at least one communication interface 73, memory 74, at least one communication bus 72. Wherein a communication bus 72 is used to enable the connection communication between these components. The communication interface 73 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 73 may also include a standard wired interface and a standard wireless interface. The Memory 74 may be a high-speed RAM 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. The data access apparatus described in connection with fig. 3 may be implemented by the processor 71, wherein the memory 74 stores an application program, and the processor 71 calls a program code stored in the memory 74 for executing any of the above method steps.
The communication bus 72 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. 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 this does not indicate only one bus or one type of bus.
The memory 74 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 74 may also comprise a combination of memories of the kind described above.
The processor 71 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 71 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 74 is also used for storing program instructions. Processor 71 may invoke program instructions to implement a method of data access as shown in the embodiment of fig. 1 of the present application.
Embodiments of the present invention further provide a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the method for data access in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A data access method is applied to a controller, wherein the controller is respectively connected with a PCH, a BMC and a 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, performing protocol conversion on the target access data, and sending the converted target access data to the access object.
2. The method according to claim 1, wherein the target access data interaction between the PCH and the Run-time Flash adopts an SPI protocol, the target access data interaction between the PCH and the BMC adopts an ESPI protocol, and the determining the 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 any two access objects for performing target access data interaction.
3. The method of data access of 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. The method of 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 exceed a preset threshold value, storing the corresponding target access data.
5. The method for accessing data 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;
and when the data is stored locally, directly accessing the stored target access data.
6. The method 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 comprises:
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, transmitting the target access data.
7. The method of data access of 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 performing interactive transmission of the target access data based on the target access data processing priority.
8. A data access device is applied to a controller, the controller is respectively connected with a PCH, a BMC and a Run-time Flash, and the data access device comprises:
an obtaining unit, 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;
the type acquisition unit is used for determining the protocol type of the target access data based on the target access request and acquiring the target access data;
and the conversion unit is used for performing 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.
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 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 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 true CN113961489A (en) 2022-01-21
CN113961489B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131147A1 (en) * 2022-12-20 2024-06-27 深圳市紫光同创电子有限公司 Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131147A1 (en) * 2022-12-20 2024-06-27 深圳市紫光同创电子有限公司 Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium

Also Published As

Publication number Publication date
CN113961489B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN107728936B (en) Method and apparatus for transmitting data processing requests
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
CN108563518A (en) Master-slave machine communication method, device, terminal equipment and storage medium
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
CN111490946B (en) FPGA connection realization method and device based on OpenCL framework
WO2023104194A1 (en) Service processing method and apparatus
US20220114132A1 (en) Data Switch Chip and Server
CN113961489B (en) Method, device, equipment and storage medium for data access
US10176133B2 (en) Smart device with no AP
US20230153153A1 (en) Task processing method and apparatus
CN114880266B (en) Fault processing method and device, computer equipment and storage medium
CN102004716A (en) System and method for realizing device sharing
CN114546654A (en) Method and device for calling CPUs (central processing units) among different architectures and interconnection equipment
CN112148453A (en) Computing chip for privacy computation and network computing system
CN111092817A (en) Data transmission method and device
CN107122268B (en) NUMA-based multi-physical-layer partition processing system
US20190179778A1 (en) System memory controller with client preemption
CN117971135B (en) Storage device access method and device, storage medium and electronic device
CN116389357B (en) Hole address processing method, device, equipment and medium based on network on chip
CN108108243B (en) Resource sharing system and method
US20220019459A1 (en) Controlled early response in master-slave systems
CN116340246B (en) Data pre-reading method and medium for direct memory access read operation
CN116405377B (en) Network state detection method, protocol conversion component, equipment and storage medium
CN115017072B (en) Burst length splitting method and device, chip system and electronic equipment

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