mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user