Rev 6938 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6938 | Rev 7146 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include |
29 | #include |
30 | #include |
30 | #include |
31 | #include |
31 | #include |
32 | #include |
32 | #include |
33 | #include |
33 | #include |
- | 34 | #include |
|
34 | #include "radeon_reg.h" |
35 | #include "radeon_reg.h" |
35 | #include "radeon.h" |
36 | #include "radeon.h" |
36 | #include "atom.h" |
37 | #include "atom.h" |
Line 37... | Line 38... | ||
37 | 38 | ||
Line 1276... | Line 1277... | ||
1276 | for (i = 0; i < RADEON_NUM_RINGS; i++) { |
1277 | for (i = 0; i < RADEON_NUM_RINGS; i++) { |
1277 | rdev->ring[i].idx = i; |
1278 | rdev->ring[i].idx = i; |
1278 | } |
1279 | } |
1279 | rdev->fence_context = fence_context_alloc(RADEON_NUM_RINGS); |
1280 | rdev->fence_context = fence_context_alloc(RADEON_NUM_RINGS); |
Line 1280... | Line 1281... | ||
1280 | 1281 | ||
1281 | DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X).\n", |
1282 | DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X 0x%02X).\n", |
1282 | radeon_family_name[rdev->family], pdev->vendor, pdev->device, |
1283 | radeon_family_name[rdev->family], pdev->vendor, pdev->device, |
Line 1283... | Line 1284... | ||
1283 | pdev->subsystem_vendor, pdev->subsystem_device); |
1284 | pdev->subsystem_vendor, pdev->subsystem_device, pdev->revision); |
1284 | 1285 | ||
1285 | /* mutex initialization are all done here so we |
1286 | /* mutex initialization are all done here so we |
1286 | * can recall function without having locking issues */ |
1287 | * can recall function without having locking issues */ |
Line 1346... | Line 1347... | ||
1346 | rdev->need_dma32 = true; |
1347 | rdev->need_dma32 = true; |
1347 | if ((rdev->flags & RADEON_IS_PCI) && |
1348 | if ((rdev->flags & RADEON_IS_PCI) && |
1348 | (rdev->family <= CHIP_RS740)) |
1349 | (rdev->family <= CHIP_RS740)) |
1349 | rdev->need_dma32 = true; |
1350 | rdev->need_dma32 = true; |
Line 1350... | Line -... | ||
1350 | - | ||
1351 | dma_bits = rdev->need_dma32 ? 32 : 40; |
- | |
1352 | r = pci_set_dma_mask(rdev->pdev, DMA_BIT_MASK(dma_bits)); |
- | |
1353 | if (r) { |
- | |
1354 | rdev->need_dma32 = true; |
- | |
1355 | dma_bits = 32; |
- | |
1356 | printk(KERN_WARNING "radeon: No suitable DMA available.\n"); |
- | |
Line 1357... | Line 1351... | ||
1357 | } |
1351 | |
1358 | 1352 | ||
1359 | /* Registers mapping */ |
1353 | /* Registers mapping */ |
1360 | /* TODO: block userspace mapping of io register */ |
1354 | /* TODO: block userspace mapping of io register */ |