drm/radeon/kms: add 6xx/7xx CS parser for async DMA (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Nov 2011 15:19:47 +0000 (10:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Dec 2012 15:45:25 +0000 (10:45 -0500)
commitcf4ccd016bae1a03bb38170eb54b5db4b04e0545
tree63b0f56e633db1f515841831cb81e91864f38da0
parent4ac0533abaec2b83a7f2c675010eedd55664bc26
drm/radeon/kms: add 6xx/7xx CS parser for async DMA (v2)

Allows us to use the DMA ring from userspace.
DMA doesn't have a good NOP packet in which to embed the
reloc idx, so userspace has to add a reloc for each
buffer used and order them to match the command stream.

v2: fix address bounds checking, reloc indexing

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_cs.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_cs.c