msm: kgsl: Improve GMU firmware loading time
Doing a regwrite of one dword with barrier over a loop is very
inefficient for block writes to an I/O mapped memory. Use
memcpy_toio() to improve this since it is better for block copy
to io memory.
Profiled data of load_gmu_fw() over 400 iterations:
Old:- min:3.6ms max:35ms mean:21ms
New:- min:0.55ms max:1.11ms mean:1.02ms
Change-Id: I21aa6145caeeb777f27b90fe091c50af49948722
Signed-off-by:
Akhil P Oommen <akhilpo@codeaurora.org>
Loading
Please register or sign in to comment