msm: vidc: reduce max_packets count to 480

Currently max_packets is configured as 1000, but max outstanding
packets will not exceed more than 480(16 clients x 30 pkts/client).

Change-Id: I8c074e08c959473c20450bc7d62486362ba81b47
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal 2020-01-20 14:42:22 +05:30 • committed by Mihir Ganu
commit 7faedc509c
3 changed files with 9 additions and 12 deletions

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
*/
#include "hfi_common.h"
@ -40,7 +40,7 @@ const struct msm_vidc_bus_data DEFAULT_BUS_VOTE = {
((a) > (b) ? (a) - (b) < TRIVIAL_BW_THRESHOLD : \
(b) - (a) < TRIVIAL_BW_THRESHOLD)
const int max_packets = 1000;
const int max_packets = 480; /* 16 sessions x 30 packets */
static void venus_hfi_pm_handler(struct work_struct *work);
static DECLARE_DELAYED_WORK(venus_hfi_pm_work, venus_hfi_pm_handler);

View file

@ -3440,9 +3440,8 @@ int msm_comm_reset_bufreqs(struct msm_vidc_inst *inst, enum hal_buffer buf_type)
__func__, buf_type);
return -EINVAL;
}
bufreqs->buffer_size = bufreqs->buffer_region_size =
bufreqs->buffer_count_min = bufreqs->buffer_count_min_host =
bufreqs->buffer_count_actual = bufreqs->contiguous =
bufreqs->buffer_size = bufreqs->buffer_count_min =
bufreqs->buffer_count_min_host = bufreqs->buffer_count_actual =
bufreqs->buffer_alignment = 0;
return 0;

View file

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
*/
#ifndef __VIDC_HFI_API_H__
@ -184,12 +184,10 @@ struct hal_intra_refresh {
struct hal_buffer_requirements {
enum hal_buffer buffer_type;
u32 buffer_size;
u32 buffer_region_size;
u32 buffer_count_min;
u32 buffer_count_min_host;
u32 buffer_count_actual;
u32 contiguous;
u32 buffer_alignment;
u16 buffer_count_min;
u16 buffer_count_min_host;
u16 buffer_count_actual;
u16 buffer_alignment;
};
enum hal_priority {/* Priority increases with number */