mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "disp: msm: sde: add optional sde register writes in event logs"
This commit is contained in:
commit
8912e4e675
3 changed files with 10 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ void sde_reg_write(struct sde_hw_blk_reg_map *c,
|
|||
if (c->log_mask & sde_hw_util_log_mask)
|
||||
SDE_DEBUG_DRIVER("[%s:0x%X] <= 0x%X\n",
|
||||
name, c->blk_off + reg_off, val);
|
||||
SDE_EVT32_REGWRITE(c->blk_off, reg_off, val);
|
||||
writel_relaxed(val, c->base_off + c->blk_off + reg_off);
|
||||
SDE_REG_LOG(c->log_mask ? ilog2(c->log_mask)+1 : 0,
|
||||
val, c->blk_off + reg_off);
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ enum sde_dbg_evtlog_flag {
|
|||
SDE_EVTLOG_IRQ = BIT(1),
|
||||
SDE_EVTLOG_VERBOSE = BIT(2),
|
||||
SDE_EVTLOG_EXTERNAL = BIT(3),
|
||||
SDE_EVTLOG_REGWRITE = BIT(4),
|
||||
SDE_EVTLOG_ALWAYS = -1
|
||||
};
|
||||
|
||||
|
|
@ -200,6 +201,13 @@ extern struct sde_dbg_reglog *sde_dbg_base_reglog;
|
|||
#define SDE_EVT32_EXTERNAL(...) sde_evtlog_log(sde_dbg_base_evtlog, __func__, \
|
||||
__LINE__, SDE_EVTLOG_EXTERNAL, ##__VA_ARGS__, \
|
||||
SDE_EVTLOG_DATA_LIMITER)
|
||||
/**
|
||||
* SDE_EVT32_REGWRITE - Write a list of 32bit values for register writes logging
|
||||
* ... - variable arguments
|
||||
*/
|
||||
#define SDE_EVT32_REGWRITE(...) sde_evtlog_log(sde_dbg_base_evtlog, __func__, \
|
||||
__LINE__, SDE_EVTLOG_REGWRITE, ##__VA_ARGS__, \
|
||||
SDE_EVTLOG_DATA_LIMITER)
|
||||
|
||||
/**
|
||||
* SDE_DBG_DUMP - trigger dumping of all sde_dbg facilities
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ void dss_reg_w(struct dss_io_data *io, u32 offset, u32 value, u32 debug)
|
|||
DEV_DBG("[%08x] => %08x [%08x]\n",
|
||||
(u32)(unsigned long)(io->base + offset),
|
||||
value, in_val);
|
||||
SDE_EVT32_REGWRITE(io->base, offset, value, in_val);
|
||||
}
|
||||
SDE_REG_LOG(SDE_REG_LOG_RSCC, value, offset);
|
||||
} /* dss_reg_w */
|
||||
|
|
|
|||
Loading…
Reference in a new issue