The present disclosure claims priority to Chinese Patent Application No. 202311118281.6, filed on Aug. 31, 2023, the entire content of which is incorporated herein by reference.
The present disclosure relates to the computer technology field and, more particularly, to a control method and an electronic device.
A current boot system of an electronic device, such as BIOS code, is typically stored in a separate non-volatile memory on a motherboard of the device, such as flash ROM. Meanwhile, the hard drive (SSD) on the motherboard is usually a module that requires an M.2 slot on the motherboard to enable data interaction and cooperative application between the hard drive and the motherboard. However, the above setup solution leads to high cost for the device, because the device needs a separate chip configured to separately store the data of the boot system and also the slot configured to connect the hard drive module.
The present disclosure provides a control method. The method includes obtaining a trigger signal that changes an operation status of an electronic device and controlling a target storage member of the electronic device to switch to an application mode corresponding to the trigger signal to cause the target storage member to respond to different data read/write operations from the electronic device through different data read/write paths. Configuration parameters of the target storage member are different in different application modes.
The present disclosure further provides a storage apparatus including a main control chip, a storage area, a first data interface, and a second data interface. The main control chip is configured to control configuration parameters of the storage apparatus under different application modes. The storage area has a data read and write channel with the main control chip and is configured to store a data content. The first data interface and the second data interface are connected to the main control chip and configured to form different data read and write paths with the data read and write channels to cause the storage apparatus to respond to a target data read and write operation through the first data interface and/or the second data interface under different application modes.
The present disclosure further provides an electronic device, including a motherboard and a storage apparatus. The storage apparatus includes a main control chip, a storage area, a first data interface, and a second data interface. The main control chip is configured to control configuration parameters of the storage apparatus under different application modes. The storage area has a data read and write channel with the main control chip and is configured to a store data content. The first data interface and the second data interface are connected to the main control chip and configured to form different data read and write paths with the data read and write channels to cause the storage apparatus to respond to a target data read and write operation through the first data interface and/or the second data interface under different application modes.
Embodiments of the present disclosure are described in detail in conjunction with the accompanying drawings, but these descriptions are not intended to limit the present disclosure.
Various modifications can be made to embodiments of the present disclosure. Therefore, the following description should not be considered limiting but merely exemplary. Those skilled in the art can think of other modifications within the scope and spirit of the present disclosure.
The accompanying drawings, which are included in and form the specification, illustrate embodiments of the present disclosure. The accompanying drawings together with the above general description and the following detailed description of embodiments of the present disclosure are used to describe the principle of the present disclosure.
The features of the present disclosure become obvious through the description of non-limiting embodiments of the present disclosure with reference to the accompanying drawings.
Although the present disclosure is described with reference to some embodiments of the present disclosure, those skilled in the art can realize other equivalent forms of the present disclosure, which have the features of the claims and are within the scope of the present disclosure.
In connection with the accompanying drawings, based on the following descriptions, the above and other aspects, features, and advantages of the present disclosure become more obvious.
Hereafter, embodiments of the disclosure are described with reference to the accompanying drawings. However, embodiments of the present disclosure are merely examples of the present disclosure, which can be implemented in various forms. Known and/or repetitive functions and structures are not described in detail to avoid unnecessary or redundant details that may obscure the present disclosure. Therefore, the specific structural and functional details of the present disclosure are not intended to be limiting but merely as a basis for the claims and representative basis for teaching those skilled in the art to use the present disclosure in any appropriately detailed structure.
The phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” used in the specification can refer to the same or different embodiments of the present disclosure.
Embodiments of the present disclosure are described in detail in connection with the accompanying drawings.
As shown in
At S1, a trigger signal that changes an operation status of an electronic device is obtained.
At S2, a target storage member of the electronic device is controlled to switch to an application mode corresponding to the trigger signal to cause the target storage member to respond to different data read/write operations from the electronic device through different data read/write paths. Configuration parameters of the target storage member are different in different application modes.
For example, when the electronic device is in an off status, a user can start up the electronic device to change the operation status of the device and generate a power-on signal (i.e., the trigger signal). The startup can include manual startup, startup based on the pose of the device, startup based on a connection status with some external members, voice signal, remote control signal, user gestures, or a position relative to the device. In some embodiments, the trigger signal can be a power-off signal generated when the user powers off the electronic device to change the operation status of the device in the power-on status. In some other embodiments, the trigger signal can be a standby signal and wake-up signal generated accordingly when the user can perform power-on standby mode on the electronic device or wake up the electronic device to cause the electronic device to switch to a normal operation mode from the standby mode. The corresponding signal generated due to the change in the operation status of the electronic device can be the trigger signal. Of course, the trigger signal or the embodiments of changing the operation status of the electronic device are not limited to the above. Other embodiments can be included. When the operation status of the electronic device is changed, and the trigger signal is generated, the system can respond to the trigger signal to control the target storage member of the electronic device to cause the target storage member to switch to the application mode corresponding to the trigger signal. In the application mode, the target storage member can support the electronic device to respond to different read/write requests of the same or different members of the electronic device in different data read/write paths. That is, the target storage member can include a plurality of different data read/write paths. In general, one storage member can include one data read/write path. However, the target storage member of embodiments of the present disclosure can include the plurality of different data read/write paths. The plurality of different data read/write paths can be used to support the target storage member to respond to corresponding data read/write operations when the electronic device is in different operation statuses. Thus, the electronic device can read/write the target storage data in different operation statuses. For example, the application model can include a sleep mode and a normal mode. The normal operation mode can include a first operation mode and a second operation mode. For example, when the electronic device is switched from the power-off status to the power-on status, the electronic device may need to experience a power-on preparation phase and a power-on completion phase, e.g., loading and running basic input output system or unified extensible firmware interface (BIOS or UEFI) phase, a self-inspection phase and system start-up, and a normal operation phase. The target storage member can be powered on for running in the phase of loading the boot system to provide a data read/write path for some members (e.g., CPU) of the electronic device to call the stored target data (e.g., BIOS mirror file or UEFI mirror file) to complete a corresponding function to realize the power-on preparation phase of the electronic device. In addition, when the electronic device completes the power-on preparation phase and enters the power-on completion phase of the system, the status can also be considered as the change in the operation status of the electronic device. The target storage member can switch modes too. For example, the mode can include powering on more different data read/write pats. The target storage member can power on different read/write paths in different application modes, or limit which path is used to respond to the read/write request of which member in different modes, or respond to the read/write of which stored data, which is not limited. In some embodiments, the different application modes of the target storage member can have different configuration parameters. For example, the operation voltage, the power consumption, the data interface, and the data transfer speed can be different. In addition, with different application modes, the functions that can be realized or the data can be read/written can be different. For example, in an application mode, the target storage member can only support a first function, or only a first portion of data can be read/written. In another application mode, the target storage member can simultaneously support the first function and a second function, or support all data reading and writing. In addition, for different read/write paths, the configuration parameters can be different, e.g., the data transfer speed, data format, and data type.
Based on the above, the beneficial effects of embodiments of the present disclosure can include improving the functionality of the existing target storage member to reuse the target storage member. Thus, when the operation mode of the electronic device is changed, the target storage member can respond to different data read/write requests in the device with different application modes and different read/write paths. Thus, the electronic device may not need to include too many storage members that have a single-function, store only one type of data, or operate in one condition. The manufacturing cost of the device can be saved, and the arrangement space inside the device can be saved.
In some embodiments, controlling the target storage member of the electronic device to switch to the application mode corresponding to the trigger signal can include the following processes.
At S3, in response to obtaining the first trigger signal of switching the electronic device from a first operation status to a second operation status, the boot system of the electronic device is loaded for running from the target storage member in the first application mode.
At S4, after the boot system completes a target task, the target storage member is controlled to switch from the first application mode to the second application mode to at least respond to the data read/write operations of the target storage member of the electronic device.
The power consumption of the target storage member in the first application mode can be less than the power consumption in the second application mode.
For example,
In some other embodiments, controlling the target storage member of the electronic device to switch to an application mode corresponding to the trigger signal is not limited to the above embodiment and can include at least one of:
The power consumption of the target storage member in the second application mode can be greater than the power consumption in the first application mode.
In some embodiments, switching the electronic device from the second operation status to the first operation status can at least be from the power-on status to the standby status of the electronic device. For example, the electronic device can be switched from the normal operation status to the power-off status, or the electronic device can be switched to the power-off status during the power-on self-inspection phase. As the operation status of the electronic device changes, the second trigger signal can be generated. Then, in response to the second trigger signal, the system can control the storage member to switch from the second application mode to the first application mode.
Switching the electronic device from the third operation status to the first operation status can at least include that the electronic device is switched from the normal operation status to the power-off status. As the operation status of the electronic device switches, the system can generate the third trigger signal. In response to the third trigger signal, the system can control the target storage member to switch from the second application mode to the first application mode.
Switching the electronic device from the third operation status to the first operation status at least can include that the electronic device is switched from the normal operation status to the power-off status. With the switching of the operation status of the electronic device, the system can generate the third trigger signal. In response to the third trigger signal, the system can control the target storage member to switch from the second application mode to the first application mode. The electronic device can be switched from the second operation status, the third operation status, or the first operation status to the fourth operation status. In summary, the electronic device can be switched from the power-on status to the power-off status. The first operation status, the second operation status, and the third operation status can be the power-on status, and the further operation status can be the power-off status. As the operation status of the electronic device is switched, the system can generate the fourth trigger signal. In response to the fourth trigger signal, the system can control the target storage member to switch from the second application mode or the first application mode to the third application mode. The first application mode and the second application mode can belong to the power-on application mode, and the third application mode can belong to the power-off mode.
In addition, the electronic device can be switched from the third operation status to the second operation status. For example, the electronic device can at least be switched from the normal operation status to the standby status. As the operation status of the electronic device switches, the system can generate a fifth trigger signal. In response to the fifth trigger signal, the system can control the target storage member to switch from the second application mode to the first application mode. That is, after the electronic device enters the low power consumption mode or ModernStandby mode, the electronic device can control the target storage member to enter the low power consumption mode.
The power consumption of the target storage member in the second application mode can be higher than the power consumption in the first application mode. Based on the configuration and the above embodiments, the first application mode can correspond to the electronic device being in a power-on mode, a standby mode, or another low-power consumption operation mode. For example, an electronic device startup preparation phase can be considered as an electronic device loading operation boot system phase, power-on initialization/power-on self-detection phase, or other modes with only operation member functions. The method for realizing the low power consumption operation mode may not be unique. In some embodiments, the target storage member can operate in the first application mode when the device is in the low-power consumption operation mode. The low-power consumption operation mode may not be unique. However, the low-power consumption operation mode can be determined to be lower than the power consumption of the normal operation mode of the system. For the second application mode, the electronic device can at least be in the normal application mode. The mode, in which the target storage member operates, can ensure that the target storage member can normally perform the task within the function range when the electronic device operates before. The third application mode can be a mode corresponding to the electronic device being powered off. Based on the third application mode, the target storage member of embodiments of the present disclosure can support the electronic device to switch from the power-off status to the power-on status to automatically switch to the first application mode without system control. In some embodiments, the system can also control the target storage member to switch to the first application mode after the device is powered on.
In some other embodiments, controlling the target storage member of the electronic device to switch to an application mode corresponding to the trigger signal can also include: at S8, controlling the target storage member to switch to the corresponding data interface and/or power parameters to respond to different data read/write operations from the electronic device.
For example, the target storage member can include at least two data interfaces. In some embodiments, two data interfaces can be included. The two data interfaces can include a first data interface and a second data interface. The configuration parameters of the two interfaces can be different, and data types, formats, and protocols used for transmission can also be different. When the electronic device generates a target trigger signal due to a change in the operation status, in response to the trigger signal, the system can control the target storage member to switch to the corresponding application mode. For different application modes, the power parameters corresponding to the target storage member and one or all of the data interfaces configured for data transmission can be different. For example, the transmission speed of the first data interface can be lower than that of the second data interface, or the operation voltage required for the first data interface can be lower than the operation voltage required for the second interface. In some other embodiments, the first data interface can be configured to transmit the first type data according to a first protocol, and the second data interface can be configured to transmit the second type data according to a second protocol. Based on this, when the system controls the target storage member to be in the corresponding application mode according to the current trigger signal, the meaning represented by the trigger signal can be determined first, the current status of the device can be determined, and with which power parameter the target storage member operates can be determined based on the status, and which interface needs to be started up to read/write data can match the current status of the device better. For example, when the device is in the power-off status or the sleep status, the required voltage can be low. Thus, the system can control the first data interface of the target storage member to operate. The target storage member can operate with a low voltage and low current parameter. Otherwise, if the electronic device is in the normal application mode, the electronic device can control the target storage member to operate with a normal voltage and normal current parameter. Meanwhile, the second data interface can be started up for use, or the first data interface and the second data interface can be started simultaneously to respond to different data read/write operations of the electronic device. In general, when the electronic device is in the low power operation status, generated read/write operations can be few, and the speed may not need to be too high. Thus, in this status, the first data interface can used to operate to respond to the read/write operation from the electronic device, which can also satisfy the read/write requirement of the device in the status. When the electronic device is in the normal operation status, the read/write quantity of the device may increase, which has a high requirement for the speed. Thus, if the first data interface is used, the device requirement cannot be satisfied. Thus, the second data interface can be used to complete the response.
In practical applications, the number and type of data interfaces are not limited. For example, three or four data interfaces can be provided, and the data interfaces can have different configuration parameters. Some data interfaces can have same configuration parameters, for example, the configuration parameters of the four data interfaces can be the same.
In some embodiments, controlling the target storage member to switch from the first application mode to the second application mode can include:
The speed of the target storage member performing the data reading and writing through the first data interface can be slower than the speed of the target storage member performing the data reading and writing through the second data interface. The power consumption of the target storage member in the first power parameter can be smaller than the power consumption in the second power parameter.
For example, the target storage member of embodiments of the present disclosure can be but is not limited to a hard drive, which can support two different operation modes, including a low power mode and a high-power mode, or a low power consumption mode and a high power consumption mode. For example, as shown in
When the target storage member is controlled to switch from the second application mode to the first application mode, similarly, the system may need to control the data interfaces and power parameters of the target storage member to perform matching and replacement. In some embodiments, the target storage member can be controlled to switch from the second data interface to the first data interface, or the second data interface can be powered off, and the first data interface can be powered on or can continue to maintain the power-on status. Meanwhile, the target storage member can be controlled to switch from the second power parameter to the first power parameter. For example, when the second data interface is powered off, the supply of a path of high voltage can be cut off. Thus, the target storage member can operate currently only based on the low voltage supply, or members that need to continue to operate in the target storage member can be directly adjusted to be in the low voltage mode. That is, the involved members can support the dual-voltage mode to cause the target storage member to operate in the low voltage mode/the lower power operation mode. Thus, the target storage member can respond to the data read/write operation from the electronic device through the first data interface.
Furthermore, controlling, by the system, the target storage member to switch to the corresponding data interface and/or power parameter to respond to different data read/write operations from the electronic device includes:
The speed of the target storage member performing the data reading and writing through the first data interface can be slower than the speed of the target storage member performing the data reading and writing through the second data interface. The power consumption of the target storage member in the first power parameter can be smaller than the power consumption of the target storage member in the second power parameter.
For example, in response to the first trigger signal when the electronic device switches from the standby status to the normal operation status, or when the electronic device switches from the power-off status to the normal operation status, the system can then send an instruction to the target storage member through the first data interface. The address of the boot system data stored in the target storage member can be searched. Then, the system can load the boot system data based on the first data interface to complete loading and running the boot system. After the boot system completes the power-on, power-on initialization of the firmware and hardware, or the power-on self-detection, the system can control the target storage member to switch from the first data interface to the second data interface. The switching can include powering off the first data interface and powering on the second data interface, or powering on the second data interface and maintaining the first data interface to be in the power-on status. In some other embodiments, the data transmission right can be handed over from the first data interface to the second data interface. Thus, in the current application mode, at least most of the read/write operations can be completed by the second data interface. That is, the data read/write operations of the target member of the electronic device can be responded to through the second data interface. In some embodiments, the speed of the target storage member performing the data reading and writing through the first data interface can be slower than the speed of the target storage member performing the data reading and writing through the second data interface, and the power consumption of the target storage member in the first power parameter can be smaller than the power consumption in the second power parameter.
Furthermore, loading and running the boot system of the electronic device through the first data interface of the target storage member can include:
In some embodiments, the target storage member can include a controller and a memory/storage area. The storage area can include a plurality of storage blocks/partitions, and the controller can include a controller core. The controller, for example, can be a main control chip of a hard drive. The data interfaces can be arranged on the controller (main control chip) and connected to the controller core. The first data read/write path can be formed among the first data interface, the controller core, and the storage area. A first storage block can be pre-partitioned in the storage area to store the boot system data. Thus, when the boot system of the electronic device is loaded to run, the controller core can respond to the instruction to call the boot system from the first storage partition of the storage area for the electronic device to load the boot system to run.
As shown in
In some other embodiments, as shown in
When the second data interface is powered on, the target storage member can operate normally. Then, the read/write requests for data outside of the boot system in the storage area can be responded to by the second data interface. The data read/write operation can be then responded to by the third data read/write path formed by the second data interface, the controller core of the target storage member, and the storage area.
In some other embodiments, as shown in
At S15, in response to receiving data read/write operations from the first member and second member of the electronic device, the data read/write operations from the first member and the second member are responded to through the only data read/write channel between the controller core and the storage area of the target storage member with time-sharing. The first member can perform the data read/write operation on the first block of the storage area through the first data interface, and the second member can perform the data read/write operation on the second block of the storage area through the second data interface.
At S16, in response to receiving data read/write operations from the first member and second member of the electronic device, the data read/write operation from the first member can be responded to through the first data read/write channel between the controller core and the storage area of the target storage member, and the data read/write operation from the second member can be responded to through the second data read/write channel between the controller core and the storage area of the target storage member. The first member can perform the data read/write operation on the first block of the storage area through the first data interface, and the second member can perform the data read/write operation on the second block of the storage area through the second data interface.
For example, the storage area can be divided into the first block to store the data of the boot system. To avoid access from the user, the first block can be set to a hidden area, which is invisible to the outside and only visible to the internal system. The other blocks of the storage area can be referred to as a second block. The second block can be visible and can be configured to store data accessible by the user. When the first member and the second member of the electronic device send the read/write requests to the target storage member, in response to the data read/write operations from the first member and the second member of the electronic device, a time-sharing rule can be set. For example, the operation request received by the first data interface can be processed in a first time segment. The operation request received by the second data interface can be processed in a second time segment. The first time segment and the second time segment can be configured alternatively. Thus, no operation request can be missed, and all operation requests can be responded to. In some embodiments, the data read/write operations from the first member and the second member can be responded to through the only data read/write channel between the controller core and the storage area of the target storage member with time sharing. The first member can perform the data read/write operation on the first block of the storage area through the first data interface. The second member can perform the data read/write operation on the second block of the storage area through the second data interface.
In some other embodiments, a priority rule can be set to set the operation request received by the first data interface with a high priority, and the operation request received by the second data interface with a low priority. When the operation requests from the two interfaces are received simultaneously, the controller core can respond to the operation request of the first data interface first, and then respond to the operation request received by the second data interface. In some other embodiments, the priority can be set for the operation requests. A highest priority can be set for the read/write request of the first block. That is, the read/write request of the first block can be responded to first. The other operation requests received by the first data interface and the operation requests received by the second data interface can be performed based on the above priority rule, or the operation requests can be further distinguished to determine a matching priority. Then, the operations can be responded to according to the priority.
In still other embodiments, the only data bus of the controller core and the storage area can be divided. A part of the channel can form a first data channel, and the other part of the channel can form a second data channel. The first data channel can connect the storage block storing the boot system data and the controller core, and the second data channel can connect all other storage blocks of the storage area and the controller core. When the read/write requests simultaneously or separately received from the first data channel and the second data channel are processed, the controller core can perform the reading and writing on the target data through the corresponding data channel based on different read/write requests. For example, in response to obtaining the requests of the data read/write operations from the first member and the second member of the electronic device, the data read/write operations from the first member can be responded to through the first data read/write channel between the controller core and the storage area of the target storage member. The data read/write operation from the second member can be responded to through the second data read/write channel between the controller core and the storage area of the target storage member. The first member can perform the data read/write operation on the first block of the storage area through the first data interface, e.g., the read/write operation to the boot system. The second member can perform the data read/write operation on the second block of the storage area through the second data interface, e.g., the read/write operation to the non-boot system data.
Furthermore, since the function of the boot system is important, if the boot system is damaged or is not accessed due to the damage of the first block, the electronic device cannot start up normally. Thus, to avoid original data loss, the method of embodiments of the present disclosure includes at least one of the following processes.
At S17, in response to the failure to load data from the first block of the storage area of the target storage member, the controller core of the target storage member can search an address from a backup block of the target data file in the first block and loads the target data file from the backup block.
At S18, the storage area of the target storage member is able to operate under two different power parameters simultaneously to simultaneously respond to two different types of data read/write operations.
For example, as shown in
The storage area or at least the block or partition where the backup data of the boot system is stored of embodiments of the present disclosure can operate under two types of different power parameters, for example, 3V3 voltage or 3V3-s voltage. That is, the storage area or at least the block or partition where the backup data of the boot system is stored of embodiments of the present disclosure can support dual-voltage operation to cause the storage area or at least the block or partition to simultaneously respond to the two different types of data read/write operations.
As shown in
The target storage member b2 is arranged at the motherboard al.
The processor c3 is arranged at the motherboard al and is connected to the target storage member b2 to control the target storage member b2 based on the control method above.
That is, the control method can be applied to the processor c3 of the electronic device of embodiments of the present disclosure. The processor c3 can perform the above control method to control the target storage member b2. The electronic device of embodiments of the present disclosure can include but is not limited to a laptop computer and an all-in-one computer.
Some other embodiments of the present disclosure also provide a storage medium. The storage medium can store a program. When the program is running, the device including the storage medium can be controlled to perform the control method above.
Embodiments of the present disclosure also provide a computer program product. The computer program product can be tangibly stored on a computer-readable medium and include computer-readable instructions. When the computer-readable instructions are performed, at least one processor can be caused to perform the control method above. Solutions of embodiments of the present disclosure can have the corresponding technical effects above, which are not repeated here.
Further, as shown in
The main control chip 1 is configured to control the configuration parameters of the storage member in different operation modes.
The storage area 2 includes a data read/write channel with the main control chip 1 and be configured to store data content.
The first data interface 3 and the second data interface 4 are connected to the main control chip 1 and form different data read/write paths with the data read/write channel. Thus, the storage member can respond to the target data read/write operations through the first data interface 3 and/or the second data interface 4 under different application modes.
For example, the storage member can be a hard drive (module), which can include a controller and a memory. The main control chip 1 can form the controller. The first data interface 3 and the second data interface 4 can be arranged at the controller. The storage area 2 can be the memory. The memory can be connected to the controller through the data read/write channel formed by the data bus.
In some embodiments, the main control chip 1 includes a controller core 5, a first interface physical layer 6, and a second interface physical layer 7.
The controller core 5 can store configuration information of the storage member in different operating modes to cause the storage member to operate under different application modes.
The first interface physical layer 6 can be connected to the controller core 5 via a high-speed bus 8 to allow the storage member to provide the second data interface to the outside.
The second interface physical layer 7 can be connected to the controller core 5 via a low-speed bus 9 to allow the storage member to provide a second data interface to the outside.
The storage member can respond to the target data read/write operations through the first data read/write path formed by the controller core 5 and the first interface physical layer 6 and/or through the second data read/write path formed by the controller core 5 and the second interface physical layer 7 under different application modes.
For example, the controller core 5 can include but is not limited to MCU. The second interface can be a PCIE interface corresponding to the first interface physical layer (PHY), which is PCIE PHY shown in
In some other embodiments, as shown in
The controller core 5 can store configuration information of the storage member under different application modes. Thus, the storage member can operate under different application modes.
The first interface physical layer 6 can be connected to the controller core 5 through the high-speed bus 8. Thus, the storage member can provide the first data interface to the outside.
The first bridge chip 10 can be connected to the first interface physical layer 6 through the switch 11. Thus, the storage member can reuse the data channel between the first interface physical layer 6 and the controller core 5 to provide the second data interface to the outside.
Under different application modes, the storage member can respond to the target data read/write operation through the first data read/write path or through the third data read/write path formed by the controller core 5, the first interface physical layer 6, the switch 11, and the first bridge chip 10.
Compared to the above, the second interface physical layer 7 is not included, instead the first bridge chip 10 is provided. The second interface can be connected to the first interface physical layer 6 through the first bridge chip 10 and the switch 11 arranged on the data channel between the first interface and the first interface physical layer 6. Thus, the storage member can reuse the data channel between the first interface physical layer 6 and the controller core 5 to provide the second data interface to the outside. In the first application mod, the storage member can respond to the target data read/write operation through the first data read/write path formed by the controller core 5 and the first interface physical layer 6. In the second application mode, the storage member can respond to the target data read/write operation through the third data read and writer path formed by the controller core 5, the first interface physical layer 6, the switch 11, and the first bridge chip 10.
Further, the storage member can include a first power supply circuit and a second power supply circuit.
The first power supply circuit can be configured to supply power to the main control chip 1 and the storage area 2 through the first data interface.
The second power supply circuit can be configured to supply power to the main control chip 1 and the storage area 2 through the second data interface.
Under different application modes, the storage member can receive the power supply provided to the electronic device through the first power supply circuit and/or the second power supply circuit.
The power supply voltage provided by the first power supply circuit can be greater than the power supply voltage provided by the second power supply circuit.
As shown in
Further, in the storage member, the storage area 2 can include at least one first block 14 and at least one second block 15.
The first block 14 can be configured for a first type data read/write operation.
The second block 15 can be configured for a second type data read/write operation. The second type can be different from the first type.
Under different application modes, the storage member can support different types of data read/write operations.
For example, the first block 14 can be a hidden area and used to store system data, e.g., the boot system data, to start up the electronic device. The first type data can be considered as realizing a certain function of the electronic device, i.e., only for internal use of the device, and can belong to the data type of the system data. The data type can be stored in the first block 14. The first block 14 can be set as invisible to the user to prevent the user from accessing the stored first type data and even changing this type of data to cause operation errors in the device. The second block 15 can be a non-invisible area. The data stored in the second block 15 can be accessed by the user. Under different application modes, the storage member can support different data to realize the read/write operations. For example, in the first application mode, the data of the second block 15 cannot be accessed, and only the data of the first block 14 can be accessed, which is not limited. In some embodiments, even in the first application mode, the storage member can realize the data read/write operation of the second block 15, which is not a normal scenario but a special scenario. In the normal status, in the first application mode, only the first type data can be accessed. In the second application mode, the second type data can be accessed, and the first type data can be accessed.
In some embodiments, the first data read/write channel can be arranged between the controller core 5 of the main control chip and the first block 14, and the second data read/write channel can be arranged between the controller core 5 and the second block 15. Different types of data read/write operations can be responded to through the first data read/write channel or the second data read/write channel.
For example, when only one data bus is provided between the main control chip 1 and the storage area 2, a part of channel can be divided and assigned to the first block 14, and the remaining channel can be assigned to the second block 15. Thus, the two blocks can have corresponding data read/write channels to realize the data read/write operations. In some other embodiments, two data buses can be provided between the main control chip and the storage area, the first data bus can be used to provide service for the first block 14, and the second data bus can be used to provide service for the second block 15. The two data buses can form the first data read/write channel and the second data read/write channel, respectively.
In some other embodiments, the first block 14 and the second block 15 can share the third data read/write channel between the storage area 2 and the controller core 5 of the main control chip 1. The third data read/write channel can respond to the data read/write operations for the first block and the second block at different timing.
For example, only one data bus can be provided between the main control chip 1 and the storage area 2. The data bus can form the third data read/write channel. When the read/write operations of different interfaces are responded to without the above channel division method, the read and write operations can be responded to according to a time-sharing rule. For example, the first time segment and the second time segment can be set alternatively. In the first time segment, the storage member can respond to the data read/write operation for the first block through the third data read and writer channel. In the second time segment, the storage member can respond to the data read/write operation for the second block through the third data read/write channel.
In addition, the third data read/write channel can be reused by a priority setting method. For example, no matter when the data read/write operation for the first block can be responded to first, and then, the data read/write operation for the second block can be responded to.
As shown in
The storage member b can be but is not limited to a hard drive (module). The electronic device can be but is not limited to a laptop computer.
In some other embodiments, the electronic device can further include a power supply management controller c, a first interface pin arranged at the motherboard a and matching the first data interface of the storage member b, and a second interface pin corresponding to the second data interface.
The power supply management controller c can control the power parameter of the storage member through the first power supply circuit connected to the first data interface and/or the second power supply circuit connected to the second data interface when the storage member b is in different application modes.
The first interface pin can be connected to the metal pin of the first data interface through welding. The second interface pin can be connected to the metal pin of the second data interface through welding.
That is, the electronic device can further include the power supply management controller c, which can be connected to the processor and the storage member to adjust the power supply for the storage member according to the instruction of the processor. In some embodiments, two power supply circuits can be provided between the power management controller and the storage member and include the first power supply circuit and the second power supply circuit. The power supply voltages of the two power supply circuits can be different. For example, the voltage of one power supply circuit can be 3V3 voltage, and the voltage of the other power supply circuit can be 3V3-s. The later voltage is smaller than the former voltage. The first power supply circuit can at least supply power to the first data interface. The second power supply circuit can at least supply power to the second data interface. For example, the two power supply circuits can also supply power to the controller and storage area of the storage member. That is, power can be supplied to the device that supports dual-voltage operation.
In some other embodiments, the first interface pin matching the first data interface of the storage member and the second interface pin matching the second data interface can be arranged at the motherboard a. the storage member can be directly arranged at the motherboard. The metal pins (i.e., gold finger) of the two interfaces can be welded to the corresponding pins on the motherboard. Thus, the processor or the power supply management controller arranged on the motherboard can be connected to the storage member through the wires arranged on the motherboard and the pins to supply power or transmit data. That is, based on the setting method of embodiments of the present disclosure, the target storage member can be arranged in the electronic device in an onboard form. Especially for the storage member for storing the boot system, in response to requiring that the storage member storing the boot system data needs to be arranged in the onboard form, the effect can be effectively realized in embodiments of the present disclosure to cause the storage member of embodiments of the present disclosure to support storing the system data such as the boot system.
As shown in
At S1, the trigger signal from the electronic device is obtained. The trigger signal includes a signal triggering the operation status of the electronic device to change and/or a signal of triggering the power parameter of the storage member to change.
At S2, based on the trigger signal, the storage member is controlled to respond to the target data read/write operation through the first data interface and/or the second data interface.
For example, the storage member or a member configured to control the operation of the storage member, e.g., a processor, and a power supply management device, can receive the trigger signal generated by the electronic device based on the operation status change, or the signal capable of triggering the power parameter of the storage member to change. For example, the power supply management device can respond to the operation status change of the device or receive the instruction of the processor to change the power supply voltage for the storage member, and then the trigger signal can be generated. Then, based on the trigger signal, the storage member can be controlled to respond to the target data read/write operation through the first data interface and/or the second data interface. For example, if only the first data interface is turned on, all data read/write requests of the current phase can be responded to through the first data interface. In some other embodiments, only the second data interface can be turned on, and all data read/write requests of the current phase can be responded to through the second data interface. In some other embodiments, the first data interface and the second data interface can be turned on simultaneously, and the data read/write requests matching the interface functions of the current phase can be responded to through the two interfaces.
In some embodiments, based on the trigger signal, controlling the storage member to respond to the target data read/write operation through the first data interface and/or the second data interface can include at least one of the following processes.
At S3, if the trigger signal is used to trigger the electronic device to switch from the first operation status to the second operation status, the storage member is controlled to respond to the first data read/write operation used to cause the electronic device to switch from the first operation status to the second operation status.
At S4, if the trigger signal indicates that the storage member switches from the first power parameter to the second power parameter, the storage member is controlled to respond to the target data read/write operation through the second data interface or respond to the target data read/write operation through the first data interface and the second data interface.
At S5, if the trigger signal indicates that the storage member switches from the second power parameter to the first power parameter or the electronic device switches back to the first operation status, the storage member is controlled to respond to the target data read/write operation through the first data interface.
For example, if the trigger signal indicates that the electronic device switches from the power-off status or standby status to the normal operation status, the storage member can be controlled to respond to the first data read/write operation used to cause the electronic device to switch from the first operation status to the second operation status through the second data interface.
If the trigger signal indicates that the storage member switches from the first power parameter with parameters being low to the second power parameter with parameters being high, for example, from a low voltage status to a high voltage status, and from a low power status to a high power status, the storage member can be controlled to respond to the target data read/write operation through the second data interface or through the first data interface and the second data interface.
If the trigger signal indicates that the storage member switches from the second power parameter to the first power parameter, or the electronic device switches back to the first operation status, i.e., from the high voltage status and high power status to the low voltage status and the low power status, or the device as a whole switches from the normal operation status to the standby status, the storage member can be controlled to respond to the target data read/write operation through the first data interface.
Embodiments of the present disclosure further provide a storage medium. The storage medium can include a stored program. When the program is running, the device including the storage medium can be controlled to perform the above control method for the storage member of embodiments of the present disclosure.
Embodiments of the present disclosure further provide a computer program product. The computer program product can be tangibly stored on a computer-readable medium and include the computer-readable instruction. When the computer-readable instruction is executed, the at least one processor can be caused to perform the control method for the storage member above. The solutions of embodiments of the present disclosure can have the technical effects corresponding to the above method, which is not repeated here.
The above are embodiments of the present disclosure and are not used to limit the present disclosure. The scope of the present disclosure is limited by the claims. Those skilled in the art can make various modifications or equivalent replacements to embodiments of the present disclosure within the essence and scope of the present disclosure. These modifications or equivalent replacements are within the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202311118281.6 | Aug 2023 | CN | national |