Rev 1268 | Rev 1404 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1268 | Rev 1275 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | 75 | ||
76 | int radeon_gart_table_vram_alloc(struct radeon_device *rdev) |
76 | int radeon_gart_table_vram_alloc(struct radeon_device *rdev) |
77 | { |
77 | { |
Line 78... | Line -... | ||
78 | int r; |
- | |
79 | - | ||
80 | ENTER(); |
78 | int r; |
81 | 79 | ||
82 | if (rdev->gart.table.vram.robj == NULL) { |
80 | if (rdev->gart.table.vram.robj == NULL) { |
83 | r = radeon_object_create(rdev, NULL, |
81 | r = radeon_object_create(rdev, NULL, |
84 | rdev->gart.table_size, |
82 | rdev->gart.table_size, |
Line 212... | Line 210... | ||
212 | page_base += RADEON_GPU_PAGE_SIZE; |
210 | page_base += RADEON_GPU_PAGE_SIZE; |
213 | } |
211 | } |
214 | } |
212 | } |
215 | mb(); |
213 | mb(); |
216 | radeon_gart_tlb_flush(rdev); |
214 | radeon_gart_tlb_flush(rdev); |
217 | - | ||
218 | LEAVE(); |
- | |
219 | - | ||
220 | return 0; |
215 | return 0; |
221 | } |
216 | } |
Line 222... | Line 217... | ||
222 | 217 | ||
223 | int radeon_gart_init(struct radeon_device *rdev) |
218 | int radeon_gart_init(struct radeon_device *rdev) |
224 | { |
- | |
225 | - | ||
226 | ENTER(); |
- | |
227 | 219 | { |
|
228 | if (rdev->gart.pages) { |
220 | if (rdev->gart.pages) { |
229 | return 0; |
221 | return 0; |
230 | } |
222 | } |
231 | /* We need PAGE_SIZE >= RADEON_GPU_PAGE_SIZE */ |
223 | /* We need PAGE_SIZE >= RADEON_GPU_PAGE_SIZE */ |