From 4c53013fde21b7cfaaf831e1e68dfe266bbb2524 Mon Sep 17 00:00:00 2001 From: Giovanni Ricca Date: Sun, 2 Oct 2022 09:53:10 +0200 Subject: [PATCH] techpack: camera: cam_isp: Enlarge `max_vfe_out_res` expected size Since 45dbb6c0cde224cb333d62a9111c264367d27df2, the camera kernel stack checks `num_ports` size from userspace. For some reasons, the reported size is higher than what it expected [1] This breaks some camera functionality (such as 60fps video recording) on yupik Xiaomi devices To workaround this, let's enlarge the expected vfe size to match these cases [1] 10-01 22:49:53.142 7430 7430 I CAM_ERR : CAM-ISP: cam_isp_update_dual_config: 129 num_ports 25 more than max_vfe_out_res 23 Change-Id: Id4ea44a07f5c50ea5a716e5910a7574d426a3515 Suggested-by: Alexander Winkowski Signed-off-by: Giovanni Ricca --- .../cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe165_160.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techpack/camera/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe165_160.h b/techpack/camera/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe165_160.h index 222449466493..e11fa7ea81cf 100644 --- a/techpack/camera/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe165_160.h +++ b/techpack/camera/drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe165_160.h @@ -1171,7 +1171,7 @@ static struct cam_vfe_bus_ver2_hw_info vfe165_160_bus_hw_info = { }, .top_irq_shift = 9, .support_consumed_addr = false, - .max_out_res = CAM_ISP_IFE_OUT_RES_BASE + 23, + .max_out_res = CAM_ISP_IFE_OUT_RES_BASE + 25, }; static struct cam_vfe_hw_info cam_vfe165_160_hw_info = {