drm/nouveau/core/memory: add mechanism to retrieve allocation granularity
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:22 +0000 (13:32 +1000)
commit2c9c4910f8b126d18fa2a08087f3ae1553e706bc
tree756818f7e9b1a1a90c6aeb0bcf981a6d79282265
parent19a82e492c3d71efe8763d50496a1701dfcf3f15
drm/nouveau/core/memory: add mechanism to retrieve allocation granularity

Needed by VMM code to determine whether an allocation is compatible with
a given page size (ie. you can't map 4KiB system memory pages into 64KiB
GPU pages).

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/memory.h