All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: soft reset uvd on RV770 uvd init
@ 2014-08-27  3:04 Alex Deucher
  2014-08-27  8:10 ` Christian König
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Deucher @ 2014-08-27  3:04 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher

Fixes avoids and error message on boot which is harmless,
but confusing to users.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/radeon/uvd_v1_0.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/radeon/uvd_v1_0.c b/drivers/gpu/drm/radeon/uvd_v1_0.c
index e251624..82e4fa6 100644
--- a/drivers/gpu/drm/radeon/uvd_v1_0.c
+++ b/drivers/gpu/drm/radeon/uvd_v1_0.c
@@ -325,6 +325,13 @@ int uvd_v1_0_start(struct radeon_device *rdev)
 
 	WREG32_P(UVD_RB_ARB_CTRL, 0, ~(1 << 3));
 
+	if (rdev->family == CHIP_RV770) {
+		WREG32_P(UVD_SOFT_RESET, VCPU_SOFT_RESET, ~VCPU_SOFT_RESET);
+		mdelay(10);
+		WREG32_P(UVD_SOFT_RESET, 0, ~VCPU_SOFT_RESET);
+		mdelay(10);
+	}
+
 	for (i = 0; i < 10; ++i) {
 		uint32_t status;
 		for (j = 0; j < 100; ++j) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-27 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27  3:04 [PATCH] drm/radeon: soft reset uvd on RV770 uvd init Alex Deucher
2014-08-27  8:10 ` Christian König
2014-08-27 15:12   ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.