From: Pauli Nieminen Date: Mon, 1 Feb 2010 17:11:16 +0000 (+0200) Subject: drm/radeon: Fix memory allocation failures in the preKMS command stream checking. X-Git-Tag: v2.6.34-rc1~209^2~10^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4fe945405e477cded91772b4fec854705443dd5;p=pandora-kernel.git drm/radeon: Fix memory allocation failures in the preKMS command stream checking. Allocation of single large block of memory may fail under memory presure. drm_buffer object can hold one large block of data in multiple independ pages which preents alloation failures. This patch converts all access to command stream to use drm_buffer interface. All direct access to array has to go tough drm_buffer functions to get correct pointer. Outputting the command stream to ring buffer needs to be awear of the split nature of drm_buffer. The output operation requires the new OUT_RING_DRM_BUFFER. Signed-off-by: Pauli Nieminen Signed-off-by: Dave Airlie --- Reading git-diff-tree failed