]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdkfd: Consolidate duplicate memory banks info in topology
authorYong Zhao <yong.zhao@amd.com>
Fri, 13 Jul 2018 20:17:43 +0000 (16:17 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 13 Jul 2018 20:17:43 +0000 (16:17 -0400)
commitf3ed5df84c268235fb1d489ab8979af423da02de
tree6ed1e981bf7d0eea15963159152cccefb7c31555
parente7016d8e6f1b92888cc6093fd4e09d9f85934eb9
drm/amdkfd: Consolidate duplicate memory banks info in topology

If there are several memory banks that has the same properties in CRAT,
we aggregate them into one memory bank. This cleans up memory banks on
APUs (e.g. Raven) where the CRAT reports each memory channel as a
separate bank. This only confuses user mode, which only deals with
virtual memory.

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c