drm/nouveau: fix m2mf copy to tiled gart
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 12 Nov 2013 12:34:08 +0000 (13:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:55:41 +0000 (13:55 -0800)
commitefd5f1ffacaf08965f1fbabde74c6211f55200c9
tree51573edfd1774651b0170648fddee70ff1450363
parent96330e5ec172d304d84f214d551ed3e9f520188a
drm/nouveau: fix m2mf copy to tiled gart

commit ce8f7699f2b6ffe4aa8368b8d9d370875accaa5f upstream.

Commit de7b7d59d54852c introduced tiled GART, but a linear copy is
still performed. This may result in errors on eviction, fix it by
checking tiling from memtype.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_bo.c