]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: fix IP discovery v0 handling
authorfilippor <filippo.rossoni@gmail.com>
Thu, 16 Apr 2026 14:34:57 +0000 (16:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 18:50:45 +0000 (14:50 -0400)
Cyan skillfish uses IP discovery v0.  This was broken when the
IP discovery was refactored for newer versions.

Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5189
Fixes: d0c647a6aae2 ("drm/amdgpu/discovery: support new discovery binary header")
Signed-off-by: filippor <filippo.rossoni@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index 8ec5465c3349df31157b7732fa657185a2d288f8..fcad7daaa41b54d20ef0c3b86a95c32287f9031e 100644 (file)
@@ -535,10 +535,11 @@ static int amdgpu_discovery_get_table_info(struct amdgpu_device *adev,
                *info = &bhdrv2->table_list[table_id];
                break;
        case 1:
+       case 0:
                *info = &bhdr->table_list[table_id];
                break;
        default:
-               dev_err(adev->dev, "Invalid ip discovery table version\n");
+               dev_err(adev->dev, "Invalid ip discovery table version %d\n",bhdr->version_major);
                return -EINVAL;
        }