radeon: fix r600/agp when vram is after AGP
Subsystems (2)
Dave Airlie
maintainerPATCH 1/1 radeon: fix r600/agp when vram is after AGP
From: Dave Airlie <[email protected]>
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.
Reported-by russiane39 on #radeon
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/radeon/r600.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/r600.c +1 -1
@@ -1135,7 +1135,7 @@ static void r600_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc }if (rdev->flags &RADEON_IS_AGP ) { size_bf = mc->gtt_start; - size_af =0xFFFFFFFF - mc->gtt_end +1 ; + size_af =0xFFFFFFFF - mc->gtt_end;if (size_bf > size_af) {if (mc->mc_vram_size > size_bf) {dev_warn (rdev->dev,"limiting VRAM\n" );
Signature · 1 line
1.7.7.6
Quoted 8 lines · Dave Airlie
From: Dave Airlie <[email protected]>
If AGP is placed in the middle, the
size_afis off-by-one, it results in VRAM being placed at0x7fffffffinstead of0x8000000.Reported-by russiane39 on #radeonSigned-off-by Dave Airlie <[email protected]>
Reviewed-by Jerome Glisse <[email protected]>