drm/radeon/kms: disable CP interrupt when disabling interrupt
Subsystems (2)
PATCH 1/1 drm/radeon/kms: disable CP interrupt when disabling interrupt
From: Jerome Glisse <[email protected]>
Some CP interrupt were left enabled when disabling interrupt.
--- drivers/gpu/drm/radeon/evergreen.c | 2 +- drivers/gpu/drm/radeon/r600.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +1 -1
@@ -2434,7 +2434,7 @@ void evergreen_disable_interrupt_state(struct radeon_device *rdev) {u32 tmp; -WREG32 (CP_INT_CNTL ,CNTX_BUSY_INT_ENABLE |CNTX_EMPTY_INT_ENABLE ); +WREG32 (CP_INT_CNTL ,0 );WREG32 (GRBM_INT_CNTL ,0 );WREG32 (INT_MASK +EVERGREEN_CRTC0_REGISTER_OFFSET ,0 );WREG32 (INT_MASK +EVERGREEN_CRTC1_REGISTER_OFFSET ,0 );
drivers/gpu/drm/radeon/r600.c +1 -1
@@ -2900,7 +2900,7 @@ static void r600_disable_interrupt_state(struct radeon_device *rdev) {u32 tmp; -WREG32 (CP_INT_CNTL ,CNTX_BUSY_INT_ENABLE |CNTX_EMPTY_INT_ENABLE ); +WREG32 (CP_INT_CNTL ,0 );WREG32 (GRBM_INT_CNTL ,0 );WREG32 (DxMODE_INT_MASK,0 );WREG32 (D1GRPH_INTERRUPT_CONTROL ,0 );
Signature · 1 line
1.7.3.2
Quoted 4 lines · On Tue, Jul 26, 2011 at 5:28 PM, <[email protected]> wrote:
From: Jerome Glisse <[email protected]>
Some CP interrupt were left enabled when disabling interrupt.
Is there a specific issue this fixes? The bits are not interrupt sources per se but rather are related to the internal state of the interrupt controller and should always be enabled.
Alex
Quoted 40 lines
Signed-off-by Jerome Glisse <[email protected]>---
drivers/gpu/drm/radeon/evergreen.c | 2 +-
drivers/gpu/drm/radeon/r600.c | 2 +-2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/evergreen.c +1
-1@@ -2434,7 +2434,7 @@ void evergreen_disable_interrupt_state(struct radeon_device *rdev) { u32 tmp; - WREG32(CP_INT_CNTL, CNTX_BUSY_INT_ENABLE | CNTX_EMPTY_INT_ENABLE); + WREG32(CP_INT_CNTL, 0); WREG32(GRBM_INT_CNTL, 0); WREG32(INT_MASK + EVERGREEN_CRTC0_REGISTER_OFFSET, 0); WREG32(INT_MASK + EVERGREEN_CRTC1_REGISTER_OFFSET, 0);drivers/gpu/drm/radeon/r600.c +1
-2@@ -2900,7 +2900,7 @@ static void r600_disable_interrupt_state(struct radeon_device *rdev) { u32 tmp; - WREG32(CP_INT_CNTL, CNTX_BUSY_INT_ENABLE | CNTX_EMPTY_INT_ENABLE); + WREG32(CP_INT_CNTL, 0); WREG32(GRBM_INT_CNTL, 0); WREG32(DxMODE_INT_MASK, 0); WREG32(D1GRPH_INTERRUPT_CONTROL, 0); --1.7.3.2
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 12 lines · Alex Deucher
Quoted 4 lines · On Tue, Jul 26, 2011 at 5:28 PM, <[email protected]> wrote:
From: Jerome Glisse <[email protected]>
Some CP interrupt were left enabled when disabling interrupt.
Is there a specific issue this fixes? The bits are not interrupt sources per se but rather are related to the internal state of the interrupt controller and should always be enabled.
Alex
Might, might not i have seen flgrx unsetting this bit on my rv670 which reboot with the radeon driver.
Jerome
Quoted 11 lines · Jerome Glisse
Quoted 10 lines · Alex Deucher
Quoted 4 lines · On Tue, Jul 26, 2011 at 5:28 PM, <[email protected]> wrote:
From: Jerome Glisse <[email protected]>
Some CP interrupt were left enabled when disabling interrupt.
Is there a specific issue this fixes? The bits are not interrupt sources per se but rather are related to the internal state of the interrupt controller and should always be enabled.
Quoted 5 lines
Quoted 2 lines
Alex
Might, might not i have seen flgrx unsetting this bit on my rv670 which reboot with the radeon driver.
Have you narrowed down what part of init is causing the problem? I used to have a drm noaccel patch that disabled CP, GART, interrupts, etc.
Alex
Quoted 15 lines · Alex Deucher
Quoted 14 lines · Jerome Glisse
Quoted 12 lines · Alex Deucher
Quoted 4 lines · On Tue, Jul 26, 2011 at 5:28 PM, <[email protected]> wrote:
From: Jerome Glisse <[email protected]>
Some CP interrupt were left enabled when disabling interrupt.
Is there a specific issue this fixes? The bits are not interrupt sources per se but rather are related to the internal state of the interrupt controller and should always be enabled.
Alex
Quoted 9 lines
Quoted 2 lines
Might, might not i have seen flgrx unsetting this bit on my rv670 which reboot with the radeon driver.
Have you narrowed down what part of init is causing the problem? I used to have a drm noaccel patch that disabled CP, GART, interrupts, etc.
Alex
It happens early after mc programing from r600_startup after that pretty much any reg write (no matter what reg) will trigger the computer reset.
Cheers,
Jerome