Skip to content

Instantly share code, notes, and snippets.

@ssvb
ssvb / gist:5427109
Created April 20, 2013 19:37
mediainfo for sintel_trailer-1080p.mp4
$ mediainfo sintel_trailer-1080p.mp4
General
Complete name : sintel_trailer-1080p.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 13.9 MiB
Duration : 52s 209ms
Overall bit rate mode : Variable
Overall bit rate : 2 240 Kbps
@ssvb
ssvb / gist:5453379
Created April 24, 2013 16:13
Test of gles-yellow-blue-flip.c (d147e25fc507b798b89fdd177206737e1b72ae60) on ODROID-X with r3p2 mali400 drivers
# xtrace -d :0 -D :2 -n ./gles-yellow-blue-flip | grep DRI2
001:<:0007: 12: Request(98): QueryExtension name='DRI2'
000:<:000a: 12: Request(98): QueryExtension name='DRI2'
000:<:000d: 12: DRI2-Request(136,1): Connect window=0x000000e2 driver-type=DRI(0x00000000)
000:<:000e: 12: DRI2-Request(136,2): Authenticate window=0x000000e2 token=0x00000004
000:<:004e: 8: DRI2-Request(136,3): CreateDrawable drawable=0x03a00001
000:<:004f: 16: DRI2-Request(136,5): GetBuffers drawable=0x03a00001 attachments={attachment=BackLeft(0x00000001)};
000:>:0054: Event DRI2-InvalidateBuffers(75) drawable=0x03a00001
001:<:000c: 32: DRI2-Request(136,8): SwapBuffers drawable=0x03a00001 target_msc_hi=0 target_msc_lo=0 divisor_hi=0 divisor_lo=0 remainder_hi=0 remainder_lo=0
@ssvb
ssvb / gist:5492148
Created April 30, 2013 21:38
Benchmarking linux framebuffer driver vs. libhybris on Allwinner A10 hardware (Mali400 GPU)
Tests done with:
https://github.com/ssvb/libhybris/commit/23bd20eb6c75fc5c6124f1f2c2532356fd91ab3e
=== mali framebuffer driver: ===
CPU load = ~0%
strace -f ./test_glesv2_mali_fb
@ssvb
ssvb / gist:5497187
Created May 1, 2013 18:26
libhybris & mali400, high cpu usage investigation
Trying to find a culprit to blame for the sched_yield() calls logged at
https://gist.github.com/ssvb/5492148
# gdb ./test_glesv2
[...]
linker.c:661| WARNING: `libc.so` is not a prelinked library
0 mapped library 'libc.so' to b6d0a000 via kernel allocator.
# EGL_PLATFORM=fbdev ./test_glesv2
linker.c:661| WARNING: `/system/lib/libEGL.so` is not a prelinked library
0 mapped library 'libEGL.so' to b6cd9000 via kernel allocator.
linker.c:661| WARNING: `liblog.so` is not a prelinked library
0 mapped library 'liblog.so' to b6f51000 via kernel allocator.
linker.c:661| WARNING: `libc.so` is not a prelinked library
0 mapped library 'libc.so' to b6c88000 via kernel allocator.
linker.c:661| WARNING: `libdsyscalls.so` is not a prelinked library
0 mapped library 'libdsyscalls.so' to b6c37000 via kernel allocator.
linker.c:661| WARNING: `libstdc++.so` is not a prelinked library
libhybris 5165b4b543793c507ad4b72655480232ccd6d5c4
# export EGL_PLATFORM=fbdev
# valgrind ./test_glesv2
==1256== Memcheck, a memory error detector
==1256== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==1256== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==1256== Command: ./test_glesv2
==1256==
linker.c:661| WARNING: `/system/lib/libEGL.so` is not a prelinked library
libhybris on mali400
# export EGL_PLATFORM=null
# time ./test_glesv2
real 0m30.430s
user 0m0.200s
sys 0m0.130s
# export EGL_PLATFORM=fbdev
@ssvb
ssvb / gist:5653316
Last active December 17, 2015 18:29
Allwinner A10 memory bandwidth tests
Mode "1920x1080_50" 148.5 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync
Mode "1920x1080_56" 148.5 1920 2165 2209 2357 1080 1084 1089 1125 +HSync +VSync
Mode "1920x1080_60" 148.5 1920 2008 2052 2200 1080 1084 1089 1125 +HSync +VSync
== 1920x1080, 32bpp, 50Hz, scaler_mode=0, memfreq=480 ==
NEON fill : 1122.4 MB/s
NEON fill backwards : 1188.3 MB/s
== 1920x1080, 24bpp, 50Hz, scaler_mode=0, memfreq=480 ==
@ssvb
ssvb / meminfo-nand.txt
Created June 30, 2013 06:04
a10-meminfo for CubieBoard2 firmware from nand
dram_clk = 480
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_tpr0 = 0x42d899b7
@ssvb
ssvb / meminfo-open-source-uboot.txt
Created June 30, 2013 06:07
a10-meminfo for CubieBoard2 with normal open source u-boot ( https://github.com/hno/u-boot/tree/wip/a20 )
dram_clk = 480
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_tpr0 = 0x42d899b7