[PATCH 1/1] drm/ttm: Fix up io_mem_reserve / io_mem_free calling

2010-11-11 Thread Thomas Hellstrom
This patch attempts to fix up shortcomings with the current calling sequences. 1) There's a fastpath where no locking occurs and only io_mem_reserved is called to obtain needed info for mapping. The fastpath is set per memory type manager. 2) If the fastpath is disabled, io_mem_reserve and

[PATCH 1/1] drm/ttm: Fix up io_mem_reserve / io_mem_free calling

2010-11-11 Thread Thomas Hellstrom
This patch attempts to fix up shortcomings with the current calling sequences. 1) There's a fastpath where no locking occurs and only io_mem_reserved is called to obtain needed info for mapping. The fastpath is set per memory type manager. 2) If the fastpath is disabled, io_mem_reserve and