aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch
new file mode 100644
index 00000000..09a00214
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2604-drm-amd-powerplay-no-memory-activity-support-on-Vega.patch
@@ -0,0 +1,42 @@
+From 63dd89499f6653b0a458294ee12b80ebbdfe4d87 Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Fri, 21 Jun 2019 09:46:14 +0800
+Subject: [PATCH 2604/2940] drm/amd/powerplay: no memory activity support on
+ Vega10
+
+Make mem_busy_percent sysfs interface invisible on Vega10.
+
+Change-Id: Ie39c3217b497a110b0b16e1b08033029bdcf2fc8
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 6 ++++--
+ 1 file 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 d6237cf1c66c..ba3198399cc9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+@@ -2884,7 +2884,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)
+ return ret;
+ }
+ /* APU does not have its own dedicated memory */
+- if (!(adev->flags & AMD_IS_APU)) {
++ if (!(adev->flags & AMD_IS_APU) &&
++ (adev->asic_type != CHIP_VEGA10)) {
+ ret = device_create_file(adev->dev,
+ &dev_attr_mem_busy_percent);
+ if (ret) {
+@@ -2964,7 +2965,8 @@ void amdgpu_pm_sysfs_fini(struct amdgpu_device *adev)
+ device_remove_file(adev->dev,
+ &dev_attr_pp_od_clk_voltage);
+ device_remove_file(adev->dev, &dev_attr_gpu_busy_percent);
+- if (!(adev->flags & AMD_IS_APU))
++ if (!(adev->flags & AMD_IS_APU) &&
++ (adev->asic_type != CHIP_VEGA10))
+ device_remove_file(adev->dev, &dev_attr_mem_busy_percent);
+ if (!(adev->flags & AMD_IS_APU))
+ device_remove_file(adev->dev, &dev_attr_pcie_bw);
+--
+2.17.1
+