diff options
author | Evan Quan <evan.quan@amd.com> | 2019-06-20 21:46:14 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-27 12:22:50 -0400 |
commit | 4130ff8027dd679a6f2e45c26fb95860e6d235a3 (patch) | |
tree | ec6880339f7455646287d8f02fbdcc68a5684515 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | a864e29d94abac7f9756e07180c167f50fb00042 (diff) |
drm/amd/powerplay: no memory activity support on Vega10
Make mem_busy_percent sysfs interface invisible on Vega10.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 704c7034da09..193d53720d9b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -2886,7 +2886,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev) | |||
2886 | return ret; | 2886 | return ret; |
2887 | } | 2887 | } |
2888 | /* APU does not have its own dedicated memory */ | 2888 | /* APU does not have its own dedicated memory */ |
2889 | if (!(adev->flags & AMD_IS_APU)) { | 2889 | if (!(adev->flags & AMD_IS_APU) && |
2890 | (adev->asic_type != CHIP_VEGA10)) { | ||
2890 | ret = device_create_file(adev->dev, | 2891 | ret = device_create_file(adev->dev, |
2891 | &dev_attr_mem_busy_percent); | 2892 | &dev_attr_mem_busy_percent); |
2892 | if (ret) { | 2893 | if (ret) { |
@@ -2966,7 +2967,8 @@ void amdgpu_pm_sysfs_fini(struct amdgpu_device *adev) | |||
2966 | device_remove_file(adev->dev, | 2967 | device_remove_file(adev->dev, |
2967 | &dev_attr_pp_od_clk_voltage); | 2968 | &dev_attr_pp_od_clk_voltage); |
2968 | device_remove_file(adev->dev, &dev_attr_gpu_busy_percent); | 2969 | device_remove_file(adev->dev, &dev_attr_gpu_busy_percent); |
2969 | if (!(adev->flags & AMD_IS_APU)) | 2970 | if (!(adev->flags & AMD_IS_APU) && |
2971 | (adev->asic_type != CHIP_VEGA10)) | ||
2970 | device_remove_file(adev->dev, &dev_attr_mem_busy_percent); | 2972 | device_remove_file(adev->dev, &dev_attr_mem_busy_percent); |
2971 | if (!(adev->flags & AMD_IS_APU)) | 2973 | if (!(adev->flags & AMD_IS_APU)) |
2972 | device_remove_file(adev->dev, &dev_attr_pcie_bw); | 2974 | device_remove_file(adev->dev, &dev_attr_pcie_bw); |