drm/amdgpu: correct the cu count for gfx v11
authorLikun Gao <Likun.Gao@amd.com>
Fri, 5 Jan 2024 09:33:34 +0000 (17:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:08 +0000 (16:19 -0800)
commitb788696f9ed01019b10b1a2d7e92b4f8c61434d6
treee5bf2fba2541e614fbd010d8967a19ef7a347f9d
parent7510670bb46a586b65ef7c3b38f5297ebc5b871b
drm/amdgpu: correct the cu count for gfx v11

commit f4a94dbb6dc0bed10a5fc63718d00f1de45b12c0 upstream.

Correct the algorithm of active CU to skip disabled
sa for gfx v11.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c