video: rockchip: mpp: rkvdec2: init the value of max outstanding reads

tips: If not init, it can be any value, when power on.

Change-Id: I64569e0e24c61f718ecec6b8da0e695a7ed25195
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
Ding Wei
2024-03-25 20:48:02 +08:00
parent e6d387b501
commit b6a726b6ca
3 changed files with 5 additions and 0 deletions

View File

@@ -505,6 +505,8 @@ static int rkvdec_vdpu383_run(struct mpp_dev *mpp, struct mpp_task *mpp_task)
mpp_write_relaxed(mpp, RKVDEC_REG_CACHE0_SIZE_BASE, reg);
/* clear cache */
mpp_write_relaxed(mpp, RKVDEC_REG_CLR_CACHE0_BASE, 1);
/* init max outstanding read */
mpp_write_relaxed(mpp, RKVDEC_REG_MAX_READS, 0x1c);
/* set registers for hardware */
for (i = 0; i < task->w_req_cnt; i++) {

View File

@@ -87,6 +87,7 @@
#define RKVDEC_REG_CACHE1_SIZE_BASE 0x55c
#define RKVDEC_REG_CACHE2_SIZE_BASE 0x59c
#define RKVDEC_REG_CLR_CACHE0_BASE 0x510
#define RKVDEC_REG_MAX_READS 0x518
#define RKVDEC_REG_CLR_CACHE1_BASE 0x550
#define RKVDEC_REG_CLR_CACHE2_BASE 0x590

View File

@@ -401,6 +401,8 @@ static void rkvdec2_clear_cache(struct mpp_dev *mpp)
mpp_write_relaxed(mpp, RKVDEC_REG_CLR_CACHE0_BASE, 1);
mpp_write_relaxed(mpp, RKVDEC_REG_CLR_CACHE1_BASE, 1);
mpp_write_relaxed(mpp, RKVDEC_REG_CLR_CACHE2_BASE, 1);
/* init max outstanding read */
mpp_write_relaxed(mpp, RKVDEC_REG_MAX_READS, 0x1c);
}
static int rkvdec2_link_enqueue(struct rkvdec_link_dev *link_dec,