Jump to content

[CLOSED] libgralloc built from source on Racer (fixed)


Guest mikeioannina

Recommended Posts

Guest mikeioannina

UPDATE 23/01/2013: This is fixed now, thread can be closed.

Hello, I decided to open this thread to discuss (and maybe find a solution) about the libgralloc problem on ZTE Racer/Carl/Freddo phones.

All msm7x27 ZTE phones use the same sources, all of them use the sources from blade with little modification.

libgralloc built from source works on all other ZTE phones except mooncake board based phones, if we build from source the screen is distorted, we have to use prebuilt 2.1-2.2 gralloc. With the prebuilt gralloc CRT on & off animations, screen rotation animation, full 3D acceleration are not possible.

Without libgralloc built from source we will never get full 3D acceleration and stability. Also this issue prevents us from having any future android version, CM9, CM10, CM10,1

The only difference related to framebuffer/graphics/etc. between ZTE Blade and ZTE Racer is in the kernel.

Mooncake defconfig:


CONFIG_FB_MSM_LCDC_LEAD_QVGA=y

CONFIG_FB_MSM_LCDC_HIMAX_QVGA=y

CONFIG_FB_MSM_LCDC_SAMSUNG_QVGA=y

# CONFIG_FB_MSM_LCDC_OLED_WVGA is not set


CONFIG_FB_MSM_LCDC_LEAD_QVGA_PANEL=y

CONFIG_FB_MSM_LCDC_HIMAX_QVGA_PANEL=y

CONFIG_FB_MSM_LCDC_SAMSUNG_QVGA_PANEL=y

# CONFIG_FB_MSM_LCDC_OLED_WVGA_PANEL is not set

Blade defconfig:

# CONFIG_FB_MSM_LCDC_LEAD_QVGA is not set

# CONFIG_FB_MSM_LCDC_HIMAX_QVGA is not set

# CONFIG_FB_MSM_LCDC_SAMSUNG_QVGA is not set

CONFIG_FB_MSM_LCDC_OLED_WVGA=y


# CONFIG_FB_MSM_LCDC_LEAD_QVGA_PANEL is not set

# CONFIG_FB_MSM_LCDC_HIMAX_QVGA_PANEL is not set

# CONFIG_FB_MSM_LCDC_SAMSUNG_QVGA_PANEL is not set

CONFIG_FB_MSM_LCDC_OLED_WVGA_PANEL=y

Blade uses LCDC_OLED_WVGA_PANEL but Mooncake uses 3 different lcd screens: LCDC_LEAD_QVGA, LCDC_HIMAX_QVGA, LCDC_SAMSUNG_QVGA

The problem is probably in the lcd panel drivers, either something is missing or something is wrong.

