Commits

Zhang Jiejing committed b582397e5e3
ENGR00216013-4 vpu: add phy address check ioctl. this patch is adding a ioctl for vpu to check the phy addr before vpu start using this addr, this use case is common in some Direct Render case, the VPU 's framebuffer phy memory is allocate by GPU, if the address given by GPU have some wrong, like pass a virtual address, vpu will hang the system. Add this IOCTL to be the goalkeeper, this IOCTL can check whether the phy address was virtual memory or the address is within phy memory of your DDR. The phy memory valild check is now doing best effort: 1. check whether is was allocated by vmalloc(), which must be a phy un-continus 2. check whether is was beyound DDR's top address, usually the other driver pass a virtual address as a phy address. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>