I would like to use steamline DS5 to collect GPU information from odroid XU4. however :
many GPU counters are missing.
I used this kernel source :GitHub - hardkernel/linux at odroidc-3.10.y . It is version Linux odroid 3.10.103. My DS5 version is DS-5 CE_5.25.0.
I have enabled all the configurations required:
- General Setup
- Kernel Performance Events And Counters
- [*] Kernel performance events and counters (enables CONFIG_PERF_EVENTS)
- [*] Profiling Support (enables CONFIG_PROFILING)
- [*] Enable loadable module support (enables CONFIG_MODULES, needed unless the gator driver is built into the kernel)
- [*] Module unloading (enables MODULE_UNLOAD)
- Kernel Features
- [*] High Resolution Timer Support (enables CONFIG_HIGH_RES_TIMERS)
- [*] Use local timer interrupts (only required for SMP and for version before Linux 3.12, enables CONFIG_LOCAL_TIMERS)
- [*] Enable hardware performance counter support for perf events (enables CONFIG_HW_PERF_EVENTS)
- CPU Power Management
- CPU Frequency scaling
- [*] CPU Frequency scaling (enables CONFIG_CPU_FREQ)
- Device Drivers
- Graphics support
- ARM GPU Configuration
- Mali Midgard series support
- [*] Streamline Debug support (enables CONFIG_MALI_GATOR_SUPPORT needed as part of Mali Midgard support)
- Kernel hacking
- [*] Compile the kernel with debug info (optional, enables CONFIG_DEBUG_INFO)
- [*] Tracers
- [*] Trace process context switches and events (#)
The kernel space gator is compiled and inserted.
What is wrong?
Hello Peter,
I use this command to compile gator.ko :
make -C ~/.../odroidxu3-3.10.y/ M=`pwd` ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -modules GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD MALI_DIR_MIDGARD=".../odroidxu3-3.10.y/drivers/gpu/arm/midgard"
But I received the following errors from dmesg
mali 11800000.mali: Continuing without Mali clock control
mali 11800000.mali: GPU identified as 0x0620 r0p1 status 0
mali 11800000.mali: Couldn't initialize devfreq
mali 11800000.mali: Failed kbase_common_device_init
I am wondering if my mali driver is correctly compiled? Therefore the gator can not collect information from it?
Thanks.
Seeing kbase_common_device_init fail isn't a good sign, that looks like the Mali driver kernel module is failing to initialize correctly, so that's probably a good place to start investigating.
Thanks Peter,
1. I used this kernel source GitHub - hardkernel/linux at odroidc-3.10.y
and I follow this instruction to compile and kernel and modules : http://odroid.com/dokuwiki/doku.php?id=en:xu3_building_kernel
en:xu3_building_kernel [Odroid Wiki]
The mali driver is built into the kernel. Here is the mali entry from my kernel built in list modules.builtin:
kernel/drivers/gpu/arm/midgard/mali_kbase.ko
Why the mali driver is still not initialized correctly?
2. So in the streamline file README.md:
<<<<___To add the corresponding support to Mali___
<<<< Userspace (scons) needs gator=1
I am not sure about what this means. I do not know much about scons, how can I enable gator=1?
Many thanks.