You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drm/radeon/kms: restore surface registers on resume.
On resume on my rv530 laptop surface cntl was left disabled, so wierd stuff would happen with rendering to a tiled front buffer. This checks if the surface regs are assigned to bos and reprograms the surface registers on resume using the same path that clears them all on init. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -3299,6 +3299,8 @@ int r100_resume(struct radeon_device *rdev)
|
||||
radeon_combios_asic_init(rdev->ddev);
|
||||
/* Resume clock after posting */
|
||||
r100_clock_startup(rdev);
|
||||
/* Initialize surface registers */
|
||||
radeon_surface_init(rdev);
|
||||
return r100_startup(rdev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user