mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 16:50:21 +01:00
Correct errors in the usage of pci_map_page.
With these changes the driver no longer instantly hard-locks a 6600LE on a PowerPC G5. I haven't tested any 3D apps yet.
This commit is contained in:
parent
23631fca09
commit
70a8a60a3e
1 changed files with 2 additions and 2 deletions
|
|
@ -672,10 +672,10 @@ nouveau_gpuobj_dma_new(struct drm_device *dev, int channel, int class,
|
|||
pci_map_page(dev->pdev,
|
||||
dev->sg->pagelist[idx],
|
||||
0,
|
||||
DMA_31BIT_MASK,
|
||||
PAGE_SIZE,
|
||||
DMA_BIDIRECTIONAL);
|
||||
|
||||
if (dev->sg->busaddr[idx] == 0) {
|
||||
if (dma_mapping_error(dev->sg->busaddr[idx])) {
|
||||
return DRM_ERR(ENOMEM);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue