From 85374c8dc5f68e02d5b4fef8dde60ac0f0f3d610 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Thu, 7 Jan 2021 21:40:25 -0800 Subject: [PATCH] qcacld-3.0: Avoid logging in hif_pm_runtime_get from TX path The hif_om_runtime_get logs the requester for resume when the device is in runtime suspend/suspending state. Due to such kind of logging from a softirq context, its execution time will be longer and can block the execution of other time critical softirqs. Fix this by marking the call to hif_om_runtime_get as a call from critical context and avoid the logging for this call. Change-Id: I2d7d0b3645f351af11a016bd45c5930f0df5401a CRs-Fixed: 2850952 --- core/dp/txrx3.0/dp_swlm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dp/txrx3.0/dp_swlm.c b/core/dp/txrx3.0/dp_swlm.c index a874e899c301..7e2d3d206ad9 100644 --- a/core/dp/txrx3.0/dp_swlm.c +++ b/core/dp/txrx3.0/dp_swlm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -162,7 +162,8 @@ static void dp_swlm_tcl_flush_timer(void *arg) if (hal_srng_try_access_start(soc->hal_soc, hal_ring_hdl) < 0) goto fail; - if (hif_pm_runtime_get(soc->hif_handle, RTPM_ID_DW_TX_HW_ENQUEUE)) { + if (hif_pm_runtime_get(soc->hif_handle, RTPM_ID_DW_TX_HW_ENQUEUE, + true)) { hal_srng_access_end_reap(soc->hal_soc, hal_ring_hdl); hal_srng_set_event(hal_ring_hdl, HAL_SRNG_FLUSH_EVENT); hal_srng_inc_flush_cnt(hal_ring_hdl);