drm/radeon/uvd: use lower clocks on old UVD to boot v2
Subsystems (2)
PATCH 1/1 drm/radeon/uvd: use lower clocks on old UVD to boot v2
From: Christian König <[email protected]>
Some RV7xx generation hardware crashes after you raise the UVD clocks for the first time. Try to avoid this by using the lower clocks to boot these.
Workaround for: https://bugzilla.kernel.org/show_bug.cgi?id=71891
v2: lower clocks on IB test as well
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/uvd_v1_0.c +8 -2
@@ -83,7 +83,10 @@ int uvd_v1_0_init(struct radeon_device *rdev)int r;/* raise clocks while booting up the VCPU */ -radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) +radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else +radeon_set_uvd_clocks (rdev,53300 ,40000 ); r =uvd_v1_0_start (rdev);if (r)
@@ -407,7 +410,10 @@ int uvd_v1_0_ib_test(struct radeon_device *rdev, struct radeon_ring *ring)struct radeon_fence *fence =NULL ;int r; - r =radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) + r =radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else + r =radeon_set_uvd_clocks (rdev,53300 ,40000 );if (r) {DRM_ERROR ("radeon: failed to raise UVD clocks (%d).\n" , r);return r;
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Christian König
From: Christian König <[email protected]>
Some RV7xx generation hardware crashes after you raise the UVD clocks for the first time. Try to avoid this by using the lower clocks to boot these.
Quoted 6 lines
Workaround for: https://bugzilla.kernel.org/show_bug.cgi?id=71891
v2: lower clocks on IB test as well
Signed-off-by Christian König <[email protected]>
Any reason not to just always use lower clocks for the tests for all asics? Either way:
Quoted 35 lines
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/uvd_v1_0.c +8
-3@@ -83,7 +83,10 @@ int uvd_v1_0_init(struct radeon_device *rdev)int r;/* raise clocks while booting up the VCPU */ -radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) +radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else +radeon_set_uvd_clocks (rdev,53300 ,40000 ); r =uvd_v1_0_start (rdev);if (r)@@ -407,7 +410,10 @@ int uvd_v1_0_ib_test(struct radeon_device *rdev, struct radeon_ring *ring)struct radeon_fence *fence =NULL ;int r; - r =radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) + r =radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else + r =radeon_set_uvd_clocks (rdev,53300 ,40000 );if (r) {DRM_ERROR ("radeon: failed to raise UVD clocks (%d).\n" , r);return r; --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 28.04.2014 16:41, schrieb Alex Deucher:
Quoted 8 lines
Quoted 6 lines · Christian König
From: Christian König <[email protected]>
Some RV7xx generation hardware crashes after you raise the UVD clocks for the first time. Try to avoid this by using the lower clocks to boot these.
Quoted 8 lines
Quoted 6 lines
Workaround for: https://bugzilla.kernel.org/show_bug.cgi?id=71891
v2: lower clocks on IB test as well
Signed-off-by Christian König <[email protected]>Any reason not to just always use lower clocks for the tests for all asics?
Yeah, evergreen and BTC don't want to boot UVD with the lower clocks, no idea why.
But essentially it's just a workaround, we should really try to figure out why this RV730 crashes so badly as soon as you raise the UVD clocks.
Quoted 3 lines
Either way:
Reviewed-by Alex Deucher <[email protected]>
Thanks,
Christian.
Quoted 36 lines
Quoted 36 lines
--- drivers/gpu/drm/radeon/uvd_v1_0.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/uvd_v1_0.c +8
-3@@ -83,7 +83,10 @@ int uvd_v1_0_init(struct radeon_device *rdev)int r;/* raise clocks while booting up the VCPU */ -radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) +radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else +radeon_set_uvd_clocks (rdev,53300 ,40000 ); r =uvd_v1_0_start (rdev);if (r)@@ -407,7 +410,10 @@ int uvd_v1_0_ib_test(struct radeon_device *rdev, struct radeon_ring *ring)struct radeon_fence *fence =NULL ;int r; - r =radeon_set_uvd_clocks (rdev,53300 ,40000 ); +if (rdev->family <CHIP_RV740 ) + r =radeon_set_uvd_clocks (rdev,10000 ,10000 ); +else + r =radeon_set_uvd_clocks (rdev,53300 ,40000 );if (r) {DRM_ERROR ("radeon: failed to raise UVD clocks (%d).\n" , r);return r; --1.9.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel