drm/amdkfd: Populate memory info before adding GPU node to topology
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 7 Jun 2022 18:46:18 +0000 (14:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:44:22 +0000 (09:44 -0400)
commitd1d22df174ae512c57374f517e346b608f61555c
tree6a10ba60957beeb55936e698c084e624bc6c8436
parent1bd6dd21fcd53ac78a9018b96699ef1aa99a3e59
drm/amdkfd: Populate memory info before adding GPU node to topology

The local memory info needs to be fetched before the GPU node is added
to topology. Without this, the sysfs is incorrectly populated and the
size is reported as 0. This was causing rocr tests to fail. This issue
was caused because of a bad merge.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Amber Lin <Amber.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c