]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00274782 fixed gpu crash when baseAddress is not 0 or 2G
authorXianzhong <b07117@freescale.com>
Tue, 13 Aug 2013 15:16:24 +0000 (23:16 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:36 +0000 (10:06 +0200)
commit2c0d6c3c9c9f0e3e209d3b45d16b541a2fe29a7c
treeaf477aab9afcf01a48d113c02a636beabf0ec4f1
parent1350264bdc1edaea9dc2d605bd9a078c4e83ba87
ENGR00274782 fixed gpu crash when baseAddress is not 0 or 2G

The baseAddress of contiguousVidMem is the actual physical address
which is not subtracted by gpu baseAddress, but the allocated physical address
has been subtracted by gpu baseAddress in gckVIDMEM_Lock,
so the invalid offset is produced and used to calculate the logical address.

Signed-off-by: Xianzhong <b07117@freescale.com>
Acked-by: Shawn Guo
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.c