diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0905-drm-amdgpu-gfx7-enable-cp-inst-reg-error-interrupts.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0905-drm-amdgpu-gfx7-enable-cp-inst-reg-error-interrupts.patch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/common/recipes-kernel/linux/files/0905-drm-amdgpu-gfx7-enable-cp-inst-reg-error-interrupts.patch b/common/recipes-kernel/linux/files/0905-drm-amdgpu-gfx7-enable-cp-inst-reg-error-interrupts.patch deleted file mode 100644 index aafa847f..00000000 --- a/common/recipes-kernel/linux/files/0905-drm-amdgpu-gfx7-enable-cp-inst-reg-error-interrupts.patch +++ /dev/null @@ -1,66 +0,0 @@ -From ac0e59ae57536b4798e8120d7aaf30a2d5746967 Mon Sep 17 00:00:00 2001 -From: Alex Deucher <alexander.deucher@amd.com> -Date: Tue, 2 Feb 2016 14:46:48 -0500 -Subject: [PATCH 0905/1565] drm/amdgpu/gfx7: enable cp inst/reg error - interrupts -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Enable CP register/instruction error interrupts. Useful -for debugging command stream problems. - -Reviewed-by: Christian König <christian.koenig@amd.com> -Signed-off-by: Alex Deucher <alexander.deucher@amd.com> ---- - drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 20 +++++++++++++++++++- - 1 file changed, 19 insertions(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c -index 72793f9..6c76139 100644 ---- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c -+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c -@@ -4738,6 +4738,22 @@ static int gfx_v7_0_early_init(void *handle) - return 0; - } - -+static int gfx_v7_0_late_init(void *handle) -+{ -+ struct amdgpu_device *adev = (struct amdgpu_device *)handle; -+ int r; -+ -+ r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0); -+ if (r) -+ return r; -+ -+ r = amdgpu_irq_get(adev, &adev->gfx.priv_inst_irq, 0); -+ if (r) -+ return r; -+ -+ return 0; -+} -+ - static int gfx_v7_0_sw_init(void *handle) - { - struct amdgpu_ring *ring; -@@ -4890,6 +4906,8 @@ static int gfx_v7_0_hw_fini(void *handle) - { - struct amdgpu_device *adev = (struct amdgpu_device *)handle; - -+ amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0); -+ amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0); - gfx_v7_0_cp_enable(adev, false); - gfx_v7_0_rlc_stop(adev); - gfx_v7_0_fini_pg(adev); -@@ -5527,7 +5545,7 @@ static int gfx_v7_0_set_powergating_state(void *handle, - - const struct amd_ip_funcs gfx_v7_0_ip_funcs = { - .early_init = gfx_v7_0_early_init, -- .late_init = NULL, -+ .late_init = gfx_v7_0_late_init, - .sw_init = gfx_v7_0_sw_init, - .sw_fini = gfx_v7_0_sw_fini, - .hw_init = gfx_v7_0_hw_init, --- -1.9.1 - |