]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix TTM_PL_TT memtype on pre-nv50
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 16 Feb 2014 04:27:01 +0000 (23:27 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 18 Feb 2014 00:37:18 +0000 (10:37 +1000)
commite01505490fee5c170f3aff1f0810bb5dae5ab987
tree1c12bb750d7fef279bb94516fe6d29bf10f365b6
parent36eeb055c59fe4479e3bca40ccb6cf439327906c
drm/nouveau: fix TTM_PL_TT memtype on pre-nv50

Commit e0771df17 ("drm/nv50-: map TTM_PL_SYSTEM through a BAR for CPU
access") made it possible to work with tiled memory. However
mem->mm_node is not a nouveau_mem for AGP-using pre-NV50 cards, but a
drm_mm_node, as created by the ttm_bo_manager_func. As such, extend the
untiled check to explicitly include all pre-nv50 cards.

Reported-by: Ronald <ronald645@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74613
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Ronald Uitermark <ronald645@gmail.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c