diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-11-17 20:13:28 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 14:52:03 -0500 |
commit | 1b37078b7ddf35cab12ac6544187e3636d50c0dc (patch) | |
tree | f1a3621a98ab8ae5ffef14ae34a5b3454f14dcf9 /drivers/gpu/drm/radeon/ni.c | |
parent | b40e7e1608c332767e6b94bed7af84b30418e739 (diff) |
drm/radeon/kms: add support for per-ring fence interrupts
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r-- | drivers/gpu/drm/radeon/ni.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 26d066442934..30562622b94a 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c | |||
@@ -1006,6 +1006,15 @@ void cayman_pcie_gart_fini(struct radeon_device *rdev) | |||
1006 | radeon_gart_fini(rdev); | 1006 | radeon_gart_fini(rdev); |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | void cayman_cp_int_cntl_setup(struct radeon_device *rdev, | ||
1010 | int ring, u32 cp_int_cntl) | ||
1011 | { | ||
1012 | u32 srbm_gfx_cntl = RREG32(SRBM_GFX_CNTL) & ~3; | ||
1013 | |||
1014 | WREG32(SRBM_GFX_CNTL, srbm_gfx_cntl | (ring & 3)); | ||
1015 | WREG32(CP_INT_CNTL, cp_int_cntl); | ||
1016 | } | ||
1017 | |||
1009 | /* | 1018 | /* |
1010 | * CP. | 1019 | * CP. |
1011 | */ | 1020 | */ |