Bug 22927 - fix the sleep condition checked of psp_mutex_lock_timeout
Summary: fix the sleep condition checked of psp_mutex_lock_timeout
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-21 16:22 UTC by xiongmengbiao
Modified: 2025-10-09 14:38 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xiongmengbiao hygon_group 2025-07-21 16:22:00 UTC
Description of problem:

Used time_before(jiffies, last_je) in psp_mutex_lock_timeout() which yields CPU too early.

Fixed to time_after(jiffies, last_je + msecs_to_jiffies(100)) for proper 100ms wait.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-07-21 16:30:14 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5531
Comment 2 小龙 admin 2025-10-09 14:38:24 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5846