Host wake-up method

By introducing a sleep and wake-up module and a PERST processing module in the PCIe to USB chip, the link status is judged to determine the wake-up signal, and the problem that non-standard hosts cannot wake up in L1 mode is solved, and the standard and non-standard hosts are realized Wake-up capability ensures link stability.

CN118796291BActive Publication Date: 2024-11-19成都星拓微电子科技股份有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411269285.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-19
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

The existing PCIe wake-up technology is difficult to compatible with non-standard hosts, especially the problem that the PCIe link cannot wake up through the PCIe link after entering L1 mode.

Method used

By introducing a sleep and wake-up module and a PERST processing module in the PCIe to USB chip, the link status is judged and whether to pull the wake-up signal down or send a PME message is sent to ensure that the non-standard host is correctly awakened.

Benefits of technology

The ability to wake up the host through USB devices on both standard and non-standard hosts is realized, avoiding error reset operations and ensuring the stability of the PCIe link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796291B_ABST
    Figure CN118796291B_ABST
Patent Text Reader

Abstract

The present invention discloses a host wake-up method. In order to overcome the defect that a non-standard host cannot be awakened by a traditional PCIe method, the host wake-up method of the present invention comprises the following steps: a USB device sends a remote wake-up request to a USB host module; the USB host module sends a first wake-up signal to a sleep and wake-up module in a PCIe module; the sleep and wake-up module obtains a link state from an LTSSM module, and judges whether it is in L1 mode according to the obtained link state; if the judgment result indicates that it is in L1 mode, it further judges whether a PERST signal obtained from a PCIe slot is at a low level; if the judgment result indicates that the PERST signal is at a low level, the second wake-up signal sent by the sleep and wake-up module to the PCIe slot is pulled down; if the judgment result indicates that the PERST signal is at a high level, a PME message is sent to the PCIe slot to wake up the host. The present invention achieves the technical effect of waking up a non-standard host by a PCIe method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a host waking-up method. Background Art

[0002] In this professional field, Peripheral Component Interconnect express (PCIe) and Universal Serial Bus (USB) are two widely recognized interface technologies. Modern computer systems generally use PCIe as their internal high-speed bus standard, and integrate multiple PCIe slots on the motherboard so that additional hardware devices can be directly connected to the central processing unit through these slots. At the same time, most computers are equipped with USB host controller interfaces for connecting various USB peripherals. It is worth noting that many USB host interfaces actually communicate with the CPU via the PCIe bus. For this reason, PCIe to USB conversion chips or circuit modules are specially designed to achieve signal adaptation and conversion between PCIe slots and USB interfaces.

[0003] To optimize energy efficiency, computers enter a low-power standby state or hibernation mode when they are idle or have no tasks to perform, rather than shutting down completely, thereby avoiding the time loss caused by restarting. During hibernation, if the computer needs to be reactivated, a wake-up event is usually triggered by a device connected to the USB host interface (for example, keyboard input). The specific process involves the USB device sending a wake-up signal to the USB host module in the PCIe to USB chip, which is then forwarded to the PCIe part, which in turn conveys specific wake-up instructions to the system host.

[0004] In a typical sleep management strategy, the PCIe link switches to a low-power mode such as L1 mode or L2 mode to save energy. In standard operating procedures, the L1 mode maintains the PCIe reset signal (PciE ReSeT, PERST) signal at a high level to ensure that the reference clock is valid and the main power is not cut off. Once a wake-up request is received, the PCIe device in L1 mode will use the Power Management Event (Power Management Event, PME) message to notify the host through the link, prompting the host to exit sleep and instruct all PCIe End Points (End Point, EP) to exit L1 mode.

[0005] In contrast, in L2 mode, the PERST signal is pulled low to indicate that the main power is disconnected and the reference clock is stopped, rather than indicating a reset signal. The wake-up operation relies on pulling the external wake-up signal low, as link communication is not available at this stage. When the host wakes up, it will restart the main power and clock source to resume PCIe link activity.

[0006] However, there are some non-standard hosts on the market whose management and wake-up mechanisms for PCIe links during sleep are different from the above standard practices, making it difficult to apply existing wake-up technologies to these special devices.

[0007] After these computers enter hibernation, not only will the PCIe link switch to L1 mode, but the PERST signal will also be abnormally pulled down, and the main power will be cut off, relying only on pulling down the out-of-band wake-up signal as a wake-up method. This peculiar behavior challenges the existing PCIe wake-up solution, and there is an urgent need to develop a new wake-up mechanism to be compatible with and solve this type of non-standard host wake-up problem.

[0008] In summary, the behavior of a non-standard host after entering sleep mode is different from that of a standard host, mainly in the following aspects:

[0009] (1) After a standard host enters sleep mode, it can selectively put the PCIe link into L1 mode or L2 mode, while a non-standard host can only put the PCIe link into L1 mode.

