Skip to content

Commit 8abf799

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amd/pm: Hide pp_dpm_pcie device attribute
Hide PCIe DPM attribute on SOCs with GC v9.4.2 and GC v9.4.3. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Yang Wang <[email protected]> Reviewed-by: Asad Kamal <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 61d7052 commit 8abf799

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
22092209
if (amdgpu_dpm_get_apu_thermal_limit(adev, &limit) ==
22102210
-EOPNOTSUPP)
22112211
*states = ATTR_STATE_UNSUPPORTED;
2212+
} else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
2213+
if (gc_ver == IP_VERSION(9, 4, 2) ||
2214+
gc_ver == IP_VERSION(9, 4, 3))
2215+
*states = ATTR_STATE_UNSUPPORTED;
22122216
}
22132217

22142218
switch (gc_ver) {

0 commit comments

Comments
 (0)