Data processing apparatus, memory, switching method, storage medium and program product
Patent Information
- Application Number
- CN202580000472.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2026-11-17
AI Technical Summary
In the existing technology, the operation switching between the data processing device and the memory is not flexible enough, resulting in insufficient reliability of data writing or reading.
By incorporating transmitters and receivers into the data processing device and memory, and combining them with control and communication modules, the system enables switching between transmitting and receiving operations, or vice versa, thereby improving operational flexibility and reliability.
It improves the flexibility and reliability of data writing or reading between the data processing device and the memory, while expanding the bandwidth of reading or writing without changing the hardware packaging interface.
Smart Images

Figure CN123125569A_ABST
Abstract
Description
Data processing apparatus, memory, switching method, storage medium and program product Technical Field
[0001] This disclosure relates to the field of memory technology, and more particularly to data processing apparatus, memory, switching method, storage medium and program product. Background Technology
[0002] With the development of storage technology, channels can be set up between data processing devices and memory, so that data processing devices can perform read or write operations on memory. Summary of the Invention
[0003] This application solves the problem of how to make the operation of a data processing device changeable, and realizes the effect that the data processing device can switch between sending and receiving operations.
[0004] This disclosure provides a data processing apparatus, a memory, a switching method, a storage medium, and a program product.
[0005] According to a first aspect of the present disclosure, a data processing apparatus is provided, including a first control module and one or more first communication modules. The first communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send write data to a memory, and the receiver is used to receive read data from the memory.
[0006] The first control module is used to send first control information or second control information to one or more of the first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0007] According to a second aspect of the present disclosure, a memory is provided, including a second control module and one or more fourth communication modules, the fourth communication modules including a transmitting module and a receiving module, the transmitting module including a transmitter, the receiving module including a receiver; the transmitter is used to transmit read data to a data processing device, and the receiver is used to receive write data from the data processing device.
[0008] The second control module is used to send fourth control information or fifth control information to one or more of the fourth communication modules. The fourth control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The fifth control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0009] According to a third aspect of the present disclosure, a switching method is provided, the method being applied in a data processing apparatus as described in the first aspect, the method comprising:
[0010] The first control module sends first control information or second control information to one or more first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0011] The first communication module includes a sending module and a receiving module. The sending module includes an encoder, and the receiving module includes a receiver. The sender is used to send write data to the memory, and the receiver is used to receive read data from the memory.
[0012] According to a fourth aspect of the present disclosure, a switching method is provided, the method being applied to a memory as described in the second aspect, the method comprising:
[0013] The second control module sends a fourth control message or a fifth control message to one or more fourth communication modules. The fourth control message is used to control the transmitter to stop its transmission operation and start the receiver's reception operation. The fifth control message is used to control the receiver to stop its reception operation and start the transmitter's transmission operation.
[0014] The fourth communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send read data to the data processing device, and the receiver is used to receive write data from the data processing device.
[0015] According to a fifth aspect of the present disclosure, a switching method is provided for a storage system, the storage system including a data processing device and a memory, wherein the method includes:
[0016] The data processing device is used to execute the switching method as described in any one of the third aspects, and the memory is used to execute the switching method as described in the fourth aspect.
[0017] According to a sixth aspect of the present disclosure, a storage system is provided, including at least one of a data processing device and a memory, wherein the data processing device is the data processing device described in the first aspect, and the memory is the memory described in the second aspect.
[0018] According to a seventh aspect of the present disclosure, a storage medium is provided that stores instructions, which, when executed on a data processing device or a memory, cause the data processing device or memory to perform the switching method as described in the third aspect, or to perform the switching method as described in the fourth aspect.
[0019] According to an eighth aspect of the present disclosure, a program product is provided, including at least one of a program and instructions, wherein when the program or instructions are executed by a data processing device or a memory, they implement the switching method as described in the third aspect, or implement the switching method as described in the fourth aspect.
[0020] In the above embodiments, by setting the transmitter and receiver included in the first communication module, switching from sending operation to receiving operation and vice versa can be realized, which improves the flexibility of switching between operations and the reliability of data writing or reading between the data processing device and the memory. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings required for the description of the embodiments are introduced below. The following drawings are only some embodiments of this disclosure and do not impose specific limitations on the protection scope of this disclosure.
[0022] Figure 1A is a schematic diagram of the architecture of a storage system according to an embodiment of the present disclosure.
[0023] Figure 1B is a schematic diagram of a channel arrangement according to an embodiment of the present disclosure.
[0024] Figure 1C is a schematic diagram of a channel structure according to an embodiment of the present disclosure.
[0025] Figure 2 is a schematic diagram of the structure of control information according to an embodiment of the present disclosure.
[0026] Figure 3 is a schematic diagram illustrating channel switching according to an embodiment of the present disclosure.
[0027] Figure 4 is an interactive schematic diagram of a switching method according to an embodiment of the present disclosure.
[0028] Figure 5 is a schematic flowchart illustrating a channel switching process according to an embodiment of the present disclosure. Detailed Implementation
[0029] This disclosure provides a data processing apparatus, a memory, a switching method, a storage medium, and a program product.
[0030] In a first aspect, embodiments of this disclosure provide a data processing apparatus, including a first control module and one or more first communication modules. The first communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send write data to a memory, and the receiver is used to receive read data from the memory.
[0031] The first control module is used to send first control information or second control information to one or more of the first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0032] In the above embodiments, by setting the transmitter and receiver included in the first communication module, switching from sending operation to receiving operation and vice versa can be realized, which improves the flexibility of switching between operations and the reliability of data writing or reading between the data processing device and the memory.
[0033] Furthermore, the first communication module set in the above embodiments does not change the hardware packaging interface, ensuring that the read bandwidth or write bandwidth can be expanded without changing the hardware structure, saving hardware adjustment operations.
[0034] In conjunction with some embodiments of the first aspect, in some embodiments, the data processing apparatus includes one or more second communication modules, the second communication modules including a transmitting module and not including a receiving module.
[0035] In the above embodiments, the data processing device may further include a second communication module that only supports transmission, which expands the types of modules of the data processing device, ensures that the data processing device can perform different operations, and improves the flexibility of the data processing device in performing operations.
[0036] In conjunction with some embodiments of the first aspect, in some embodiments, the data processing apparatus includes one or more third communication modules, the third communication modules including a receiving module and not including a transmitting module.
[0037] In the above embodiments, the data processing device may further include a third communication module that only supports receiving, which expands the types of modules of the data processing device, ensures that the data processing device can perform different operations, and improves the flexibility of the data processing device in performing operations.
[0038] In conjunction with some embodiments of the first aspect, in some embodiments, sending the first control information includes: sending the first control information when a first condition is met;
[0039] The first condition includes at least one of the following:
[0040] The read / write scenario of the data processing device is not the first preset scenario;
[0041] The amount of data read by the data processing device is greater than the first data threshold.
[0042] The ratio between the amount of data read and the amount of data written by the data processing device is greater than a first ratio threshold.
[0043] In the above embodiments, the determination of whether to send the first control information is made by judging whether the first condition is met, and then the determination of whether to switch from sending operation to receiving operation is made, thereby improving the accuracy of operation switching.
[0044] In conjunction with some embodiments of the first aspect, in some embodiments, sending the second control information includes: sending the first control information when a second condition is met;
[0045] The second condition includes at least one of the following:
[0046] The read / write scenario of the data processing device is not the second preset scenario;
[0047] The amount of data written by the data processing device is greater than the second data threshold.
[0048] The ratio between the amount of data written and the amount of data read by the data processing device is greater than a second ratio threshold.
[0049] In the above embodiments, the determination of whether to send the second control information is made by judging whether the second condition is met, thereby determining whether to switch from receiving operation to sending operation, thus improving the accuracy of operation switching.
[0050] In conjunction with some embodiments of the first aspect, in some embodiments, the first control module is further configured to send third control information to the memory, the third control information being used to instruct the memory to perform switching control on at least one channel;
[0051] The at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to the at least one channel to the opposite operation indicated by the first control information or the second control information.
[0052] In the above embodiments, the data processing device not only needs to perform the sending and switching operations of control information itself, but also needs to perform the corresponding switching operations of the memory to ensure the operational association between the data processing device and the memory, and to ensure the reliability of data transmission between the data processing device and the memory.
[0053] In conjunction with some embodiments of the first aspect, in some embodiments, the third control information includes multiple indication information, each indication information being used to indicate the data transmission direction in the corresponding channel, the data transmission direction including sending write data to the memory or receiving read data from the memory.
[0054] In the above embodiments, each indication information corresponds to a channel, ensuring the accuracy of the data transmission direction indicated by the indication information.
[0055] Secondly, embodiments of this disclosure provide a memory including a second control module and one or more fourth communication modules. The fourth communication module includes a transmitting module and a receiving module. The transmitting module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send read data to a data processing device, and the receiver is used to receive write data from the data processing device.
[0056] The second control module is used to send fourth control information or fifth control information to one or more of the fourth communication modules. The fourth control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The fifth control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0057] In conjunction with some embodiments of the second aspect, in some embodiments, the memory includes one or more fifth communication modules, the fifth communication module including a transmitting module but not including a receiving module.
[0058] In conjunction with some embodiments of the second aspect, in some embodiments, the memory includes one or more sixth communication modules, the sixth communication module including a receiving module but not including a transmitting module.
[0059] In conjunction with some embodiments of the second aspect, in some embodiments, the second control module is further configured to perform switching control on at least one channel based on received third control information;
[0060] The at least one channel is the channel indicated by the third control information, and the switching control is to switch the operation corresponding to the at least one channel to the operation indicated by the fourth control information or the fifth control information.
[0061] In conjunction with some embodiments of the second aspect, in some embodiments, the third control information includes multiple indication information, each indication information being used to indicate the data transmission direction in the corresponding channel, the data transmission direction including sending write data to the memory or receiving read data from the memory.
[0062] Thirdly, embodiments of this disclosure provide a switching method, which is applied in a data processing apparatus as described in the first aspect, the method comprising:
[0063] The first control module sends first control information or second control information to one or more first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0064] The first communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send write data to the memory, and the receiver is used to receive read data from the memory.
[0065] In conjunction with some embodiments of the third aspect, in some embodiments, sending the first control information includes:
[0066] When the first condition is met, send the first control information;
[0067] The first condition includes at least one of the following:
[0068] The read / write scenario of the data processing device is not the first preset scenario;
[0069] The amount of data read by the data processing device is greater than the first data threshold.
[0070] The ratio between the amount of data read and the amount of data written by the data processing device is greater than a first ratio threshold.
[0071] In conjunction with some embodiments of the third aspect, in some embodiments, sending the second control information includes: sending the first control information when a second condition is met;
[0072] The second condition includes at least one of the following:
[0073] The read / write scenario of the data processing device is not the second preset scenario;
[0074] The amount of data written by the data processing device is greater than the second data threshold.
[0075] The ratio between the amount of data written and the amount of data read by the data processing device is greater than a second ratio threshold.
[0076] In conjunction with some embodiments of the third aspect, in some embodiments, the method further includes:
[0077] Send third control information to the memory, the third control information being used to instruct the memory to perform switching control on at least one channel;
[0078] The at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to the at least one channel to the opposite operation indicated by the first control information or the second control information.
[0079] In conjunction with some embodiments of the third aspect, in some embodiments, the first control information includes multiple indication information, each indication information being used to indicate the data transmission direction in the corresponding channel, the data transmission direction including sending write data to the memory or receiving read data from the memory.
[0080] Fourthly, embodiments of this disclosure provide a switching method applied to a memory as described in the second aspect, the method comprising:
[0081] The second control module sends a fourth control message or a fifth control message to one or more fourth communication modules. The fourth control message is used to control the transmitter to stop its transmission operation and start the receiver's reception operation. The fifth control message is used to control the receiver to stop its reception operation and start the transmitter's transmission operation.
[0082] The fourth communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send read data to the data processing device, and the receiver is used to receive write data from the data processing device.
[0083] In conjunction with some embodiments of the fourth aspect, in some embodiments, the method further includes:
[0084] Receive third control information, the third control information being used to indicate at least one channel;
[0085] Based on the third control information, at least one channel is switched, wherein the switching control is to switch the operation corresponding to the at least one channel to the operation indicated by the fourth control information or the fifth control information.
[0086] In conjunction with some embodiments of the fourth aspect, in some embodiments, the third control information includes multiple indication information, each indication information being used to indicate the data transmission direction in the corresponding channel, the data transmission direction including sending write data to the memory or receiving read data from the memory.
[0087] Fifthly, embodiments of this disclosure provide a switching method for a storage system, the storage system including a data processing device and a memory, wherein the method includes:
[0088] The data processing device is used to execute the switching method as described in any one of the third aspects, and the memory is used to execute the switching method as described in any one of the fourth aspects.
[0089] In a sixth aspect, a storage system is proposed, comprising at least one of a data processing device and a memory, wherein the data processing device is the data processing device described in any one of the first aspects, and the memory is the memory described in any one of the second aspects.
[0090] In a seventh aspect, a storage medium is provided that stores instructions which, when executed on a data processing device or a memory, cause the data processing device or memory to perform a switching method as described in any one of the third aspects, or to perform a switching method as described in any one of the fourth aspects.
[0091] In the eighth aspect, a program product is proposed, comprising at least one of a program and instructions, wherein when the program or instructions are executed by a data processing device or a memory, they implement the switching method as described in any one of the third aspects, or implement the switching method as described in any one of the fourth aspects.
[0092] It is understood that the aforementioned storage system, storage medium, program product, etc., are all used to execute the methods proposed in the embodiments of this disclosure. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.
[0093] This disclosure is not exhaustive, but merely illustrative of some embodiments, and is not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment can be arbitrarily interchanged. Furthermore, the optional implementation methods in a particular embodiment can be arbitrarily combined; moreover, the embodiments can be arbitrarily combined, for example, some or all steps of different embodiments can be arbitrarily combined, and a particular embodiment can be arbitrarily combined with the optional implementation methods of other embodiments. In all embodiments of this disclosure, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0094] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure.
[0095] In this embodiment of the disclosure, unless otherwise stated, elements expressed in the singular form, such as "a," "an," "the," "the," "the," "the," "the," "the," "this," etc., can mean "one and only one," or "one or more," "at least one," etc. For example, when using articles such as "a," "an," "the," etc. in translation, the noun following the article can be understood as either a singular expression or a plural expression.
[0096] In the embodiments of this disclosure, "multiple" refers to two or more.
[0097] In some embodiments, the terms "at least one of A or B, at least one of A and B", "one or more", "a plurality of", "multiple" and the like can be used interchangeably.
[0098] In some embodiments, the notation "at least one of A and B", "A and / or B", "A in one case, B in another", "in response to one case A, in response to another case B", etc., may include the following technical solutions depending on the situation: in some embodiments, A (execute A regardless of whether there is a branch B); in some embodiments, B (execute B regardless of whether there is a branch A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, both A and B are executed. The same applies when there are more branches such as A, B, C, etc.
[0099] In some embodiments, the notation "A or B" may include the following technical solutions, depending on the situation: in some embodiments, A (execute A regardless of whether a branch B exists); in some embodiments, B (execute B regardless of whether a branch A exists); in some embodiments, execution is selected from A and B (A and B are selectively executed). The same applies when there are more branches such as A, B, and C.
[0100] The prefixes "first," "second," etc., used in the embodiments of this disclosure are merely for distinguishing different descriptive objects and do not impose restrictions on the position, order, priority, quantity, or content of the descriptive objects. The description of the descriptive objects is found in the claims or the context of the embodiments, and the use of prefixes should not constitute unnecessary restrictions. For example, if the descriptive object is a "field," the ordinal numbers preceding "field" in "first field" and "second field" do not restrict the position or order of the "fields." "First" and "second" do not restrict whether the "fields" they modify are in the same message, nor do they restrict the order of "first field" and "second field." Similarly, if the descriptive object is a "level," the ordinal numbers preceding "level" in "first level" and "second level" do not restrict the priority between "levels." Furthermore, the number of descriptive objects is not limited by ordinal numbers and can be one or more. For example, in "first device," the number of "devices" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the object being described is "device", then "first device" and "second device" can be the same device or different devices, and their types can be the same or different. Similarly, if the object being described is "information", then "first information" and "second information" can be the same information or different information, and their content can be the same or different.
[0101] In some embodiments, “including A,” “containing A,” “for indicating A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0102] In some embodiments, terms such as "time / frequency" and "time-frequency domain" refer to the time domain and / or frequency domain.
[0103] In some embodiments, terms such as “in response to…”, “in response to determining…”, “in the case of…”, “when…”, “when…”, “if…”, etc. can be used interchangeably. These descriptions all refer to the device making a corresponding action under certain objective circumstances. They do not necessarily limit the time, nor do they require the device to make a judgment action when implementing it, nor do they mean that there must be other limitations.
[0104] In some embodiments, the terms “greater than,” “greater than or equal to,” “not less than,” “more than,” “more than or equal to,” “not less than,” “higher than,” “higher than or equal to,” “not lower than,” and “above” can be used interchangeably, as can the terms “less than,” “less than or equal to,” “not greater than,” “less than,” “less than or equal to,” “not more than,” “lower than,” “lower than or equal to,” “not higher than,” and “below”.
[0105] In some embodiments, devices, etc., may be interpreted as physical or virtual, and their names are not limited to those described in the embodiments. Terms such as “device,” “equipment,” “circuit,” “network element,” “network function,” “network device,” “function,” “node,” “unit,” “section,” “system,” “network,” “chip,” “chip system,” “entity,” and “subject” are interchangeable.
[0106] In some embodiments, the terms "terminal", "terminal device", "user equipment (UE)", "user terminal", "mobile station (MS)", "mobile terminal (MT)", "subscriber station", "mobile unit", "subscriber unit", "wireless unit", "remote unit", "mobile device", "wireless device", "wireless communication device", "remote device", "mobile subscriber station", "access terminal", "mobile terminal", "wireless terminal", "remote terminal", "handset", "user agent", "mobile client", and "client" can be used interchangeably.
[0107] In some embodiments, the acquisition of data, information, etc., may comply with the laws and regulations of the country where the location is situated.
[0108] In some embodiments, data, information, etc., may be obtained with the user's consent.
[0109] Furthermore, each element, each row, or each column in the table of this disclosure can be implemented as an independent embodiment, and any combination of any element, any row, or any column can also be implemented as an independent embodiment.
[0110] Figure 1A is a schematic diagram of the architecture of a storage system according to an embodiment of the present disclosure.
[0111] As shown in Figure 1A, the storage system 100 includes a data processing device 101 and a memory 102. This storage system 100 is applied in a UFS (Ultra-Flash Storage) environment. Optionally, the data processing device may also be referred to as a processor or other names; this embodiment does not limit the specific application of this disclosure.
[0112] In some embodiments, the storage system 100 implements data interaction operations between the data processing device 101 and the memory 102 by designing read / write channels. Optionally, the data processing device 101 is located in a UFS host, or the data processing device 101 may also be referred to as a Universal Flash Storage (UFS) host, or simply a host; the embodiments of this disclosure are not limited to the scope of the data processing device 101. The memory is located in a UFS device, or the memory may also be referred to as a UFSSDevice; the embodiments of this disclosure do not limit the scope of the memory 102.
[0113] For example, referring to Figure 1B, the UFS hardware includes Transmit (TX)0, TX1, Receive (RX)0, and RX1 channels. TX0 / TX1 are write channels, and RX0 / RX1 are read channels. In some embodiments, read and write operations between the UFS Host and the storage device are transmitted or received through these write or read channels. The UFS interconnect layer (UIC) handles the connection between the UFS host and the device. The UIC includes the data link layer (MIPI Unipro) and the physical layer (MIPI M-PHY). RST-n and REF-CLK exist between the UFS host and the device; RST-n is a reset signal used for resetting, and REF-CLK is a clock signal used to indicate the reference clock.
[0114] For example, referring to Figure 1C, each channel in the UFS Host and UFSDevice includes different modules to implement data transfer. Optionally, the write channel (TX0 / 1) internally only has a data transfer module (TX) on the UFS Host side and a data receiving module (RX) on the storage device. The read channel (RX0 / 1) internally only has a data receiving module (RX) on the UFS Host side and a data transfer module (TX) on the storage device.
[0115] Specifically, for the TX1 channel, the UFS Host configures the write buffer, encoder, transmitter, and bus, while the UFSDevice configures the receiver, decoder, and write buffer. For the TX2 channel, the UFS Host configures the write buffer, encoder, transmitter, and bus, while the UFSDevice configures the receiver, decoder, and write buffer. For the RX1 channel, the UFS Host configures the read buffer, decoder, receiver, and bus, while the UFSDevice configures the transmitter, encoder, and read buffer. For the RX2 channel, the UFS Host configures the read buffer, decoder, receiver, and bus, while the UFSDevice configures the transmitter, encoder, and read buffer.
[0116] In some embodiments, the storage system 100 is disposed in a terminal. Optionally, the terminal includes, but is not limited to, at least one of the following: mobile phone, wearable device, Internet of Things device, car with communication function, smart car, tablet computer, computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal device, wireless terminal device in industrial control, wireless terminal device in self-driving, wireless terminal device in remote medical surgery, wireless terminal device in smart grid, wireless terminal device in transportation safety, wireless terminal device in smart city, and wireless terminal device in smart home.
[0117] It is understood that the storage system described in the embodiments of this disclosure is for the purpose of more clearly illustrating the technical solutions of the embodiments of this disclosure, and does not constitute a limitation on the technical solutions proposed in the embodiments of this disclosure. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions proposed in the embodiments of this disclosure are also applicable to similar technical problems.
[0118] The following embodiments of this disclosure can be applied to the storage system 100 shown in FIG1A, or to some of its components, but are not limited thereto. The components shown in FIG1A are illustrative. The storage system may include all or some of the components in FIG1A, or may include other components other than those in FIG1A. The number and form of each component are arbitrary. Each component may be physical or virtual. The connection relationship between the components is illustrative. Components may not be connected to each other or may be connected in any way. The connection may be direct or indirect, wired or wireless.
[0119] In some embodiments, this disclosure provides a data processing apparatus including a first control module and one or more first communication modules, and a memory including a second control module and one or more fourth communication modules. The data processing apparatus and the memory are described below.
[0120] In some embodiments, the data processing apparatus includes a first control module and one or more first communication modules. The first communication module includes a transmitting module and a receiving module.
[0121] Optionally, the sending module includes a transmitter. Optionally, the sending module also includes an encoder; it can be understood that the sending module includes not only a transmitter but also an encoder. The transmitter is used to send write data to the memory. Alternatively, the transmitter is used to send data to the memory. Alternatively, the transmitter is used to send write data to the memory. The encoder is used to encode the write data to obtain encoded write data, which can then be sent to the memory via the transmitter.
[0122] It should be noted that the embodiments disclosed herein are illustrated using the example of a transmitting module including a transmitter. In another embodiment, the transmitting module itself has the function of a transmitter; that is, the transmitting module can be understood as a transmitter, or the transmitting module is the transmitter. Optionally, in addition to the transmitting module, an encoder is also present, which is a device located outside the transmitting module.
[0123] Optionally, the receiving module includes a receiver. Optionally, the receiving module also includes a decoder; that is, the receiving model includes not only a receiver but also a decoder. The receiver is used to receive read data from the memory. Alternatively, the receiver is used to receive read data sent by the memory. Alternatively, the receiver is used to receive read data sent by the memory. The decoder is used to decode the received data. For example, when the memory sends read data, it encodes the read data; therefore, after receiving the read data through the receiver, the data processing device needs to decode the read data to obtain the read data before encoding.
[0124] It should be noted that the embodiments disclosed herein are illustrated using the example of a receiving module including a receiver. In another embodiment, the receiving module itself has the function of a receiver; that is, the receiving module can be understood as a receiver, or it can be understood as the receiving module being the receiver. Optionally, in addition to the receiving module, a decoder is also present, which is a device located outside the receiving module.
[0125] Optionally, the first control module is used to send first control information or second control information to one or more first communication modules. The first control information or second control information is used to adjust the operations performed by the data processing device.
[0126] The first control information is used to control the transmitter to stop transmitting and the receiver to start receiving, while the second control information is used to control the receiver to stop receiving and the transmitter to start transmitting.
[0127] It should be noted that the embodiments disclosed herein are illustrated using the first communication module as an example. In another embodiment, each first communication module corresponds to one channel, and the first control information and the second control information are actually adjustments to the function of the channel corresponding to the first control information or the second control information.
[0128] For example, if the first control information is used to control the stopping of the transmitter's transmission operation and the initiation of the receiver's reception operation, the first control information actually sets the corresponding channel as a read channel so that the read channel has a read function and supports receiving and reading data from the memory. In this embodiment, the name of the read channel is not limited; it can be, for example, a read-out channel, a read channel, etc. It should be noted that the channel corresponding to the first control information in this embodiment is a write channel by default, but after receiving the first control information, the write channel needs to be switched to a read channel.
[0129] For example, if the second control information is used to control the stopping of the receiver's receiving operation and the starting of the transmitter's transmitting operation, the second control information actually sets the corresponding channel as a write channel so that the write channel has a writing function and supports sending write data to the memory. In this embodiment, the name of the write channel is not limited; it can be, for example, a write channel, a write-in channel, etc. It should be noted that the channel corresponding to the first control information in this embodiment is a read channel by default, but after receiving the first control information, the read channel needs to be switched to a write channel.
[0130] It should be noted that one or more first communication modules of the data processing device represent that the data processing device has one or more channels whose functions support switching, while for channels that do not include a first communication module, the function of the channel does not support switching.
[0131] In some embodiments, the channel corresponding to the first communication module can be called a compatible channel, that is, the compatible channel can be used as both a read channel and a write channel.
[0132] In some embodiments, the data processing apparatus includes one or more second communication modules, each including a transmitting module but not a receiving module. In this embodiment, if the data processing apparatus includes one or more second communication modules, the transmitting module included in the second communication module can support sending write data to the memory, and the second communication module does not include a receiving module, therefore it does not support receiving read data sent by the memory.
[0133] It should be noted that the embodiments disclosed herein are illustrated using the second communication module as an example. In another embodiment, each second communication module corresponds to a channel, and the channel corresponding to the second communication module has a write function, supporting the sending of write data to the memory. Alternatively, it can be said that the channel corresponding to the second communication module has only one function, which can be called a write channel, and this write channel cannot be switched to a read channel.
[0134] In some embodiments, the data processing apparatus includes one or more third communication modules, which include a receiving module but do not include a transmitting module. In this embodiment, if the data processing apparatus includes one or more third communication modules, the receiving module included in the third communication module can support receiving read data from the memory, and the third communication module does not include a transmitting module, therefore it does not support sending write data to the memory.
[0135] It should be noted that the embodiments disclosed herein are illustrated using a third communication module as an example. In another embodiment, each third communication module corresponds to a channel, and the channel corresponding to this third communication module has a read function, supporting the reception and reading of data from the memory. Alternatively, it can be said that the channel corresponding to this third communication module has only one function, which can be called a read channel, and this read channel cannot be switched to a write channel.
[0136] In some embodiments, the first control module of the data processing device will send the first control information only when certain conditions are met. These conditions will be described below. Optionally, the data processing device sends the first control information when it determines that the first condition is met.
[0137] For example, the first condition includes at least one of the following:
[0138] (1) The read / write scenario of the data processing device is not the first preset scenario.
[0139] In some embodiments, the first preset scenario is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0140] In some embodiments, the first preset scenario refers to a scenario where all communication modules of the data processing device can be supported in the default mode. If the read / write scenario of the data processing device increases the reading requirements, the data processing device needs to start the receiver's receiving operation through the first control information, thereby expanding the reading bandwidth to ensure that the reading bandwidth meets the requirements.
[0141] (2) The amount of data read by the data processing device is greater than the first data threshold.
[0142] In some embodiments, the first data threshold is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0143] In some embodiments, the first data threshold refers to the maximum amount of data that each communication module of the data processing device can support in default mode. If the amount of data read by the data processing device is greater than the first data threshold, it indicates that the data processing device needs to increase the reading bandwidth. Therefore, the receiving operation of the receiver is started by sending the first control information so as to ensure that the reading bandwidth meets the requirements.
[0144] (3) The ratio between the amount of data read by the data processing device and the amount of data written is greater than the first ratio threshold.
[0145] In some embodiments, the first ratio threshold is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0146] In some embodiments, the first ratio threshold refers to the maximum ratio that each communication module of the data processing device can support in the default mode. If the ratio between the amount of data read and the amount of data written by the data processing device is greater than the first ratio threshold, it indicates that the data processing device needs to increase the read bandwidth. Therefore, the receiving operation of the receiver is started by sending the first control information so as to ensure that the read bandwidth meets the requirements.
[0147] In some embodiments, the first control module of the data processing device will only send the second control information when certain conditions are met, and these conditions will be described below. Optionally, the data processing device sends the second control information when it determines that the second condition is met.
[0148] For example, the second condition includes at least one of the following:
[0149] (1) The reading and writing scenario of the data processing device is not the second preset scenario.
[0150] In some embodiments, the second preset scenario is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0151] In some embodiments, the second preset scenario refers to a scenario where all communication modules of the data processing device can be supported in the default mode. If the read / write scenario of the data processing device increases the writing requirements, the data processing device needs to start the sending operation of the transmitter through the second control information to expand the writing bandwidth so as to ensure that the writing bandwidth meets the requirements.
[0152] (2) The amount of data written by the data processing device is greater than the second data threshold.
[0153] In some embodiments, the second data threshold is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0154] In some embodiments, the second data threshold refers to the maximum amount of data that each communication module of the data processing device can support in default mode. If the amount of data written by the data processing device is greater than the second data threshold, it indicates that the data processing device needs to increase the write bandwidth. Therefore, the sending operation of the transmitter is started by sending the second control information to ensure that the write bandwidth meets the requirements.
[0155] (3) The ratio between the amount of data written by the data processing device and the amount of data read is greater than the second ratio threshold.
[0156] In some embodiments, the second proportional threshold is set by a data processing device, fixed by a communication protocol, or configured in other ways, and this disclosure does not limit this.
[0157] In some embodiments, the second ratio threshold refers to the maximum ratio that each communication module of the data processing device can support in the default mode. If the ratio between the amount of data written and the amount of data read by the data processing device is greater than the second ratio threshold, it indicates that the data processing device needs to increase the write bandwidth. Therefore, the sending operation of the transmitter is started by sending the second control information to ensure that the write bandwidth meets the requirements.
[0158] It should be noted that this disclosure describes how the data processing device controls the initiation of a transmission or reception operation through control information. In another embodiment, if the operation of the data processing device is adjusted, the corresponding memory operation also needs to be adjusted. Therefore, the data processing device needs to instruct the memory operation through control information. The following describes how the data processing device instructs the memory to perform the adjustment operation.
[0159] In some embodiments, the first control module is further configured to send third control information to the memory, the third control information being used to instruct the memory to perform switching control on at least one channel.
[0160] Wherein, at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to at least one channel to the opposite operation indicated by the first control information or the second control information.
[0161] In this embodiment of the disclosure, the operations that the data processing device and the memory need to perform in the same channel are opposite. If the data processing device needs to perform a write operation on the memory, the data processing device needs to send write data to the memory, and the memory needs to receive the write data sent by the data processing device. Therefore, when the data processing device performs a send operation, the third control information needs to instruct the memory to perform a receive operation. Similarly, if the data processing device needs to perform a read operation on the memory, the memory needs to send read data to the data processing device, and the data processing device needs to receive the read data sent by the memory. Therefore, when the data processing device performs a receive operation, the third control information needs to instruct the memory to perform a send operation.
[0162] In some embodiments, the third control information includes multiple indication information, each indicating the data transmission direction in a corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory. Optionally, if there are four channels, the third control information includes four indication information, with each channel corresponding to one of the indication information. Each indication information can indicate the data transmission direction of the corresponding channel. Therefore, after receiving the indication information, the memory can determine the data transmission direction of each channel based on the indication information, and thus determine whether the operation initiated by the memory for each channel is a sending operation or a receiving operation. For example, if the data transmission direction is that the data processing device sends write data to the memory, then the memory needs to initiate a receiving operation; if the data transmission direction is that the data processing device receives read data sent by the memory, then the memory needs to initiate a sending operation.
[0163] Optionally, the third control information includes multiple indication information, each indicating the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory. Optionally, if there are four channels, the third control information includes four indication information, with each channel corresponding to one indication information. Each indication information can indicate the data transmission direction of the corresponding channel. Therefore, after receiving the indication information, the memory can determine the data transmission direction of each channel based on the indication information, and thus determine whether to use a sending module or a receiving module for each channel. For example, if the data transmission direction is that the data processing device sends write data to the memory, then the memory needs to activate the receiving module; if the data transmission direction is that the data processing device receives read data sent by the memory, then the memory needs to activate the sending module.
[0164] Optionally, the third control information indicates whether the module used by each channel in the data processing device is a transmitting module or a receiving module. The third control information includes multiple indication information, each indicating the type of module used in the corresponding channel of the data processing device. The corresponding memory uses the opposite type of module of the data processing device. Optionally, if there are four channels, the third control information includes four indication information, with each channel corresponding to one indication information. Each indication information can indicate the type of module used by the corresponding channel in the data processing device. Therefore, after receiving the indication information, the memory can determine the type of module used by each channel in the data processing device based on the indication information, and thus determine whether the memory uses a transmitting module or a receiving module for each channel. For example, if the data processing device uses a transmitting module, the memory needs to use a receiving module; if the data processing device uses a receiving module, the memory needs to use a transmitting module.
[0165] It should be noted that the above embodiments are all described using a data processing device as an example. In another embodiment, the memory side will be described.
[0166] In some embodiments, the memory includes a second control module and one or more fourth communication modules. The fourth communication module includes a transmitting module and a receiving module.
[0167] Optionally, the transmitting module includes a transmitter. Optionally, the transmitting module also includes an encoder; it can be understood that the transmitting module includes not only a transmitter but also an encoder. The transmitter is used to send read data to the data processing device. Alternatively, the transmitter is used to send data to the data processing device. Alternatively, the transmitter is used to send the read data to the data processing device. The encoder is used to encode the read data to obtain encoded read data, which can then be sent to the data processing device via the transmitter.
[0168] It should be noted that the embodiments disclosed herein are illustrated using the example of a transmitting module including a transmitter. In another embodiment, the transmitting module itself has the function of a transmitter; that is, the transmitting module can be understood as a transmitter, or the transmitting module is the transmitter. Optionally, in addition to the transmitting module, an encoder is also present, which is a device located outside the transmitting module.
[0169] Optionally, the receiving module includes a receiver. Optionally, the receiving module also includes a decoder; that is, the receiving model includes not only a receiver but also a decoder. The receiver is used to receive write data from the data processing device. Alternatively, the receiver is used to receive write data sent by the data processing device. Alternatively, the receiver is used to receive write data sent by the data processing device. The decoder is used to decode the received data. For example, when the data processing device sends write data, it encodes the write data; therefore, after receiving the write data through the receiver, the data processing device needs to decode the write data to obtain the write data before encoding.
[0170] It should be noted that the embodiments disclosed herein are illustrated using the example of a receiving module including a receiver. In another embodiment, the receiving module itself has the function of a receiver; that is, the receiving module can be understood as a receiver, or it can be understood as the receiving module being the receiver. Optionally, in addition to the receiving module, a decoder is also present, which is a device located outside the receiving module.
[0171] In some embodiments, the second control module is used to send fourth control information or fifth control information to one or more fourth communication modules. The fourth control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The fifth control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
[0172] It should be noted that the embodiments disclosed herein are illustrated using the fourth communication module as an example. In another embodiment, each fourth communication module corresponds to one channel, and the fourth control information and the fifth control information are actually adjustments to the function of the channel corresponding to the fourth control information or the fifth control information.
[0173] For example, if the fourth control information is used to control the stopping of the transmitter's transmission operation and the initiation of the receiver's reception operation, the fourth control information actually sets the corresponding channel as a write channel so that the write channel has a writing function and supports receiving written data from the data processing device. In this embodiment, the name of the write channel is not limited; it can be, for example, a write channel, a write-in channel, etc. It should be noted that the channel corresponding to the fourth control information in this embodiment is a read channel by default, but after receiving the fourth control information, the read channel needs to be switched to a write channel.
[0174] For example, if the fifth control information is used to control the stopping of the receiver's receiving operation and the starting of the transmitter's transmitting operation, the second control information actually sets the corresponding channel as a read channel so that the read channel has a reading function and supports sending read data to the data processing device. In this embodiment, the name of the read channel is not limited; it can be, for example, a readout channel, a read channel, etc. It should be noted that the channel corresponding to the fifth control information in this embodiment is a write channel by default, but after receiving the fifth control information, the write channel needs to be switched to a read channel.
[0175] It should be noted that one or more fourth communication modules of the data processing device represent that the memory has one or more channels whose functions support switching, while for channels that do not include a fourth communication module, the function of the channel does not support switching.
[0176] In some embodiments, the channel corresponding to the fourth communication module can be called a compatible channel, that is, the compatible channel can be used as both a read channel and a write channel.
[0177] It should be noted that, in the embodiments of this disclosure, if the data processing device has a first communication module, the channel corresponding to the first communication module on the memory side will also include a fourth communication module, so that the operation used by the first communication module and the fourth communication module can be adaptively adjusted, thereby ensuring that the function of the channel can be switched.
[0178] In some embodiments, the memory includes one or more fifth communication modules, each of which includes a transmitting module but does not include a receiving module. In this embodiment, if the memory includes one or more fifth communication modules, the transmitting module included in the fifth communication module can support sending read data to the data processing device, and since the fifth communication module does not include a receiving module, it does not support receiving write data sent by the data processing device.
[0179] It should be noted that the embodiments disclosed herein are illustrated using the fifth communication module as an example. In another embodiment, each fifth communication module corresponds to one channel, and the channel corresponding to this fifth communication module has a read function, supporting the sending of read data to the data processing device. Alternatively, it can be said that the channel corresponding to this fifth communication module has only one function, which can be called a read channel, and this read channel cannot be switched to a write channel.
[0180] In some embodiments, the memory includes one or more sixth communication modules, which include a receiving module but do not include a transmitting module. In embodiments of this disclosure, if the data processing device includes one or more sixth communication modules, the receiving module included in the sixth communication module can support receiving write data from the data processing device, and the sixth communication module does not include a transmitting module, therefore it does not support sending read data to the data processing device.
[0181] It should be noted that the embodiments disclosed herein are illustrated using the sixth communication module as an example. In another embodiment, each sixth communication module corresponds to a channel, and the channel corresponding to the sixth communication module has a write function, supporting the reception of write data from the data processing device. Alternatively, it can be said that the channel corresponding to the sixth communication module has only one function, which can be called a write channel, and this write channel cannot be switched to a read channel.
[0182] In some embodiments, the second control module is further configured to perform switching control on at least one channel based on the received third control information. Optionally, the at least one channel is a channel indicated by the third control information, and the switching control is to switch the operation corresponding to the at least one channel to the operation indicated by the fourth or fifth control information.
[0183] In this embodiment of the disclosure, the operations that the data processing device and the memory need to perform in the same channel are opposite. If the data processing device needs to perform a write operation on the memory, the data processing device needs to send write data to the memory, and the memory needs to receive the write data sent by the data processing device. Therefore, when the memory performs a receive operation, the sixth control information needs to instruct the memory to perform the receive operation. Similarly, if the data processing device needs to perform a read operation on the memory, the memory needs to send read data to the data processing device, and the memory needs to send write data. Therefore, when the memory performs a send operation, the sixth control information needs to instruct the memory to perform the send operation.
[0184] In some embodiments, the third control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel, the data transmission direction including sending write data to the memory or receiving read data from the memory.
[0185] Optionally, if there are four channels, the third control information includes four indication messages, with each channel corresponding to one of the indication messages. Each indication message indicates the data transmission direction of its corresponding channel. Therefore, after receiving the indication message, the memory can determine the data transmission direction of each channel based on the indication message, and thus determine whether the operation initiated by the memory for each channel is a sending operation or a receiving operation. For example, if the data transmission direction is that the data processing device sends data to the memory for writing, then the memory needs to initiate a receiving operation; if the data transmission direction is that the data processing device receives data sent by the memory for reading, then the memory needs to initiate a sending operation.
[0186] Optionally, the third control information includes multiple indication information, each indicating the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory. Optionally, if there are four channels, the third control information includes four indication information, with each channel corresponding to one indication information. Each indication information can indicate the data transmission direction of the corresponding channel. Therefore, after receiving the indication information, the memory can determine the data transmission direction of each channel based on the indication information, and thus determine whether to use a sending module or a receiving module for each channel. For example, if the data transmission direction is that the data processing device sends write data to the memory, then the memory needs to activate the receiving module; if the data transmission direction is that the data processing device receives read data sent by the memory, then the memory needs to activate the sending module.
[0187] Optionally, the third control information indicates whether the module used by each channel in the data processing device is a transmitting module or a receiving module. The third control information includes multiple indication information, each indicating the type of module used in the corresponding channel of the data processing device. The corresponding memory uses the opposite type of module of the data processing device. Optionally, if there are four channels, the third control information includes four indication information, with each channel corresponding to one indication information. Each indication information can indicate the type of module used by the corresponding channel in the data processing device. Therefore, after receiving the indication information, the memory can determine the type of module used by each channel in the data processing device based on the indication information, and thus determine whether the memory uses a transmitting module or a receiving module for each channel. For example, if the data processing device uses a transmitting module, the memory needs to use a receiving module; if the data processing device uses a receiving module, the memory needs to use a transmitting module.
[0188] Referring to Figure 2, the structure of the third control information is shown. Optionally, this third control information can be understood as a PACP encapsulation packet. This third control information includes Tx0Dir (transmit direction 0), Tx0Dir (transmit direction 1), Rx0Dir (receive direction 0), and Rx0Dir (receive direction 0). Optionally, the embodiment shown in Figure 2 is illustrated using four channels, each corresponding to one piece of information. Furthermore, Tx0Dir (transmit direction 0), Tx0Dir (transmit direction 1), Rx0Dir (receive direction 0), and Rx0Dir (receive direction 0) can be changed based on adjustments. In addition, the third control information also includes ESC_PA (PA length), PACP_Begin (PACP start position), PACP_PWR_req (PACP type), DevID (device identifier), Adapt (adaptation byte), flags (tags), TxMode (transmit mode), TxLane (transmit channel), TxGear (transmit rate), RxMode (receive mode), RxLane (receive channel), RxGear (receive rate), PA power mode user data[0], PA power mode user data[1], PA power mode user data[2], PA power mode user data[3], PA power mode user data[4], PA power mode user data[5], PA power mode user data[--].
[0189] It should be noted that the above embodiments describe the data processing device and the memory respectively. The following examples illustrate how to adjust the operation of the data processing device and the memory.
[0190] Referring to Figure 3, the upper part of Figure 3 shows four channels between the data processing device and the memory, including two write channels (TX0 and TX1) and two read channels (RX0 and RX1). For the TX0 channel, the UFS Host has a write buffer, encoder, transmitter, and bus; the UFSDevice has a receiver, decoder, and write buffer. For the TX1 channel, the UFS Host has a write buffer, encoder, transmitter, and bus; the UFSDevice has a receiver, decoder, and write buffer. It should be noted that for the TX1 channel, the UFS Host has a read buffer, decoder, receiver, and bus; the UFSDevice has a transmitter, encoder, and read buffer. Therefore, the TX1 channel can be switched to the RX channel under certain conditions. For the RX0 channel, the UFS Host has a read buffer, decoder, receiver, and bus; the UFSDevice has a transmitter, encoder, and read buffer. For the RX1 channel, the read cache, decoder, receiver, and bus are configured in the UFS Host, and the transmitter, encoder, and read cache are configured in the UFSDevice.
[0191] For the lower half of Figure 3, TX1 can, under certain circumstances, switch to the channel in which the UFS Host has set up the read cache, decoder, receiver, and bus, and the UFSDevice has set up the transmitter, encoder, and read cache. In other words, the TX1 channel is switched to the RX2 channel. That is, there are currently 3 read channels and 1 write channel between the data processing device and the memory.
[0192] It should be noted that the embodiments disclosed herein are illustrative examples. In another embodiment, channel TX0 may have the same settings as channel TX1, so channel TX0 may also be switched to channel RX. Alternatively, channels RX0 or RX1 may also be additionally configured similarly to TX to enable RX0 and / or RX1 to support switching to TX. For example, channel RX0 may be switched to channel TX2, or channel RX1 may be switched to TX2, or channels RX0 and RX1 may be switched to channels TX2 and TX3. These embodiments will not be elaborated further in this disclosure.
[0193] Figure 4 is an interactive schematic diagram of a switching method according to an embodiment of the present disclosure. As shown in Figure 4, the present disclosure relates to a switching method, which includes:
[0194] In step S4101, the first control module in the data processing device sends first control information or second control information to one or more first communication modules.
[0195] In some embodiments, the first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation, and the second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation; the first communication module includes a transmission module and a reception module, the transmission module includes a transmitter, and the reception module includes a receiver; the transmitter is used to send write data to the memory, and the receiver is used to receive read data from the memory.
[0196] The first control information or the second control information in this embodiment is similar to the first control information or the second control information in the above embodiments, and will not be described again here.
[0197] In some embodiments, sending first control information includes:
[0198] When the first condition is met, send the first control information;
[0199] The first condition includes at least one of the following:
[0200] The read / write scenario of the data processing device is not the first preset scenario;
[0201] The amount of data read by the data processing device exceeds the first data threshold.
[0202] The ratio between the amount of data read by the data processing device and the amount of data written is greater than a first ratio threshold.
[0203] In some embodiments, sending second control information includes: sending first control information when a second condition is met;
[0204] The second condition includes at least one of the following:
[0205] The read / write scenario of the data processing device is not the second preset scenario;
[0206] The amount of data written by the data processing device exceeds the second data threshold.
[0207] The ratio between the amount of data written by the data processing device and the amount of data read is greater than the second ratio threshold.
[0208] The first or second condition in this embodiment is similar to the first or second condition in the above embodiments, and will not be repeated here.
[0209] In step S4102, the data processing device sends third control information to the memory.
[0210] In some embodiments, the third control information is used to instruct the memory to perform switching control on at least one channel; the at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to the at least one channel to the opposite operation indicated by the first control information or the second control information.
[0211] Optionally, the first control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
[0212] Step S4102 is similar to the data processing device sending third control information in the above embodiment, and will not be described again here.
[0213] In step S4103, the memory receives the third control information.
[0214] In some embodiments, the third control information is used to indicate at least one channel.
[0215] Step S4103 is similar to the memory receiving third control information in the above embodiment, and will not be described again here.
[0216] In step S4104, the second control module of the memory sends fourth control information or fifth control information to one or more fourth communication modules.
[0217] In some embodiments, the fourth control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation, and the fifth control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation; the fourth communication module includes a transmission module and a reception module, the transmission module includes a transmitter, and the reception module includes a receiver; the transmitter is used to send read data to the data processing device, and the receiver is used to receive write data from the data processing device.
[0218] In some embodiments, at least one channel is switched based on third control information. The switching control is to switch the operation corresponding to at least one channel to the operation indicated by the fourth or fifth control information.
[0219] Optionally, the third control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
[0220] The third control information in this embodiment is similar to the third control information in the above embodiments, and will not be described again here.
[0221] Referring to Figure 5, based on Figure 3, if TX1 in Figure 3 is switched to RX, the data processing device's transmission operation and the memory's reception operation must be stopped in the write direction first. Then, the data processing device indicates that the power mode needs to be switched through PACP_PWR_req (switching instruction), which means that the data transmission direction of the channel needs to be switched. After the memory switches, it notifies the channel of the change in data transmission direction through PACP_PWR_conf (switching notification), realizing the operation of switching TX1 to RX. Then, the memory starts the transmission operation, and the data processing device starts the reception operation.
[0222] In some embodiments, terms such as "certain," "preset," "default," "set," "indicated," "a certain," "any," and "first" can be used interchangeably. "Certain A," "preset A," "default A," "set A," "indicated A," "a certain A," "any A," and "first A" can be interpreted as A pre-defined in a protocol or the like, or as A obtained through setting, configuration, or instruction, or as specific A, a certain A, any A, or first A, but are not limited thereto.
[0223] In some embodiments, the names of information, etc., are not limited to the names described in the embodiments. Terms such as "information", "message", "signal", "signaling", "report", "configuration", "indication", "instruction", "command", "channel", "parameter", "domain", "field", "symbol", "symbol", "codebook", "codeword", "codepoint", "bit", "data", "program", and "chip" can be used interchangeably.
[0224] In some embodiments, "acquire," "get," "obtain," "receive," "transmit," "bidirectional transmission," and "send and / or receive" can be used interchangeably and can be interpreted as receiving from other entities, acquiring from protocols, acquiring from higher layers, obtaining through self-processing, or autonomous implementation. Protocols include, for example, at least one of the 3GPP protocol, Wi-Fi protocol, and audio and / or video protocols.
[0225] In some embodiments, terms such as “send,” “transmit,” “report,” “distribute,” “transmit,” “bidirectional transmission,” “send and / or receive” can be used interchangeably.
[0226] In some embodiments, the terms "precoding", "precoder", "weight", "precoding weight", "quasi-co-location (QCL)", "transmission configuration indication (TCI) status", "spatial relation", "spatial domain filter", "transmission power", "phase rotation", "antenna port", "antenna port group", "layer", "the number of layers", "rank", "resource", "resource set", "resource group", "beam", "beam width", "beam angular degree", "antenna", "antenna element", and "panel" can be used interchangeably.
[0227] In some embodiments, if an arrow in the interaction diagram representing the sending of information, signaling, etc. from one subject to another passes through other subjects, it can be interpreted as the information being forwarded from one subject to another via other subjects, or it can be interpreted as the information being sent from one subject to another without passing through other subjects.
[0228] The communication method involved in the embodiments of this disclosure may include at least one of steps S2101 to S2104. For example, any one of steps S2101 to S2104 may be implemented as an independent embodiment, but is not limited thereto.
[0229] In some embodiments, at least one of steps S2102 to S2104 is optional, and one or more of these steps may be omitted or substituted in different embodiments.
[0230] In some embodiments, the steps and their optional implementations in other embodiments described before or after this embodiment, as well as other related parts in the specification, can be referred to, and will not be repeated here.
[0231] In some embodiments, the Unified Storage Device (UFS) specification defines the number of read and write channels for the device to be the same, but in actual user scenarios, the total amount of data read is much greater than that written (nearly 10 times), resulting in hardware resources not meeting actual needs. This application proposes a variable read / write design scheme, which allows the UFS hardware channels to change the corresponding write function to read function at both the host and storage device ends as needed, enabling the storage device to achieve higher performance under the same hardware conditions.
[0232] Optionally, at the hardware level, when used as a write channel, the host acts as the data transmitter (TX) and the memory acts as the data receiver (RX). In the hardware design of this solution, the original data transmitter (TX) of the host needs to have an additional spare receiver module (for analog signals, it includes an RX switching switch; for digital signals, it includes a decoder and a DDR buffer), and the original receiver (RX) of the memory needs to have an additional spare transmitter module (for analog signals, it includes a TX switching switch; for digital signals, it includes a coder and a read buffer). Normally, this channel is used as a write channel (the host is TX, and the memory is RX). When the host needs to increase bandwidth, the write channel is switched to a read channel, and the internal module of the host switches to the receiver (RX), while the internal module of the memory switches to the transmitter (TX). In this way, the original 150% read bandwidth can be achieved, and as a resource exchange, the write bandwidth is reduced to 50% of the original.
[0233] Optionally, at the software level, in addition to the top-level UFS protocol, the intermediate and bottom-level Unipro communication packets PACP (PHY Adapter Control Protocol) also need to be modified accordingly. In the software design of this solution, a parameter field needs to be added to the channel capability parameter table (PACP_CAP_EXT2_ind) to indicate the channel direction. The default channel setting at power-on is 2 reads and 2 writes. Once the application scenario requires an increase in read bandwidth, the system can, after confirming that the device supports the switch, first request a read / write switch via PACP_PWR_req. After receiving the command, the device will then notify the change in channel direction via PACP_PWR_conf. In this way, the hardware resources of the entire interface can be changed from a 2 read / 2 write allocation to a 3 read / 1 write allocation. The switching process does not require re-initialization, saving a lot of time. The same method can also be used to switch back to the initial 2 read / 2 write setting.
[0234] In the embodiments disclosed herein, this solution can provide higher read and write performance to support the diverse scenario requirements of edge AI.
[0235] For example, the read channel is enhanced and can be expanded to 3 reads and 1 write, or 4 reads and 0 writes.
[0236] For example, write channel enhancement can be scaled to 3 writes and 1 read, or 4 writes and 0 reads.
[0237] Alternatively, if the original specification supports 2 reads and 2 writes or 4 reads and 4 writes, increasing bandwidth requires changing the package and adding hardware interfaces. However, this solution does not require changing the package. Without changing the package pins, it can increase read and write bandwidth by 50%-100% through read and write resource swapping, thus minimizing the increase in cost.
[0238] In addition, if the original specification is used, and the material interface supports 4 reads and 4 writes, both the materials and the PCB need to be replaced. Once the project is started, it cannot be modified. However, this solution is backward compatible with the original system. While keeping the original number of PCB traces and pads, higher bandwidth can be achieved through software and material support.
[0239] In some embodiments, the steps and their optional implementations in other embodiments described before or after this embodiment, as well as other related parts in the specification, can be referred to, and will not be repeated here.
[0240] This disclosure also provides embodiments of apparatus for implementing any of the above methods. For example, an apparatus is provided that includes units or modules for implementing the steps performed by the data processing apparatus in any of the above methods. Furthermore, another apparatus is provided that includes units or modules for implementing the steps performed by the memory in any of the above methods.
[0241] It should be understood that the division of units or modules in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, the units or modules in the device can be implemented by a data processing device calling software: for example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of the units or modules in the above device. The processor is, for example, a Central Processing Unit (CPU) or a microprocessor, and the memory is either internal or external to the device. Alternatively, the units or modules in the device can be implemented in the form of hardware circuits. The functionality of some or all of the units or modules can be achieved through the design of these hardware circuits, which can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC). The functionality of some or all of the units or modules is achieved through the design of the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a programmable logic device (PLD). Taking a field-programmable gate array (FPGA) as an example, it can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files, thereby achieving the functionality of some or all of the units or modules. All units or modules of the above device can be implemented entirely through processor-called software, entirely through hardware circuits, or partially through processor-called software with the remaining parts implemented through hardware circuits.
[0242] In this embodiment, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a Central Processing Unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the aforementioned hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units or modules. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), a Tensor Processing Unit (TPU), or a Deep Learning Processing Unit (DPU).
[0243] This disclosure also proposes a storage medium storing instructions that, when executed on a data processing device or memory, cause the data processing device or memory to perform any of the above methods. Optionally, the storage medium is an electronic storage medium. Optionally, the storage medium is a computer-readable storage medium, but not limited thereto; it may also be a storage medium readable by other devices. Optionally, the storage medium may be a non-transitory storage medium, but not limited thereto; it may also be a temporary storage medium.
[0244] This disclosure also proposes a program product, including a program and / or instructions, which, when executed by a data processing apparatus or a memory, cause the data processing apparatus or memory to perform any of the above methods. Optionally, the program product is a computer program product. Optionally, the program product is stored on the storage medium.
[0245] This disclosure also proposes a computer program that, when run on a computer, causes the computer to perform any of the above methods.
Claims
1. A data processing apparatus, wherein, The device includes a first control module and one or more first communication modules. The first communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send write data to the memory, and the receiver is used to receive read data from the memory. The first control module is used to send first control information or second control information to one or more of the first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
2. The data processing apparatus according to claim 1, wherein, The data processing device includes one or more second communication modules, which include a sending module but do not include a receiving module.
3. The data processing apparatus according to claim 1 or 2, wherein, The data processing device includes one or more third communication modules, which include a receiving module but do not include a sending module.
4. The data processing apparatus according to claim 1, wherein, Sending the first control information includes: sending the first control information when a first condition is met; The first condition includes at least one of the following: The read / write scenario of the data processing device is not the first preset scenario; The amount of data read by the data processing device is greater than the first data threshold. The ratio between the amount of data read and the amount of data written by the data processing device is greater than a first ratio threshold.
5. The data processing apparatus according to claim 1, wherein, Sending the second control information includes: sending the first control information when the second condition is met; The second condition includes at least one of the following: The read / write scenario of the data processing device is not the second preset scenario; The amount of data written by the data processing device is greater than the second data threshold. The ratio between the amount of data written and the amount of data read by the data processing device is greater than a second ratio threshold.
6. The data processing apparatus according to claim 1, wherein, The first control module is further configured to send third control information to the memory, the third control information being used to instruct the memory to perform switching control on at least one channel; The at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to the at least one channel to the opposite operation indicated by the first control information or the second control information.
7. The data processing apparatus according to claim 6, wherein, The third control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
8. A memory, wherein, The device includes a second control module and one or more fourth communication modules. The fourth communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send read data to the data processing device, and the receiver is used to receive write data from the data processing device. The second control module is used to send fourth control information or fifth control information to one or more of the fourth communication modules. The fourth control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The fifth control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation.
9. The memory according to claim 8, wherein, The memory includes one or more fifth communication modules, which include a transmitting module but do not include a receiving module.
10. The memory according to claim 8 or 9, wherein, The memory includes one or more sixth communication modules, which include a receiving module but do not include a transmitting module.
11. The memory according to claim 8, wherein, The second control module is also used to perform switching control on at least one channel based on the received third control information; The at least one channel is the channel indicated by the third control information, and the switching control is to switch the operation corresponding to the at least one channel to the operation indicated by the fourth control information or the fifth control information.
12. The memory according to claim 11, wherein, The third control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
13. A switching method, wherein, The method is applied in the data processing apparatus as described in any one of claims 1 to 7, the method comprising: The first control module sends first control information or second control information to one or more first communication modules. The first control information is used to control the stopping of the transmitter's transmission operation and the starting of the receiver's reception operation. The second control information is used to control the stopping of the receiver's reception operation and the starting of the transmitter's transmission operation. The first communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send write data to the memory, and the receiver is used to receive read data from the memory.
14. The method according to claim 13, wherein, The sending of the first control information includes: When the first condition is met, send the first control information; The first condition includes at least one of the following: The read / write scenario of the data processing device is not the first preset scenario; The amount of data read by the data processing device is greater than the first data threshold. The ratio between the amount of data read and the amount of data written by the data processing device is greater than a first ratio threshold.
15. The method according to claim 13, wherein, Sending the second control information includes: sending the first control information when the second condition is met; The second condition includes at least one of the following: The read / write scenario of the data processing device is not the second preset scenario; The amount of data written by the data processing device is greater than the second data threshold. The ratio between the amount of data written and the amount of data read by the data processing device is greater than a second ratio threshold.
16. The method according to claim 13, wherein, The method further includes: Send third control information to the memory, the third control information being used to instruct the memory to perform switching control on at least one channel; The at least one channel is the channel corresponding to the first communication module that receives the first control information or the second control information, and the switching control is to switch the operation corresponding to the at least one channel to the opposite operation indicated by the first control information or the second control information.
17. The method according to claim 16, wherein, The first control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
18. A switching method, wherein, The method is applied to the memory as described in any one of claims 8 to 12, and the method includes: The second control module sends a fourth control message or a fifth control message to one or more fourth communication modules. The fourth control message is used to control the transmitter to stop its transmission operation and start the receiver's reception operation. The fifth control message is used to control the receiver to stop its reception operation and start the transmitter's transmission operation. The fourth communication module includes a sending module and a receiving module. The sending module includes a transmitter, and the receiving module includes a receiver. The transmitter is used to send read data to the data processing device, and the receiver is used to receive write data from the data processing device.
19. The method according to claim 18, wherein, The method further includes: Receive third control information, the third control information being used to indicate at least one channel; Based on the third control information, at least one channel is switched, wherein the switching control is to switch the operation corresponding to the at least one channel to the operation indicated by the fourth control information or the fifth control information.
20. The method according to claim 19, wherein, The third control information includes multiple indication information, each of which indicates the data transmission direction in the corresponding channel. The data transmission direction includes sending write data to the memory or receiving read data from the memory.
21. A switching method for a storage system, the storage system comprising a data processing device and a memory, wherein, The method includes: The data processing device is used to execute the switching method as described in any one of claims 13-17, and the memory is used to execute the switching method as described in any one of claims 18 to 20.
22. A storage system, wherein, It includes at least one of a data processing device and a memory, wherein the data processing device is the data processing device according to any one of claims 1 to 7, and the memory is the memory according to any one of claims 8 to 12.
23. A storage medium storing instructions, wherein, When the instruction is executed on a data processing device or a memory, it causes the data processing device or memory to perform the switching method as described in any one of claims 13-17, or to perform the switching method as described in any one of claims 18 to 20.
24. A program product comprising at least one of a program and instructions, wherein, When at least one of the programs or instructions is executed by a data processing device or a memory, it implements the switching method as described in any one of claims 13-17, or implements the switching method as described in any one of claims 18 to 20.
