]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: fix missing L2 cache info in topology
authorEric Huang <jinhuieric.huang@amd.com>
Tue, 28 Jan 2025 20:48:26 +0000 (15:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:05:49 +0000 (21:05 -0500)
commit5ffd56822a7159917306d99f18fd15dfd7288f20
treecd355f0f75cb08eb4010fdbc256f7694b41e9a67
parentebc25499de1287d9ad5f8461586e76e05a54df02
drm/amdkfd: fix missing L2 cache info in topology

In some ASICs L2 cache info may miss in kfd topology,
because the first bitmap may be empty, that means
the first cu may be inactive, so to find the first
active cu will solve the issue.

v2: Only find the first active cu in the first xcc

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c