We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi there,
I am using the Community Edition of Streamline and am connecting to an EXYNOS5422 with a ARM Mail-T628 on board.
I'm trying to view the Mali counters for the GPU, but I cannot see the option in my Streamline counter configuration. When I try to add the Mali Midgard via "Add counters from a template", it says that my target does not support them.
Can I get some information on which configs I should be turning on? I suppose I may have missed something, but I turned on :
~$ zcat /proc/config.gz | grep MALI
CONFIG_MALI_MIDGARD=y
# CONFIG_MALI_TIMELINE_DISABLED is not set
CONFIG_MALI_GATOR_SUPPORT=y
# CONFIG_MALI_MIPE_ENABLED is not set
CONFIG_MALI_MIDGARD_DVFS=y
CONFIG_MALI_MIDGARD_ENABLE_TRACE=y
# CONFIG_MALI_DEVFREQ is not set
CONFIG_MALI_EXPERT=y
# CONFIG_MALI_DEBUG_SHADER_SPLIT_FS is not set
CONFIG_MALI_PLATFORM_FAKE=y
# CONFIG_MALI_PLATFORM_DEVICETREE is not set
CONFIG_MALI_PLATFORM_THIRDPARTY=y
CONFIG_MALI_PLATFORM_THIRDPARTY_NAME="5422"
# CONFIG_MALI_DEBUG is not set
# CONFIG_MALI_NO_MALI is not set
# CONFIG_MALI_TRACE_TIMELINE is not set
# CONFIG_MALI_SYSTEM_TRACE is not set
# CONFIG_MALI_GPU_TRACEPOINTS is not set
Should I try turning on all of the configs for Mali?
<<<<<<driver/gator_trace_gpu.c:22:36: fatal error: linux/mali_linux_trace.h
This error is due to the difference between old and new DDK version
You need to use :
MALI_DIR_MIDGARD="your_kernel_directory/drivers/gpu/arm/midgard", not DDK_DIR="your_kernel_directory/drivers/gpu/arm/midgard" to build your gator.ko
Cheers
Thanks dynamic, I tried that but I got the same error as I posted below. Another thing I'm wondering is what the <kernel_build_dir> is in the command
"make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules"
make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules"
Does this refer to the directory of the kernel source? Or the directory of the built kernel (ie. the directory with the boot images, etc..)?
I'm asking because when I use the kernel source directory, I get the error below. If I run it using the built kernel directory, I get my previous error (the error shown below where I used 'MALI_DIR_MIDGARD' instead of 'DDK_DIR' ). Some things successfully build but it fails when it gets to gator_events_mali_midgard_hw.o.
ERROR if running the make command in the kernel source.
-------------------------
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
WARNING: Symbol version dump /home/prateekmohan/EEE598/odroid-kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
/home/prateekmohan/EEE598/odroid-kernel/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[1]: *** No rule to make target `include/config/auto.conf'. Stop.
make: *** [modules] Error 2
make: Leaving directory `/home/prateekmohan/EEE598/odroid-kernel'
ERROR after using 'MALI_DIR_MIDGARD' instead of 'DDK_DIR':
-------------------
prateekmohan@prateekmohan-HP-15-Notebook-PC:~/EEE598/gator/gator/driver$ make -C /home/prateekmohan/EEE598/build/ M=`pwd` ARCH=arm CROSS_COMPILE=arm-eabi- GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD KCFLAGS="-I/home/prateekmohan/EEE598/odroid-kernel/drivers/gpu/arm/midgard/" MALI_DIR_MIDGARD="/home/prateekmohan/EEE598/odroid-kernel/drivers/gpu/arm/midgard/" modules
make: Entering directory `/home/prateekmohan/EEE598/build'
CHK /home/prateekmohan/EEE598/gator/gator/driver/gator_src_md5.h
CC [M] /home/prateekmohan/EEE598/gator/gator/driver/gator_main.o
CC [M] /home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.o
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:71:20: error: expected declaration specifiers or '...' before '*' token
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:72:20: error: expected declaration specifiers or '...' before '*' token
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:73:20: error: expected declaration specifiers or '...' before '*' token
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:74:20: error: expected declaration specifiers or '...' before '*' token
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:75:19: error: expected declaration specifiers or '...' before '*' token
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c: In function 'init_symbols':
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:483:5: warning: assignment from incompatible pointer type [enabled by default]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:484:5: warning: assignment from incompatible pointer type [enabled by default]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:485:1: error: 'kbase_instr_hwcnt_enable_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:485:1: note: each undeclared identifier is reported only once for each function it appears in
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:486:1: error: 'kbase_instr_hwcnt_clear_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:487:1: error: 'kbase_instr_hwcnt_dump_irq_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:487:5: error: 'kbase_instr_hwcnt_dump_irq' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:488:1: error: 'kbase_instr_hwcnt_dump_complete_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:489:1: error: 'kbase_instr_hwcnt_disable_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:490:5: warning: assignment from incompatible pointer type [enabled by default]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c: In function 'clean_symbols':
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:511:1: error: 'kbase_instr_hwcnt_enable_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:512:1: error: 'kbase_instr_hwcnt_clear_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:513:1: error: 'kbase_instr_hwcnt_dump_irq_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:514:1: error: 'kbase_instr_hwcnt_dump_complete_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:515:1: error: 'kbase_instr_hwcnt_disable_symbol' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c: In function 'start':
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:527:5: error: unknown type name 'mali_error'
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:613:34: error: 'struct kbase_device' has no member named 'shader_present_bitmap'
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:641:14: error: 'struct kbase_uk_hwcnt_setup' has no member named 'l3_cache_bm'
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:644:9: error: implicit declaration of function 'kbase_instr_hwcnt_enable_symbol' [-Werror=implicit-function-declaration]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:645:20: error: 'MALI_ERROR_NONE' undeclared (first use in this function)
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:650:9: error: implicit declaration of function 'kbase_instr_hwcnt_clear_symbol' [-Werror=implicit-function-declaration]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c: In function 'stop':
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:712:9: error: implicit declaration of function 'kbase_instr_hwcnt_disable_symbol' [-Werror=implicit-function-declaration]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c: In function 'read':
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:833:5: error: implicit declaration of function 'kbase_instr_hwcnt_dump_complete_symbol' [-Werror=implicit-function-declaration]
/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.c:866:9: error: implicit declaration of function 'kbase_instr_hwcnt_dump_irq_symbol' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [/home/prateekmohan/EEE598/gator/gator/driver/gator_events_mali_midgard_hw.o] Error 1
make[2]: *** [_module_/home/prateekmohan/EEE598/gator/gator/driver] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/home/prateekmohan/EEE598/build'
------------------
Hi prateekmohan1,
-----ERROR: Kernel configuration is invalid.
Have you enabled mali support in your kernel configuration?