Skip to content

Commit

Permalink
msm: isp: fix the issue during overflow recovery
Browse files Browse the repository at this point in the history
When HAL3 is used undelivered requests are stored in request_queue
these requests need to be cleared during overflow recovery.

Change-Id: Idfb18a00eb4e49111f1c068e3a3d5fd7fe77e4c0
Signed-off-by: Chandan Gera <cgera@codeaurora.org>
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
Chandan Gera authored and khusika committed Oct 13, 2018
1 parent 10fc56f commit 43a74f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2526,6 +2526,7 @@ int msm_isp_axi_reset(struct vfe_device *vfe_dev,
int rc = 0, i, j;
struct msm_vfe_axi_stream *stream_info;
struct msm_vfe_axi_shared_data *axi_data = &vfe_dev->axi_data;
struct msm_vfe_frame_request_queue *queue_req;
uint32_t bufq_handle = 0, bufq_id = 0;
struct msm_isp_timestamp timestamp;
unsigned long flags;
Expand Down Expand Up @@ -2557,7 +2558,16 @@ int msm_isp_axi_reset(struct vfe_device *vfe_dev,
j--;
continue;
}

stream_info->undelivered_request_cnt = 0;
while (!list_empty(&stream_info->request_q)) {
queue_req = list_first_entry_or_null(
&stream_info->request_q,
struct msm_vfe_frame_request_queue, list);
if (queue_req) {
queue_req->cmd_used = 0;
list_del(&queue_req->list);
}
}
for (bufq_id = 0; bufq_id < VFE_BUF_QUEUE_MAX; bufq_id++) {
bufq_handle = stream_info->bufq_handle[bufq_id];
if (!bufq_handle)
Expand Down

0 comments on commit 43a74f0

Please sign in to comment.