+21
−2
Loading
mainline inclusion from mainline-v6.1-rc1 commit 91cefefb category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9VPZ8 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91cefefb699120efd0a5ba345d12626b688f86ce ---------------------------------------- Currently, the function waiting for completion of mailbox operation is 'wait_for_completion()'. The PCC method will be permanently blocked if this mailbox message fails to execute. So this patch replaces it with 'wait_for_completion_timeout()'. And set the timeout interval to an arbitrary retries on top of nominal to prevent the remote processor is slow to respond to PCC commands. Fixes: 77e2a047 ("ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype") Signed-off-by:Huisong Li <lihuisong@huawei.com> Reviewed-by:
Sudeep Holla <sudeep.holla@arm.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Zhang Zekun <zhangzekun11@huawei.com>