drm/radeon/kms: clean up gart dummy page handling
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 12 Apr 2011 17:32:13 +0000 (13:32 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 12 Apr 2011 23:09:22 +0000 (09:09 +1000)
commit92656d707e961c88b6f931038c7dc41790a52e1e
tree6f8fb8c3445d86e2b4284b2fd257d4f2044196ba
parentd85023a3cdb48ae127e431ec216c277ed7a3cb0f
drm/radeon/kms: clean up gart dummy page handling

As per Konrad's original patch, the dummy page used
by the gart code and allocated in radeon_gart_init()
was not freed properly in radeon_gart_fini().

At the same time r6xx and newer allocated and freed the
dummy page on their own.  So to do Konrad's patch one
better, just remove the allocation and freeing of the
dummy page in the r6xx, 7xx, evergreen, and ni code and
allocate and free in the gart_init/fini() functions for
all asics.

Cc: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon_gart.c
drivers/gpu/drm/radeon/rv770.c