diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-01-05 11:27:29 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-07 22:08:56 -0500 |
commit | 06b6476d6b291473d0928ed242158a001d50c0f0 (patch) | |
tree | a3ffaddfc117b839073ac5c8c52fdf9415a7947e /drivers/gpu/drm/radeon/r600.c | |
parent | fc9a89f97e532152ae614d5ce717b81c8f8b0e91 (diff) |
drm/radeon/kms: detect sideport memory on IGP chips
This detects if the sideport memory is enabled and
if it is VRAM is evicted on suspend/resume.
This should fix s/r issues on some IGPs.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 5c6058c6ddde..921926f3d1f3 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -726,6 +726,10 @@ int r600_mc_init(struct radeon_device *rdev) | |||
726 | a.full = rfixed_const(100); | 726 | a.full = rfixed_const(100); |
727 | rdev->pm.sclk.full = rfixed_const(rdev->clock.default_sclk); | 727 | rdev->pm.sclk.full = rfixed_const(rdev->clock.default_sclk); |
728 | rdev->pm.sclk.full = rfixed_div(rdev->pm.sclk, a); | 728 | rdev->pm.sclk.full = rfixed_div(rdev->pm.sclk, a); |
729 | |||
730 | if (rdev->flags & RADEON_IS_IGP) | ||
731 | rdev->mc.igp_sideport_enabled = radeon_atombios_sideport_present(rdev); | ||
732 | |||
729 | return 0; | 733 | return 0; |
730 | } | 734 | } |
731 | 735 | ||