File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -584,10 +584,6 @@ static int soc21_common_early_init(void *handle)
584
584
AMD_PG_SUPPORT_JPEG |
585
585
AMD_PG_SUPPORT_ATHUB |
586
586
AMD_PG_SUPPORT_MMHUB ;
587
- if (amdgpu_sriov_vf (adev )) {
588
- adev -> cg_flags = 0 ;
589
- adev -> pg_flags = 0 ;
590
- }
591
587
adev -> external_rev_id = adev -> rev_id + 0x1 ; // TODO: need update
592
588
break ;
593
589
case IP_VERSION (11 , 0 , 2 ):
@@ -645,18 +641,16 @@ static int soc21_common_early_init(void *handle)
645
641
adev -> pg_flags = AMD_PG_SUPPORT_VCN |
646
642
AMD_PG_SUPPORT_VCN_DPG |
647
643
AMD_PG_SUPPORT_JPEG ;
648
- if (amdgpu_sriov_vf (adev )) {
649
- /* hypervisor control CG and PG enablement */
650
- adev -> cg_flags = 0 ;
651
- adev -> pg_flags = 0 ;
652
- }
653
644
adev -> external_rev_id = adev -> rev_id + 0x20 ;
654
645
break ;
655
646
default :
656
647
/* FIXME: not supported yet */
657
648
return - EINVAL ;
658
649
}
659
650
651
+ if (amdgpu_sriov_vf (adev ))
652
+ amdgpu_virt_init_setting (adev );
653
+
660
654
return 0 ;
661
655
}
662
656
You can’t perform that action at this time.
0 commit comments