Skip to content

Commit 365048f

Browse files
Michel Dänzerairlied
authored andcommitted
drm/radeon: AGP memory is only I/O if the aperture can be mapped by the CPU.
Fixes AGP initialization failure with Apple UniNorth bridges due to trying to ioremap() normal RAM. Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 4573744 commit 365048f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/radeon/radeon_ttm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static int radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_
451451
/* RADEON_IS_AGP is set only if AGP is active */
452452
mem->bus.offset = mem->mm_node->start << PAGE_SHIFT;
453453
mem->bus.base = rdev->mc.agp_base;
454-
mem->bus.is_iomem = true;
454+
mem->bus.is_iomem = !rdev->ddev->agp->cant_use_aperture;
455455
}
456456
#endif
457457
break;

0 commit comments

Comments
 (0)