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 <lijo.lazar@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 61d7052 commit 8abf799

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)