drm/amdgpu: add support for IP discovery gc_info table v2
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Dec 2021 03:13:56 +0000 (22:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 11:42:38 +0000 (12:42 +0100)
commit94ba5b0fb52d6dbf1f200351876a839afb74aedd
treec89f90be06a15be4b82b643e5fffdc8a845b7686
parent97fd2b6c0340ad06872feda449bf6168ee56a35a
drm/amdgpu: add support for IP discovery gc_info table v2

commit 5e713c6afa34c0fd6f113bf7bb1c2847172d7b20 upstream.

Used on gfx9 based systems. Fixes incorrect CU counts reported
in the kernel log.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1833
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/amdgpu_discovery.c
drivers/gpu/drm/amd/include/discovery.h