|
@@ -1,6 +1,6 @@
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
/*
|
|
|
- * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
|
|
*/
|
|
|
|
|
|
#include <linux/uaccess.h>
|
|
@@ -706,6 +706,7 @@ static int32_t cam_ope_process_request_timer(void *priv, void *data)
|
|
|
hw_mgr->ope_dev_intf[i]->hw_priv,
|
|
|
OPE_HW_DUMP_DEBUG,
|
|
|
NULL, 0);
|
|
|
+
|
|
|
task = cam_req_mgr_workq_get_task(ope_hw_mgr->msg_work);
|
|
|
if (!task) {
|
|
|
CAM_ERR(CAM_OPE, "no empty task");
|
|
@@ -1603,6 +1604,7 @@ static void cam_ope_ctx_cdm_callback(uint32_t handle, void *userdata,
|
|
|
struct timespec64 ts;
|
|
|
uint32_t evt_id = CAM_CTX_EVT_ID_SUCCESS;
|
|
|
bool dump_flag = true;
|
|
|
+ int i;
|
|
|
|
|
|
if (!userdata) {
|
|
|
CAM_ERR(CAM_OPE, "Invalid ctx from CDM callback");
|
|
@@ -1664,9 +1666,15 @@ static void cam_ope_ctx_cdm_callback(uint32_t handle, void *userdata,
|
|
|
ope_req->request_id, ctx->ctx_id);
|
|
|
CAM_INFO(CAM_OPE, "Rst of CDM and OPE for error reqid = %lld",
|
|
|
ope_req->request_id);
|
|
|
+
|
|
|
if (status != CAM_CDM_CB_STATUS_HW_FLUSH) {
|
|
|
cam_ope_dump_req_data(ope_req);
|
|
|
dump_flag = false;
|
|
|
+
|
|
|
+ CAM_INFO(CAM_OPE, "bach_size: %d", ctx->req_list[cookie]->num_batch);
|
|
|
+ for (i = 0; i < ctx->req_list[cookie]->num_batch; i++)
|
|
|
+ CAM_INFO(CAM_OPE, "i: %d num_stripes: %d",
|
|
|
+ i, ctx->req_list[cookie]->num_stripes[i]);
|
|
|
}
|
|
|
rc = cam_ope_mgr_reset_hw();
|
|
|
evt_id = CAM_CTX_EVT_ID_ERROR;
|