]> git.baikalelectronics.ru Git - kernel.git/commit
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 Skeggs <bskeggs@redhat.com>
Thu, 26 Jul 2012 00:28:13 +0000 (10:28 +1000)
commite492542f15c494ad6a1229c6d5a2c58e219fdec0
treeb804660246b0ab0c673364298666b0c158252107
parent5cb5abe4a7b3ded50897ba6248834be32949df39
nouveau: Fix alignment requirements on src and dst addresses

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nva3_copy.fuc
drivers/gpu/drm/nouveau/nva3_copy.fuc.h
drivers/gpu/drm/nouveau/nvc0_copy.fuc.h