Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: fix IP discovery v0 handling

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>

authored by

filippor and committed by
Alex Deucher
831cb9ba a6d561a8

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
··· 535 535 *info = &bhdrv2->table_list[table_id]; 536 536 break; 537 537 case 1: 538 + case 0: 538 539 *info = &bhdr->table_list[table_id]; 539 540 break; 540 541 default: 541 - dev_err(adev->dev, "Invalid ip discovery table version\n"); 542 + dev_err(adev->dev, "Invalid ip discovery table version %d\n",bhdr->version_major); 542 543 return -EINVAL; 543 544 } 544 545