diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0300-drm-amdgpu-disable-the-IP-module-if-early_init-retur.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0300-drm-amdgpu-disable-the-IP-module-if-early_init-retur.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/common/recipes-kernel/linux/files/0300-drm-amdgpu-disable-the-IP-module-if-early_init-retur.patch b/common/recipes-kernel/linux/files/0300-drm-amdgpu-disable-the-IP-module-if-early_init-retur.patch deleted file mode 100644 index e4968968..00000000 --- a/common/recipes-kernel/linux/files/0300-drm-amdgpu-disable-the-IP-module-if-early_init-retur.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 974e6b641f1428ee14486da277a92bdf9bd04a78 Mon Sep 17 00:00:00 2001 -From: Alex Deucher <alexander.deucher@amd.com> -Date: Fri, 10 Jul 2015 13:59:44 -0400 -Subject: [PATCH 0300/1050] drm/amdgpu: disable the IP module if early_init - returns -ENOENT (v2) -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -If we run into a part with a harvest configuration where the entire -IP block is unusable, just disable the IP block. - -v2: fix logic as noted by Christian - -Reviewed-by: Christian König <christian.koenig@amd.com> -Signed-off-by: Alex Deucher <alexander.deucher@amd.com> ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c -index ba46be3..d79009b 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c -@@ -1207,10 +1207,15 @@ static int amdgpu_early_init(struct amdgpu_device *adev) - } else { - if (adev->ip_blocks[i].funcs->early_init) { - r = adev->ip_blocks[i].funcs->early_init((void *)adev); -- if (r) -+ if (r == -ENOENT) -+ adev->ip_block_enabled[i] = false; -+ else if (r) - return r; -+ else -+ adev->ip_block_enabled[i] = true; -+ } else { -+ adev->ip_block_enabled[i] = true; - } -- adev->ip_block_enabled[i] = true; - } - } - --- -1.9.1 - |