Bug 2702 - EHCI:Clear wakeup signal locked in S0 state when device plug in
Summary: EHCI:Clear wakeup signal locked in S0 state when device plug in
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: LeoLiu-oc
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-02 17:35 UTC by LeoLiu-oc
Modified: 2023-08-17 18:16 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2022-11-02 17:35:56 UTC
Description of problem:
If we plug in a LS/FS device on USB2 port of EHCI, it will latch a wakeup
signal in EHCI internal. This is a bug of EHCI for Some project of
ZhaoXin. If enable EHCI runtime suspend and no device attach.
PM core will let EHCI go to D3 to save power. However, once EHCI go to D3,
it will release wakeup signal that latched on device connect to port
during S0. Which will generate a SCI interrupt and bring EHCI to D0.
But without device connect, EHCI will go to D3 again.
So, there is suspend-resume loop and generate SCI interrupt Continuously.

In order to fix this issues, we need to clear the wakeup signal latched
in EHCI when EHCI suspend function is called.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
测试Case:
1	插拔测试:
多次插入拔出device是否能够正常识别
2	RTD3测试
1)	接入KB/mouse然后拔掉
2)	Enable EHCI RTD3 (以EHCI的BDF为00:10.7为例:echo auto >/sys/bus/pci/devices/0000:00:10.7/power/control)
3)	Watch –n.1 “Cat /proc/interrupt | grep acpi” 查看中断是否快速不断增加,
4)	往USB2.0 port接入device查看是否识别

3	Sx state测试
1)	Sx state是burn-in test是否可以pass
2)	让系统进出Sx, 然后插入device是否可以识别
3)	带着device进出Sx state,然后check回来后device是否能够识别


Actual results:


Expected results:
在各种测试case下面,device都可以正识别, EHCI进入RTD3不会导致SCI中断快速增加,Sx state能够正常进出。

Additional info: