diff options
author | Rajesh Kemisetti <rajeshk@codeaurora.org> | 2018-08-10 13:30:07 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-03-17 23:32:48 -0700 |
commit | 8fb70d9047b053dd915cdda0759f52acae6ca84e (patch) | |
tree | 84df2d55f0cc7574111df00cf210c7ba63585f19 | |
parent | c1372e642e5d7d81927e416546add577c1889eb0 (diff) |
msm: kgsl: Limit log frequency in case of context count maxed out
kgsl_context_init() prints error message continuously if a process
tries to create more number of contexts that KGSL supports.
This hogs CPU and might lead to watchdog timeout.
Reduce this log frequency by using KGSL_DRV_ERR_RATELIMIT().
Change-Id: I7e3a5d3db41ab0c60d1b6b620cbcdef96d5c21a9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
-rw-r--r-- | drivers/gpu/msm/kgsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c index b0b05975dab0..f096e5ed6816 100644 --- a/drivers/gpu/msm/kgsl.c +++ b/drivers/gpu/msm/kgsl.c @@ -538,7 +538,7 @@ int kgsl_context_init(struct kgsl_device_private *dev_priv, */ spin_lock(&proc_priv->ctxt_count_lock); if (atomic_read(&proc_priv->ctxt_count) > KGSL_MAX_CONTEXTS_PER_PROC) { - KGSL_DRV_ERR(device, + KGSL_DRV_ERR_RATELIMIT(device, "Per process context limit reached for pid %u", dev_priv->process_priv->pid); spin_unlock(&proc_priv->ctxt_count_lock); |