mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
drivers: qcom: rpmh: optimize RPMh debug for perf images
Let's us not worry about reporting RPM retries in perf builds. This should help speed up the boot process. Change-Id: Ia0d64e7da293bd8e77fd1484a714c8f21121e3fb Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
parent
ac50d9af8d
commit
fb036c7ac7
2 changed files with 10 additions and 0 deletions
|
|
@ -367,6 +367,14 @@ config QCOM_RPMH
|
|||
of hardware components aggregate requests for these resources and
|
||||
help apply the aggregated state on the resource.
|
||||
|
||||
config QCOM_RPMH_QGKI_DEBUG
|
||||
bool "Enhance RPMh debug for QGKI variants"
|
||||
depends on QCOM_RPMH
|
||||
help
|
||||
Adding debug prints increases latency of handling RPMh requests. This
|
||||
is specially notable during the boot process. Let's selectively remove
|
||||
some tracing that are more informative than an actual error.
|
||||
|
||||
config QCOM_RPMHPD
|
||||
tristate "Qualcomm RPMh Power domain driver"
|
||||
depends on QCOM_RPMH && QCOM_COMMAND_DB
|
||||
|
|
|
|||
|
|
@ -469,6 +469,7 @@ int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg)
|
|||
do {
|
||||
ret = tcs_write(drv, msg);
|
||||
if (ret == -EBUSY) {
|
||||
#ifdef QCOM_RPMH_QGKI_DEBUG
|
||||
bool irq_sts;
|
||||
|
||||
irq_get_irqchip_state(drv->irq, IRQCHIP_STATE_PENDING,
|
||||
|
|
@ -477,6 +478,7 @@ int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg)
|
|||
drv->name, msg->cmds[0].addr,
|
||||
irq_sts ?
|
||||
"PENDING" : "NOT PENDING");
|
||||
#endif /* QCOM_RPMH_QGKI_DEBUG */
|
||||
udelay(10);
|
||||
}
|
||||
} while (ret == -EBUSY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue