drm/radeon: clean up vram/gtt location handling
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Apr 2013 15:13:01 +0000 (11:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Apr 2013 14:23:50 +0000 (10:23 -0400)
commit9ed8b1f93ca3a274079cb36826af1331f83cd118
treee993a18bf16c041da976e16871cd3fb5eeadf6c2
parent367cbe2fec9b57b72605e2ac4cfd4f2fa823a256
drm/radeon: clean up vram/gtt location handling

Add a per-asic MC (memory controller) mask which holds the
mak address mask the asic is capable of.  Use this when
calculating the vram and gtt locations rather using asic
specific functions or limiting everything to 32 bits.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/rv770.c
drivers/gpu/drm/radeon/si.c