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:40:32 +0000 (12:40 +0100)
commitb8553330a07749e488d143b5704adf1042fd7c0a
tree369c5291658378bd444b75850e6fe796b73d5720
parent28863ffe21ff711d5109e3c208676258bdec3a1f
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