All of lore.kernel.org
 help / color / mirror / Atom feed
* KGSL
@ 2012-05-16 18:28 Shantanu Gupta
  2012-05-17 16:17 ` KGSL David Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Shantanu Gupta @ 2012-05-16 18:28 UTC (permalink / raw)
  To: linux-arm-msm

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,
	},
};
/*************************************************************************************/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-17 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 18:28 KGSL Shantanu Gupta
2012-05-17 16:17 ` KGSL David Brown
2012-05-17 18:23   ` KGSL Shantanu Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.