disp: msm: merge flag of register and dbgbus
Merge reg_dump and dbgbus dump flag into dump_mode, and bring back debugfs node "evtlog_dump" to keep flexible controlling of evtlog. Set in_mem option as default dump mode, since in_coredump option will be enabled once HW recovery feature is enabled. Change-Id: I75de1a69b01594b652479bf79201591ac0bf62e5 Signed-off-by: Bruce Hoo <quic_bingchua@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
13d8ca3148
commit
02e97873a2
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -82,7 +82,7 @@ enum sde_dbg_dump_context {
|
||||
* "adb shell echo 2 > /sys/kernel/debug/dri/0/debug/reg_dump" before
|
||||
* doing the test cases.
|
||||
*/
|
||||
#define SDE_DBG_DEFAULT_DUMP_MODE SDE_DBG_DUMP_IN_COREDUMP
|
||||
#define SDE_DBG_DEFAULT_DUMP_MODE SDE_DBG_DUMP_IN_MEM
|
||||
|
||||
/*
|
||||
* Define blocks for register write logging.
|
||||
@@ -538,4 +538,13 @@ static inline void sde_rsc_debug_dump(u32 mux_sel)
|
||||
void sde_rsc_debug_dump(u32 mux_sel);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* sde_dbg_update_dump_mode - update dump mode to in_coredump mode if devcoredump
|
||||
* fueature is enabled. Default dump mode is in_mem, if HW recovery feature is
|
||||
* enabled, this function will be called to set dump mode to in_coredump option.
|
||||
* @enable_coredump: if enable_coredump is true, update dump mode to in_coredump,
|
||||
* otherwise reset the dump mode to default mode.
|
||||
*/
|
||||
void sde_dbg_update_dump_mode(bool enable_coredump);
|
||||
|
||||
#endif /* SDE_DBG_H_ */
|
||||
|
Reference in New Issue
Block a user