CN105530197A - Resource sharing configuration method and device between SoC nodes - Google Patents

Resource sharing configuration method and device between SoC nodes Download PDF

Info

Publication number
CN105530197A
CN105530197A CN201410571273.1A CN201410571273A CN105530197A CN 105530197 A CN105530197 A CN 105530197A CN 201410571273 A CN201410571273 A CN 201410571273A CN 105530197 A CN105530197 A CN 105530197A
Authority
CN
China
Prior art keywords
node
shared resource
address
address space
section point
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.)
Pending
Application number
CN201410571273.1A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Original Assignee
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
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 Huawei Technologies Co Ltd, Institute of Computing Technology of CAS filed Critical Huawei Technologies Co Ltd
Priority to CN201410571273.1A priority Critical patent/CN105530197A/en
Publication of CN105530197A publication Critical patent/CN105530197A/en
Pending legal-status Critical Current

Links

Abstract

Embodiments of the invention provide a resource sharing configuration method and device between SoC nodes. The method comprises the steps that: a first node and a second node negotiate a shared resource; the first node allocates the shared resource from an idle address space of the first node and maps the shared resource to a first address space in the first node, wherein the shared resource is a resource allowed to be accessed by the first node via the second node; and the first node establishes a corresponding relation of the first address space and attribute information of the shared resource, wherein the size of the first address space is the same as the size of a second address space of the shared resource in the second node. Therefore, the first node can directly determine the shared resource to be accessed according to the visible address space and access the shared resource, and the resource sharing flexibility and scalability are improved.

Description

