File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ static int psp_asd_load(struct psp_context *psp)
563
563
* add workaround to bypass it for sriov now.
564
564
* TODO: add version check to make it common
565
565
*/
566
- if (amdgpu_sriov_vf (psp -> adev ) || !psp -> asd_fw )
566
+ if (amdgpu_sriov_vf (psp -> adev ) || !psp -> asd_ucode_size )
567
567
return 0 ;
568
568
569
569
cmd = kzalloc (sizeof (struct psp_gfx_cmd_resp ), GFP_KERNEL );
@@ -2589,11 +2589,10 @@ static int parse_ta_bin_descriptor(struct psp_context *psp,
2589
2589
2590
2590
switch (desc -> fw_type ) {
2591
2591
case TA_FW_TYPE_PSP_ASD :
2592
- psp -> asd_fw_version = le32_to_cpu (desc -> fw_version );
2592
+ psp -> asd_fw_version = le32_to_cpu (desc -> fw_version );
2593
2593
psp -> asd_feature_version = le32_to_cpu (desc -> fw_version );
2594
- psp -> asd_ucode_size = le32_to_cpu (desc -> size_bytes );
2594
+ psp -> asd_ucode_size = le32_to_cpu (desc -> size_bytes );
2595
2595
psp -> asd_start_addr = ucode_start_addr ;
2596
- psp -> asd_fw = psp -> ta_fw ;
2597
2596
break ;
2598
2597
case TA_FW_TYPE_PSP_XGMI :
2599
2598
psp -> ta_xgmi_ucode_version = le32_to_cpu (desc -> fw_version );
You can’t perform that action at this time.
0 commit comments