qcacmn: Disable panic for scheduler timeouts
When a scheduler message starts porcessing,we start the scheduler watchdog timer, and in few cases when the system get under heavy load processing tasklets and bottom halves, and the scheduler message is preempted, its not getting a chance to run and the scheduler watchdog timer is triggered and it causes a panic. Since the scheduler watchdog timmer is less than the kernel RCU timer, were are having scenarios, where because of the scheduler watchdog panic, the RCU stall is masked. So in case of scheduler watchdog we wanted to just print the information about the message being processed by the scheduler and not panic. Change-Id: I509abcd8cd8d2e863dc3f2370ceaa70e0d4f244f CRs-Fixed: 3004176
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -34,6 +34,12 @@
|
||||
#define SCHEDULER_WRAPPER_MAX_FAIL_COUNT (SCHEDULER_CORE_MAX_MESSAGES * 3)
|
||||
#define SCHEDULER_WATCHDOG_TIMEOUT (10 * 1000) /* 10s */
|
||||
|
||||
#ifdef CONFIG_AP_PLATFORM
|
||||
#define SCHED_DEBUG_PANIC(msg)
|
||||
#else
|
||||
#define SCHED_DEBUG_PANIC(msg) QDF_DEBUG_PANIC(msg)
|
||||
#endif
|
||||
|
||||
#define sched_fatal(params...) \
|
||||
QDF_TRACE_FATAL(QDF_MODULE_ID_SCHEDULER, params)
|
||||
#define sched_err(params...) \
|
||||
|
Reference in New Issue
Block a user