File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1045,6 +1045,9 @@ static int vcn_v4_0_start(struct amdgpu_device *adev)
1045
1045
amdgpu_dpm_enable_uvd (adev , true);
1046
1046
1047
1047
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
1048
+ if (adev -> vcn .harvest_config & (1 << i ))
1049
+ continue ;
1050
+
1048
1051
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
1049
1052
1050
1053
if (adev -> pg_flags & AMD_PG_SUPPORT_VCN_DPG ) {
@@ -1498,6 +1501,9 @@ static int vcn_v4_0_stop(struct amdgpu_device *adev)
1498
1501
int i , r = 0 ;
1499
1502
1500
1503
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
1504
+ if (adev -> vcn .harvest_config & (1 << i ))
1505
+ continue ;
1506
+
1501
1507
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
1502
1508
fw_shared -> sq .queue_mode |= FW_QUEUE_DPG_HOLD_OFF ;
1503
1509
Original file line number Diff line number Diff line change @@ -958,6 +958,9 @@ static int vcn_v4_0_5_start(struct amdgpu_device *adev)
958
958
amdgpu_dpm_enable_uvd (adev , true);
959
959
960
960
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
961
+ if (adev -> vcn .harvest_config & (1 << i ))
962
+ continue ;
963
+
961
964
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
962
965
963
966
if (adev -> pg_flags & AMD_PG_SUPPORT_VCN_DPG ) {
@@ -1162,6 +1165,9 @@ static int vcn_v4_0_5_stop(struct amdgpu_device *adev)
1162
1165
int i , r = 0 ;
1163
1166
1164
1167
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
1168
+ if (adev -> vcn .harvest_config & (1 << i ))
1169
+ continue ;
1170
+
1165
1171
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
1166
1172
fw_shared -> sq .queue_mode |= FW_QUEUE_DPG_HOLD_OFF ;
1167
1173
Original file line number Diff line number Diff line change @@ -721,6 +721,9 @@ static int vcn_v5_0_0_start(struct amdgpu_device *adev)
721
721
amdgpu_dpm_enable_uvd (adev , true);
722
722
723
723
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
724
+ if (adev -> vcn .harvest_config & (1 << i ))
725
+ continue ;
726
+
724
727
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
725
728
726
729
if (adev -> pg_flags & AMD_PG_SUPPORT_VCN_DPG ) {
@@ -898,6 +901,9 @@ static int vcn_v5_0_0_stop(struct amdgpu_device *adev)
898
901
int i , r = 0 ;
899
902
900
903
for (i = 0 ; i < adev -> vcn .num_vcn_inst ; ++ i ) {
904
+ if (adev -> vcn .harvest_config & (1 << i ))
905
+ continue ;
906
+
901
907
fw_shared = adev -> vcn .inst [i ].fw_shared .cpu_addr ;
902
908
fw_shared -> sq .queue_mode |= FW_QUEUE_DPG_HOLD_OFF ;
903
909
You can’t perform that action at this time.
0 commit comments