The lcd panel drivers are under /drivers/video/msm/* in the kernel source https://github.com/RacerMod/zte-kernel-msm7x27

Mooncake panels source:

lcdc_panel_qvga_lead.c

lcdc_panel_qvga_himax.c

lcdc_panel_qvga_samsung.c

Blade panel source:

lcdc_panel_wvga_oled.c

If someone who has the knowledge can help or take a look, please do it.

Edited by mikeioannina
Link to comment
Share on other sites

Guest GuyOverThere

Hi, my input here from test I was doing before my phone got stolen.

Regarding CM9 and beyond and following development of 2.6.35 ICS kernel branch, that kernel uses different implementation of the framebuffer than 2.6.35 GB branch. In the ICS branch several yamato kgsl files (from zte if I'm not mistaken) were dropped in favor of adreno kgsl (opensource implementation) which means that using ICS kernels from blade will require gralloc opensource no matter what.

Also, ICS and beyond requires the use of zte's adreno libs ICS+ compatible which also means that to get any kind of support from those libs 2.1-2.2 prebuilt gralloc can't be used.

During my tests, I was able to get a 4.0.4 rom that boot but with the screen distorted, I wasn't able to find the origin of the issue, this is a log from that rom (relevant part):



I/sysproc ( 184): Entered system_init()

I/sysproc ( 184): ServiceManager: 0x15c238

I/SurfaceFlinger( 184): SurfaceFlinger is starting

I/SurfaceFlinger( 184): use dithering

I/SurfaceFlinger( 184): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/msm7x27.gralloc( 184): We support 2 buffers

I/msm7x27.gralloc( 184): using (fd=35)

I/msm7x27.gralloc( 184): id = msmfb30_30001

I/msm7x27.gralloc( 184): xres = 240 px

I/msm7x27.gralloc( 184): yres = 320 px

I/msm7x27.gralloc( 184): xres_virtual = 240 px

I/msm7x27.gralloc( 184): yres_virtual = 640 px

I/msm7x27.gralloc( 184): bpp = 16

I/msm7x27.gralloc( 184): r = 11:5

I/msm7x27.gralloc( 184): g = 5:6

I/msm7x27.gralloc( 184): b = 0:5

I/msm7x27.gralloc( 184): width = 38 mm (160.421051 dpi)

I/msm7x27.gralloc( 184): height = 51 mm (159.372543 dpi)

I/msm7x27.gralloc( 184): refresh rate = 74.00 Hz

D/CALCFPS ( 184): DEBUG_CALC_FPS: 0

D/CALCFPS ( 184): period: 10

D/CALCFPS ( 184): ignorethresh_us: 500000

D/CALCFPS ( 184): DEBUG_CALC_FPS: 0

D/CALCFPS ( 184): period: 10

D/CALCFPS ( 184): ignorethresh_us: 500000

D/FramebufferNativeWindow( 184): mNumBuffers = 2

D/libEGL ( 184): loaded /system/lib/egl/libGLES_android.so

D/libEGL ( 184): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL ( 184): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL ( 184): loaded /system/lib/egl/libGLESv2_adreno200.so

I/SurfaceFlinger( 184): EGL informations:

I/SurfaceFlinger( 184): # of configs : 44

I/SurfaceFlinger( 184): vendor : Android

I/SurfaceFlinger( 184): version : 1.4 Android META-EGL

I/SurfaceFlinger( 184): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_image_native_buffer EGL_ANDROID_get_render_buffer

I/SurfaceFlinger( 184): Client API: OpenGL ES

I/SurfaceFlinger( 184): EGLSurface: 5-6-5-0, config=0x0

I/SurfaceFlinger( 184): OpenGL informations:

I/SurfaceFlinger( 184): vendor : Qualcomm

I/SurfaceFlinger( 184): renderer : Adreno (TM) 200

I/SurfaceFlinger( 184): version : OpenGL ES-CM 1.1

I/SurfaceFlinger( 184): extensions: GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_ARB_vertex_buffer_object GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering GL_AMD_compressed_3DC_texture

I/SurfaceFlinger( 184): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger( 184): GL_MAX_VIEWPORT_DIMS = 4096 x 4096

I/SurfaceFlinger( 184): flags = 00000000

D/CALCFPS ( 184): DEBUG_CALC_FPS: 0

D/CALCFPS ( 184): period: 10

D/CALCFPS ( 184): ignorethresh_us: 500000

After that is mostly regular rom-loading info, nothing apparent of why the screen isn't working. This test was done using adreno libs ICS compatible and gralloc from source (blade ICS branch), and this is what happened at kernel level:


2>[11-28 00:41:12.120000] kgsl kgsl-3d0: |kgsl_gpummu_pagefault| mmu page fault: page=0x662a0000 pt=0 op=WRITE axi=4

<2>[11-28 00:41:12.290000] kgsl kgsl-3d0: |kgsl_gpummu_pagefault| mmu page fault: page=0x662a0000 pt=0 op=WRITE axi=4

<2>[11-28 00:41:12.460000] kgsl kgsl-3d0: |kgsl_gpummu_pagefault| mmu page fault: page=0x662a0000 pt=0 op=WRITE axi=4

<3>[11-28 00:41:12.490000] [62: synaptics_swq]msm_i2c msm_i2c.0: (0044) Error during data xfer (-5)

<3>[11-28 00:41:12.490000] [62: synaptics_swq]synaptics-rmi-ts 0-0022: synaptics_i2c_read FAILED: read of register 20

<3>[11-28 00:41:12.490000] [62: synaptics_swq]synaptics_ts_work_func: synaptics_i2c_write failed, go to poweroff.

<2>[11-28 00:41:12.630000] kgsl kgsl-3d0: |kgsl_gpummu_pagefault| mmu page fault: page=0x662a0000 pt=0 op=WRITE axi=4

<2>[11-28 00:41:12.800000] kgsl kgsl-3d0: |kgsl_gpummu_pagefault| mmu page fault: page=0x662a0000 pt=0 op=WRITE axi=4

<3>[11-28 00:41:12.910000] [62: synaptics_swq]msm_i2c msm_i2c.0: (0044) Error during data xfer (-5)

...this lines keep repeating over and over....

This is from a log using software rendering only (only libGLES_android.so):


I/sysproc ( 174): Entered system_init()

I/sysproc ( 174): ServiceManager: 0x1314e0

I/SurfaceFlinger( 174): SurfaceFlinger is starting

I/SurfaceFlinger( 174): use dithering

I/SurfaceFlinger( 174): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/msm7x27.gralloc( 174): We support 2 buffers

I/msm7x27.gralloc( 174): using (fd=35)

I/msm7x27.gralloc( 174): id = msmfb30_30001

I/msm7x27.gralloc( 174): xres = 240 px

I/msm7x27.gralloc( 174): yres = 320 px

I/msm7x27.gralloc( 174): xres_virtual = 240 px

I/msm7x27.gralloc( 174): yres_virtual = 640 px

I/msm7x27.gralloc( 174): bpp = 16

I/msm7x27.gralloc( 174): r = 11:5

I/msm7x27.gralloc( 174): g = 5:6

I/msm7x27.gralloc( 174): b = 0:5

I/msm7x27.gralloc( 174): width = 38 mm (160.421051 dpi)

I/msm7x27.gralloc( 174): height = 51 mm (159.372543 dpi)

I/msm7x27.gralloc( 174): refresh rate = 74.00 Hz

D/CALCFPS ( 174): DEBUG_CALC_FPS: 0

D/CALCFPS ( 174): period: 10

D/CALCFPS ( 174): ignorethresh_us: 500000

D/CALCFPS ( 174): DEBUG_CALC_FPS: 0

D/CALCFPS ( 174): period: 10

D/CALCFPS ( 174): ignorethresh_us: 500000

D/FramebufferNativeWindow( 174): mNumBuffers = 2

D/libEGL ( 174): loaded /system/lib/egl/libGLES_android.so

I/SurfaceFlinger( 174): EGL informations:

I/SurfaceFlinger( 174): # of configs : 8

I/SurfaceFlinger( 174): vendor : Android

I/SurfaceFlinger( 174): version : 1.4 Android META-EGL

I/SurfaceFlinger( 174): extensions: EGL_KHR_image_base EGL_ANDROID_image_native_buffer EGL_ANDROID_get_render_buffer

I/SurfaceFlinger( 174): Client API: OpenGL ES

I/SurfaceFlinger( 174): EGLSurface: 5-6-5-0, config=0x0

I/SurfaceFlinger( 174): OpenGL informations:

I/SurfaceFlinger( 174): vendor : Android

I/SurfaceFlinger( 174): renderer : Android PixelFlinger 1.4

I/SurfaceFlinger( 174): version : OpenGL ES-CM 1.0

I/SurfaceFlinger( 174): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap

I/SurfaceFlinger( 174): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger( 174): GL_MAX_VIEWPORT_DIMS = 4096 x 4096

I/SurfaceFlinger( 174): flags = 00040000

D/CALCFPS ( 174): DEBUG_CALC_FPS: 0

D/CALCFPS ( 174): period: 10

D/CALCFPS ( 174): ignorethresh_us: 500000

.....


F/libc ( 174): Fatal signal 11 (SIGSEGV) at 0x4838f000 (code=2)

D/libEGL ( 190): loaded /system/lib/egl/libGLES_android.so

W/UsageStats( 174): Usage stats version changed; dropping

I/ARMAssembler( 190): generated scanline__00000077:03010102_00000A01_00000000 [ 9 ipp] (30 ins) at [0x4082c1e8:0x4082c260] in 675002 ns

I/ARMAssembler( 190): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0x4082c268:0x4082c338] in 140000 ns

I/ActivityManager( 174): Enabled StrictMode logging for AThread's Looper

I/SystemServer( 174): Telephony Registry

I/SystemServer( 174): Package Manager

I/DEBUG ( 100): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 100): Build fingerprint: 'ZTE/P772A10D/atlas40:4.0.4/IMM76D/20120608.113547:user/release-keys'

I/DEBUG ( 100): pid: 174, tid: 187 >>> system_server <<<

I/DEBUG ( 100): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 4838f000

I/DEBUG ( 100): r0 4838f000 r1 00000000 r2 000001c0 r3 00000000

I/DEBUG ( 100): r4 00000013 r5 4838f000 r6 000001e0 r7 00000200

I/DEBUG ( 100): r8 4803c000 r9 400b6f3d 10 00100000 fp 001e0248

I/DEBUG ( 100): ip 00000000 sp 4813bd44 lr 00000000 pc 40078c28 cpsr 20000010

I/DEBUG ( 100): d0 7149f2ca7149f2ca d1 43a040007149f2ca

I/DEBUG ( 100): d2 3f8000003f800000 d3 3f8000003f800000

I/DEBUG ( 100): d4 0000000000000000 d5 bf80000000000000

I/DEBUG ( 100): d6 bf800000bf800000 d7 7149f2ca3f000000

I/DEBUG ( 100): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 100): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 100): d12 0000000000000000 d13 0000000000000000

I/DEBUG ( 100): d14 0000000000000000 d15 0000000000000000

I/DEBUG ( 100): scr 20000010

I/DEBUG ( 100):

I/DEBUG ( 100): #00 pc 00003c28 /system/lib/libcutils.so

I/DEBUG ( 100): #01 pc 00016d4a /system/lib/libpixelflinger.so

I/DEBUG ( 100): #02 pc 00016e3c /system/lib/libpixelflinger.so

I/DEBUG ( 100): #03 pc 0000eea8 /system/lib/egl/libGLES_android.so (glClear)

I/DEBUG ( 100): #04 pc 0001e90a /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger21setupHardwareComposerERNS_6RegionE)

I/DEBUG ( 100): #05 pc 0001e9e6 /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger13handleRepaintEv)

I/DEBUG ( 100): #06 pc 0001fd7e /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger10threadLoopEv)

I/DEBUG ( 100): #07 pc 00022994 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)

I/DEBUG ( 100): #08 pc 00022fce /system/lib/libutils.so

I/DEBUG ( 100): #09 pc 00012fa8 /system/lib/libc.so (__thread_entry)

I/DEBUG ( 100): #10 pc 00012acc /system/lib/libc.so (pthread_create)

I/DEBUG ( 100):

I/DEBUG ( 100): code around pc:

I/DEBUG ( 100): 40078c08 e1b03e03 28a04002 28a04002 48a04002 .>...@.(.@.([email protected]

I/DEBUG ( 100): 40078c18 e1b03103 24801004 e1a03001 e2522020 .1.....$.0.. R.

I/DEBUG ( 100): 40078c28 28a0500a 28a0500a 2afffffb e2822020 .P.(.P.(...* ..

I/DEBUG ( 100): 40078c38 e1b02e02 28a0500a 48a04002 e1b02102 .....P.([email protected].!..

I/DEBUG ( 100): 40078c48 24801004 40c0e0b2 e49de004 e12fff1e ...$...@....../.

I/DEBUG ( 100):

I/DEBUG ( 100): code around lr:

I/DEBUG ( 100): 00000000 ffffffff ffffffff ffffffff ffffffff ................

I/DEBUG ( 100): 00000010 ffffffff ffffffff ffffffff ffffffff ................

I/DEBUG ( 100): 00000020 ffffffff ffffffff ffffffff ffffffff ................

I/DEBUG ( 100): 00000030 ffffffff ffffffff ffffffff ffffffff ................

I/DEBUG ( 100): 00000040 ffffffff ffffffff ffffffff ffffffff ................

I/DEBUG ( 100):

I/DEBUG ( 100): memory map around addr 4838f000:

I/DEBUG ( 100): 48344000-4838f000 /dev/graphics/fb0

I/DEBUG ( 100): 4838f000-483a3000 /system/lib/egl/libGLES_android.so

I/DEBUG ( 100): 483a3000-483a4000 /system/lib/egl/libGLES_android.so

I/DEBUG ( 100):

I/DEBUG ( 100): stack:

I/DEBUG ( 100): 4813bd04 40019ae7 /system/lib/libc.so

I/DEBUG ( 100): 4813bd08 4004c510

I/DEBUG ( 100): 4813bd0c 00000003

I/DEBUG ( 100): 4813bd10 ffffffff

I/DEBUG ( 100): 4813bd14 4813bdb0

I/DEBUG ( 100): 4813bd18 00133850 [heap]

I/DEBUG ( 100): 4813bd1c 00000140

I/DEBUG ( 100): 4813bd20 00000000

I/DEBUG ( 100): 4813bd24 4001a037 /system/lib/libc.so

I/DEBUG ( 100): 4813bd28 4813bdb0

I/DEBUG ( 100): 4813bd2c 405d20a4 /system/lib/libpixelflinger.so

I/DEBUG ( 100): 4813bd30 ffffffff

I/DEBUG ( 100): 4813bd34 00000001

I/DEBUG ( 100): 4813bd38 df0027ad

I/DEBUG ( 100): 4813bd3c 00000000

I/DEBUG ( 100): 4813bd40 00000000

I/DEBUG ( 100): #00 4813bd44 405cfd4d /system/lib/libpixelflinger.so

I/DEBUG ( 100): #01 4813bd48 00000001

I/DEBUG ( 100): 4813bd4c 00000000

I/DEBUG ( 100): 4813bd50 4813bd9c

I/DEBUG ( 100): 4813bd54 0017ebe0 [heap]

I/DEBUG ( 100): 4813bd58 00004000

I/DEBUG ( 100): 4813bd5c 00000000

I/DEBUG ( 100): 4813bd60 000000f0

I/DEBUG ( 100): 4813bd64 405cfe41 /system/lib/libpixelflinger.so

Here the error is more apparent (somewhat), there's a page fault somewhere, a chunk of memory is trying to be read but that chunk is unavailable, sadly I wasn't able to trace it (I was in that process but the phone was stolen so...). Using software rendering only there was nothing but a black screen and interestingly nothing obviously wrong at kernel level, a puzzle =/

From input I got from blade dev guys, the software rendering failing was unheard of apparently, all that came to mind is that the problem should be in the kernel. Given the similarities of the boards, I concour with mike that the LCD panels are one possible cause, the other would be the framebuffer code itself, but I couldn't figure it out in time :c

On gingerbread using opensource gralloc have a similar problem, disorted screen, errors with several pixelfinger related libraries and such.

4.0.4 logs attached at the end.

Regards

cm9-himax-test1.txt

cm9-himax-dmesg1.txt

cm9-soft-test3.txt

cm9-soft-dmesg3.txt

Link to comment
Share on other sites

Guest mikeioannina

Some logs from CM7.

dmesg with source built gralloc:


<6>[01-01 00:00:00.490000] [1: swapper]msm_fb_probe:  phy_Addr = 0x5d0c000 virt = 0xce600000

<6>[01-01 00:00:00.490000] [1: swapper]MDP HW Base phy_Address = 0xaa200000 virt = 0xce100000

<6>[01-01 00:00:00.500000] [1: swapper]lcd panel ic number on gpio 0x00h gpio_ic_lead 37669!

<4>[01-01 00:00:00.500000] [1: swapper][ZGC]:init_lcd_proc

<6>[01-01 00:00:00.500000] [1: swapper]lcdc config

<4>[01-01 00:00:00.550000] [1: swapper][ZYF] lcdc_set_bl level=5, 1

<6>[01-01 00:00:00.550000] [1: swapper]FrameBuffer[0] 240x320 size=307200 bytes is registered successfully!

<4>[01-01 00:00:00.550000] [1: swapper][ZGC]:LcdPanleID = 1

<7>[01-01 00:00:00.550000] [1: swapper]Registered led device: lcd-backlight

<3>[01-01 00:00:00.550000] [1: swapper]Error: Driver 'lcdc_panel_qvga' is already registered, aborting...

<3>[01-01 00:00:00.550000] [1: swapper]Error: Driver 'lcdc_panel_qvga' is already registered, aborting...

later (these lines keep repeating):

<2>[01-19 01:38:39.550000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.550000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.570000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.580000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.590000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.610000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.620000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.640000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.650000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.930000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

<2>[01-19 01:38:39.940000] kgsl kgsl: |kgsl_mh_intrcallback| mmu page fault interrupt: 660a884b

logcat with source built gralloc (distorted):

I/SurfaceFlinger(  206): SurfaceFlinger is starting

I/SurfaceFlinger(  206): dithering enabled

I/SurfaceFlinger(  206): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

I/mooncake.gralloc(  206): using (fd=27)

I/mooncake.gralloc(  206): id           = msmfb30_30001

I/mooncake.gralloc(  206): xres         = 240 px

I/mooncake.gralloc(  206): yres         = 320 px

I/mooncake.gralloc(  206): xres_virtual = 240 px

I/mooncake.gralloc(  206): yres_virtual = 640 px

I/mooncake.gralloc(  206): bpp          = 16

I/mooncake.gralloc(  206): r            = 11:5

I/mooncake.gralloc(  206): g            =  5:6

I/mooncake.gralloc(  206): b            =  0:5

I/mooncake.gralloc(  206): width        = 38 mm (160.421051 dpi)

I/mooncake.gralloc(  206): height       = 51 mm (159.372543 dpi)

I/mooncake.gralloc(  206): refresh rate = 2.03 Hz

D/libEGL  (  206): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  206): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  206): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  206): loaded /system/lib/egl/libGLESv2_adreno200.so

E/libEGL  (  206): eglSetSwapRectangleANDROID:1909 error 3008 (EGL_BAD_DISPLAY)

...

I/SurfaceFlinger(  206): EGL informations:

I/SurfaceFlinger(  206): # of configs : 35

I/SurfaceFlinger(  206): vendor    : Android

I/SurfaceFlinger(  206): version   : 1.4 Android META-EGL

I/SurfaceFlinger(  206): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer 

I/SurfaceFlinger(  206): Client API: OpenGL ES

I/SurfaceFlinger(  206): EGLSurface: 5-6-5-0, config=0x0

I/SurfaceFlinger(  206): OpenGL informations:

I/SurfaceFlinger(  206): vendor    : Qualcomm

I/SurfaceFlinger(  206): renderer  : Adreno (TM) 200

I/SurfaceFlinger(  206): version   : OpenGL ES-CM 1.1

I/SurfaceFlinger(  206): extensions: GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering GL_AMD_compressed_3DC_texture 

I/SurfaceFlinger(  206): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger(  206): GL_MAX_VIEWPORT_DIMS = 4096

I/SurfaceFlinger(  206): flags = 00000000

...

D/libEGL  (  220): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  220): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  220): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  220): loaded /system/lib/egl/libGLESv2_adreno200.so

W/zipro   (  220): Unable to open zip '/data/local/bootanimation.zip': No such file or directory

E/SurfaceFlinger(  206): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)

dmesg with prebuilt gralloc:

<6>[01-01 00:00:00.490000] [1: swapper]msm_fb_probe:  phy_Addr = 0x5d0c000 virt = 0xce600000

<6>[01-01 00:00:00.490000] [1: swapper]MDP HW Base phy_Address = 0xaa200000 virt = 0xce100000

<6>[01-01 00:00:00.500000] [1: swapper]lcd panel ic number on gpio 0x00h gpio_ic_lead 37669!

<4>[01-01 00:00:00.500000] [1: swapper][ZGC]:init_lcd_proc

<6>[01-01 00:00:00.500000] [1: swapper]lcdc config

<4>[01-01 00:00:00.550000] [1: swapper][ZYF] lcdc_set_bl level=5, 1

<6>[01-01 00:00:00.550000] [1: swapper]FrameBuffer[0] 240x320 size=307200 bytes is registered successfully!

<4>[01-01 00:00:00.550000] [1: swapper][ZGC]:LcdPanleID = 1

<7>[01-01 00:00:00.550000] [1: swapper]Registered led device: lcd-backlight

<3>[01-01 00:00:00.550000] [1: swapper]Error: Driver 'lcdc_panel_qvga' is already registered, aborting...

<3>[01-01 00:00:00.550000] [1: swapper]Error: Driver 'lcdc_panel_qvga' is already registered, aborting...

logcat with prebuilt gralloc & debug.sf.hw=0 (no distortion, software mode only):

I/SurfaceFlinger(  212): SurfaceFlinger is starting

I/SurfaceFlinger(  212): dithering enabled

I/SurfaceFlinger(  212): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/msm7k.gralloc(  212): RGB565

W/SurfaceFlinger(  212): H/W composition disabled

D/libEGL  (  212): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  212): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  212): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  212): loaded /system/lib/egl/libGLESv2_adreno200.so

I/SurfaceFlinger(  212): EGL informations:

I/SurfaceFlinger(  212): # of configs : 35

I/SurfaceFlinger(  212): vendor    : Android

I/SurfaceFlinger(  212): version   : 1.4 Android META-EGL

I/SurfaceFlinger(  212): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer 

I/SurfaceFlinger(  212): Client API: OpenGL ES

I/SurfaceFlinger(  212): EGLSurface: 5-6-5-0, config=0x1b

I/SurfaceFlinger(  212): OpenGL informations:

I/SurfaceFlinger(  212): vendor    : Android

I/SurfaceFlinger(  212): renderer  : Android PixelFlinger 1.4

I/SurfaceFlinger(  212): version   : OpenGL ES-CM 1.0

I/SurfaceFlinger(  212): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap 

I/SurfaceFlinger(  212): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger(  212): GL_MAX_VIEWPORT_DIMS = 4096

I/SurfaceFlinger(  212): flags = 000c0000

...

D/libEGL  (  225): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  225): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  225): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  225): loaded /system/lib/egl/libGLESv2_adreno200.so

logcat with prebuilt gralloc (distorted):

I/SurfaceFlinger(  209): SurfaceFlinger is starting

I/SurfaceFlinger(  209): dithering enabled

I/SurfaceFlinger(  209): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/msm7k.gralloc(  209): RGB565

D/libEGL  (  209): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  209): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  209): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  209): loaded /system/lib/egl/libGLESv2_adreno200.so

E/libEGL  (  209): eglSetSwapRectangleANDROID:1909 error 3008 (EGL_BAD_DISPLAY)

I/SurfaceFlinger(  209): EGL informations:

I/SurfaceFlinger(  209): # of configs : 35

I/SurfaceFlinger(  209): vendor    : Android

I/SurfaceFlinger(  209): version   : 1.4 Android META-EGL

I/SurfaceFlinger(  209): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer 

I/SurfaceFlinger(  209): Client API: OpenGL ES

I/SurfaceFlinger(  209): EGLSurface: 5-6-5-0, config=0x0

I/SurfaceFlinger(  209): OpenGL informations:

I/SurfaceFlinger(  209): vendor    : Qualcomm

I/SurfaceFlinger(  209): renderer  : Adreno (TM) 200

I/SurfaceFlinger(  209): version   : OpenGL ES-CM 1.1

I/SurfaceFlinger(  209): extensions: GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering GL_AMD_compressed_3DC_texture 

I/SurfaceFlinger(  209): GL_MAX_TEXTURE_SIZE = 4096

I/SurfaceFlinger(  209): GL_MAX_VIEWPORT_DIMS = 4096

I/SurfaceFlinger(  209): flags = 00000000

...

D/libEGL  (  223): loaded /system/lib/egl/libGLES_android.so

D/libEGL  (  223): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL  (  223): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL  (  223): loaded /system/lib/egl/libGLESv2_adreno200.so

E/SurfaceFlinger(  209): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)

Edited by mikeioannina
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.