Resource-sharing collocation method and equipment between SoC node
Technical field
The embodiment of the present invention relates to communication technical field, and (English: SystemonChip is called for short: SoC) resource-sharing collocation method and equipment between node to particularly relate to a kind of system level chip.
Background technology
Usually to carry out resource-sharing between SoC node, carry out resource-sharing and first will solve the problem that access request transmits between SoC node.
In prior art, each SoC node is provided with chip interconnect module, the resource-sharing between SoC node is realized by the chip interconnect module on each SoC node, carry out resource-sharing for node A and Node B to be described, system designer can be respectively Memory Controller Hub in node A and Node B and device controller divides address space, and on node A the address space of each controller and the address space of each controller in Node B not overlapping.The address space of the chip interconnect module of node A is also set simultaneously, make Node B can be fallen in the address space of chip interconnect module of node A by the address space of each quasi-controller of teleengineering support, when wanting the remote resource on access node B as node A, node A can by the address of these remote controllers, access request is transferred to the chip interconnect module of node A, by the chip interconnect module transfer of node A to the chip interconnect module of Node B, and then by the chip interconnect module of Node B, access request is transferred to corresponding hardware resource.
But, if when node A also needs other the resource of node shared, need system designer to reconfigure address space, cause the flexibility of resource-sharing and extensibility poor.
Summary of the invention
The embodiment of the present invention provides resource-sharing collocation method and equipment between a kind of SoC node, for improving flexibility and the extensibility of resource-sharing.
First aspect, the embodiment of the present invention provides resource-sharing collocation method between a kind of SoC node, comprising: first node and Section Point carry out shared resource negotiation; Described first node distributes described shared resource and is mapped to the first address space in described first node from the idle address space of described first node, and described shared resource is the resource that described Section Point allows described first node and accesses; Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, and wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
In the first possible implementation of first aspect, the attribute information of described shared resource comprises the mark of described shared resource; Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described first node sets up the corresponding relation of the initial address of described first address space and the mark of described shared resource.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, also comprise: described first node determines the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; Described first node is according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited; Described first node sends data access request message to described Section Point, and described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
In the third possible implementation of first aspect, the attribute information of described shared resource comprises the initial address of described second address space; Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described first node sets up the corresponding relation of the initial address of described first address space and the initial address of described second address space.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, also comprise: described first node determines that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, data-mapping to be visited is the initial address of described first address space to the initial address of described first node; Described first node is according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space; Described first node sends data access request message to described Section Point, and described data access request message comprises the initial address of described second address space and described offset address.
4th kind of possible implementation of the implementation possible in conjunction with the second of first aspect or first aspect, in the 5th kind of possible implementation of first aspect, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; Described first node sends data access request message to described Section Point, comprising: the mark of the described Section Point of described first node belonging to described shared resource, sends described data access request message to described Section Point.
4th kind of possible implementation of the implementation possible in conjunction with the second of first aspect or first aspect or the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Any one in 4th kind to the 6th kind possible implementation of the implementation possible in conjunction with the second of first aspect or first aspect, in the 7th kind of possible implementation of first aspect, the attribute information of described shared resource also comprises the size of described second address space; Described first node also comprises: described first node determines that described offset address is not more than the size of described second address space before sending data access request message to described Section Point.
In conjunction with the first of first aspect or first aspect to any one in the 7th kind of possible implementation, in the 8th kind of possible implementation of first aspect, also comprise: described first node and described Section Point carry out shared resource consult time, described first node receives the attribute information of described shared resource that described Section Point sends.
In conjunction with the first of first aspect or first aspect to any one in the 8th kind of possible implementation, in the 9th kind of possible implementation of first aspect, also comprise: stop sharing after described shared resource at described first node and described Section Point, described first node described first address space of release and delete the corresponding relation of attribute information of described first address space and described shared resource.
Second aspect, the embodiment of the present invention provides resource-sharing collocation method between a kind of SoC node, comprising: Section Point and first node carry out shared resource negotiation; Described Section Point sets up the corresponding relation of the initial address of second address space of described shared resource in described Section Point and the mark of described shared resource, and described shared resource is the resource that described Section Point allows described first node and accesses.
In the first possible implementation of second aspect, also comprise: described Section Point receives the data access request that described first node sends, and described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited; The mark of the described shared resource of described Section Point belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, also comprise: described Section Point and described first node carry out shared resource consult time, described Section Point sends the mark of described shared resource to described first node.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, also comprise: described Section Point and described first node carry out shared resource consult time, described Section Point sends the size of described second address space to described first node.
The third possible implementation of the implementation possible in conjunction with the second of second aspect or second aspect, in the 4th kind of possible implementation of second aspect, also comprise: described Section Point and described first node carry out shared resource consult time, described Section Point sends the mark of described Section Point to described first node.
In conjunction with the first of second aspect or second aspect to any one in the 4th kind of possible implementation, in the 5th kind of possible implementation of second aspect, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
In conjunction with the first of second aspect or second aspect to any one in the 5th kind of possible implementation, in the 6th kind of possible implementation of second aspect, also comprise: described Section Point sets up the corresponding relation of the mark of described first node and the mark of described shared resource.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation of second aspect, also comprise: after described Section Point and described first node stop sharing described shared resource, described Section Point deletes the corresponding relation of the mark of described first node and the mark of described shared resource.
The third aspect, the embodiment of the present invention provides a kind of SoC node, as first node, comprising: negotiation element, for carrying out shared resource negotiation with Section Point; Processing unit, is mapped to the first address space in described first node for distributing described shared resource from the idle address space of described first node, and described shared resource is the resource that described Section Point allows described first node and accesses; And set up the corresponding relation of attribute information of described first address space and described shared resource, wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
In the first possible implementation of the third aspect, the attribute information of described shared resource comprises the mark of described shared resource; Described processing unit sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described processing unit is for the corresponding relation of the mark of the initial address and described shared resource of setting up described first address space.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second of the third aspect is possible, also comprise: determining unit, for determining the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited; Transmitting element, for sending data access request message to described Section Point, described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
In the third possible implementation of the third aspect, the attribute information of described shared resource comprises the initial address of described second address space; Described processing unit sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described processing unit is for the corresponding relation of the initial address of the initial address and described second address space of setting up described first address space.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect, also comprise: determining unit, for determining that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space; Transmitting element, for sending data access request message to described Section Point, described data access request message comprises the initial address of described second address space and described offset address.
4th kind of possible implementation of the implementation possible in conjunction with the second of the third aspect or the third aspect, in the 5th kind of possible implementation of the third aspect, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; Described transmitting element, specifically for the mark of the described Section Point belonging to described shared resource, sends described data access request message to described Section Point.
4th kind of possible implementation of the implementation possible in conjunction with the second of the third aspect or the third aspect or the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation of the third aspect, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Any one in 4th kind to the 6th kind possible implementation of the implementation possible in conjunction with the second of the third aspect or the third aspect, in the 7th kind of possible implementation of the third aspect, the attribute information of described shared resource also comprises the size of described second address space; Described determining unit, also for before sending data access request message at described transmitting element to described Section Point, determines that described offset address is not more than the size of described second address space.
In conjunction with the first of the third aspect or the third aspect to any one in the 7th kind of possible implementation, in the 8th kind of possible implementation of the third aspect, also comprise: receiving element, for carry out at described negotiation element and described Section Point shared resource consult time, receive the attribute information of described shared resource that described Section Point sends.
In conjunction with the first of the third aspect or the third aspect to any one in the 8th kind of possible implementation, in the 9th kind of possible implementation of the third aspect, described processing unit, also sharing after described shared resource for stopping at described first node and described Section Point, discharging described first address space and deleting the corresponding relation of attribute information of described first address space and described shared resource.
Fourth aspect, the embodiment of the present invention provides a kind of SoC node, as Section Point, comprising: negotiation element, for carrying out shared resource negotiation with first node; Processing unit, for the corresponding relation of the mark of the initial address and described shared resource of setting up second address space of described shared resource in described Section Point, described shared resource is the resource that described Section Point allows described first node and accesses.
In the first possible implementation of fourth aspect, also comprise: receiving element, for receiving the data access request that described first node sends, described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited; Determining unit, for the mark of the described shared resource belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
In conjunction with the first possible implementation of fourth aspect or fourth aspect, in the implementation that the second of fourth aspect is possible, also comprise: transmitting element, for carry out at described negotiation element and described first node shared resource consult time, send the mark of described shared resource to described first node.
In conjunction with the implementation that the second of fourth aspect is possible, in the third possible implementation of fourth aspect, described transmitting element, also for carry out at described negotiation element and described first node shared resource consult time, send the size of described second address space to described first node.
The third possible implementation of the implementation possible in conjunction with the second of fourth aspect or fourth aspect, in the 4th kind of possible implementation of fourth aspect, described transmitting element, also for carry out at described negotiation element and described first node shared resource consult time, send the mark of described Section Point to described first node.
In conjunction with the first of fourth aspect or fourth aspect to any one in the 4th kind of possible implementation, in the 5th kind of possible implementation of fourth aspect, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
In conjunction with the first of fourth aspect or fourth aspect to any one in the 5th kind of possible implementation, in the 6th kind of possible implementation of fourth aspect, described processing unit, also for the corresponding relation of the mark of the mark and described shared resource of setting up described first node.
In conjunction with the 6th kind of possible implementation of fourth aspect, in the 7th kind of possible implementation of fourth aspect, described processing unit, also sharing after described shared resource for stopping at described Section Point and described first node, deleting the corresponding relation of the mark of described first node and the mark of described shared resource.
Resource-sharing collocation method and equipment between the SoC node that the embodiment of the present invention provides, when first node needs to access the shared resource in Section Point, the address space in this first node is mapped to by this shared resource of first node dynamic assignment, then the corresponding relation of the attribute information of this address space and this shared resource is set up, thus realize first node and can directly determine to need access shared resource according to visible address space and conduct interviews, improve flexibility and the extensibility of resource-sharing.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of resource-sharing collocation method embodiment one between SoC node of the present invention;
The first node that Fig. 2 provides for the embodiment of the present invention realizes the first the application scenarios schematic diagram with Section Point shared resource;
Fig. 3 is the flow chart of resource-sharing collocation method embodiment two between SoC node of the present invention;
The first node that Fig. 4 provides for the embodiment of the present invention realizes the second application scenarios schematic diagram with Section Point shared resource;
Fig. 5 is the flow chart of resource-sharing collocation method embodiment three between SoC node of the present invention;
Fig. 6 is the structural representation of SoC node embodiment one of the present invention;
Fig. 7 is the structural representation of SoC node embodiment two of the present invention;
Fig. 8 is the structural representation of SoC node embodiment three of the present invention
Fig. 9 is the structural representation of SoC node embodiment four of the present invention
Figure 10 is the structural representation of SoC node embodiment five of the present invention;
Figure 11 is the structural representation of SoC node embodiment six of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of resource-sharing collocation method embodiment one between SoC node of the present invention, and as shown in Figure 1, the executive agent of the present embodiment is first node, and wherein, first node and Section Point all belong to SoC node, and the method for the present embodiment can comprise:
S101, first node and Section Point carry out shared resource negotiation.
In the present embodiment, when first node needs the resource in shared Section Point, namely when first node needs to access Memory Controller Hub in Section Point and/or device controller, first node can carry out shared resource negotiation with Section Point, wherein, the information of carrying out shared resource negotiation between first node and Section Point can use packet extra on system bus to transmit, and the communication mode outside system bus (Ethernet of such as standard) also can be used to transmit.After first node and Section Point carry out shared resource negotiation, first node can determine the resource that Section Point allows this first node and accesses, and this resource is called shared resource.
S102, described first node distribute described shared resource and are mapped to the first address space in described first node from the idle address space of described first node.
In the present embodiment, after first node determination Section Point allows this first node to access this shared resource, this shared resource is the resource in Section Point, this shared resource has address space in Section Point, this address space is called the second address space, first node directly can not access this shared resource according to the address of this shared resource in Section Point, so first node needs to be mapped to address space in first node for this shared resource distributes this shared resource, and for this address space is that this first node can directly be accessed, therefore, first node is according to the size of the second address space, a part of address space can be distributed be mapped to address space in this first node as this shared resource from the idle address space first node, this address space is called the first address space, the size of the first address space is identical with the size of the second address space.Such as: second address space of shared resource in Section Point is 600-650, the size of the second address space is the initial address of the 50, second address space is 600; The idle address space of first node is such as 300-500, then first node can be 50 according to address space size, the address space of one section of size 50 is distributed as the first address space from idle address space, such as can distribute 400-450 as the first address space, the initial address of the first address space is the size of the 400, first address space is 50.
S103, described first node set up the corresponding relation of the attribute information of described first address space and described shared resource.
In the present embodiment, first node after being assigned with the first address space that shared resource is mapped in first node from idle address space, first node sets up the corresponding relation of the attribute information of this first address space and this shared resource, such as: set up the corresponding relation that the first address space is the attribute information of 400-450 and this shared resource.Thus according to the attribute information of this first address space and this shared resource, first node can determine that this first node needs to access this shared resource by the address (such as address is 420) in the first address space.Wherein, the attribute information of this shared resource may be used for distinguishing this shared resource and other shared resource, and the attribute information of this shared resource such as comprises the following information of at least one: the mark of shared resource, the initial address of the second address space, the size of the second address space, the mark of Section Point.Therefore, when first node needs to access the shared resource in other node, first node is that this shared resource allocation map is to the address space in this first node, then set up the attribute information of this address space and this shared resource, thus realize first node and directly can determine according to one's own address space this shared resource that will access.
Such as, the first node that Fig. 2 provides for the embodiment of the present invention realizes a kind of application scenarios schematic diagram with Section Point shared resource, as shown in Figure 2, it is (English: CentralProcessingUnit that first node comprises CPU, be called for short: CPU), chip interconnect module, resource and system bus, this chip interconnect module is used for the chip interconnect module communication (not shown) with Section Point, after first node and Section Point carry out shared resource negotiation, CPU distributes the first address space that this shared resource is mapped to first node from the address space of first node free time, this first address space is informed to chip interconnect module by CPU, the corresponding relation of the attribute information of this first address space and shared resource is set up by chip interconnect module.Wherein, after CPU distributes the first address space, the mapping relations of CPU Dynamic Establishing first address space and chip interconnect module, these mapping relations are stored in the address mapping table in system bus by CPU by privately owned bus, represent that the message mailing to the first address space transfers to chip interconnect module by system bus, therefore, carry the arbitrary address dropping on this first address space in the request that CPU sends and be transferred to chip interconnect module by system bus according to these mapping relations, determine the shared resource pointed by this address by chip interconnect module.And in first node realization with the another kind of application scenarios of Section Point shared resource, comprise the static mappings relation of idle address space and chip interconnect module in the address mapping table stored in system bus in advance, dynamic conditioning can not be carried out when system cloud gray model.Therefore, carry the arbitrary address dropping on this idle address space in the request that CPU sends and be transferred to chip interconnect module by system bus according to these mapping relations, determine the shared resource pointed by this address by chip interconnect module.It should be noted that, above-mentioned address mapping table can be stored in three-state content addressing memory (English: ternarycontentaddressablememory, the abbreviation: TCAM) of system bus address decoding unit.The above-mentioned CPU mentioned mainly refers to operate in the operating system on this CPU or firmware program.
In the present embodiment, when first node needs to access the shared resource in Section Point, first node distributes this shared resource and is mapped to address space in this first node, then the corresponding relation of the attribute information of this address space and this shared resource is set up, thus realize first node and can directly determine to need access shared resource according to visible address space and conduct interviews, improve flexibility and the extensibility of resource-sharing.
Fig. 3 is the flow chart of resource-sharing collocation method embodiment two between SoC node of the present invention, as shown in Figure 3, the present embodiment with the attribute information of shared resource comprise shared resource be designated example and composition graphs 4 is described in detail, the method for the present embodiment can comprise:
S201, first node and Section Point carry out shared resource negotiation.
Particularly, the specific implementation process of S201 see the specific implementation process of S101 in the inventive method embodiment one, can repeat no more herein.
S202, Section Point send the mark of shared resource to first node.
Alternatively, the present embodiment described first node and described Section Point carry out shared resource consult time, first node receives the mark of shared resource that Section Point sends.Further, first node can also receive the size of the address space of shared resource in Section Point that Section Point sends, and the address space of shared resource in Section Point is called the second address space.
S203, Section Point set up the corresponding relation of the mark of shared resource and the initial address of the second address space.
In the present embodiment, after Section Point and first node carry out shared resource negotiation, after Section Point determines the resource in the Section Point allowing first node to share, Section Point can set up the corresponding relation of the mark of this shared resource and the initial address of the second address space.
S204, described first node distribute described shared resource and are mapped to the first address space in described first node from the idle address space of described first node.
In the present embodiment, the specific implementation process of S204 see the specific implementation process of S102 in the inventive method embodiment one, can repeat no more herein.
S205, described first node set up the corresponding relation of the initial address of described first address space and the mark of described shared resource.
In the present embodiment, first node after being assigned with the first address space that shared resource is mapped in first node from idle address space, and first node sets up the corresponding relation of the initial address of this first address space and the mark of this shared resource.
Further, the method for the present embodiment can also comprise:
S206, described first node determine the address of data-mapping to be visited to described first node from described first address space, and described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node.
In the present embodiment, complete after shared resource configures at first node and Section Point, first node can determine from the first address space that in shared resource, data-mapping to be visited is to the address of first node, namely can determine that data-mapping to be visited is to the initial address of first node and offset address, and data-mapping to be visited is the initial address of the first address space to the initial address of first node, such as the first address space is 400 ~ 450, the initial address of the first address space is 400, the size of the first address space is 50, data-mapping to be visited is 420 to the address of first node, data-mapping so to be visited is 400 to the initial address of first node, the offset address of data to be visited is 20.
S207, described first node are according to the initial address of data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited.
In the present embodiment, first node is according to the initial address of this data-mapping to be visited to described first node, the corresponding relation of the initial address of described first address space and the mark of described shared resource can be searched out, then the corresponding relation of the initial address of the first address space and the mark of shared resource, determines that this is designated the mark of the shared resource belonging to data to be visited.
S208, described first node send data access request message to described Section Point, and described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
In the present embodiment, determine the mark of the shared resource belonging to data to be visited at first node after, first node sends the data access request message of the mark of the shared resource comprised belonging to offset address and data to be visited to Section Point.
Alternatively, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; So described Section Point and described first node carry out shared resource consult time, Section Point can also send the mark of Section Point to first node, correspondingly, first node receives the mark of the shared resource that Section Point sends, to represent that this shared resource belongs to Section Point.Therefore, first node can set up initial address, the size of the first address space, with the corresponding relation of the mark of shared resource, the mark of Section Point.Wherein, the mark of Section Point can be the numbering of Section Point, and the mark of shared resource can be the numbering of this shared resource in Section Point.
Such as, as shown in Figure 4, after first node and Section Point carry out shared resource negotiation, the CPU of first node distributes the first address space that this shared resource is mapped to first node from the address space of first node free time, this first address space, the mark of shared resource and the identification notification of Section Point to the chip interconnect module of first node, are set up the corresponding relation of the mark of the initial address of this first address space and the mark of shared resource and Section Point by the CPU of first node by the chip interconnect module of first node.
Described first node sends data access request to described Section Point, comprising: the mark of the described Section Point of described first node belonging to described shared resource, sends described data access request to described Section Point.Particularly, first node is according to the initial address of described data-mapping to be visited to described first node, and first address space initial address and the corresponding relation of mark of Section Point, determine the mark being designated the node belonging to shared resource of Section Point, namely represent that data access request needs to mail to Section Point, then first node is according to the mark of Section Point, and data access request is sent to Section Point.
Such as: the chip interconnect module of first node is according to the initial address of described data-mapping to be visited to described first node, and the initial address of described first address space and the mark of described shared resource, the mark of Section Point corresponding relation, determine the mark of the shared resource belonging to data to be visited, then the chip interconnect module of first node sends the data access request message of the mark comprising shared resource belonging to offset address and data to be visited to the chip interconnect module of Section Point.
The mark of S209, the described Section Point described shared resource belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in Section Point.
In the present embodiment, Section Point receives the above-mentioned data access request that first node sends, and the mark of the shared resource belonging to the data to be visited in this data access request, and the corresponding relation of the initial address of the second address space set up in above-mentioned S203 and the mark of described shared resource, the initial address of the second address space can be determined, and using the initial address of the second address space as the initial address of data to be visited in Section Point.Then Section Point is according to the initial address of described data to be visited in Section Point and described offset address, determines the described address of data to be visited in described Section Point.Such as: data-mapping to be visited is 420 to the address in first node, data-mapping to be visited is 400 to the initial address in first node, data-mapping to be visited is 20 to the offset address in first node, the initial address of data to be visited in Section Point is 500, therefore, the address of data to be visited in Section Point is 520, thus can realize first node and visit data corresponding to address 520 in Section Point according to visible address 420.
In the present embodiment, after first node and Section Point carry out shared resource negotiation, first node distribution shared resource is mapped to the first address space in first node, the size of this first address space and shared resource the second address space in Section Point is identical, then first node sets up the corresponding relation of the initial address of the first address space and the mark of shared resource, therefore, first node can according to belonging to the data-mapping to be visited of the first address space to the address in first node, determine the mark of this shared resource belonging to data to be visited, then the data access request comprising the mark of this shared resource and the offset address of data to be visited is sent to Section Point, Section Point can determine the initial address of the second address space of this shared resource according to the mark of this shared resource, then the address of data to be visited in Section Point can be determined according to the initial address of this second address space and the offset address of data to be visited, realize resource-sharing.So when first node needs the shared resource of accessing its node arbitrary, in other node of first node dynamic assignment, shared resource is mapped to the address space in this first node, make first node can visit this shared resource according to visible address, improve flexibility and the extensibility of shared resource.
Below in conjunction with the application scenarios shown in Fig. 4, the inventive method embodiment two is described, the chip interconnect module of Section Point communicates with the chip interconnect module of first node, after Section Point and first node carry out shared resource negotiation, the chip interconnect module of Section Point can set up the corresponding relation of the mark of shared resource and the initial address of the second address space.The CPU of first node is according to the size of the second address space, the first address space that this shared resource is mapped to first node is distributed from the idle address space of first node, the initial address of this first address space and the identification notification of shared resource to the chip interconnect module of first node, are set up the corresponding relation of the initial address of this first address space and the mark of shared resource by the CPU of first node by the chip interconnect module of first node.Wherein, after the CPU of first node distributes the first address space, the CPU of first node also sets up the mapping relations of the chip interconnect module of the first address space and first node, and these mapping relations are stored in by privately owned bus in the address mapping table in system bus by the CPU of first node.The CPU of first node can determine the address of data-mapping to be visited to first node from the first address space, and namely data-mapping to be visited is to the initial address of first node and offset address.The CPU of first node by data-mapping to be visited to the address transfer of first node in system bus, system bus is according to the mapping relations of the chip interconnect module of the first address space and first node, by this address transfer to the chip interconnect module of first node, the chip interconnect module of first node is mapped to the initial address in first node according to number to be visited, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the shared resource belonging to data to be visited, then the chip interconnect module of first node sends the data access request message of the mark comprising shared resource belonging to offset address and data to be visited to the chip interconnect module of Section Point.The mark of the described shared resource of chip interconnect module belonging to data to be visited of Section Point, and second address space initial address and the corresponding relation of mark of shared resource, determine that the initial address of the second address space is the initial addresses of data to be visited in Section Point, and then according to the initial address of the second address space and offset address, determine the described address of data to be visited in described Section Point, then by the address transfer of these data to be visited in described Section Point to the system bus of Section Point, system bus can search out corresponding shared resource according to this address.The above-mentioned CPU mentioned mainly refers to operate in the operating system on this CPU or firmware program.
Fig. 5 is the flow chart of resource-sharing collocation method embodiment three between SoC node of the present invention, as shown in Figure 5, the present embodiment comprises the second address space of shared resource initial address for the attribute information of shared resource is described in detail, and the method for the present embodiment can comprise:
S301, first node and Section Point carry out shared resource negotiation.
Particularly, the specific implementation process of S201 see the specific implementation process of S101 in the inventive method embodiment one, can repeat no more herein.
S302, described Section Point send the initial address of the second address space to described first node.
Alternatively, the present embodiment described first node and described Section Point carry out shared resource consult time, first node receives the initial address of the address space of shared resource in Section Point that Section Point sends, and the address space of shared resource in Section Point is called the second address space.Further, first node can also receive the size of the second address space that Section Point sends.
S303, described first node distribute described shared resource and are mapped to the first address space in described first node from the idle address space of described first node.
In the present embodiment, the specific implementation process of S303 see the specific implementation process of S102 in the inventive method embodiment one, can repeat no more herein.
S304, described first node set up the corresponding relation of the initial address of described first address space and the initial address of described second address space.
In the present embodiment, first node after being assigned with the first address space that shared resource is mapped in first node from idle address space, and first node sets up the corresponding relation of the initial address of this first address space and the initial address of this second address space.
Such as, as shown in Figure 4, after first node and Section Point carry out shared resource negotiation, the CPU of first node distributes the first address space that this shared resource is mapped to first node from the address space of first node free time, the initial address of the initial address of this first address space and this second address space is informed to the chip interconnect module of first node by the CPU of first node, is set up the corresponding relation of the initial address of this first address space and the initial address of this second address space by the chip interconnect module of first node.Wherein, after the CPU of first node distributes the first address space, the CPU of first node also sets up the mapping relations of the first address space and chip interconnect module, and these mapping relations are stored in by privately owned bus in the address mapping table in system bus by the CPU of first node.
Further, the method for the present embodiment can also comprise:
S305, described first node determine the address of data-mapping to be visited to described first node from described first address space, and data-mapping to be visited comprises data-mapping to be visited to the initial address of described first node and offset address to the address of described first node.
Wherein, described data-mapping to be visited is the initial address of described first address space to the initial address of first node.
The specific implementation process of S305 see the specific implementation process of S206 in the inventive method embodiment two, can repeat no more herein.
S306, described first node are according to the initial address of data-mapping to be visited to first node, and the corresponding relation of the initial address of described first address space and the initial address of this second address space, determine that the initial address of this second address space is the initial addresses of described data to be visited in described Section Point.
S307, described first node send data access request message to described Section Point, and described data access request message comprises the initial address of described offset address and described second address space.
In the present embodiment, determine the mark of the shared resource belonging to data to be visited at first node after, first node sends the data access request message comprising the initial address of offset address and the second address space to Section Point, Section Point according to the initial address of the offset address in this data access request message and the second address space, can determine the address of data to be visited at Section Point.
In the present embodiment, after first node and Section Point carry out shared resource negotiation, first node distribution shared resource is mapped to the first address space in first node, the size of this first address space and shared resource the second address space in Section Point is identical, then first node sets up the corresponding relation of the initial address of the first address space and the initial address of the second address space, therefore, first node can according to belonging to the data-mapping to be visited of the first address space to the address in first node, determine the initial address of the second address space, then the data access request comprising the initial address of this second address space and the offset address of data to be visited is sent to Section Point, Section Point can determine the address of data to be visited in Section Point according to the offset address of the initial address of this second address space and data to be visited, realize resource-sharing.So when first node needs the shared resource of accessing its node arbitrary, in other node of first node dynamic assignment, shared resource is mapped to the address space in this first node, make first node can visit this shared resource according to visible address, improve flexibility and the extensibility of shared resource.
Below in conjunction with the application scenarios shown in Fig. 4, the inventive method embodiment three is described, the chip interconnect module of Section Point communicates with the chip interconnect module of first node, after Section Point and first node carry out shared resource negotiation, the chip interconnect module of Section Point can set up the corresponding relation of the mark of shared resource and the initial address of the second address space.The CPU of first node is according to the size of the second address space, the first address space that this shared resource is mapped to first node is distributed from the idle address space of first node, the initial address of the initial address of this first address space and the second address space is informed to the chip interconnect module of first node by the CPU of first node, is set up the corresponding relation of the initial address of this first address space and the initial address of the second address space by the chip interconnect module of first node.Wherein, after the CPU of first node distributes the first address space, the CPU of first node also sets up the mapping relations of the chip interconnect module of the first address space and first node, and these mapping relations are stored in by privately owned bus in the address mapping table in system bus by the CPU of first node.The CPU of first node can determine the address of data-mapping to be visited to first node from the first address space, and namely data-mapping to be visited is to the initial address of first node and offset address.The CPU of first node by data-mapping to be visited to the address transfer of first node in system bus, system bus is according to the mapping relations of the chip interconnect module of the first address space and first node, by this address transfer to the chip interconnect module of first node, the chip interconnect module of first node is mapped to the initial address in first node according to number to be visited, and the corresponding relation of the initial address of described first address space and the initial address of the second address space, determine that the initial address of the second address space is the initial addresses of data to be visited in Section Point, then the chip interconnect module of first node sends to the chip interconnect module of Section Point and comprises the data access request message of the initial address of offset address and the second address space.The chip interconnect module of Section Point is according to the initial address of the second address space and offset address, determine the described address of data to be visited in described Section Point, then by the address transfer of these data to be visited in described Section Point to the system bus of Section Point, system bus can search out corresponding shared resource according to this address.
On the basis of the various embodiments described above, alternatively, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; Such as, Section Point and first node carry out shared resource consult time, Section Point also sends the mark of the Section Point belonging to shared resource to first node, correspondingly, first node receives the mark of the Section Point belonging to shared resource that Section Point sends, and therefore first node also sets up the corresponding relation of the mark of Section Point and the initial address of the first address space.Described first node sends data access request message to described Section Point, comprising: the mark of the described Section Point of described first node belonging to described shared resource, sends described data access request message to described Section Point.Particularly, first node is according to the initial address of data-mapping to be visited to first node and the corresponding relation of the initial address of the first address space and the mark of Section Point, determine the mark being designated the node belonging to shared resource of Section Point, namely represent that data access request needs to mail to Section Point, then first node is according to the mark of Section Point, and data access request is sent to Section Point.Wherein, the mark of Section Point can be the numbering of Section Point, and the mark of shared resource can be the numbering of this shared resource in Section Point.
In the application scenarios shown in Fig. 4, the CPU of first node also by the identification notification of Section Point to the chip interconnect module of first node, the chip interconnect module of first node also sets up the corresponding relation of the initial address of the first address space and the mark of Section Point.Correspondingly, the chip interconnect module of first node is according to the initial address of data-mapping to be visited to first node, and the initial address of described first address space and the mark of described shared resource, the mark of Section Point corresponding relation, determine the mark of the shared resource belonging to data to be visited and the mark of Section Point, then the chip interconnect module of first node sends data access request message to the chip interconnect module of Section Point.
Alternatively, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
In the application scenarios shown in Fig. 4, the mark of first node is also included in data access request the chip interconnect module sending to Section Point by the chip interconnect module of first node, and the node that the chip interconnect module of Section Point can determine to access these data to be visited according to the mark of this first node is first node.
Alternatively, the attribute information of described shared resource also comprises the size of described second address space; Such as, Section Point and first node carry out shared resource consult time, Section Point also sends the size of the second address space to first node, correspondingly, first node receives the size of the second address space that Section Point sends, and first node can also set up the corresponding relation of the size of the second address space and the initial address of the first address space.Described first node also comprises: described first node determines that described offset address is not more than the size of described second address space before sending data access request message to described Section Point.Particularly, first node is according to the initial address of data-mapping to be visited to first node and the corresponding relation of the initial address of the first address space and the size of the second address space, judge whether this offset address is greater than the size of the second address space, if be greater than, then illustrate that this offset address is invalid, then stop flow process; If be not more than, then illustrate that this offset address is effective, then first node sends data access request to Section Point.
In the application scenarios shown in Fig. 4, the size of the second address space is also informed to the chip interconnect module of first node by the CPU of first node, and the chip interconnect module of first node also sets up the corresponding relation of the initial address of the first address space and the size of the second address space.Correspondingly, the chip interconnect module of first node is according to the initial address of data-mapping to be visited to first node, and the corresponding relation of the size of the initial address of described first address space and described second address space, when determining that offset address is not more than the size of the second address space, the chip interconnect module to Section Point sends data access request message.
Alternatively, said method also comprises: described Section Point sets up the corresponding relation of the mark of described first node and the mark of described shared resource.Thus Section Point can record this shared resource existed in this Section Point of which nodes sharing.
In the application scenarios shown in Fig. 4, the chip interconnect module of Section Point sets up the corresponding relation of the mark of described first node and the mark of described shared resource.
Alternatively, after described first node stops sharing described shared resource, described Section Point deletes the corresponding relation of the mark of described first node and the mark of described shared resource.Described first node described first address space of release and delete the corresponding relation of attribute information of described first address space and described shared resource.Therefore, the address space after first node release may be used for distributing to the address space that other shared resource is mapped to this first node, thus realizes the hot-swappable of shared resource.
In the application scenarios shown in Fig. 4, after described first node stops sharing described shared resource, the chip interconnect module of Section Point deletes the corresponding relation of the mark of first node and the mark of shared resource, cannot delete the corresponding relation of the initial address of the second address space and the mark of shared resource.The CPU of first node discharges the first address space, with the idle address space making the first address space become first node, the CPU of first node is by the mapping relations of the chip interconnect module of the first address space of storing in privately owned bus deletion system bus and first node, and the chip interconnect module of first node can also delete the corresponding relation of the initial address of the first address space and the attribute information of shared resource.
It should be noted that, Section Point can also perform the scheme performed by above-mentioned first node, and same first node also can perform the scheme performed by above-mentioned Section Point.
Fig. 6 is the structural representation of SoC node embodiment one of the present invention, and as shown in Figure 6, the SoC node of the present embodiment can comprise as first node: negotiation element 11 and processing unit 12, and wherein, negotiation element 11, for carrying out shared resource negotiation with Section Point; Processing unit 12, is mapped to the first address space in described first node for distributing described shared resource from the idle address space of described first node, and described shared resource is the resource that described Section Point allows described first node and accesses; And set up the corresponding relation of attribute information of described first address space and described shared resource, wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first node, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 7 is the structural representation of SoC node embodiment two of the present invention, as shown in Figure 7, the SoC node of the present embodiment on the basis of structure shown in Fig. 6, alternatively, in the implementation that the first is feasible, the attribute information of described shared resource comprises the mark of described shared resource; Processing unit 12 sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: processing unit 12 is for the corresponding relation of the mark of the initial address and described shared resource of setting up described first address space.
In the implementation that the second is feasible, the attribute information of described shared resource comprises the initial address of described second address space; Processing unit 12 sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: processing unit 12, for the corresponding relation of the initial address of the initial address and described second address space of setting up described first address space.
Alternatively, the SoC node of the present embodiment can also comprise: determining unit 13 and transmitting element 14.
In the first feasible implementation above-mentioned, determining unit 13, for determining the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited; Transmitting element 14, for sending data access request message to described Section Point, described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
In the implementation that above-mentioned the second is feasible, determining unit 13, for determining that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space; Transmitting element 14, for sending data access request message to described Section Point, described data access request message comprises the initial address of described second address space and described offset address.
Alternatively, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; Transmitting element 14, specifically for the mark of the described Section Point belonging to described shared resource, sends described data access request message to described Section Point.
Alternatively, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Alternatively, the attribute information of described shared resource also comprises the size of described second address space; Determining unit 13, also for before sending data access request message at transmitting element 14 to described Section Point, determines that described offset address is not more than the size of described second address space.
Alternatively, the SoC node of the present embodiment can also comprise: receiving element 15; This receiving element 15, for carry out at negotiation element 11 and described Section Point shared resource consults time, receive the attribute information of the described shared resource of described Section Point transmission.
Alternatively, processing unit 12, also shares after described shared resource for stopping at described first node and described Section Point, discharges described first address space and deletes the corresponding relation of attribute information of described first address space and described shared resource.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first node, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 8 is the structural representation of SoC node embodiment three of the present invention, as shown in Figure 8, the SoC node of the present embodiment can comprise as first node: processor 21 and memory 22, and wherein, memory 22 performs the code of resource-sharing collocation method between SoC node for storing; Memory 22 can comprise nonvolatile memory (Non-volatileMemory).Processor 21 can be that a central processing unit is (English: CentralProcessingUnit, be called for short: CPU), or specific integrated circuit is (English: ApplicationSpecificIntegratedCircuit, be called for short: ASIC), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.Processor 21, for calling described code, performs and operates as follows:
Shared resource negotiation is carried out with Section Point;
From the idle address space of described first node, distribute described shared resource be mapped to the first address space in described first node, described shared resource is the resource that described Section Point allows described first node and accesses;
And set up the corresponding relation of attribute information of described first address space and described shared resource, wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
Alternatively, in the implementation that the first is feasible, the attribute information of described shared resource comprises the mark of described shared resource; The corresponding relation of the attribute information of described first address space and described shared resource set up by processor 21, comprising: processor 21 is for the corresponding relation of the mark of the initial address and described shared resource of setting up described first address space.
In the implementation that the second is feasible, the attribute information of described shared resource comprises the initial address of described second address space; The corresponding relation of the attribute information of described first address space and described shared resource set up by processor 21, comprising: processor 21, for the corresponding relation of the initial address of the initial address and described second address space of setting up described first address space.
Alternatively, the SoC node of the present embodiment can also comprise: transmitter 23.
In the first feasible implementation above-mentioned, processor 21, also for determining the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited; Transmitter 23, for sending data access request message to described Section Point, described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
In the implementation that above-mentioned the second is feasible, processor 21, also for determining that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space; Transmitter 23, for sending data access request message to described Section Point, described data access request message comprises the initial address of described second address space and described offset address.
Alternatively, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource; Transmitter 23, specifically for the mark of the described Section Point belonging to described shared resource, sends described data access request message to described Section Point.
Alternatively, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Alternatively, the attribute information of described shared resource also comprises the size of described second address space; Processor 21, also for before sending data access request message at transmitter 23 to described Section Point, determines that described offset address is not more than the size of described second address space.
Alternatively, the SoC node of the present embodiment can also comprise: receiver 24; This receiver 24, for carry out at processor 21 and described Section Point shared resource consults time, receive the attribute information of the described shared resource of described Section Point transmission.
Alternatively, processor 21, also shares after described shared resource for stopping at described first node and described Section Point, discharges described first address space and deletes the corresponding relation of attribute information of described first address space and described shared resource.
Alternatively, above-mentioned transmitter 23 can be communication interface, and above-mentioned receiver 24 can be communication interface.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first node, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 9 is the structural representation of SoC node embodiment four of the present invention, and as shown in Figure 9, the SoC node of the present embodiment can comprise as Section Point: negotiation element 31 and processing unit 32; Wherein, negotiation element 31, for carrying out shared resource negotiation with first node; Processing unit 32, for the corresponding relation of the mark of the initial address and described shared resource of setting up second address space of described shared resource in described Section Point, described shared resource is the resource that described Section Point allows described first node and accesses.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by Section Point, it realizes principle and technique effect is similar, repeats no more herein.
Figure 10 is the structural representation of SoC node embodiment five of the present invention, and as shown in Figure 10, the SoC node of the present embodiment, on the basis of structure shown in Fig. 9, can also comprise: receiving element 33 and determining unit 34; Wherein receiving element 33, for receiving the data access request that described first node sends, described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited; Determining unit 34, for the mark of the described shared resource belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
Alternatively, the SoC node of the present embodiment, can also comprise: transmitting element 35; Wherein, transmitting element 35, for carry out at negotiation element 31 and described first node shared resource consult time, send the mark of described shared resource to described first node.
Alternatively, transmitting element 35, also for carry out at negotiation element 31 and described first node shared resource consults time, to the size of described second address space of described first node transmission.
Alternatively, transmitting element 35, also for carry out at negotiation element 31 and described first node shared resource consult time, send the mark of described Section Point to described first node.
Alternatively, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Alternatively, processing unit 32, also for the corresponding relation of the mark of the mark and described shared resource of setting up described first node.
Alternatively, processing unit 32, also sharing after described shared resource for stopping at described Section Point and described first node, deleting the corresponding relation of the mark of described first node and the mark of described shared resource.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by Section Point, it realizes principle and technique effect is similar, repeats no more herein.
Figure 11 is the structural representation of SoC node embodiment six of the present invention, as shown in figure 11, the SoC node of the present embodiment can comprise as Section Point: processor 41 and memory 42, and wherein, memory 42 performs the code of resource-sharing collocation method between SoC node for storing; Memory 42 can comprise nonvolatile memory.Processor 41 can be a CPU, or ASIC, or is configured to the one or more integrated circuits implementing the embodiment of the present invention.Processor 41, for calling described code, performs and operates as follows:
Shared resource negotiation is carried out with first node;
Set up the corresponding relation of the initial address of second address space of described shared resource in described Section Point and the mark of described shared resource, described shared resource is the resource that described Section Point allows described first node and accesses.
Alternatively, the SoC node of the present embodiment can also comprise: receiver 43; Wherein receiver 43, for receiving the data access request that described first node sends, described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited; Processor 41, also for the mark of the described shared resource belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
Alternatively, the SoC node of the present embodiment can also comprise: transmitter 44; Wherein, transmitter 44, for carry out at processor 41 and described Section Point shared resource consult time, send the mark of described shared resource to described first node.
Alternatively, transmitter 44, also for carry out at processor 41 and described Section Point shared resource consults time, to the size of described second address space of described first node transmission.
Alternatively, transmitter 44, also for carry out at processor 41 and described Section Point shared resource consult time, send the mark of described Section Point to described first node.
Alternatively, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
Alternatively, processor 41, also for the corresponding relation of the mark of the mark and described shared resource of setting up described first node.
Alternatively, processor 41, also sharing after described shared resource for stopping at described Section Point and described first node, deleting the corresponding relation of the mark of described first node and the mark of described shared resource.
Alternatively, above-mentioned receiver 43 can be communication interface, and above-mentioned transmitter 44 can be communication interface.
The SoC node of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by Section Point, it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: read-only memory is (English: Read-OnlyMemory, be called for short: ROM), random access memory (English: RandomAccessMemory, be called for short: RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (36)

1. a resource-sharing collocation method between system level chip SoC node, is characterized in that, comprising:
First node and Section Point carry out shared resource negotiation;
Described first node distributes described shared resource and is mapped to the first address space in described first node from the idle address space of described first node, and described shared resource is the resource that described Section Point allows described first node and accesses;
Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, and wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
2. method according to claim 1, is characterized in that, the attribute information of described shared resource comprises the mark of described shared resource;
Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising:
Described first node sets up the corresponding relation of the initial address of described first address space and the mark of described shared resource.
3. method according to claim 2, is characterized in that, also comprises:
Described first node determines the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node;
Described first node is according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited;
Described first node sends data access request message to described Section Point, and described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
4. method according to claim 1, is characterized in that, the attribute information of described shared resource comprises the initial address of described second address space;
Described first node sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising:
Described first node sets up the corresponding relation of the initial address of described first address space and the initial address of described second address space.
5. method according to claim 4, is characterized in that, also comprises:
Described first node determines that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, and described data-mapping to be visited is the initial address of described first address space to the initial address of described first node;
Described first node is according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space;
Described first node sends data access request message to described Section Point, and described data access request message comprises the initial address of described second address space and described offset address.
6. the method according to claim 3 or 5, is characterized in that, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource;
Described first node sends data access request message to described Section Point, comprising:
The mark of the described Section Point of described first node belonging to described shared resource, sends described data access request message to described Section Point.
7. the method according to claim 3 or 5 or 6, it is characterized in that, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
8. the method according to claim 3 or 5-7 any one, is characterized in that, the attribute information of described shared resource also comprises the size of described second address space;
Described first node also comprises before sending data access request message to described Section Point:
Described first node determines that described offset address is not more than the size of described second address space.
9. the method according to claim 1-8 any one, is characterized in that, also comprises:
Described first node and described Section Point carry out shared resource consult time, described first node receives the attribute information of described shared resource that described Section Point sends.
10. the method according to claim 1-9 any one, is characterized in that, also comprises:
Stop sharing after described shared resource at described first node and described Section Point, described first node described first address space of release and delete the corresponding relation of attribute information of described first address space and described shared resource.
Resource-sharing collocation method between 11. 1 kinds of system level chip SoC nodes, is characterized in that, comprising:
Section Point and first node carry out shared resource negotiation;
Described Section Point sets up the corresponding relation of the initial address of second address space of described shared resource in described Section Point and the mark of described shared resource, and described shared resource is the resource that described Section Point allows described first node and accesses.
12. methods according to claim 11, is characterized in that, also comprise:
Described Section Point receives the data access request that described first node sends, and described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited;
The mark of the described shared resource of described Section Point belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
13. methods according to claim 11 or 12, is characterized in that, also comprise:
Described Section Point and described first node carry out shared resource consult time, described Section Point sends the mark of described shared resource to described first node.
14. methods according to claim 13, is characterized in that, also comprise:
Described Section Point and described first node carry out shared resource consult time, described Section Point sends the size of described second address space to described first node.
15. methods according to claim 13 or 14, is characterized in that, also comprise:
Described Section Point and described first node carry out shared resource consult time, described Section Point sends the mark of described Section Point to described first node.
16. methods according to claim 11-15 any one, it is characterized in that, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
17. methods according to claim 11-16 any one, is characterized in that, also comprise:
Described Section Point sets up the corresponding relation of the mark of described first node and the mark of described shared resource.
18. methods according to claim 17, is characterized in that, also comprise:
After described Section Point and described first node stop sharing described shared resource, described Section Point deletes the corresponding relation of the mark of described first node and the mark of described shared resource.
19. 1 kinds of system level chip SoC nodes, as first node, is characterized in that, comprising:
Negotiation element, for carrying out shared resource negotiation with Section Point;
Processing unit, is mapped to the first address space in described first node for distributing described shared resource from the idle address space of described first node, and described shared resource is the resource that described Section Point allows described first node and accesses; And set up the corresponding relation of attribute information of described first address space and described shared resource, wherein, the size of described first address space is identical with the size of second address space of described shared resource in described Section Point.
20. nodes according to claim 19, is characterized in that, the attribute information of described shared resource comprises the mark of described shared resource;
Described processing unit sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described processing unit is for the corresponding relation of the mark of the initial address and described shared resource of setting up described first address space.
21. nodes according to claim 20, is characterized in that, also comprise:
Determining unit, for determining the address of data-mapping to be visited to described first node from described first address space, described data-mapping to be visited comprises described data-mapping to be visited to the initial address of described first node and offset address to the address of described first node, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described data-mapping to be visited to described first node, and the corresponding relation of the initial address of described first address space and the mark of described shared resource, determine the mark of the described shared resource belonging to described data to be visited;
Transmitting element, for sending data access request message to described Section Point, described data access request message comprises the mark of described offset address and the described shared resource belonging to described data to be visited.
22. nodes according to claim 19, is characterized in that, the attribute information of described shared resource comprises the initial address of described second address space;
Described processing unit sets up the corresponding relation of the attribute information of described first address space and described shared resource, comprising: described processing unit is for the corresponding relation of the initial address of the initial address and described second address space of setting up described first address space.
23. nodes according to claim 22, is characterized in that, also comprise:
Determining unit, for determining that from described first address space data-mapping to be visited is to the initial address of described first node and offset address, described data-mapping to be visited is the initial address of described first address space to the initial address of described first node; And according to the initial address of described first address space, and the corresponding relation of the initial address of the initial address of described first address space and described second address space, determine that the initial address of described data to be visited in described Section Point is the initial address of described second address space;
Transmitting element, for sending data access request message to described Section Point, described data access request message comprises the initial address of described second address space and described offset address.
24. nodes according to claim 21 or 23, it is characterized in that, the attribute information of described shared resource also comprises the mark of the described Section Point belonging to described shared resource;
Described transmitting element, specifically for the mark of the described Section Point belonging to described shared resource, sends described data access request message to described Section Point.
25. nodes according to claim 21 or 23 or 24, it is characterized in that, described data access request message also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
26. nodes according to claim 21 or 23-25 any one, it is characterized in that, the attribute information of described shared resource also comprises the size of described second address space;
Described determining unit, also for before sending data access request message at described transmitting element to described Section Point, determines that described offset address is not more than the size of described second address space.
27. nodes according to claim 19-26 any one, is characterized in that, also comprise:
Receiving element, for carry out at described negotiation element and described Section Point shared resource consult time, receive the attribute information of described shared resource that described Section Point sends.
28. nodes according to claim 19-27 any one, it is characterized in that, described processing unit, also sharing after described shared resource for stopping at described first node and described Section Point, discharging described first address space and deleting the corresponding relation of attribute information of described first address space and described shared resource.
29. 1 kinds of system level chip SoC nodes, as Section Point, is characterized in that, comprising:
Negotiation element, for carrying out shared resource negotiation with first node;
Processing unit, for the corresponding relation of the mark of the initial address and described shared resource of setting up second address space of described shared resource in described Section Point, described shared resource is the resource that described Section Point allows described first node and accesses.
30. nodes according to claim 29, is characterized in that, also comprise:
Receiving element, for receiving the data access request that described first node sends, described data access request comprises the mark of the offset address of data to be visited and the described shared resource belonging to described data to be visited;
Determining unit, for the mark of the described shared resource belonging to described data to be visited, and the corresponding relation of the initial address of described second address space and the mark of described shared resource, determine that the initial address of described second address space is the initial addresses of described data to be visited in described Section Point.
31. nodes according to claim 29 or 30, is characterized in that, also comprise:
Transmitting element, for carry out at described negotiation element and described first node shared resource consult time, send the mark of described shared resource to described first node.
32. nodes according to claim 31, is characterized in that, described transmitting element, also for carry out at described negotiation element and described first node shared resource consult time, send the size of described second address space to described first node.
33. nodes according to claim 31 or 32, is characterized in that, described transmitting element, also for carry out at described negotiation element and described first node shared resource consult time, send the mark of described Section Point to described first node.
34. nodes according to claim 29-33 any one, it is characterized in that, described data access request also comprises the mark of described first node, and the mark of described first node is used to indicate the node of accessing described data to be visited.
35. nodes according to claim 29-34 any one, is characterized in that, described processing unit, also for the corresponding relation of the mark of the mark and described shared resource of setting up described first node.
36. nodes according to claim 35, it is characterized in that, described processing unit, also sharing after described shared resource for stopping at described Section Point and described first node, deleting the corresponding relation of the mark of described first node and the mark of described shared resource.
CN201410571273.1A 2014-10-23 2014-10-23 Resource sharing configuration method and device between SoC nodes Pending CN105530197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410571273.1A CN105530197A (en) 2014-10-23 2014-10-23 Resource sharing configuration method and device between SoC nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410571273.1A CN105530197A (en) 2014-10-23 2014-10-23 Resource sharing configuration method and device between SoC nodes

Publications (1)

Publication Number Publication Date
CN105530197A true CN105530197A (en) 2016-04-27

Family

ID=55772189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410571273.1A Pending CN105530197A (en) 2014-10-23 2014-10-23 Resource sharing configuration method and device between SoC nodes

Country Status (1)

Country Link
CN (1) CN105530197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124316A (en) * 2019-12-30 2020-05-08 青岛海尔科技有限公司 Method and device for sharing storage space and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124316A (en) * 2019-12-30 2020-05-08 青岛海尔科技有限公司 Method and device for sharing storage space and computer readable storage medium
CN111124316B (en) * 2019-12-30 2023-12-19 青岛海尔科技有限公司 Storage space sharing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108924268B (en) Container cloud service system and pod creation method and device
US9329783B2 (en) Data processing system and data processing method
WO2016066073A1 (en) Storage resource access method supporting sr-iov, storage controller and storage device
US10466935B2 (en) Methods for sharing NVM SSD across a cluster group and devices thereof
CN108845877B (en) Method, device and system for managing memory
CN105511954A (en) Method and device for message processing
CN103828332B (en) Data processing method, device, storage control and rack
US10467179B2 (en) Method and device for sharing PCIe I/O device, and interconnection system
CN108984465A (en) A kind of method for message transmission and equipment
CN104077239A (en) IP hard disk, and memory system and data operation method thereof
CN102316043A (en) Port virtualization method, switch and communication system
US8650349B2 (en) Memory mapped input/output bus address range translation for virtual bridges
CN103092798A (en) On-chip system and method for accessing to equipment under bus
CN103595720B (en) Unloading data transmission method, device and client
CN103166845A (en) Data processing method and device
CN105722040A (en) Service message transmission method, apparatus and system
US20110252174A1 (en) Hierarchical to physical memory mapped input/output translation
CN104571934A (en) Memory access method, equipment and system
CN107547247B (en) IP address allocation method and device for three-layer management network in intelligent elastic architecture
CN110636149B (en) Remote access method, device, router and storage medium
US9319350B2 (en) Virtual address for virtual port
CN105530197A (en) Resource sharing configuration method and device between SoC nodes
US8316169B2 (en) Physical to hierarchical bus translation
CN105765542A (en) Method for accessing files, distributed storage system and storage node
US8606984B2 (en) Hierarchical to physical bus translation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160427