radeon: fix r600/agp when vram is after AGP (v3)
authorJerome Glisse <jglisse@redhat.com>
Tue, 17 Apr 2012 20:51:38 +0000 (16:51 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Apr 2012 13:37:42 +0000 (14:37 +0100)
commitdfc6ae5bd70d3a22a0e977943c31f6d55fc32820
tree48bf399247ccdbd4f9b6917fa52eee3c52f5c634
parentaef6a7eeac6fd867eda415f65a7f0247fb82baf4
radeon: fix r600/agp when vram is after AGP (v3)

If AGP is placed in the middle, the size_af is off-by-one, it results
in VRAM being placed at 0x7fffffff instead of 0x8000000.

v2: fix the vram_start setup.
v3: also fix r7xx & newer ASIC

Reported-by: russiane39 on #radeon
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rv770.c