drm/amdgpu: teach amdgpu how to enable interrupts for any pipe v3
authorAndres Rodriguez <andresx7@gmail.com>
Thu, 9 Feb 2017 22:39:52 +0000 (17:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 20:48:54 +0000 (16:48 -0400)
commit763a47b8e1abc7cee0a0f550330124ef1199d58d
tree5ff4781fdac56286384f259c03cb9080df05f702
parent78c16834234ec3e3171d7f80446da574f3e8d39b
drm/amdgpu: teach amdgpu how to enable interrupts for any pipe v3

The current implementation is hardcoded to enable ME1/PIPE0 interrupts
only.

This patch allows amdgpu to enable interrupts for any pipe of ME1.

v2: added gfx9 support
v3: use soc15_grbm_select for gfx9

Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c