Exchanging data based on bus identifier and device identifier
By using a unique combination of bus identifiers and device identifiers in large switches, PCIe data exchange is optimized, solving the problem of low PCIe bus allocation efficiency, achieving efficient data exchange, and supporting larger networks.
Patent Information
- Application Number
- CN202380019430.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-09
- Filing Date
- 2023-02-09
- Publication Date
- 2024-10-29
AI Technical Summary
In large switch topologies, the PCIe bus allocation efficiency is low, resulting in low data exchange efficiency and difficulty in meeting larger network needs.
By using a unique combination of bus identifiers and device identifiers in the switch, based on the PCIe specification, efficient data exchange between hosts and endpoints is achieved, and switching logic components are used to store and respond to bus identifiers and device identifiers to optimize data routing. .
It improves data exchange efficiency, supports larger switching networks, reduces the number of switches, and improves the overall performance of the system.
Smart Images

Figure CN118871898A_ABST
Abstract
Description
[0001] Priority declaration
[0002] This application claims the benefit of the priority date of U.S. Provisional Patent Application No. 63 / 267,771, filed on February 9, 2022, entitled "COMPRESSING PCLE BUS ASSIGNMENT IN LARGE SWITCH TOPOLOGIES," the disclosure of which is hereby incorporated by reference in its entirety. Technical Field
[0003] The present specification generally relates to exchanging data at least in part in response to a bus identifier and a device identifier. More specifically, some examples relate to exchanging data between ports compliant with Peripheral Component Interconnect Express (PCIe) at least in part in response to a bus identifier and a device identifier, but are not limited thereto. Background Art
[0004] The PCIe specification defines the operation of devices connected by PCIe-compliant connections. In the present disclosure, the term "PCIe specification" may refer to any revision and / or version of the PCI Express base specification published by the Peripheral Component Interconnect Special Interest Group (PCI-SIG). As a non-limiting example, the term PCIe specification may refer to "PCI Express Base Specification Revision 6.0, Version 1.0" released on January 11, 2022, but is not limited to this. In the present disclosure, the term "PCIe-compliant" with respect to ports, connections, and / or devices may refer to ports, connections, and / or devices that are capable of communicating in accordance with the PCIe specification, respectively, but is not limited to this.
[0005] The PCIe specification defines a bus:device.function number format for identifying ports and devices. According to the PCIe specification, data may be exchanged based on the bus number (ie, the bus portion of the bus:device.function number). BRIEF DESCRIPTION OF THE DRAWINGS
[0006] While the present disclosure concludes with claims that particularly point out and distinctly claim specific examples, the various features and advantages of examples within the scope of the present disclosure may be more readily ascertained from the following description when read in conjunction with the accompanying drawings, in which:
[0007] Figure 1 is a functional block diagram illustrating a device according to one or more examples.
[0008] Figure 2 is a functional block diagram illustrating a system according to one or more examples.
[0009] Figure 3is a functional block diagram illustrating a system according to one or more examples.
[0010] Figure 4 is a functional block diagram illustrating a system according to one or more examples.
[0011] Figure 5 is a functional block diagram illustrating a device according to one or more examples.
[0012] Figure 6 is a functional block diagram illustrating a system according to one or more examples.
[0013] Figure 7 is a flowchart of a method according to one or more examples.
[0014] Figure 8 is a flowchart of a method according to one or more examples.
[0015] Fig. 9 Block diagrams are shown of devices that may be used to implement various functions, operations, acts, processes, or methods according to one or more examples. DETAILED DESCRIPTION
[0016] In the following detailed description, reference is made to the accompanying drawings which form a part of the present disclosure, and in the accompanying drawings are shown by way of example specific examples in which the present disclosure may be practiced. These examples are described in sufficient detail to enable one of ordinary skill in the art to practice the present disclosure. However, other examples may be utilized, and changes in structure, material, and process may be made without departing from the scope of the present disclosure.
[0017] The illustrations presented herein are not intended to be actual views of any particular method, system, device, or structure, but are merely idealized representations used to describe examples of the present disclosure. The drawings presented herein are not necessarily drawn to scale. For the convenience of the reader, similar structures or components in the various drawings may retain the same or similar numbering; however, the similarity of numbering does not mean that the structures or components must be identical in size, composition, configuration, or any other attribute.
[0018] The following description may include examples to help enable a person of ordinary skill in the art to practice the examples disclosed in the present invention. The use of the terms "exemplary", "by way of example" and "for example" means that the relevant description is illustrative, and although the scope of the present disclosure is intended to cover examples and legal equivalents, the use of such terms is not intended to limit the scope of the examples of the present disclosure to the specified components, steps, features or functions, etc.
[0019] It should be readily understood that the components of the examples as generally described herein and illustrated in the accompanying drawings may be arranged and designed in a variety of different configurations. Therefore, the following description of various examples is not intended to limit the scope of the present disclosure, but is merely representative of various examples. Although various aspects of the examples may be presented in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
[0020] In addition, the specific embodiments shown and described are examples only and should not be understood as the only way to implement the present disclosure, unless otherwise specified herein. Components, circuits, and functions can be shown in block diagram form so as not to obscure the present disclosure with unnecessary details. On the contrary, the specific embodiments shown and described are examples only and should not be understood as the only way to implement the present disclosure, unless otherwise specified herein. In addition, the partitioning of logic between the block definitions and the individual blocks is an example of a specific embodiment. It will be apparent to those of ordinary skill in the art that the present disclosure can be practiced through many other partitioning solutions. In most cases, details about timing considerations, etc. have been omitted, where such details are not required to obtain a complete understanding of the present disclosure and are within the capabilities of those of ordinary skill in the relevant art.
[0021] Those of ordinary skill in the art will appreciate that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, and symbols that may be referenced throughout this specification may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, light fields or particles, or any combination thereof. For clarity of presentation and description, some of the accompanying drawings may show signals as single signals. Those of ordinary skill in the art will appreciate that a signal may represent a signal bus, where the bus may have a variety of bit widths, and that the present disclosure may be implemented on any number of data signals, including a single data signal. Those of ordinary skill in the art will appreciate that the present disclosure encompasses the transmission of quantum information and qubits used to represent quantum information.
[0022] The various illustrative logic blocks, modules, and circuits described in conjunction with the examples disclosed herein may be implemented or executed with a general purpose processor, a special purpose processor, a digital signal processor (DSP), an integrated circuit (IC), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic components, discrete hardware components, or any combination thereof, designed to perform the functions described herein. A general purpose processor (which may also be referred to herein as a "host processor" or simply "host") may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. A general purpose computer including a processor is considered a special purpose computer when the general purpose computer executes computing instructions (e.g., software code, but not limited thereto) associated with the examples disclosed herein.
[0023] Examples can be described according to processes depicted as flow charts, flow diagrams, structure diagrams, or block diagrams. Although flow charts can describe operable actions as continuous processes, many of these actions can be performed in another sequence, in parallel, or substantially simultaneously. In addition, the order of actions can be rearranged. A process can correspond to a method, thread, function, procedure, subroutine, or subprogram, but is not limited thereto. In addition, the methods disclosed herein can be implemented by hardware, software, or both. If implemented in software, these functions can be stored or transmitted to a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, which include any media that is conducive to transferring a computer program from one location to another.
[0024] In this description, the terms "connected" and "communicatively connected," and their derivatives, may be used to indicate that two elements are able to communicate with each other. When an element is described as being "connected" or "communicatively connected" to or with another element, the elements may communicate directly, such as, but not limited to, via a PCIe-compliant cable, or there may be one or more intervening elements, such as switches. In contrast, when an element is described as being "directly connected" to or with another element, there are no intervening elements, except for the cable. It should be understood that when an element is referred to as being "connected" to a first element and a second element, the element is connected to the first element and the element is connected to the second element.
[0025] The PCIe specification defines a bus:device.function number format for identifying ports and devices (e.g., hosts, endpoints, but not limited to). The bus:device.function number format includes fields for bus number, device number, and function number. According to the PCIe specification, each endpoint is assigned a unique bus number in the bus:device.function number format. According to the PCIe specification, data is exchanged between the host and the endpoint based on the bus number.
[0026] As a non-limiting example, a host may be assigned Bus:Device.Function Number 2:0.0 (i.e., Bus Number "2", Device Number "0", and Function Number "0"), an upstream port of a switch connected to the host may be assigned Bus:Device.Function Number 3:0.0, a first downstream port of the switch may be assigned Bus:Device.Function Number 4:0.0, a second downstream port of the switch may be assigned Bus:Device.Function Number 4:1.0, and a thirty-second downstream port of the switch may be assigned Bus:Device.Function Number 4:31.0. A first endpoint directly connected to the first downstream port may be assigned Bus:Device.Function Number 5:0.0, a second endpoint directly connected to the second downstream port may be assigned Bus:Device.Function Number 6:0.0, and a thirty-second endpoint directly connected to the thirty-second downstream port may be assigned Bus:Device.Function Number 36:0.0. For a given downstream port, the bus number assigned to the bus directly downstream of the downstream port is referred to as a "secondary bus number", and the highest bus number assigned downstream of the downstream port is referred to as a "slave bus number".
[0027] PCIe is a point-to-point bus (except for PCIe switches ("switches"), which can be considered a multi-drop bus), so each downstream port is connected to exactly one upstream port of another device, so each endpoint is assigned a unique bus number. The PCIe Alternate Routing ID (ARI) utilizes this unique bus number to reassign bits of the device number to describe the additional functionality of the endpoint.
[0028] The switch can exchange data between the host and the endpoints based on the bus number ("2") of the host and the corresponding bus numbers of the endpoints (i.e., the bus number ("5") of the first endpoint, the bus number ("6") of the second endpoint, and the bus number ("36") of the thirty-second endpoint) according to the PCIe specification. As described above, the switch operates as a multi-drop bus, where the upstream port is connected to bus N, bus N+1 is a virtual bus between the upstream port and all downstream ports of the switch, and bus N+2 is a bus under downstream port 0 of the switch. All downstream ports of the switch connected to bus N+1 are assigned device numbers (e.g., 0:M-1).
[0029] The Bus:Device.Function number format of the PCIe specification includes 8 bits for the bus number (8-bit field), 5 bits for the device number (5-bit field), and 3 bits for the function number (3-bit field). Therefore, according to the PCIe specification, there are a total of 255 bus numbers available for assignment to devices. Some of these bus numbers may be reserved for use with upstream ports, root complexes, and / or internal switch ports.
[0030] It is worth noting that even though different buses may connect corresponding endpoints with corresponding downstream ports, the bus number is not incremented for each point-to-point (PTP) connection.
[0031] One or more examples generally involve assigning unique combinations of bus numbers and device numbers to ports of a switch and endpoints connected thereto (ie, utilizing a bus:device.function number format), and exchanging data according to such unique combinations of bus numbers and device numbers.
[0032] As a non-limiting example, the host is assigned bus: device. function number 2: 0.0, the upstream port of the switch connected to the host is assigned bus: device. function number 3: 0.0, the first downstream port of the switch is assigned bus: device. function number 4: 0.0, the second downstream port of the switch is assigned bus: device. function number 4: 1.0, and the thirty-second downstream port of the switch is assigned bus: device. function number 4: 31.0. The first downstream port to the thirty-second downstream port of the switch are assigned the same bus number (here "4") and different device numbers (here "0" to "31").
[0033] The next (in sequence) bus number (here "5") is associated with the endpoints directly connected to the downstream ports assigned bus:device.function numbers 4:0.0 to 4:31.0. The first endpoint directly connected to the first downstream port assigned bus:device.function number 4:0.0 is assigned bus:device.function number 5:0.0. The second endpoint directly connected to the second downstream port assigned bus:device.function number 4:1.0 is assigned bus:device.function number 5:1.0. The thirty-second endpoint directly connected to the thirty-second downstream port assigned bus:device.function number 4:31.0 is assigned bus:device.function number 5:31.0. Therefore, the first to thirty-second endpoints are assigned the same bus number (here "5") and different device numbers (here "0" to "31").
[0034] As described above, the device number field of the bus:device function number is 5 bits and can therefore represent 32 numbers, namely 0 to 31. In the case where more than 32 downstream ports are provided, the next (in order) bus number (here "6") is associated with another set of downstream ports of the switch (up to 32 additional downstream ports). In the case where the thirty-third downstream port of the switch is provided, the thirty-third downstream port is assigned bus:device.function number 6:0.0. The thirty-fourth downstream port of the switch is assigned bus:device.function number 6:1.0. The thirty-third downstream port and the thirty-fourth downstream port of the switch are assigned the same bus number (here "6") and different device numbers (here "0" and "1").
[0035] The next (in sequence) bus number (here "7") is associated with the endpoint directly connected to the downstream port assigned bus:device.function number 6:0.0 to 6:1.0. The thirty-third endpoint directly connected to the thirty-third downstream port assigned bus:device.function number 6:0.0 is assigned bus:device.function number 7:0.0. The thirty-fourth endpoint directly connected to the thirty-fourth downstream port assigned bus:device.function number 6:1.0 is assigned bus:device.function number 7:1.0. Therefore, the thirty-third endpoint and the thirty-fourth endpoint are assigned the same bus number (here "7") and different device numbers (here "0" to "31").
[0036] In one or more examples, all downstream ports of the switch are assigned a unique combination of a bus number and a device number. All endpoints directly connected to the downstream ports of the switch are assigned a unique combination of a bus number and a device number. Some or all of the downstream ports are assigned the same bus number, and some or all of the endpoints are assigned the same bus number. The bus number assigned to the downstream port is different from the bus number assigned to the endpoint.
[0037] In one or more examples, data may be exchanged between the host and various endpoints based at least in part on one or more of the following: the host's bus number and device number (2: 0.x), corresponding unique combinations of the endpoints' bus numbers and device numbers (e.g., the bus number and device number of the first endpoint (5: 0.x) to the bus number and device number of the thirty-second endpoint (5: 31.x)), the unique combination of the bus number and device number of the thirty-third endpoint (7: 0.x), and the unique combination of the bus number and device number of the thirty-fourth endpoint (7: 1.x).
[0038] Exchanging data based on a unique combination of bus number and device number may allow for 32 times the number of available bus numbers that can be represented by an 8-bit bus number field. Thus, exchanging based on bus number and device number may allow 32 times the number of addresses to be used for exchanging, which may allow the disclosed switch to provide support for larger switching networks, and thus fewer switches may provide support for relatively larger networks.
[0039] Figure 1 1 is a functional block diagram illustrating a device 100 capable of exchanging data between a host and an endpoint according to a unique combination of a bus number and a device number according to one or more examples. In one or more examples, the device 100 may be, or may include, a PCIe-compliant switch capable of providing support for communications according to the PCIe specification.
[0040] Device 100 may include an upstream port 102 for communicating with a host ( Figure 1 Device 100 may include a downstream port 104 for communicating with an endpoint ( Figure 1 The device 100 may include a switching logic component 106. The switching logic component 106 may store a bus identifier 108 and a device identifier 110 associated with the endpoint. In one or more examples, the switching logic component 106 may also store the bus identifier and the device identifier of the device 100. The switching logic component 106 exchanges data (and more generally, exchanges data between the host ( Figure 1 not depicted) and endpoints ( Figure 1 data are exchanged between the two devices (not depicted).
[0041] The upstream port 102 and the downstream port 104 may be ports for respective PCIe-compliant communication connections. The upstream port 102 and the downstream port 104 may be PCIe-compliant. The upstream port 102 and the downstream port 104 may have the same physical configuration. The notations "upstream" and "downstream" may be used to refer to respective uses of the upstream port 102 and the downstream port 104 in a network including the device 100. As a non-limiting example, the upstream port 102 may be connected to a host via a PCIe-compliant communication connection, and the downstream port 104 may be connected to an endpoint via a PCIe-compliant communication connection.
[0042] Switch logic 106 may be, or may include, any suitable combination of logic circuitry to perform the operations described herein for switch logic 106. As non-limiting examples, switch logic 106 may be an integrated circuit (IC) or a hardware processor that executes machine executable code.
[0043] The bus identifier 108 may be, or may include, any suitable identifier for a bus. In one or more examples, the bus identifier 108 may be a number. In one or more examples, the bus identifier 108 may be a bus number according to the bus: device function number format discussed above. In one or more examples, the bus identifier 108 may be stored in a secondary bus number field or a slave bus number field of a configuration space (as used herein, the term "space" refers to a set of memory addresses, and therefore refers to an addressable location in one or more memories) of the switch logic component 106.
[0044] The bus identifier 108 may be represented by 8 bits of a secondary bus number field or a slave bus number field. The "secondary bus number" is the bus number of the bus immediately downstream of the downstream port 104. The "slave bus number" is the highest bus number of all buses reachable via the downstream port 104. The corresponding bus identifiers of the buses reachable via the downstream port 104 are within the range of secondary bus number:slave bus number.
[0045] The device identifier 110 may be, or may include, any suitable identifier for a device. In one or more examples, the device identifier 110 may be a number of the device. In one or more examples, the device identifier 110 may be a device number according to the bus: device function number format discussed above. The device identifier 110 may be stored in a secondary device number field or a slave device number field of a configuration space. In one or more examples, the configuration space storing the (secondary or slave) device identifier 110 is a custom configuration space (e.g., a vendor-specific configuration space, but not limited thereto).
[0046] The device identifier 110 may be represented by five bits of a secondary device number field or a slave device number field. The "secondary device number" is the device number of the device immediately downstream of the port 104. The "slave device number" is the highest device number of the endpoints connected through the downstream port 104. The corresponding device number of the device connected to the downstream port 104 in the format of bus: device. function number is within the range of secondary device number: slave device number.
[0047] Data 120 may be data exchanged by switch logic 106 via upstream port 102 and downstream port 104. In one or more examples, data 120 may be PCIe compliant, in other words, data 120 may be formatted according to a PCIe compliant format.
[0048] Figure 2 2 is a functional block diagram illustrating a system 200 according to one or more examples. The system 200 includes a switch 232, which may be a switch capable of exchanging data between a host and an endpoint based at least in part on a unique combination of a bus number and a device number. Figure 1 An example of a device 100 is shown. Figure 2 The illustration and description of provide non-limiting examples of the intended operation of switch 232 in switching data 220. In particular, Figure 2 The illustration and description of provide an example of exchanging data 220 between a host 212 and an endpoint 214 via an upstream port 202 and a downstream port 204 according to a bus identifier 208 and a device identifier 210 assigned to the endpoint 214.
[0049] In this disclosure, Figures 1 to 6 The components can be used with Figures 1 to 6 Thus, a reference numeral assigned the same last two digits as a corresponding reference numeral in another figure may indicate that the elements referenced by the corresponding reference numeral are substantially the same, unless explicitly described to the contrary. As a non-limiting example, Figure 2 The upstream port 202 can be connected with Figure 1 The upstream ports 102 are the same or substantially similar.
[0050] Except Figure 1 In addition to elements that are identical or substantially similar to elements of device 100, system 200 also includes a host 212 (which is communicatively connected to the upstream port 202 via a PCIe-compliant connection 216) and an endpoint 214 (which is communicatively connected to the downstream port 204 of the switch 232 via a PCIe-compliant connection 218).
[0051] The host 212 can be, or can include, a general purpose computer including a processor. In one or more examples, the host 212 can be separate from the switch 232 or can be part of the switch. As non-limiting examples, the host 212 can be a virtual root complex / host (vRC) inside the switch 232, or a sideband manager such as a baseboard management controller (BMC) that is separate from the switch 232. The host 212 can communicate with other nodes 214 through the switch 232. The host 212 can include a PCIe compliant port ( Figure 2 not shown).
[0052] Endpoint 214 may be, or may include, a device such as, but not limited to, a graphics processing unit (GPU) or a memory (eg, non-volatile memory express (NVMe), for example).
[0053] Data 220 may include a destination bus address 222 and a destination device address 224. Host 212 may include destination bus address 222 and destination device address 224 in data 220. Destination bus address 222 and destination device address 224 may be represented in the bus:device format discussed above.
[0054] Switch logic 206 may provide data via upstream port 202 and downstream port 204 responsive, at least in part, to a destination bus address 222 and a destination device address 224 of data 220 that matches bus identifier 208 and destination identifier 210 of endpoint 214 .
[0055] In one or more examples, the switching logic component 206 may include a switching table ( Figure 2 The switching table 206 associates a destination bus address 222 and a destination device address 224 with the downstream port 204 to which the endpoint 214 is connected. The switching logic component 206 exchanges the data 220 via the upstream port 202 and the downstream port 204 based at least in part on a relationship determined between the destination bus address 222 of the data 220 and a bus identifier 208 assigned to the endpoint 214 (the bus identifier 208 can be associated with the downstream port 204 via the switching table) and a relationship determined between the destination device address 224 of the data 220 and a device identifier 210 assigned to the endpoint 214 (the device identifier 210 can be associated with the downstream port 204 via the switching table).
[0056] In one or more examples, such a switching table may include a range of numbers in a bus: device. function format that may be switched via downstream port 204 ( Figure 2Only a single endpoint connection to the downstream port 204 is depicted, the endpoint 214 (but it is exemplary) and multiple endpoints may be connected to the downstream port 204 without exceeding the scope of the present disclosure). In the case where a single endpoint is connected to the downstream port 204, a range of bus:device.function numbers may be stored as bus identifier 208:device identifier 210 and associated with the downstream port 204. Since the destination bus address 222 and the destination device address 224 received with the data 220 fall within the range, the switching logic component 206 switches the data 220 via the downstream port 204. The switching logic component 206 provides the data 220 via the downstream port 204 using both the bus identifier 208 and the destination identifier 210 included in the switching table, and thus switches the data 220 to the endpoint 214.
[0057] Figure 3 3 is a functional block diagram illustrating a system 300 according to one or more examples. The system 300 includes a switch 332, which may be Figure 1 An example of a device 100. The switch 332 may be capable of switching according to a bus number and a device number, as discussed herein. Figure 3 The and related descriptions provide an example of switching data 320 from a downstream port 304 to an upstream port 302 according to a bus identifier 308 and a device identifier 310 stored by a switching logic component 306 of a switch 332 when the destination identifier 308 and the device identifier 310 do not fall within the bus:device range associated with any downstream port of the switch 332. In such a case, the switching logic component 306 routes the data 320 upstream to a host 312.
[0058] Data 320 may include a source bus address 326 and a source device address 328. In one or more examples, endpoint 314 or switch logic 306 may include source bus address 326 and source device address 328 in data 320. Source bus address 326 may match bus identifier 308 stored for endpoint 314, and source device address 328 may match device identifier 310 stored for endpoint 314. Data 320 may also include a destination bus address and a destination device address ( Figure 3 In one or more examples, endpoint 314 or switch logic component 306 can include a destination bus address and a destination device address in data 320.
[0059] The destination bus address and the destination device address may indicate that the data 320 is to be provided to the host 312. The switch logic 306 may switch the data 320 according to the destination bus address and / or the destination device address. When the switch logic 306 switches the data 320 according to the destination bus address and the destination device address associated with an upstream device (such as, but not limited to, a host), the switch logic 306 may utilize a negative routing technique. In the negative routing technique, the switch logic 306 first identifies that the destination bus address and the destination device address do not fall within any range of bus:device.function numbers associated with the downstream port. Upon identifying that the destination bus address and the destination device address do not fall within any range of bus:device.function numbers associated with the downstream port, the switch logic automatically routes the data upstream (via the upstream port 302) to the host 312.
[0060] Switch 332 provides data 320 including source bus address 326 and source device address 328. When host 312 sends data to endpoint 314 (e.g., as described in relation to Figure 2 As described above), the provided source bus address 326 and the provided source device address may be used.
[0061] Figure 4 4 is a functional block diagram illustrating a system 400 according to one or more examples. The system 400 includes a switch 432, which may be Figure 1 An example of the device 100. The switch 432 may be capable of switching according to the bus number and the device number. Figure 4 The illustration and description of FIG. 4 provide examples of the intended operation of switch 432 in switching data 420. In particular, Figure 4 The illustration and description of provide an example of exchanging data 420 via the upstream port 302, the downstream port 404a, the downstream port 404b, and the downstream port 404c according to the bus identifier 408 and the device identifier 410.
[0062] The switch 432 includes three downstream ports 404: downstream port 404a, downstream port 404b, and downstream port 404c. Downstream ports 404a, downstream ports 404b, and downstream ports 404c may be collectively referred to as "downstream ports 404". Downstream port 404a may be connected to endpoint 414a via a PCI-compliant connection 418a. Downstream port 404b may be connected to endpoint 414b via a PCI-compliant connection 418b. Downstream port 404c may be connected to endpoint 414c via a PCI-compliant connection 418c. Endpoint 414a, endpoint 414b, and endpoint 414c may be collectively referred to as "endpoint 414". Figure 4, for purposes of illustration, three downstream ports 404 and three endpoints 414 are shown. Switch 432 (as well as other switches and devices described herein) may be connected to any number of endpoints via any number of corresponding downstream ports.
[0063] The bus identifier 408 may include a bus identifier (e.g., a bus number, but not limited thereto), and the device identifier 410 may include a device identifier (e.g., a device number, but not limited thereto) assigned to the corresponding endpoint 414. In other words, the switching logic component 406 may store a bus identifier and a device identifier for a corresponding endpoint in the endpoints 414. The switching logic component 406 may store a unique combination of the bus identifier and the device identifier for a corresponding endpoint in the endpoints 414. Among the unique combinations of the bus identifier and the device identifier, the switching logic component 406 may store the same bus identifier for two or more endpoints 414. The switching logic component 406 may exchange data 420 between the host 412 and the endpoint 414 according to the corresponding unique combination of the bus identifier and the device identifier of the endpoint 414.
[0064] As a non-limiting example, endpoint 414a may be assigned bus:device.function number 5:0.0, endpoint 414b may be assigned bus:device.function number 5:1.0, and endpoint 414c may be assigned bus:device.function number 5:2.0. Switch 432 may exchange data between host 412 and endpoint 414 based on the bus number and device number of the host and the corresponding bus number and device number of endpoint 414 (e.g., bus number and device number (5:0.x) of endpoint 414a, bus number and device number (5:1.x) of endpoint 414b, and bus number and device number (5:2.x) of endpoint 414c). Switch 432 may exchange data between host 412 and endpoint 414 based on the corresponding bus number and device number of endpoint 414.
[0065] The switching logic component 406 may provide a functionality indicator 430 indicating the switching functionality of one or more downstream ports 404 to the host 412. As a non-limiting example, in a configuration space of the switching logic component 406 accessible to the host 412, the switching logic component 406 may advertise the switching functionality of the switch 432 (which may be relative to the corresponding downstream port 404). The switching functionality may be, or may include, the ability of the switch 432 to switch data 420 to and from the downstream port 404 based on the bus identifier 408 and the device identifier 410. Additionally or alternatively, the switching functionality may include the ability of the switch 432 to store the bus identifier 408 and the device identifier 410 for the corresponding endpoint 414. The functionality indicator 430 may be based on a direct connection between a corresponding one of the downstream ports 404 and a corresponding one of the endpoints 414. As a non-limiting example, the switching logic component 406 may provide the functionality indicator 430 indicating the switching functionality of the downstream port 404 directly connected to the endpoint 414.
[0066] The host 412 may provide the bus identifier 408 and the device identifier 410 to the switch 432. As a non-limiting example, the host 412 may assign the bus identifier 408 and the device identifier 410 to the corresponding endpoints 414. As a non-limiting example, the host 412 may assign a first combination of the bus identifier 408 and the device identifier 410 to the endpoint 414a, the host 412 may assign a second combination of the bus identifier 408 and the device identifier 410 to the endpoint 414b, and the host 412 may assign a third combination of the bus identifier 408 and the device identifier 410 to the endpoint 414c. The host 412 may assign a unique combination of the bus identifier 408 and the device identifier 410 to the corresponding endpoints of the endpoints 414.
[0067] The host 412 may provide the bus identifier 408 and the device identifier 410 in response to receiving the functionality indicator 430 from the switch 432. As a non-limiting example, the switching logic component 406 may provide the functionality indicator 430 to the host 412. The functionality indicator 430 may include an indication of the downstream port 404 directly connected to the endpoint 414, and an indication that the switching logic component 406 is capable of switching data 420 to and from the downstream port 404 directly connected to the endpoint 414 in response to the unique combination of the bus identifier and the device identifier of the corresponding endpoint 414. In response to the functionality indicator 430, the host 412 may assign the bus identifier 408 and the device identifier 410 to the endpoint 414. The switching logic component 406 may store the bus identifier 408 and the device identifier 410. Thereafter, the switching logic component 406 may switch data between the host 412 and the endpoint 414.
[0068] Figure 5 is a functional block diagram illustrating a device 500 according to one or more examples. The device 500 may be Figure 1 The device 500 may be an example of a device 100 that can be switched according to a bus number and a device number. Figure 5 The illustration and description of FIG. 5 provide examples of the intended operation of device 500. In particular, Figure 5 The illustrations and descriptions in provide examples of bus numbers and device numbers associated with ports and endpoints.
[0069] Device 500 includes switching logic 506. Switching logic 506 does not include ports or endpoints. Figure 5 The illustration of ports and endpoints in the switching logic component 506 in FIG. 5 is intended to illustrate the relationship between the ports and the bus identifiers 508 and device identifiers 510 stored by the switching logic component 506 .
[0070] The switch logic 506 may store bus:device.function numbers for the ports. As a non-limiting example, the switch logic 506 may store bus:device.function number 3:0.0 for upstream port 504, bus:device.function number 4:0.0 for downstream port 502a, bus:device.function number 4:1.0 for downstream port 504b, and bus:device.function number 4:2.0 for downstream port 504c. The bus:device.function numbers may be in accordance with the PCIe specification. The bus number may be represented by 8 bits, the device number may be represented by 5 bits, and the function number may be represented by 3 bits.
[0071] Further, the switch logic component 506 may store a bus identifier 508 and a device identifier 510 for the endpoint 514. The bus identifier 508 and the device identifier 510 may be associated with the downstream port 504 to which the endpoint 514 is connected.
[0072] As a non-limiting example, the switch logic component 506 may store a bus identifier 508 of "5" and a device identifier 510 of "0" for endpoint 514a associated with downstream port 504a (because downstream port 504a is connected to endpoint 514a). Further, the switch logic component 506 may store a bus identifier 508 of "5" and a device identifier 510 of "1" for endpoint 514b associated with downstream port 504b (because downstream port 504b is connected to endpoint 514b). Additionally, the switch logic component 506 may store a bus identifier 508 of "5" and a device identifier 510 of "2" for endpoint 514c associated with downstream port 504c (because downstream port 504c is connected to endpoint 514c). The corresponding bus identifiers 508 may be stored by the switch logic component 506 in fields named "Secondary Bus Number" and / or "Slave Bus Number". The corresponding device identifier 510 may be stored in a field named "Secondary Device Number" and / or "Slave Device Number" by the switch logic component 506. The bus identifier 508 may be stored as a number representable by 8 bits, and the device identifier 510 may be stored as a number representable by 5 bits.
[0073] The bus:device.function number of endpoint 514 may be associated with bus identifier 508 and device identifier 510. As a non-limiting example, endpoint 514a may have bus:device.function number 5:0.0. Bus number "5" of endpoint 514a may be based on bus identifier 508 stored in association with downstream port 504a (because downstream port 504a is connected to endpoint 514a). Similarly, device number "0" of endpoint 514a may be based on device identifier 510 stored in association with downstream port 504a. Additionally, endpoint 514b may have bus:device.function number 5:1.0. Bus number "5" of endpoint 514b may be based on bus identifier 508 stored in association with downstream port 504b (because downstream port 504b is connected to endpoint 514b). Similarly, device number "1" of endpoint 514b may be based on device identifier 510 stored in association with downstream port 504b. Additionally, endpoint 514c may have bus:device.function number 5:2.0. Bus number "5" for endpoint 514c may be based on bus identifier 508 stored in association with downstream port 504c (because downstream port 504c is connected to endpoint 514c). Similarly, device number "2" for endpoint 514c may be based on device identifier 510 stored in association with downstream port 504c.
[0074] In some examples, switch logic 506 may store bus:device.function numbers for endpoint 514. As a non-limiting example, switch logic 506 may store bus:device.function number 5:0.0 for endpoint 514a, bus:device.function number 5:1.0 for endpoint 514b, and bus:device.function number 5:2.0 for endpoint 514c.
[0075] Figure 6 6 is a functional block diagram illustrating a system 600 according to one or more examples. The system 600 includes a switch 632, which may be Figure 1 An example of the device 100. The switch 632 may be capable of switching according to the bus number and the device number.
[0076] System 600 may include switch 632 and host 612. Switch 632 may include upstream port 602 and downstream port 604. Downstream port 604 may be directly connected to endpoint 614 via downstream PCIe compliant connection 618. Endpoint 614 is optional in system 600. The optional nature of endpoint 614 in system 600 is illustrated by endpoint 614 being shown using dashed lines. Switch 632 may include switching logic 606. Switching logic 606 may store bus identifier 608 and device identifier 610 for endpoint 614. Switching logic 606 may exchange data 620 via upstream port 602 and downstream port 604, at least in part in response to bus identifier 608 and device identifier 610 of endpoint 614. In some non-limiting examples, switching logic 606 may provide functionality indicator 630 to host 612. Host 612 may be connected to upstream port 602 of switch 632 via upstream PCIe compliant connection 616. The host 612 may assign a bus identifier 608 and a device identifier 610 to the endpoint 614 .
[0077] Figure 7 700 according to one or more examples. In some examples, at least a portion of the method 700 may be performed by a device or system such as Figure 1 Equipment 100, Figure 2 Switch 232, Figure 3 Switch 332, Figure 4 Switch 432, Figure 5 Equipment 500, Figure 6 Although shown as discrete blocks, various blocks may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the desired implementation.
[0078] In operation 702, a bus identifier and a device identifier may be stored for an endpoint that is directly connected to a downstream port of a switch via a PCIe compliant connection. As a non-limiting example, Figure 1 The bus identifier 108 and Figure 1 The device identifier 110 may be stored in Figure 1 At the switching logic component 106.
[0079] In operation 704, data is exchanged via the upstream port and the downstream port at least in part in response to the bus identifier and the device identifier of the endpoint. As a non-limiting example, Figure 1 The data 120 may be at least partially responsive to an endpoint (e.g., Figure 2 The endpoint 214 of, but not limited to, the bus identifier 108 and the device identifier 110, via Figure 1 The upstream port 102 and Figure 1 More generally, data may be switched from a host to an endpoint, or vice versa, via a switch that includes an upstream port, a downstream port, and a switching logic component that utilizes a bus identifier and a device identifier.
[0080] Figure 8 800 according to one or more examples. In some examples, at least a portion of the method 800 may be performed by a device or system such as Figure 1 Equipment 100, Figure 2 Switch 232, Figure 3 Switch 332, Figure 4 Switch 432, Figure 5 Equipment 500, Figure 6 Although shown as discrete blocks, various blocks may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the desired implementation.
[0081] In operation 802, a functionality indicator indicating switching functionality of a downstream port may be provided to a host connected to an upstream port of a switch via a PCIe compliant connection. As a non-limiting example, a functionality indicator may be provided via Figure 6 The PCIe 616 connection connects to Figure 6 Switch 632 Figure 6 The upstream port is 602 Figure 6 The host 612 may provide Figure 6 The functional indicator 630 may indicate Figure 6The functionality indicator may indicate the switching functionality of the downstream port 604 of the switch. In particular, the functionality indicator may indicate that the downstream port 604 is switchable at least in part in response to the bus identifier and device identifier of the endpoint. It is not required that all downstream ports of the switch are switchable at least in part in response to the bus identifier and device identifier of the endpoint.
[0082] In operation 804, a bus identifier and a device identifier are received from a host connected to an upstream port via an upstream PCIe-compliant connection. As a non-limiting example, Figure 6 The bus identifier 608 and Figure 6 The device identifier 610 may be received at the switch 632 from a host 612, which may be connected to the upstream port 602 via a PCIe compliant connection 616, Figure 6 The bus identifier 608 and Figure 6 The device identifier 610 may be assigned by the host 612 Figure 6 The corresponding downstream port 604.
[0083] Operation 806 may be performed with Figure 7 Operation 808 may be the same as or substantially similar to operation 702. Figure 7 The operation 704 is the same or substantially similar to that of FIG.
[0084] In operation 810, the data may be provided from the upstream port to the downstream port at least in part in response to a destination bus address of the data matching the bus identifier of the endpoint and at least in part in response to a destination device address of the data matching the device identifier of the endpoint. As a non-limiting example, Figure 2 The data 220 may be at least partially responsive to the data 220 and Figure 2 Endpoint 214 Figure 2 The bus identifier 208 matches the Figure 2 The destination bus address 222 and at least in part in response to the data 220 and the endpoint 214 Figure 2 The device identifier 210 matches Figure 2 The destination device address is 224, and from Figure 2 The upstream port 202 provides access to Figure 2 The downstream port 204 of the operation 810 may be a subset of the operation 808. As a non-limiting example, the operation 810 may be an example of some of the operations involved in the switching of the operation 808. As a non-limiting example, the operation 810 may be an example of switching data from an upstream port to a downstream port. More generally, data may be switched from a host to an endpoint, or vice versa, via a switch including an upstream port, a downstream port, and a switching logic component using a bus identifier and a device identifier.
[0085] At operation 812, data may be provided from the downstream port to the upstream port. The data may include a source bus address that may be matched to the bus identifier of the endpoint, and a source device address that may be matched to the device identifier of the endpoint. As a non-limiting example, Figure 3 The data of 320 can be obtained from Figure 3 The downstream port 304 provides access to Figure 3 The data 320 may include the upstream port 302. Figure 3 The bus identifier 308 matches the Figure 3 The source bus address is 326, and can be Figure 3 Endpoint 314 Figure 3 The device identifier 310 matches Figure 3 The source device address 328 of operation 812 may be a subset of operation 808. As a non-limiting example, operation 812 may be an example of some of the operations involved in the switching of operation 808. As a non-limiting example, operation 812 may be an example of switching data from a downstream port to an upstream port.
[0086] Without departing from the scope of the present disclosure, modifications, additions, or omissions may be made to method 700 and / or method 800. For example, the operations of method 700 and / or method 800 may be implemented in a different order. In addition, the operations and actions outlined are provided only as examples, and some of these operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without departing from the essence of the disclosed examples.
[0087] Fig. 9900 is a block diagram of a device 900 that, in one or more examples, can be used to implement various functions, operations, actions, processes, or methods disclosed herein. The device 900 includes one or more processors 902 (sometimes referred to herein as "processors 902") operably coupled to one or more devices such as data storage devices (sometimes referred to herein as "storage devices 904"), but is not limited to such. The storage devices 904 include machine executable code 906 stored thereon (e.g., stored on a computer readable memory, but is not limited to such), and the processor 902 includes a logic circuit system 908. The machine executable code 906 includes information describing functional elements that can be implemented by the logic circuit system 908 (e.g., executed by the logic circuit system). The logic circuit system 908 implements (e.g., executes) the functional elements described by the machine executable code 906. When the functional elements described by the machine executable code 906 are executed, the device 900 should be regarded as dedicated hardware that can perform the functional elements disclosed herein. In one or more examples, processor 902 may execute the functional elements described by machine executable code 906 sequentially, concurrently (eg, on one or more different hardware platforms), or in one or more parallel process flows.
[0088] When implemented by the logic circuitry 908 of the processor 902, the machine executable code 906 may adapt the processor 902 to perform the operations of the examples disclosed herein. For example, the machine executable code 906 may adapt the processor 902 to perform Figure 7 Method 700 or Figure 8 As another example, the machine executable code 906 may cause the processor 902 to perform at least a portion or all of the method 800. Figure 1 Equipment 100, Figure 1 The switching logic component 106, Figure 2 The switching logic component 206, Figure 2 Host 212, Figure 2 Switch 232, Figure 3 The switching logic component 306, Figure 3 Host 312, Figure 3 Switch 332, Figure 4 The switching logic component 406, Figure 4 Host 412, Figure 4 Switch 432, Figure 5 Equipment 500, Figure 5 The switching logic component 506, Figure 6 The switching logic component 606, Figure 6 Host 612 and / or Figure 6 At least a portion or all of the operations discussed with switch 632.
[0089] Processor 902 may include a general-purpose processor, a special-purpose processor, a central processing unit (CPU), a microcontroller, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic component, a discrete hardware component, other programmable devices, or any combination thereof designed to perform the functions disclosed herein. When a general-purpose computer including a processor executes computing instructions (e.g., software code, but not limited to this) related to the example, the general-purpose computer is considered to be a special-purpose computer. It should be noted that a general-purpose processor (also referred to as a host processor or simply a host in this article) can be a microprocessor, but in an alternative, processor 902 may include any conventional processor, controller, microcontroller or state machine. Processor 902 may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.
[0090] In one or more examples, the storage device 904 includes a volatile data storage device (e.g., a random access memory (RAM), but not limited thereto), a non-volatile data storage device (e.g., a flash memory, a hard disk drive, a solid-state drive, an erasable programmable read-only memory (EPROM), but not limited thereto). In one or more examples, the processor 902 and the storage device 904 may be implemented as a single device (e.g., a semiconductor device product, a system on a chip (SOC), but not limited thereto). In one or more examples, the processor 902 and the storage device 904 may be implemented as separate devices.
[0091] In one or more examples, machine executable code 906 may include computer readable instructions (e.g., software code, firmware code, but not limited thereto). By way of non-limiting example, the computer readable instructions may be stored by storage device 904, directly accessed by processor 902, and executed by processor 902 using at least logic circuitry 908. Also by way of non-limiting example, the computer readable instructions may be stored on storage device 904, sent to a memory device (not shown) for execution, and executed by processor 902 using at least logic circuitry 908. Thus, in one or more examples, logic circuitry 908 includes logic circuitry that may be configured in an electrically manner.
[0092] In one or more examples, machine executable code 906 may describe hardware (e.g., circuitry, but not limited to) to be implemented in logic circuitry 908 to perform a functional element. The hardware may be described at any of a variety of abstraction levels from low-level transistor layout to a high-level description language. At a high level of abstraction, a hardware description language (HDL) may be used, such as, but not limited to, an Institute of Electrical and Electronics Engineers (IEEE) standard hardware description language (HDL). As a non-limiting example, Verilog TM 、SystemVerilog TM or Very Large Scale Integration (VLSI) Hardware Description Language (VHDL TM ).
[0093] The HDL description may be converted into a description at any of a variety of other abstraction levels as desired. As a non-limiting example, the high-level description may be converted into a logic-level description such as a register transfer language (RTL), a gate-level (GL) description, a layout-level description, or a mask-level description. As a non-limiting example, micro-operations to be performed by hardware logic circuits (e.g., gates, flip-flops, registers, but not limited thereto) of the logic circuit system 908 may be described in RTL and then converted into a GL description by a synthesis tool, and the GL description may be converted into a layout-level description by a placement and routing tool, which corresponds to the physical layout of an integrated circuit, a discrete gate or transistor logic component, a discrete hardware component, or a combination thereof of a programmable logic device. Therefore, in one or more examples, the machine executable code 906 may include HDL, RTL, GL description, mask-level description, other hardware descriptions, or any combination thereof.
[0094] In examples where machine executable code 906 includes a hardware description (at any level of abstraction), a system (not shown, but including storage 904) may implement the hardware description described by machine executable code 906. By way of non-limiting example, processor 902 may include a programmable logic device (e.g., an FPGA or PLC, but not limited thereto), and logic circuitry 908 may be electronically controlled to implement circuitry corresponding to the hardware description into logic circuitry 908. Also by way of non-limiting example, logic circuitry 908 may include hard-wired logic manufactured by a manufacturing system (not shown, but including storage 904) according to the hardware description of machine executable code 906.
[0095] Whether the machine executable code 906 includes computer readable instructions or a hardware description, the logic circuit system 908 performs the functional elements described by the machine executable code 906 when implementing the functional elements of the machine executable code 906. It should be noted that although the hardware description may not directly describe the functional elements, the hardware description indirectly describes the functional elements that the hardware elements described by the hardware description are capable of performing.
[0096] As used herein, the term "substantially" in reference to a given parameter, property, or condition means and includes to the extent that one skilled in the art would understand that the given parameter, property, or condition is satisfied with minor variations (such as, within acceptable manufacturing tolerances). For example, a substantially satisfied parameter may be at least about 90% satisfied, at least about 95% satisfied, or even at least about 99% satisfied.
[0097] As used in this disclosure, the term "module" or "component" may refer to a specific hardware implementation that can perform the actions of a module or component or software object or software routine that can be stored on or executed by general hardware of a computing system (e.g., a computer-readable medium, a processing device, but not limited thereto). In one or more examples, the different components, modules, engines, and services described in this disclosure may be implemented as objects or processes executed on a computing system (e.g., as separate threads, but not limited thereto). Although some of the systems and methods described in this disclosure are generally described as being implemented in software (stored on or executed by general hardware), specific hardware implementations or combinations of software and specific hardware implementations are also possible and contemplated.
[0098] As used in this disclosure, the term "combination" referring to a plurality of elements may include any combination of all elements or various subcombinations of certain elements. For example, the phrase "A, B, C, D, or a combination thereof" may refer to any one of A, B, C, or D; a combination of each of A, B, C, and D; and any subcombination of A, B, C, or D, such as A, B, and C; A, B, and D; A, C, and D; B, C, and D; A and B; A and C; A and D; B and C; B and D; or C and D.
[0099] The terms used in this disclosure, especially in the appended claims (e.g., the bodies of the appended claims), are generally intended to be "open" terms (e.g., the term "comprising" should be interpreted as "including but not limited to," the term "having" should be interpreted as "having at least," the term "including" should be interpreted as "including but not limited to," but not limited to). As used herein, "each" means "some or all." As used herein, "each" means "all."
[0100] Additionally, if a specific number of introduced claim recitations is intended, such intent will be expressly recited in the claim, and in the absence of such recitation, no such intent is present. For example, as an aid to understanding, the following appended claims may contain the use of the introductory phrases "at least one" and "one or more" to introduce claim recitations. However, the use of such phrases should not be construed to imply that a claim recitation introduced by the indefinite article "a" or "an" will limit any particular claim containing such introduced claim recitation to an example containing only one such recitation, even when the same claim includes the introductory phrases "one or more" or "at least one" and an indefinite article, such as "a" or "an" (e.g., "a" or "an" means "at least one" or "one or more"); the same is true when a definite article is used to introduce a claim recitation.
[0101] In addition, even if a specific number of an introduced claim recitation is explicitly recited, one skilled in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., the unmodified recitation "two recitations" means at least two recitations, or two or more recitations, in the absence of other modifying elements). In addition, in those instances where conventional phrases like "at least one of, but not limited to, A, B, and C" or "one or more of, but not limited to, A, B, and C" are used, such constructions are generally intended to include A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B, and C together, but are not limited thereto.
[0102] In addition, any separate word or phrase presenting two or more alternative terms, whether in the specification, claims or drawings, should be understood to include the possibility of one of the terms, any one of the terms, or both of the terms. For example, the phrase "A or B" should be understood to include the possibility of "A" or "B" or "A and B".
[0103] Additional non-limiting embodiments of the present disclosure may include:
[0104] Embodiment 1: A device comprising: an upstream port for making a corresponding communication connection with a host in accordance with a Peripheral Component Interconnect Express (PCIe); a downstream port for making a corresponding communication connection with an endpoint in accordance with PCIe; and a switching logic component for storing a bus identifier and a device identifier for the endpoint; and exchanging data at least partially in response to both the bus identifier and the device identifier of the endpoint.
[0105] Embodiment 2: The device of embodiment 1, wherein the exchange logic is configured to exchange data between the host and the endpoint at least in part in response to the bus identifier and the device identifier of the endpoint.
[0106] Embodiment 3: The apparatus according to embodiment 1 and embodiment 2, wherein the switching logic component is used to switch data via one or more of the upstream port and the downstream port.
[0107] Embodiment 4: The device according to embodiments 1 to 3, wherein the switching logic component is used to provide the data from the upstream port to the downstream port at least partially in response to a destination bus address of the data that matches a stored bus identifier for the endpoint, and at least partially in response to a destination device address of the data that matches a stored device identifier for the endpoint.
[0108] Embodiment 5: The device according to embodiment 1 to embodiment 4, wherein the exchanged data includes a source bus address that matches the bus identifier of the endpoint and a source device address that matches the device identifier of the endpoint.
[0109] Embodiment 6: The device according to embodiments 1 to 5, wherein the switching logic component is used to provide a functional indicator indicating the switching functionality of the downstream port of the device to the host.
[0110] Embodiment 7: The device according to embodiments 1 to 6, wherein the device includes an additional downstream port directly connected to a corresponding additional endpoint, and wherein the switching logic component is used to provide an additional functionality indicator indicating the corresponding switching functionality of the corresponding additional downstream port to the host.
[0111] Embodiment 8: The device according to embodiment 1 to embodiment 7, wherein the switching logic component is used to receive the bus identifier and the device identifier for the endpoint from the host.
[0112] Embodiment 9: The device according to Embodiment 1 to Embodiment 8, wherein the bus identifier is represented by 8 bits and the device identifier is represented by 5 bits according to the bus: device. function number format according to the PCIe specification.
[0113] Embodiment 10: The device according to embodiment 1 to embodiment 9, wherein the switching logic component is used to store the secondary bus identifier and the secondary device identifier for the endpoint.
[0114] Embodiment 11: The device according to embodiments 1 to 10, wherein the switch logic component is used to store a slave bus identifier and a slave device identifier for the endpoint.
[0115] Embodiment 12: The device according to embodiments 1 to 11, wherein the device includes an additional downstream port directly connected to a corresponding additional endpoint, and wherein the switching logic component is used to store a corresponding unique combination of a secondary bus identifier and a secondary device identifier for a corresponding endpoint in the additional endpoint.
[0116] Embodiment 13: The device of embodiments 1 to 12, wherein the device comprises an additional downstream port directly connected to a corresponding additional endpoint, and wherein the switch logic is configured to store the same secondary bus identifier for a plurality of the additional endpoints.
[0117] Embodiment 14: A system comprising: a host for assigning a bus identifier and a device identifier to an endpoint; and a switch comprising: an upstream port for connecting to the host via an upstream connection compliant with Peripheral Component Interconnect Express (PCIe); a downstream port for directly connecting to the endpoint via a downstream connection compliant with PCIe; and a switching logic component for: storing the bus identifier and the device identifier assigned by the host to the endpoint; and exchanging data between the host and the endpoint at least in part in response to both the stored bus identifier and the device identifier of the endpoint.
[0118] Embodiment 15: The system of embodiment 14, wherein the switching logic component is used to exchange data between the host and the endpoint via one or more of the upstream port and the downstream port.
[0119] Embodiment 16: A system according to Embodiment 14 and Embodiment 15, wherein the switching logic component is used to provide a functional indicator indicating the switching functionality of the downstream port of the device to the host, and wherein the host is used to assign the bus identifier and the device identifier to the endpoint at least partially in response to the functional indicator.
[0120] Embodiment 17: The system of embodiments 14 to 16, wherein the switch comprises an additional downstream port directly connected to a corresponding additional endpoint, and wherein the host is configured to assign the same secondary bus identifier to a plurality of the additional endpoints.
[0121] Embodiment 18: A system according to Embodiments 14 to 17, wherein the switch includes an additional downstream port directly connected to corresponding additional endpoints, and wherein the host is used to assign corresponding unique combinations of secondary bus identifiers and secondary device identifiers to corresponding endpoints in the additional endpoints.
[0122] Embodiment 19: The system according to Embodiments 14 to 18, comprising the endpoint.
[0123] Embodiment 20: A method comprising: storing a bus identifier and a device identifier for an endpoint directly connected to a downstream port of a switch via a corresponding Peripheral Component Interconnect Express (PCIe) compliant connection; and exchanging data at least partially in response to both the stored bus identifier and the device identifier for the endpoint.
[0124] Embodiment 21: The method according to embodiment 20, wherein the exchanging data includes exchanging data between the host and the endpoint.
[0125] Embodiment 22: The method according to Embodiment 20 and Embodiment 21, wherein the exchanging data comprises exchanging data via one or more of the upstream port and the downstream port.
[0126] Embodiment 23: The method according to embodiments 20 to 22 includes providing a functionality indicator indicating the switching functionality of the downstream port to a host connected to the upstream port of the switch through a corresponding PCIe-compliant connection.
[0127] Embodiment 24: The method according to embodiments 20 to 23 includes receiving the bus identifier and the device identifier from a host connected to the upstream port through an upstream corresponding PCIe compliant connection.
[0128] Embodiment 25: A method according to embodiments 20 to 24, the method comprising providing the data from the upstream port to the downstream port at least partially in response to a destination bus address of the data that matches a stored bus identifier for the endpoint, and at least partially in response to a destination device address of the data that matches a stored device identifier for the endpoint.
[0129] Embodiment 26: According to the method described in Embodiments 20 to 25, the method includes providing data from the downstream port to the upstream port, the data including a source bus address that matches the bus identifier of the endpoint and a source device address that matches the device identifier of the endpoint.
[0130] Although the present disclosure has been described with respect to certain illustrative examples, those of ordinary skill in the art will recognize and appreciate that the present invention is not so limited. Rather, many additions, deletions, and modifications may be made to the illustrative examples and the examples described without departing from the scope of the present invention as claimed below and its legal equivalents. In addition, features from one example may be combined with features of another example while still being included within the scope of the present invention as contemplated by the inventor.
Claims
1. A device, comprising: an upstream port, the upstream port being used to establish a corresponding communication connection with a host in accordance with Peripheral Component Interconnect Express (PCIe); A downstream port, the downstream port being used to establish a corresponding PCIe-compliant communication connection with an endpoint; and A switching logic component, the switching logic component is used to: storing a bus identifier and a device identifier for the endpoint; as well as Data is exchanged at least in part responsive to both the bus identifier and the device identifier of the endpoint.
2. The apparatus of claim 1, wherein the exchange logic is to exchange data between the host and the endpoint responsive at least in part to the bus identifier and the device identifier of the endpoint.
3. The apparatus of claim 1, wherein the switching logic is to switch data via one or more of the upstream port or the downstream port.
4. The apparatus of claim 1 , wherein the switching logic is operable to provide the data from the upstream port to the downstream port at least in part in response to a destination bus address of the data matching a stored bus identifier for the endpoint and at least in part in response to a destination device address of the data matching a stored device identifier for the endpoint.
5. The device of claim 1, wherein the exchanged data includes a source bus address that matches the bus identifier of the endpoint and a source device address that matches the device identifier of the endpoint.
6. The device of claim 1, wherein the switching logic component is to provide a functionality indicator to the host indicating switching functionality of the downstream port of the device.
7. The device of claim 6, wherein the device comprises a further downstream port directly connected to a respective further endpoint, and wherein the switching logic component is operable to provide to the host a further functionality indicator indicating a respective switching functionality of the respective further downstream port.
8. The apparatus of claim 1, wherein the switch logic is to receive the bus identifier and the device identifier for the endpoint from the host.
9. The device according to claim 1, wherein the bus identifier is represented by 8 bits and the device identifier is represented by 5 bits, respectively, according to a bus:device.function number format according to the PCIe specification.
10. The device of claim 1, wherein the switch logic is to store a secondary bus identifier and a secondary device identifier for the endpoint.
11. The apparatus of claim 10, wherein the switch logic is to store a slave bus identifier and a slave device identifier for the endpoint.
12. The device of claim 10, wherein the device comprises an additional downstream port directly connected to a corresponding additional endpoint, and wherein the switch logic component is operative to store a corresponding unique combination of a secondary bus identifier and a secondary device identifier for a corresponding one of the additional endpoints.
13. The apparatus of claim 10, wherein the apparatus comprises further downstream ports directly connected to respective further endpoints, and wherein the switch logic is to store the same secondary bus identifier for a plurality of the further endpoints.
14. A system, comprising: A host, the host being used to assign a bus identifier and a device identifier to an endpoint; and A switch, the switch comprising: an upstream port for connecting to the host via an upstream Peripheral Component Interconnect Express (PCIe) compliant connection; a downstream port for directly connecting to the endpoint via a downstream PCIe-compliant connection; and A switching logic component, the switching logic component is used to: storing the bus identifier and the device identifier assigned by the host to the endpoint; and Data is exchanged between the host and the endpoint in response, at least in part, to both the stored bus identifier and the device identifier of the endpoint.
15. The system of claim 14, wherein the switching logic is to exchange data between the host and the endpoint via one or more of the upstream port or the downstream port.
16. The system of claim 14, wherein the switching logic component is configured to provide a functionality indicator to the host indicating switching functionality of the downstream port of the device, and wherein the host is configured to assign the bus identifier and the device identifier to the endpoint at least in part in response to the functionality indicator.
17. The system of claim 14, wherein the switch comprises additional downstream ports directly connected to respective additional endpoints, and wherein the host is operable to assign the same secondary bus identifier to a plurality of the additional endpoints.
18. The system of claim 17, wherein the switch comprises additional downstream ports directly connected to respective additional endpoints, and wherein the host is operable to assign respective ones of the additional endpoints respective unique combinations of the secondary bus identifier and the secondary device identifier.
19. The system of claim 14, comprising the endpoint.
20. A method comprising: storing a bus identifier and a device identifier for an endpoint directly connected to a downstream port of the switch via a corresponding Peripheral Component Interconnect Express (PCIe) compliant connection; as well as Data is exchanged at least in part in response to both the stored bus identifier and the device identifier for the endpoint.
21. The method of claim 20, wherein the exchanging data comprises exchanging data between the host and the endpoint.
22. The method of claim 21, wherein the exchanging data comprises exchanging data via one or more of the upstream port or the downstream port.
23. The method of claim 20, comprising providing a functionality indicator indicating switching functionality of the downstream port to a host connected to an upstream port of the switch via a corresponding PCIe compliant connection.
24. The method of claim 20, comprising receiving the bus identifier and the device identifier from a host connected to the upstream port via an upstream corresponding PCIe compliant connection.
25. A method according to claim 20, wherein the method includes providing the data from the upstream port to the downstream port at least in part in response to a destination bus address of the data matching a stored bus identifier for the endpoint, and at least in part in response to a destination device address of the data matching a stored device identifier for the endpoint.
26. The method of claim 20, comprising providing data from the downstream port to the upstream port, the data comprising a source bus address that matches a bus identifier of the endpoint and a source device address that matches a device identifier of the endpoint.
