drm/amdgpu/discovery: fix fw based ip discovery
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Jul 2025 15:16:05 +0000 (11:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Aug 2025 20:54:04 +0000 (16:54 -0400)
commit514678da56da089b756b4d433efd964fa22b2079
treeaec133230124b240da1af5f07faa892649e73035
parent2e58401a24e7b2d4ec619104e1a76590c1284a4c
drm/amdgpu/discovery: fix fw based ip discovery

We only need the fw based discovery table for sysfs.  No
need to parse it.  Additionally parsing some of the board
specific tables may result in incorrect data on some boards.
just load the binary and don't parse it on those boards.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4441
Fixes: 80a0e8282933 ("drm/amdgpu/discovery: optionally use fw based ip discovery")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 62eedd150fa11aefc2d377fc746633fdb1baeb55)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c