OrangePi_CM5/drivers/cpuidle
Maulik Shah 1eb5992d60 ANDROID: cpuidle-psci: Fix suspicious RCU usage
This change fixes suspicious RCU usage warnings from vendor hook.

    =============================
    WARNING: suspicious RCU usage
    5.15.41-debug-gc1163f69ba3b-dirty #1 Not tainted
    -----------------------------
    include/trace/events/lock.h:37 suspicious rcu_dereference_check() usage!

    other info that might help us debug this:

    rcu_scheduler_active = 2, debug_locks = 1
    RCU used illegally from extended quiescent state!
    no locks held by swapper/0/0.

    stack backtrace:
    CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.41-debug-gc1163f69ba3b-dirty #1

    Call trace:
     dump_backtrace+0x0/0x1d8
     dump_stack+0x1c/0x4c
    ..
    ..
     _printk+0x58/0x84
     lockdep_rcu_suspicious+0x44/0x15c
     trace_android_vh_printk_caller_id+0xc4/0x13c
     vprintk_store+0x54/0x59c
     vprintk_emit+0x8c/0x130
     vprintk_default+0x48/0x74
     vprintk+0xf8/0x13c
     _printk+0x58/0x84
     lockdep_rcu_suspicious+0x44/0x15c
     trace_android_vh_cpuidle_psci_enter+0xc4/0x144
     __psci_enter_domain_idle_state+0x64/0x118
     psci_enter_domain_idle_state+0x1c/0x2c
     cpuidle_enter_state+0x14c/0x2fc
     cpuidle_enter+0x3c/0x58

Bug: 267847290
Fixes: 3567f516024d ("ANDROID: cpuidle-psci: Add vendor hook for cpuidle psci enter and exit")
Change-Id: I910a6a0595c3a79b75e581297eb56d512ce5885c
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2023-02-09 18:20:25 +00:00
..
governors
…
Kconfig
…
Kconfig.arm
…
Kconfig.mips
…
Kconfig.powerpc
…
Makefile
…
coupled.c
…
cpuidle-arm.c
…
cpuidle-at91.c
…
cpuidle-big_little.c
…
cpuidle-calxeda.c
…
cpuidle-clps711x.c
…
cpuidle-cps.c
…
cpuidle-exynos.c
…
cpuidle-haltpoll.c
…
cpuidle-kirkwood.c
…
cpuidle-mvebu-v7.c
…
cpuidle-powernv.c
…
cpuidle-psci-domain.c
…
cpuidle-psci.c ANDROID: cpuidle-psci: Fix suspicious RCU usage 2023-02-09 18:20:25 +00:00
cpuidle-psci.h
…
cpuidle-pseries.c
…
cpuidle-qcom-spm.c
…
cpuidle-tegra.c
…
cpuidle-ux500.c
…
cpuidle-zynq.c
…
cpuidle.c
…
cpuidle.h
…
driver.c
…
dt_idle_states.c
…
dt_idle_states.h
…
governor.c
…
poll_state.c
…
sysfs.c cpuidle: Fix kobject memory leaks in error paths 2021-11-18 14:04:05 +01:00