video/rockchip: rga2: Fix up dst vir address not 4k align will cause crash

If dst buf not 4k align vir address, mmu page may calculate error.
This situation will cause rga hardware not respond, cannot return irq_handle.

Change-Id: I29a104984415b6736713073684c2551252c975b9
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
This commit is contained in:
Putin Lee
2018-03-29 21:37:23 +08:00
committed by Tao Huang
parent b38255c756
commit bbc53fb321

View File

@@ -468,6 +468,7 @@ static int rga2_mmu_info_BitBlt_mode(struct rga2_reg *reg, struct rga2_req *req)
req->dst.vir_w,
req->dst.vir_h,
&DstStart);
DstPageCount = (DstPageCount + 3) & (~3);
if (DstPageCount == 0)
return -EINVAL;
}