drm/amdgpu: Move calculation of xcp per memory node
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 14 Jun 2023 04:16:49 +0000 (09:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jun 2023 19:31:55 +0000 (15:31 -0400)
commit025654ae429112aabf6875870c06d6a7ee475104
tree5f6e10148055f80b06149afd360a561c0979b311
parentef3c36a6e025e9b16ca3321479ba016841fa17a0
drm/amdgpu: Move calculation of xcp per memory node

Its value is required for finding the memory id of xcp.

Fixes: d26ea1b346e7 ("drm/amdgpu: Add xcp manager num_xcp_per_mem_partition")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c