提交 340efe28 编写于 作者: H Huang Rui 提交者: Alex Deucher

drm/amdgpu: add ucode_start_address into cgs_firmware_info

The ucode_start_address would be used on powerplay of iceland.
Signed-off-by: NHuang Rui <ray.huang@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 86a42f04
...@@ -752,6 +752,9 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, ...@@ -752,6 +752,9 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
if (!adev->pm.fw) { if (!adev->pm.fw) {
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_TOPAZ:
strcpy(fw_name, "amdgpu/topaz_smc.bin");
break;
case CHIP_TONGA: case CHIP_TONGA:
strcpy(fw_name, "amdgpu/tonga_smc.bin"); strcpy(fw_name, "amdgpu/tonga_smc.bin");
break; break;
...@@ -800,6 +803,7 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, ...@@ -800,6 +803,7 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
info->version = adev->pm.fw_version; info->version = adev->pm.fw_version;
info->image_size = ucode_size; info->image_size = ucode_size;
info->ucode_start_address = ucode_start_address;
info->kptr = (void *)src; info->kptr = (void *)src;
} }
return 0; return 0;
......
...@@ -160,6 +160,10 @@ struct cgs_firmware_info { ...@@ -160,6 +160,10 @@ struct cgs_firmware_info {
uint16_t feature_version; uint16_t feature_version;
uint32_t image_size; uint32_t image_size;
uint64_t mc_addr; uint64_t mc_addr;
/* only for smc firmware */
uint32_t ucode_start_address;
void *kptr; void *kptr;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册