diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0579-drm-amdgpu-add-missing-dpm-check-for-KV-dpm-late-ini.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0579-drm-amdgpu-add-missing-dpm-check-for-KV-dpm-late-ini.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0579-drm-amdgpu-add-missing-dpm-check-for-KV-dpm-late-ini.patch b/common/recipes-kernel/linux/files/0579-drm-amdgpu-add-missing-dpm-check-for-KV-dpm-late-ini.patch new file mode 100644 index 00000000..032771e9 --- /dev/null +++ b/common/recipes-kernel/linux/files/0579-drm-amdgpu-add-missing-dpm-check-for-KV-dpm-late-ini.patch @@ -0,0 +1,31 @@ +From 677c884ff6370add1360e2b9558285355ebe2b36 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Mon, 19 Oct 2015 15:54:21 -0400 +Subject: [PATCH 0579/1050] drm/amdgpu: add missing dpm check for KV dpm late + init + +Skip dpm late init if dpm is disabled. + +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +Cc: stable@vger.kernel.org +--- + drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c +index 9745ed3..7e9154c 100644 +--- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c ++++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c +@@ -2997,6 +2997,9 @@ static int kv_dpm_late_init(void *handle) + struct amdgpu_device *adev = (struct amdgpu_device *)handle; + int ret; + ++ if (!amdgpu_dpm) ++ return 0; ++ + /* init the sysfs and debugfs files late */ + ret = amdgpu_pm_sysfs_init(adev); + if (ret) +-- +1.9.1 + |