Hello I am working on a RK3288 board, it is having Mali-T760 MP4 GPU. can someone help me how to disable two shader cores on this board. I actually was looking for the Mali-T760 MP2 config on the same board.
Hi slp.sristi57,
I do not have an RK3288 board here to test, so the exact location may not the the same for you, but with some probing around, its likely you will find it.
The file to change the core affinity, is called core_mask.
On my test device, it is located here:
/sys/devices/platform/mali.0/core_mask
You can check the current mask with:
cat core_mask
You can set the new core mask with echo:
echo "0x3" > core_mask
for example to drop it from 4 (0xF) to 2 (0x3)
I believe you will need root privileges to perform this action.
It may also be overridden by the system at any point based on other factors, such as power policy and DVFS etc, so you may want to periodically check this during your tests, and potentially echo again to try force its hand.
If your system doesn't have this, then you will need to contact Rockchip. This is something that is under the control of the Silicon Manufacturer and OEM, not us.
I hope this helps, please let us know if you have any further questions.
Kind Regards,
Michael McGeagh