projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e806f75
)
nouveau: don't call pci_dma_supported
author
Christoph Hellwig
<
[email protected]
>
Tue, 10 Nov 2015 22:45:39 +0000
(14:45 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Nov 2015 00:32:11 +0000
(16:32 -0800)
Just try to set a 64-bit DMA mask first and retry with the smaller dma_mask
if dma_set_mask failed.
Signed-off-by: Christoph Hellwig <
[email protected]
>
Cc: David Airlie <
[email protected]
>
Cc: Ben Skeggs <
[email protected]
>
Cc: Alexandre Courbot <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Cc: Thierry Reding <
[email protected]
>
Cc: Dave Airlie <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/gpu/drm/nouveau/nouveau_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_ttm.c
b/drivers/gpu/drm/nouveau/nouveau_ttm.c
index 3f713c1b5dc112a42f58555a19c39ef73bbf67a5..d2e7d209f6517450165c33b7485f94102f887e6d 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_ttm.c
@@
-353,8
+353,7
@@
nouveau_ttm_init(struct nouveau_drm *drm)
bits = nvxx_mmu(&drm->device)->dma_bits;
if (nvxx_device(&drm->device)->func->pci) {
- if (drm->agp.bridge ||
- !dma_supported(dev->dev, DMA_BIT_MASK(bits)))
+ if (drm->agp.bridge)
bits = 32;
} else if (device->func->tegra) {
struct nvkm_device_tegra *tegra = device->func->tegra(device);
@@
-369,6
+368,10
@@
nouveau_ttm_init(struct nouveau_drm *drm)
}
ret = dma_set_mask(dev->dev, DMA_BIT_MASK(bits));
+ if (ret && bits != 32) {
+ bits = 32;
+ ret = dma_set_mask(dev->dev, DMA_BIT_MASK(bits));
+ }
if (ret)
return ret;