* 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* Re: KGSL
2012-05-16 18:28 KGSL Shantanu Gupta
@ 2012-05-17 16:17 ` David Brown
2012-05-17 18:23 ` KGSL Shantanu Gupta
0 siblings, 1 reply; 3+ messages in thread
From: David Brown @ 2012-05-17 16:17 UTC (permalink / raw)
To: Shantanu Gupta; +Cc: linux-arm-msm
On Wed, May 16, 2012 at 11:58:47PM +0530, Shantanu Gupta wrote:
> 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)
I'm just guessing here, but I'm going to venture that the adreno libs
are probably tied to a specific kernel version. You might just try
comparing the kernel kgsl driver between the kernel that works and the
newer one that doesn't.
I don't believe the msm-3.0 kernel has been commonly used with the
8x50, so if anything, it probably doesn't get testing.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KGSL
2012-05-17 16:17 ` KGSL David Brown
@ 2012-05-17 18:23 ` Shantanu Gupta
0 siblings, 0 replies; 3+ messages in thread
From: Shantanu Gupta @ 2012-05-17 18:23 UTC (permalink / raw)
To: David Brown; +Cc: linux-arm-msm
On Thu, May 17, 2012 at 9:47 PM, David Brown <davidb@codeaurora.org> wrote:
> On Wed, May 16, 2012 at 11:58:47PM +0530, Shantanu Gupta wrote:
>
>> 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)
>
> I'm just guessing here, but I'm going to venture that the adreno libs
> are probably tied to a specific kernel version. You might just try
> comparing the kernel kgsl driver between the kernel that works and the
> newer one that doesn't.
>
> I don't believe the msm-3.0 kernel has been commonly used with the
> 8x50, so if anything, it probably doesn't get testing.
>
> David
yeah, i am aware of 8x50 no longer being supported (or tested for) in
the latest branches,
I tried this since the same adreno libs worked with both kgsl 3.7 and
3.8 perfectly. From what i can say, there could be a few headers being
imported into userspace library and those getting changed in the newer
kernel driver is breaking it up. Well there's no problem on the kernel
side, device registers perfectly and probe goes well, also this kernel
i'm working on is branched from the already working kernel and
everything works fine when reverting to the previous adreno code.
Are these libraries (compiled or source) available to hobbyists,
developers on demand or under an agreement ?
^ 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.