Skip to content

Commit f7a17b2

Browse files
mukjoshialexdeucher
authored andcommitted
drm/amdgpu: Fix typo in IP discovery parsing
Fix a typo in parsing of the GC info table header when reading the IP discovery table. Fixes: 0e64c9a ("drm/amdgpu: add type conversion for gc info") Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1efdd37 commit f7a17b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ static int amdgpu_discovery_get_gfx_info(struct amdgpu_device *adev)
14881488
adev->gfx.config.num_sc_per_sh = le32_to_cpu(gc_info->v2.gc_num_sc_per_se) /
14891489
le32_to_cpu(gc_info->v2.gc_num_sh_per_se);
14901490
adev->gfx.config.num_packer_per_sc = le32_to_cpu(gc_info->v2.gc_num_packer_per_sc);
1491-
if (le16_to_cpu(gc_info->v2.header.version_minor == 1)) {
1491+
if (le16_to_cpu(gc_info->v2.header.version_minor) == 1) {
14921492
adev->gfx.config.gc_num_tcp_per_sa = le32_to_cpu(gc_info->v2_1.gc_num_tcp_per_sh);
14931493
adev->gfx.config.gc_tcp_size_per_cu = le32_to_cpu(gc_info->v2_1.gc_tcp_size_per_cu);
14941494
adev->gfx.config.gc_num_sdp_interface = le32_to_cpu(gc_info->v2_1.gc_num_sdp_interface); /* per XCD */

0 commit comments

Comments
 (0)