msm: vidc: Remove PM QoS functionality

Remove deprecated PM QoS functionality from vidc driver.

Change-Id: I922fdb2f2037a8fc820ebf4f2aa6d35a16c6b589
Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
This commit is contained in:
Mihir Ganu 2020-04-27 15:20:46 -07:00
parent 08ed92dd0a
commit a707b90ff2
4 changed files with 0 additions and 22 deletions

View File

@ -1738,10 +1738,6 @@ static int venus_hfi_core_init(void *device)
__set_ubwc_config(device);
if (dev->res->pm_qos_latency_us) {
pm_qos_add_request(&dev->qos, PM_QOS_CPU_DMA_LATENCY,
dev->res->pm_qos_latency_us);
}
d_vpr_h("Core inited successfully\n");
mutex_unlock(&dev->lock);
return rc;
@ -1767,9 +1763,6 @@ static int venus_hfi_core_release(void *dev)
mutex_lock(&device->lock);
d_vpr_h("Core releasing\n");
if (device->res->pm_qos_latency_us &&
pm_qos_request_active(&device->qos))
pm_qos_remove_request(&device->qos);
__resume(device, DEFAULT_SID);
__set_state(device, VENUS_STATE_DEINIT);
@ -3809,10 +3802,6 @@ static inline int __suspend(struct venus_hfi_device *device)
d_vpr_h("Entering suspend\n");
if (device->res->pm_qos_latency_us &&
pm_qos_request_active(&device->qos))
pm_qos_remove_request(&device->qos);
rc = __tzbsp_set_video_state(TZBSP_VIDEO_STATE_SUSPEND, DEFAULT_SID);
if (rc) {
d_vpr_e("Failed to suspend video core %d\n", rc);
@ -3875,11 +3864,6 @@ static inline int __resume(struct venus_hfi_device *device, u32 sid)
goto err_reset_core;
}
if (device->res->pm_qos_latency_us) {
pm_qos_add_request(&device->qos, PM_QOS_CPU_DMA_LATENCY,
device->res->pm_qos_latency_us);
}
__sys_set_debug(device, (msm_vidc_debug & FW_LOGMASK) >> FW_LOGSHIFT,
sid);

View File

@ -8,7 +8,6 @@
#include <linux/clk.h>
#include <linux/regulator/consumer.h>
#include <linux/pm_qos.h>
#include <linux/clk-provider.h>
#include <linux/iommu.h>
#include <linux/qcom_scm.h>
@ -279,7 +278,6 @@ struct venus_hfi_device {
enum hfi_packetization_type packetization_type;
struct msm_vidc_cb_info *response_pkt;
u8 *raw_packet;
struct pm_qos_request qos;
unsigned int skip_pc_count;
struct venus_hfi_vpu_ops *vpu_ops;
};

View File

@ -769,9 +769,6 @@ int read_platform_resources_from_drv_data(
res->debug_timeout = find_key_value(platform_data,
"qcom,debug-timeout");
res->pm_qos_latency_us = find_key_value(platform_data,
"qcom,pm-qos-latency-us");
res->max_secure_inst_count = find_key_value(platform_data,
"qcom,max-secure-instances");

View File

@ -165,7 +165,6 @@ struct msm_vidc_platform_resources {
const char *hfi_version;
bool never_unload_fw;
bool debug_timeout;
uint32_t pm_qos_latency_us;
uint32_t max_inst_count;
uint32_t max_secure_inst_count;
uint32_t prefetch_pix_buf_count;