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)
commit75efdee11b5da3acbbeb43a9b93a9c4fe6d5bec8
treedfdb40d6b02d6a613a5d20ae8a343ac0d024dfcc
parentf93bdefe6269067afc85688d45c646cde350e0d8
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