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:
Jie Zhou
2010-08-09 11:09:01 +08:00
committed by Matt Sealey
parent 90875b3f6c
commit ef5ea51ba2
2 changed files with 3 additions and 6 deletions

View File

@@ -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 */

View File

@@ -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) {