Skip to contentSkip to conversation

drm/amdgpu: fix IP discovery v0 handling

PATCH New Alex Deucher 1 participant 1 message Apr 16

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 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")
---
 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
index 464b3e2f50a9a..31d85606d31b5 100644
@@ -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