]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: implement simple doorbell page allocator
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Mar 2013 17:47:46 +0000 (12:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 14:49:07 +0000 (10:49 -0400)
commit6a6a742dd64ce7ed9f95efa6da10ea4845e3e86c
treedfdb40d6b02d6a613a5d20ae8a343ac0d024dfcc
parentd8169ea6df05dcdc2e7556062fd359fb050fc281
drm/radeon: implement simple doorbell page allocator

The doorbell aperture is a PCI BAR whose pages can be
mapped to compute resources for things like wptrs
for userspace queues.

This patch maps the BAR and sets up a simple allocator
to allocate pages from the BAR.

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