[0010] (2) After a standard host enters L2 mode, it will pull down the PERST signal, turn off the reference clock, and remove the main power supply. After a non-standard host enters L1 mode, it will also pull down the PERST signal, turn off the reference clock, and remove the main power supply.

[0011] (3) After a standard host enters L1 mode, the PCIe device can send a PME message through the PCIe link to wake up the host, while a standard host needs to be awakened using a wake-up signal only in L2 mode; and a non-standard host needs to be awakened by pulling down the wake-up signal.

[0012] In addition, the PCIe endpoint chips currently on the market must enter L2 mode and receive a wake-up signal from the application layer before pulling down the wake-up signal of the PCIe link. In L1 mode, the wake-up signal cannot be sent. Moreover, in L1 mode, the PCIe PERST signal is used as a reset signal instead of a main power removal signal. Therefore, when the PERST signal is pulled low, the entire chip will be reset, thereby losing all configuration information, and the PCIe link will be disconnected, causing the connection between PCIe and the host to fail.

[0013] For some non-standard hosts on the market, since their behavior after entering sleep mode is different from that of traditional standard hosts, they cannot be awakened by traditional PCIe wake-up methods. The present invention is mainly to solve the problem that such non-standard hosts cannot be awakened by PCIe links when the PCIe links enter L1 mode. Summary of the invention

[0014] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:

[0015] A host wake-up method is applied to a PCIe to USB chip, comprising the following steps: a USB device sends a remote wake-up request to a USB host module; the USB host module sends a first wake-up signal to a sleep and wake-up module in a PCIe module; the sleep and wake-up module obtains a link state from an LTSSM module, and determines whether it is in L1 mode according to the obtained link state; if the judgment result indicates that it is in L1 mode, further determining whether a PERST signal obtained from a PCIe slot is at a low level; if the judgment result indicates that the PERST signal is at a low level, pulling down a second wake-up signal sent by the sleep and wake-up module to the PCIe slot. signal; if the judgment result indicates that the PERST signal is a high level, a PME message is sent to the PCIe slot to wake up the host; in addition, the PCIe module also includes a PERST processing module; when the PERST processing module in the PCIe module receives the PERST signal, it determines whether the PERST signal is a low level; if so, it further determines whether the link status is in L1 mode or L2 mode; if the judgment result indicates that the link status is not in L1 mode or L2 mode, the PCIe to USB chip is reset; wherein, the PCIe to USB chip includes the PCIe module and the USB host module.

[0016] Furthermore, the USB host module sending the first wake-up signal specifically includes: the power consumption control module in the USB host module sending the first wake-up signal.

[0017] Furthermore, the USB device is a keyboard or a mouse.

[0018] Furthermore, the LTSSM module sends the link status to the PERST processing module and the sleep and wake-up module.

[0019] Further, the host is a standard host or a non-standard host.

[0020] The technical solution of the present invention has one or more of the following beneficial technical effects:

[0021] The present invention can realize the purpose of waking up the host through the USB device on a standard host, and can also realize the purpose of waking up the host through the USB device on a non-standard host.

[0022] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a structural block diagram of the PCIe to USB chip of the present invention;

[0024] Figure 2 It is the information processing flow chart of the PERST processing module;

[0025] Figure 3 It is the information processing flow chart of the sleep and wake-up module. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.

[0028] Figure 1 The PCIe to USB chip structure block diagram of the present invention. The PCIe to USB chip includes a PCIe module and a USB host module. The USB host module includes a USB port 1 and a USB port 2, and establishes data connection with various types of USB devices, such as a keyboard and a mouse, through the USB port 1 and the USB port 2 respectively, with the help of cables. The PCIe module in the PCIe to USB chip establishes a data connection with the PCIe slot through the first interface, and the PCIe module also establishes a data connection with the USB host module through the second interface.

[0029] The PCIe module includes: a sleep and wake-up module, a PERST processing module, a Link Training and Status State Machine (LTSSM) module, a physical layer, a data link layer, a transaction layer, and an application interface layer. Among them, the physical layer, the data link layer, the transaction layer, and the application interface layer are common knowledge in the art and will not be described here.

[0030] For example, the LTSSM module may send a link status to the PERST processing module and the sleep and wake-up module, where the link status may include an L1 mode and an L2 mode.

[0031] In the present invention, L0 mode, L1 mode and L2 mode are all common technical terms in the art and are common knowledge to those skilled in the art.

[0032] In the present invention, multiple data links can be established in the first interface. For example, the sleep and wake-up module sends a second wake-up signal to the PCIe slot; the PCIe slot sends a PERST signal to the PERST processing module in the PCIe module; the PCIe slot sends a clock signal CLKP, a clock signal CLKN and a data signal PCIe_RX to the PCIe module, and the PCIe module sends a request clock CLKREQ and a data signal PCIe_TX to the PCIe slot. The specific means of establishing these data links belong to the common technical knowledge in this field and will not be repeated here.

