diff options
author | Christian König <christian.koenig@amd.com> | 2018-10-12 10:53:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-05 14:21:02 -0500 |
commit | 2c498d1dbe2e26d62a5ace8fa7b92ac2d084a60c (patch) | |
tree | 95a253432f32e65f0d645ab09ada1eb43348db85 /drivers/gpu/drm/amd/amdgpu/si_dma.c | |
parent | 8fe159b0143d817222c8799181deb799472b9339 (diff) |
drm/amdgpu: remove illegal instruction stub from si_dma.c
Was never used.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dma.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si_dma.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/amdgpu/si_dma.c index adbaea6da0d7..d9b27d7017dd 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_dma.c +++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c | |||
@@ -658,15 +658,6 @@ static int si_dma_process_trap_irq(struct amdgpu_device *adev, | |||
658 | return 0; | 658 | return 0; |
659 | } | 659 | } |
660 | 660 | ||
661 | static int si_dma_process_illegal_inst_irq(struct amdgpu_device *adev, | ||
662 | struct amdgpu_irq_src *source, | ||
663 | struct amdgpu_iv_entry *entry) | ||
664 | { | ||
665 | DRM_ERROR("Illegal instruction in SDMA command stream\n"); | ||
666 | schedule_work(&adev->reset_work); | ||
667 | return 0; | ||
668 | } | ||
669 | |||
670 | static int si_dma_set_clockgating_state(void *handle, | 661 | static int si_dma_set_clockgating_state(void *handle, |
671 | enum amd_clockgating_state state) | 662 | enum amd_clockgating_state state) |
672 | { | 663 | { |
@@ -781,15 +772,10 @@ static const struct amdgpu_irq_src_funcs si_dma_trap_irq_funcs = { | |||
781 | .process = si_dma_process_trap_irq, | 772 | .process = si_dma_process_trap_irq, |
782 | }; | 773 | }; |
783 | 774 | ||
784 | static const struct amdgpu_irq_src_funcs si_dma_illegal_inst_irq_funcs = { | ||
785 | .process = si_dma_process_illegal_inst_irq, | ||
786 | }; | ||
787 | |||
788 | static void si_dma_set_irq_funcs(struct amdgpu_device *adev) | 775 | static void si_dma_set_irq_funcs(struct amdgpu_device *adev) |
789 | { | 776 | { |
790 | adev->sdma.trap_irq.num_types = AMDGPU_SDMA_IRQ_LAST; | 777 | adev->sdma.trap_irq.num_types = AMDGPU_SDMA_IRQ_LAST; |
791 | adev->sdma.trap_irq.funcs = &si_dma_trap_irq_funcs; | 778 | adev->sdma.trap_irq.funcs = &si_dma_trap_irq_funcs; |
792 | adev->sdma.illegal_inst_irq.funcs = &si_dma_illegal_inst_irq_funcs; | ||
793 | } | 779 | } |
794 | 780 | ||
795 | /** | 781 | /** |