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)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jan 2014 03:38:25 +0000 (13:38 +1000)
commitce8f7699f2b6ffe4aa8368b8d9d370875accaa5f
tree936d958eb0c095fb41030bf77899e4bcb7f67b83
parent2e2cfbe61b8e2cb1339e456ba764c0bd7c913a6e
drm/nouveau: fix m2mf copy to tiled gart

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>
Cc: stable@vger.kernel.org #3.10+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c