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?
Thanks for the detailed reply Stephen - appreciate it.
I in fact got it working, and for others with this problem, I was building my kernel into a different directory than the source. Normally, if you just run the "make" command in the kernel source, it will build it in the same directory. I was building it in a separate directory which was causing issues when gator was being built.
After you build it in the same directory and the kernel successfully builds the way that I built gator.ko (that worked) was:
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
The directory I bolded should be your kernel source directory. Because you have built the kernel in the same directory it has all the files that gator requires to build gator.ko.
Thanks for all the help guys! Really appreciate it!