mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
soc: qcom: rpmh-rsc: log interrupt status when TCS is busy
To debug issues when TCS is busy, report interrupt status as well. If the interrupt line is pending at GIC, then Linux was too busy to process the interrupt and if not pending then AOSS was too busy to handle the request. Change-Id: I8fd8289c74a8e1d6c771b77c2800a52f18c3a0b2 Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
parent
d1c7802611
commit
7aa301db5b
1 changed files with 8 additions and 2 deletions
|
|
@ -462,8 +462,14 @@ int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg)
|
|||
do {
|
||||
ret = tcs_write(drv, msg);
|
||||
if (ret == -EBUSY) {
|
||||
pr_info_ratelimited("DRV:%s TCS Busy, retrying RPMH message send: addr=%#x\n",
|
||||
drv->name, msg->cmds[0].addr);
|
||||
bool irq_sts;
|
||||
|
||||
irq_get_irqchip_state(drv->irq, IRQCHIP_STATE_PENDING,
|
||||
&irq_sts);
|
||||
pr_info_ratelimited("DRV:%s TCS Busy, retrying RPMH message send: addr=%#x interrupt status=%s\n",
|
||||
drv->name, msg->cmds[0].addr,
|
||||
irq_sts ?
|
||||
"PENDING" : "NOT PENDING");
|
||||
udelay(10);
|
||||
}
|
||||
} while (ret == -EBUSY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue