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>
This commit is contained in:
		
					parent
					
						
							
								45737447ed
							
						
					
				
			
			
				commit
				
					
						365048ff7f
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -451,7 +451,7 @@ static int radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_ | ||||||
| 			/* RADEON_IS_AGP is set only if AGP is active */ | 			/* RADEON_IS_AGP is set only if AGP is active */ | ||||||
| 			mem->bus.offset = mem->mm_node->start << PAGE_SHIFT; | 			mem->bus.offset = mem->mm_node->start << PAGE_SHIFT; | ||||||
| 			mem->bus.base = rdev->mc.agp_base; | 			mem->bus.base = rdev->mc.agp_base; | ||||||
| 			mem->bus.is_iomem = true; | 			mem->bus.is_iomem = !rdev->ddev->agp->cant_use_aperture; | ||||||
| 		} | 		} | ||||||
| #endif | #endif | ||||||
| 		break; | 		break; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michel Dänzer
				Michel Dänzer