nouveau: Fix alignment requirements on src and dst addresses
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 4 Jun 2012 10:00:31 +0000 (12:00 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:38:02 +0000 (14:38 +0100)
commit86fccf3e1ef30d1970dbd01ce69208ed1b334a8e
treeeefe552792f1dbe35dc54caab8e41358a42b1411
parent704c3d1f64a8f1200cafbcee732b89fe341fc18f
nouveau: Fix alignment requirements on src and dst addresses

commit ce806a30470bcd846d148bf39d46de3ad7748228 upstream.

Linear copy works by adding the offset to the buffer address,
which may end up not being 16-byte aligned.

Some tests I've written for prime_pcopy show that the engine
allows this correctly, so the restriction on lowest 4 bits of
address can be lifted safely.

The comments added were by envyas, I think because I used
a newer version.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
[bwh: Backported to 3.2: no # prefixes in nva3_copy.fuc]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/nouveau/nva3_copy.fuc
drivers/gpu/drm/nouveau/nva3_copy.fuc.h
drivers/gpu/drm/nouveau/nvc0_copy.fuc.h