mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-04-26 15:51:21 +00:00
ENGR00126064 GPU: disable mmu to pass OpenVG CTS
If enabled MMU, there is AXI read/write error on MX508 when run OpenVG CTS. Besides, change EMEM1 size to 10MB by default to make gpu driver work on MX50_ARM2 board with 128MB memory installed. Signed-off-by: Jie Zhou <b30303@freescale.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#define GSL_HAL_SHMEM_SIZE_EMEM2_MMU 0x00400000 /* 4MB */
|
||||
#define GSL_HAL_SHMEM_SIZE_PHYS_MMU 0x00400000 /* 4MB */
|
||||
|
||||
#define GSL_HAL_SHMEM_SIZE_EMEM1_NOMMU 0x00D00000 /* 13MB */
|
||||
#define GSL_HAL_SHMEM_SIZE_EMEM1_NOMMU 0x00A00000 /* 10MB */
|
||||
#define GSL_HAL_SHMEM_SIZE_EMEM2_NOMMU 0x00200000 /* 2MB */
|
||||
#define GSL_HAL_SHMEM_SIZE_PHYS_NOMMU 0x00100000 /* 1MB */
|
||||
|
||||
|
||||
@@ -120,11 +120,8 @@ kgsl_hal_init(void)
|
||||
hal->has_z160 = 0;
|
||||
}
|
||||
|
||||
if (hal->has_z430) {
|
||||
gsl_driver.enable_mmu = 0;
|
||||
} else {
|
||||
gsl_driver.enable_mmu = 1;
|
||||
}
|
||||
/* there is still some problem to enable mmu currently */
|
||||
gsl_driver.enable_mmu = 0;
|
||||
|
||||
/* setup register space */
|
||||
if (hal->has_z430) {
|
||||
|
||||
Reference in New Issue
Block a user