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

drm/amdgpu: parse the new members added by gpu_info ucode v1_1

Parse the new parameters for gfx10.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
35c2e910 109c80dd

+9
+9
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 1428 1428 adev->gfx.cu_info.max_scratch_slots_per_cu = 1429 1429 le32_to_cpu(gpu_info_fw->gc_max_scratch_slots_per_cu); 1430 1430 adev->gfx.cu_info.lds_size = le32_to_cpu(gpu_info_fw->gc_lds_size); 1431 + if (hdr->version_minor == 1) { 1432 + const struct gpu_info_firmware_v1_1 *gpu_info_fw = 1433 + (const struct gpu_info_firmware_v1_1 *)(adev->firmware.gpu_info_fw->data + 1434 + le32_to_cpu(hdr->header.ucode_array_offset_bytes)); 1435 + adev->gfx.config.num_sc_per_sh = 1436 + le32_to_cpu(gpu_info_fw->num_sc_per_sh); 1437 + adev->gfx.config.num_packer_per_sc = 1438 + le32_to_cpu(gpu_info_fw->num_packer_per_sc); 1439 + } 1431 1440 break; 1432 1441 } 1433 1442 default: