]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nv50-nvc0: restrict memtype to those specified at creation time
authorBen Skeggs <bskeggs@redhat.com>
Thu, 10 Feb 2011 03:41:01 +0000 (13:41 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 24 Feb 2011 20:45:43 +0000 (06:45 +1000)
commit71c5408de78158f9b1739f388e463f85041899b0
tree5b6c3d13e88f0f1a67746ce9e1a707a9e6015ce1
parent6bac21053b4305662a9e110c92d5f99fce97a819
drm/nv50-nvc0: restrict memtype to those specified at creation time

Upcoming patches are going to enable full support for buffers that keep
a constant GPU virtual address whenever they're validated for use by
the GPU.

In order for this to work properly while keeping support for large pages,
we need to know if it's ever going to be possible for a buffer to end
up in GART, and if so, disable large pages for the buffer's VMA.

This is a new restriction that's not present in earlier kernel's, but
should not break userspace as the current code never attempts to validate
buffers into a memtype other than it was created with.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_gem.c