static bool psp_check_fw_loading_status(struct amdgpu_device *adev, enum AMDGPU_UCODE_ID ucode_type) { struct amdgpu_firmware_info *ucode = NULL; if (!adev->firmware.fw_size) return false; ucode = &adev->firmware.ucode[ucode_type]; if (!ucode->fw || !ucode->ucode_size) return false; return psp_compare_sram_data(&adev->psp, ucode, ucode_type); }
static bool psp_check_fw_loading_status(struct amdgpu_device *adev, enum AMDGPU_UCODE_ID ucode_type) { struct amdgpu_firmware_info *ucode = NULL; if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) { DRM_INFO("firmware is not loaded by PSP\n"); return true; } if (!adev->firmware.fw_size) return false; ucode = &adev->firmware.ucode[ucode_type]; if (!ucode->fw || !ucode->ucode_size) return false; return psp_compare_sram_data(&adev->psp, ucode, ucode_type); }