]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/radeon/kms: add evergreen/cayman CS parser for async DMA (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Dec 2012 14:55:45 +0000 (09:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Dec 2012 15:45:25 +0000 (10:45 -0500)
commitd2ead3eaf8a4bf92129eda69189ce18a6c1cc8bd
tree61502ccac6c09b16184b617bfdcb309d19114ccf
parentcf4ccd016bae1a03bb38170eb54b5db4b04e0545
drm/radeon/kms: add evergreen/cayman 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

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