Skip to contentSkip to conversation

drm/radeon: improve mc_stop/mc_resume on r5xx-r7xx

PATCH New [email protected] 1 participant 1 message Dec 12, 2012

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

PATCH 1/1 drm/radeon: improve mc_stop/mc_resume on r5xx-r7xx

From: Alex Deucher <[email protected]>

Along the same lines of what was done for evergreen+ in the last kernel.

---
 drivers/gpu/drm/radeon/r600_reg.h    |    9 +++
 drivers/gpu/drm/radeon/radeon_asic.h |    1 +
 drivers/gpu/drm/radeon/rv515.c       |  122 +++++++++++++++++++++++++++++-----
 3 files changed, 116 insertions(+), 16 deletions(-)
drivers/gpu/drm/radeon/r600_reg.h +9 -0
index 2b960cb..909219b 100644
@@ -96,6 +96,15 @@
 #define R600_CONFIG_F0_BASE                                     0x542C
 #define R600_CONFIG_APER_SIZE                                   0x5430
 
+#define	R600_BIF_FB_EN						0x5490
+#define		R600_FB_READ_EN					(1 << 0)
+#define		R600_FB_WRITE_EN				(1 << 1)
+
+#define R600_CITF_CNTL           				0x200c
+#define		R600_BLACKOUT_MASK				0x00000003
+
+#define R700_MC_CITF_CNTL           				0x25c0
+
 #define R600_ROM_CNTL                              0x1600
 #       define R600_SCK_OVERWRITE                  (1 << 1)
 #       define R600_SCK_PRESCALE_CRYSTAL_CLK_SHIFT 28
drivers/gpu/drm/radeon/radeon_asic.h +1 -0
index ae56673..c338931 100644
@@ -263,6 +263,7 @@ extern int rs690_mc_wait_for_idle(struct radeon_device *rdev);
 struct rv515_mc_save {
 	u32 vga_render_control;
 	u32 vga_hdp_control;
+	bool crtc_enabled[2];
 };
 
 int rv515_init(struct radeon_device *rdev);
drivers/gpu/drm/radeon/rv515.c +106 -16

142 lines not on this page · raw message

Signature · 1 line
1.7.7.5