msm: isp: Use recommended ab and ib values for isp

Use recommended ab and ib settings for isp to ensure
isp requests required bandwidth

CRs-Fixed: 943154

Change-Id: I871854e059963bf64665201fb9ea7d99861ebe8c
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
This commit is contained in:
Abhishek Kondaveeti 2016-01-04 17:54:19 +05:30 committed by David Keitel
parent 45f43cddf9
commit 5f825416fb
6 changed files with 15 additions and 5 deletions

View file

@ -286,6 +286,8 @@ struct msm_vfe_hardware_info {
struct msm_vfe_axi_hardware_info *axi_hw_info;
struct msm_vfe_stats_hardware_info *stats_hw_info;
uint32_t dmi_reg_offset;
uint32_t min_ab;
uint32_t min_ib;
};
struct msm_vfe_axi_hardware_info {

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -2316,6 +2316,8 @@ struct msm_vfe_hardware_info vfe40_hw_info = {
.num_iommu_secure_ctx = 1,
.vfe_clk_idx = VFE40_CLK_IDX,
.runtime_axi_update = 0,
.min_ab = 12000000,
.min_ib = 12000000,
.vfe_ops = {
.irq_ops = {
.read_irq_status = msm_vfe40_read_irq_status,

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -1964,6 +1964,8 @@ struct msm_vfe_hardware_info vfe44_hw_info = {
.num_iommu_secure_ctx = 1,
.vfe_clk_idx = VFE44_CLK_IDX,
.runtime_axi_update = 0,
.min_ab = 100000000,
.min_ib = 100000000,
.vfe_ops = {
.irq_ops = {
.read_irq_status = msm_vfe44_read_irq_status,

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -2068,6 +2068,8 @@ struct msm_vfe_hardware_info vfe46_hw_info = {
.num_iommu_secure_ctx = 1,
.vfe_clk_idx = VFE46_CLK_IDX,
.runtime_axi_update = 0,
.min_ab = 100000000,
.min_ib = 100000000,
.vfe_ops = {
.irq_ops = {
.read_irq_status = msm_vfe46_read_irq_status,

View file

@ -2308,6 +2308,8 @@ struct msm_vfe_hardware_info vfe47_hw_info = {
.num_iommu_secure_ctx = 0,
.vfe_clk_idx = VFE47_SRC_CLK_DTSI_IDX,
.runtime_axi_update = 1,
.min_ib = 100000000,
.min_ab = 100000000,
.vfe_ops = {
.irq_ops = {
.read_irq_status = msm_vfe47_read_irq_status,

View file

@ -2002,8 +2002,8 @@ static int msm_isp_update_stream_bandwidth(struct vfe_device *vfe_dev)
}
total_bandwidth = total_pix_bandwidth + total_rdi_bandwidth;
rc = msm_isp_update_bandwidth(ISP_VFE0 + vfe_dev->pdev->id,
(total_bandwidth + MSM_ISP_MIN_AB),
(total_bandwidth + MSM_ISP_MIN_IB));
(total_bandwidth + vfe_dev->hw_info->min_ab),
(total_bandwidth + vfe_dev->hw_info->min_ib));
if (rc < 0)
pr_err("%s: update failed\n", __func__);