This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Streamline Community Edition Mali Counters

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?

Parents
  • Hey Stephen,

    Thanks for the detailed answer - maybe I am not building the gator.ko correctly.

    On the Github page (GitHub - ARM-software/gator) the steps to build the gator.ko is just

    "make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules"

    It doesn't really mention anything about the build time option you described (ie. "GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD DDK_DIR=".../path/to/Mali_DDK_kernel_files"). Can you explain that to me again? Perhaps that is why it is not working.

    I'm also wondering about this line on the Github page :

    "cp -r /path/to/streamline/gator/driver ."

    Is this copying the directory for the gator driver from my streamline installation (ie. for me, I installed it in "/usr/local/DS-5_CE_v5.25.0/sw/streamline/gator/driver"). Am I making the gator.ko from copying this directory? I'm asking because what I did was I downloaded the source from the Github page, went into the "drivers" directory from that and built it from there.

    And finally, just in case it helps:

    1) I'm using an Odroid XU4 board - it has a Mali T628 on it.

    2) On the Odroid XU4 board, my Driver is "EGL_VERSION = 1.4 Midgard-"r9p0-05rel0"

    3) The linux kernel is 3.10.96+

    4) This is what I'm not entirely sure about then. I built the gator.ko using the instructions in the Github page.

    Thanks Stephen!

Reply
  • Hey Stephen,

    Thanks for the detailed answer - maybe I am not building the gator.ko correctly.

    On the Github page (GitHub - ARM-software/gator) the steps to build the gator.ko is just

    "make -C <kernel_build_dir> M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules"

    It doesn't really mention anything about the build time option you described (ie. "GATOR_WITH_MALI_SUPPORT=MALI_MIDGARD DDK_DIR=".../path/to/Mali_DDK_kernel_files"). Can you explain that to me again? Perhaps that is why it is not working.

    I'm also wondering about this line on the Github page :

    "cp -r /path/to/streamline/gator/driver ."

    Is this copying the directory for the gator driver from my streamline installation (ie. for me, I installed it in "/usr/local/DS-5_CE_v5.25.0/sw/streamline/gator/driver"). Am I making the gator.ko from copying this directory? I'm asking because what I did was I downloaded the source from the Github page, went into the "drivers" directory from that and built it from there.

    And finally, just in case it helps:

    1) I'm using an Odroid XU4 board - it has a Mali T628 on it.

    2) On the Odroid XU4 board, my Driver is "EGL_VERSION = 1.4 Midgard-"r9p0-05rel0"

    3) The linux kernel is 3.10.96+

    4) This is what I'm not entirely sure about then. I built the gator.ko using the instructions in the Github page.

    Thanks Stephen!

Children