Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269734
b: refs/heads/master
c: 005a83f
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Oct 10, 2011
1 parent b855482 commit ee08b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c245cb9e15055ed5dcf7eaf29232badb0059fdc1
refs/heads/master: 005a83f1412f4405694d08e95836bbdd88ea0109
7 changes: 4 additions & 3 deletions trunk/drivers/gpu/drm/radeon/radeon_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,14 +750,15 @@ int radeon_device_init(struct radeon_device *rdev,

/* set DMA mask + need_dma32 flags.
* PCIE - can handle 40-bits.
* IGP - can handle 40-bits (in theory)
* IGP - can handle 40-bits
* AGP - generally dma32 is safest
* PCI - only dma32
* PCI - dma32 for legacy pci gart, 40 bits on newer asics
*/
rdev->need_dma32 = false;
if (rdev->flags & RADEON_IS_AGP)
rdev->need_dma32 = true;
if (rdev->flags & RADEON_IS_PCI)
if ((rdev->flags & RADEON_IS_PCI) &&
(rdev->family < CHIP_RS400))
rdev->need_dma32 = true;

dma_bits = rdev->need_dma32 ? 32 : 40;
Expand Down

0 comments on commit ee08b84

Please sign in to comment.