[0033] The USB host module includes a power consumption control module, an eXtensible Host Controller Interface (xHCI) controller and a root hub. The USB host module, specifically the power consumption control module in the USB host module, sends a first wake-up signal to the sleep and wake-up module. The xHCI controller and the root hub are common knowledge in the art and will not be described in detail here.

[0034] Figure 2 This is the information processing flow chart of the PERST processing module. The PERST processing module receives the PERST signal from the PCIe slot. After receiving the PERST signal, it determines whether the PERST signal is at a low level. If not, no processing is performed. If yes, it further determines whether the current link is in L1 mode or L2 mode based on the link status sent by the LTSSM module. If yes, no processing is performed; if not, the PCIe to USB chip is reset.

[0035] In other words, after the link enters L1 mode, if the PERST signal received is at a low level, the reset operation will not be performed, thereby preventing a non-standard host from pulling down the PERST signal in L1 mode and preventing an erroneous reset of the PCIe to USB chip.

[0036] Figure 3 This is the information processing flow chart of the sleep and wake-up module. The sleep and wake-up module receives the first wake-up signal from the power consumption control module and determines whether the link is in L1 mode. If not, no processing is performed. If yes, further determine whether the PERST signal is at a low level. If no, send a PME message to wake up the host. If yes, pull down the second wake-up signal to wake up the host.

[0037] In other words, after the link enters L1 mode, after receiving the first wake-up signal sent by the sleep and wake-up module in the USB host, it does not directly send a PME message according to the traditional solution, but further determines whether the PERST signal is a low level, and decides to send a PME message based on this.

[0038] An example process for a non-standard host to enter L1 mode and be remotely woken up by a USB device is:

[0039] The host changes the PCIe power management device power management state (D-States) from D0 to D3, where D0 represents the device fully on state and D3 represents the device fully off state. Then, the remote wake-up function of the USB device is enabled and the host enters low power mode.

[0040] Then, after negotiation between the host and the PCIe module, they enter L1 mode and pull down the PERST signal.

[0041] At this time, according to the aforementioned technical solution of the present invention, after the PCIe module detects that the PERST signal is low, combined with the current L1 mode, it will not reset the PCIe to USB chip, thereby avoiding erroneous reset operations.

[0042] Thereafter, when the user sends a remote wake-up request to the USB host module through the USB device, according to the technical solution of the present invention, the USB host module sends a first wake-up signal to the sleep and wake-up module.

[0043] After receiving the first wake-up signal, the PCIe module does not send a PME message in the traditional way, but pulls down the second wake-up signal, negotiates with the host to exit the L1 mode, and enter the L0 mode.

[0044] Through the above scheme, the present invention can realize the purpose of waking up the host through the USB device on a standard host, and can also realize the purpose of waking up the host through the USB device on a non-standard host.

[0045] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0046] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A host wake-up method, applied to a PCIe to USB chip, characterized in that: The steps include: The USB device sends a remote wake-up request to the USB host module; The USB host module sends a first wake-up signal to the sleep and wake-up module in the PCIe module; The sleep and wake-up module obtains the link status from the LTSSM module and determines whether it is in L1 mode according to the obtained link status; If the determination result indicates that the mode is L1, it is further determined whether the PERST signal obtained from the PCIe slot is at a low level; If the judgment result indicates that the PERST signal is at a low level, the second wake-up signal sent by the sleep and wake-up module to the PCIe slot is pulled low; If the judgment result indicates that the PERST signal is at a high level, a PME message is sent to the PCIe slot to wake up the host; in addition, The PCIe module also includes a PERST processing module; When the PERST processing module in the PCIe module receives the PERST signal, it determines whether the PERST signal is at a low level; If yes, then further determine whether the link status is in L1 mode or L2 mode; If the judgment result indicates that the link state is not in L1 mode or L2 mode, the PCIe to USB chip is reset; wherein, The PCIe to USB chip includes the PCIe module and the USB host module.

2. The host wake-up method according to claim 1, characterized in that: The USB host module sends the first wake-up signal specifically as follows: The power consumption control module in the USB host module sends the first wake-up signal.

3. The host wake-up method according to claim 2, characterized in that: The USB device is a keyboard or a mouse.

4. The host wake-up method according to claim 3, characterized in that: The LTSSM module sends the link status to the PERST processing module and the sleep and wake-up module.

5. The host wake-up method according to claim 4, characterized in that: The host is a standard host or a non-standard host.

Citation Information

Patent Citations

  • Tap-to-wake and tap-to-login near field communication (NFC) device

    CN107741780A

  • Phytium platform based PCIE link device standby and recovery method

    CN107957885A

  • PCIe DETERMINISTIC LINK TRAINING USING OOB COMMUNICATIONS AND ENUMERATION OPTIMIZATION DURING DIFFERENT POWER-UP STATES

    US20230086027A1

  • Mechanism To Reduce Exit Latency For Deeper Power Saving Modes L2 In PCIe

    US20240061795A1

  • Power management for PCI express

    US9467120B1