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:50:22 +0000 (13:50 -0800)
commit5735d668dad54d3307b38560a254eb73c75f0350
treea45a12a0a8e67f1b8d55bbf42a1cfac0cb55d23c
parent1a46dbe17b9771a38d702143d7e03b86e4377f7e
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