drm/radeon/kms: allocate vram scratch page on 6xx+
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Oct 2011 14:30:02 +0000 (10:30 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Nov 2011 16:05:02 +0000 (16:05 +0000)
commit16cdf04d30c24a6e698863351c11d9a8da2591ed
treef104a8d49318daebd1e598d03eb1455e09288621
parent996d5c59006cd970dd3a9007aa1f76532909bae2
drm/radeon/kms: allocate vram scratch page on 6xx+

The vram scratch was originally only used on some 7xx asics
to work around a hw bug.  Allocate the scratch page on all 6xx+
radeons and set the MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR to point
to it.  We shouldn't ever hit it since we limit the system
aperture to vram or vram and AGP, but better safe than sorry.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/rv770.c