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

how to enable all cores of Mali-400 GPU?

Hi there,

    We are now transplanting our graphics subsystem onto the sunxi-A20 SoC, whose GPU is Mali-400 MP2. But we find that rendering a frame costs about 33ms, which is too slow. And after we did some study on the driver, we found the cause of low performance is that there is only one pp core used during per frame. As we don't have a copy of code of user space libraries, we can only locate the problem in the kernel side. We find out that when start a pp job by the user space, via calling MALI_IOC_PP_START_JOB(ioctl) with args in _mali_uk_pp_start_job_s, there is an attribute named "num_cores"(in _mali_uk_pp_start_job_s)  set as 1, which results in that the job cannot be split into more sub jobs. Are there any methods to enable both of the pp cores?

The version of the libraries and drivers we use is "r3p0", and ABI is "armhf", EGL_TYPE is "framebuffer"

Any reply will be appreciated! Thanks all of you guys.

Ailen

Parents Reply Children
  • Hi dsd,

    There is a new job manager for Mali-450, hence why it uses a different path in the driver than the Mali-400 GPU's. As such, we expect it to have its num_cores to be set to 1 for normal operations.

    The new job manager will then take this and split it amongst the cores on a dynamic load balancing method, taking into account the overheads, and run on the appropriate number of cores accordingly.

    Can I ask, are you seeing a problem... i.e. do you know it is running below the maximum number of cores at all times?

    Some platforms have a sysfs entry (if debugfs is enabled) that tells you which cores are enabled and which are not. This entry can vary on different platforms so I cant suggest where to look without knowing the device you have.

    If there isn't a problem and you are inferring this from the code, then I would like to say it is safe to see 1, and not to worry, that it is in fact using all the cores if/when it makes sense.

    However if you are seeing evidence that not all the cores are being used, it could be that the system has powered off the cores for dynamic power reasons (for example the overhead of splitting a very small job means it doesnt make sense to run that on multiple cores).

    That would be controlled by the SoC vendor during integration and they will be able to give you more information as to their power policy, and indeed if they have specifically permanently powered off some cores.

    I hope this helped.

    Kind Regards,

    Michael McGeagh

  • Hi mcgeagh

    Thanks for the detailed response! I hadn't seen any particular problem, just having seen this thread and seeing that a vendor might have got some build options wrong, I decided to run the same test on my platform.

    The sysfs entries suggest that all cores are active, so I think everything is fine. I'll double check with the Mali profiling tools at some point.