]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bo: consider DMA buffers on x86 only
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 2 Mar 2016 10:12:27 +0000 (19:12 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:32 +0000 (10:13 +1000)
commit3016937b572d6c1314cd9eaaa681240aab53a396
tree9da76b448bef37d9a48c35fc682802e7630ee5c1
parent550e3fc621be82b8b04f397bab3381f9d97c7adc
drm/nouveau/bo: consider DMA buffers on x86 only

The DMA API has different semantics on different architectures.
Currently on arm64, it can only provide memory from a small pool which
dries up quickly if we attempt to allocate big buffers from it.

Do not consider that option when running on non-x86, since regular TTM
buffers are the (current) best-fit for ARM platforms.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c