Skip to contentSkip to conversation

drm/radeon/kms: evergreen & ni reset SPI block on CP resume

PATCH In review [email protected] 2 participants 2 messages Aug 24, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/kms: evergreen & ni reset SPI block on CP resume

From: Jerome Glisse <[email protected]>

For some reason SPI block is in broken state after module unloading. This lead to broken rendering after reloading module. Fix this by reseting SPI block in CP resume function

---
 drivers/gpu/drm/radeon/evergreen.c |    1 +
 drivers/gpu/drm/radeon/ni.c        |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +1 -0
index fb5fa08..d8d71a3 100644
@@ -1357,6 +1357,7 @@ int evergreen_cp_resume(struct radeon_device *rdev)
 				 SOFT_RESET_PA |
 				 SOFT_RESET_SH |
 				 SOFT_RESET_VGT |
+				 SOFT_RESET_SPI |
 				 SOFT_RESET_SX));
 	RREG32(GRBM_SOFT_RESET);
 	mdelay(15);
drivers/gpu/drm/radeon/ni.c +1 -0
index 44c4750..a2e00fa 100644
@@ -1159,6 +1159,7 @@ int cayman_cp_resume(struct radeon_device *rdev)
 				 SOFT_RESET_PA |
 				 SOFT_RESET_SH |
 				 SOFT_RESET_VGT |
+				 SOFT_RESET_SPI |
 				 SOFT_RESET_SX));
 	RREG32(GRBM_SOFT_RESET);
 	mdelay(15);
Signature · 1 line
1.7.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Wed, Aug 24, 2011 at 4:00 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

For some reason SPI block is in broken state after module unloading. This lead to broken rendering after reloading module. Fix this by reseting SPI block in CP resume function

Looks good to me.

Quoted 39 lines

---
 drivers/gpu/drm/radeon/evergreen.c |    1 +
 drivers/gpu/drm/radeon/ni.c        |    1 +

 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +0 -0
index fb5fa08..d8d71a3 100644
@@ -1357,6 +1357,7 @@ int evergreen_cp_resume(struct radeon_device *rdev)

                                SOFT_RESET_PA |
                                SOFT_RESET_SH |
                                SOFT_RESET_VGT |
+                                SOFT_RESET_SPI |
                                SOFT_RESET_SX));
       RREG32(GRBM_SOFT_RESET);
       mdelay(15);

drivers/gpu/drm/radeon/ni.c +0 -0
index 44c4750..a2e00fa 100644
@@ -1159,6 +1159,7 @@ int cayman_cp_resume(struct radeon_device *rdev)

                                SOFT_RESET_PA |
                                SOFT_RESET_SH |
                                SOFT_RESET_VGT |
+                                SOFT_RESET_SPI |
                                SOFT_RESET_SX));
       RREG32(GRBM_SOFT_RESET);
       mdelay(15);
--
1.7.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel