drm/radeon: soft reset uvd on RV770 uvd init
Subsystems (2)
PATCH 1/1 drm/radeon: soft reset uvd on RV770 uvd init
Fixes avoids and error message on boot which is harmless, but confusing to users.
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/radeon/uvd_v1_0.c +7 -0
@@ -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) {
Signature · 1 line
1.8.3.1
Am 27.08.2014 um 05:04 schrieb Alex Deucher:
Quoted 4 lines
Fixes avoids and error message on boot which is harmless, but confusing to users.
Signed-off-by Alex Deucher <[email protected]>
The attached patch fixes the underlying issue for me on RS780.
Does it also work on RV770? If yes than it's probably the better approach.
Christian.
Quoted 23 lines
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/radeon/uvd_v1_0.c +7
-0@@ -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) {
Quoted 1 line
From
499b07135129211d633820cb57bc39cf14bda86bMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20K=C3=B6nig?= <[email protected]>
Date: Wed, 27 Aug 2014 09:59:45 +0200
Subject: [PATCH] drm/radeon: enable RB_ARB before resetting the VCPU
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This fixes "UVD not responding, trying to reset the VCPU" messages on earlier ASICs.
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/uvd_v1_0.c +2 -2
@@ -319,12 +319,12 @@ int uvd_v1_0_start(struct radeon_device *rdev)/* enable UMC */ WREG32_P (UVD_LMI_CTRL2 ,0 , ~(1 <<8 )); +WREG32_P (UVD_RB_ARB_CTRL ,0 , ~(1 <<3 )); +/* boot up the VCPU */ WREG32 (UVD_SOFT_RESET ,0 );mdelay (10 ); -WREG32_P (UVD_RB_ARB_CTRL ,0 , ~(1 <<3 )); -for (i =0 ; i <10 ; ++i) {uint32_t status;for (j =0 ; j <100 ; ++j) {
Signature · 1 line
1.9.1
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Christian König
Am 27.08.2014 um 05:04 schrieb Alex Deucher:
Quoted 4 lines
Fixes avoids and error message on boot which is harmless, but confusing to users.
Signed-off-by Alex Deucher <[email protected]>The attached patch fixes the underlying issue for me on RS780.
Does it also work on RV770? If yes than it's probably the better approach.
Yup, that fixes it on RV770. I'll add that patch to the 3.18 queue.
Thanks!
Alex
Quoted 18 lines
Christian.
Quoted 14 lines
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/radeon/uvd_v1_0.c +1
-0@@ -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 );
Quoted 10 lines
drivers/gpu/drm/radeon/uvd_v1_0.c int uvd_v1_0_start(struct radeon_device *rdev) · line 330
Quoted 8 lines
drivers/gpu/drm/radeon/uvd_v1_0.c +5
-0+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) {
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel