mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
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:
@@ -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++) {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user