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)
commitd92867122cd952485a4d209829bfa935689b14fe
tree355f9ebb108c681a5e979c8173ffb60651e74344
parent82088d5d7de1ef3575206cc3284dc219d0bd8fab
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