Skip to content

Commit 4153e58

Browse files
committed
drm/radeon/kms: more alignment for rv770.c with r600.c
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 9052aa2 commit 4153e58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/radeon/rv770.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/platform_device.h>
3030
#include "drmP.h"
3131
#include "radeon.h"
32+
#include "radeon_drm.h"
3233
#include "rv770d.h"
3334
#include "avivod.h"
3435
#include "atom.h"
@@ -921,7 +922,11 @@ int rv770_suspend(struct radeon_device *rdev)
921922
{
922923
/* FIXME: we should wait for ring to be empty */
923924
r700_cp_stop(rdev);
925+
rdev->cp.ready = false;
924926
rv770_pcie_gart_disable(rdev);
927+
928+
/* unpin shaders bo */
929+
radeon_object_unpin(rdev->r600_blit.shader_obj);
925930
return 0;
926931
}
927932

0 commit comments

Comments
 (0)