Skip to content

Commit

Permalink
Revert "msm: vidc: disable CPU L2 cache PC during video sessions"
Browse files Browse the repository at this point in the history
* seems to be causing pm_qos issues

This reverts commit 402078b5492ecd0b97c12433113ea756a71b7e56.

Signed-off-by: Jprimero15 <[email protected]>
  • Loading branch information
Jprimero15 authored and zeelog committed Sep 10, 2024
1 parent 0419abf commit ce5c925
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions drivers/media/platform/msm/vidc/msm_v4l2_vidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/pm_qos.h>
#include <linux/types.h>
#include <linux/version.h>
#include <linux/io.h>
Expand All @@ -35,7 +34,6 @@

#define BASE_DEVICE_NUMBER 32

static struct pm_qos_request msm_v4l2_vidc_pm_qos_request;
struct msm_vidc_drv *vidc_driver;


Expand Down Expand Up @@ -63,12 +61,6 @@ static int msm_v4l2_open(struct file *filp)
core->id, vid_dev->type);
return -ENOMEM;
}


dprintk(VIDC_DBG, "pm_qos_add with latency 1000usec\n");
pm_qos_add_request(&msm_v4l2_vidc_pm_qos_request,
PM_QOS_CPU_DMA_LATENCY, 1000);

clear_bit(V4L2_FL_USES_V4L2_FH, &vdev->flags);
filp->private_data = &(vidc_inst->event_handler);
trace_msm_v4l2_vidc_open_end("msm_v4l2_open end");
Expand All @@ -85,12 +77,6 @@ static int msm_v4l2_close(struct file *filp)

rc = msm_vidc_close(vidc_inst);
filp->private_data = NULL;

dprintk(VIDC_DBG, "pm_qos_update and remove\n");
pm_qos_update_request(&msm_v4l2_vidc_pm_qos_request,
PM_QOS_DEFAULT_VALUE);
pm_qos_remove_request(&msm_v4l2_vidc_pm_qos_request);

trace_msm_v4l2_vidc_close_end("msm_v4l2_close end");
return rc;
}
Expand Down

0 comments on commit ce5c925

Please sign in to comment.