In addition to the changes in commit ee2c9b005b5a ("axxia:
use udelay instead of usleep in kexec/kdump routine") to fix a bug
as below:

BUG: scheduling while atomic: cpuhotplug03.sh/798/0x00000000
Modules linked in: sch_fq_codel openvswitch nsh nf_conncount nf_nat 
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse configfs
CPU: 14 PID: 798 Comm: cpuhotplug03.sh Tainted: G        W         
5.15.74-yocto-standard #1
Hardware name: INTEL Axxia
[<c0411bec>] (unwind_backtrace) from [<c040bba0>] (show_stack+0x18/0x1c)
[<c040bba0>] (show_stack) from [<c0f041e4>] (dump_stack_lvl+0x40/0x4c)
[<c0f041e4>] (dump_stack_lvl) from [<c045a1a8>] (__schedule_bug+0x74/0x88)
[<c045a1a8>] (__schedule_bug) from [<c0f0c530>] (__schedule+0x49c/0x774)
[<c0f0c530>] (__schedule) from [<c0f0c8b4>] (schedule+0xac/0x110)
[<c0f0c8b4>] (schedule) from [<c0f11c10>] (schedule_timeout+0xa4/0x1b0)
[<c0f11c10>] (schedule_timeout) from [<c0f0d520>] 
(wait_for_completion_timeout+0x90/0xfc)
[<c0f0d520>] (wait_for_completion_timeout) from [<c040f350>] 
(__cpu_up+0x100/0x174)
[<c040f350>] (__cpu_up) from [<c042bfb4>] (bringup_cpu+0x24/0x2dc)
[<c042bfb4>] (bringup_cpu) from [<c042c7d4>] (cpuhp_invoke_callback+0x19c/0x948)
[<c042c7d4>] (cpuhp_invoke_callback) from [<c042cfec>] 
(cpuhp_invoke_callback_range+0x6c/0xac)
[<c042cfec>] (cpuhp_invoke_callback_range) from [<c042dfe0>] 
(_cpu_up+0x118/0x2a8)
[<c042dfe0>] (_cpu_up) from [<c042e1d0>] (cpu_up+0x60/0x94)
[<c042e1d0>] (cpu_up) from [<c0b16640>] (device_online+0x74/0x98)
[<c0b16640>] (device_online) from [<c0b1672c>] (online_store+0xc8/0xd8)
[<c0b1672c>] (online_store) from [<c06ddc88>] 
(kernfs_fop_write_iter+0x114/0x1d4)
[<c06ddc88>] (kernfs_fop_write_iter) from [<c062bc34>] (vfs_write+0x310/0x444)
[<c062bc34>] (vfs_write) from [<c062d1e8>] (ksys_write+0x6c/0xe4)
[<c062d1e8>] (ksys_write) from [<c0400060>] (ret_fast_syscall+0x0/0x40)

Signed-off-by: Liwei Song <[email protected]>
---
 arch/arm/mach-axxia/axxia_power_management.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-axxia/axxia_power_management.c 
b/arch/arm/mach-axxia/axxia_power_management.c
index a05213735831..ea0621983e9c 100644
--- a/arch/arm/mach-axxia/axxia_power_management.c
+++ b/arch/arm/mach-axxia/axxia_power_management.c
@@ -711,7 +711,7 @@ static int pm_cpu_physical_connection_and_power_up(int cpu)
        /* Continue stage 2 power up of the CPU*/
        pm_or_bits_syscon_register(NSP_PWRUPCPUSTG2, mask);
 
-       usleep_range(16, 17);
+       udelay(17);
 
        /* Initiate power up of HS Rams */
        pm_or_bits_syscon_register(NSP_PWRUPCPURAM, mask);
@@ -728,7 +728,7 @@ static int pm_cpu_physical_connection_and_power_up(int cpu)
        /* Release the CPU's isolation clamps */
        pm_clear_bits_syscon_register(NSP_ISOLATECPU, mask);
 
-       usleep_range(16, 17);
+       udelay(17);
 
 power_up_cleanup:
 
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11867): 
https://lists.yoctoproject.org/g/linux-yocto/message/11867
Mute This Topic: https://lists.yoctoproject.org/mt/94932755/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to