drm/amdgpu: fix IP discovery v0 handling
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: fix IP discovery v0 handling
From: filippor <[email protected]>
Cyan skillfish uses IP discovery v0. This was broken when the IP discovery was refactored for newer versions.
Fixes d0c647a6aae2 ("drm/amdgpu/discovery: support new discovery binary header")
Signed-off-by filippor <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -1
@@ -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 ; }
Signature · 1 line
2.53.0