]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/pp/smu7: cache smu firmware toc
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Jul 2018 05:38:23 +0000 (00:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:52:58 +0000 (14:52 -0500)
commit6af743aede798ba4607c453e76fbbd497beca9e7
tree355f9ebb108c681a5e979c8173ffb60651e74344
parentf06ae8aa1fe4af46324f84a71458ea64e8e3b822
drm/amdgpu/pp/smu7: cache smu firmware toc

Rather than calculating it everytime we rebuild the toc
buffer, calculate it once initially and then just copy
the cached results to the vram buffer.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h