Hi guys,

I'm currently working on android(4.0.4) for a 8x50 board (i know it's
old but I'm doing it for hobby). The kernel is working all fine so i
thought I'd update to the latest stuff from caf, (msm-3.0 branch)
Everything is working as excepted except for adreno android libs, with
the newer kgsl i get the following errors in logcat (Using the armv7
adreno a2xx libs from developer.qualcomm.com)

Android logcat:
D/libEGL  (  475): loaded /system/lib/egl/libGLES_android.so
D/libEGL  (  475): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  (  475): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  (  475): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno  (  475): ioctl_kgsl_context_create_priority: not implemented
E/Adreno200-EGL(  475): <qeglDrvAPI_eglCreateContext:2235>: EGL_BAD_ALLOC
E/libEGL  (  475): eglMakeCurrent:620 error 3009 (EGL_BAD_MATCH)
E/SurfaceFlinger(  475): Couldn't create a working GLES context. check
logs. exiting...

Linux dmesg (added few printk's because i had wrong clocks being setup in pdata)
<4>[    1.245574] kgsl: kgsl_pwrctl_init returned 0.
<4>[    1.245666] kgsl: kgsl_drm_init returned 0.
<6>[    1.246154] kgsl kgsl-3d0: |kgsl_gpummu_init| MMU type set for
device is GPUMMU
<4>[    1.246887] kgsl: kgsl_register_device returned 0.
....
<6>[   29.674560] kgsl kgsl-3d0: firmware: requesting yamato_pm4.fw
<6>[   29.687805] kgsl kgsl-3d0: firmware: requesting yamato_pfp.fw

This is the platform data I'm using
/**************************************************************************************
 * kgsl pdata
 
*************************************************************************************/
static struct resource kgsl_3d0_resources[] = {
        {
                .name  = KGSL_3D0_REG_MEMORY,
                .start = 0xA0000000,
                .end = 0xA001ffff,
                .flags = IORESOURCE_MEM,
        },
        {
                .name = KGSL_3D0_IRQ,
                .start = INT_GRAPHICS,
                .end = INT_GRAPHICS,
                .flags = IORESOURCE_IRQ,
        },
};

static struct kgsl_device_platform_data kgsl_3d0_pdata = {
        .pwrlevel = {
                {
                        .gpu_freq = 0,
                        .bus_freq = 128000000,
                },
        },
        .init_level = 0,
        .num_levels = 1,
        .set_grp_async = NULL,
        .idle_timeout = HZ/5,
        .clk_map = KGSL_CLK_CORE | KGSL_CLK_MEM,
};

struct platform_device msm_kgsl_3d0 = {
        .name = "kgsl-3d0",
        .id = 0,
        .num_resources = ARRAY_SIZE(kgsl_3d0_resources),
        .resource = kgsl_3d0_resources,
        .dev = {
                .platform_data = &kgsl_3d0_pdata,
        },
};
/*************************************************************************************/
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to